Spectrumz
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 4338 |
|
|
| 15 Jul 2011 03:12 PM |
local permission = {"Spectrumz", "Yourname", "LOL"}
function verify(name) for i, v in pairs(permission) do if string.lower(v) == string.lower(name) then return true else return false end end end
game.Players.PlayerAdded:connect(function(p) p.CharacterAdded:connect(function(c) repeat wait() until c if verify(p.Name) == true then print("This person is in the permission table.") --Do stuff to the newly verified player local m = Instance.new("Message", p.PlayerGui) m.Text = "You are allowed." wait(3) m:Remove() else print("This person is NOT in the permission table.") end end) end)
Nothing seems wrong with it, and there's no output. |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
Spectrumz
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 4338 |
|
|
| 15 Jul 2011 03:17 PM |
@myrco
Thanks.
table.remove(permission, 3) table.remove(permission, 4) |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
Spectrumz
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 4338 |
|
|
| 15 Jul 2011 03:21 PM |
Hmmm...
For some reason it says I'm not allowed in the message.
If youf ix it I will put you back in :) |
|
|
| Report Abuse |
|
|
Spectrumz
|
  |
| Joined: 22 Mar 2011 |
| Total Posts: 4338 |
|
|
| 15 Jul 2011 03:22 PM |
fix*
I hope no one pointed that out while I was waiting for floodcheck. |
|
|
| Report Abuse |
|
|