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

Why does this not work to remake a character?

Asked by
wackem 50
9 years ago

So, I'm trying to make skins (players) like in TMM or MPB. But this does not work

1local modl = game.ServerStorage.Model:Clone()
2 
3game.Players.PlayerAdded:connect(function(plr)
4    plr.CharacterAdded:wait()
5    local char = plr.Character
6    char:Destroy()
7    char = modl
8end

I can't come up with anything else...

2 answers

Log in to vote
2
Answered by 9 years ago

Easy fix.

01game.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
13end
0
It doesn't animate the motions but I'll TRY to find a way around it, please answer that if you could wackem 50 — 9y
0
Edited :) epicbreaker 95 — 9y
Ad
Log in to vote
0
Answered by
CjInc 5
9 years ago

Line 4...shouldn't there be a number between the parenthesis for 'wait?'

0
no. wackem 50 — 9y
0
No, the wait method of an Event waits until the event fires. Spongocardo 1991 — 9y
0
Alright. My bad. CjInc 5 — 9y
0
Please do not use an Answer as a comment. adark 5487 — 9y

Answer this question