Yo so i am new at scripting and i dont know where i need to put variables called clicknumber and clickcount. And i have in gui button with local script
local Player = game.Players.LocalPlayer
local PlayersClicks = Player:WaitForChild('leaderstats'):WaitForChild('Clicks')
script.Parent.MouseButton1Click:Connect(function()
PlayersClicks.Value = PlayersClicks.Value + 1
end)
and this script
local clicknum = 1
local clickcount = 0 (unless you have datastore)
script.Parent.MouseButton1Click:Connect(function()
clickcount = clickcount+clicknum
end)
if [insert if you have gamepass here script] then
clicknum = 2
end
I need to make gamepass for my game but i dont know how

1 comment
If you're trying to make a 2x click gamepass, and make it so that their number of clicks is clickCount*2, you can do just that.