Knineteen19
Knineteen19
  • 66
  • 533 746
How to make an OOP-Structured NPC in Roblox Studio ep. 4
Description:
In this video, we will cover setting up type definitions for this system, defining the functionality for NPC's being able to detect players, and then setting up a loop that repeatedly detects if any players (or other NPCs) are in sight. The sight functionality will include a limited field of view, a limited range, and also a minimum detection radius in which you can even be detected from behind.
Credits:
A special thanks to Duckx for editing this video.
Questions / Help:
For assistance with any problems you may have following the video or in general, please post in the appropriate channel in the Knine's Scripting Lessons Discord server: discord.gg/74aBrW5. Please follow the post guidelines for the appropriate category (usually scripting) or your post may be ignored.
If you can't use Discord or don't wish to, feel free to post questions here in the comments section but know that I may be slow to answer or may miss your comment entirely. Additionally, follow these guidelines in your questions:
1) What is the specific issue you're having and what are you trying to do?
2) What have you tried to do to fix it so far?
3) Send relevant code chunks (if it's scripting) and any relevant errors/warnings if there are any.
Membership Information:
Join this channel to get access to tutorial game files and other awesome perks:
ua-cam.com/channels/D7LdkZM8OBloei3rfAhV2w.htmljoin
You can also become a patron here for the same perks but supporting me more directly: patreon.com/Knineteen19
UA-cam Members:
Jack
Trafton
ThatOneGoat
Patreon Members:
VAM21402
And an additional 28 anonymous members.
Переглядів: 462

Відео

Roblox Studio Inventory Tutorial 2024 Edition Episode 3
Переглядів 1,1 тис.Місяць тому
Description: In this video, we'll finish up some of the main server-side work for the inventory system. It will include registering and unregistering items as they're added to and removed from the inventory, stacking them as is appropriate. It will also include helper functions to equip to and unequip from the hotbar, which we will test by making items automatically equip to the first empty slo...
Roblox Studio Inventory Tutorial 2024 Edition Episode 2
Переглядів 1,6 тис.Місяць тому
Description: In this episode of the series, we get started on the code, importing a couple modules (the Janitor and Signal modules) and setting up some preparation code on the server side. The work we do in this episode will better prepare us to set up the registering and unregistering of items on the server side in the next episode, and eventually in later episodes the actual display of item s...
Roblox Studio Inventory Tutorial 2024 Edition Episode 1
Переглядів 5 тис.2 місяці тому
Description: This is the first episode of the 2024 edition of the Roblox Studio Inventory tutorial series! In this episode, I go over some of the reasons you might want an inventory system, what this inventory system will include, and how to put together the UI for the inventory system in preparation to start the coding. This system as a whole will include the following: - The ability to custom...
How to make an OOP-Structured NPC in Roblox Studio ep. 3
Переглядів 8654 місяці тому
Description: In this video, we will cover the process of creating the loop for following parts. This loop will allow an NPC to follow a part, and update the direction it's walking as the part moves. This can be used to follow the humanoid root part of a player, causing the NPC to follow that player, which we will get to later, potentially in the next episode. Questions / Help: For assistance wi...
How to make an OOP-Structured NPC in Roblox Studio ep. 2
Переглядів 1,7 тис.7 місяців тому
Description: In this video, we'll cover setting up the structure for a "loop" system which we will use in a variety of ways throughout this series. This will be an incredibly useful framework that you can use to create a wide variety of "loops" that run on certain intervals and can easily be activated or deactivated based on the context of the NPC. Additionally, this video will also get into a ...
How to make an OOP-Structured NPC in Roblox Studio ep. 1
Переглядів 6 тис.8 місяців тому
Description: This is the first episode of the OOP-structured NPC series, where I cover how to make an NPC with OOP structure and class inheritance, as well as pathfinding and other features I will show in future videos. The studio file for this series is already complete and can be accessed by becoming a member either on UA-cam or on Patreon (more info below), but in this video we cover setting...
How to make an inventory in Roblox 2023 Remake Part 10: Item Dropping & Error Messages
Переглядів 7 тис.9 місяців тому
Description: In this video, we'll cover how to set up the code for the drop button, as well as how to program a reusable error message that will pop up at the top of the inventory whenever it runs. We'll use this error message to display to users that an item is not droppable if they try to drop it. This error function we set up can also be used for other things like displaying that the invento...
How to make an inventory in Roblox 2023 Remake Part 9: Item Pickup
Переглядів 4,1 тис.10 місяців тому
Description: In this video, we'll cover how to set up a custom item pick-up system using proximity prompts that will work for all devices in theory. In the process of doing this, we'll also remove Roblox's default touch-to-pickup feature with tools, since that's essentially what we'll be replacing. Nonetheless, this video will prepare us for the next video in which we'll cover item dropping usi...
All Roblox UIComponent objects in under 3 minutes
Переглядів 95210 місяців тому
Description: In this video, I talk about all of Roblox's UIComponent objects in under 3 minutes, from UIPadding and UICorner to UITableLayout and UIPageLayout. These can all be extremely useful in different contexts and can save you loads of time if you know how to use them properly. The concepts behind some of these UIComponent objects also apply further than just Roblox Studio to environments...
How to make an inventory in Roblox 2023 Remake Part 8: Small Adjustments
Переглядів 3,1 тис.10 місяців тому
Description: In this video I cover setting up a simple label that shows on items that are currently equipped, making some adjusting to how equipping works for armor in preparation for setting that up, and finally fixing some, though definitely not all, of the bugs in regards to losing items on death and other things. I hope you enjoy the video. Questions / Help: For assistance with any problems...
Tables 101: The basics of dictionaries and arrays in Roblox Studio
Переглядів 1,7 тис.11 місяців тому
Description: In this video, I cover the basics of Roblox Studio tables, including how to make them, how to access, change, and print them, as well as how to loop through them using a variety of different kinds of for loops. I also give some practical examples of tables at the beginning of this episode from my own game, Evotype. Resources: Introduction of generalized iteration: devforum.roblox.c...
How to make an inventory in Roblox 2023 Remake Part 7: Holding items
Переглядів 3,7 тис.Рік тому
Description: In this video, I cover the process behind allowing the player to either press the number keys on a keyboard or press the slot frames themselves in order to select and hold items that have been equipped to the hotbar from previous episodes. With the completion of this, the inventory is actually mostly completely functional, aside from a few bugs and the fact that it doesn't include ...
How to make a shop in Roblox part 2: GUI Navigation
Переглядів 763Рік тому
Description: In this episode we'll cover the initial portions of the shop scripting, including the opening and closing of the shop, toggling between shop pages, and making the shop open when you approach an NPC or when you approach an individual part within a certain adjustable spherical range. In the next video, we'll adjust some stuff to make so the shop part/NPC doesn't repeatedly open the s...
How to make an inventory in Roblox 2023 Remake Part 6: Finishing the hotbar
Переглядів 3,9 тис.Рік тому
How to make an inventory in Roblox 2023 Remake Part 6: Finishing the hotbar
How to make an inventory in Roblox 2023 Remake Part 5: Item selection and hotbar
Переглядів 6 тис.Рік тому
How to make an inventory in Roblox 2023 Remake Part 5: Item selection and hotbar
How to make a shop in Roblox part 1: The GUI
Переглядів 1,7 тис.Рік тому
How to make a shop in Roblox part 1: The GUI
How to make an inventory in Roblox 2023 Remake Part 4: Displaying the items
Переглядів 7 тис.Рік тому
How to make an inventory in Roblox 2023 Remake Part 4: Displaying the items
How to create a hitbox in Roblox with Spatial Query and OverlapParams
Переглядів 19 тис.Рік тому
How to create a hitbox in Roblox with Spatial Query and OverlapParams
How to make an inventory in Roblox 2023 Remake Part 3: Registering items
Переглядів 11 тис.Рік тому
How to make an inventory in Roblox 2023 Remake Part 3: Registering items
How to make an inventory in Roblox 2023 Remake Part 2: Tool Setup & Preparation
Переглядів 17 тис.Рік тому
How to make an inventory in Roblox 2023 Remake Part 2: Tool Setup & Preparation
How to make an inventory in Roblox 2023 Remake Part 1: The GUI
Переглядів 50 тис.Рік тому
How to make an inventory in Roblox 2023 Remake Part 1: The GUI
How to organize your code using this modular framework
Переглядів 5 тис.Рік тому
How to organize your code using this modular framework
How to script a weapon in Roblox with multiple slash animations
Переглядів 13 тис.Рік тому
How to script a weapon in Roblox with multiple slash animations
Blender Tutorial: How to Make 3D Clothing for Roblox Studio [R6]
Переглядів 10 тис.Рік тому
Blender Tutorial: How to Make 3D Clothing for Roblox Studio [R6]
Evotype Main Theme
Переглядів 4352 роки тому
Evotype Main Theme
OOP for Beginners: Understanding Tables and Module Scripts in Roblox Studio
Переглядів 10 тис.2 роки тому
OOP for Beginners: Understanding Tables and Module Scripts in Roblox Studio
Inventory Tutorial Part 7: Tool Equipping & Pickup
Переглядів 22 тис.2 роки тому
Inventory Tutorial Part 7: Tool Equipping & Pickup
Inventory Tutorial Part 6: Equipping to Hotbar
Переглядів 10 тис.2 роки тому
Inventory Tutorial Part 6: Equipping to Hotbar
Auto-Gen Obby
Переглядів 2242 роки тому
Auto-Gen Obby

КОМЕНТАРІ

  • @AugustinMoga
    @AugustinMoga День тому

    AlvinBlox has got nothing on Knine😎

  • @goodideapub
    @goodideapub День тому

    Thanks! You're videos are pretty great 👍

  • @Aaronnny
    @Aaronnny 2 дні тому

    Very well informed, love it.

  • @bblockaa
    @bblockaa 2 дні тому

    good video, really excited for the inventory series to continue 😁

  • @reee638
    @reee638 2 дні тому

    Nice keep going

  • @RachealMiu
    @RachealMiu 2 дні тому

    ねこ

  • @DaveT1m
    @DaveT1m 10 днів тому

    Thank you so much for these tutorials! Easily the best inventory tutorial series on UA-cam

  • @xevnai
    @xevnai 10 днів тому

    ik you have collage but whenever you can, could you please make a crafting system for maybe part 5 or 6? ty

  • @KDkd-t2q
    @KDkd-t2q 11 днів тому

    Bro is next episode ever coming

  • @xevnai
    @xevnai 12 днів тому

    could you make a tutorial with it for crafting?

  • @theguywhosinred
    @theguywhosinred 12 днів тому

    you should add a jumpscare at the end of the fourth one cuz funny, also the way you split these up are a lot better. not just "part 1, help making some code and part of the ui, 2 and 3 are just gonna be code, 4 will be more ui development, and the rest is coding or improvements "(not actual way it was split since i forgot and never got through the whole thing because it was outdated and more messy) [also big step up in quality]

  • @theguywhosinred
    @theguywhosinred 13 днів тому

    42 minutes of coding im done for im dead :sob:

  • @theguywhosinred
    @theguywhosinred 14 днів тому

    i feel like you just put together most of the episodes in one, good idea

  • @theguywhosinred
    @theguywhosinred 14 днів тому

    i just noticed how its 43 minutes. im not making out alive with this one

  • @ramonwolf120
    @ramonwolf120 19 днів тому

    i get the followinf message when i add Janitor:GiveChore(player.CharacterAdded:Connect(charAdded)) : ReplicatedStorage.Modules.Janitor:35: invalid argument #1 to 'insert' (table expected, got nil) - Server - Janitor:35 is this due to me joining and it not being able to do the chore? it refers me to: -- Adding Chore function Janitor:GiveChore(_chore, ...) local chore = _chore if typeof(_chore) == "function" then local args = {...} chore = function() _chore(table.unpack(args)) end end table.insert(self.Chores, chore)

    • @DaveT1m
      @DaveT1m 10 днів тому

      I had the same problem, turns out that in this code: --Creating janitor object local janitor = Janitor.new() InventoryServer.Janitors[player] = janitor *janitor:GiveChore(function()* -------------------------------> The auto complete capitalized "Janitor" and that broke it. InventoryServer.Janitors[player] = nil end) so just change "Janitor:GiveChore(function()" to "janitor:GiveChore(function()"

  • @SpeedRacer-s8z
    @SpeedRacer-s8z 19 днів тому

    For some reason Im just not able to see my backpack even while there are tools inside of it..

  • @itsmekaren540
    @itsmekaren540 20 днів тому

    10:40😊

  • @itsmekaren540
    @itsmekaren540 20 днів тому

    4:27

  • @Ollzigamere07
    @Ollzigamere07 21 день тому

    hello Knineteen19 ive been watching u for awhile u ispired u to make a survival game do u have discord if u do could u reply ur username i wanna add u so ur there if im stuck on a script and i could message u

  • @brottoast6121
    @brottoast6121 22 дні тому

    I have a big issue, it is not updating when items are removed, it just stays the same i looked for typos but didnt find any so far

  • @Zilouz0475_PTRS
    @Zilouz0475_PTRS 23 дні тому

    Hey. I Had a Question. Can you wright me the scripts because i think i did a lot of error. and i don't understand everything. Please :D

  • @NOORoo58
    @NOORoo58 23 дні тому

    best develop roblox inventory ever in whole youtube!! ty alot

  • @zymoon_lua2142
    @zymoon_lua2142 24 дні тому

    Bro. You aren't teaching us anything, you are just making it and making us watch, without explaining anything.

  • @Plehlowla
    @Plehlowla 25 днів тому

    12 day later, awaiting ep 4.

  • @Mystical-TEDDY_
    @Mystical-TEDDY_ 27 днів тому

    Definitely the best invitory series on UA-cam

  • @BaltazarJimenez-m2g
    @BaltazarJimenez-m2g 28 днів тому

    can you make model on this inventory system that can help your viewers a lot?

  • @Mystical-TEDDY_
    @Mystical-TEDDY_ 28 днів тому

    Keep it up man, good work!

  • @Plehlowla
    @Plehlowla 28 днів тому

    First time really using janitor and signal, looking forward to seeing it more as the tutorial goes on

  • @Plehlowla
    @Plehlowla 28 днів тому

    Appreciate ya making a 2024 remake

  • @KDkd-t2q
    @KDkd-t2q 29 днів тому

    When is new part coming

  • @VatrixXofficial_
    @VatrixXofficial_ 29 днів тому

    great tutorials, keep going

  • @ChickenMacFrise
    @ChickenMacFrise Місяць тому

    Nice Playlist, looking forward to the next Episodes!

  • @xinyu2476
    @xinyu2476 Місяць тому

    yo respect for the janitor not maid

  • @Axel_Glow
    @Axel_Glow Місяць тому

    I eagerly await the next episode. I would like to structure my inventory differently and remove the Hot Bar (in this form), but the fundamentals from this series so far are extraordinarily helpful. Would the old tutorials be able to pick up where this video left off? Or should I just wait for the next video?

    • @johnsmith011
      @johnsmith011 Місяць тому

      I personally wouldn't recommend using the older videos because they are based on knowledge Knineteen19 had a while ago, while this one is a bit more up to date. While it is still possible, it would most likely be a headache to get them merged together.

  • @Harv770
    @Harv770 Місяць тому

    It didn't work for a bit and I didn't know why but then I found that the tool.RequiresHandle was set to true :(

    • @Harv770
      @Harv770 Місяць тому

      W vid tho thanks so much!

  • @Frostshade1622
    @Frostshade1622 Місяць тому

    what would i do if i only want a certain number of item slots im trying to limit it to 30 spaces without deleteing them

  • @Tettzz
    @Tettzz Місяць тому

    Wow never knew about this. I always just used Touched but that always seemed to be slow and not accurate at all.

  • @soraphop99
    @soraphop99 Місяць тому

    Can u make video expland about ModularBlue ui or how to use it

  • @CanBeGold
    @CanBeGold Місяць тому

    yo by a chance did you use ai to generate this script, because roblox's assistant is auto filling a lot of this and the script matches from the video, besides a couple variables names are different. very odd

  • @rovision1502
    @rovision1502 Місяць тому

    bro i beg u episode 4

  • @willow-vs2or
    @willow-vs2or Місяць тому

    bro types like a machine, and has taught me so many things about uiCorners, UiAspectRatios and whatever else there was. Great Vid! this deserves so many more views

  • @Maskeowl
    @Maskeowl Місяць тому

    omg new videos are aweosemee easy to follow and understand i am gland you upgrade you video style

  • @goodideapub
    @goodideapub Місяць тому

    Awesome video ❤

  • @bblockaa
    @bblockaa Місяць тому

    The timing on this video was crazy since I finished the other parts of the tutorial yesterday lol

  • @not_bartu
    @not_bartu Місяць тому

    You are the best :)

  • @IA7MDYT
    @IA7MDYT Місяць тому

    Lets goooo🎉

  • @VenomousPegasus
    @VenomousPegasus Місяць тому

    Please keep this up, you're perfecting your teaching skills, video creation and editing! We all appreciate you so much <3

    • @Knineteen19
      @Knineteen19 Місяць тому

      Well technically I paid someone else to do the editing in these last couple ones haha, but I'm glad you've been enjoying this new style of video!

  • @sherlockoala8974
    @sherlockoala8974 Місяць тому

    RIP me that's only waiting for the armor system

    • @Knineteen19
      @Knineteen19 Місяць тому

      Haha I'll try to get there as fast as I can, but with college coming back up I'm not sure how easy that will be.

  • @WAZERRUSSIN
    @WAZERRUSSIN Місяць тому

    Thanks

  • @Maskeowl
    @Maskeowl Місяць тому

    12:00 i give up this