Start using Type Checking in Roblox! Roblox Development Tips

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

MonzterDEV

MonzterDEV

Күн бұрын

Пікірлер: 50
@iknosabuk
@iknosabuk 7 ай бұрын
Are you able to give the annotations/types descriptions? As to further explain how it can be used and such, like the Roblox types.
@itsray5257
@itsray5257 Жыл бұрын
So underrated, You show really useful things that other youtubers don't show. Thanks u a lot
@MonzterDEV
@MonzterDEV Жыл бұрын
Thanks :D Glad you enjoyed!
@HoopsTheBee
@HoopsTheBee 2 жыл бұрын
Solid Info. TY
@MonzterDEV
@MonzterDEV 2 жыл бұрын
Glad you enjoyed :D
@fredericlossignol3874
@fredericlossignol3874 Жыл бұрын
So useful for clean coding in roblox !! 🙌 thanks a lot guy
@MonzterDEV
@MonzterDEV 11 ай бұрын
Happy to help :D
@RaenLua
@RaenLua 9 ай бұрын
At 17:40 can't we assert the type? module.TestNumber = 10 :: number
@nitetime8561
@nitetime8561 2 жыл бұрын
Love the vids. They are so useful
@MonzterDEV
@MonzterDEV 2 жыл бұрын
Glad you enjoy, thanks :D
@KageNoDragon
@KageNoDragon Жыл бұрын
I wonder what it supposed to do when people do return type (value) or export type (value)..
@KageNoDragon
@KageNoDragon Жыл бұрын
I wonder what the "Type" is for.?
@yarik_superpro
@yarik_superpro 9 ай бұрын
whole video is about it.....type is like typeof but from lua also@@KageNoDragon
@qwke
@qwke 10 ай бұрын
YIPPEEEEEEEEEEEEEEEEEEEEEEE
@MonzterDEV
@MonzterDEV 10 ай бұрын
Hope it helps!
@Jappley
@Jappley 2 ай бұрын
i learned a lot from this tutorial but i had to keep pausing to keep up with your fast pace lol please slow down more
@black_1009
@black_1009 2 жыл бұрын
Will you do a video about saving your data for the shop guide series
@voxeledphoton
@voxeledphoton 4 ай бұрын
boo lean
@legendsiscool
@legendsiscool 11 ай бұрын
a while ago i saw this video and was like “why the hell would i ever need this? its just confusing” and now i have realized how extremely useful it is, thanks bro
@UnknowFactsP1
@UnknowFactsP1 11 ай бұрын
Hello a friend recommended me to watch this video, if possible can you teach me because I am in the position you was in before you said it was helpful thank you
@legendsiscool
@legendsiscool 11 ай бұрын
@@UnknowFactsP1 its simple really lets say you connect a remote event or something and send the server the position of your mouse, you can put your player in and then a variable for the mouse (lets just say mousevar) and you can do :Vector3 next to it (mousevar:Vector3) and then the variable acts as a vector3 and lets you do stuff like mousevar.Y or mousevar.Unit and stuff so you dont have to memorize all the stuff
@UnknowFactsP1
@UnknowFactsP1 11 ай бұрын
@@legendsiscool can you tell me what you use it for? and a more easier example
@legendsiscool
@legendsiscool 11 ай бұрын
@@UnknowFactsP1 k lets say you create a part in workspace when someone clicks a button and you want a script to find that part, u just use workspace:waitforchild(“partname”), if you want to add a .Touched event to it with auto fill you can say local partname:BasePart = workspace:waitforchild(“partname”) the script now thinks its a part and now instead of having to manually type out .Touched:Connect(function() it gives you the option to auto fill and if you put a variable for the touched part it wont show up as “a” and make you auto fill and will see it as a basepart like it normally would basically makes typing scripts easier and more convenient
@black_1009
@black_1009 2 жыл бұрын
That would help alot
@Blumaimn
@Blumaimn 6 ай бұрын
thanks a lot for this video much better than the other confusing ones :D
@aka_s
@aka_s 2 жыл бұрын
solid info, appreciated.
@MonzterDEV
@MonzterDEV 2 жыл бұрын
Glad it was helpful!
@soma78
@soma78 Жыл бұрын
Just checking the definition of a singleton : "A singleton in Roblox's version of Lua refers to a class that only has one instance throughout the entire game. These are generally service classes provided by Roblox itself. For example, game, workspace, Players, UserInputService, TweenService, etc., are all singletons in Roblox." 10:08 when OP is talking about singletons, he seems to be refering to constraining a variable to only accept certain values. Seems to be slightly different, but then again, I am not a programmer, so maybe I am missing something.
@MonzterDEV
@MonzterDEV Жыл бұрын
Hey, I agree that singleton is an unusual name, but it is used in the official Luau docs: luau-lang.org/typecheck#singleton-types-aka-literal-types
@cyberkyogre
@cyberkyogre 2 жыл бұрын
can you update the simulator playlist with new videos?
@MonzterDEV
@MonzterDEV 2 жыл бұрын
Simulator episodes release every Friday. Are you referring to one missing from the Playlist?
@cyberkyogre
@cyberkyogre 2 жыл бұрын
oh, i didn't know that, thx for telling me
@RoboGameOfficial
@RoboGameOfficial 11 ай бұрын
You don't need to enable strict script mode to enable type-checking.
@MonzterDEV
@MonzterDEV 10 ай бұрын
Oh my apologies, thanks for the correction. I believe you might have had to do this at one point, but maybe I’m misremembering.
@RoboGameOfficial
@RoboGameOfficial 9 ай бұрын
@@MonzterDEV You need to enable it for errors to pop up in the output, but not for intellisense
@panxel8615
@panxel8615 Жыл бұрын
Key "LoadProfileAsync" not found in table ProfileStore ..?
@Inkompetenter
@Inkompetenter 2 жыл бұрын
When is the next pet system video coming out?
@MonzterDEV
@MonzterDEV 2 жыл бұрын
Every Friday is a Simulator video!
@Inkompetenter
@Inkompetenter 2 жыл бұрын
@@MonzterDEV it's friday when will the video come out
@KageNoDragon
@KageNoDragon Жыл бұрын
3:54 hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm bic?
@KageNoDragon
@KageNoDragon Жыл бұрын
Suspicious..
@MonzterDEV
@MonzterDEV Жыл бұрын
Lol, you can see my button presses were slightly off to the left.
@qxxrd
@qxxrd Жыл бұрын
for Singleton couldn't you just use tables?
@MonzterDEV
@MonzterDEV Жыл бұрын
What do you mean?
@qxxrd
@qxxrd Жыл бұрын
@@MonzterDEV 10:10, Literal types. If I'm not mistaken, couldn't you just use tables to index the possible results? like: local results = {"Declined", "Purchased", "Not enough money", "Full Inventory"} print(results[1]) -- The one would be the result that you got
@bubblas5536
@bubblas5536 Жыл бұрын
​@@qxxrd you would need a separate variable to store which one is being used if you need to use it in multiple locations. The table variable alone cannot say if the program is using "purchased" or "declined". You wouldn't be able to do something like this with just a single table variable: if result == "Declined" then
@qxxrd
@qxxrd Жыл бұрын
@@bubblas5536 good point!
@Develop3
@Develop3 Жыл бұрын
​@@bubblas5536 if results[1 or 2 or 3 or 4] == "Declined" then
@fayking
@fayking Жыл бұрын
this actually helps me understand, you're the best
@MonzterDEV
@MonzterDEV Жыл бұрын
Thanks, I'm glad I could help :D
How to Setup Leaderstats Leaderboard in Roblox
4:56
MonzterDEV
Рет қаралды 3,8 М.
Type Annotation in Roblox Studio!
28:47
Crusherfire
Рет қаралды 7 М.
АЗАРТНИК 4 |СЕЗОН 3 Серия
30:50
Inter Production
Рет қаралды 1 МЛН
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 16 МЛН
Use Profile Service as Your Data Store! Roblox Development
28:13
METATABLES - Roblox Scripting Tutorial
35:17
AlvinBlox
Рет қаралды 57 М.
The Story of The BIGGEST Roblox Hackers..
26:18
BulletWarning
Рет қаралды 4,6 МЛН
Roblox Devs, stop misusing :WaitForChild()!
17:13
Crusherfire
Рет қаралды 67 М.
How To Get Back Into A Game, According to Science
22:26
Mark Maxwell
Рет қаралды 957 М.
My Password Is...
20:34
iShoya
Рет қаралды 178 М.
I Tried the $1 Billion Dollar Side Hustle
16:39
viyaura
Рет қаралды 587 М.
How I designed Fruit Ninja
22:58
Luke Muscat
Рет қаралды 6 МЛН
How to Start a Gaming Channel in 2024
14:38
vidIQ
Рет қаралды 984 М.