Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ExecuteButton.MouseButton1Click:connect(function()
- if CommandTextBox.Text == "god" then
- while true do wait(1.0)
- if game.Players.LocalPlayer.Character:FindFirstChild'KillScript' then
- game.Players.LocalPlayer.Character.KillScript:Destroy()
- end
- end
- elseif CommandTextBox.Text == "finish" then
- for i, v in pairs(game.Workspace:GetDescendants()) do
- if v.Name == "Finish" then
- game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-6.92687607, 125.523582, 103.133858))
- wait(0.5)
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
- end
- end
- elseif string.sub(CommandTextBox.Text, 1, 5) == ("goto ") then
- for i,v in pairs(find(string.sub(CommandTextBox.Text, 6))) do
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Players")[v.Name].Character.HumanoidRootPart.CFrame
- end
- elseif string.sub(CommandTextBox.Text, 1, 9) == ("loopgoto ") then
- for i,v in pairs(find(string.sub(CommandTextBox.Text, 10))) do
- _G.Toggled = true
- while _G.Toggled == true do wait(0.01)
- game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Players")[v.Name].Character.HumanoidRootPart.CFrame
- end
- end
- elseif CommandTextBox.Text == "unloopgoto" then
- _G.Toggled = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement