-- Bind drawer opening function to remote event

lamp.BoundingBox.ROBLOXInteractionEvent.OnServerEvent:connect(function(player, arguments)
	if player.Character and player.Character:FindFirstChild("Torso") then
		local torso = player.Character:FindFirstChild("Torso")
		local toTorso = torso.Position - lamp.BoundingBox.Position
		if toTorso.magnitude < clickDistance then
			lamp.Light.PointLight.Enabled = not lamp.Light.PointLight.Enabled
		end
	end
end)
