I need to add god mode but a gamepass\
**local MarketPlaceService = game:GetService("MarketPlaceService ") local PlayerBoughtThisGamePass = MarketPlaceService.UserOwnsGamePassAsync(Userid, GamePassiD) if PlayerBoughtThisGamePass then --THE GOD MODE end**
This should work:
game.Players.PlayerAdded:Connect(function(plr) local PlayerHassPass = game:GetService("MarketPlaceService").UserOwnsGamePassAsync(plr.UserId, Gamepassidhere) if PlayerHasPass then plr.CharacterAdded:Connect(function(char) local hum = char:WaitForChild("Humanoid") hum.MaxHealth = math.huge hum.Health = MaxHealth end) end end)
At MarketPlaceService you did .UserOwnsGamePassAsync it is :UserOwnsGamePassAsync
local MarketPlaceService = game:GetService("MarketPlaceService ") local PlayerBoughtThisGamePass = MarketPlaceService:UserOwnsGamePassAsync(Userid, GamePassiD) if PlayerBoughtThisGamePass then --THE GOD MODE end