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

camera script won't work :(?

Asked by 9 years ago
local player = game.Players.LocalPlayer
local Camera = workspace.CurrentCamera
scorer = workspace.Goals.Ball.LastKick
while true do 
Camera.CameraSubject = game.Players:FindFirstChild(scorer.Value).Character.Humanoid
Camera.CameraType = "Watch"
    wait(10) -- it works perfectly until this point
Camera.CameraSubject = game.Players.LocalPlayer.Character:FindFirstChild("Humanoid")
script.Disabled = true
end

what this script is suppose to do is when this script is true, it will make all the players view the same camera as scorer.Value and its suppose to bring back the regular players cameras after 10 seconds. It works however it doesnt bring back the regular players cameras, it just keeps showing the same camera as scorer.Value please help me !

1 answer

Log in to vote
0
Answered by 9 years ago

After line 8 add this:

Camera.CameraType = "Custom"
Ad

Answer this question