Color property of character parts NOT replicating to the client without a delay before execution

I am setting some properties of the character’s parts like so in a module function:

player.CharacterAppearanceLoaded:Wait()
task.wait() 
	
for i, v in character:GetChildren() do
	if v:IsA("BasePart") then
		v.Color = Color3.new(1,1,1) --white
		v.Transparency = 0.5
		end
	end

This code is called on the SERVER.

The difference between my client vs. the server’s view is as so:
image
Client
image
Server

Clearly what’s happening is the Color property is not replicating to the client on all parts except HRP and Head. (however Transparency is replicating for all parts).

However, by including a longer delay such as 1 second in the task.wait() in the code above, the issue goes away; if the delay is long enough, both properties are replicated to the client as they should be.

1 Like

Could we see the whole code snippet?

@JGBlocky

The reason why the issue goes away when you wait 1 second because by that time the character has full loaded already, is this inside of a CharacterAdded event?

1 Like

I have had this issue as well. The only solution I found was doing it using the body colors instance.

2 Likes

CharacterAppearanceLoaded is fired after CharacterAdded, right, so that would be irrelevant?

1 Like

Wait but can you show where that code is being held inside of?

1 Like

It’s in a module function which is called in another script, always after CharacterAdded.

1 Like

If adding a wait of 1 seconds works why dont you just do that?

1 Like

Well think about why I posted this.

1 Like

I mean have you tried CharacterAdded:Wait()?

1 Like

Wow this works like a charm. I wonder if they added this as a workaround to this issue perhaps?

1 Like

bodycolors will override the body part colors

1 Like

I should have known this earlier lol

Do you know if this issue with Color replication has been bug reported yet? I came across an old post from 2021 that seemed to have the exact same issue but a Roblox staff said in a reply that it had been fixed…

I don’t really know but maybe it has. Also another way to do this is by removing the body colors instance. Also the bug may have just came along again. Stuff happens and solutions are made.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.