function createShell()
local Shell = Instance.new("Part")
Shell.Position = Handle.Mag.Position + Vector3.new(0,0,0)
Shell.Orientation = Handle.Orientation
Shell.Size = Vector3.new(0.07,0.15,0.07)
Shell.Color = Color3.fromRGB(245, 205, 48)
Shell.Parent = game.Workspace
Shell.Name = "Shell"
wait(5)
Shell:Destroy()
end
while true do
wait(0.15)
if IsShooting == true and Clip > 0 then
Shoot:FireServer(IsShooting)
createShell()
end
end
ok so i tried to make a automatic smg but when i fire the gun, it waits 5 seconds to delete the shell then the gun fires.
how do i bypass the cleaning time ?

1 comment
Please mark answer as accepted if it helps