• This isn't working! :( PlayerSay script
    4 replies, posted
  local adminGroups = {     ["superadmin"] = true,     ["senioradmin"] = true,     ["admin"] = true,     ["moderator"] = true     -- more..   } hook.Add( "PlayerSay", "StaffArea", function( ply, text, public ) if ( string.lower( text ) == "!staffonduty" ) and adminGroups[ply:GetNWString("usergroup")] then ply:SetPos(Vector(-13252.610352, -4806.537109, 12207.473633)) ply:GodEnable() return "" end end ) hook.Add( "PlayerSay", "StaffArea2", function( ply, text, public ) if ( string.lower( text ) == "!staffoffduty" ) and adminGroups[ply:GetNWString("usergroup")] then ply:SetPos(Vector(11575.844727, -1995.730591, 146.373474)) ply:GodDisable() return "" end end ) 
No lua errors, nothing. Not sure why this happens.
Try to change return "" to return end
Sorry, you need to Log In to post a reply to this thread.