Hi everyone,
Recently I tried to add a reload function to my shooter NPC. Even though I got it to work somehow, the reload period between the shots are really choppy, which makes it look ugly. It also moves while reloading for some reason, even though there’s no part in the code that prompts it to move. Here’s a video demonstrating that.
And here’s the code that manages the reload period between the shots
if shots >= shotspervolley then
shots = 0
for count = 0, 40, 1 do
head.CFrame = CFrame.new(script.Parent:FindFirstChild("Head").Position, victimhead.Position)
wait(0.015)
end
end
If anyone has any advice on how to fix one or both of the issues stated above, that would be greatly appreciated