0

# how to get a npc to activate a tool?

Edited 10 days ago

im trying to create a npc that uses a staff this is my script:

local staff = script.Parent.BoonStaff
local rarm = script.Parent:FindFirstChild("Right Arm")
local larm = script.Parent:FindFirstChild("Left Arm")

function dmg(hit)
if hit.Parent ~= nil then
local hum = hit.Parent:findFirstChild("Humanoid")
if hum ~= nil then

part that activates the tool should be here

end
end
end

rarm.Touched:connect(dmg)
larm.Touched:connect(dmg)


im looking for maybe a property of the tool that i can put as true or something