I have a block name floatBlock which the size is: 20, 14.5, 38.5 and it is not on can collide.
What is happening right now is when a player goes into the block the full body is fully at the top of the block, and when the player leaves the block it takes a couple more seconds to have the player stop floating.
How do I make it when the players go into the block they start floating upwards till half their body is inside the block and the other half is outside of the block. Right when they go out of the block they stop floating.
If you are asking this type of questions then please watch basic Studio tutorials before going on forums and create topics (no offense)
Script.RunContext is a property of Script (aka server script). It can be seen in a Properties window, usually located under Explorer by default thus it literally requires 0 scripting to change this property. Select your script, find RunContext and set it to Client. This will make the script running on a client (player’s device) which removes delay of applying physical effects
It didn’t work when you go out of the float block it still makes your player float then after a few seconds it makes you go back on to the floor. I fixed the height where the player is when they are floating inside the float block though.