I have 2 text boxes and my script prints one of them but not the other, the "potatoes" is printing fine, but the "name" isn't, could anyone tell me why this would be?
script.Parent.MouseButton1Click:Connect(function()
local name = script.Parent.Name.Text
local potatoes = script.Parent.Potatoes.Text
if name ~= "" and potatoes ~= "" then
print(tonumber(potatoes))
print(tostring(name))
game.ReplicatedStorage.PotatoesCommand:FireServer(name, potatoes)
end
end)

1 comment
It means that potatoes is not a number