Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Not updating text with tostring?

Asked by
MattVSNNL 620 Moderation Voter
2 years ago
Edited 2 years ago

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)

~~~~~~~~~~~~~~~~~

0
where is player1TradeGui located? Benbebop 1049 — 2y
0
In the PlayerGui MattVSNNL 620 — 2y
0
All the locations are correct I checked about 15 times MattVSNNL 620 — 2y
0
ok, try printing some values, see if they are all correct Benbebop 1049 — 2y
0
Tried didn't work MattVSNNL 620 — 2y

Answer this question