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

CanLoadCharacterAppreance = false... Not Working?

Asked by 9 years ago

CanLoadCharacterAppreance = false

game.Players.PlayerAdded:connect(function(player)
    g = game.ReplicatedStorage.Main:Clone()
    g.Parent = player.PlayerGui
    wait(2)
    local players = game.Players:GetPlayers()
    zombie = players[ math.random(1, #players)]
    zombie.CanLoadCharacterAppearance = false 
end)






1 answer

Log in to vote
1
Answered by
BlackJPI 2658 Snack Break Moderation Voter Community Moderator
9 years ago

You're setting the property CanLoadCharacterAppearance to false AFTER the character's appearance has already been loaded. The method you are looking for is ClearCharacterAppearance. You could also load a certain appearance using LoadCharacterAppearance.

game.Players.PlayerAdded:connect(function(player)
    g = game.ReplicatedStorage.Main:Clone()
    g.Parent = player.PlayerGui
    wait(2)
    local players = game.Players:GetPlayers()
    zombie = players[ math.random(1, #players)
    zombie:ClearCharacterAppearance()
    -- You may want to change body colours or load an appearance.
end)
0
THANKS! dscpcheatsis10123 0 — 9y
Ad

Answer this question