So just trying to make a button that would let u spectate any tool. Lol sorry im not very good with camera manipulation
-- Local Script -- local repl = game.ReplicatedStorage local cam = game.Workspace.CurrentCamera script.Parent.MouseButton1Click:Connect(function() if game.Workspace:FindFirstChild("Ball") then repl.Spectate:FireServer("BallWorkspace",cam) elseif not game.Workspace:FindFirstChild("Ball") then repl.Spectate:FireServer("BallPerson",cam) else repl.Spectate:FireServer("BackToPerson", cam) end end)
-
local replicated = game.ReplicatedStorage local Event = replicated.Spectate Event.OnServerEvent:Connect(function(player, check, Cam) if check == "BallWorkspace" then Cam.CameraSubject = game.Workspace:FindFirstChild("Ball").Handle Cam.CameraType = "Custom" elseif check == "BallPerson" then for i,v in pairs (game.Players:GetPlayers()) do if v.Backpack:FindFirstChild("Ball") then Cam.CameraSubject = v.Backpack:FindFirstChild("Ball").Handle Cam.CameraType = "Custom" elseif check == ("BackToPerson") then if Cam.CameraSubject == not player.Character.Humanoid then Cam.CameraSubject = player.Character.Humanoid Cam.CameraType = "Custom" end end end end end)