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

My random skins starts wrong in my game, How?

Asked by 7 years ago
Edited 7 years ago

I made a random game skin, but if a player joins his still in his normal skin. Only if he reset his character... What do I wrong?

game.Workspace.ChildAdded:connect(function(plr)
local name = plr.Name
local playerinplayers = game.Players:FindFirstChild(plr.Name)
if playerinplayers ~= nil then
playerinplayers.CanLoadCharacterAppearance = false
plr.Head.face.Texture = "rbxassetid://31117267"
local bodycolors = Instance.new("BodyColors", plr)
bodycolors.RightArmColor = BrickColor.new("Pastel brown")
bodycolors.LeftArmColor = BrickColor.new("Pastel brown")
bodycolors.LeftLegColor = BrickColor.new("Dark stone grey")
bodycolors.RightLegColor = BrickColor.new("Dark stone grey")
bodycolors.TorsoColor = BrickColor.Random()
bodycolors.HeadColor = BrickColor.new("Pastel brown")
end
end)

Thanks!

-Gamer_io

1
You spelled end wrong OldPalHappy 1477 — 7y
0
Try Clearing the character appearance aswell IcedVapour 153 — 7y

Answer this question