I'm trying to make a script which disables one script and enables another if you have own it. This is what I have:
local gamepassID = 162781083 local pp2 = game.Workspace.FreePP local pp10 = game.Workspace.MorePP game.Players.PlayerAdded:connect(function(player) if game:GetService("GamepassService"):PlayerHasPass(player, gamepassID) then print("Has 5x Gamepass") pp2.Disabled = true pp10.Disabled = false else print("No 5x Gamepass") end end)
I'm having trouble figuring out why this script won't work, can anyone help?
Well, mabey you can use destroy()
instead of Disabled? Or mabey, you can use remove()
or remove
.