I've decided to make a murder-mystery related game, but I don't know how to get anywhere with the module I have made.
I was planning to use folders and just use bool values, but that would take too much of my time. Modules are much cleaner/neater to use and find any data you want in my opinion.
Overall, I just need help with the modules and how can I get/set the data inside of it using :GetAsync() and SetAsync()? So that once that player joins the starter table inserts a GUI with a basic knife image, rarity, imageID, textureID, MeshID.
What I can do so far:
• Loop through a table to get the data's variable. Using for pairs(). • Create a table inside of a table. (Obviously)
What I can't do so far:
• Save the player's module data. • Create the knife using the table that has the meshID and textureID.
What I did:
-- Module script: local Knives = {ItemName = {"Rarity", "ImageID", "MeshID", "TextureID"}; ItemName2 = {"Rarity", "ImageID", "MeshID", "TextureID"};} return Knives -- script: local M_Knives = require(script:FindFirstChild("M_Knives")) for i, v in pairs(M_Knives) do print(v[1]) end