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

My platform position keep falling, how can I fix this?

Remember the "How-To" video series?, I tried to do the "Moving platform" part from the video, but it didn't work, the platform move perfectly, but when I try to stand on the platform, this happen: (http://gyazo.com/c8b69f17460946cf8074427f4af699e1)

Here the script too :

local model = script.Parent local platform = model.Platform local start = model.Start local finish = model.Finish local bodyPosition = platform.BodyPosition

while true do bodyPosition.Position = start.Position wait(6) bodyPosition.Position = finish.Position wait(6) end

Here also the video link : (https://www.youtube.com/watch?v=dqyJk0w2AY0)

1 answer

It's because the objecti s staying in place because it's in equilibrilum meaning the force pushing down is the same pushing up so the object has a velocity of 0.

Robloxs physics is pretty decent when distributing weight so when you land on the part the force pushing down is added with your weight and overcomes the force pushing up making the velocity of the part effectively the weight of your character.

hihi

3 comments

0

So, how do I fix it?

1

Setting the BodyPosition's max y force or something should do fine. Mess around with the BodyPosition's properties, basically.

0

I love it when people explain in these ways, makes you have to think for a minute.

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