🔥 How to Make a Tycoon On Roblox Studio | Scripting Tutorial
HTML-код
- Опубликовано: 16 сен 2024
- 🎮 Are you ready to learn how make a tycoon game on Roblox? In this beginners' scripting tutorial, I'll show you how to build an engaging tycoon using Roblox Studio. From setting up the baseplate to designing the perfect buttons and items, you'll learn everything you need to know.
🏗️ Start by watching as I show you how to set up the foundation of your tycoon. Learn how to insert parts, move, scale, and rotate them to craft the basic structure of your game. I'll walk you through creating walls and a floor, and even ensure that your parts remain anchored for a seamless gameplay experience.
💰 You'll also discover how to create a purchase button that players can step on to buy items within your tycoon. You'll also learn how to add descriptive text on the button using a Billboard GUI, making it clear what players are purchasing.
🛍️ But that's not all - I'll teach you how to implement items that players can unlock and enjoy. Learn how to use attributes to manage costs, IDs, and ownership of these items. I'll show you the entire process, from setting up attributes to dynamically assigning a tycoon to each player.
👾 Whether you're a seasoned Roblox developer or just starting out, this tutorial is perfect for you. Join me as I guide you through the creation of your very own tycoon game in Roblox Studio.
🎉 Like, subscribe, and hit that notification bell so you won't miss the next exciting tutorial in this series. Let's create amazing games together!
Part 2: • How to make a Tycoon o...
Join my Discord server: / discord
Follow me on X: / alvinblox
Follow my Roblox account: www.roblox.com...
I really love how this guy explains every single function of every single button and just really gives you the full detail in everything. This video is really helpful!
i know he does
It's so helpful
And how he isn’t time waisting
This guy is very based.
Yeah he does, he does even better with his actual scripting videos so if you wanna learn the code in general itself you should prob watch those
great tutorial! i've found that with many scripting tutorials, people usually just tell you what to write without explaining what the code actually does, so it's really nice to see someone actually explain what each function does!
This man explained everything to make sure everythings perfect for your tycoon. We need more people like you, AlvinBlox.
It has been my dream to make games on Roblox, and now you have made that a reality. Thank you
sup mate just wondering if u managed to complete the script cos for me im getting a wrong spawn error i dont get spawned wjere i meant to
@@IshqbelLovesBarcelona What did you use as spawn points, and what game are you using it for?
You're truly amazing for creating this! Unlike other tutorials that tend to be slow or cause people to get stuck, your tutorial worked fantastically and kept things moving smoothly.
true
My script wont work, what did i do wrong? I followed the turtorial, but it wont work. Pls help me.
same
@@lokesax
me too
@@lokesax
same here lol@@lokesax
local Tycoons =game.Workspace:WaitForChild("Tycoons")
local function assignTycoon(player)
for _, Tycoon in Tycoons:GetChildren() do
if Tycoon:GetAttribute("Taken") then continue end
Tycoon:SetAttribute("Taken", true)
Tycoon:SetAttribute("UserId",player.UserId)
return Tycoon
end
return nil
end
thanks😃
Thanks bro
Thanks but, "Tycoons:GetChildren", Would that be a troll? Haha! Thanks.
Thanks you so much. I had it wrong but as soon as I pasted this in It worked, You really helped me
Thank you bro you are a saviour
GUYS, I RECCOMEND THIS!!! ITS AWESOME :) ITS AMAZING HOW HE EXPLAINS EVERYTHINGGGG!!!!
I got into scripting because of you. Thanks for the motivation
Glad to hear, hope everything goes well!
Lets see if you still have motivations after 1 week if you do im impressed
@@Jacob_- Its actually been 2 weeks now and im watching lua tutorials for hours a day at that point
@@user-cs1tp1ep9m Im Proud of you keep going buddy I Wish you good luck to your journey
@@user-cs1tp1ep9m do you still feel interested in scripting?
Thanks, many people talk about tycoons but I've not heard a lot about how people make these mechanics.
Also just a tip:
If a script has a weird name and it’s unorganized and theres a bunch of weird symbols, its a bad script.. if you’re not sure what it does, use the devforum and delete it if its a bad script
@@somerandomgentleman thats what it does
@@somerandomgentleman it adds it instead of having to write (value = value + amount) you can say (value += amount)
@@somerandomgentleman you can set up a while true do loop and subtract it but there’s probably a better way to do it.
Try this:
while wait() do
local num = math.random(1,100) - pick whatever
if num == 100 then
- here
end
end
@@somerandomgentlemanif cloud < 0.65 then
math.randomseed(tick())
wait(2)
if math.random(1, 2) == 1 then
cloud += 0.02
else
cloud -= 0.02
end
end
@@somerandomgentleman an even cleaner way would be:
if cloud < 0.65 then
math.randomseed(tick())
local rng = {-0.02, 0.02}
wait(2)
cloud += rng[math.random(1, 2)]
end
I used to find these tutorials helpful… I guess I’m getting better at Studio. Thanks Alvin! 😂❤
Adding UI padding, with right and left padding set to 0.2 seems to work well on the text label within the billboard.
yooo i love it when alvin uploads!
Cheers Sooper 👍
when i play none of the tycoons say they are taken can someone help
Your voice is too soothing for this, I accidentally fell asleep while watching this.😅
💀💀💀
@@MrHappyMealCat and the point if this comment was😐😐
Your way of conveying the purpose and not just telling us to copy you, is why u you are the most clear and easy to understand Roblox coding youtuber.
He’s not
@@THEMIXUP1 He is.
What I really like about this guy is that instead of just telling us what to do he explains what it does and how it will work, new sub!
No one could have said it better that you @graceokaysxo!
fr
Very true
@@harrisontubb noo
@pLz
i really love how he explanis everything in detail so we know what to do and now i will start making lots of tycoons and other games now Thanks so much
tried it and at 20:14 when i joined the game my "Cash" Weren't On The Leaderboard...I Checked The Code A Couple Of Times It's All Correct. I Need Help!
Me neither :/ Did you figured it out?
Same problem
me too:(
This better then most things it explains everything and what it does so I can actually learn
I plan on making a tycoon that replicates the ENTIRE Security Breach map detail by detail so this is VERY useful, thank you so much
Im working on one based on record of ragnorok heaven
did you do it
HOLY SHEESH, REALLY? ID LOVE TO PLAY IT!!
i love your video!!!!!!!!!!!!!!!!!!
(:
I decided to get back into trying to make roblox stuff and i came across this
I remember watching your tutorials all the time years ago
To be honest seeing that you still make these amazing coding videos brought a tear to my eye
a tear down your eye is kinda far fetched don't you think , he's done roblox for so long why stop . The only thing he can do now is keep going and get bigger
i remember watching you 2 years ago! im surprised you haven't stopped! keep up the good work!
I love how he explains every detail! You earned a sub!
Thanks! it really helped beacuse i had no idea of what to do for a tycoon but now you have given me inspiration!
thank you so much!! I wanted to make this project 2 days ago, thanks for the huge help! ❤
Thank you learn me ❤
“Our whole life is a tycoon.”
-a wise robloxian.
so true 💀💀🙏🙏
tysm the leaderstats works
What how it’s not working for me
This was really helpfull
GGS
this guy is the goat
I just Thought of making a game and saw this tycoon video! Thank you so much for helping me, Btw im kinda lazy of doing the scripts lol, mind sending the whole script for this video?
Thanks AlvinBlox!
I wanted to make my own tycoon, and now I can thanks for the tutorial, and I'll watch part 2
When I tried scripting the Leaderboard It didn't work so what should I do?
Your not the only one
When it was in the leaderboard part i thinked it didnt worked but i opened the leaderboard again and it actually was working , great tutorial bro
I am unsure of what I've done wrong. My script looks identical to the one in the video and it will not assign a tycoon to me. Any suggestion?
Same here.
same too
i think that the script isnt the same anymore
probably@@Iclo222
i discovered in a channel called codebro29 that to the script work aparently theres can only be one local on it
YOUR SO AMAZING THAT YOU MAKE ALL OF THOSE VIDS! IT APPRECIATED WE ALL LOVE YOU!
hey alvim, as u may noticed, many people (include me) have problem with the second part of the script (when starting game, u wont get teleported to your tycoon) could you please answer that
yeah
im late but im a scripter adn the scritp does not do that its just because the tycoon is in the middle of the baseplate @zuzazuza_2021
How much I was waiting for a tycoon tutorial😄😄
I hope you enjoy it!
I'm stuck on the taken variable right now-the code is the exact same and the only reason I can think of is because of the different tycoon names, but I've already changed them to just "Tycoon". Do you have any suggestions as to why the taken and Id variables aren't working?
same
Same
same lol i dont think he scripted it properly in the video
Bro u are so awesome I would not have become a game creator without you.
I followed the tutorial but when I clicked play I didn't see the leader stats please is there a way to fix it?
same
That's what I'm saying 😭😭
I like how this guy explains everything for the scripting the leaderstats and assigning a tycoon
Thank you SO MUCH for this tutorial, AlvinBlox! Keep scripting, everyone!
Thanks Sam!
@AlvinBlox my cash isn’t on the leaderboard
Nice video alvin, I still remember your OG tycoon series from around 2020.
Cheers
@@AlvinBlox no problem man
Roadbolox is my favourite game 🎮
Roadbolox is so good
No its roadblocks
No it's roadbolox
@@XMugGaster shut up no its not
@@shieldtmm learn your manners kid
Its always nice when you post, these videos are a ton of help :)
Thanks!
Thanks Alvin for all your tutorials!!!
My pleasure
Listen this video was great but when I got to the leader board script i could never get mine to work anyone else having that issue or just me plz respond as quick as possible i need help
That's the same as me
Imagine I get pinned
Ikr
Nope buddy nope
Ikr
Ikr
Ikr
Love your voice. Definitely subscribing! Thanks for helping
If the script is not working then check if the letters are in uppercase or lowercase according to the script in the video, that was my problem
thank you very much for help
i dont understand van u help me with that
SAME
@suki.kitofficial_.
I did, but It still won't work. It worked before the tycoon stuff, when I only had the leader status stuff.
For those of you having problems with the values and leaderstats not working, try adding your "Tycoon" model in a folder called "Tycoons"
Noice
not even 2 minutes into the vid, seems very well-made!
Love the tutorial but I am having a problem with the script in "ServerScriptService." I see nothing in the players list about cash. I'm not sure what is wrong but if you have anything that could fix it I would be thankful. Thank you for reading and have a good day!
exactly me too
Me too
remove the first . before game
Make sure you put the capital letters and lowercase letters in the right stop. Accidentally putting a capital letter may ruin the script
Im having this problem as well
yours doesn't get boring so i like it. it is also very helpful so ty.
Anyone know how to fix the script where its supposed to spawn you at a tycoon?
I have the same problem!
i have the same problem. i think it does not spawn you at the tycoon you're assigned to, you may need some more code for that
Me too
my script isnt working
Hey Ebug.
The reason for may be because you did the scripting wrong in some parts. I recommend going back and retyping it all.
Sorry about the 9 month wait.
@@seedtheprotogen damn hahahaha
@@seedtheprotogen idk everything seems to work for me except I don’t spawn in the tycoon I re went over everything it was the exact same and idk what to do
@@spidernik2530 that I don't know what to do.
@@seedtheprotogen Thank you a ton
ey i was just thinking about this video from you ;D (your amazing btw)
i copied the script for the leaderboard but it didnt work can someone maybe tell me what could be the problem?
Me too
Copy from other channel video, it work to me
It may be that your script didn't want to make it the way it did in the video. If the game.Players.PlayerAdded:Connect(function(player)) command looks like this and the "end" looks like that, it's wrong!
in the first long command, at the end it says "(player))", just remove the last ")" and add it to "end" so it looks like "end)" and "(player)"
This has helped me learn about how to make game I think because of him I might start a new hobby of something I enjoy. ❤
Pov: light mode 🤮🤮🤮🥴🤢🤢🤢🥴🤢🥴🥴🤒🤕🤕🦾🫰🏻✌️👻💀💩🤡👺👽💩🦷🫦💄🫦🦶🦵
Instead you can make a conveyer with some parts and change' the volicity with bottom part. Your good to go👍
GUYS I WASTED 3 HOURS BUT IT DID NOT WORK SO DONT USE THIS VIDEO LIKE THIS SO EVERYBODY KNOWS!
Of course, the knowledge gained in this video can be used in many other situations, not just Tycoon.
Thank god we have alvinblox🙏🙏🙏
I started scripting 1year ago and i still dind't understand anything but thanks to your videos i'm starting to understand, Thank You❤
Very nicely explained. Not to quick and not to slow, without all kinds of unnecessary fluff. You just go straight to the point and do a good job.
I hope you have more tutorials on coding cause its easy to learn from you. Best explanator i have found so far on Roblox Studio! :)
Subbed and liked! :)
did urs work? im doing the coding part rn and i typed everything in correctly and now its a red line under my text when i type in the coding and the red outline normally means u spelt it wrong when i spelt them right
@@tseaxznz Yes it works perfectly.
I also had a couple of those red lines under a word and it referred to a spelling mistake further up. For example i had written "Tycoons" with an "s" in a line where only "Tycoon" was needed. Or i had "leaderstats" written wrong with a capital letter like this: "Leaderstats".
So check every line and make sure you don't sneak in the slightest typo, or it will not work.
cheers.
@@tseaxznz Also make sure all words and names of the folders are spelled exactly how he shows it with capital letters and so on. Also in the attributes section or the code doesn't know what it is referencing to.
@@tseaxznz Also you should run the game and test for red lines or error messages in the Output window at the bottom after every 2-3 new lines he shows in the code, just to make sure you didn't sneak in a mistake. Cause then you know if you get an error it must have happened within the last 2-3 min of the video. And its much easier to go back and corect. And when your sure its error free, then save it.
@@tseaxznz Even the spaces are important. I just got an error for writing: "for_, tycoon", when there should have been a space after "for", so the corect line should have been "for _, tycoon". So even spaces can cause errors sometimes! So make sure you copy everything exactly as he types it.
video was very helpful! im currently making a adventure-zombie fighting game that you can, as a team, build outposts that have zombie spawns near them to expand your money (the currency in this game is oil) gain to the point where, in the 'endgame' you can fight bosses and get really good loot from the galacti-shop (thats where you will get all your really good loot to fight more bosses and take back zombie-infested territory to build strongholds.)
HI ALVIN BLOX IM A BIG FAN CAN U REMEMBER ME WHEN YOU HAVE MILLIONS OF SUBS also can u do scripting tutorials that are updated for 2023
This was super helpful!
love him best vid ever i got 10k robux from my tycoon game using his mechanics
Great! I was looking forward for a tycoon tutorial!
I have the same identical script but it doesn't work, nor the taken nor the user ID, in the console it just says the warn message
When I join the game, I am assigned to a tycoon and the attributes work however, I am not teleported to the tycoon. Anyone know where I slipped up?
he didn't make a spawn for the tycoon, he just made the tycoon on his spawn im pretty sure
@@dustycheese777 I didn't make a spawn either. It randomly selects from a couple tycoons and picks one to spawn you at.
@@LizardTOffical how?
Thank u so much!😊
I don't know how to thank you!, my explorer and properties didn't show up bcs I accidentally pressed X on them and nothing showed up on the internet not only that but you helped me make the tycoon, my only way of gratitude is subbing and liking.
Wow Really Cool, I Am Making A Proper Game For The First Time
Hi!
I, for some reason, can't make the script to work. When I made it so that you have cash in the beginning and the leaderstats it worked out great, but later when I added the Tycoon stuff it didn't work anymore, nothing did.
I've also checked several times so that I did it exactly like you did, but it didn't work. I have no typos, the exact same amount of lines, the exact words. I'm 99,99% sure that the script is 100% identical to yours
Anyone know how to fix this?
i got the same problem
Same
Alvin because of you Im a developer now. Thanks man. Your a legend.
That's great to hear! Thank you
Thank you i make my own tycoon
This was really helpful for learning to code people who want to try code and although it's pretty hard
The leaderstats work perfectly but the taken and user id is not working
This is so so so so useful thank you so much for this information it helping me so much with my tycoon
4:11 i'm gonna choose fredoka one too because it's my favourite font
oh and this tutorial worked pretty good thanks for this tutorial
You are making it so fun to create stuff because i actually understand you! 🙂
im trying to code but im having some trouble i cant seem to work the cash on the leaderboard it just says my name?
got some game ideas but would say but then people might try to steal my ideas as there own so its a secret but this video should help me a lot thanks !
this is the type of " how to " video that u don"t hate because you have to pause, great video!
Thank you so much for helping me out!
could you make a video about bezier curve
Thanks bro all of this is working.
This video inspired me to finally take action and put my hamster in the microwave. Cheers Alvin! 👍
THIS GUY DESERVES A AWARD OF BENG BEST TYCOON BUILDER ILY HIM BRUHHHH
Thank you SOOOOOO MUCH every other tutorial is soooo bad I can’t understand but this one is super good
thank you so much after i did this tutorial i made a game and my game has 289K visits
TYSM U HELPED ME IMPROVE AND I GOT 100 PLAYERS PLAYING MY GAME JUST OF U TYSM MAN ❤❤❤❤❤
Amazing! Well done!!
What’s the game called
Game name
Very nice explanation. I would like to know where you find all of these functions. If you could share the location that would be awesome.