script.Parent.Touched:Connect(function(hit)
--Check for PLAYER
if hit.Parent:FindFirstChild("Humanoid") then
--Find out what team the player is on
local Player = game.Players:GetPlayerFromCharacter(hit)
--Execute code
if Player.Team == "Evils" then
script.Parent.Transparency = 1
script.Parent.CanCollide = false
end
end
end)
I do not understand at all what happened, the team is perfectly valid
Also here is the error: 20:33:49.301 - Workspace.Map1.EssenceModel.Essence.Script:11: attempt to index nil with 'Team' It's line 11 which just says end
Can someone explain please?

3 comments
Put this in a code block please
Done, sorry
Well i guess this will not be answered... ;(