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

I Can't Get my Auto Morpher to work?

It Seems, i can't Morph the Character. I can Disable its CanLoad Properties but i can't seem to make it morph into a character?

Can someone give me some advice?

game.Players.PlayerAdded:connect(function(Plr)
    Plr.CanLoadCharacterAppearance = false
end)

game.Players.PlayerAdded:connect(function(Plr)
Plr.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=39958537"
end)

1 answer

✓ Accepted answer

too much you dont need to turn off their chrappearance for it to work and keep them in one function here you go chance numplr to wutever player id you want

local ChrNum = 1


game.Players.PlayerAdded:connect(function(plr)
	local use = true
	plr.CharacterAdded:connect(function(chr)
		if use == true then
			use = false
			plr.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..ChrNum.."&placeId="..game.PlaceId
			wait()
			plr:LoadCharacter()
		end
	end)
end)

Randomized: (note: add player ids to the ChrNum table)

local ChrNum = {"39563808","80254","1","41837418","48705637","15861410","42943434","45001130"}


game.Players.PlayerAdded:connect(function(plr)
	local use = true
	plr.CharacterAdded:connect(function(chr)
		if use == true then
			use = false
			plr.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..ChrNum[math.random(1,#ChrNum)].."&placeId="..game.PlaceId
			wait()
			plr:LoadCharacter()
		end
	end)
end)

+1 pl0x c:

7 comments

0

dont mind that line 9 is just too long here but it wont affect if you copy and paste to rbx studio

0

if you want it random i could do that for you too

0

If you can do that i would certainly appreciate it.

0

check the answer i just did it for you

0

If you can help me with 1 more thing i'll surely be grateful.

0

I'll Upvote you if i could i need to have +1 reputation to be able to though. but i wanted to know if there's a way to clone a Model or a NPC in lighting or in my models, as a auto morph

0

well yes that is possible lemme try

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