``Ok so first off how would i add a god mode to this script SO like you NEVER DIE :
local MarketplaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
local gamePassID = 9349044 --Replace this set of numbers with your gamepass id
function onPlayerSpawned(player)
local hasPass = false
local success, message = pcall(function()
hasPass = MarketplaceService:UserOwnsGamePassAsync(player.userId, gamePassID)
end)
-- The script below is for checking whether or not the player has the gamepass.
if not success then
warn("Error while checking if player has pass: " .. tostring(message))
return
end
if hasPass == true then
--GOD MODE
--END

3 comments
I belive the end is wrong
possibly set the player's health to math.huge?
you already asked this question?