So, long story short, I have a script that manipulates each player's camera when they first spawn into my game; however, something about this makes it impossible for the user to move their cursor around (rather, it's just stuck in the middle of the screen, similarly to when you are in first person). Is there a way to fix this issue while still locking the player's camera angle to a specific spot?
Here is some of my code to show what exactly I do.
local cam = workspace.CurrentCamera
local player = game.Players.LocalPlayer
game.Workspace.CurrentCamera.CameraType = "Fixed"
player.CameraMaxZoomDistance = 0 -- This may be causing the issue.
player.PlayerGui.EntranceGUI.Title.Visible = true
function onClicked(GUI)
local window = player.PlayerGui.EntranceGUI
window:remove() -- Removes the starting GUI
game.Workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
game.Workspace.CurrentCamera.CameraType = "Custom"
player.CameraMaxZoomDistance = 100
game.Workspace.IntroMusic:Stop()
end
player.PlayerGui.EntranceGUI.Resume.ResumeImage.MouseButton1Click:connect(onClicked)

2 comments
Thanks so much! Is there a way to make the camera focus on a particular object while in "Scriptable" mode?
@corncob567 You could change the camera's cframe using CFrame.new(position,focus) both of which being vector3s