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!

4 comments
Oh thanks! i'll try it.
Im referencing the phone as if its a tool inside the character model. and the script is inside the Character model too. Just remember Humanoid:EquipTool()
Wouldn’t the tool already be equipped if it was directly inside the character? Also the wiki said :EquipTool() only works on humanoids associated with players.
Oh wait!! How about Unequip?