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

How would I go about keeping a part on the y axis?

I cant get a bodyforce or bodygyro to be powerful enough to keep parts in place - thanks

2 comments

0

You just change its MaxForce. to be infinite on the Y-Axis

0

Thx ill try that.

2 answers

✓ Accepted answer

I would have a variable that stores the y-axis from beggining, then have:

if part.CFrame.Y ~= startY then
	part.CFrame.Y = startY
end

startY would be a variable set at the beggening that stores the beggining y-axis.

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