--stuff

local tool = script.Parent
local remote = tool:WaitForChild("gunremote")
local gunmodel = tool.GunModel
local handle = gunmodel:FindFirstChild("Handle")
local mainpart = gunmodel:FindFirstChild("mainpart")
local owner = players.LocalPlayer
local ownergui = owner:FindFirstChildOfClass("PlayerGui")
local cam = workspace.CurrentCamera
local mouse = owner:GetMouse()
local character
local humanoid
local head
local hrp
local larmcweld
local rarmcweld
local guncweld
local guncmodel
local maincpart
local boltcweld
local boltcmainpart
local gunclufa
local magcmodel
local reloadmagcmodel
local reloadmagcpart
local reloadmagcweld
local viewmodel
