Need help with gamepass

Hello everyone! I’ve been trying to make a low gravity game pass but I can’t seem to figure it out. I have looked everywhere but can’t find anything. If anyone can help it would be very nice!

LocalScript inside of ReplicatedFirst. Assuming you only want the player who owns the gamepass to have low gravity this should work.

local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local DesiredGravity = 0
local GamepassId = 0

if MarketplaceService:UserOwnsGamePassAsync(Players.LocalPlayer.UserId, GamepassId) then
     workspace.Gravity = DesiredGravity