Regenerating Objects at the Click of a Button
#5
model = game.World.Ingredients
message = "Rebuilding..."

backup = model:clone()

enabled = true

link(script.Parent.Clicked, function(player, btn)
if not enabled then return end
enabled = false
script.Parent.Color = Color(127, 127, 127)

local copy = backup:clone()
model:remove()
game:message(message)
sleep(2)
game.TaskSchedulerConfusedchedule(function()
copy.Parent = game.World
copy:makeJoints()
end)
model = copy
game:message()
sleep(3)

enabled = true
script.Parent.Color = Color(0, 102, 255)
end)
(04-15-2011, 08:17 PM)Anti Wrote: Scripting
Get scripting help here, and post your scripts.

Scripting is for everything with scripting.
That includes help topics (Get scripting help here...) :3
Help is for everything else xD

K, K, whatever XP
Shiggity Shiggity Shwa
[Image: Animated.gif?t=1314294800]
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)