Help with getting body force to work when player stands on ground/touches anything as it would work while mid air

Some months ago I searched all forums for answer on my question, about how to make water push player, so I I find script later, was modifying it but it didn’t seem to work normally without any bugs, which replace each other when I’m trying to fix them.
I need so when player is inside of part, they get pushed in customizable way, so I can make working river for example with some parts. Player also must be pushed the same speed and force as if they were mid air.
Im a novice scripter, my scripts usually have many bugs and problems, but i can edit scripts and read them, so keep it in mind please, and also I won’t answer for around 15 or 16 hours because rn its almost mid night, and tomorrow i have school.
Thanks

If you know what part they are inside, you could use GetPartsInBound() and query the player. Then if the player is inside the area, you could apply a force based off a pre determined direction.

Lmk if you have any more questions :slight_smile:

ty, i didnt expect somebody to answer that fast. I didnt know GetPartsInBound() exists, i think it will surely help me, but last question is there any way i can keep the speed from force on ground, like if player was mid air? From my tests, which i made when was doing few months ago, i remember that speed get smaller when player touches ground, so is there any parameter for force that i can make so it pushes player stronger, but its limited speed, instead of increasing over and over?
Sorry for my bad English lol

What do you mean by keeping the speed from force on the ground? Do you mean the acceleration towards the ground?

well its hard to explain, so in short i noticed that force stop working/gets the speed much smaller if player stands on ground

Could you show an example video of what’s going on so I can get a clearer picture of the problem?

sadly im currently in bed with phone, so i cant access studio, just typing topic to get answer to a question i had few months ago and remembered just now, as noticed that im now member in forum. Other reason i wrote the topic now, not tomorrow is im gonna be busy tomorroe so i won’t have much time to wait for answers

1 Like

now im going to sleep, cause otherwise i would have less than 6 hours sleep, eh
Thanks if you will find out what i mean by force getting smaller or fully stopping while player touches ground by yourself and find way to bypass/change that so i can have working water flow.

1 Like