Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. ExecuteButton.MouseButton1Click:connect(function()
  2. if CommandTextBox.Text == "god" then
  3. while true do wait(1.0)
  4. if game.Players.LocalPlayer.Character:FindFirstChild'KillScript' then
  5. game.Players.LocalPlayer.Character.KillScript:Destroy()
  6. end
  7. end
  8. elseif CommandTextBox.Text == "finish" then
  9. for i, v in pairs(game.Workspace:GetDescendants()) do
  10. if v.Name == "Finish" then
  11. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-6.92687607, 125.523582, 103.133858))
  12. wait(0.5)
  13. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = v.CFrame
  14. end
  15. end
  16. elseif string.sub(CommandTextBox.Text, 1, 5) == ("goto ") then
  17. for i,v in pairs(find(string.sub(CommandTextBox.Text, 6))) do
  18. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Players")[v.Name].Character.HumanoidRootPart.CFrame
  19. end
  20. elseif string.sub(CommandTextBox.Text, 1, 9) == ("loopgoto ") then
  21. for i,v in pairs(find(string.sub(CommandTextBox.Text, 10))) do
  22. _G.Toggled = true
  23. while _G.Toggled == true do wait(0.01)
  24. game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame = game:GetService("Players")[v.Name].Character.HumanoidRootPart.CFrame
  25. end
  26. end
  27. elseif CommandTextBox.Text == "unloopgoto" then
  28. _G.Toggled = false
  29. end
  30. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement