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