EmperorD
|
  |
| Joined: 31 Jan 2012 |
| Total Posts: 386 |
|
|
| 26 Jan 2015 01:16 PM |
local clearance = { "EmperorD" } local start = "startapps" local stop = "stopapps"
local function checkClearance(name) for i = 1,#clearance do if (string.upper(name) == string.upper(clearance[i])) then return true end end return false end
local function onMessaged(msg, recipient, speaker) local source = string.lower(speaker.Name)
if msg == start or msg == stop then
if (checkClearance(source)) then
if msg == start then script.Parent.Visible = true end if msg == stop then script.Parent.Visible = false end
end
end end
function onPlayerJoin(newPlayer) newPlayer.Chatted:connect(function(msg, recipient) onMessaged(msg, recipient, newPlayer) end) end
game.Players.ChildAdded:connect(onPlayerJoin)
"Intellectuals solve problems, geniuses prevent them." |
|
|
| Report Abuse |
|
|
| 26 Jan 2015 01:18 PM |
| when you're doing something locally you don't use PlayerAdded |
|
|
| Report Abuse |
|
EmperorD
|
  |
| Joined: 31 Jan 2012 |
| Total Posts: 386 |
|
|
| 26 Jan 2015 02:56 PM |
No luck, still nothing
"Intellectuals solve problems, geniuses prevent them." |
|
|
| Report Abuse |
|