local Mouses = require(script.MousePrices)
local event = game:GetService("ReplicatedStorage"):FindFirstChild("BuyingEvent")
event.OnServerEvent:Connect(function(player, Mouse)
local Type = Mouses.MouseInfo.Info[Mouse]
print(Type)
print(Type["Price"])
if player.leaderstats.Clicks then
print(1)
end
event:FireClient(player, true)
event:FireClient(player, false)
end)
I guess your thought process is that you’re requiring the script in which you store the MouseInfo object, but, in reality, ModuleScripts work in a way that you actually require the object you return at the last line of the ModuleScript, which in your case is the MouseInfo object, so your Mouses variable is already pointing at it.