local C=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local h=game:GetService("\082\117\110\083\101\114\118\105\099\101")local g=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local r=(game:GetService("\080\108\097\121\101\114\115")).LocalPlayer local I=r:GetMouse()local u=workspace.CurrentCamera repeat h.Heartbeat:Wait()until script.Parent:IsA("\077\111\100\101\108")local e=r.Character local j=e:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local c=e:WaitForChild("\072\117\109\097\110\111\105\100")local S=script:WaitForChild("\065\105\109\079\102\102\115\101\116")local G local l local k local Y local i local T local b local z local K={}local M=nil local P=false local f=true local L=firstperson_arm_transparency local E=false local a=Vector3.new(0,0,0)local F=CFrame.new(0,0,0)local R=CFrame.Angles(0,0,0)local d=CFrame.new(0,0,0)local U=Instance.new("\067\070\114\097\109\101\086\097\108\117\101")
--//////// DO NOT EDIT BELOW UNLESS YOU KNOW WHAT YOU'RE DOING \\\\\\\\\\\\\\\\\\\\\\\\\

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")
