REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 03 Jul 2012 08:53 PM |
| can someone help me make a regen script it doesn't matter if its timed or regen button as long as there's no mssg that says regen on screen pls help thanks :D |
|
|
| Report Abuse |
|
|
wazup07
|
  |
| Joined: 17 Oct 2009 |
| Total Posts: 313 |
|
|
| 03 Jul 2012 08:57 PM |
| This is fairly simple to do. This forum is for asking help. Its a simple script, why don't you give it a try and if you still cant figure it out, post your script and you will recieve help here. |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
| |
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 04 Jul 2012 10:55 PM |
Hauntedua helped me here it is local box = script.Parent local debounce = false local everything = {model} local names = {model} local children = game.Workspace:children() for i=1,#children do if (children[i].Name == "Model Name Here") then --Model name goes here! table.insert(everything, children[i]:clone()) table.insert(names, children[i].Name) end end function regen() for i=1,#everything do game.Workspace:findFirstChild(names[i]):remove() new_thing = everything[i]:clone() new_thing.Parent = game.Workspace new_thing:makeJoints() end end function onTouched(hit) local humanoid = hit.Parent:findFirstChild("Humanoid") if humanoid~=nil and debounce == false then debounce = true script.Parent.BrickColor = BrickColor.new(26) regen() wait(1) script.Parent.BrickColor = BrickColor.new(104) debounce = false end end script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
WhiteRain
|
  |
| Joined: 24 Apr 2010 |
| Total Posts: 2723 |
|
| |
|
|
| 04 Jul 2012 11:33 PM |
What the heck...
Use the enter :P
-GD987, the FPS Developer- |
|
|
| Report Abuse |
|
|
Zebabwe2
|
  |
| Joined: 18 Jun 2011 |
| Total Posts: 110 |
|
|
| 05 Jul 2012 03:52 AM |
| I can't understand the script if you dont use enter. |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 05 Jul 2012 02:05 PM |
| i justt copy paste it from inbox but im just showing u how it is |
|
|
| Report Abuse |
|
|
|
| 05 Jul 2012 02:34 PM |
| That looks waaay longer than it needs to be. |
|
|
| Report Abuse |
|
|
REM25
|
  |
| Joined: 28 Feb 2010 |
| Total Posts: 3154 |
|
|
| 05 Jul 2012 06:21 PM |
i actually dont care about the length
|
|
|
| Report Abuse |
|
|