generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: I DONT UNDERSTAND WHY NOTHING IS HAPPENING

Previous Thread :: Next Thread 
Paul_Pogba is not online. Paul_Pogba
Joined: 24 Feb 2016
Total Posts: 21
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
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
Paul_Pogba is not online. Paul_Pogba
Joined: 24 Feb 2016
Total Posts: 21
05 Aug 2016 02:53 PM
you sir are annoying AS HELL


Report Abuse
thedailyblarg is not online. thedailyblarg
Joined: 26 Feb 2012
Total Posts: 5506
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
Paul_Pogba is not online. Paul_Pogba
Joined: 24 Feb 2016
Total Posts: 21
05 Aug 2016 02:57 PM
bump


Report Abuse
Paul_Pogba is not online. Paul_Pogba
Joined: 24 Feb 2016
Total Posts: 21
05 Aug 2016 03:10 PM
bump


Report Abuse
Nitro509 is not online. Nitro509
Joined: 27 Jun 2010
Total Posts: 11170
05 Aug 2016 03:11 PM
does isAdmin return a boolean (true, false)?
Report Abuse
Paul_Pogba is not online. Paul_Pogba
Joined: 24 Feb 2016
Total Posts: 21
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 is not online. 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
Paul_Pogba is not online. Paul_Pogba
Joined: 24 Feb 2016
Total Posts: 21
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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image