Advertisement
4lve

Simple Teleport gui

Dec 29th, 2019
17,626
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local MainFrame = Instance.new("Frame")
  8. local SaveP = Instance.new("TextButton")
  9. local LoadP = Instance.new("TextButton")
  10. local Name = Instance.new("TextLabel")
  11. local Credit = Instance.new("TextLabel")
  12. local PositionSaved = ""
  13. local LocalPlayerName = game.Players.LocalPlayer.Name
  14.  
  15. --Properties:
  16.  
  17. ScreenGui.Parent = game.CoreGui
  18.  
  19. MainFrame.Name = "MainFrame"
  20. MainFrame.Parent = ScreenGui
  21. MainFrame.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  22. MainFrame.Position = UDim2.new(0.629926085, 0, 0.103694879, 0)
  23. MainFrame.Size = UDim2.new(0, 496, 0, 186)
  24. MainFrame.Active = true
  25. MainFrame.Draggable = true
  26.  
  27. SaveP.Name = "SaveP"
  28. SaveP.Parent = MainFrame
  29. SaveP.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  30. SaveP.BorderColor3 = Color3.new(0, 0, 0)
  31. SaveP.BorderSizePixel = 5
  32. SaveP.Position = UDim2.new(0.0604838692, 0, 0.493162751, 0)
  33. SaveP.Size = UDim2.new(0, 200, 0, 57)
  34. SaveP.Font = Enum.Font.SciFi
  35. SaveP.Text = "Save Current Position"
  36. SaveP.TextColor3 = Color3.new(1, 0.666667, 0)
  37. SaveP.TextSize = 20
  38.  
  39. LoadP.Name = "LoadP"
  40. LoadP.Parent = MainFrame
  41. LoadP.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  42. LoadP.BorderColor3 = Color3.new(0, 0, 0)
  43. LoadP.BorderSizePixel = 5
  44. LoadP.Position = UDim2.new(0.536290348, 0, 0.493162751, 0)
  45. LoadP.Size = UDim2.new(0, 200, 0, 57)
  46. LoadP.Font = Enum.Font.SciFi
  47. LoadP.Text = "Teleport to Saved Position"
  48. LoadP.TextColor3 = Color3.new(1, 0.666667, 0)
  49. LoadP.TextSize = 15
  50.  
  51. Name.Name = "Name"
  52. Name.Parent = MainFrame
  53. Name.BackgroundColor3 = Color3.new(1, 1, 1)
  54. Name.BackgroundTransparency = 1
  55. Name.Size = UDim2.new(0, 496, 0, 50)
  56. Name.Font = Enum.Font.SciFi
  57. Name.Text = "Simple Teleport Gui"
  58. Name.TextColor3 = Color3.new(1, 0.666667, 0)
  59. Name.TextSize = 40
  60.  
  61. Credit.Name = "Credit"
  62. Credit.Parent = MainFrame
  63. Credit.BackgroundColor3 = Color3.new(1, 1, 1)
  64. Credit.BackgroundTransparency = 1
  65. Credit.Position = UDim2.new(0, 0, 0.90322578, 0)
  66. Credit.Size = UDim2.new(0, 496, 0, 18)
  67. Credit.Font = Enum.Font.SciFi
  68. Credit.Text = "Credit: 4lve#2846"
  69. Credit.TextColor3 = Color3.new(1, 0.666667, 0)
  70. Credit.TextSize = 23
  71.  
  72. --script
  73.  
  74.  
  75. SaveP.MouseButton1Down:connect(function()
  76. PositionSaved = game.Players.LocalPlayer.character.HumanoidRootPart.Position
  77. end)
  78.  
  79.  
  80. LoadP.MouseButton1Down:connect(function()
  81. game.Players.LocalPlayer.character.HumanoidRootPart.CFrame = CFrame.new(PositionSaved) + Vector3.new(0,0,0)
  82. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement