Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Game Pass privileges help (onClick function)?

Asked by 9 years ago

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)
0
Please test a script and be sure it has an error before you come posting here. :) Discern 1007 — 9y
0
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. raystriker6707 30 — 9y

Answer this question