Can someone help me fix my problem? I’m trying to make a coloring change to 12 parts locally (basically different to each player). Can someone send me a script that fixes the code mentioned later, and if you want you can help me clean up the code.
Make a local partcolor and try to use the Player.PlayerAdded:Connect(function(-your function-)
-your function-- give it a single color using
local partColor = game.Workspace.Part.BrickColor.(choose your color)
and try to fire the event when player is added
or try to use True or False functions in your function
I’m also currently working to solve your problem try these methods as i said
If it’s in a serverscript the changes appear for everyone. To do this locally, use a LocalScript.
Set its parent as StarterPlayer.StarterPlayerScripts then just put the code inside your event in the script; you won’t need the event in the LocalScript as it’s only going to run once on player join.
LocalScripts cannot run in workspace, so do not make the mistake of putting it there.
e.g.
local model = workspace.Model
local part1 = model.Part1
-- obviously use your paths, just an example of how you'll need to switch your defining
part.BrickColor = BrickColor.new("Really red")
This will switch the colours ONLY for the person who joined.