How to make Color Changing Client-Sided?

Make a new separate script. Maybe it will work.

It should work, try checking what your output says. Create a seperate script like @LiegePalpatine
said because you might have other code that can prevent it from running.

My only other code is giving you points in a leaderstat, would that be an issue?

You can open up your output by clicking on the “View” tab and click “Output” it should send you an error if your script is not running.

It says “Unable to Cast Value to Object” in the script where I fire the event.

I think it’s referring to:


Button.BrickColor = BrickColor.new("Really red") 

Did you type that in correctly?

Well, it says the Error is in the line where I fire the Event.
I typed the color changing in right.

Perhaps this could help?
Roblox Local Parts - How to make Local Parts on Roblox

I’m not trying to make it so only the player can see the part. I’m trying to make it so the player can only see it change color.

When you are firing the event are you making sure that you are adding the player and the Button to the parameters?

Show me the screenshot of the whole code on the script.


I put the “a” value because it needs a thing in the ( )

You must pass in the player object before the “a” value.

FireClient(player, a)

Why do you need the value anyway? You was supposed to pass in the player and the button.

There is no button involved with it-

You wanted to change the color of something if the player has a badge, right?

Yes, I don’t see why there’s a button involved with it.

I was just using the button as an example, you mentioned before that you wanted to change the color of “something”, may I ask what is that “something”?

A Part.
By the way, it works now.

Yeah, then you can pass in the player object and the part, then on the client you can change the color of the part like I did with the button.

Thank you for your help, it works.

1 Like

Why did you do .BrickColor if it’s a GUI Button it’s Color3.fromrgb