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: Regeneration Script Broken

Previous Thread :: Next Thread 
Temprist is not online. Temprist
Joined: 28 Aug 2010
Total Posts: 10060
03 Jun 2017 08:34 PM
This regen script is inside of a model that is supposed to regenerate when the value Regen is equal to 4. But, whenever it regens, it creates two copies of the model, and the next time it regens, 3 copies, and so on.

object = script.Parent
if (object ~= nil) and (object ~= game.Workspace) then
model = object
backup = model:clone()
while true do
wait(1)
if game.Workspace.Regen.Value == 4 then
model:remove()
wait(0.5)
model = backup:clone()
model.Parent = game.Workspace
model:makeJoints()
end
end
end


How would I fix this?




Report Abuse
Temprist is not online. Temprist
Joined: 28 Aug 2010
Total Posts: 10060
03 Jun 2017 09:20 PM
Bump :(


Report Abuse
IlluminatiCat is not online. IlluminatiCat
Joined: 21 Feb 2009
Total Posts: 1216
03 Jun 2017 09:21 PM
Are you regening the script too perhaps?
Report Abuse
Temprist is not online. Temprist
Joined: 28 Aug 2010
Total Posts: 10060
03 Jun 2017 09:27 PM
Ah... Yeah, that's a good point.

I added it to the workspace and edited it a bit, but now it's not working at all.


object = game.Workspace.Build
if (object ~= nil) then
model = object
backup = model:clone()
while true do
wait(1)
if game.Workspace.Regen.Value == 4 then
model:remove()
wait(0.5)
model = backup:clone()
model.Parent = game.Workspace
model:makeJoints()
game.Workspace.Regen.Value = 0
end
end
end



Report Abuse
Temprist is not online. Temprist
Joined: 28 Aug 2010
Total Posts: 10060
03 Jun 2017 10:01 PM
Nvm, I temporary disabled the script and forgot to enable it again. I'm dumb, lmao

Thanks for the help @IlluminatiCat


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