Im trying to spawn a tack like in bloons tower defense. The tack shooter shoots out tacks around the tower. I currently am running a for loop but that is not instant, is there any other way to do this because it is affecting the dmg to the bloons.
Current code:
for _, Guns in ipairs(NPC.Tacks:GetChildren()) do
if Guns:FindFirstAncestor("Workspace") then
local Tack = game.ServerStorage.Objects.Tack:Clone()
Tack.Parent = workspace
Tack.CFrame = Guns.CFrame * CFrame.new(5, 0, 5) * CFrame.Angles(0, math.rad(210), 0)
wait()
Tack:Remove()
end
end
Any advice?