Categories > Exploiting > Scripts >

Help my with readfile function pls


New Reply

OuiSom89

OuiSom89

Posts: 14

Threads: 5

Joined: Aug, 2022

Reputation: 0

  • 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

Posts: 1004

Threads: 49

Joined: May, 2022

Reputation: 11

  • 0

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

https://i.imgur.com/21V9TOF.png

Posts: 14

Threads: 5

Joined: Aug, 2022

Reputation: 0

  • 0

Replied

@Whoman thanks

Posts: 1

Threads: 0

Joined: Nov, 2022

Reputation: 0

  • 0

Replied

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

Posts: 14

Threads: 5

Joined: Aug, 2022

Reputation: 0

  • 0

Replied

@gokienIt'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?

Posts: 392

Threads: 40

Joined: Feb, 2021

Reputation: 10

  • 0

Replied

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

 

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.

Posts: 14

Threads: 5

Joined: Aug, 2022

Reputation: 0

  • 0

Replied

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

Posts: 392

Threads: 40

Joined: Feb, 2021

Reputation: 10

  • 0

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.

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.

Posts: 14

Threads: 5

Joined: Aug, 2022

Reputation: 0

  • 0

Replied

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


New Reply

Users viewing this thread:


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