Guest User

Bring all anchor

a guest
Jan 26th, 2023
1,159
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 1 0
  1. local localPlayer = game.Players.LocalPlayer
  2. local localPlayerCF = localPlayer.Character.HumanoidRootPart.CFrame
  3.  
  4. for _, player in pairs(game.Players:GetPlayers()) do
  5. if player ~= localPlayer then
  6. player.Character.HumanoidRootPart.CFrame = localPlayerCF
  7. player.Character.Humanoid.PlatformStand = true
  8. player.Character.Humanoid.WalkSpeed = 0
  9. player.Character.Humanoid.JumpPower = 0
  10. for _, part in pairs(player.Character:GetDescendants()) do
  11. if part:IsA("BasePart") then
  12. part.Anchored = true
  13. end
  14. end
  15. end
  16. end
  17.  
  18. localPlayer.Character.HumanoidRootPart.Anchored = false
Advertisement
Add Comment
Please, Sign In to add comment