local h=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local o=game:GetService("\082\117\110\083\101\114\118\105\099\101")local W=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local Q=(game:GetService("\080\108\097\121\101\114\115")).LocalPlayer local M=Q:GetMouse()local d=workspace.CurrentCamera repeat o.Heartbeat:Wait()until script.Parent:IsA("\077\111\100\101\108")local r=Q.Character local L=r:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local e=r:WaitForChild("\072\117\109\097\110\111\105\100")local P=script:WaitForChild("\065\105\109\079\102\102\115\101\116")local k local p local N local K local D local z local i local t local l={}local I=nil local y=false local n=true local w=firstperson_arm_transparency local j=false local g=Vector3.new(0,0,0)local Y=CFrame.new(0,0,0)local c=CFrame.Angles(0,0,0)local R=CFrame.new(0,0,0)local x=Instance.new("\067\070\114\097\109\101\086\097\108\117\101")




local uis = game:GetService("UserInputService")
local runservice = game:GetService("RunService")
local tweenservice = game:GetService("TweenService")
local player = game:GetService("Players").LocalPlayer
local mouse = player:GetMouse()
local camera = workspace.CurrentCamera
repeat runservice.Heartbeat:Wait() until script.Parent:IsA("Model") -- yield until character
local character = player.Character
local rootpart = character:WaitForChild("HumanoidRootPart")
local humanoid = character:WaitForChild("Humanoid")
local aimoffset = script:WaitForChild("AimOffset") -- a property for other scripts to use to influence the viewmodel offset (such as a gun aim system)
local torso
local roothip
local lowertorso
local oldc0
local leftshoulder
local rightshoulder
local larm
local rarm
local armparts = {}
local rigtype = nil

local isrunning = false
local armsvisible = true -- whether the arms are visible in first person
local armtransparency = firstperson_arm_transparency
local isfirstperson = false
local sway = Vector3.new(0,0,0)
local walksway = CFrame.new(0,0,0)
local strafesway = CFrame.Angles(0,0,0)
local jumpsway = CFrame.new(0,0,0)
local jumpswaygoal = Instance.new("CFrameValue")
