of     1   

RoQuick
#184822077Saturday, March 05, 2016 11:24 PM GMT

you know how real players can equip tools just by touching them can someone tell me how to do that with an ai? I push an Ai into a tool but nothing happens, however when I touch it with my own body, I equip the tool
LegendaryAccount
#184822678Saturday, March 05, 2016 11:34 PM GMT

LuaLlama
#184824350Sunday, March 06, 2016 12:03 AM GMT

Sure can! local Npc = script.Parent local Tool = game.Workspace.Tool Tool.Parent = Npc This of course means your npc cannot use the tool without the use of some kind of remote function/event system.
Baseness
#184825308Sunday, March 06, 2016 12:19 AM GMT

RoQuick
#184825793Sunday, March 06, 2016 12:28 AM GMT

thank you guys but I have a problem and I cant seem to fix it when I touch the tool on my guy, this script works perfectly however if I push the Ai to touch this tool, it will move the Ai's arm but then it will immediately drop the tool can somebody tell me why? --welds RW, LW = Instance.new("Weld"), Instance.new("Weld") --what anim anim = "none" --onselected, save shoulders and get player script.Parent.Equipped:connect(function() wait(1) player = script.Parent.Parent local ch = script.Parent.Parent RSH = ch.Torso["Right Shoulder"] LSH = ch.Torso["Left Shoulder"] wait(1) GRP = ch["Right Arm"]:WaitForChild("RightGrip") -- RSH.Parent = nil LSH.Parent = nil -- RW.Part0 = ch.Torso RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) RW.C1 = CFrame.new(0, 0.5, 0) RW.Part1 = ch["Right Arm"] RW.Parent = ch.Torso _G.R = RW -- LW.Part0 = ch.Torso LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) LW.C1 = CFrame.new(0, 0.5, 0) LW.Part1 = ch["Left Arm"] LW.Parent = ch.Torso _G.L = LW -- GRP.C0 = CFrame.new(0, -1, 0) * CFrame.fromEulerAnglesXYZ(-1, 0, 0) --Bring_Arm_Up animation for i = 0, 1, 0.05 do wait() RW.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.3*i, 0, -0.5*i) LW.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(1.7*i, 0, 0.8*i) LW.C1 = CFrame.new(-0.3*i, 0.5+1.2*i, 0) end end)
RoQuick
#184825981Sunday, March 06, 2016 12:30 AM GMT

plz help me the ai is laughing at me and bullying me cuz i dont know how to do this
e_Scriph
#184826551Sunday, March 06, 2016 12:39 AM GMT

@ro Just clone the tool into the AI.. Thats like the simplist way ever
RoQuick
#184827294Sunday, March 06, 2016 12:50 AM GMT

i do but its completely different than if I put it into a real player the ai will not properly hold the tool and it will drop it randomly for some reason

    of     1