I just give Dummy a Phone, And i want He do a playing phone animation when he idle. But when he do taking order animation(He is waiter), i wanna he pack up his phone. What should i do? And here is my code.
local Dummy = game.Workspace.BurgerCashier1.Humanoid local Phone = game.Workspace.BurgerCashier1.RoPhone game.Workspace.BurgerCashier1.Head.Dialog.DialogChoiceSelected:connect(function(player,choice) if choice.Name ~= "Nevermind" then if choice.Name ~= "Yes" then local Animation = Instance.new("Animation") Animation.AnimationId = "rbxassetid://1746550257" local Play = Dummy:LoadAnimation(Animation) Play.Looped = false Play:stop() Play:play() wait(3.2) --This is about he taking order. else local Animation = Instance.new("Animation") Animation.AnimationId = "rbxassetid://619511648" local Play = Dummy:LoadAnimation(Animation) Play.Looped = true Play:stop() Play:play() --This is about he playing phone. end end end)
Thank you!
Humanoid:EquipTool(script.Parent.Phone)