Change Camera Direction while teleporting on to Seat

  1. What do i want to achieve?

I want to teleport the player onto a seat, and the direction of the player head should change too!

  1. What is the issue?

Whenever the player is getting teleported to the seat, the camera doesn’t change, even though the players head is in the right direction! So either a script should be written that changes the camera direction, or the seat should change my camera directly (maybe I overlooked a setting)

This is the script that im using. It’s not a LocalScript and the Script is located in ServerScriptService (If thats important)

local seat = workspace.Car:WaitForChild("Seat")
local executed = false



game.Players.PlayerAdded:Connect(function(player)
	player.CharacterAdded:Connect(function()
		
		if executed == false then

			executed = true
			
			wait(5)
			
			player.Character:MoveTo(seat.Position)
			
			wait(0.1)
			
			seat:Sit(player.Character:WaitForChild("Humanoid"))
			
			print("Succesful")
		end
	end)
end)

I found the solution!

I just had to change the Cameras CFrame in a LocalScript when a RemoteEvent is fired!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.