Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

how to clone a players model within a script?

I've been trying to find a way to clone a players model from workspace whenever a player enters the game but i keep running into a wall of whatever variable i set the players name to not being a valid member of workspace. For Example i'm trying to set something equal to game.Workspace.(whatever i set it to so we'l just say player). I also tried having the code wait for the player to be in the workspace before attempting. same problem

1 comment

0

Include code

1 answer

✓ Accepted answer

There is a thing inside of the Player class called Character.

game.Players.PlayerAdded:Connect(function(plr)
plr.Character:Clone() -- The player's character model
end)

2 comments

0

In certain scenarios, it would be better to use the plr.CharacterAdded event instead of plr.Character

0

thank you so simple but I racked my head around this concept for a few hours! much appreciated

This discussion is preserved as it was. New answers, comments, and votes are closed.