Get all of my project files on my patreon: bit.ly/3SOBP6J JOIN THE DISCORD! discord.gg/cztJHYSfVE Particle model: bit.ly/3STKxDt Sleitnick's Module Loader: bit.ly/49qsxGn
@DaChickenChworm
5 ай бұрын
If you haven’t already, maybe try making a quick tutorial on a fishing system if you can. Wether it’s for a series or just a random video, it would help me and a lot others
@guiviogamer
Ай бұрын
The module link does not work. what do i do?
@mr.bingus69
4 ай бұрын
i did not see these extra folders and script changes u added in part 1
@ThatAnimeFanYaKnow
Ай бұрын
--[=[ @class Loader The Loader module will require all children or descendant ModuleScripts. There are also some utility functions included, which assist with loading and starting modules in single-script environments. For example, here is a loader that loads all ModuleScripts under a folder that end with the name Service, and then calls all of their OnStart methods: ```lua local MyModules = ReplicatedStorage.MyModules Loader.SpawnAll( Loader.LoadDescendants(MyModules, Loader.MatchesName("Service$")), "OnStart" ) ``` ]=] local Loader = {} --[=[ @within Loader @type PredicateFn (module: ModuleScript) -> boolean Predicate function type. ]=] type PredicateFn = (module: ModuleScript) -> boolean --[=[ Requires all children ModuleScripts. If a `predicate` function is provided, then the module will only be loaded if the predicate returns `true` for the the given ModuleScript. ```lua -- Load all ModuleScripts directly under MyModules: Loader.LoadChildren(ReplicatedStorage.MyModules) -- Load all ModuleScripts directly under MyModules if they have names ending in 'Service': Loader.LoadChildren(ReplicatedStorage.MyModules, function(moduleScript) return moduleScript.Name:match("Service$") ~= nil end) ``` ]=] function Loader.LoadChildren(parent: Instance, predicate: PredicateFn?): { [string]: any } local modules: { [string]: any } = {} for _, child in parent:GetChildren() do if child:IsA("ModuleScript") then if predicate and not predicate(child) then continue end local m = require(child) modules[child.Name] = m end end return modules end --[=[ Requires all descendant ModuleScripts. If a `predicate` function is provided, then the module will only be loaded if the predicate returns `true` for the the given ModuleScript. ```lua -- Load all ModuleScripts under MyModules: Loader.LoadDescendants(ReplicatedStorage.MyModules) -- Load all ModuleScripts under MyModules if they have names ending in 'Service': Loader.LoadDescendants(ReplicatedStorage.MyModules, function(moduleScript) return moduleScript.Name:match("Service$") ~= nil end) ]=] function Loader.LoadDescendants(parent: Instance, predicate: PredicateFn?): { [string]: any } local modules: { [string]: any } = {} for _, descendant in parent:GetDescendants() do if descendant:IsA("ModuleScript") then if predicate and not predicate(descendant) then continue end local m = require(descendant) modules[descendant.Name] = m end end return modules end --[=[ A commonly-used predicate in the `LoadChildren` and `LoadDescendants` functions is one to match names. Therefore, the `MatchesName` utility function provides a quick way to create such predicates. ```lua Loader.LoadDescendants(ReplicatedStorage.MyModules, Loader.MatchesName("Service$")) ``` ]=] function Loader.MatchesName(matchName: string): (module: ModuleScript) -> boolean return function(moduleScript: ModuleScript): boolean return moduleScript.Name:match(matchName) ~= nil end end --[=[ Utility function for spawning a specific method in all given modules. If a module does not contain the specified method, it is simply skipped. Methods are called with `task.spawn` internally. For example, if the modules are expected to have an `OnStart()` method, then `SpawnAll()` could be used to start all of them directly after they have been loaded: ```lua local MyModules = ReplicatedStorage.MyModules -- Load all modules under MyModules and then call their OnStart methods: Loader.SpawnAll(Loader.LoadDescendants(MyModules), "OnStart") -- Same as above, but only loads modules with names that end with Service: Loader.SpawnAll( Loader.LoadDescendants(MyModules, Loader.MatchesName("Service$")), "OnStart" ) ``` ]=] function Loader.SpawnAll(loadedModules: { [string]: any }, methodName: string) for name, mod in loadedModules do local method = mod[methodName] if type(method) == "function" then task.spawn(function() debug.setmemorycategory(name) method(mod) end) end end end return Loader
@MonzterDEV
6 ай бұрын
Dang, the animations look super smooth! Love the amazing content as usual 😄
@polarisprog
6 ай бұрын
Thanks man! I love your content!
@robert_1136
6 ай бұрын
Video Idea: You should make a tutorial on how to make a plane in Roblox Studio with actual physics.
@UnluckyLeo1
5 ай бұрын
There are already actual physics in Roblox Studio
@Johnink03
6 ай бұрын
pretty cool
@sabrinasauer1953
5 ай бұрын
Its Cool
@AlexRbx737
6 ай бұрын
YAY FINALLY
@MinionPRoblox
Ай бұрын
great vid, just subed and you deserve way more subs
@polarisprog
Ай бұрын
Thanks and welcome
@Oaklyplays
12 күн бұрын
I spent like an hour doing part one got excited when it worked part to switched everything around and adds random stuff that wasn’t there making it so it doesn’t work anymore
@TehEpikNoobKing
6 ай бұрын
stopping kids from saying first
@stavros222
5 ай бұрын
But im an adult. You didn't stop me
@stavros222
5 ай бұрын
FIRST
@FletcherOver
5 ай бұрын
I’m kid and YOU DIDNT STOP ME FIRST
@stavros222
5 ай бұрын
@BalloonStudiosProduction_1 i now name you an adult. Now you are not a kid saying first but an adult saying first
@BloxDashContent_
5 ай бұрын
Second.
@Kakokix
6 ай бұрын
Helo your are make a Nice vidéo
@polarisprog
5 ай бұрын
Thank you so much 😀
@lorenanegoita8860
Ай бұрын
Cool video it will help me thanks
@polarisprog
Ай бұрын
Glad it helped
@regan9006
5 ай бұрын
You should make the video on the UI frame opening and closing module but make the frames have different sizes instead of that one frame size.
@JustynaKotula-ft7fk
Ай бұрын
Thanks mate
@asneakyfox69420
Ай бұрын
the link for the module loader does no longer work. can you provide mw with a new one or update the existing one?
@cashbotfn
2 ай бұрын
BRO WHY DID YOU CHANGE ALL THE SCRIPTS WITHOUT SHOWING US HOW, I HAVE NO CLUE WHAT TO DO NOW AND I SPENT SO LONG ON IT
@Hamburgermuncher825
Ай бұрын
FR
@EvanFletcher202
Ай бұрын
can anyone tell me what "Module code did not return exactly one value"
@jaska1026
4 ай бұрын
This is a very good tutorial but You dont upload paert and i was wondering when you gonna do it
@rexyvrgt
5 ай бұрын
yoo w
@huntneurohr1087
5 ай бұрын
For part 3, you should show how to make the different seas and a fruit system
@EvanFletcher202
Ай бұрын
Im pretty sure you can just search that up
@Yp3droofc336
Ай бұрын
thx bro
@NooncmRadioFluxsfu
5 ай бұрын
Hey you should finish the projet of making a pet-simulator game, please!
@SSBVfx
5 ай бұрын
Bro Make a game Like Project inazuma pls
@miradosbs
5 ай бұрын
Do as you do cool egg hatching
@mrg212
5 ай бұрын
Still Awesome man but is it possible to make the punch run 1 of 2 animations as im trying to make it so when i punch it randomly picks either my left or right punch animation and if i click multiple times it will then play the other hand after the first punch
@user-ml3uf3ki9x
4 ай бұрын
7:27 for all who didn’t work for them punch animation is punch click
@Hamburgermuncher825
Ай бұрын
me
@ChikmenComments
6 ай бұрын
Niceeeee
@reeve_watt
5 ай бұрын
hey polaris! you've really influcenced me to start my own channel! what recording software do you use? thank you!
@Rob3rt_YT
6 ай бұрын
Cool
@AlexRbx737
5 ай бұрын
I wish i had the scripts but am to broke to support you:(
@guiviogamer
Ай бұрын
the module link does not work. what do i do?
@ThatAnimeFanYaKnow
Ай бұрын
Idk it didnt work for me too.
@jayyyyyyy5531
5 ай бұрын
fps game part 2 plz
@HorrorBuddies381
5 ай бұрын
Help me please polarisprog or someone! I'm getting an error from the Loader that says, attempt to call missing method 'GetChildren' of table.
@AlexRbx737
5 ай бұрын
My animation wont work i think bec of the script thatbyou deleted.
@aBronzeRR
5 ай бұрын
It doesnt work fot me and i have no errors
@Hamburgermuncher825
Ай бұрын
Is anyone else having trouble with the keyrameReached
@Lovear-v2s
20 күн бұрын
MEH
@WilliamandElvinRblx
5 ай бұрын
Please friend boost system or potion system for currency cost
Пікірлер: 58