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....
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)
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
Thx so much I've watched about 5 different tutorials this is the only one that works I'm liking and subscribing.
man i tried like 3 datastore scripts and none of them worked neither this
go to settings and turn on datastore
@@ExplxeeGaming wow bro so helpful
Thank you! There are way too many tutorials that are just premade scripts so thank you for explaining
THX OMG finally dude i ve been trying for hours
You just earned new sub! It's works! Thank you so much! :D
it don't work and I hate it I copied everything exactly how it is on his vid and it dont work
BRO U ADDED THE SCRIPT WITHOUT MAKING US PAY FOR IT!? UR THE BEST
Thank you so much bro. You earned a sub! You just helped me with a big part of my game!
what's your game called?
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.
Cool Video Dude !
Thanks this tutorial really helped!
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
YES FINNALY
something that works
thx
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!)
shut up with the pls help me learn the script and dont copy and paste it
@@404-AnimationYT Fr, Most people don't even care to learn Lua and just copy and paste most of the time.
Thank you so much, it helped a lot
FINALLY ONE THAT WORKS!! THANK YOU!
DUDE I LOVE YOU SO MUCH. I AM TRYING TO FIX THIS FOR FEW HOURS. I LOVE YOU!!!!!!!!!!!!!!!
THANK YOU SOO MUCH!
why always not work every time,leadeboard work but not save
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
First thing have you enabled Api services on the game?
@@TeletacosRobloxTutorials Yep
@@TeletacosRobloxTutorials im also going to try on another game just to be sure if i am doing something wrong
dosent work
love the channel name teletaco XD
Thank you soooo much I was struggling to find a tutorial that had multiple leaderstats saving thanks so much + 1 sub
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
You are the first one to show a script that is so easy to understand i thank you so much
not working :(
first one that works
edit: i think you need to save the game first because before it not work
Perfect thanks(:
Thank you so much!!!!
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.
I have better, probably the perfect datastore script for leaderstats based from devforum.
@@MrMetrivus can u give pls
@@MrMetrivus bro rlly didn't link or tell us
tysm
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?
maybe i'm just unnatentive but is there a section where they say how to make the bricks hat add the value?
thats what in saying
doesent work for me
if you could give a working one ill sube
Hey, my script said the value cannot be converted to number and it didn't work, how can I fix it?
tysm i was trying to make my leaderstats and it just would not show up and after i copied you video it worked
not working
Hey bro, my script said value cannot be converted to a number, and it didn't work, how can I fix it?
if u didnt know u cannot call a value a letter?
my roblox game are going to popular with this (my friend game that i helped)
Posibly its just outdated but its not working, great video anyway.
best scripter ever😊
How do i delete the datasaves?
how to make it you can only touch it to get the money and you can only get it once?
It don't work bruh
Didn't work not one bit.
How to do it with strings?
It was working but its started to not working at my game.. idk why can help?
I have a question beacuse my rebirths wouldn't save so would is save saveautomsticly later?
It doesn't work even when I use Api services or using the script from the Pastebin
same as me bro
Doesn't work!
Dont work
it didnt work for me
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(
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
idk how to fix it
ive had the same problem
@@Gamernoobub you ever find the fix?
ive been trying for weeks and i still havent found a way to make it work@@sixturnsALT
if i do find a way i could make a video and tell you about it@@sixturnsALT
Bruh it doesn't work I even enabled API services :(
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
@@TeletacosRobloxTutorials How do I change the values on the server?
@@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!
@@thegamingadrian5419 Nice!
it doesnt work
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?
IT WORKEDD
I JUST HAD TO PLAY WITH THE COMMANDS A LITTLE BIT
AND TRY MULTIPLE TIMES. THNKS.
I have this glich what should i do?
@@krishnabhurtun372 how to fix
Bruh doesnt work
How do you do it if you already have a leaderstat?
help me its not saving datas for me
I tested it in a real game I have API turned on and still isn't working. Help?
try using the pastebin in the disc?! that worked for me
@@ItsValidexI tried pastebin and everything this comment is saying and it still doesn’t work. I’ve went through my script 3 times 😭
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
Sameeee
really good video
but with 2 value?
it don't work;-;
joia
How do I make it so that when you spawn you already have 10 money for example
probably the same way you spawn a player with a sword for example. Same code but instead use the code for the money
do currency name.value = amount
@@thehaats true
for somehow it didn't work due to the "warning line"
same
WORKS
Thankss
i can't
😞😞😞
it works!!!!!!!!!!!
It only saves one leaderstat though
you didnt watch long enough
It dosnt work for me Pls help
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.
WHY IT DOESNT WORK
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.
How can I increase my money with a command?
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
Please make it so when the server closes it saves
use :blindToClose
@@RealTurwinwhere?
go to settings and enabled ip servece
FINALLY ONE THAT WORKS!!!
doesnt work :(
Did you get any errors in the console and have you enabled api services in the game settings?
@@TeletacosRobloxTutorials i did not get any errors and the game setting thing isnt the issue :/
@@itzmqximingame you may have changed something
NOOB GIVE THE SCRIPT FOR BRICK
How delete??? Pliss help!!!!!
DEAD
Thanks, other videos i tryed didnt work ;/
This one still works 🤟
it didnt work
Have you enabled api services in the game settings?
@@TeletacosRobloxTutorials yes
@DavibPlayz It works...
@@BeepSheepHello Not for me
could have been a spelling error or a you have space where its not needs