I am making a game where only people who own the ForLag gamepass can respawn and others who don't own the gamepass will be teleported to another game here is the script I have so far written (I don't know what to write for the second varible)
local gamepass_id = 9976637 local can_respawn =
game.Players.LocalPlayer.Character:WaitForChild('Humanoid').Died:connect(function()
game:GetService("MarketplaceService"):UserOwnsGamePassAsync(player.UserId,gamepass_id) then local can_respawn = true
