Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function onCharacterAdded(character)
- local rootPart = character:WaitForChild("HumanoidRootPart")
- while not rootPart:IsDescendantOf(workspace) do
- wait()
- end
- rootPart:SetNetworkOwner(game.Players:GetPlayerFromCharacter(character))
- end
- local function onPlayerAdded(player)
- player.CharacterAdded:Connect(onCharacterAdded)
- end
- game.Players.PlayerAdded:Connect(onPlayerAdded)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement