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
thanks friend, this is very simple and functional, thanks so much!
bro what do you mean by this is simple i mean the first parts were but the scripting werent
bro tthanks itt really helped
Fully watched and smashed the like button
Thanks A Lot
Thank You! This helped so much!
Glad it helped!
storage code is the number of players that can enter, for example, only one player can enter and that code is limited forever, right?
thank you so much halps alot
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
Check again, match everything is correct or not because the script will not work even if a single letter is capital or not
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
Wait If you leave and rejoin you can insert the code again
you have to add the CodeStorage to a datastore
Yeah I just added DataStore now it works tysm really good vid Im gonna subscribe
@@zyro9323 no problem
@@Some_Game_Dev how?
@@zyro9323 man how did you put the codestorage to data store can you pls teach me how?
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?
I guess you have to manually remove it if you want to expire the code after 1 week
DEV KING
It won’t say invalid code!! Can you join my studio and help me some game dev
How do I make it say expired code if it’s expired
How do you change the colour?!?!?
Quick question why does it not save the money that the codes give you?
you need to add it to your datastore
Hey man! How can I make that the code is limited (only one user can use it)?
you cant, but you could try making it limited and then delete it like in 5 hours or so
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
how to add multiple Codes not just 1?
to make this save i would just datastore the code, code2 values right?
yes
@@Some_Game_Dev k thanks!
can you say how to do it? because I tried and failed
@@Gacek_PL Add a datastore to the CodeStorage script
@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!
how do i make a badge award when the correct code is entered
In the code manager on either line 13 or line 22 replace the current line of code with your badge code
what do i do if i already have a currency?
u replace money with ur currency
please i want to add save
Add A datastore to code storage
Hey can you do it with datastore?
The "Already redeemed" code doesn't work for me, I looked at the tutorial again and its the same code. Can someone help me?
whenever i try to type another code it wont let me type
Try restarting studio
damn the hackers using dex gonna be rich
thanks for this code its workd finally all player its game :D thank you
this doesnt work
can u also do it like that u get an item in ur inv when u enter the code?
I recommend getting up a hotbar tutorial first.
How do i choose what it gives?
leaderstats.Money.Value = (Your Amount Here)
or you can change "Money" to any currency you have in your leaderstats
@@Some_Game_Dev oh ty
can u lea ve enter button code plssssssssssssssssssssssssss
No, that's not how you learn
@@Some_Game_Dev Chad
doesnt work
watch the video fully because it works lol
@@Some_Game_Dev it doesn’t say Invalid code
@@Some_Game_Dev and I reread the code
@@Mango2. Lua is a case sensitive code so check for capitals
nah, it works for me so its fine 😃