How to test if the player is standing on a block?
#1
Hello,

I was wondering if there was a method to check and see if the player is standing on a block.

I have tried checking the block below the player to see if it is air, but that doesn't seem to work well, since the player may be half way through the air block right above the floor.

If someone could help me out with this, that'd be great.

Thanks,
Nathan
Reply
Thanks given by:
#2
You can use the IsOnGround function ( if (Player:IsOnGround()) then )
Reply
Thanks given by:
#3
(05-11-2015, 04:32 AM)NiLSPACE Wrote: You can use the IsOnGround function ( if (Player:IsOnGround()) then )

Whoops, I guess I missed that in the documentation. Thanks!
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)