Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- How To Make TELEPORT BUTTON in Roblox Studio!!! BY BLOXIANCODE youtube.com/c/BloxianCode
- -- Tutorial: https://youtube.com/shorts/6q3Rn8rYTXw
- local toggle = script.Parent.Toggle
- local button = script.Parent.Frame.TextButton
- local teleporTo = game.Workspace.teleportTo
- local player = game.Players.LocalPlayer
- toggle.MouseButton1Click:Connect(function()
- if script.Parent.Frame.Visible == true then
- script.Parent.Frame.Visible = false
- else
- script.Parent.Frame.Visible = true
- end
- end)
- button.MouseButton1Click:Connect(function()
- local humR = player.Character.HumanoidRootPart
- humR.CFrame = teleporTo.CFrame
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement