Categories > Exploiting > Scripts >

Help my with readfile function pls

OuiSom89

OuiSom89

Posts: 14

Threads: 5

Joined: Aug, 2022

Reputation: 0

Posted

Good evening I would like to be able to store variables with true or false and then be able to call them in my script but I have the impression that the machine takes its just for text and not code

My Script

writefile("Skins.lua","SkinsBarreA = true\nSkinsBulletA = true\nSkinsBrickA = true\nSkinsFondA = true")
readfile("Skins.lua")
print(readfile("Skins.lua"))
if SkinsBarreA then
print("SkinsBarreA it's true")
end
if SkinsBulletA then
print("SkinsBulletA it's true")
end
  • 0

Posts: 1430

Threads: 71

Joined: May, 2022

Reputation: 20

Replied

you have to use dofile() to run the code and just make the file return a table with all your values and store that as a variable

writefile("Skins.lua","a = {} a.SkinsBarreA = true a.SkinsBulletA = true a.SkinsBrickA = true a.SkinsFondA = true return a")
local a = dofile("Skins.lua")
if a.SkinsBarreA then
print("SkinsBarreA it's true")
end
if a.SkinsBulletA then
print("SkinsBulletA it's true")
end

  • 0

i use arch btw

OuiSom89

OuiSom89

Posts: 14

Threads: 5

Joined: Aug, 2022

Reputation: 0

Replied

@Whoman thanks

  • 0

Posts: 1

Threads: 0

Joined: Nov, 2022

Reputation: 0

Replied

These codes are really hard. I still don't understand anything. 

  • 0

OuiSom89

OuiSom89

Posts: 14

Threads: 5

Joined: Aug, 2022

Reputation: 0

Replied

@89667It's not very hard if you code in the Roblox editor but when you use the exploit APIs it's difficult because the functions date from 2017 and are not very easy to understand how to use them either it's poorly explained or it's buggy

  • 0

Added

@Whoman And if during the script I want to add a new variable or change the value in the variable I do how?

  • 0

Posts: 381

Threads: 42

Joined: Feb, 2021

Reputation: 9

Replied

In situtations like this, JSON Config Lib (LUA) comes in handy.

 

  • 0

https://media.discordapp.net/attachments/994643402949926956/1004560140252495960/uqJXQIda.gif

Read me.

Discord: Ad#1085; Don't hesitate to DM me if you need help/anything.

OuiSom89

OuiSom89

Posts: 14

Threads: 5

Joined: Aug, 2022

Reputation: 0

Replied

@65954And I can make sure to put 2 tables in the same file?

  • 0

Posts: 381

Threads: 42

Joined: Feb, 2021

Reputation: 9

Replied

@OuiSom89 

You can use to create as many config files as you want in a single script.

 

You can also give as many values as you want in a single table.

 

If you want to do two tables, Save it as two different configs then load whichever one you need.

 

Read the documentation I gave and DM me if you need any help related to it: Ad#1085.

  • 0

https://media.discordapp.net/attachments/994643402949926956/1004560140252495960/uqJXQIda.gif

Read me.

Discord: Ad#1085; Don't hesitate to DM me if you need help/anything.

OuiSom89

OuiSom89

Posts: 14

Threads: 5

Joined: Aug, 2022

Reputation: 0

Replied

@65954Yes it's good I created a second file for the table

  • 1

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )