The error for the script is: local player = game.Players.LocalPla:3: attempt to index global 'script' (a nil value) If you're wondering, number is a stringValue and upgrade is an IntValue.
local pass = 182358984
local player = game.Players.LocalPlayer
upgrade = script.Parent.Parent.TextLabel.Upgrade
number = script.Parent.Parent.TextLabel.Number
function Auth(player)
return game:GetService("GamePassService"):PlayerHasPass(player, pass)
end
script.Parent.MouseButton1Click:connect(function()
if Auth() then
upgrade.Value = 3
else
upgrade.Value = 1
end
number.Value = number.Value + upgrade.Value
end)

1 comment
I swear nothing works for this script. Can BlueTaslem answer this script please?