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

(Help) CharacterOverride is not working??

Asked by 8 years ago

This script is not working.It is supposed to change the players face texture and body colour(s) whenever I run the game it gives me a breakpoint in my script.

Here is the script:

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://28257733"
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?

Answer this question