So I'm trying to make a script that when a player spawns, I insert a Character into them, It kinda makes no sense. Here --
function Joke() game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) local Head = Player.Character:FindFirstChild("Head") if (Head ~= nil) then Head.BrickColor = BrickColor.new("Toothpaste") end end) end) end Joke()
I've tried it with everything. Hope I get a good answer.
Roblox is getting the head's color from the Body Colors object after you've already set it. To fix this, we can set the HeadColor property of the Body Colors rather than directly changing the head's color.
function Joke() game.Players.PlayerAdded:connect(function(Player) Player.CharacterAdded:connect(function(Character) repeat wait() until Character.Parent --Waits until the character has fully spawned local BodyColors = Character:WaitForChild("Body Colors") BodyColors.HeadColor = BrickColor.new("Toothpaste") end) end) end Joke()