Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local screen = Instance.new("ScreenGui")
- local btn = Instance.new("TextButton")
- local ok = Instance.new("TextButton")
- screen.Name = "screen"
- screen.Parent = game.CoreGui
- screen.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- btn.Name = "btn"
- btn.Parent = screen
- btn.BackgroundColor3 = Color3.new(0.854902, 0.854902, 0.854902)
- btn.BorderColor3 = Color3.new(0.235294, 0.368627, 0.462745)
- btn.BorderSizePixel = 2
- btn.Position = UDim2.new(0, 0, 0.694497168, 0)
- btn.Size = UDim2.new(0, 200, 0, 50)
- btn.Font = Enum.Font.PermanentMarker
- btn.LineHeight = 1.1200000047684
- btn.Text = "Keybinds"
- btn.TextColor3 = Color3.new(0, 0, 0)
- btn.TextSize = 30
- btn.MouseButton1Click:connect(function()
- print("Keybinds:")
- print("E place block")
- print("f remove block")
- print("r teleport block")
- end)
- ok.Name = "ok"
- ok.Parent = screen
- ok.BackgroundColor3 = Color3.new(1, 1, 1)
- ok.BackgroundTransparency = 0.80000001192093
- ok.BorderSizePixel = 0
- ok.Position = UDim2.new(0.458052069, 0, 0.430740029, 0)
- ok.Size = UDim2.new(0, 296, 0, 171)
- ok.Font = Enum.Font.SourceSans
- ok.Text = "Press me dude!"
- ok.TextColor3 = Color3.new(0, 0, 0)
- ok.TextSize = 45
- ok.MouseButton1Click:connect(function()
- local plr = game.Players.LocalPlayer
- local ms = plr:GetMouse()
- local tppart = Instance.new("Part")
- tppart.Parent = Workspace
- tppart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- tppart.CanCollide = false
- tppart.Name = "tp"
- tppart.Anchored = true
- tppart.Transparency = 0.7
- ms.KeyDown:connect(function(key)
- if key =="e" then
- local tppart = Instance.new("Part")
- tppart.Parent = Workspace
- tppart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
- tppart.CanCollide = false
- tppart.Name = "tp"
- tppart.Anchored = true
- tppart.Transparency = 0.7
- end
- end
- )
- ms.KeyDown:connect(function(key)
- if key =="r" then
- local hum = game.Players.LocalPlayer.Character.HumanoidRootPart
- hum.CFrame = game:GetService("Workspace").tp.CFrame
- hum.Anchored = true
- wait(1.1)
- hum.Anchored = false
- end
- end
- )
- ms.KeyDown:connect(function(key)
- if key == "f" then
- game:GetService("Workspace").tp:Remove()
- end
- end
- )
- wait(1)
- ok.Visible = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement