Edit - Please Note
The issue occurs with PivotTo, as It is moving it as swell as rotating it.
Issue
When the clickdetector is clicked, the position of “Tram”…Player.Name gets changed significantly, and it also rotates. I have no idea why. I want just the orientation to change.
Script
local newCF = CFrame.Angles(0, 0, 0)
function Click(Player)
workspace:FindFirstChild("Tram"..Player.Name):PivotTo(newCF)
if Player.Character then
wait(1)
Player.Character:WaitForChild("HumanoidRootPart").Position = workspace:FindFirstChild("Tram"..Player.Name).One.VehicleSeat.Position
end
end
script.Parent.ClickDetector.MouseClick:Connect(Click)