1 | local localPlayer = game.Players.LocalPlayer |
2 |
3 | -- LOW GRAVITY PASS |
4 | local hasLowGravity = game:GetService( "MarketplaceService" ):UserOwnsGamePassAsync(localPlayer.UserId, 9152138 ) |
5 | if hasLowGravity then |
6 | -- ???? |
7 | end |
So Basically, if the player has Gamepass (I have done that already) But How Would I Need to script to change a player's Gravity (not everyone's in the game)
First off, this isn't a script request site. But I will give it to you anyways.
1 | local localPlayer = game.Players.LocalPlayer |
2 |
3 | -- LOW GRAVITY PASS |
4 | local HasLowGravity = game:GetService( "MarketplaceService" ):UserOwnsGamePassAsync(localPlayer.UserId, 9152138 ) |
5 | if HasLowGravity then |
6 | game.Workspace.Gravity = 100 -- change 100 to the gravity value. |
7 | end |
Make sure the script is a Local Script and it is located it StarterCharacterScripts.