Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does CFrame teleport my model upside down?

My model is a horse with motors so it can run etc. I have set Primary Part to Humanoid Root Part. I am teleporting horse to a flat part named DesertSpawn

Horse. HumanoidRootPart.CFrame = DesertSpawn.CFrame and Horse:SetPrimaryPartCFrame(DesertSpawn.CFrame)

Both of these statements teleport Horse model to DesertSpawn with head down and legs up in the air. Does anyone have an idea how I can make the Horse land on its legs?

1 answer

You could do

:SetPrimaryPartCFrame(DesertSpawn.CFrame * CFrame.Angle(math.rad(0), math.rad(0), math.rad(0))

1 comment

0

The reason i do math.rad here is to tell the script i use it for angle

This discussion is preserved as it was. New answers, comments, and votes are closed.