Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Need help on camera manipulation on a Tool/Handle?

Asked by 5 years ago

So this is the scripts,

script.Parent.MouseButton1Click:Connect(function()
                game.ReplicatedStorage.Spectate:FireServer()
                print("Fired")
end)

Server Script

local event = game.ReplicatedStorage.Spectate

event.OnServerEvent:Connect(function(player)
                local camera = game.Workspace.CurrentCamera
            if  game.Workspace:FindFirstChild("Ball").Handle then
                    camera.CameraSubject = game.Workspace:FindFirstChild("Ball").Handle
                    camera.CameraType = Enum.CameraType.Attach
                end
end)
0
I don't see your issue eloiishot 47 — 5y
0
the issue is that the server doesn't have access to the camera theking48989987 2147 — 5y
0
ohh so i need to fire a client? WillBe_Stoped 71 — 5y

Answer this question