Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago

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

Log in to vote
3
Answered by 7 years ago
Edited 7 years ago

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

0
So, how do I fix it? MArzalAlBuchariZ 33 — 7y
1
Setting the BodyPosition's max y force or something should do fine. Mess around with the BodyPosition's properties, basically. User#11440 120 — 7y
0
I love it when people explain in these ways, makes you have to think for a minute. yougottols1 420 — 7y
Ad

Answer this question