How to make leaderstats with data saves - Roblox Studio 2022

Поделиться
HTML-код
  • Опубликовано: 29 авг 2024
  • Script📜: pastebin.com/a...
    Dont forget to turn on api services in the game setting!
    My discord: Telemacos#8418
    My roblox account: www.roblox.com...
    Talent Hub: talent.roblox....

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

  • @Pasca1010
    @Pasca1010 Год назад +9

    Bro no way it works i had my own leaderstats but they only support one leaderstat/currency and i checked to so much youtube channels to find a script thats suppoty multiple and you are the only one tha thelped me thank you so much! (You earned a new subscriber)

  • @user-ct8le7fl1f
    @user-ct8le7fl1f Год назад +3

    Ive watched 6 videos on this u are the first one to explain it well to actually make it work to send the script and to show us how to use it u are awesome man please never stop

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

    Thx so much I've watched about 5 different tutorials this is the only one that works I'm liking and subscribing.

  • @afaszomkivan
    @afaszomkivan Год назад +4

    man i tried like 3 datastore scripts and none of them worked neither this

    • @ExplxeeGaming
      @ExplxeeGaming 3 месяца назад

      go to settings and turn on datastore

    • @afaszomkivan
      @afaszomkivan 3 месяца назад

      @@ExplxeeGaming wow bro so helpful

  • @TheDiamondEmporium
    @TheDiamondEmporium 4 месяца назад

    Thank you! There are way too many tutorials that are just premade scripts so thank you for explaining

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

    THX OMG finally dude i ve been trying for hours

  • @ThisIsALinbi
    @ThisIsALinbi 5 месяцев назад

    You just earned new sub! It's works! Thank you so much! :D

  • @kxlyonyt
    @kxlyonyt Год назад +5

    it don't work and I hate it I copied everything exactly how it is on his vid and it dont work

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

    BRO U ADDED THE SCRIPT WITHOUT MAKING US PAY FOR IT!? UR THE BEST

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

    Thank you so much bro. You earned a sub! You just helped me with a big part of my game!

    • @MrTacos9
      @MrTacos9 4 месяца назад

      what's your game called?

  • @r-things9437
    @r-things9437 Год назад +2

    Bro, my script wasn't working so I looked in the comments and saw you (Teletacos Roblox Tutorials) helping people with their troubles, and I looked at them and it made my script work too. Teletacos Roblox Tutorials keep on being a good youtuber and actually trying to help people. Respect and another sub.

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

    Cool Video Dude !

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

    Thanks this tutorial really helped!

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

    it kinda works theres a problem i buy a developer product and spend coins with it when i rejoin i have the value of the developer products i made

  • @samlol7528
    @samlol7528 8 месяцев назад

    YES FINNALY

  • @Bluebud1023
    @Bluebud1023 Год назад +2

    so there is a problem, you see when i made the script that was from the pastebin it didnt work i tried and tried and it wont work pls help me (You have a new subscriber!)

    • @404-AnimationYT
      @404-AnimationYT Год назад

      shut up with the pls help me learn the script and dont copy and paste it

    • @dazzookay
      @dazzookay 4 месяца назад

      @@404-AnimationYT Fr, Most people don't even care to learn Lua and just copy and paste most of the time.

  • @user-mz2mh6fm5r
    @user-mz2mh6fm5r 11 месяцев назад

    Thank you so much, it helped a lot

  • @mm2.litpace
    @mm2.litpace Год назад

    FINALLY ONE THAT WORKS!! THANK YOU!

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

    DUDE I LOVE YOU SO MUCH. I AM TRYING TO FIX THIS FOR FEW HOURS. I LOVE YOU!!!!!!!!!!!!!!!

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

    THANK YOU SOO MUCH!

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

    why always not work every time,leadeboard work but not save

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

    I have been searching for 3 - 4 days and I still can't find a leader stat save I have done everything, and it has not been working
    Here is my script btw (Clicks and rebirths are my currency)
    local dataStoreService = game:GetService("DataStoreService")
    local ds = dataStoreService:GetDataStore("DataStoreTest")
    game.Players.PlayerAdded:Connect(function(plr)
    local leaderstats = Instance.new("Folder")
    leaderstats.Name = "leaderstats"
    leaderstats.Parent = plr
    local Clicks = Instance.new("IntValue")
    Clicks.Name = "Clicks"
    Clicks.Parent = leaderstats
    local rebriths = Instance.new("IntValue")
    rebriths.Name = "Rebirths"
    rebriths.Parent = leaderstats
    local ClicksData, rebrithsData
    local success, errormessage = pcall(function()
    ClicksData = ds:GetAsync("Clicks-"..plr.UserId)
    rebrithsData = ds:GetAsync("rebirths-"..plr.UserId)
    end)
    if success then
    Clicks.Value = ClicksData
    rebriths.Value = rebrithsData
    end
    end)
    game.Players.PlayerRemoving:Connect(function(plr)
    local success, errormessage = pcall(function()
    ds:SetAsync("Clicks-"..plr.UserId, plr.leaderstats.Clicks.Value)
    ds:SetAsync("rebirths-"..plr.UserId, plr.leaderstats.Rebirths.Value)
    end)
    end)
    please help

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

      First thing have you enabled Api services on the game?

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

      @@TeletacosRobloxTutorials Yep

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

      @@TeletacosRobloxTutorials im also going to try on another game just to be sure if i am doing something wrong

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

    dosent work

  • @eggs-yt
    @eggs-yt 7 месяцев назад

    love the channel name teletaco XD

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

    Thank you soooo much I was struggling to find a tutorial that had multiple leaderstats saving thanks so much + 1 sub

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

    Yo legit thank you so much I’ve been looking and trying to do a saving leaderstats for 2 weeks, you legit helped me out so much

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

    You are the first one to show a script that is so easy to understand i thank you so much

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

    not working :(

  • @sunethealgorithm
    @sunethealgorithm 7 месяцев назад

    first one that works
    edit: i think you need to save the game first because before it not work

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

    Perfect thanks(:

  • @_--._-_.-
    @_--._-_.- Год назад

    Thank you so much!!!!

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

    Yes it works BUT when I spam play and instant close and try joining after few minutes I accidentally noticed that my Points stats becomes 0 again, it doesn't save with those risky game closing issue.

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

      I have better, probably the perfect datastore script for leaderstats based from devforum.

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

      @@MrMetrivus can u give pls

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

      @@MrMetrivus bro rlly didn't link or tell us

  • @makschrzan2436
    @makschrzan2436 7 месяцев назад

    tysm

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

    My data is managing to save and prints success but when i try to print the leaderstats value that it should be saving it just says 0 which its not 0 but do you know why?

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

    maybe i'm just unnatentive but is there a section where they say how to make the bricks hat add the value?

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

    doesent work for me
    if you could give a working one ill sube

  • @abc------------------------267
    @abc------------------------267 6 месяцев назад

    Hey, my script said the value cannot be converted to number and it didn't work, how can I fix it?

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

    tysm i was trying to make my leaderstats and it just would not show up and after i copied you video it worked

  • @forwentheking
    @forwentheking Год назад +2

    not working

  • @abc------------------------267
    @abc------------------------267 6 месяцев назад

    Hey bro, my script said value cannot be converted to a number, and it didn't work, how can I fix it?

  • @crack_studios
    @crack_studios 6 месяцев назад

    if u didnt know u cannot call a value a letter?

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

    my roblox game are going to popular with this (my friend game that i helped)

  • @i_likefloppas01
    @i_likefloppas01 7 месяцев назад

    Posibly its just outdated but its not working, great video anyway.

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

    best scripter ever😊

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

    How do i delete the datasaves?

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

    how to make it you can only touch it to get the money and you can only get it once?

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

    It don't work bruh

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

    Didn't work not one bit.

  • @nacktack
    @nacktack 4 месяца назад

    How to do it with strings?

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

    It was working but its started to not working at my game.. idk why can help?

  • @mikaelalodder8987
    @mikaelalodder8987 11 месяцев назад

    I have a question beacuse my rebirths wouldn't save so would is save saveautomsticly later?

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

    It doesn't work even when I use Api services or using the script from the Pastebin

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

    Doesn't work!

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

    Dont work

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

    it didnt work for me

  • @booki-zm4dk
    @booki-zm4dk Год назад

    I have a problem I am making a sword fight game and I need leaderstats for Deaths And Kills Can u Replay with the script so I can copy and paste in my game I really need it (thank u(

  • @user-iw7fh4vs2u
    @user-iw7fh4vs2u Год назад +1

    can anyone help, ive tried many different scripts for this and none work and i do have api service on, ive even copy and pasted

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

      idk how to fix it

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

      ive had the same problem

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

      @@Gamernoobub you ever find the fix?

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

      ive been trying for weeks and i still havent found a way to make it work@@sixturnsALT

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

      if i do find a way i could make a video and tell you about it@@sixturnsALT

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

    Bruh it doesn't work I even enabled API services :(

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

      Im sad to hear that though sometimes it doesnt work in studio, if you want to test it type game.Players.LocalPlayer:Kick() into the command bar while testing the game
      Also make sure your changing the values on the server

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

      @@TeletacosRobloxTutorials How do I change the values on the server?

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

      @@TeletacosRobloxTutorials Dude I just tested it. And it finally worked. Bro tysm now I only have to do 1 more thing for my game and all the hard stuff is done!

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

      @@thegamingadrian5419 Nice!

  • @breh-tg9fc
    @breh-tg9fc Год назад

    it doesnt work

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

    it works but there is only one bug. When re-entering the game, my data is not saved, it comes all the way back to zero again. help pls?

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

    Bruh doesnt work

  • @WafreAlt
    @WafreAlt 11 месяцев назад

    How do you do it if you already have a leaderstat?

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

    help me its not saving datas for me

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

    I tested it in a real game I have API turned on and still isn't working. Help?

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

      try using the pastebin in the disc?! that worked for me

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

      @@ItsValidexI tried pastebin and everything this comment is saying and it still doesn’t work. I’ve went through my script 3 times 😭

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

    bro help i made for kills amd deaths and one is working like kills is only saving data pls help i ev watched the whole video and checked the scripts very carefull please help

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

    really good video

  • @LhLh-eb6cf
    @LhLh-eb6cf 8 месяцев назад

    but with 2 value?

  • @rift-g0968
    @rift-g0968 Год назад

    it don't work;-;

  • @theojonson
    @theojonson 7 месяцев назад

    joia

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

    How do I make it so that when you spawn you already have 10 money for example

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

      probably the same way you spawn a player with a sword for example. Same code but instead use the code for the money

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

      do currency name.value = amount

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

      @@thehaats true

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

    for somehow it didn't work due to the "warning line"

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

    WORKS

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

    Thankss

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

    i can't
    😞😞😞

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

    it works!!!!!!!!!!!

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

    It only saves one leaderstat though

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

      you didnt watch long enough

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

    It dosnt work for me Pls help

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

      Have you turned on api services in the game settings, if so it doesn't always work in roblox studio so you might want to try it out in the real game.

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

    WHY IT DOESNT WORK

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

      Have you enabled api services? And if your testing it in Roblox Studio it often doesnt work, therefore I recommend testing it in a real Roblox game.

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

    How can I increase my money with a command?

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

      When you are in game press F9. Click on the Server Option next to Client then type in the command line: game.Players.yourname.leaderstats.Coins.Value = 1
      Note: You can ofc change coins to rebirths or whatever you have in the leaderstats and the value to whatever you want

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

    Please make it so when the server closes it saves

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

    FINALLY ONE THAT WORKS!!!

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

    doesnt work :(

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

      Did you get any errors in the console and have you enabled api services in the game settings?

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

      @@TeletacosRobloxTutorials i did not get any errors and the game setting thing isnt the issue :/

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

      @@itzmqximingame you may have changed something

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

    NOOB GIVE THE SCRIPT FOR BRICK

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

    How delete??? Pliss help!!!!!

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

    DEAD

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

    Thanks, other videos i tryed didnt work ;/

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

    This one still works 🤟

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

    it didnt work

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

      Have you enabled api services in the game settings?

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

      @@TeletacosRobloxTutorials yes

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

      @DavibPlayz It works...

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

      @@BeepSheepHello Not for me

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

      could have been a spelling error or a you have space where its not needs