This doesn't work, how do I fix it?
local RS = game:GetService("ReplicatedStorage") RS.RemoteEvent.OnServerEvent:Connect(function(hit) local check = hit.Character:FindFirstChild("Humanoid") if check then if hit.TeamColor == ("Lime Green") then hit.TeamColor = Color3.new("Really Red") end end end)
local RS = game:GetService("ReplicatedStorage") RS.RemoteEvent.OnServerEvent:Connect(function(hit) local check = hit.Character:FindFirstChild("Humanoid") if check then if hit.TeamColor == BrickColor.new("Lime green") then --use brickcolor. notice how the second word is lowercase hit.TeamColor = BrickColor.new("Really red") --not color3 end end end)