Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do dummy pack up/take out tools?

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!

1 answer

Humanoid:EquipTool(script.Parent.Phone)

4 comments

0

Oh thanks! i'll try it.

0

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()

0

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.

0

Oh wait!! How about Unequip?

This discussion is preserved as it was. New answers, comments, and votes are closed.