#Help Needed
83 messages · Page 1 of 1 (latest)
show where u fire remote
I was about to show you then just saw that my ServerScriptService is empty...
BRO
I accidently deleted it
nvm
It wasnt showing cause I was in test mode...
would this be the right script?
.
@autumn sail if u want to have harder error handling and prevent the whole script breaking witj no chance of working
in ur ‘Clicks.Text = amount’ add a ‘or “0”’ and then return a warning
that way players can also report errors from the dev console and you can solve it
ok
** You are now Level 1! **
it jst doesnt break if amount is nil
are you even requiring this somewhere
wdym
an actual server script?
Does the GetData event work?
how would I figure that out?
no
if currency == “Clicks” then
Clicks.Text = amount or “0”
—rest of yar code```
?
hol up
its working now
no problems
ohh its because I had Clicks.Text = amount
but added a then onto the end like a bozo
the fix was temporary because when I was adding a number format compaction Lib it doesnt recognise the text "amount" as a number
And thats an error message that in the script its from links to this function
If it expects a number
then provide “0” as 0
ok
I'm still getting the error
** You are now Level 2! **
oh ye
Not this script
idk ur code or what ur doing but you have to have cheks that ensure amount is a number
error again
if not type(amount) == “number” then return end at the top of ur script
that way ut stops execution and prevents errors
@halcyon swallow
or you can change something about amount and ser it to 0
i see
that is from a lib, but its a printed error, it refers to that script
but the issue is
amount is not a number
which is an issue from the script he uses it
ye
at the top
Of ur
updatecurrency
do this
if not type(amount) == “number” then continue end
then
do
amount = 0
you can remove the or 0 then
since you set amount to 0 if the given typenis not a mumber
I dont have an update currency but are you talking about the script the error is coming from or the script with the click.text = amount or 0 in it??