ive tried a few things but it still isnt working.. any help will be apritiated (the only thing i can think thats breaking it is the order)
Normal Script:
local ReplicatedStorage = game:GetService("ReplicatedStorage") local CraftEvent = ReplicatedStorage.CraftEvent local Module = ReplicatedStorage.Crafting local function onCraftEventFired(player, Item) if Module[Item].C1 == "None" then C1 = true end if Module[Item].C2 == "None" then C2 = true end CraftEvent.OnServerEvent:Connect(onCraftEventFired)
Module Script:
local Crafting = {} Crafting["Blank"] = { C1 = "None", C2 = "None", } return Crafting
You forgot to require the modulescript (Normal script)
local ReplicatedStorage = game:GetService("ReplicatedStorage") local CraftEvent = ReplicatedStorage.CraftEvent local Module = require(ReplicatedStorage.Crafting) local function onCraftEventFired(player, Item) if Module[Item].C1 == "None" then C1 = true end if Module[Item].C2 == "None" then C2 = true end CraftEvent.OnServerEvent:Connect(onCraftEventFired)