addEventHandler("onPlayerLogin",getRootElement(),  
function ()  
	local account = getPlayerAccount(thePlayer) 
	if (not account or isGuestAccount(account)) then return end 
		local accountName = getAccountName(account) 
		local team = getPlayerTeam (thePlayer)
		if (team) then
		if (getTeamName(team) == "Staff Team") then
			if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then 
				if getElementData(thePlayer,"invincible") then 
					setElementData(thePlayer,"invincible",true) 
				else 
					setElementData(thePlayer,"invincible",false) 
				end	
			end 
		end 
	end 
end
)
	As the title says, while googling and with my small experience, I came up with this script, all I want is to be GODMODE when sat to "Staff Team" ((((StaffTeam = createTeam ( "Staff Team", 255, 255, 255 ) ))))) Once I leave staffteam Godmode turns off. Once I enter it, Godmode turns on.
 
	 
 
	This code doesn't work... :3