Categories > Exploiting > Scripts >
Help my with readfile function pls
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
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
Cancel
Post
Did I mention I use arch btw?
Replied
These codes are really hard. I still don't understand anything.
Cancel
Post
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
Cancel
Post
Added
@Whoman And if during the script I want to add a new variable or change the value in the variable I do how?
Cancel
Post
https://media.discordapp.net/attachments/994643402949926956/1004560140252495960/uqJXQIda.gif
Discord: Ad#1085; Don't hesitate to DM me if you need help/anything.
Replied
@65954And I can make sure to put 2 tables in the same file?
Cancel
Post
Replied
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.
Cancel
Post
https://media.discordapp.net/attachments/994643402949926956/1004560140252495960/uqJXQIda.gif
Discord: Ad#1085; Don't hesitate to DM me if you need help/anything.
Replied
@65954Yes it's good I created a second file for the table
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 2, Total: 2 )
Cancel
Post