So say if i put a AI script inside the NPC, How would i make it do same actions as the player? The thing it uses to attack is in Its Head as a Folder named "Container" and it has the model/item it uses to attack
ex. The player can punch using the item, so how would i make the NPC do the same?
local plr = game:GetService("Players").LocalPlayer
repeat
wait()
until plr.Character and plr.Character.Humanoid
local chr = plr.Character
local human = chr.Humanoid
local hrp = chr.HumanoidRootPart
mouse = plr:GetMouse()
cam = workspace.CurrentCamera

3 comments
give the same animation to the NPC as you gave to the player.
uh i have the animations in the model in its humanoid root prat
i basically just need it to do the moves and stuff