|
| 05 Aug 2016 02:51 PM |
local pp = game.Players:GetPlayers() game.Players.PlayerAdded:connect(function(p) if isAdmin(p.Name) then p.Chatted:connect(function(msg) if msg=="!formation" then for _,v in pairs (pp) do v:WaitForChild("PlayerGui") if v:FindFirstChild("PlayerGui") then v.PlayerGui.Formation.Output.Visible = true wait(25) v.PlayerGui.Formation.Output.Visible = false end end end end) end end)
0% errors in output window 100% frustration
Please please please help.
|
|
|
| Report Abuse |
|
|
|
| 05 Aug 2016 02:52 PM |
| 'try to understand what this does even though i give you no information and pay a lot of attention to me because of my caps lock powers of wizardry' |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2016 02:53 PM |
you sir are annoying AS HELL
|
|
|
| Report Abuse |
|
|
|
| 05 Aug 2016 02:55 PM |
| Ok, so you expect nothing after spamming the forum a multitude of times about the same thing just because you don't understand? That is not my problem buddy :) |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Nitro509
|
  |
| Joined: 27 Jun 2010 |
| Total Posts: 11170 |
|
|
| 05 Aug 2016 03:11 PM |
| does isAdmin return a boolean (true, false)? |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2016 03:13 PM |
Well there's another function for isAdmin() which is here:
function isAdmin(name) for i,v in pairs(admin) do if name:lower() == v:lower() then return true end end return false end
|
|
|
| Report Abuse |
|
|
Nitro509
|
  |
| Joined: 27 Jun 2010 |
| Total Posts: 11170 |
|
|
| 05 Aug 2016 03:15 PM |
function isAdmin(name) for i,v in pairs(admin) do if name:lower() == v:lower() then return true else return false end end end
|
|
|
| Report Abuse |
|
|
|
| 05 Aug 2016 03:17 PM |
Eh still don't work but thank you for tryin to help. I'm almost certain the problem is in the main part of the script. Btw it's in a normal script and FilteringEnabled is disabled.
|
|
|
| Report Abuse |
|
|
Nitro509
|
  |
| Joined: 27 Jun 2010 |
| Total Posts: 11170 |
|
|
| 05 Aug 2016 03:18 PM |
local pp = game.Players:GetPlayers() local Player = pp.LocalPlayer
game.Players.PlayerAdded:connect(function(p) Player = p end)
Player.Chatted:connect(function(msg) if msg=="!formation" then for _,v in pairs (pp) do v:WaitForChild("PlayerGui") if v:FindFirstChild("PlayerGui") then v.PlayerGui.Formation.Output.Visible = true wait(25) v.PlayerGui.Formation.Output.Visible = false end end end)
|
|
|
| Report Abuse |
|
|