Color changing parts on tool not working

Trying to make a color changer for certain parts of the weapon/tool.

When I first load into the game the script runs and works fine but when I recall the remotefunction it does not work for some reason.

LocalScript:

wait(1)
local color = game.Players.LocalPlayer.PlayerData.WepColor
local event = script.RemoteEvent

function runEvent()
	event:FireServer()
end

runEvent()
color.Changed:Connect(runEvent)

ServerScript:

local event = script.Parent

event.OnServerEvent:Connect(function(player)
	
	print("recieved")
	
	local color = player.PlayerData.WepColor
	local x = script.Parent.Parent.Parent.Model.Color:GetChildren()
	
	print(x)
	for _, child in pairs(x) do
		child.Color = color.Value
	end

end)

turns out im dumb and didnt change the value ever :wink:

1 Like