Help With Regeneration Script - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4) +--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13) +--- Thread: Help With Regeneration Script (/showthread.php?tid=3566) |
Help With Regeneration Script - Ming-Yan - 04-18-2011 I think it's a ROBLOX conversion error. [lua]model = game.Work.BLUE messageText = "REGEN BLUE SPIRE" message = create("Message") message.Text = messageText backup = model:clone(BLUE) while true do sleep(10) -- regenerate this model every 300 seconds message.Parent = game.Work model:remove(BLUE) sleep(4) -- display regen message for 4 seconds model = backup:clone(BLUE) model.Parent = game.Work model:makeJoints() message.Parent = nil end [/lua] RE: Help With Regeneration Script - Anti - 04-19-2011 [lua] model = game.World.BLUE -- game.World again messageText = "REGEN BLUE SPIRE" message = create("Message") message.Text = messageText backup = model:clone() -- Put nothing in clone() while true do sleep(10) -- regenerate this model every 300 seconds message.Parent = game.World -- game.World model:remove() -- Dont put anything in remove() sleep(4) -- display regen message for 4 seconds model = backup:clone() -- Dont put anything in clone() model.Parent = game.World -- game.World model:makeJoints() message.Parent = nil end [/lua] |