local Y=CFrame.new(0,0,0)equip=true arms=(VMS:WaitForChild("\118\095\070\108\097\115\104\108\105\103\104\116\086\050")):Clone()arms.HumanoidRootPart.SpotLight.Brightness=brightness arms.HumanoidRootPart.SpotLight.Range=range arms.HumanoidRootPart.SpotLight.Shadows=shadowson arms.Parent=cam arms.Name="\065\114\109\115"run.RenderStepped:Connect(function()if equip==true and arms then arms:SetPrimaryPartCFrame(cam.CFrame*Y)end end)UIS.InputEnded:Connect(function(Y)if Y.KeyCode==Enum.KeyCode[FlashlightKey]and equip==true then if ison==true then ison=false arms.HumanoidRootPart.SpotLight.Enabled=false FlashlightGui.FlashlightOn.Visible=false FlashlightGui.FlashlightOff.Visible=true arms.HumanoidRootPart.Flashlightss:Play()else ison=true arms.HumanoidRootPart.SpotLight.Enabled=true FlashlightGui.FlashlightOff.Visible=false FlashlightGui.FlashlightOn.Visible=true arms.HumanoidRootPart.Flashlightss:Play()end end end)local s=true function onButtonPress()if s==true and equip==true then s=false if ison==true then ison=false arms.HumanoidRootPart.SpotLight.Enabled=false FlashlightGui.FlashlightOn.Visible=false FlashlightGui.FlashlightOff.Visible=true arms.HumanoidRootPart.Flashlightss:Play()else ison=true arms.HumanoidRootPart.SpotLight.Enabled=true FlashlightGui.FlashlightOff.Visible=false FlashlightGui.FlashlightOn.Visible=true arms.HumanoidRootPart.Flashlightss:Play()end wait(.75)s=true end end Con:SetImage("\070\108\097\115\104\076\105\103\104\116","\114\098\120\097\115\115\101\116\105\100\058\047\047\050\056\056\051\056\050\054\054\051\053")Con:BindAction("\070\108\097\115\104\076\105\103\104\116",onButtonPress,true,"\070");(game.Players.LocalPlayer.Character:WaitForChild("\072\117\109\097\110\111\105\100")).Died:Connect(function()equip=false ison=false arms:Destroy()end)






local maincf = CFrame.new(0, 0, 0)  

	
	
	equip = true
	arms = VMS:WaitForChild("v_FlashlightV2"):Clone()

	arms.HumanoidRootPart.SpotLight.Brightness = brightness
	arms.HumanoidRootPart.SpotLight.Range = range
	arms.HumanoidRootPart.SpotLight.Shadows = shadowson

	arms.Parent = cam
	arms.Name = "Arms"
	

	
	run.RenderStepped:Connect(function()
		if equip == true and arms then
			arms:SetPrimaryPartCFrame(
				cam.CFrame
				* maincf

				

			)
			


		end
	end)
	


UIS.InputEnded:Connect(function(input)
	if input.KeyCode == Enum.KeyCode[FlashlightKey] and equip == true then
		if ison == true then
			ison = false
			arms.HumanoidRootPart.SpotLight.Enabled = false
			FlashlightGui.FlashlightOn.Visible = false
			FlashlightGui.FlashlightOff.Visible = true
			arms.HumanoidRootPart.Flashlightss:Play()
			

		else
			ison = true
			arms.HumanoidRootPart.SpotLight.Enabled = true
			FlashlightGui.FlashlightOff.Visible = false
			FlashlightGui.FlashlightOn.Visible = true
			arms.HumanoidRootPart.Flashlightss:Play()
			

		end
	end
end)


local de = true
function onButtonPress()
	if de == true and equip == true then
		de = false
		if ison == true then
			ison = false
			arms.HumanoidRootPart.SpotLight.Enabled = false
			FlashlightGui.FlashlightOn.Visible = false
			FlashlightGui.FlashlightOff.Visible = true
			arms.HumanoidRootPart.Flashlightss:Play()


		else
			ison = true
			arms.HumanoidRootPart.SpotLight.Enabled = true
			FlashlightGui.FlashlightOff.Visible = false
			FlashlightGui.FlashlightOn.Visible = true
			arms.HumanoidRootPart.Flashlightss:Play()

		end
		
		wait(.75)
		de = true
	end
end


Con:SetImage("FlashLight", "rbxassetid://2883826635")	

Con:BindAction("FlashLight",onButtonPress,true,"F")



	
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").Died:Connect(function()
	equip = false
	ison = false
	arms:Destroy()
end)
