Advertisement
Ben_Scripts343

Tower of Hell

Jun 13th, 2021
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. local screen = Instance.new("ScreenGui")
  2. local btn = Instance.new("TextButton")
  3. local ok = Instance.new("TextButton")
  4.  
  5. screen.Name = "screen"
  6. screen.Parent = game.CoreGui
  7. screen.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  8.  
  9. btn.Name = "btn"
  10. btn.Parent = screen
  11. btn.BackgroundColor3 = Color3.new(0.854902, 0.854902, 0.854902)
  12. btn.BorderColor3 = Color3.new(0.235294, 0.368627, 0.462745)
  13. btn.BorderSizePixel = 2
  14. btn.Position = UDim2.new(0, 0, 0.694497168, 0)
  15. btn.Size = UDim2.new(0, 200, 0, 50)
  16. btn.Font = Enum.Font.PermanentMarker
  17. btn.LineHeight = 1.1200000047684
  18. btn.Text = "Keybinds"
  19. btn.TextColor3 = Color3.new(0, 0, 0)
  20. btn.TextSize = 30
  21. btn.MouseButton1Click:connect(function()
  22. print("Keybinds:")
  23. print("E place block")
  24. print("f remove block")
  25. print("r teleport block")
  26. end)
  27.  
  28. ok.Name = "ok"
  29. ok.Parent = screen
  30. ok.BackgroundColor3 = Color3.new(1, 1, 1)
  31. ok.BackgroundTransparency = 0.80000001192093
  32. ok.BorderSizePixel = 0
  33. ok.Position = UDim2.new(0.458052069, 0, 0.430740029, 0)
  34. ok.Size = UDim2.new(0, 296, 0, 171)
  35. ok.Font = Enum.Font.SourceSans
  36. ok.Text = "Press me dude!"
  37. ok.TextColor3 = Color3.new(0, 0, 0)
  38. ok.TextSize = 45
  39. ok.MouseButton1Click:connect(function()
  40. local plr = game.Players.LocalPlayer
  41. local ms = plr:GetMouse()
  42.  
  43. local tppart = Instance.new("Part")
  44. tppart.Parent = Workspace
  45. tppart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  46. tppart.CanCollide = false
  47. tppart.Name = "tp"
  48. tppart.Anchored = true
  49. tppart.Transparency = 0.7
  50.  
  51. ms.KeyDown:connect(function(key)
  52. if key =="e" then
  53. local tppart = Instance.new("Part")
  54. tppart.Parent = Workspace
  55. tppart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  56. tppart.CanCollide = false
  57. tppart.Name = "tp"
  58. tppart.Anchored = true
  59. tppart.Transparency = 0.7
  60. end
  61. end
  62. )
  63.  
  64. ms.KeyDown:connect(function(key)
  65. if key =="r" then
  66. local hum = game.Players.LocalPlayer.Character.HumanoidRootPart
  67. hum.CFrame = game:GetService("Workspace").tp.CFrame
  68. hum.Anchored = true
  69. wait(1.1)
  70. hum.Anchored = false
  71. end
  72. end
  73. )
  74.  
  75.  
  76. ms.KeyDown:connect(function(key)
  77. if key == "f" then
  78. game:GetService("Workspace").tp:Remove()
  79. end
  80. end
  81. )
  82. wait(1)
  83. ok.Visible = false
  84. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement