|
| 20 Jun 2013 04:49 PM |
object = script.Parent if (object ~= nil) and (object ~= game.Workspace) then model = object local gui = game.StarterGui.RegenGui gui.Frame.Visible = true
backup = model:clone() -- Make the backup waitTime = 10 --Time to wait between regenerations (Change if you want!) wait(math.random(0, waitTime)) while true do wait(waitTime) -- Regen wait time
model:remove()
wait(2.5) -- Display regen message for this amount of time
model = backup:clone() model.Parent = game.Workspace model:makeJoints() gui.Frame.Visible = false end end
It was supposed to regen with a Gui and remove after 2.5 seconds. Regen works, but Gui doesn't pop up. (RegenGui) is in game.StarterGui ================================================================ object = script.Parent if (object ~= nil) and (object ~= game.Workspace) then model = object local gui = script.RegenGui gui:clone().Parent = game.StarterGui
backup = model:clone() -- Make the backup waitTime = 10 --Time to wait between regenerations (Change if you want!) wait(math.random(0, waitTime)) while true do wait(waitTime) -- Regen wait time
model:remove()
wait(2.5) -- Display regen message for this amount of time
model = backup:clone() model.Parent = game.Workspace model:makeJoints() gui:remove() end end
Everything works, but Gui doesn't remove.
|
|
|
| Report Abuse |
|
|
|
| 20 Jun 2013 04:50 PM |
| 2nd script, the gui is inside there |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
| |
|
| |
|
| |
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
| |
|
| |
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
| |
|
| |
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
| |
|
| |
|
Croze
|
  |
| Joined: 21 Mar 2010 |
| Total Posts: 449 |
|
|
| 20 Jun 2013 10:55 PM |
| Can't help on freemodels, edited or not |
|
|
| Report Abuse |
|
|
drahsid5
|
  |
| Joined: 13 May 2011 |
| Total Posts: 3937 |
|
|
| 21 Jun 2013 02:36 PM |
| have it remove the model and take the model back into workspace, nothing complex, thats about 10 lines of code. |
|
|
| Report Abuse |
|
|