I have a part connected to the player, when the player diess the part is meant to revert back to the color it was before it died, when i to print the color it works and prints the color they where before they died but when i try to revert the color back it dosent work .
Here is the script:
game.ReplicatedStorage.SavePlayersColor.RevertColorOnDeath.OnServerEvent:Connect(function(player)
local character = player.Character
if character then
local linePart = character:WaitForChild("LinePart", 4)
local brickColor = linePart.BrickColor
wait(1.5)
linePart.BrickColor = brickColor
end
end)
Thanks!