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 » Scripting Helpers
Home Search
 

Re: Why won't this work?

Previous Thread :: Next Thread 
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
22 Aug 2012 02:26 PM
Game.Players.PlayerAdded:connect(function( Player )
wait(5)
Player.CharacterAdded:wait()
Player.PlayerGui.ShopGui:Remove()
Player.PlayerGui.TeamChange:Remove()
Player.PlayerGui.YouBought:Remove()
Player.PlayerGui.VipGui:Remove()
Player.PlayerGui.AdvancedShopGui:Remove()
Player.PlayerGui.CreditsShop:Remove()
Player.PlayerGui.AdminPanel:Remove()
wait(5)
game.Lighting.GameObj:Clone().Parent = Player.PlayerGui
end)


I get no output...
btw: Not all of them exist, If not all of them exist will it break or will it go to the next one?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
22 Aug 2012 03:19 PM
yes, that's why we have good 'ol pcall and its friends.

Game.Players.PlayerAdded:connect(function( Player )
ypcall(function()
wait(5)
Player.CharacterAdded:wait()
Player.PlayerGui.ShopGui:Remove()
Player.PlayerGui.TeamChange:Remove()
Player.PlayerGui.YouBought:Remove()
Player.PlayerGui.VipGui:Remove()
Player.PlayerGui.AdvancedShopGui:Remove()
Player.PlayerGui.CreditsShop:Remove()
Player.PlayerGui.AdminPanel:Remove()
wait(5)
game.Lighting.GameObj:Clone().Parent = Player.PlayerGui
end)
end)

† KMXD †
Report Abuse
QuantumSama is not online. QuantumSama
Joined: 24 Jun 2011
Total Posts: 14
22 Aug 2012 03:59 PM
Player.CharacterAdded:wait() will wait foreverish if the character was added before this point. Instead do
if not Player.Character then Player.CharacterAdded:wait() end
Report Abuse
ninjaknight101 is not online. ninjaknight101
Joined: 04 Apr 2011
Total Posts: 1281
22 Aug 2012 05:00 PM
^Wow, you a mod? Like really, only 10 posts? Wow...
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
23 Aug 2012 07:44 AM
OMG i have the rare mod post with only 10 posts, tracking
Report Abuse
AdvorsusDuo is not online. AdvorsusDuo
Joined: 17 May 2012
Total Posts: 5265
23 Aug 2012 07:48 AM
Because all Roblox mods have time to forum.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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