hey, just making a few test scripts to familiarize myself with roblox studio and interacting with the client/server environment, and i get an infinite yield on the WaitForChild on my ModuleScript. i checked online, and they say that it could be from a misspelling, but i'm checking my code, and there doesn't seem to be anything that causes the issue. noting i am loosely following the module tutorial on the official documentation site: https://create.roblox.com/docs/scripting/module
i have 2 files- TestModule, under ReplicatedStorage:
local pizza = {}
local size = {
large = 12,
medium = 8,
small = 4
}
function pizza.getPrice(size)
local price = pizza.size[size] * 2
return price
end
return pizza
and ModuleTaker, under ServerScriptStorage
print("testingpleasework")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local pizza = require(ReplicatedStorage:WaitForChild("pizza"))
local price = pizza.getPrice("large")
print("The price is ")
"testingpleasework" is printed right as i spawn in, afterward, there's a long wait, then i get the infinite yield error. technically, i have another script under ServerScriptStorage, but that one's unrelated to everything else.
what could be causing the error?