How to Script a Currency System in ROBLOX STUDIO (MONEY, GOLD, DIAMONDS)

  Рет қаралды 8,630

script_ing

script_ing

11 ай бұрын

In this video, I give you a simple explanation as to how currency systems work in roblox and teach you how to script it. By following along with this tutorial, you can add gold, money, and diamonds to your game.
Get the code here: / premiumscripters
⭐ GET THE BEST ROBLOX SCRIPTING BOOK (COLOR PRINTED) HERE: linktr.ee/script_ing

Пікірлер: 89
@Waybetteraustinspace
@Waybetteraustinspace 6 ай бұрын
I just recently decided to get into roblox development for a game i have in mind. This tutorial really helped and i like the way you explained what it does unlike other guides that tell you to trust them. Definetelty worthy of my sub
@GamingKaos-
@GamingKaos- 6 ай бұрын
man your the best I tried it this 4 times on other vids but the didn't work and I come here and in just 5 minutes I'm done
@Tlqq
@Tlqq 11 ай бұрын
First ! + we want more videos about admin panel PLEASE.
@scripting
@scripting 11 ай бұрын
Sure. What specifically?
@Tlqq
@Tlqq 11 ай бұрын
i mean commands* ,, global announcement, bring player, fly, jail, give item, freeze and more!@@scripting
@scripting
@scripting 11 ай бұрын
Sure. Kinda lost the file to the admin videos though 😅
@StarlordUEFN
@StarlordUEFN 6 ай бұрын
please make another tutorial where you show a system where you can spend the gold and all the diffrent ways you can do it
@wbsasmon
@wbsasmon 6 ай бұрын
how can you do this but its when you click it?
@Nooblxng
@Nooblxng 3 ай бұрын
how do i make an cooldown for it?
@gamingwithAshaz
@gamingwithAshaz 5 ай бұрын
For me it not showing the value
@realdakrith
@realdakrith 23 күн бұрын
Yeah but how do you make it like lets say 400 copper coins = 100 bronze coins = 25 silver coins = 1 gold coin
@megabyttte
@megabyttte 11 ай бұрын
Yo Scripting I have a new Idea might be easier can you make the thing in all of the grow obby the scale high bar can you make that?
@ZeddyBoi
@ZeddyBoi 2 ай бұрын
bro the sound cuts out at the start of the video????
@CubeBuilds
@CubeBuilds 6 ай бұрын
How do i make it increase when you kill someone, for context i'm develoving a shooting game so thats why
@scripting
@scripting 6 ай бұрын
Hi! Thanks for the comment. So, it depends on when they are killed. After the line of code that kills them, you can just increase the player that killed them’s currency by following the video.
@Unknown_DevTheDev
@Unknown_DevTheDev 5 ай бұрын
It Not Working For Me
@Asset-Hub
@Asset-Hub 11 ай бұрын
man nice vid but how do u script it so the gold increases by time and when player leaves and rejoins it keeps the gold value? pls leme know
@scripting
@scripting 11 ай бұрын
Hi! To script gold increasing by time, you’ll need to make use of a while loop. Check my day/night tutorial for help on that. To make the currency system save, you’ll need to look at datastores. That’s something a bit advanced that I haven’t covered in detail yet, but you can look at my ban system tutorial. It’s used in there. Hope this helps!
@jiijmartelo7603
@jiijmartelo7603 6 ай бұрын
It worked perfectly! but i was wondering how to make it so i can have multiple parts that give money but still just giving it once?
@scripting
@scripting 6 ай бұрын
Hi! Glad to hear that it worked for you. Can you explain a bit more about what you need?
@jiijmartelo7603
@jiijmartelo7603 6 ай бұрын
@@scripting sure! so, to simplify, i copied the part because i wanted each individual coin (part) to give gold while still each only giving it once. Idk if you got that, hopefully so.
@PositvePotatoMM2
@PositvePotatoMM2 Ай бұрын
Please, I REALLY want a video on different colored text. Like when you type in letters it changes them golden for an admin.
@jaikess
@jaikess 22 күн бұрын
HD Admin does that
@Rizoele.
@Rizoele. 6 ай бұрын
idk but i got an error on this : Player is not a valid member of DataModel "Game"
@scripting
@scripting 6 ай бұрын
It should be game.Players
@avanguardista7676
@avanguardista7676 6 ай бұрын
I have a problem, I installed system, the system is working, but when I duplicate the block where we earn money, I cannot earn money from that block again. How can I do this?
@scripting
@scripting 6 ай бұрын
So the reason for this is because we have one workspace.GoldGiver.Touched code In your case, we’d need another one. So if you duplicate the gold giver, call it something else. Perhaps, GoldGiver2. Then copy the GoldGiver.Touched code and make one for the GoldGiver2
@theStopmotional
@theStopmotional 6 ай бұрын
hey is there Anyway I can make the item disappear when the player collects it?
@scripting
@scripting 6 ай бұрын
You can try using the destroy method. Check my beginner’s scripting series. kzfaq.info/sun/PL8fZVwiyGscD354QCCczm1D5v0hCnA8-r&si=0CJVl81MJG0w2bYJ
@Oliq_
@Oliq_ 9 ай бұрын
yo bro, i made a dev product so you can buy gold/coins but its kind of wierd since sometimes it works and sometimes it doesnt while i dont change anything? any tips?
@scripting
@scripting 9 ай бұрын
Look into marketplace service. That service handles all your dev product stuff. Also make sure the code is written correctly for after they’ve purchased it
@Oliq_
@Oliq_ 9 ай бұрын
@@scripting thanks, imma look into it
@Oliq_
@Oliq_ 9 ай бұрын
@@scripting cant figure it out, if you have the time we could probably team create, I’m new to scripting :)
@Rashey3
@Rashey3 6 ай бұрын
hey i really like your explanation style but i saw many youtubers say like you lets check if the player or character exist like how do you know when to use it and why like why wouldnt the character or player exist in the game? im kinda confused
@scripting
@scripting 6 ай бұрын
So, this all comes down to the discussion of runtime and roblox mechanics; when you first run your game a server is created for your players. However… it’s possible that a player isn’t even in the game yet! And even if the player is in the game, it is also possible that the player object has been created but no character has been made for the player yet. Our code will run regardless of whether or not a player is there or a character for the player. So we wait for those things to make sure they exist.
@Rashey3
@Rashey3 6 ай бұрын
thanks bro now i finnaly understand that , you earned a new sub!@@scripting
@benjacara
@benjacara Ай бұрын
audio mutes for somereason
@OmiBloxY
@OmiBloxY Ай бұрын
Is it only me or everyone can’t hear his voice
@scripting
@scripting Ай бұрын
Yeah KZfaq kinda screwed me up with copyrighted music lol
@user-bg3uz8yh9m
@user-bg3uz8yh9m 8 ай бұрын
can I ask where you got the gold and diamond icons in the thumbnail?
@gccrazy17
@gccrazy17 6 ай бұрын
Did you find it?
@scripting
@scripting 6 ай бұрын
I had hired someone to make the thumbnail for this video, so I don’t have those exact assets, sorry :(
@user-bg3uz8yh9m
@user-bg3uz8yh9m 6 ай бұрын
@@scripting oh okay, I didn't end up finding them buts it's okay!
@PandXP
@PandXP 5 ай бұрын
How can i make it so the list clears every few minutes ive been trying to but i just cant figure it out
@scripting
@scripting 5 ай бұрын
List meaning the currencies of everyone in the leaderboard?
@PandXP
@PandXP 5 ай бұрын
@@scripting no no the array list u did at the end, "playersThatTouchedIt"
@scripting
@scripting 5 ай бұрын
@monkeistaken150 So, if you wanna clear it, you can just set it to an empty array. playersThatTouchedIt = {}
@PandXP
@PandXP 5 ай бұрын
@@scripting that's what it is before the code, I wanna have it so u can collect a value every 2 or 3 minutes so I don't have people leaving and joining just to collect the value
@scripting
@scripting 5 ай бұрын
@monkeistaken150 ah, so after the line where you set the playersThatTouchedIt for the player to true just put task.delay(3, function() if playersThatTouchedIt[player] then playersThatTouchedIt[player] = false end end) - That will make it so 3 seconds after they’ve touched it, if the player is in the table, then seconds later, they will no longer be in the table (and can therefore touch it again)
@DemonInYourBasement
@DemonInYourBasement 7 ай бұрын
how do you make the currency block disappear after you touched it?
@kyuubigamerz
@kyuubigamerz 6 ай бұрын
just add this code to the function game.Workspace.GoldGiver.Transparency = 1
@kyuubigamerz
@kyuubigamerz 6 ай бұрын
maybe this will work
@scripting
@scripting 6 ай бұрын
Thanks for helping out
@kyuubigamerz
@kyuubigamerz 6 ай бұрын
@@scripting np, btw sir, I would like you to make a tutorial on a checkpoint script which uses datastore and gives coins every checkpoint touched, and also changes color and stores that in database too... Mine is working but many bugs occur, so please try to make a tut on that.
@scripting
@scripting 6 ай бұрын
@kyuubigamerz sure. I’m currently busy with a video we’ve been working on for months and a very long scripting tutorial, but I’ll try my best!
@doriandash
@doriandash 4 ай бұрын
For some reason, It doesn't think the (character.Name).leaderstats is right. Is there a reason why and how can I fix it?
@scripting
@scripting 4 ай бұрын
What’s the error on the output? And what’s your script?
@doriandash
@doriandash 4 ай бұрын
Im doing it in a test world with a touch so you know
@scripting
@scripting 4 ай бұрын
I’ll need to see your script. Send it over here and I can help if you want
@doriandash
@doriandash 4 ай бұрын
@@scripting game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Model", player) leaderstats. Name = "leaderstats" local Currency = Instance.new("NumberValue", leaderstats) Currency. Name = "Gold" end) workspace.CurrencyGiver.Touched:Connect(function(hit) local character = hit.Parent if character and game.Players:FindFirstChild(character.Name) then game.Players:FindFirstChild(character.Name).leaderstats.Currency.Value += 20 end end)
@doriandash
@doriandash 4 ай бұрын
I had to put spaces in leaderstats. Name and Currency. Name because its a link without the space and links cant send. The output says "Line 11"
@megabyttte
@megabyttte 11 ай бұрын
Can you please make a game of barry's prison run
@scripting
@scripting 11 ай бұрын
Which part of Barry’s prison run would you like to see? Which feature?
@megabyttte
@megabyttte 11 ай бұрын
@@scripting The ai
@Zyloxim
@Zyloxim 11 ай бұрын
Sir i need more vids teaching me scripts
@scripting
@scripting 11 ай бұрын
You got it
@Bproplays12
@Bproplays12 4 ай бұрын
is it just me or did the volume die
@scripting
@scripting 4 ай бұрын
It did. KZfaq decided part of the audio was copyrighted and removed it. I’m really really sorry about that. I’ll look for a solution when I can.
@megabyttte
@megabyttte 11 ай бұрын
and I thourgh U got banned?
@scripting
@scripting 11 ай бұрын
My new account is script_senku. Previous accounts were script_ing and senku_script
@Celebetic
@Celebetic 11 ай бұрын
do you have a discord server ?
@scripting
@scripting 11 ай бұрын
At the moment I don’t have one for KZfaq, nope
@Rileyzlife
@Rileyzlife 2 ай бұрын
bad tutorial volume cut out
@Yung_Carrot
@Yung_Carrot 6 ай бұрын
its not showing gold
@Yung_Carrot
@Yung_Carrot 6 ай бұрын
it doesnt work
@scripting
@scripting 6 ай бұрын
What part doesn’t work?
@Yung_Carrot
@Yung_Carrot 6 ай бұрын
when i use the script it doesnt show coins when starting up the game @@scripting
@scripting
@scripting 6 ай бұрын
Any errors?
@Yung_Carrot
@Yung_Carrot 6 ай бұрын
it worked thanks, can you make a tutorial on how to make a clicking system with it@@scripting
@scripting
@scripting 6 ай бұрын
@Yung_Carrot Like a simulator clicking system tutorial?
@roblox-god2-8
@roblox-god2-8 4 ай бұрын
leadrstats
I Learned How to SCRIPT in 7 Days | Roblox
11:00
Simjet
Рет қаралды 60 М.
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 12 МЛН
WHAT’S THAT?
00:27
Natan por Aí
Рет қаралды 14 МЛН
Best Toilet Gadgets and #Hacks you must try!!💩💩
00:49
Poly Holy Yow
Рет қаралды 14 МЛН
I spent 500 DAYS Building My Roblox Game!
14:21
DeHapy
Рет қаралды 1 МЛН
The Most Impressive Scratch Projects
11:00
DenshiVideo
Рет қаралды 4,8 МЛН
How To Master Roblox Scripting FAST!
8:06
Bandicot
Рет қаралды 8 М.
These Roblox Players Just Got Their PC's Hacked...
10:38
Chaseroony
Рет қаралды 118 М.
How To Make A CUSTOM MONEY GUI In Roblox Studio!
4:58
Some Game Dev
Рет қаралды 45 М.
The Free KJ Incident, and how it got Roblox involved.
13:04
theholygrail75
Рет қаралды 483 М.
What Is The Best AI For Roblox Studio Scripting?
10:42
RoDev
Рет қаралды 420 М.
I tried Discord Bot Makers...
14:19
FaceDev
Рет қаралды 108 М.
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 12 МЛН