I use this script:
local milk = game.ReplicatedStorage.Milk
local price = 10
local converterNum = tonumber(milk.Value)
--local converterString = tostring(price)
print(tonumber(milk.Value))
script.Parent.MouseButton1Click:Connect(function()
if converterNum >= price then
converterNum = converterNum - price
price = price + 10
else
print("error")
end
end)
And the error is
Value is not a valid member of RemoteEvent "ReplicatedStorage.Milk"
I dont understund how i can string it i try with tonumber or tostring but it wont work, Please Any Suggestion I need this really Thanks