localscript
local thevalue = script.Parent.Parent.MoneyPValue
local remotevalue = script.Parent.Parent.MoneyRemoteValue
script.Parent.MouseButton1Down:Connect(function()
remotename:FireServer(thevalue.Text)
end)
script
local remotepvalue = script.Parent.MoneyRemoteValue
local themoneyvalueis = script.Parent.MoneyValue
local function theplayervalueis(player, MoneyPValue)
themoneyvalueis.Value = MoneyPValue --it doesn't change the value and it says "bad argument #2 to expected, got object"
end
remotepvalue.OnServerEvent:Connect(theplayervalueis)
So my Problem here is. If I press the button it doesn't change the value and it prints and error which says "bad argument #2 to expected, got object" Please Help!

11 comments
doesn't work :C
also sorry i didn't say that the theValue is TextBox So it will be theValue.Text But Doesn't WOrk!
You need to provide more info than that. What is happening - are you getting an error? And if so, what does it say?
it says the same thing! "bad argument #2 to expected, got object" but i don't have error on the code!
what line is the error on? and in the local script or the server script?
script it doesn't change the value!
Edit your question above with how your scripts look now so that I can see where the error might be
If the money value is a number in a text label, try using tonumber().
vector3_zero Done!
Can you throw a 'print(moneyPValue)' in the server script between lines 5 and 6 and reply with what it prints out?
wait its fixed... lol