#TextBox.Text problem
71 messages · Page 1 of 1 (latest)
but in this script i also change a player leader board
** You are now Level 3! **
use a remote event in the local script and send the event to the server. On the server event, change the leaderstats
how did this?
Name it something like updateleaderstats
ok
when do u actaully want the leaderboard to be updated
Once they have finished typing in it?
then when I press the button in this interface
So when you press the text button, the text currently in the text box gets taken and displayed on the leaderboard?
** You are now Level 5! **
something like this
want me to write the script for you or explain it to you?
and create a new server script with update leadestats?
Yes you can just by adding it like FireServer(argumentName)
and how i can get it in server script?
ok
first argument is always the player that called the event
and can i get models from serverstorage in localscript?
ok
i need to enter two arguments
value is integer number
but if i try do leaderstats.Money.Value -= value in server script, he outputs " ServerScriptService.UpdateLeaderboard:4: attempt to perform arithmetic (sub) on number and Instance"
with just number this works
did you fix it?
no
send both pieces of code and I will have a look
client and server
I see the problem
when you fire server on the client side, i don't think you need to include the player argument
just value
the player is automatically sent so you don't need to include it
so just edit the client side one to change it to FireServer(value)
of course?
i have a meshpart with script
if i touch this part - i get 10 wood
but when i relocate meshpawrt from ServerStorage to Replicate Storage - the script in this part stopped working
but original part anyway works normaly
scripts can't be run in replicated storage if that's your problem?
no
i clone a mesh part
he include script
and when i clone it in workspace a script stopped working
sorry i don't understand what you mean
i have a part
this part includes a script
if i touch this part, script add in playerstats value
but when i relocate a part
script stopped working
and if i push the button in user interface i clone this part in workspace
and in this cloned part script does not working
thank you very much
❤️
@inner ivy