- 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!
- 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)