Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextButton = Instance.new("TextButton")
- -- Properties
- ScreenGui.Parent = game.CoreGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(1, 0.388235, 0.368627)
- Frame.BorderColor3 = Color3.new(0.67451, 0.211765, 0.152941)
- Frame.Position = UDim2.new(0.293040276, 0, 0.491666675, 0)
- Frame.Size = UDim2.new(0.106227107, 0, 0.0833333284, 0)
- Frame.Active = true
- Frame.Draggable = true
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.BackgroundTransparency = 0.80000001192093
- TextButton.Position = UDim2.new(0.103524067, 0, 0.200333327, 0)
- TextButton.Size = UDim2.new(0.793684483, 0, 0.601000011, 0)
- TextButton.Font = Enum.Font.SourceSansLight
- TextButton.FontSize = Enum.FontSize.Size14
- TextButton.Text = "Freeze!"
- TextButton.TextScaled = true
- TextButton.TextSize = 14
- TextButton.TextWrapped = true
- run = false
- TextButton.MouseButton1Click:connect(function()
- run = not run
- local function tp()
- for i, player in ipairs(game.Players:GetChildren()) do
- if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
- player.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 1
- end
- end
- end
- if run then
- while wait() do
- if run then
- tp()
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment