so this is the code
local MarketPlaceService = game:GetService("MarketplaceService")
local Players = game:GetService("Players")
game.Players.PlayerAdded:Connect(function(plr)
local success, message = pcall(function()
local haspass = false
local gamepassID = 9794050
haspass = MarketPlaceService:UserOwnsGamePassAsync(plr.UserId, gamepassID)
if haspass == true then
local gravitycoil = plr.Backpack.GravityCoil
gravitycoil.Enabled = true
end
end)
end)
so there is a tool in starter pack and it is a gravity coil this code makes it so the coil is enabled if they bought the gamepass the gravitycoil.enable = true runs so idk if enabled works i read that it makes it unusable if it is false and i have it automatically set to false so could you tell me if im doing something wrong or a different way to do it like .activation or something like that?

1 comment
check studioplus.io