So I legit have no idea what i am doing BUT. Let me try to explain. I'm trying to do it so that when a person clicks on a gui it should focus on a tool, whether it's in another players backpack or in the workspace.
script.Parent.MouseButton1Click:Connect(function(player)
if game.Players.LocalPlayer.Backpack:FindFirstChild("Tool") or workspace:WaitForChild("Tool") then
local cam = workspace.CurrentCamera
cam.CameraSubject = game.Players.LocalPlayer.Backpack:FindFirstChild("Tool") or workspace:WaitForChild("Tool")
cam.CameraType = "Follow"
end
end)
here is what i tried xd

1 comment
I posted an answer, I think my answer should help.