Regenerating Objects at the Click of a Button
#1
On my drinks making game, there are two regenerating buttons- one to regenerate the cup (which works), and one to regenerate the Ingredients (which doesn't work).

I've checked the scripts, they are both the same (aside from the model name, of course) but only one works. The model name in the "world" is the same as the model name stated in the script.

Anyone got any help?
Shiggity Shiggity Shwa
[Image: Animated.gif?t=1314294800]
Reply
#2
Post the script please? :3

Oh, and you should post these topics to Scripting

Oh, and if you dont want to publish the script, just send me a PM D:
[Image: 76561198036192536.png][Image: Ava2.gif]
AntiBoomz0r @ roblox,xfire
AntiBoomz @ minecraft
MiikaFTW @ steam
Reply
#3
1. Okay

2. No, It's in help cos' I need help.

3. Nah, I'll post it here, just lemme get it
Shiggity Shiggity Shwa
[Image: Animated.gif?t=1314294800]
Reply
#4
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
[Image: 76561198036192536.png][Image: Ava2.gif]
AntiBoomz0r @ roblox,xfire
AntiBoomz @ minecraft
MiikaFTW @ steam
Reply
#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
#6
I dont think that the ingredient parts are actually in Ingredients model... >_>

Oh, and when you regen the cup, the items in it will just fall down, but wont get removed Big Grin
[Image: 76561198036192536.png][Image: Ava2.gif]
AntiBoomz0r @ roblox,xfire
AntiBoomz @ minecraft
MiikaFTW @ steam
Reply
#7
The ingredients are part of a model, named Ingredients.

And yah, I have to work on that too Tongue
Shiggity Shiggity Shwa
[Image: Animated.gif?t=1314294800]
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)