SomeLuaCScripter

z tp everyone to u and x removes itworks in catalog heavn

Nov 11th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. local Players = game.Players
  2. local Player = Players.LocalPlayer
  3. local Mouse = Player:GetMouse()
  4.  
  5.  
  6. Mouse.KeyDown:Connect(function(Key)
  7. if Key == "z" then
  8. for i, v in pairs(game.Players:GetChildren())do
  9. if v:IsA("Player") and v.Name ~= Player.Name then
  10. local Hrp = v.Character:FindFirstChild("HumanoidRootPart")
  11. local Crp = Player.Character.HumanoidRootPart
  12. if v.Character ~= nil and Hrp ~= nil then
  13. local Anch = Instance.new("Part",v.Character)
  14. Anch.Name = "Anch"
  15. Anch.CFrame = Crp.CFrame + (Crp.CFrame.lookVector*3)
  16. Anch.Anchored = true
  17. local Wld = Instance.new("Weld",Anch)
  18. Wld.Name = "Wld"
  19. Wld.Part0 = Hrp
  20. Wld.Part1 = Anch
  21. Anch.CFrame = Crp.CFrame + (Crp.CFrame.lookVector*3)
  22. Anch.Anchored = false
  23. Anch.CFrame = Crp.CFrame + (Crp.CFrame.lookVector*3)
  24. Anch.Anchored = true
  25. Anch.CFrame = Crp.CFrame + (Crp.CFrame.lookVector*3)
  26. Hrp.CFrame = Anch.CFrame
  27. Hrp.Anchored = true
  28. end
  29. end
  30. end
  31. elseif Key == "x" then
  32. for i, v in pairs(game.Players:GetChildren())do
  33. if v:IsA("Player") and v.Name ~= Player.Name then
  34. local Hrp = v.Character:FindFirstChild("HumanoidRootPart")
  35. local Crp = Player.Character.HumanoidRootPart
  36. if v.Character ~= nil and Hrp ~= nil then
  37. local Anch = v.Character:FindFirstChild("Anch")
  38. if Anch ~= nil then
  39. Anch:Destroy()
  40. end
  41. Hrp.Anchored = false
  42. end
  43. end
  44. end
  45. end
  46. end)
Add Comment
Please, Sign In to add comment