i'm trying to make a game that has races similar to rogue lineage but one of the races has a green variant and when a player joins this game and gets this race/variant the body colours look perfectly fine but after they die once the shade of green changes does anybody know how to fix this
elseif player:WaitForChild("RaceVariant").Value == "Green" then character:WaitForChild("Body Colors").HeadColor3 = Color3.fromRGB(137, 255, 124) character["Body Colors"].LeftArmColor3 = Color3.fromRGB(137, 255, 124) character["Body Colors"].LeftLegColor3 = Color3.fromRGB(137, 255, 124) character["Body Colors"].RightArmColor3 = Color3.fromRGB(137, 255, 124) character["Body Colors"].RightLegColor3 = Color3.fromRGB(137, 255, 124) character["Body Colors"].TorsoColor3 = Color3.fromRGB(137, 255, 124)
Use LocalScript and put into StarterPlayerScripts
while wait() do local player = game.Players.LocalPlayer local character = workspace:WaitForChild(player.Name) local bodycolors = character["Body Colors"] if character:FindFirstChild("Humanoid") then bodycolors.HeadColor3 = Color3.fromRGB(137, 255, 124) bodycolors.LeftArmColor3 = Color3.fromRGB(137, 255, 124) bodycolors.LeftLegColor3 = Color3.fromRGB(137, 255, 124) bodycolors.RightArmColor3 = Color3.fromRGB(137, 255, 124) bodycolors.RightLegColor3 = Color3.fromRGB(137, 255, 124) bodycolors.TorsoColor3 = Color3.fromRGB(137, 255, 124) end end
In order to get it to load on the server (For Others to See) you must use a ServerScript place this code in a normal Script inside StarterCharacterScripts
local c = script.Parent local bodycolors = c:WaitForChild("Body Colors") if c:FindFirstChild("Humanoid") then bodycolors.HeadColor3 = Color3.fromRGB(137, 255, 124) bodycolors.LeftArmColor3 = Color3.fromRGB(137, 255, 124) bodycolors.LeftLegColor3 = Color3.fromRGB(137, 255, 124) bodycolors.RightArmColor3 = Color3.fromRGB(137, 255, 124) bodycolors.RightLegColor3 = Color3.fromRGB(137, 255, 124) bodycolors.TorsoColor3 = Color3.fromRGB(137, 255, 124) end