|
| 29 Aug 2012 11:48 PM |
So this script I have checks if you are in the table; if you are, then a test message comes up in your player.PlayerGui. I change the playername accordingly to what the test server gives me. Please help!
local access = {"thedeathmaster01", "Player"}
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg:lower():sub(1,4) == "test" and access[player.Name] then hint = Instance.new("Hint", player.PlayerGui) hint.Text = "Works!" hint.Name = "testmsg" wait(5) player.PlayerGui.testmsg:Destroy() end end) end)
This item is deprecated. Do not use it for new work. |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2012 11:53 PM |
bumpity
This item is deprecated. Do not use it for new work. |
|
|
| Report Abuse |
|
|
|
| 29 Aug 2012 11:57 PM |
| This item is deprecated. Do not use it for new work. |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2012 12:01 AM |
KMXD????!?!?!?!?!?!? DOOM?!?!!?!?? PLEASE HELP1!!1!!!!!
This item is deprecated. Do not use it for new work. |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2012 12:02 AM |
Still doesn't work:
local access = {"thedeathmaster01", "Player"}
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) for _,v in pairs(access[player.Name]) do if msg:lower():sub(1,4) == "test" then hint = Instance.new("Hint", player.PlayerGui) hint.Text = "Works!" hint.Name = "testmsg" wait(5) player.PlayerGui.testmsg:Destroy() end end end) end)
This item is deprecated. Do not use it for new work. |
|
|
| Report Abuse |
|
|
|
| 30 Aug 2012 12:32 AM |
BUMP!!!!!!!!!!!!!!!!!!!!
This item is deprecated. Do not use it for new work. |
|
|
| Report Abuse |
|
|
| |
|
|
| 30 Aug 2012 12:46 AM |
dafuq??
for _,v in pairs(access[player.Name]) do |
|
|
| Report Abuse |
|
|
einsteinK
|
  |
| Joined: 22 May 2011 |
| Total Posts: 1015 |
|
|
| 30 Aug 2012 03:23 AM |
So this script I have checks if you are in the table; if you are, then a test message comes up in your player.PlayerGui. I change the playername accordingly to what the test server gives me. Please help!
local access = {"thedeathmaster01", "Player"}
function Check(name) for k,v in pairs(access) do if v:lower() == name:lower() then return true end end return false end
game.Players.PlayerAdded:connect(function(player) player.Chatted:connect(function(msg) if msg:lower():sub(1,4) == "test" and Check(player.Name) then hint = Instance.new("Hint", player.PlayerGui) hint.Text = "Works!" hint.Name = "testmsg" wait(5) player.PlayerGui.testmsg:Destroy() end end) end) |
|
|
| Report Abuse |
|
|