Anti-Fly Script

My friend recently gave me a script which checks checks if a player’s HumanoidState == Enum.HumanoidStateType.PlatformStanding. If true then kick the user.

Are there any possible downsides to this?

1 Like

The state is not required to achieve flight.

1 Like

When I use :fly the script kicks me. Can you explain more about HumanoidStateType.PlatformStanding please?

PlatformStanding detects if the Humanoid is on a part or not. For say, in real life, I was on the ground, PlatformStanding would return the character standing.

Hope this helps :grinning:

How would I replicate this in Roblox? Just fall off a part?

I’m not too sure, this is just my assumption, I don’t do much work with characters.

But try it, it may work.

Pro Tip: Don’t use platform standing, it can easily be bypassed! If you jump, PlatformStanding will turn to false; kicking the player for no reason

It can be spoofed easily. Just use height checks.

1 Like

So would this mean that if I jump, I get kicked?

2 Likes

No, when I jumped it didn’t kick me.

1 Like

Could you explain further please?

PlatformStanding is the state type for whether Humanoid.PlatformStand is true or false.

Humanoid.PlatformStand is a bool for a mode where the player is in a seated/physics state, but they cannot jump or move when its on.

The only possible downsides I see are that this is likely bypassable if the script is done cliently, where they can just delete the anti exploit, and that there are some fly scripts that don’t use Humanoid.PlatformStand. Admin command modules I know of like Adonis or Kohls definitely use it.

If you’re making a place without any high altitudes I think this might work, yet I haven’t tried it or don’t know how the script works at all. I’m just giving a concept please spare me programmers.

if player reaches above y [digit that shouldnt be obtainable in any way]
kick player

end

please tell me how someone can achieve this so i can learn too ;-;

They can use metatables to tell the server “ooh im platform standing” even though they arent