I was wondering if it is possible to disable the vehicle seat’s camera.
robloxapp-20210422-0854570.wmv (1.4 MB)
See how the camera follows the player’s back. How would I be able to make it so it doesn’t follow the player’s back?
thank you
I was wondering if it is possible to disable the vehicle seat’s camera.
robloxapp-20210422-0854570.wmv (1.4 MB)
See how the camera follows the player’s back. How would I be able to make it so it doesn’t follow the player’s back?
thank you
You need to change the camera for the player, when they enter the vehicle.
For this script, you would want to do it when you sit in the vehicle, so a local script inside StarterCharacterScripts, saying
local character = script.Parent -- the player character
local humanoid = character:WaitForChild("Humanoid")
function onSeated(isSeated, seat) -- when the player sits
if isSeated then
print("I'm now sitting on: " .. seat.Name .. "!")
game.Workspace.CurrentCamera.CameraSubject = humanoid --Set the camera to the player, instead of the vehicle
else
print("I'm not sitting on anything")
end
end
humanoid.Seated:Connect(onSeated) -- when the player sits, run the function
This sets the camera on the player, instead of the vehicle itself. If that doesn’t work, please just let me know. Thanks!
Reference article: