Advertisement
karobloxYT

bảng của ka

Oct 8th, 2019
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. local test = "poj36"
  2. function tp(x,y,z)
  3. local valtomove = 4
  4. moving = true
  5. if x < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X then
  6. while x < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X do
  7. wait()
  8. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X-valtomove,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))
  9. end
  10. end
  11. if z < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z then
  12. while z < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z do
  13. wait()
  14. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z-valtomove))
  15. end
  16. end
  17. if x > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X then
  18. while x > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X do
  19. wait()
  20. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X+valtomove,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))
  21. end
  22. end
  23. if z > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z then
  24. while z > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z do
  25. wait()
  26. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z+valtomove))
  27. end
  28. end
  29. if y < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y then
  30. while y < game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y do
  31. wait()
  32. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y-valtomove,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))
  33. end
  34. end
  35. if y > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y then
  36. while y > game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y do
  37. wait()
  38. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position.X,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Y+valtomove,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.Z))
  39. end
  40. end
  41. moving = false
  42. end
  43.  
  44. spawn (function()
  45. game:getService("RunService"):BindToRenderStep("",0,function()
  46. if not game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid") then return end
  47. if moving == true then
  48. game.Players.LocalPlayer.Character:findFirstChildOfClass("Humanoid"):ChangeState(11)
  49. end
  50. end)
  51. end)
  52. function kadep()
  53. kaka = game.Workspace:GetChildren()
  54. local kalol = game:GetService("Players").LocalPlayer
  55. for i,v in pairs(kaka) do
  56. if string.find(v.Name,test) then
  57. table.insert(kaka, v)
  58. local kapo = kalol.Charater:FindFirstChild("HumanoidRootPart")
  59. tp(v.CFrame.X,v.CFrame.Y,v.CFrame.Z)
  60. kadep()
  61. end
  62. end
  63. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement