Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Open / Close button script --
- script.Parent.MouseButton1Click:Connect(function() -- Change 'Frame' to your frame name
- if script.Parent.Parent.Frame.Visible == false then
- script.Parent.Parent.Frame.Visible = true
- else
- script.Parent.Parent.Frame.Visible = false
- end
- end)
- -- Teleport button script --
- local plr = script.Parent.Parent.Parent.Parent.Parent -- if this doesnt work, use your own variables that targeting to Player
- local char = plr.Character
- script.Parent.MouseButton1Click:Connect(function()
- char.HumanoidRootPart.CFrame = workspace.Part1.CFrame -- Change Part1 to Your Teleport brick name
- end)
Advertisement
Add Comment
Please, Sign In to add comment