I have a camera script which I created here.
Once an event is fired from the server, it checks to see whether the server has requested for the manipulation to be enabled, or disabled.
When the server requests for the manipulation to be disabled, the manipulation doesn't reset, and as such the player doesn't gain control of the camera.
Is there anything in the script that may be causing this?
ReplicatedStorage = game:GetService("ReplicatedStorage")
CameraEvent = ReplicatedStorage:WaitForChild("CameraEvent")
Camera = workspace.CurrentCamera
Players = game:GetService("Players")
Player = Players.LocalPlayer
function Event(status)
if status == "Stop" then
Camera.CameraSubject = Player.Character.Humanoid
Camera.CameraType = "Custom"
end
if status == "Use" then
Camera.CameraSubject = workspace.JudgeBrick
Camera.CameraType = "Scriptable"
game:GetService('RunService').Stepped:Connect(function() -- On
Camera.CFrame = workspace.JudgeBrick.CFrame
end)
end
end
CameraEvent.OnClientEvent:Connect(Event)

1 comment
Just to clarify also - I am firstly requesting for the camera to be manipulated, then for it to be reset. This happens in my server script.