How To Make A CODE SYSTEM In Roblox Studio

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024
  • Join the discord for more help: / discord
    Watch to the end of this video to learn how to make a code system inside of your own Roblox game! It will take you just under 20 minutes to make and works 100% of the time!
    Thank you everyone for helping me reach my goal of 25 subscribers!
    leaderstats Script:
    game.Players.PlayerAdded:Connect(function(player)
    local leaderstats = Instance.new("Folder") -- Do Not Edit This!
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = player
    local money = Instance.new("IntValue")
    money.Name = "Money" -- Currency Name
    money.Value = 0 -- How Much The Player Start With
    money.Parent = leaderstats
    -- Made By The Roblox Dev
    end)
    Random Key Words - Just Ignore This
    roblox studio roblox scripting tutorial roblox roblox scripting roblox tutorial roblox studio tutorial roblox studio mobile roblox how-to simple quick to make how to make do it yourself step by steptutorial beginner beginner tutorial tutorial easy to make beginner guild beginners guide the roblox dev scripting tutorial lua programming roblox coding

Комментарии • 65

  • @Ctoon23
    @Ctoon23 2 года назад +4

    thanks friend, this is very simple and functional, thanks so much!

    • @BloxMeteorRobloxPro
      @BloxMeteorRobloxPro Год назад

      bro what do you mean by this is simple i mean the first parts were but the scripting werent

  • @LovixGamingShorts
    @LovixGamingShorts 13 дней назад +1

    bro tthanks itt really helped

  • @SupremeGameplay
    @SupremeGameplay 2 года назад +1

    Fully watched and smashed the like button

  • @tommygames7489
    @tommygames7489 Год назад +3

    Thank You! This helped so much!

  • @heryrbtgd2729
    @heryrbtgd2729 6 дней назад

    storage code is the number of players that can enter, for example, only one player can enter and that code is limited forever, right?

  • @NightMare-40498
    @NightMare-40498 Год назад +1

    thank you so much halps alot

  • @AlamRBLX
    @AlamRBLX Год назад +1

    When I put the code in it does not do anything but when I put the wrong code in it says invalid code so that's working I just don't know why the right codes are not working

    • @hypernova8160
      @hypernova8160 Год назад

      Check again, match everything is correct or not because the script will not work even if a single letter is capital or not

  • @aguast4
    @aguast4 9 месяцев назад

    this is good and works but is very easily exploitable as an exploiter could just look at the code folder and get all the names of the codes using dex

  • @zyro9323
    @zyro9323 2 года назад +3

    Wait If you leave and rejoin you can insert the code again

    • @Some_Game_Dev
      @Some_Game_Dev  2 года назад

      you have to add the CodeStorage to a datastore

    • @zyro9323
      @zyro9323 2 года назад

      Yeah I just added DataStore now it works tysm really good vid Im gonna subscribe

    • @Some_Game_Dev
      @Some_Game_Dev  2 года назад

      @@zyro9323 no problem

    • @crazysudarplayz1022
      @crazysudarplayz1022 Год назад

      @@Some_Game_Dev how?

    • @gabruyel
      @gabruyel Год назад

      @@zyro9323 man how did you put the codestorage to data store can you pls teach me how?

  • @Jslemonn
    @Jslemonn Год назад

    to add more codes would I just copy and paste what we just wrote, also How do I make them expire after like 1 week would I just delete it or change the code name?

    • @hypernova8160
      @hypernova8160 Год назад

      I guess you have to manually remove it if you want to expire the code after 1 week

  • @kingelectris
    @kingelectris Год назад

    DEV KING

  • @Dhruv-lh6ob
    @Dhruv-lh6ob 8 месяцев назад

    It won’t say invalid code!! Can you join my studio and help me some game dev

  • @sk8tingr4t
    @sk8tingr4t Год назад

    How do I make it say expired code if it’s expired

  • @DevSpeed
    @DevSpeed Год назад

    How do you change the colour?!?!?

  • @laptopuser-s9c
    @laptopuser-s9c Год назад

    Quick question why does it not save the money that the codes give you?

  • @Alvertro
    @Alvertro Год назад

    Hey man! How can I make that the code is limited (only one user can use it)?

    • @Margicall
      @Margicall Год назад

      you cant, but you could try making it limited and then delete it like in 5 hours or so

    • @AghIn-mr9rx
      @AghIn-mr9rx 7 месяцев назад

      You can create a table with the users who should be the only one allowed to redeem it. However, if you're referring to automatically deleting it from existence when someone redeems it, that's not possible

  • @YoutuberL1M
    @YoutuberL1M Год назад

    how to add multiple Codes not just 1?

  • @unknownmoonforce6963
    @unknownmoonforce6963 Год назад

    to make this save i would just datastore the code, code2 values right?

    • @Some_Game_Dev
      @Some_Game_Dev  Год назад

      yes

    • @unknownmoonforce6963
      @unknownmoonforce6963 Год назад

      @@Some_Game_Dev k thanks!

    • @Gacek_PL
      @Gacek_PL Год назад

      can you say how to do it? because I tried and failed

    • @Some_Game_Dev
      @Some_Game_Dev  Год назад

      @@Gacek_PL Add a datastore to the CodeStorage script

    • @CraftedChip
      @CraftedChip Год назад

      ​@Some Game Dev Could you give a script? I am new at lua, and if you do please tell me where, what script and what line. Thx!

  • @jacobanderson2283
    @jacobanderson2283 Год назад

    how do i make a badge award when the correct code is entered

    • @Some_Game_Dev
      @Some_Game_Dev  Год назад +1

      In the code manager on either line 13 or line 22 replace the current line of code with your badge code

  • @hatmyr
    @hatmyr Год назад

    what do i do if i already have a currency?

  • @BA7RAWI.
    @BA7RAWI. Год назад

    please i want to add save

  • @bigplay_brawlstars6718
    @bigplay_brawlstars6718 Месяц назад

    Hey can you do it with datastore?

  • @UnderatedClock
    @UnderatedClock 10 месяцев назад

    The "Already redeemed" code doesn't work for me, I looked at the tutorial again and its the same code. Can someone help me?

  • @tfdark7853
    @tfdark7853 2 года назад +1

    whenever i try to type another code it wont let me type

  • @vortex0666
    @vortex0666 Год назад

    damn the hackers using dex gonna be rich

  • @heroesmarvelworlds9907
    @heroesmarvelworlds9907 2 года назад

    thanks for this code its workd finally all player its game :D thank you

  • @mumpsimusceremonius
    @mumpsimusceremonius Год назад

    this doesnt work

  • @r1qzss
    @r1qzss Год назад

    can u also do it like that u get an item in ur inv when u enter the code?

    • @CraftedChip
      @CraftedChip Год назад

      I recommend getting up a hotbar tutorial first.

  • @C0olzyGam1inG
    @C0olzyGam1inG Год назад

    How do i choose what it gives?

    • @Some_Game_Dev
      @Some_Game_Dev  Год назад

      leaderstats.Money.Value = (Your Amount Here)
      or you can change "Money" to any currency you have in your leaderstats

    • @C0olzyGam1inG
      @C0olzyGam1inG Год назад

      @@Some_Game_Dev oh ty

  • @znlzoid8578
    @znlzoid8578 2 года назад

    can u lea ve enter button code plssssssssssssssssssssssssss

    • @Some_Game_Dev
      @Some_Game_Dev  2 года назад

      No, that's not how you learn

    • @CA19
      @CA19 Год назад +1

      @@Some_Game_Dev Chad

  • @Mango2.
    @Mango2. 2 года назад

    doesnt work

    • @Some_Game_Dev
      @Some_Game_Dev  2 года назад +1

      watch the video fully because it works lol

    • @Mango2.
      @Mango2. 2 года назад

      @@Some_Game_Dev it doesn’t say Invalid code

    • @Mango2.
      @Mango2. 2 года назад

      @@Some_Game_Dev and I reread the code

    • @Some_Game_Dev
      @Some_Game_Dev  2 года назад

      @@Mango2. Lua is a case sensitive code so check for capitals

    • @unknownmoonforce6963
      @unknownmoonforce6963 Год назад +1

      nah, it works for me so its fine 😃