How to make a Clicker Game on Roblox || Part 1 - androidgamestore.net

How to make a Clicker Game on Roblox || Part 1

dead?
Views: 23531
Like: 519
if yall are that lazy here are the scrips:

________________________________________________________________
–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!
___________________________________________________________________________

224 Comments

  1. I saved my studio, and I come back and nothing works? is there a fix? or something I'm doing wrong?

  2. does it save like when you rejoin are the clicks from the last game there?

  3. 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

  4. ik damn well he didnt call a GUI a "Gooey"

  5. Make it multiplayer then you will have another subscriber.

  6. I need help, it never works for me, I’ve tried it a lot of times and it doesn’t work, please help!

  7. 23:51:19.520 MouseButtonClick is not a valid member of ImageButton "Players.headsvr.PlayerGui.ClickerGui.ImageButton" – Client – LocalScript:1

  8. i add image button but no its not over there

  9. 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

  10. if you look at the end of the top line on the leaderstats script you see that it says divine

  11. plz make part 2 everyone is going extra insane

  12. Why clicks dont save Im Clicked 202 but saved only 140

  13. 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

  14. everything worked but when i click the button i dont get the clicks

  15. @FreezyWut were is the script for the image label

  16. 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 :/

  17. bro tysm for this it helped a lot i cant stop playing my own game!

  18. Can someone help the effect stays at the top of my scree

  19. 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

  20. if there wont be a part two then why is the part 1 in title

  21. you lied. the scripts are not in the description.🤔😤

  22. why every time i test the click while im testing the game it dosent work what do i do?

  23. Ayo this is really good! but it didnt work for me but this is still rlly good!!

  24. –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)

  25. For the last time, please stop asking for part 2, im not making part 2. Sorry -Freeze

Leave a Reply

Your email address will not be published.