shiyamdabomb

Overpowered Sword Teleport All Script

May 4th, 2019
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. --This script gives you a button that will teleport everyone to your character. They won't know it when you use it, but if you have a sword out you can easily kill them. Enjoy!(if the script doesn't work delete this text!)
  2.  
  3.  
  4. -- Objects
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local TextButton = Instance.new("TextButton")
  9.  
  10. -- Properties
  11.  
  12. ScreenGui.Parent = game.CoreGui
  13.  
  14. Frame.Parent = ScreenGui
  15. Frame.BackgroundColor3 = Color3.new(1, 0.388235, 0.368627)
  16. Frame.BorderColor3 = Color3.new(0.67451, 0.211765, 0.152941)
  17. Frame.Position = UDim2.new(0.293040276, 0, 0.491666675, 0)
  18. Frame.Size = UDim2.new(0.106227107, 0, 0.0833333284, 0)
  19. Frame.Active = true
  20. Frame.Draggable = true
  21.  
  22. TextButton.Parent = Frame
  23. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  24. TextButton.BackgroundTransparency = 0.80000001192093
  25. TextButton.Position = UDim2.new(0.103524067, 0, 0.200333327, 0)
  26. TextButton.Size = UDim2.new(0.793684483, 0, 0.601000011, 0)
  27. TextButton.Font = Enum.Font.SourceSansLight
  28. TextButton.FontSize = Enum.FontSize.Size14
  29. TextButton.Text = "Freeze!"
  30. TextButton.TextScaled = true
  31. TextButton.TextSize = 14
  32. TextButton.TextWrapped = true
  33.  
  34. run = false
  35. TextButton.MouseButton1Click:connect(function()
  36. run = not run
  37. local function tp()
  38. for i, player in ipairs(game.Players:GetChildren()) do
  39. if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
  40. player.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 1
  41. end
  42. end
  43. end
  44. if run then
  45. while wait() do
  46. if run then
  47. tp()
  48. end
  49. end
  50. end
  51. end)
Add Comment
Please, Sign In to add comment