How to make NPC shoot at player

event.OnServerEvent:Connect(function(player, mousePosition)
	new:setFilter()
	new:shoot(player, mousePosition)
end)

this script is inside a gun script, like usual we get the mouse position and shoot there

obviously an NPC doesnt have a mouse so how would I make it so it shoots at the player it wants to shoot.

1 Like

found out you can just set the position of the player youre trying to shoot

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.