local Player = game.Players.LocalPlayer script.Parent.TeamSelect.PoliceButton.MouseButton1Click:Connect(function() game.ReplicatedStorage.RemoteEvents.TeamSelected:FireServer(Player,BrickColor.new("Electric blue")) end) script.Parent.TeamSelect.PrisonerButton.MouseButton1Click:Connect(function() game.ReplicatedStorage.RemoteEvents.TeamSelected:FireServer(Player,BrickColor.new("Neon orange")) end)
I have this local script.
game.ReplicatedStorage.RemoteEvents:WaitForChild("TeamSelected").OnServerEvent:Connect(function(Player,TeamColor) Player.TeamColor = TeamColor Player:LoadCharacter() end)
and this Server script. 15:33:53.611 ServerScriptService.GameLogic:48: invalid argument #3 (BrickColor expected, got Instance) I got this error. Please fix it.