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: Is it possible my regen script is ruining my game?..

Previous Thread :: Next Thread 
lukasbreki is not online. lukasbreki
Joined: 08 Mar 2010
Total Posts: 13560
03 Sep 2011 11:42 AM
It wont regen like it did at first.

And the buttons won't work.

Is there something wrong here, I can't see it..



local debounce = true


Game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "regen" and debounce == true then
debounce = false
g = game.Workspace:GetChildren()
for i=1, #g do
if g[i].Name == "Tycoon" then
x = g[i]:clone()
g[i]:remove()
wait()
x.Parent = game.Workspace
end
end
debounce = true
elseif msg == "regenvip" and debounce == true then
debounce = false
g = game.Workspace:GetChildren()
for i=1, #g do
if g[i].Name == "VIP" then
x = g[i]:clone()
g[i]:remove()
wait()
x.Parent = game.Workspace
end
end
debounce = true
end
end)
end)
Report Abuse
xvgigakid is not online. xvgigakid
Joined: 22 Jun 2008
Total Posts: 4407
03 Sep 2011 11:43 AM
game.Players
NOT
Game.Players

Nice hat Btw...
Report Abuse
lukasbreki is not online. lukasbreki
Joined: 08 Mar 2010
Total Posts: 13560
03 Sep 2011 11:44 AM
Oh, Yea. But it worked at first though..
Report Abuse
popdosprlte is not online. popdosprlte
Joined: 18 Dec 2009
Total Posts: 4801
03 Sep 2011 11:44 AM
Dear god, someone with a dominus doesn't understand basic scripting.
Report Abuse
lukasbreki is not online. lukasbreki
Joined: 08 Mar 2010
Total Posts: 13560
03 Sep 2011 11:45 AM
@Pop, You've never misspelled something?
Report Abuse
darkkiller5555 is not online. darkkiller5555
Joined: 22 Nov 2009
Total Posts: 6359
03 Sep 2011 11:45 AM
@pop, I know right. ._.
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