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
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How do i get all children???

Previous Thread :: Next Thread 
Mr_Clockwork is not online. Mr_Clockwork
Joined: 25 Feb 2016
Total Posts: 897
12 Mar 2016 05:26 PM
Alright so I need to get everyones player gui and remove it if they dont have the gamepass, this is my script, what do you add to the else

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
if player:IsInGroup(0000000) then
print("player is in")
else

end
end)
end)
Report Abuse
supremebloxboy is online. supremebloxboy
Joined: 12 Jun 2010
Total Posts: 424
12 Mar 2016 05:28 PM
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
if player:IsInGroup(0000000) then
print("player is in")
else
player.PlayerGui.[Name of gui]:Destroy
end
end)
end)


Report Abuse
supremebloxboy is online. supremebloxboy
Joined: 12 Jun 2010
Total Posts: 424
12 Mar 2016 05:28 PM
OH nvm ignore my post


Report Abuse
Mr_Clockwork is not online. Mr_Clockwork
Joined: 25 Feb 2016
Total Posts: 897
12 Mar 2016 05:30 PM
wheres the part that gets the player?
Report Abuse
supremebloxboy is online. supremebloxboy
Joined: 12 Jun 2010
Total Posts: 424
12 Mar 2016 05:30 PM
try this



game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
if player:IsInGroup(0000000) then
print("player is in")
else
for _,v in pairs(player.PlayerGui:GetChildren()) do
v:Destroy()
end
end
end)
end)


Report Abuse
Mr_Clockwork is not online. Mr_Clockwork
Joined: 25 Feb 2016
Total Posts: 897
12 Mar 2016 05:38 PM
thxxxxxxxxxxxxxxxxx
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