
How to make a Clicker Game on Roblox || Part 1
________________________________________________________________
–leaderboard script:
local datastore = game:GetService(“DataStoreService”):GetDataStore(“DataStore”)
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new(“Folder”)
leaderstats.Parent = player
leaderstats.Name = “leaderstats”
local Clicks = Instance.new(“NumberValue”)
Clicks.Parent = leaderstats
Clicks.Name = “Clicks”
local Rebirths = Instance.new(“NumberValue”)
Rebirths.Parent = leaderstats
Rebirths.Name = “Rebirths”
local key = “user-” .. player.userId
local storeditems = datastore:GetAsync(key)
if storeditems then
Clicks.Value = storeditems[1]
Rebirths.Value = storeditems[2]
else
local items = {Clicks.Value, Rebirths.Value}
datastore:SetAsync(key, items)
end
end)
game.Players.PlayerRemoving:connect(function(player)
local items = {player.leaderstats.Clicks.Value, player.leaderstats.Rebirths.Value}
local key = “user-” .. player.userId
datastore:SetAsync(key, items)
end)
___________________________________________________________________________
–Local Script for clicker button
script.Parent.MouseButton1Click:Connect(function()
game.Workspace.AddClicks.AddClicks:FireServer()
end)
__________________________________________________
–Script in workspace that gives u clicks:
script.AddClicks.OnServerEvent:Connect(function(player)
player.leaderstats.Clicks.Value = player.leaderstats.Clicks.Value +1 — how much u get when u click
end)
__________________________________________________
–text label that shows how much clicks u have
while wait()do
local player = game.Players.LocalPlayer
script.Parent.Text = ” “..player:WaitForChild(“leaderstats”):FindFirstChild(“Clicks”).Value
end
___________________________________________________________________________
anyway guys hope the scripts work for u and make sure to sub and like!
___________________________________________________________________________
—
thank you so much
part 2 please!
I saved my studio, and I come back and nothing works? is there a fix? or something I'm doing wrong?
How 2 make a name tag?
does it save like when you rejoin are the clicks from the last game there?
click = 0
local plr = game.Players.LocalPlayer
while wait () do
if click ~-plr.learderstats.Clicks.Value then
local random = math.random(1,1000)
local xnew = random/1000
local new = game.ReplicatedStorage.ClickingEffect:Clone()
new.Parent = script.Parent
new.Position = UDim2.new(xnew, 0,1,0
click = plr.leaderstats.Clicks.Value
)
end
end
give me 305 robux if you do I will give what you want pls. If you accept Join this https://discord.gg/XazbFY4t
ik damn well he didnt call a GUI a "Gooey"
Make it multiplayer then you will have another subscriber.
I need help, it never works for me, I’ve tried it a lot of times and it doesn’t work, please help!
Im unsubbing cuz there not a part 2
23:51:19.520 MouseButtonClick is not a valid member of ImageButton "Players.headsvr.PlayerGui.ClickerGui.ImageButton" – Client – LocalScript:1
my clciks dont go up when i click it
i add image button but no its not over there
checked my script 30 times now and they match the video and description area to a tee. still cant get my clicking effect to go away, just stays stuck on the top of the screen
"OH MY GOODNESS."
"RbXr.MoNsTeR"
"RbXr.MoNsTeR"
"RbXr.MoNsTeR"
”DID IT HELP YOU TOO?”
CERTIFIED CLASSIC
CERTIFIED
CLASSIC*
3:08 for me to rember
GUYS HE STOLE DIVINE BLAZES SCRIPTS
if you look at the end of the top line on the leaderstats script you see that it says divine
plz make part 2 everyone is going extra insane
your overrated
Why clicks dont save Im Clicked 202 but saved only 140
How MAKE REBIRTHS
click = 0
local plr = game.Players.LocalPlayer
While wait()do
if click ~=plr.Leaderstats.Clicks.Value then
local random = math.random(1,1000)
local xnew = random/1000
local new = game ReplicatedStorage.ClickingEffects:Clone()
new.Parent = script.Parent
new.Position = UDim2.new(xnew,0,1,0)
click = plr.leaderstats.Clicks.Value
end
end
everything worked but when i click the button i dont get the clicks
it doesnt give me clicks
@FreezyWut were is the script for the image label
Nice! I have autism so its hard for me to learn these type of things but next time pls put all script you did (even the ending) and if you did im sorry for saying it :/
Edit: Please do a part 2 on rebirths :/
bro tysm for this it helped a lot i cant stop playing my own game!
BRO NO WORK FAKE
Can someone help the effect stays at the top of my scree
For the image label with the little icons that appear when you click it doesn’t disappear when it gets to the top :/ pls help
WHEN YOU SAY GOOIE INSTEAD OF GUI I GET MAD
why it not work 🙁
why it not work 🙁
why it not work 🙁
Can you paste scripts in the description
if there wont be a part two then why is the part 1 in title
part 2 ?
do we find out the rest ourselves? 🙁
you lied. the scripts are not in the description.🤔😤
even the title of the video says part 1.
why every time i test the click while im testing the game it dosent work what do i do?
thx <3
bruh this guy kinda mean ngl
why do u call GUI gooey
Ayo this is really good! but it didnt work for me but this is still rlly good!!
Whats the script for the last part
–leaderboard script:
local datastore = game:GetService("DataStoreService"):GetDataStore("DataStore")
game.Players.PlayerAdded:Connect(function(player)
local leaderstats = Instance.new("Folder")
leaderstats.Parent = player
leaderstats.Name = "leaderstats"
local Clicks = Instance.new("NumberValue")
Clicks.Parent = leaderstats
Clicks.Name = "Clicks"
local Rebirths = Instance.new("NumberValue")
Rebirths.Parent = leaderstats
Rebirths.Name = "Rebirths"
local key = "user-" .. player.userId
local storeditems = datastore:GetAsync(key)
if storeditems then
Clicks.Value = storeditems[1]
Rebirths.Value = storeditems[2]
else
local items = {Clicks.Value, Rebirths.Value}
datastore:SetAsync(key, items)
end
end)
game.Players.PlayerRemoving:connect(function(player)
local items = {player.leaderstats.Clicks.Value, player.leaderstats.Rebirths.Value}
local key = "user-" .. player.userId
datastore:SetAsync(key, items)
end)
For the last time, please stop asking for part 2, im not making part 2. Sorry -Freeze