Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why doesn't the Animation work with the Tool out?

Asked by
Spooce 78
9 years ago

It's supposed to raise a cup to the mouth, but it doesn't move the hand that holds the cup. It only moves the other hand.

local Tool = script.Parent; enabled = true function onActivated() if not enabled then return end Tool.Handle.DrinkSound:Play() local Humanoid = Tool.Parent:FindFirstChild("Humanoid") local Drink = Instance.new("Animation") Drink.AnimationId = "http://www.roblox.com/Lift-to-Mouth-item?id=161306007" local DrinkTrack = Humanoid:LoadAnimation(Drink) DrinkTrack:Play() local ChargeTick = tick() while (tick() - ChargeTick) < 5 and MouseDown do local Tick = tick() local r, g, b = math.abs(math.sin(5 * Tick)), math.abs(math.cos(7 * Tick)), math.abs(math.cos(4 * Tick)) wait(3) enabled = true end end script.Parent.Activated:connect(onActivated)

Answer this question