SyahmiPasteBINFarzaF

TELEPORT GUI ROBLOX STUDIO (WORKED)

Mar 6th, 2020
1,937
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. -- Open / Close button script --
  2.  
  3. script.Parent.MouseButton1Click:Connect(function() -- Change 'Frame' to your frame name
  4. if script.Parent.Parent.Frame.Visible == false then
  5. script.Parent.Parent.Frame.Visible = true
  6. else
  7. script.Parent.Parent.Frame.Visible = false
  8. end
  9. end)
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16. -- Teleport button script --
  17.  
  18. local plr = script.Parent.Parent.Parent.Parent.Parent -- if this doesnt work, use your own variables that targeting to Player
  19. local char = plr.Character
  20.  
  21. script.Parent.MouseButton1Click:Connect(function()
  22. char.HumanoidRootPart.CFrame = workspace.Part1.CFrame -- Change Part1 to Your Teleport brick name
  23. end)
Advertisement
Add Comment
Please, Sign In to add comment