|
| 17 Jul 2011 10:47 AM |
| Just wondering...I suck at building. |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2011 11:17 AM |
| A button regen or a auto regen? |
|
|
| Report Abuse |
|
|
|
| 17 Jul 2011 11:18 AM |
For an auto regen here is the script
local model = game.Workspace.MyModelName
local message = Instance.new("Message") message.Text = "Regenerating "..model.Name local backup = model:clone() local regenerating = false
function regenerate() --Don't regenerate again if we're already doing it! if regenerating then return else regenerating = true end
model:remove()
-- Display the regen message for 4 seconds message.Parent = game.Workspace wait(4) message.Parent = nil
-- Put the copied model back into workspace model = backup:clone() model.Parent = game.Workspace model:makeJoints()
-- After 30 seconds, allow the model to be regenerated again wait(30) regenerating = false end
--Connect a function that regenerates the model when a player touches the button script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") then regenerate() end
|
|
|
| Report Abuse |
|
|
|
| 17 Jul 2011 11:19 AM |
| And im not gonna say wrong forum. It could get pretty messy in the scripting helpers. |
|
|
| Report Abuse |
|
|
| |
|
|
| 17 Jul 2011 11:29 AM |
| KK THAT WILL 1000 ROBUX. JUST KIDDING |
|
|
| Report Abuse |
|
|