game.Workspace.CaseD.Touched:connect(function(User)
wait(.5)
if User.Parent:FindFirstChild("Humanoid") then
local Player = game.Players:GetPlayerFromCharacter(User.Parent)
if Player.TeamColor == "Bright bluish green" and KF.Value == false then
KF.Value = true
script.Parent.ServerEffects.Flag:Clone().Parent = User.Parent.Head
end
end
end)
14:04:35.247 - Workspace.ServerScripts.MasterScript:42: attempt to index local 'Player' (a nil value) 14:04:35.248 - Stack Begin 14:04:35.249 - Script 'Workspace.ServerScripts.MasterScript', Line 42 14:04:35.249 - Stack End

3 comments
But now if the player has the right team and the value is false he doesnt get the effect.
TeamColor is a BrickColor value, not a string
Oh yeah. Didnt see it :/