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

I Can't Get my Auto Morpher to work?

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

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:

0
dont mind that line 9 is just too long here but it wont affect if you copy and paste to rbx studio TochiWasHere 10 — 10y
0
if you want it random i could do that for you too TochiWasHere 10 — 10y
0
If you can do that i would certainly appreciate it. thejeterman 0 — 10y
0
check the answer i just did it for you TochiWasHere 10 — 10y
View all comments (3 more)
0
If you can help me with 1 more thing i'll surely be grateful. thejeterman 0 — 10y
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 thejeterman 0 — 10y
0
well yes that is possible lemme try TochiWasHere 10 — 10y
Ad

Answer this question