Advertisement
Guest User

loadsave

a guest
Dec 5th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. -- Got back from a break and a lil rusty
  2. -- Hella Spaced out the script for easy managing
  3. local TPOP = Instance.new("ScreenGui")
  4. local main = Instance.new("Frame")
  5. local PT = Instance.new("TextLabel")
  6. local TPTO = Instance.new("Frame")
  7. local PL = Instance.new("TextLabel")
  8.  
  9.  
  10. TPOP.Name = "TPOP"
  11. TPOP.Parent = game.CoreGui
  12.  
  13. main.Name = "main"
  14. main.Parent = TPOP
  15. main.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  16. main.Position = UDim2.new(0.997280121, 0, 0.517114937, 0)
  17. main.Size = UDim2.new(0, 168, 0, 50)
  18.  
  19. PT.Name = "PT"
  20. PT.Parent = main
  21. PT.BackgroundColor3 = Color3.new(1, 1, 1)
  22. PT.BackgroundTransparency = 1
  23. PT.Position = UDim2.new(-0.00198434386, 0, 0.00943762809, 0)
  24. PT.Size = UDim2.new(0, 168, 0, 50)
  25. PT.Font = Enum.Font.SourceSansSemibold
  26. PT.Text = "Position Has Been Saved!"
  27. PT.TextColor3 = Color3.new(1, 0.666667, 0)
  28. PT.TextSize = 15
  29. PT.TextWrapped = true
  30.  
  31. TPTO.Name = "TPTO"
  32. TPTO.Parent = TPOP
  33. TPTO.BackgroundColor3 = Color3.new(0.384314, 0.384314, 0.384314)
  34. TPTO.Position = UDim2.new(0.997280121, 0, 0.57823962, 0)
  35. TPTO.Size = UDim2.new(0, 168, 0, 50)
  36.  
  37. PL.Name = "PL"
  38. PL.Parent = TPTO
  39. PL.BackgroundColor3 = Color3.new(1, 1, 1)
  40. PL.BackgroundTransparency = 1
  41. PL.Position = UDim2.new(-0.00198434386, 0, 0.00943762809, 0)
  42. PL.Size = UDim2.new(0, 168, 0, 50)
  43. PL.Font = Enum.Font.SourceSansSemibold
  44. PL.Text = "Position Has Been Loaded!"
  45. PL.TextColor3 = Color3.new(1, 0.666667, 0)
  46. PL.TextSize = 16
  47. PL.TextWrapped = true
  48.  
  49.  
  50. PT.Text = "Welcome!"
  51.  
  52. wait(2)
  53.  
  54. main:TweenPosition(UDim2.new(0.911181152, 0, 0.517114937, 0), "Out")
  55.  
  56. wait(2)
  57.  
  58. main:TweenPosition(UDim2.new(0.99728012, 0, 0.517114937, 0), "In")
  59.  
  60. wait(1)
  61.  
  62. PT.Text = "Position Has Been Saved!"
  63.  
  64.  
  65. function onKeyPress(inputObject, gameProcessedEvent)
  66. if inputObject.KeyCode == Enum.KeyCode.Q then
  67. LPos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  68. main:TweenPosition(UDim2.new(0.911181152, 0, 0.517114937, 0), "Out")
  69. wait(2)
  70. main:TweenPosition(UDim2.new(0.99728012, 0, 0.517114937, 0), "In")
  71. end
  72. end
  73. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  74.  
  75. function onKeyPress(inputObject, gameProcessedEvent)
  76. if inputObject.KeyCode == Enum.KeyCode.E then
  77. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = LPos
  78. TPTO:TweenPosition(UDim2.new(0.911221445, 0, 0.57823962, 0), "Out")
  79. wait(2)
  80. TPTO:TweenPosition(UDim2.new(0.99728012, 0, 0.57823962, 0), "In")
  81. end
  82. end
  83. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement