BaconRoblox
BaconRoblox
  • 125
  • 75 771
How To Make An Upgrade Tree In Roblox Studio - Saving + Reset Layers
How To Make An Upgrade Tree In Roblox Studio
This Video Shows How To Make Saving And A Reset Layer
-----------------------------------------------------
DataStore:
-- Example: BoolValue exists as a child of the script
local boolValue = script.Parent
-- Example: Create a DataStore for player data
local DataStoreService = game:GetService("DataStoreService")
local PlayerDataStore = DataStoreService:GetDataStore("Data3")
-- Flag to track whether data has been loaded
local dataLoaded = false
-- Function to handle player joining
local function onPlayerJoin(player)
if not dataLoaded then
local privateServerId = game.PrivateServerId
-- Load player data based on private server ID
local success, data = pcall(function()
return PlayerDataStore:GetAsync(privateServerId)
end)
if success and data ~= nil then
-- Example: Set BoolValue based on loaded data
boolValue.Value = data
dataLoaded = true -- Set the flag to true after loading data
else
-- If no data found, set default value
boolValue.Value = false
dataLoaded = true -- Set the flag to true even if no data found to prevent further attempts
end
end
end
-- Function to handle player leaving
local function onPlayerLeave(player)
local privateServerId = game.PrivateServerId
-- Save player data based on private server ID
local success, error = pcall(function()
PlayerDataStore:SetAsync(privateServerId, boolValue.Value)
end)
if not success then
warn("Failed to save player data for private server " .. privateServerId .. ": " .. tostring(error))
end
end
-- Connect the functions to player events
game.Players.PlayerAdded:Connect(onPlayerJoin)
game.Players.PlayerRemoving:Connect(onPlayerLeave)
มุมมอง: 420

วีดีโอ

How To Make An Upgrade Tree In Roblox Studio - Upgrades And Boosts (Part 1)
มุมมอง 1.3K4 หลายเดือนก่อน
How To Make An Upgrade Tree In Roblox! Stay Tuned For Reset Layers Data Stores!
Easy Obby In Obby Creator!
มุมมอง 817 หลายเดือนก่อน
Easy Obby In Obby Creator!
showcasing a high jump glitch my friend found out abt
มุมมอง 707 หลายเดือนก่อน
showcasing a high jump glitch my friend found out abt
TDUT Secret Button: Snack Plate
มุมมอง 1298 หลายเดือนก่อน
TDUT Secret Button: Snack Plate
"impossible"
มุมมอง 558 หลายเดือนก่อน
"impossible"
Difficulty Obbies | Effortless - Hard
มุมมอง 859 หลายเดือนก่อน
Difficulty Obbies | Effortless - Hard
Trying To Beat The Best Swordfighting AI - Part 1
มุมมอง 1829 หลายเดือนก่อน
Trying To Beat The Best Swordfighting AI - Part 1
TDUT Even MORE Secret Buttons
มุมมอง 4079 หลายเดือนก่อน
TDUT Even MORE Secret Buttons
Getting 1M CLICKS at NJUT
มุมมอง 459 หลายเดือนก่อน
Getting 1M CLICKS at NJUT
TDUT More Secret Buttons
มุมมอง 6759 หลายเดือนก่อน
TDUT More Secret Buttons
Bacon Tower | HARDCORE MODE Floors 1-3
มุมมอง 479 หลายเดือนก่อน
Bacon Tower | HARDCORE MODE Floors 1-3
Bacon Tower | Floors 1-3
มุมมอง 26510 หลายเดือนก่อน
Bacon Tower | Floors 1-3
The House TD | Floor 1 and 2
มุมมอง 2410 หลายเดือนก่อน
The House TD | Floor 1 and 2
EPIC' Glitch Per Difficulty Chart Obby | MYSTERY BADGE
มุมมอง 11110 หลายเดือนก่อน
EPIC' Glitch Per Difficulty Chart Obby | MYSTERY BADGE
Difficulty Endings Obby Creator | All Endings
มุมมอง 6410 หลายเดือนก่อน
Difficulty Endings Obby Creator | All Endings
a "normal" obby Obby Creator Walktrough | Stages 1-3
มุมมอง 3210 หลายเดือนก่อน
a "normal" obby Obby Creator Walktrough | Stages 1-3
satisfaction
มุมมอง 2110 หลายเดือนก่อน
satisfaction
low quality Roblox Memes 1
มุมมอง 8910 หลายเดือนก่อน
low quality Roblox Memes 1
My First Rein In GUI Incremental!!
มุมมอง 11810 หลายเดือนก่อน
My First Rein In GUI Incremental!!
How To Go Out Of The Map In Weird Strict Dad (OUTDATED)
มุมมอง 11310 หลายเดือนก่อน
How To Go Out Of The Map In Weird Strict Dad (OUTDATED)
Mazes In Obby Creator | Mazes 1-3
มุมมอง 3311 หลายเดือนก่อน
Mazes In Obby Creator | Mazes 1-3
Playing Randoms Obbies | i gave up searching for more obbies that are actually good
มุมมอง 3311 หลายเดือนก่อน
Playing Randoms Obbies | i gave up searching for more obbies that are actually good
Pixel Gun Tower | With SomeRandomPerson | wow that was easy
มุมมอง 4211 หลายเดือนก่อน
Pixel Gun Tower | With SomeRandomPerson | wow that was easy
i dont have vid ideas
มุมมอง 711 หลายเดือนก่อน
i dont have vid ideas
Shadow Obby Stages 1-5 Without Shadows | OMG THAT WAS THE HARDEST THING OF MY LIFE
มุมมอง 1211 หลายเดือนก่อน
Shadow Obby Stages 1-5 Without Shadows | OMG THAT WAS THE HARDEST THING OF MY LIFE
Shadow Obby In Obby Creator | Stages 6-10
มุมมอง 15311 หลายเดือนก่อน
Shadow Obby In Obby Creator | Stages 6-10
Shadow Obby In Obby Creator | Stages 1-5
มุมมอง 1611 หลายเดือนก่อน
Shadow Obby In Obby Creator | Stages 1-5
the pull | weeeee
มุมมอง 611 หลายเดือนก่อน
the pull | weeeee
blud tripped
มุมมอง 1111 หลายเดือนก่อน
blud tripped

ความคิดเห็น

  • @Ecquiy
    @Ecquiy 22 ชั่วโมงที่ผ่านมา

    If you wanna know how to do datastores, I made a pretty efficient way to do it. It's here in this Google Doc, and also tells you how some of it works docs.google.com/document/d/1waCgsBc6wnMrg7nfkfSgY2JYyxzgL5hZ5MmvnUijvmg/edit?usp=sharing

  • @dadcdb
    @dadcdb 22 ชั่วโมงที่ผ่านมา

    hello

  • @uberdifficulty
    @uberdifficulty 2 วันที่ผ่านมา

    wheres the upgrade bought thing i forgot where it was edit: when i buy the prestige reset layer my point upgrades cant be upgraded

  • @RicardoBob-i2x
    @RicardoBob-i2x 27 วันที่ผ่านมา

    When I buy upgrade 1 I get the boost from upgrade 2 and 1

    • @BaconRoblox223
      @BaconRoblox223 27 วันที่ผ่านมา

      you forgot to change the if statement in the boost 2 script, check it

    • @RicardoBob-i2x
      @RicardoBob-i2x 25 วันที่ผ่านมา

      @@BaconRoblox223 Alr ima check

    • @RicardoBob-i2x
      @RicardoBob-i2x 25 วันที่ผ่านมา

      @@BaconRoblox223 it worked thanks

    • @BaconRoblox223
      @BaconRoblox223 25 วันที่ผ่านมา

      @@RicardoBob-i2x np

  • @simplynikoUA
    @simplynikoUA หลายเดือนก่อน

    yo u know how to get it now?

    • @BaconRoblox223
      @BaconRoblox223 หลายเดือนก่อน

      nope, sorry!

    • @simplynikoUA
      @simplynikoUA หลายเดือนก่อน

      @@BaconRoblox223 damn

  • @piotrtrzpil9147
    @piotrtrzpil9147 2 หลายเดือนก่อน

    it doesnt work

    • @BaconRoblox223
      @BaconRoblox223 2 หลายเดือนก่อน

      you probably did something wrong, try checking if you made the base and multi in the while wait() loop

  • @Bananaseter
    @Bananaseter 2 หลายเดือนก่อน

    I did just that in like 1.68 seconds i deleted the video bc it was so low quality and laggy + it didnt even get that many views

    • @BaconRoblox223
      @BaconRoblox223 2 หลายเดือนก่อน

      i dont think he will update the world records..

  • @freddiedawkins9726
    @freddiedawkins9726 2 หลายเดือนก่อน

    you own this game! looks awesome!

  • @O_O-Dragon-X_X
    @O_O-Dragon-X_X 3 หลายเดือนก่อน

    I can’t buy upgrade help me

  • @aBvolttobbyist
    @aBvolttobbyist 3 หลายเดือนก่อน

    Omg im also a roblox obbyist

  • @itzteamz
    @itzteamz 3 หลายเดือนก่อน

    never cook again...

  • @aBvolttobbyist
    @aBvolttobbyist 3 หลายเดือนก่อน

    hey, when i buy the prestige upgrade, prestige text dosent pop up, how to fix?

    • @BaconRoblox223
      @BaconRoblox223 3 หลายเดือนก่อน

      uh, no idea, rewrite the script, it might work

    • @aBvolttobbyist
      @aBvolttobbyist 3 หลายเดือนก่อน

      @@BaconRoblox223 ok

  • @guesty139
    @guesty139 3 หลายเดือนก่อน

    i hope you keep this series going

  • @aBvolttobbyist
    @aBvolttobbyist 3 หลายเดือนก่อน

    can someone explain why when i buy the first button second button isnt popping up?

    • @BaconRoblox223
      @BaconRoblox223 3 หลายเดือนก่อน

      check the if statement, or you forgot to change the UP1 value in the "Values" folder, its important

    • @aBvolttobbyist
      @aBvolttobbyist 3 หลายเดือนก่อน

      @@BaconRoblox223 👍🏿

    • @aBvolttobbyist
      @aBvolttobbyist 3 หลายเดือนก่อน

      The if statement in the cisibility script?

    • @BaconRoblox223
      @BaconRoblox223 3 หลายเดือนก่อน

      @@aBvolttobbyist yeah

    • @aBvolttobbyist
      @aBvolttobbyist 3 หลายเดือนก่อน

      @@BaconRoblox223 ok :)

  • @aBvolttobbyist
    @aBvolttobbyist 3 หลายเดือนก่อน

    it dosent work

  • @voiddestroyer6471
    @voiddestroyer6471 3 หลายเดือนก่อน

    glad to see my tutorial is the 1st 👍

  • @albertluis4559
    @albertluis4559 3 หลายเดือนก่อน

    Love it

  • @MateuszMateusz-zk1wq
    @MateuszMateusz-zk1wq 3 หลายเดือนก่อน

    Ale debil zasrany😊

  • @SilentWarriorK7
    @SilentWarriorK7 3 หลายเดือนก่อน

    gg (its Thelncrementalist)

    • @BaconRoblox223
      @BaconRoblox223 3 หลายเดือนก่อน

      you dont need to say its you in every vid, but this jump was pretty hard

    • @SilentWarriorK7
      @SilentWarriorK7 3 หลายเดือนก่อน

      @@BaconRoblox223 lol i just didnt know if u saw my comment, also yah it looked rlly hard, GGGGGG!!!!

  • @qatarmember3568
    @qatarmember3568 3 หลายเดือนก่อน

    PLEASE keep making more!! i love these vids

    • @BaconRoblox223
      @BaconRoblox223 3 หลายเดือนก่อน

      ty! next week, ill try working on the vid that i mentioned - the better reset layer (i might link a model for it, cause it might be hard to make)

    • @아이엠루
      @아이엠루 3 หลายเดือนก่อน

      @@BaconRoblox223its been 1 months bruh

    • @BaconRoblox223
      @BaconRoblox223 3 หลายเดือนก่อน

      @@아이엠루 sorry, im currently working on my roblox game so i dont have time to make vids

    • @Singer289
      @Singer289 หลายเดือนก่อน

      @@BaconRoblox223 make the tutorial now?

  • @elite_player3308
    @elite_player3308 3 หลายเดือนก่อน

    Idk where is the error Up1Bost: while wait() do if game.Workspace.Values.UP1.Value == true then game.ReplicatedStorage.Boosts.PointMulti1.Value = 1 else game.ReplicatedStorage.Boosts.PointMulti1.Value = 0 end end Stats: local stat = game.ReplicatedStorage.Stats.Points local Time = game.ReplicatedStorage.Stats.Time local number = 1 -- Boosts -- local multi = game.ReplicatedStorage.Boosts.PointMulti1.Value + 1 local cd = 0.1 while wait(cd) do stat.Value = stat.Value + 1 * multi Time.Value = Time.Value + 0.1 print(multi) end Buying: local stat = game.ReplicatedStorage.Stats.Points local function click() if script.Parent.Cost.Value <= game.ReplicatedStorage.Stats.Points.Value and game.Workspace.Values:WaitForChild(script.Parent.Upgrade.Value).Value == false then game.Workspace.Values:WaitForChild(script.Parent.Upgrade.Value).Value = true game.ReplicatedStorage.Stats.Points.Value = game.ReplicatedStorage.Stats.Points.Value - script.Parent.Cost.Value end end local function touch() if script.Parent.Cost.Value <= game.ReplicatedStorage.Stats.Points.Value and game.Workspace.Values:WaitForChild(script.Parent.Upgrade.Value).Value == false then game.Workspace.Values:WaitForChild(script.Parent.Upgrade.Value).Value = true game.ReplicatedStorage.Stats.Points.Value = game.ReplicatedStorage.Stats.Points.Value - script.Parent.Cost.Value end end script.Parent.ClickDetector.MouseClick:Connect(click) script.Parent.Touched:Connect(touch)

    • @BaconRoblox223
      @BaconRoblox223 3 หลายเดือนก่อน

      got it, the multi variable, should be in the while wait(cd) loop, not before it.

    • @elite_player3308
      @elite_player3308 3 หลายเดือนก่อน

      @@BaconRoblox223 thanks, finally I got it and I can see your tutorial, btw nice tutorial. I was thinking that was my module that abbreviates the number with the math.round

    • @voiddestroyer6471
      @voiddestroyer6471 3 หลายเดือนก่อน

      @@BaconRoblox223 your code is very bad, sorry, but its the truth.

    • @BaconRoblox223
      @BaconRoblox223 3 หลายเดือนก่อน

      @@voiddestroyer6471 np, but thats the way i do it, its the most simple way for me (just so beginners can understand everything to not make it too complicated)

    • @voiddestroyer6471
      @voiddestroyer6471 3 หลายเดือนก่อน

      @@BaconRoblox223 understood.

  • @elite_player3308
    @elite_player3308 3 หลายเดือนก่อน

    Can someone explain to me why when I buy the button and then i get my multi to 1 but the additive to that multi which is the extra + 1 doesn't go up with the multi, meaning that the multi is show to be 1 but in reality is 0 and im getting every time that multi = Multi1 (0 ( It is shown to be 1) ) + 1 = 1

    • @BaconRoblox223
      @BaconRoblox223 3 หลายเดือนก่อน

      try checking if the upgrade changes the upgrades boolvalue in values, if it does, check the if statement in that script that changes the multi numbervalue

    • @elite_player3308
      @elite_player3308 3 หลายเดือนก่อน

      @@BaconRoblox223 ye its becomes true but idk why it doesn't work

    • @elite_player3308
      @elite_player3308 3 หลายเดือนก่อน

      @@BaconRoblox223 Up1Boost: while wait() do if game.Workspace.Values.UP1.Value == true then game.ReplicatedStorage.Boosts.PointMulti1.Value = 1 else game.ReplicatedStorage.Boosts.PointMulti1.Value = 0 end end Points Manager: local stat = game.ReplicatedStorage.Stats.Points local Time = game.ReplicatedStorage.Stats.Time local number = 1 -- Boosts -- local multi = game.ReplicatedStorage.Boosts.PointMulti1.Value + 1 local cd = 0.1 while wait(cd) do stat.Value = stat.Value + 1 * multi Time.Value = Time.Value + 0.1 print(multi) end Checking Buying: local stat = game.ReplicatedStorage.Stats.Points local function click() if script.Parent.Cost.Value <= game.ReplicatedStorage.Stats.Points.Value and game.Workspace.Values:WaitForChild(script.Parent.Upgrade.Value).Value == false then game.Workspace.Values:WaitForChild(script.Parent.Upgrade.Value).Value = true game.ReplicatedStorage.Stats.Points.Value = game.ReplicatedStorage.Stats.Points.Value - script.Parent.Cost.Value end end local function touch() if script.Parent.Cost.Value <= game.ReplicatedStorage.Stats.Points.Value and game.Workspace.Values:WaitForChild(script.Parent.Upgrade.Value).Value == false then game.Workspace.Values:WaitForChild(script.Parent.Upgrade.Value).Value = true game.ReplicatedStorage.Stats.Points.Value = game.ReplicatedStorage.Stats.Points.Value - script.Parent.Cost.Value end end script.Parent.ClickDetector.MouseClick:Connect(click) script.Parent.Touched:Connect(touch)

    • @elite_player3308
      @elite_player3308 3 หลายเดือนก่อน

      ​@@BaconRoblox223 Checking Buying: local stat = game.ReplicatedStorage.Stats.Points local function click() if script.Parent.Cost.Value <= game.ReplicatedStorage.Stats.Points.Value and game.Workspace.Values:WaitForChild(script.Parent.Upgrade.Value).Value == false then game.Workspace.Values:WaitForChild(script.Parent.Upgrade.Value).Value = true game.ReplicatedStorage.Stats.Points.Value = game.ReplicatedStorage.Stats.Points.Value - script.Parent.Cost.Value end end local function touch() if script.Parent.Cost.Value <= game.ReplicatedStorage.Stats.Points.Value and game.Workspace.Values:WaitForChild(script.Parent.Upgrade.Value).Value == false then game.Workspace.Values:WaitForChild(script.Parent.Upgrade.Value).Value = true game.ReplicatedStorage.Stats.Points.Value = game.ReplicatedStorage.Stats.Points.Value - script.Parent.Cost.Value end end script.Parent.ClickDetector.MouseClick:Connect(click) script.Parent.Touched:Connect(touch) Stats: local stat = game.ReplicatedStorage.Stats.Points local Time = game.ReplicatedStorage.Stats.Time local number = 1 -- Boosts -- local multi = game.ReplicatedStorage.Boosts.PointMulti1.Value + 1 local cd = 0.1 while wait(cd) do stat.Value = stat.Value + 1 * multi Time.Value = Time.Value + 0.1 print(multi) end Boost1: while wait() do if game.Workspace.Values.UP1.Value == true then game.ReplicatedStorage.Boosts.PointMulti1.Value = 1 else game.ReplicatedStorage.Boosts.PointMulti1.Value = 0 end end

  • @voidthevoiderr
    @voidthevoiderr 3 หลายเดือนก่อน

    How do i change the multiplier

    • @BaconRoblox223
      @BaconRoblox223 3 หลายเดือนก่อน

      in the UP1 Boost script, change the value that adds the multi. Example: changing it from 1 (that gives +1x multi) to 2, will give +2x mutliplier

  • @Fideun
    @Fideun 4 หลายเดือนก่อน

    cool

  • @SilentWarriorK7
    @SilentWarriorK7 4 หลายเดือนก่อน

    hi its Thelncrementalist

  • @SilentWarriorK7
    @SilentWarriorK7 4 หลายเดือนก่อน

    hi can u accept my friend request user: Thelncrementalist (the i in the first letter of incrementalist is actually a lowercase l)

  • @lharkdean5cuzroblos
    @lharkdean5cuzroblos 4 หลายเดือนก่อน

    First 👍

  • @Nooblord926
    @Nooblord926 5 หลายเดือนก่อน

    @loudturtl that's my user name

    • @BaconRoblox223
      @BaconRoblox223 5 หลายเดือนก่อน

      sorry i dont really collab with people at this momment

  • @Nooblord926
    @Nooblord926 5 หลายเดือนก่อน

    Could we collab

  • @Nooblord926
    @Nooblord926 5 หลายเดือนก่อน

    Dude, I’m a kinda good ob you player, could we collaborate?

  • @purplemanYT957
    @purplemanYT957 5 หลายเดือนก่อน

    thats not jjt its tdut

  • @dlgray05
    @dlgray05 6 หลายเดือนก่อน

    Third

  • @BaconRoblox223
    @BaconRoblox223 6 หลายเดือนก่อน

    BEATEN AND NEVER AGAIN!!

  • @tsunami_god12
    @tsunami_god12 6 หลายเดือนก่อน

    I did 2.00 posted it IT went viral but i wasent there

    • @BaconRoblox223
      @BaconRoblox223 6 หลายเดือนก่อน

      rip the owner should make the leaderboards automatic ngl

  • @BaconRoblox223
    @BaconRoblox223 6 หลายเดือนก่อน

    hint: below infinity

  • @FifiKur
    @FifiKur 6 หลายเดือนก่อน

    It took 28 tries

  • @hogge573
    @hogge573 6 หลายเดือนก่อน

    i tested that lol

  • @BaconRoblox223
    @BaconRoblox223 6 หลายเดือนก่อน

    its blurry in the vid but go look yourself it shows up -robux (if u cant afford that)

  • @dmytronesterenko4216
    @dmytronesterenko4216 6 หลายเดือนก่อน

    Good parcous i can't do this😅😅

  • @bradleykirby2575
    @bradleykirby2575 7 หลายเดือนก่อน

    'Promo sm' ✋

  • @beastOfEchoes
    @beastOfEchoes 7 หลายเดือนก่อน

    wft

  • @Debnerb_YT
    @Debnerb_YT 7 หลายเดือนก่อน

    This is actually called a headhitter high jump

  • @ТаняВайнраух
    @ТаняВайнраух 7 หลายเดือนก่อน

    ❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤😊😊😊😊😊😊😊😊🎉🎉🎉🎉😂😂😂😂😂😂😂😊😊😊😊😊😊😊❤😊❤❤❤❤❤❤

  • @n8xfd2
    @n8xfd2 7 หลายเดือนก่อน

    2nd

  • @EndSimplified.
    @EndSimplified. 7 หลายเดือนก่อน

    am made this!

  • @FifiKur
    @FifiKur 7 หลายเดือนก่อน

    Yay im first here

  • @therobloxianofpower
    @therobloxianofpower 8 หลายเดือนก่อน

    Hey, do u know why is UF capped at 1Qd UF in UF reset?

    • @BaconRoblox223
      @BaconRoblox223 8 หลายเดือนก่อน

      yeah, its to prevent headstart for the next update

    • @therobloxianofpower
      @therobloxianofpower 8 หลายเดือนก่อน

      @@BaconRoblox223 oh

    • @therobloxianofpower
      @therobloxianofpower 8 หลายเดือนก่อน

      @@BaconRoblox223 makes much more sense, but what can u recommend to do currently? maybe buy a bunch of MP upgrades?

    • @BaconRoblox223
      @BaconRoblox223 8 หลายเดือนก่อน

      @@therobloxianofpower i recommend to max out obbies and grind for some more stats multi in mp or smth

    • @therobloxianofpower
      @therobloxianofpower 8 หลายเดือนก่อน

      @@BaconRoblox223 ok.. uh, in obby upgrades is upgrading the time traveller (reset time) is a neccessary thing to do? maybe i will get the time traveller upgrades when the sc obby will be done and grind that. i have everything else maxxed. is getting 501x skills and 251x cash in MP upgrades enough?

  • @BaconRoblox223
    @BaconRoblox223 9 หลายเดือนก่อน

    is this gonna get 20k views thats crazy

  • @Petal316
    @Petal316 9 หลายเดือนก่อน

    what about the upgrade unlocked from upgrade #104? cant seem to find that one

    • @BaconRoblox223
      @BaconRoblox223 9 หลายเดือนก่อน

      its probably the bread and brownie i showed in previous video about secret buttons

    • @Petal316
      @Petal316 9 หลายเดือนก่อน

      its not, those are the orange and purple ones, the green one is something different

    • @BaconRoblox223
      @BaconRoblox223 9 หลายเดือนก่อน

      @@Petal316 yeah then i dont know, sorry

    • @BaconRoblox223
      @BaconRoblox223 9 หลายเดือนก่อน

      i found out and the green one (restful) actually unlocks brownie (i can be wrong tho)@@Petal316

  • @Khai_uy
    @Khai_uy 9 หลายเดือนก่อน

    Hi