#Ruining My Whole Game..

1 messages · Page 1 of 1 (latest)

balmy sun
#

I think you only need the square brackets if it's a string

#

In my memory numbers don't require the square brackets

wooden heartBOT
#

studio** You are now Level 1! **studio

balmy sun
#

just lemme know if it works okay?

ornate marsh
#

@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

balmy sun
#

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

cursive magnet
#
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

balmy sun
#

No no. You use tonumber() when you're checking the admin list elsewhere. Store the userIds as strings
["1223455"] = { Permissions = "All" }

cursive magnet
#

i think you can use almost anything as keys

#

not only strings

balmy sun
#

Yeah I was building up on the earlier suggestion by Lightlim

cursive magnet
#

ok sorry

balmy sun
#

No worries

wooden heartBOT
#

studio** You are now Level 2! **studio

cursive magnet
#

I think it would be the same if its a string

balmy sun
#

modelling is difficult 😭

ornate marsh
#

it's not difficult, it's just that you have no understanding of it (not an insult)

cursive magnet
#

its impossible for me. if i open blender my laptop blue screens

ornate marsh
#

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

cursive magnet
#

what was in line 7

#

the exact line

#

the error says that it happened on line 7

balmy sun
#

I see

#

Show your code, i wanna see how the quotes are

#

Is it the same error now?

ornate marsh
#

still need to fix the other side of the code where userIds are checked though

balmy sun
#

Right

#

I'd suggest waiting for the scripter so that it gets done without much hassle

cursive magnet
#

The table should have no issues. I tried this and it runs good

ornate marsh
#

hm

#

i seem to be wrong o_o

#

mb

#

love that

cursive magnet
#

can you put the whole script

balmy sun
#

252 what

cursive magnet
#

😭

balmy sun
#

Damn

cursive magnet
#

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

balmy sun
#

Okay so then the errors are from other scripts

#

O_O

cursive magnet
#

wait

#

what color is it

#

the message

balmy sun
#

funny scripter you have

cursive magnet
#

white, yellow or red

balmy sun
#

mostly might be yellow lmao

cursive magnet
#

thats a warning

balmy sun
#

yeah funny scripter

cursive magnet
#

look for red messages

#

they are errors

balmy sun
#

it's not really a bad thing, this 'warning'. It's like the normal 'print' but with yellow color

#

Only in this case

cursive magnet
#

go to output and disable everything but errors

#

its from another script

#

is the issue at the start fixed though

#

k

#

show the script

wooden heartBOT
#

studio** You are now Level 3! **studio

cursive magnet
#

uh

#

does the whole script look like that

#

i mean

#

do the other lines look similar

balmy sun
#

i don't think even ai gives out code like that

cursive magnet
#

remove the first line

#

or

#

comment it out

#

put -- in front of it

balmy sun
#

it's not required, or it makes no sens

#

sense

cursive magnet
#

i dont think that is supposed to exist

#

what is the variable

balmy sun
#

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

cursive magnet
#

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

balmy sun
#

i got a headache

#

Yeah 😭

cursive magnet
#

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