Uploaded June 2022 | Updated September 2026, 8 hours ago
This is just a quick clip from an event in my Discord server captured by Carrot! (Sorry about the low frame-rate)
This was hosted in my server by Vvsabro.
Join today: Discord.io/CodeBro29
This is just a quick clip from an event in my Discord server captured by Carrot! (Sorry about the low frame-rate)
This was hosted in my server by Vvsabro.
Join today: Discord.io/CodeBro29







![How To Script On Roblox 2022 - Episode 11 (Leaderstats)
Welcome to part 11 where we talk about leaderstats! I hope you are all excited for another episode! :D
Join my Discord server here: https://discord.gg/2b6PDk7BAP
Check out my Patreon Page today: https://www.patreon.com/CodeBro29
MERCH: https://codebro29-official-merch.creator-spring.com
Comment ideas for future videos below! VVV
Roblox username: fiveironfan2006
My group: https://www.roblox.com/groups/5646843/Codebro29-Industries#!/about
Timestamps -[
0:00 - What are Leaderstats?
0:33 - Writing Leaderstats Scripts
3:55 - Modifying Leaderstats Externally
6:40 - Integer Shortcut
7:28 - Outro
] How To Script On Roblox 2022 - Episode 11 (Leaderstats)](https://i.ytimg.com/vi/rjxYyqm2zlk/mqdefault.jpg)
![I Remade DEAD RAILS in 1 Week...
Today I remade DEAD RAILS from scratch in only 1 WEEK....
Play the Game ➜ https://www.roblox.com/games/123981694939436/Dead-Sales
✨Discord Server: https://discord.gg/gCZWyP2ySq
😍Patreon: https://www.patreon.com/CodeBro29
❎ Twitter: https://x.com/CodeBro29YT
🔥SHOP: https://codebro29.shop/
👕MERCH: https://codebro29-official-merch.creator-spring.com/
CREDITS -[
MUSIC:
Music: Evan King - [ENERGETIC CHIPTUNE ♫ Thermal]
Music: Evan King - [CHIPTUNE, BUT FUNKY ♫ Useful]
Music: Evan King - [Virtually Impossible - Context Sensitive]
Music: Evan King - [HIGH ENERGY CHIPTUNE ♫ Biscuits- Context Sensitive]
Music: Evan King - [20XX]
https://www.youtube.com/ContextSensitive
https://contextsensitive.bandcamp.com/
]
Thanks to my guests that played the game at the end:
Carrot - @frozencarrot714
Xbot - @BlueIsTaken
TQ - @TQ5890
Moyai - @moyai5222
Roblox username: CodeBro29YT
My group: https://www.roblox.com/groups/5646843/Codebro29-Industries#!/about
#roblox #funny #gamedev I Remade DEAD RAILS in 1 Week...](https://i.ytimg.com/vi/rvCGqNCpRFU/mqdefault.jpg)
![How to Script on Roblox (ADVANCED) - Part 4 (DataStoreService)
Thanks for watching, hope you find DataStoreService helpful! :)
If you want to learn how to Save Data in Roblox Studio, then youre in the perfect place!
BEGINNER Scripting Series: https://www.youtube.com/playlist?list=PLfAg6nOoAuSm3IFHTbLfknrEDnRoSxCwW
SCRIPT -[
local DataStoreService = game:GetService(DataStoreService)
local DataStore = DataStoreService:GetDataStore(leaderstats)
game.Players.PlayerAdded:Connect(function(plr)
local folder = Instance.new(Folder,plr)
folder.Name = leaderstats
local Coins = Instance.new(IntValue,folder)
Coins.Name = Coins
local Gems = Instance.new(IntValue,folder)
Gems.Name = Gems
local CoinsVal = 0
local GemsVal = 0
local success,errorMessage = pcall(function()
local data = DataStore:GetAsync(plr.UserId)
CoinsVal = data[1]
GemsVal = data[2]
end)
if success then
print(Data successfully loaded!)
end
if errorMessage then
warn(errorMessage)
end
Coins.Value = CoinsVal
Gems.Value = GemsVal
while true do
task.wait(1)
Coins.Value += 1
end
end)
game.Players.PlayerRemoving:Connect(function(plr)
local coins = plr.leaderstats.Coins
local gems = plr.leaderstats.Gems
DataStore:SetAsync(plr.UserId,{coins.Value,gems.Value})
end)
game:BindToClose(function()
for i,plr in pairs(game.Players:GetPlayers()) do
local coins = plr.leaderstats.Coins
local gems = plr.leaderstats.Gems
DataStore:SetAsync(plr.UserId,{coins.Value,gems.Value})
end
end)
]
✨Discord Server: https://discord.gg/2b6PDk7BAP
😍Patreon: https://www.patreon.com/CodeBro29
👕MERCH: https://codebro29-official-merch.creator-spring.com
💬Comment ideas for future videos below! VVV
Roblox username: fiveironfan2006
My group: https://www.roblox.com/groups/5646843/Codebro29-Industries#!/about
#roblox #coding #lua How to Script on Roblox (ADVANCED) - Part 4 (DataStoreService)](https://i.ytimg.com/vi/rzVMsC0tKRM/mqdefault.jpg)
