#Remote event value trouble
1 messages · Page 1 of 1 (latest)
Show me the error
What's it trying to do
im just having trouble recieving a value from a remote event
Is it for money?
It gets the text from the username text box, and the Amount text box, converts the amount text into a number value and sends it from the client to server using a remote event
But what's it supposed to do
but the amount is nil
If the amount is nil you messed up part of the code
no shit thats why im asking for help
print plr.Text
thats nil
so
print(b)
plr.Text works
plr.Text is nil
print(a) prints plr.Text
plr.Text is b
U printing b on server but nv.Value on client
no
print a prints player
first argument to on server event is player
followed by arguments
yes
u sending 2 arguments
so on server recieves
player
plr.Text
nv.Value
u printing b which is 2nd argument
so plr.Text
which is nil
plr.Text is meant to be the player
ohh
it auto fills out
i get
so in your case, a - player, b - plr.Text
first of all the NumberValue should be handled on the server, AmountValue is not even replicated to the server cuz you're creating it locally
so would i do something like this
pretend that says amount.Text
server
with player
if u do
FireServer(arg1,arg2)
server will recieve
player,arg1,arg2
stop sending the player to server ;/