xdJustice29

Untitled

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