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 4 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 — 4y
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 — 4y

2 answers

Log in to vote
0
Answered by 4 years ago

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
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 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

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

Answer this question