Hello! Whats wrong with it?
local StuckCamera
local CFrameCamera
game.ReplicatedStorage.StickCFrame.OnClientEvent:Connect(function(Bool)
if Bool then
CFrameCamera = Camera.CFrame
OutdoorCamera:Disconnect()
OutdoorCamera = nil
StuckCamera = RunService.RenderStepped:Connect(function()
Camera.CFrame = CFrameCamera
end)
else
StuckCamera:Disconnect()
StuckCamera = nil
end
end)
game.ReplicatedStorage.GoingOutsideCamera.OnClientEvent:Connect(function()
local OutsideStickCamera = RunService.RenderStepped:Connect(function()
Camera.CFrame = CFrameCamera
end)
end)
When GoingOutsideCamera fires, the camera doesn’t work properly.
If you can help, please let me know. Thanks! WE