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

Why does this not work to remake a character?

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

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

2 comments

0

It doesn't animate the motions but I'll TRY to find a way around it, please answer that if you could

0

Edited :)

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

4 comments

0

no.

0

No, the wait method of an Event waits until the event fires.

0

Alright. My bad.

0

Please do not use an Answer as a comment.

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