Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Gui to Lua
- -- Version: 3
- -- Instances:
- local ScreenGui = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local SaveP = Instance.new("TextButton")
- local LoadP = Instance.new("TextButton")
- local Name = Instance.new("TextLabel")
- local Credit = Instance.new("TextLabel")
- local PositionSaved = ""
- local LocalPlayerName = game.Players.LocalPlayer.Name
- --Properties:
- ScreenGui.Parent = game.CoreGui
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = ScreenGui
- MainFrame.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- MainFrame.Position = UDim2.new(0.629926085, 0, 0.103694879, 0)
- MainFrame.Size = UDim2.new(0, 496, 0, 186)
- MainFrame.Active = true
- MainFrame.Draggable = true
- SaveP.Name = "SaveP"
- SaveP.Parent = MainFrame
- SaveP.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- SaveP.BorderColor3 = Color3.new(0, 0, 0)
- SaveP.BorderSizePixel = 5
- SaveP.Position = UDim2.new(0.0604838692, 0, 0.493162751, 0)
- SaveP.Size = UDim2.new(0, 200, 0, 57)
- SaveP.Font = Enum.Font.SciFi
- SaveP.Text = "Save Current Position"
- SaveP.TextColor3 = Color3.new(1, 0.666667, 0)
- SaveP.TextSize = 20
- LoadP.Name = "LoadP"
- LoadP.Parent = MainFrame
- LoadP.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
- LoadP.BorderColor3 = Color3.new(0, 0, 0)
- LoadP.BorderSizePixel = 5
- LoadP.Position = UDim2.new(0.536290348, 0, 0.493162751, 0)
- LoadP.Size = UDim2.new(0, 200, 0, 57)
- LoadP.Font = Enum.Font.SciFi
- LoadP.Text = "Teleport to Saved Position"
- LoadP.TextColor3 = Color3.new(1, 0.666667, 0)
- LoadP.TextSize = 15
- Name.Name = "Name"
- Name.Parent = MainFrame
- Name.BackgroundColor3 = Color3.new(1, 1, 1)
- Name.BackgroundTransparency = 1
- Name.Size = UDim2.new(0, 496, 0, 50)
- Name.Font = Enum.Font.SciFi
- Name.Text = "Simple Teleport Gui"
- Name.TextColor3 = Color3.new(1, 0.666667, 0)
- Name.TextSize = 40
- Credit.Name = "Credit"
- Credit.Parent = MainFrame
- Credit.BackgroundColor3 = Color3.new(1, 1, 1)
- Credit.BackgroundTransparency = 1
- Credit.Position = UDim2.new(0, 0, 0.90322578, 0)
- Credit.Size = UDim2.new(0, 496, 0, 18)
- Credit.Font = Enum.Font.SciFi
- Credit.Text = "Credit: 4lve#2846"
- Credit.TextColor3 = Color3.new(1, 0.666667, 0)
- Credit.TextSize = 23
- --script
- SaveP.MouseButton1Down:connect(function()
- PositionSaved = game.Players.LocalPlayer.character.HumanoidRootPart.Position
- end)
- LoadP.MouseButton1Down:connect(function()
- game.Players.LocalPlayer.character.HumanoidRootPart.CFrame = CFrame.new(PositionSaved) + Vector3.new(0,0,0)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement