Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to clone a players model within a script?

Asked by 4 years ago

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

0
Include code programmerHere 371 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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)
0
In certain scenarios, it would be better to use the plr.CharacterAdded event instead of plr.Character itchymoonfire 179 — 4y
0
thank you so simple but I racked my head around this concept for a few hours! much appreciated ecolight 2 — 4y
Ad

Answer this question