I'm making a Currency Trading system for a YouTube video on my channel, But I'm trying to update a TextLabel to the amount that they put in, Everything should be working but it's not
May anyone help?
ServerScript: ~~~~~~~~~~~~~~~~~ player1TradeGui:FindFirstChild("TradeFrame"):FindFirstChild("Player1Input"):FindFirstChild("SetAmount").MouseButton1Click:Connect(function()
local amount = tonumber(player1TradeGui:FindFirstChild("TradeFrame"):FindFirstChild("Player1Input"):FindFirstChild("CashInput"):FindFirstChild("CashAmount").Text) if tonumber(amount) <= player1.leaderstats.Cash.Value then player1Amount = amount player2TradeGui:FindFirstChild("TradeFrame"):FindFirstChild("Player1EnterAmount").Text = "Entered: "..tostring(amount) player1TradeGui:FindFirstChild("TradeFrame"):FindFirstChild("Player1EnterAmount").Text = "Entered: "..tostring(amount) end end)
~~~~~~~~~~~~~~~~~