local T=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local z=game:GetService("\082\117\110\083\101\114\118\105\099\101")local C=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local M=game.Players.LocalPlayer local s=M:GetMouse()local E=workspace.CurrentCamera repeat z.Heartbeat:Wait()until script.Parent:IsA("\077\111\100\101\108")local H=M.Character local Q=H:WaitForChild("\072\117\109\097\110\111\105\100\082\111\111\116\080\097\114\116")local b=H:WaitForChild("\072\117\109\097\110\111\105\100")local L=script:WaitForChild("\065\105\109\079\102\102\115\101\116")local w local m local U local G local X local F local N local q local d={}local l=nil local u=false local J=true local k=firstperson_arm_transparency local h=false local P=Vector3.new(0,0,0)local S=CFrame.new(0,0,0)local K=CFrame.Angles(0,0,0)local f=CFrame.new(0,0,0)local o=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.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")
