So. Basically what I am trying to do is, when the player is in a seat they cannot move their camera but the camera only looks towards where the head is facing. I made a script and it did not work, then I tried searching it up and some still did not work,,,, anything I am doing wrong? I tried using Enum.CameraType.Follow since the wiki said that the camera moves with the subject but it will not work
game.ReplicatedStorage.LaunchEvent.OnServerEvent:Connect(function(p)
local pGui = p.PlayerGui
local button = pGui.Launch.LaunchButton
local char = p.Character or p.CharacterAdded:Wait()
local cart = game.ReplicatedStorage.Cart:Clone()
cart.Name = p.Name.."'s Cart"
cart.Parent = workspace
local seat = cart:WaitForChild("Seat")
seat:Sit(char.Humanoid)
for i = 3,1,-1 do
button.Text = i
wait(1)
end
button.Visible = false
cart.Anchored = false
seat.Anchored = false
workspace.Camera.CameraType = Enum.CameraType.Scriptable -- supposed to lock but doesnt ?
p.CameraMode = Enum.CameraMode.LockFirstPerson
char.Humanoid.JumpHeight = 0
end)
...help??

1 comment
Btw, nothing comes up in output