So, I'm trying to make skins (players) like in TMM or MPB. But this does not work
1 | local modl = game.ServerStorage.Model:Clone() |
2 |
3 | game.Players.PlayerAdded:connect( function (plr) |
4 | plr.CharacterAdded:wait() |
5 | local char = plr.Character |
6 | char:Destroy() |
7 | char = modl |
8 | end |
I can't come up with anything else...
Easy fix.
01 | game.Players.PlayerAdded:connect( function (plr) |
02 | plr.CharacterAdded:wait() |
03 | local modl = game.ServerStorage.Model:Clone() |
04 | modl.Parent = workspace |
05 | modl:MakeJoints() |
06 | local char = plr.Character |
07 | char:Destroy() |
08 | plr.Character = modl |
09 | -- Edit to include animations |
10 | modl.Animate.Disabled = true |
11 | wait() |
12 | modl.Animate.Disabled = false |
13 | end |
Line 4...shouldn't there be a number between the parenthesis for 'wait?'