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?????
COMMUNITY QUESTION
How to make x2 Clicks gamepass????
2 answers
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
1 comment
0
So in my Gui i have a text button with local script and this is script local Player = game.Players.LocalPlayer local PlayersClicks = Player:WaitForChild('leaderstats'):WaitForChild('Clicks') script.Parent.MouseButton1Click:Connect(function() PlayersClicks.Value = PlayersClicks.Value + 1 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
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
You haven't explained this very well explain in more detail
So let me explaine this i am making a clicker game and i am trying to make a gamepass that when you click on Gui i make that works when you click on it you get points so i need gamepass for x2 clicks