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

how can i SetPrimaryPartCFrame to Y ?

guys help me please i should setprimarypartcframe To Y ?

1 comment

0

Please put a Codebox with code if you want help.

1 answer

I think you can set the cframe to the same as you have and substract by a vector3 value with your current y position - your target y position:

part.CFrame = part.CFrame-Vector3.new(0,part.Position.Y-newYpos,0)

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