- What do you want to achieve? Keep it simple and clear!
When a remoteEvent is called with a stringValue of a name i dont know how to get the price using the string
- What is the issue?
I dont know how to search the module with the stringValue
- What solutions have you tried so far?
I searched everywhere, nothing helped
CODE
local Manager = require(script.ShopItems)
local repStorage = game:GetService("ReplicatedStorage")
local Buy = repStorage:FindFirstChild("Buy")
Buy.OnServerEvent:Connect(function(player,item)
local leadearstats = player:FindFirstChild("leaderstats")
local Score = leadearstats:FindFirstChild("Score")
if Score.Value >= Manager.item.Price then
end
end)