9/15/2023 0 Comments Module script roblox![]() Whenever I press “F”, it doesn’t print “F Key!” anymore. To get to the main point, whenever I Destroy the ClientMain localscript inside of the Character, the InputBegan event doesn’t fire anymore. Inside of this Main function I make a new event, a InputBegan event and I listen for the “F” Key to be pressed. Inside of the Test Modulescript, there is a main function like so: -Test ModuleScriptī:Connect(function(Input, gameProcessed) It also has a table called “Modules”, the current module I’m working with is called “Test”, as you can see in the Client folder I have a ModuleScript called “Test”. The Boilerplate module handles the variables the server and client will access, it also handles the Client variables, like Player, UserInputService, Character, and etc. Local SharedModules = Boilerplate.SharedModules Local Boilerplate = require(game:GetService("ReplicatedStorage"):WaitForChild("Modules").Shared.Boilerplate) Inside of the ClientMain Script, I require the Boilerplate Module in the “Shared” folder like so: -ClientMain Script I will be focusing on the client side instead of the server side because I feel like that’s where I should be focusing most in this post. So, I’ve read this post: Do modules keep running after death? - #4 by reteachĪnd I am working with a modular structure, here is how it’s setup currently: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |