Grove537
|
  |
| Joined: 05 Feb 2010 |
| Total Posts: 3478 |
|
|
| 30 Oct 2011 12:11 PM |
My tycoon regen script removes and replaces the factory, but new players can't use the tycoon after it has regened. Any help?
model = script.Parent.Factory backup = model:clone()
function Regen() model:remove() wait(1) model = backup:clone() model.Parent = script.Parent model:makeJoints() end
while true do wait(1.5) if script.Parent.Factory.OwnerName.Value ~= "" then if not game.Players:FindFirstChild(script.Parent.Factory.OwnerName.Value) then Regen()
end end end
Yes, I know this is for scripting helpers but they haven't helped me for hours... |
|
|
| Report Abuse |
|
|
Grove537
|
  |
| Joined: 05 Feb 2010 |
| Total Posts: 3478 |
|
|
| 30 Oct 2011 12:38 PM |
| Help forums never actually help me... :l |
|
|
| Report Abuse |
|
|
theopfor
|
  |
| Joined: 08 Feb 2011 |
| Total Posts: 11003 |
|
|
| 30 Oct 2011 12:44 PM |
Did you clear the owner value?
"Death to lazy builders. Remove the CFrame tools. Command bar all the way"~pauljkl "If it tastes bad, it's probably healthy" -RadioactiveWafflez |
|
|
| Report Abuse |
|
|
|
| 30 Oct 2011 12:49 PM |
| Hey Hey Hey, I just posted trying to help you D= |
|
|
| Report Abuse |
|
|