#So...
I've made this part of the script and whenever the reloading animation hits the keyframe "magout", it's supposed to clone a magazine once. thing is, each time i reload, more mags get cloned.
(e.g. I reload once, get 1 dropped magazine. i reload ten times, i get 10 dropped magazines...)
here is the code (this is a localscript btw)
if keyframe == "magout" then
local mag = Tool.Mag:Clone()
mag.Transparency = 0
mag.Parent=workspace.CurrentCamera
for _,v in pairs(mag:GetChildren()) do
if v:IsA("Weld") then
v:Destroy()
end
end
mag.CanCollide = true
Tool.Mag.Transparency = 1
wait(1)
mag:Destroy()
yes the rest of the script works, no error/warnings.
