Accesing Framework

I have a question, why is this not working?

script.Parent.Pick.ClickDetector.MouseClick:Connect(function()
	local sound = Instance.new("Sound")
	sound.Parent = script.Parent.Pick
	sound.SoundId = "rbxassetid://6196766947"
	sound.Playing = true
	script.Parent.FlashLight1.Transparency = 1
	script.Parent.FlashLight2.Transparency = 1
	script.Parent.Part.Transparency = 1
	game.Workspace.CurrentCamera.FlashLight.FlashLight1.Transparency = 0
	game.Workspace.CurrentCamera.FlashLight.FlashLight2.Transparency = 0	
	game.Workspace.CurrentCamera.FlashLight.Arm.Transparency = 0	
	game.Workspace.CurrentCamera.FlashLight.Part.Transparency = 0	
	script.Disabled = true
end)

What is it exactly you’re trying to do and what’s going wrong?
You need to be more specific…

Since I don’t know what problem it is specifically, are there any errors? If it’s a script then make it as a localscript because a framework works on clientside and serverscripts can’t directly access the client, and a mouseclick in a localscript still functions.

I actually solved it but anyway
what I was trying to do was to access the Framework model which was cloned to Camera I still don’t get it, but it’s fixed

I solved it using Object Value