So i am trying to make gamepass for my game but i dont know how i am trying to make when they click gui that says click if they have gamepass they get x2 click plis help?????
Make variables called clicknumber and clickcount Also, put this script inside the click button
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
So in my gui i have text button that have localscript
local Player = game.Players.LocalPlayer local PlayersClicks = Player:WaitForChild('leaderstats'):WaitForChild('Clicks') script.Parent.MouseButton1Click:Connect(function() PlayersClicks.Value = PlayersClicks.Value + 1 end)
So how can i make gamepass i am not good at scripting