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: Fix This Script?

Previous Thread :: Next Thread 
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
17 Apr 2012 02:30 PM
I need it so when you die the shop gui doesn't go away.

BadgeID = 77763769
function onNewPlayerEntered(newPlayer)
if game:GetService("BadgeService"):UserHasBadge(newPlayer.userId, Badge) then
game.Lighting.ShopGuiAdvanced:clone().Parent = newPlayer.PlayerGui
Report Abuse
jawa280 is not online. jawa280
Joined: 26 Jun 2007
Total Posts: 453
17 Apr 2012 06:03 PM
You are either missing the end for the functions and the end for the if statement, or forgot to copy them.

If you did,
BadgeID = 77763769
function onNewPlayerEntered(newPlayer)
if game:GetService("BadgeService"):UserHasBadge(newPlayer.userId, Badge) then
game.Lighting.ShopGuiAdvanced:clone().Parent = newPlayer.PlayerGui
end
end
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
17 Apr 2012 06:12 PM
what would the end function be?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
17 Apr 2012 06:13 PM
Game.Players.PlayerAdded:connect(onNewPlayerEntered)

† KMXD †
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
17 Apr 2012 07:43 PM
doesnt work help
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
17 Apr 2012 07:50 PM
BadgeID = 77763769

Game.Players.PlayerAdded:connect(function(newPlayer)
if Game:GetService("BadgeService"):UserHasBadge(newPlayer.userId, BadgeID) then
game.Lighting.ShopGuiAdvanced:Clone().Parent = newPlayer.PlayerGui
end
end)

?

† KMXD †
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
17 Apr 2012 08:22 PM
"ShopGuiAdvanced is not a valid member of lighting"
It is inside lighting...
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
17 Apr 2012 08:23 PM
BadgeID = 77763769
Game.Players.PlayerAdded:connect(function(newPlayer)
if Game:GetService("BadgeService"):UserHasBadge(newPlayer.userId, BadgeID) then
game.Lighting:FindFirstChild("ShopGuiAdvanced"):Clone().Parent = newPlayer.PlayerGui
end
end)

† KMXD †
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
17 Apr 2012 08:28 PM
Thanks for the help, it works :D!!! i owe you man been trying to figure this out for three hours.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
17 Apr 2012 08:40 PM
Haha, no problem.

† KMXD †
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
18 Apr 2012 11:46 AM
Is there a way to make it so when you die it doesn't go away?
Report Abuse
epicpatrick123 is not online. epicpatrick123
Joined: 08 Sep 2010
Total Posts: 15039
18 Apr 2012 12:10 PM
while true do won't work
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
18 Apr 2012 02:45 PM
I PM'ed you back.

† KMXD †
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