Hello. I am making a script where if you have the gamepass for the game then instead of the click going up by 1, it will go up by 3 instead. I can't currently test the script because I am not in my house. (My parents are out of town so I'm staying at my friends... using his computer which does not have ROBLOX Studio).
local pass = 182358984
local number = 0
local upgrade = 1
function Auth(player)
return game:GetService("GamePassService"):PlayerHasPass(player, pass)
end
script.Parent.MouseButton1Click:connect(function()
if Auth then
local upgrade = 3
end
number = number + upgrade
script.Parent.Parent.Number.Text = number
end)

2 comments
Please test a script and be sure it has an error before you come posting here. :)
I know but I can't test it. I'm truly sorry. I'm currently practicing my scripting and all my scripts for my game in yahoo notes. I'm very sorry.