🔥 How to Make a Tycoon On Roblox Studio | Scripting Tutorial
Vložit
- čas přidán 9. 06. 2023
- 🎮 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/users/14943069
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
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
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.
Adding UI padding, with right and left padding set to 0.2 seems to work well on the text label within the billboard.
Thanks, many people talk about tycoons but I've not heard a lot about how people make these mechanics.
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!
I used to find these tutorials helpful… I guess I’m getting better at Studio. Thanks Alvin! 😂❤
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
Thanks! it really helped beacuse i had no idea of what to do for a tycoon but now you have given me inspiration!
Love your voice. Definitely subscribing! Thanks for helping
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
thank you so much!! I wanted to make this project 2 days ago, thanks for the huge help! ❤
yooo i love it when alvin uploads!
Cheers Sooper 👍
This was super helpful!
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
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?
YOUR SO AMAZING THAT YOU MAKE ALL OF THOSE VIDS! IT APPRECIATED WE ALL LOVE YOU!
Its always nice when you post, these videos are a ton of help :)
Thanks!
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
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😃
I like how this guy explains everything for the scripting the leaderstats and assigning a tycoon
This better then most things it explains everything and what it does so I can actually learn
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
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
GUYS, I RECCOMEND THIS!!! ITS AWESOME :) ITS AMAZING HOW HE EXPLAINS EVERYTHINGGGG!!!!
yours doesn't get boring so i like it. it is also very helpful so ty.
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!
Thanks Alvin for all your tutorials!!!
My pleasure
ey i was just thinking about this video from you ;D (your amazing btw)
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'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
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!!
Nice video alvin, I still remember your OG tycoon series from around 2020.
Cheers
@@AlvinBlox no problem man
I wanted to make my own tycoon, and now I can thanks for the tutorial, and I'll watch part 2
“Our whole life is a tycoon.”
-a wise robloxian.
so true 💀💀🙏🙏
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
Great! I was looking forward for a tycoon tutorial!
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. ❤
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
When I tried scripting the Leaderboard It didn't work so what should I do?
Your not the only one
Bro u are so awesome I would not have become a game creator without you.
You are making it so fun to create stuff because i actually understand you! 🙂
Thank you SO MUCH for this tutorial, AlvinBlox! Keep scripting, everyone!
Thanks Sam!
@AlvinBlox my cash isn’t on the leaderboard
This was really helpfull
GGS
Hello,you have said in guidelines questions welcome so i wanted to ask,how can you make a label chat appears on your screen like after opening a door?
Noice
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
Helped alot
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
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
Thank u so much!😊
Thank you so much for helping me out!
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
my scripts worked at first, but after not.. what can i do?
SAME
@@-silly.october
I did, but It still won't work. It worked before the tycoon stuff, when I only had the leader status stuff.
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)"
Soooo useful
Lot of help
Thanks bro you are a big help for me ❤😊
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
Imagine I get pinned
Ikr
Nope buddy nope
Ikr
Ikr
Ikr
not even 2 minutes into the vid, seems very well-made!
I remember watching this series about a year ago and I could not pass a single stage of instruction because I was just a beginner trying to make a tycoon!😅 But now I've gotten better and smarter and it actually works for me😅😊
Pov: light mode 🤮🤮🤮🥴🤢🤢🤢🥴🤢🥴🥴🤒🤕🤕🦾🫰🏻✌️👻💀💩🤡👺👽💩🦷🫦💄🫦🦶🦵
GUYS I WASTED 3 HOURS BUT IT DID NOT WORK SO DONT USE THIS VIDEO LIKE THIS SO EVERYBODY KNOWS!
Thanks bro all of this is working.
thx finaly the tutorial that works from first time realy thx
Your voice is too soothing for this, I accidentally fell asleep while watching this.😅
💀💀💀
Fantastic video!
This was really helpful for learning to code people who want to try code and although it's pretty hard
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.
IT HELPT ALOT
Great video!
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.
tysm the leaderstats works
What how it’s not working for me
thanks for your efforts 🙂🙂
Thanks for the tuto!
Helpful vid ever :), keep it up
+1 subscriber
Your videos are the best ty
How much I was waiting for a tycoon tutorial😄😄
I hope you enjoy it!
This video really helped me make a tycoon
Ty very much I learned Very many things here I will leave a lovely sub and like.
Of course, the knowledge gained in this video can be used in many other situations, not just Tycoon.
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 !
Thanks! It made it so good that i gould get more visits and actives!
during the script part for the leader board stats I wrote down everything exactly the same but mine isn't working? what am I doing wrong?
Thank you for helping me, this is going to my first Roblox game that I code, with your help!
You Truly AMAZING !!!
this is the type of " how to " video that u don"t hate because you have to pause, great video!
Instead you can make a conveyer with some parts and change' the volicity with bottom part. Your good to go👍
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
Also nice video!
i know this might be hard
but could you make a tutorial on grid based tycoons like TPT2, RT2 and so on
You're a great teacher, thank you so much.
This realy helped me out ty
Thank you SOOOOOO MUCH every other tutorial is soooo bad I can’t understand but this one is super good
I ABSOLUTELY HATED SCRPITING AND NOW, NOW I LOVE IT! THANKS ALVINBLOX
Wow Really Cool, I Am Making A Proper Game For The First Time
Love you Alvin you have helped me make so many games
Glad to hear, cheers!
how did you get the leaderstats? when i did it, it didnt apear. fix?