if GD.bools["norecoil"] then
if wep.Recoil != 0 then
wep.OldRecoil = wep.Recoil
wep.Recoil = 0
end
if wep.Primary.Recoil != 0 then
wep.Primary.OldRecoil = wep.Primary.Recoil
wep.Primary.Recoil = 0
end
if wep.Secondary.Recoil != 0 then
wep.Secondary.OldRecoil = wep.Secondary.Recoil
wep.Secondary.Recoil = 0
end
if wep.Spread != 0.1 then
wep.OldSpread = wep.Spread
wep.Spread = 0.1
end
if wep.Primary.Spread != 0.1 then
wep.Primary.OldSpread = wep.Primary.Spread
wep.Primary.Spread = 0.1
end
if wep.Primary.Spread != 0.1 then
wep.Secondary.OldSpread = wep.Secondary.Spread
wep.Primary.Spread = 0.1
end
if wep.Cone != 0 then
wep.OldCone = wep.Cone
wep.Cone = 0
end
if wep.Primary.Cone != 0 then
wep.Primary.OldCone = wep.Primary.Cone
wep.Primary.Cone = 0
end
if wep.Secondary.Cone != 0 then
wep.Secondary.OldCone = wep.Secondary.Cone
wep.Secondary.Cone = 0
end
else
wep.OldRecoil = wep.OldRecoil or wep.Recoil
wep.Recoil = wep.OldRecoil
wep.Primary.OldRecoil = wep.Primary.OldRecoil or wep.Primary.Recoil
wep.Primary.Recoil = wep.Primary.OldRecoil
wep.Secondary.OldRecoil = wep.Secondary.OldRecoil or wep.Secondary.Recoil
wep.Secondary.Recoil = wep.Secondary.OldRecoil
wep.OldSpread = wep.OldSpread or wep.Spread
wep.Spread = wep.OldSpread
wep.Primary.OldSpread = wep.Primary.OldSpread or wep.Primary.Spread
wep.Primary.Spread = wep.Primary.OldSpread
wep.Secondary.OldSpread = wep.Secondary.OldSpread or wep.Secondary.Spread
wep.Secondary.Spread = wep.Secondary.OldSpread
wep.OldCone = wep.OldCone or wep.Cone
wep.Cone = wep.OldCone
wep.Primary.OldCone = wep.Primary.OldCone or wep.Primary.Cone
wep.Primary.Cone = wep.Primary.OldCone
wep.Secondary.OldCone = wep.Secondary.OldCone or wep.Secondary.Cone
wep.Secondary.Cone = wep.Secondary.OldCone
end
end
This is the code! I need help to fix so I can just lua_openscript_cl norecoil.lua but I keep getting lua errors I don't know how to fix it anyone know how please put it in a pastebin or replay thanks

. I got this from the leaked gdaap it's a really good but it's really shitty. I just want the norecoil to work just as a simple script whenever I shoot.