#Ruining My Whole Game..
1 messages · Page 1 of 1 (latest)
** You are now Level 1! **
just lemme know if it works okay?
@obtuse oriole put the numbers IN a string, and then use tonumber() when you want to convert back to a number (i.e. when you're comparing if userId == that)
otherwise, roblox interprets it as you setting an index of the table since it's a number, which you don't want
They meant putting the numbers inside " " in the square brackets
tonumber() basically is what it says. Converts a string into a number if possible
Oh i see
DataService.Admins = {
[7446597050] = { -- benl61907
Permissions = "All"
},
[4995314406] = {
Permissions = "All"
},
[880198277] = {
Permissions = "All"
},
[2390406874] = {
Permissions = "All"
}
}
``` is this the whole script? like 7 would be
```lua
},
what is line 7
No no. You use tonumber() when you're checking the admin list elsewhere. Store the userIds as strings
["1223455"] = { Permissions = "All" }
you can use numbers as keys
i think you can use almost anything as keys
not only strings
Yeah I was building up on the earlier suggestion by Lightlim
ok sorry
No worries
** You are now Level 2! **
isnt the index just the key that gets the value?
I think it would be the same if its a string
modelling is difficult 😭
it's not difficult, it's just that you have no understanding of it (not an insult)
its impossible for me. if i open blender my laptop blue screens
worth anyone getting a grasp on the basics, id say
oh no i agree with you, was talking to blitz lol
but ye i struggle with modelling too
still need to fix the other side of the code where userIds are checked though
The table should have no issues. I tried this and it runs good
Oh alright
can you put the whole script
252 what
😭
Damn
maybe some loop is making the errors?
252 errors would mean that almost every line is making an error
are they all from that script
oh nvm then
funny scripter you have
white, yellow or red
mostly might be yellow lmao
thats a warning
yeah funny scripter
it's not really a bad thing, this 'warning'. It's like the normal 'print' but with yellow color
Only in this case
go to output and disable everything but errors
its from another script
is the issue at the start fixed though
k
show the script
** You are now Level 3! **
uh
does the whole script look like that
i mean
do the other lines look similar
i don't think even ai gives out code like that
That's good. I was just saying that the line of code was terrible and not even ai would do something like that. I wasn't implying that you use ai or anything, it was just a comparison
what
where is the function used
wait
i think its something to obfuscate the code a bit
replace the first line with:
function RnkIEXajmVEzbSxRTYSBnlOWcj(code)local a =''for i in ipairs(code)do a=a..string.char(code[i]/105)end return a end
i think it was using local as the variable name
so i replaced the variable name with a
what is your code supposed to do
the one that errors
and that is not fixed
I feel like the finction is made to hide ome words in the code
we can try to find out what it gives ro rebuild it
is the assets folder in replicated storage
or server storage
or somewhere else
only the first line needs to be fixed (i hope)
is TierModule somewhere in replicated storage?
i mean the finction at the first line
it may be the issue
can you search for "TierModule" and tell me where it is
in explorer
yes but
where is the script placed in game
in what service
k
require(game:GetService(RnkIEXajmVEzbSxRTYSBnlOWcj({8610,10605,11760,11340,11025,10395,10185,12180,10605,10500,8715,12180,11655,11970,10185,10815,10605})).Assets.Modules.ItemDataService.TierModule)
this gets tiermodule
that means that ```lua
RnkIEXajmVEzbSxRTYSBnlOWcj({8610,10605,11760,11340,11025,10395,10185,12180,10605,10500,8715,12180,11655,11970,10185,10815,10605})
oh
wait
what script was giving the other errors
you mean that tiermodule is fine?
or
the script with the weird function
oh
and
the one with the weird function is broken?
wait nvm the line 1 function is good
i tried it