|
| 03 Dec 2011 02:08 PM |
local tycoon = script.Parent.Factory:Clone() local m = Instance.new("Hint") m.Text = "Welcome to Zoo Tycoon 3! Version 3.7" m.Parent = game.Workspace
script.Parent.Factory.Owner.Changed:connect(function() while true do wait() local owner = game.Players:findFirstChild(script.Parent.Factory.Owner.Value) if owner == nil and m ~= nil then script.Parent.Factory:Remove() wait(1) local newTycoon = tycoon:Clone() newTycoon.Parent = script.Parent newTycoon:MakeJoints() script.Disabled = true wait(.1) script.Disabled = false break end end end)
The tycoon regens, but then after a while it breaks and won't regen. Someone please help me! |
|
|
| Report Abuse |
|
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 03 Dec 2011 02:10 PM |
| Does the hint ever get removed? |
|
|
| Report Abuse |
|
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 03 Dec 2011 02:11 PM |
*Reads three more lines down*
script.Disabled = true wait(.1)
Wat.
If this script doesn't get reenabled (by ANOTHER script, since it stops running at all at this pont), the script's going to stop right there. |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2011 02:11 PM |
Bump.
And for more info...
One whole tycoon is just called,"Tycoon". Inside it, is another model called,"Factory" Still inside "Tycoon" this script is there and it won't regen. |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2011 02:13 PM |
| Well, I'm not such a good scripter. So i don't know how to edit it good enough. |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2011 02:13 PM |
script.Disabled = true wait(.1) script.Disabled = false
Once the script is disabled, it stops running until it's enabled again. You can't enable it from the same script, it has to be done with another script. |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2011 02:14 PM |
| So do you guys know how to do this? It came with the tycoon kit I had but this is the only part that doesn't work. |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2011 02:16 PM |
| It doesn't need to be disabled, remove the lines that disable and enable it. |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2011 02:16 PM |
| Ok, I'll try it and see if it works out. |
|
|
| Report Abuse |
|
|