#INTRO

Am i just stupid again or is this a common problem? I made a shop like in mining simulator. There are two arrows indicating that you can change your cameras focus position;

#PROBLEM

It's not adjusting the camera position for some reason? anyone got a clue?

#SCRIPT

local frame = script.Parent.ShopFrame
local nextframe = frame.RightArrow
local previous = frame.LeftArrow

wait(2)

local camera = workspace.CurrentCamera
local num = 1

script.Parent.ShopFrame.LeftArrow.Activated:Connect(function()
	local tools = game.Workspace.Shop.Items:GetChildren()
	local max = #tools
	num = num - 1
	if num < 1 then
		num = max
	end
	
	local tool = tools[num]
	print(tool.Name)
	camera.Focus = tools[num].CFrame
end)

script.Parent.ShopFrame.RightArrow.Activated:Connect(function()
print("a")
local tools = game.Workspace.Shop.Items:GetChildren()
	local max = #tools
	num = num + 1
	if num > max then
		num = 1
	end
	
	local tool = tools[num]
	print(tool.Name)
	camera.Focus = tools[num].CFrame
end)

ps. sorry if my formatting sucks I'm just tired rn