local function U()isfirstperson=true viewmodel.Parent=workspace.CurrentCamera if rigtype=="\082\049\053"then rightshoulderclone.Enabled=true leftshoulderclone.Enabled=true leftshoulder.Enabled=false rightshoulder.Enabled=false rightshoulderclone.Part1=rarm rightshoulderclone.Part0=faketorso rightshoulderclone.Parent=faketorso leftshoulderclone.Part1=larm leftshoulderclone.Part0=faketorso leftshoulderclone.Parent=faketorso armtransparency=firstperson_arm_transparency else rightshoulderclone.Enabled=true leftshoulderclone.Enabled=true leftshoulder.Enabled=false rightshoulder.Enabled=false rightshoulderclone.Part1=rarm rightshoulderclone.Part0=faketorso rightshoulderclone.Parent=faketorso leftshoulderclone.Part1=larm leftshoulderclone.Part0=faketorso leftshoulderclone.Parent=faketorso armtransparency=firstperson_arm_transparency end end

local function enableviewmodel()
	isfirstperson = true
	viewmodel.Parent = workspace.CurrentCamera
	if rigtype == "R15" then
		-- disable character joints, enable viewmodel joints
		rightshoulderclone.Enabled = true
		leftshoulderclone.Enabled = true
		-- disable real shoulders
		leftshoulder.Enabled = false
		rightshoulder.Enabled = false
		--
		rightshoulderclone.Part1 = rarm
		rightshoulderclone.Part0 = faketorso
		rightshoulderclone.Parent = faketorso
		--
		leftshoulderclone.Part1 = larm
		leftshoulderclone.Part0 = faketorso
		leftshoulderclone.Parent = faketorso
		--
		armtransparency = firstperson_arm_transparency
	else
		--
		rightshoulderclone.Enabled = true
		leftshoulderclone.Enabled = true
		-- disable real shoulders
		leftshoulder.Enabled = false
		rightshoulder.Enabled = false
		--
		rightshoulderclone.Part1 = rarm
		rightshoulderclone.Part0 = faketorso
		rightshoulderclone.Parent = faketorso
		--
		leftshoulderclone.Part1 = larm
		leftshoulderclone.Part0 = faketorso
		leftshoulderclone.Parent = faketorso
		--
		armtransparency = firstperson_arm_transparency
	end
end

