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

How to make x2 Clicks gamepass????

Asked by 5 years ago

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?????

0
You haven't explained this very well explain in more detail FluffySheep46209 369 — 5y
0
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 lovrotuk 7 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

Make variables called clicknumber and clickcount Also, put this script inside the click button

01local clicknum = 1
02local clickcount = 0 (unless you have datastore)
03 
04 
05script.Parent.MouseButton1Click:Connect(function()
06    clickcount = clickcount+clicknum
07end)
08 
09if [insert if you have gamepass here script] then
10    clicknum = 2
11end
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) lovrotuk 7 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

So in my gui i have text button that have localscript

1local Player = game.Players.LocalPlayer
2local PlayersClicks = Player:WaitForChild('leaderstats'):WaitForChild('Clicks')
3 
4script.Parent.MouseButton1Click:Connect(function()
5    PlayersClicks.Value = PlayersClicks.Value + 1
6end)

So how can i make gamepass i am not good at scripting

Answer this question