Advertisement
Ben_Scripts343

Gui KAT teleport

May 29th, 2021
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. local Neon = Instance.new("ScreenGui")
  2. local btn = Instance.new("TextButton")
  3.  
  4. Neon.Name = "Neon"
  5. Neon.Parent = game.CoreGui
  6. Neon.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  7.  
  8. btn.Name = "btn"
  9. btn.Parent = Neon
  10. btn.BackgroundColor3 = Color3.new(1, 1, 1)
  11. btn.Position = UDim2.new(0.823529422, 0, 0.607210577, 0)
  12. btn.Size = UDim2.new(0, 152, 0, 38)
  13. btn.Font = Enum.Font.SourceSans
  14. btn.Text = "Teleport"
  15. btn.TextColor3 = Color3.new(0, 0, 0)
  16. btn.TextSize = 30
  17. btn.Draggable = true
  18. btn.Active = true
  19. btn.MouseButton1Click:connect(function()
  20. local beak = false
  21. local Players = game.Players:GetPlayers()
  22. local Player = game.Players.LocalPlayer
  23. --teleport script
  24.  
  25. if #Players > 1 then -- you as a player
  26. table.remove(Players,1) -- remove you
  27. end
  28.  
  29. local rnd = Players[math.random(1,#Players)] -- random players
  30.  
  31. local sav = Player.Character.HumanoidRootPart.CFrame -- saved pos
  32. while true do
  33. wait(0.1)
  34. print(rnd)
  35. wait(0.2)
  36. Player.Character.HumanoidRootPart.CFrame = rnd.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-0.8) -- teleport and + the numbers
  37. wait(0.2)
  38. Player.Character.HumanoidRootPart.CFrame = rnd.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-0.8) -- teleport and + the numbers
  39. wait(0.2)
  40. Player.Character.HumanoidRootPart.CFrame = rnd.Character.HumanoidRootPart.CFrame * CFrame.new(0,0,-0.8) -- teleport and + the numbers
  41. wait(0.01)
  42. Players.Character.HumanoidRootPart.CFrame = sav -- go back to place
  43. if beak == true then
  44. break
  45. end
  46. end
  47.  
  48.  
  49. end)
  50.  
  51. game.Players.LocalPlayer:GetMouse().KeyDown:Connect(function(k)
  52. if k == "e" then
  53. beak = true
  54. print(beak)
  55. end
  56. end
  57. )
  58.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement