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)


5 comments

0

where is player1TradeGui located?

0

In the PlayerGui

0

All the locations are correct I checked about 15 times

0

ok, try printing some values, see if they are all correct

0

Tried didn't work