![]() Local GameEvents = GameContent:WaitForChild("GameEvents") Local GameModules = GameContent:WaitForChild("GameModules") Local GameContent = ReplicatedStorage:WaitForChild("GameContent") Local Tools = Workspace:WaitForChild("Tools") Getting required instances needed for the script to work. Local UserInputService = game:GetService("UserInputService") Local SoundService = game:GetService("SoundService") ![]() Local ServerStorage = game:GetService("ServerStorage") Local ReplicatedStorage = game:GetService("ReplicatedStorage") Local Players = game:GetService("Players") Local Workspace = game:GetService("Workspace") This still works even if the names aren't original. Getting required services within the game for later use. ServerScript (the main script): print(": ToolHandler is initializing, please wait.") I also checked over both scripts to see any issues that might be leading to this issue, I couldn't find any.īoth scripts are not finished completely but done enough to give you a general idea. ![]() I have already tried putting a print function inside of the function in the ModuleScript, but it seems to not even print to console. However, whenever I try running a function inside of the ModuleScript from a ServerScript, it just plain out doesn't work. So basically, I am making a game with a Press E to pick up weapon/item and I have 2 scripts that handle all of the work that needs to be done. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |