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
8 years ago

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

local modl = game.ServerStorage.Model:Clone()

game.Players.PlayerAdded:connect(function(plr)
    plr.CharacterAdded:wait()
    local char = plr.Character
    char:Destroy()
    char = modl
end

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

2 answers

Log in to vote
2
Answered by 8 years ago

Easy fix.

game.Players.PlayerAdded:connect(function(plr)
    plr.CharacterAdded:wait()
    local modl = game.ServerStorage.Model:Clone()
    modl.Parent = workspace
    modl:MakeJoints()
    local char = plr.Character
    char:Destroy()
    plr.Character = modl
-- Edit to include animations
    modl.Animate.Disabled = true
    wait()
    modl.Animate.Disabled = false
end

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 — 8y
0
Edited :) epicbreaker 95 — 8y
Ad
Log in to vote
0
Answered by
CjInc 5
8 years ago

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

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

Answer this question