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

How to make a NPC activate a tool?

If you put a tool / weapon inside of a NPC they will carry it around but never use it. I was wondering how I could get a NPC to use the sword I gave it. (When I say activate a tool, I mean like when you click with the tool equipped.)

1 answer

✓ Accepted answer
local tool = script.Parent;

tool.Activated:Connect(function()
	--code here
end)

if conditional then --put a conditional here
	tool:Activate()
end

2 comments

1

Thanks! I can't like yet, so this is the closest thing i can get.

1

good answer

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