Skip to content

Iris Init Script

Loadstring

loadstring(game:HttpGet("https://api.irisapp.ca/Scripts/IrisInitScript.lua"))()

getlplayer

Player getlplayer()
Returns the LocalPlayer user object.

Example

local Player = getlplayer()

Player.Character.ChildAdded:Connect(function(Item)
    print(Item.Name)
end)
\pagebreak

writetable

void writetable(<string> FileName, <Table> Table)
Writes the given table to file.

Example

local TestTable = {
    ["Index1"] = true,
}

writetable("TestTable.lua", TestTable)
\pagebreak

appendfile

void appendfile(<string> FileName, <string> DataToWrite)
Appends the Data to the given file.

Example

appendfile("Data.lua", "Important Data.")
\pagebreak

notify

void notify(<string> Title, <string> Text)
Shows the default Roblox notification in the bottom right.

Example

notify("Hello!", "Notification sent!")
\pagebreak

strreplace

string strreplace(<string> BaseString, <string> Pattern, <string> ReplaceWith)
Easier to understand string.gsub.

Example

local NewString = strreplace("Cool String abc Yeet", "String", "not a string")
\pagebreak

tpto

void tpto(<Object> Object)
Teleport HumanoidRotoPart to Object's position.

Example

tpto(workspace.Part)
\pagebreak

randomstring

string randomstring(<int> RandomStringLength)
Return's a random string with given lenght.

Example

local Random = randomstring(50)
\pagebreak

getpos

Vector getpos()
Return's the Torso's position.

Example

local Position = getpos()
\pagebreak

isfile

bool isfile(<string> FileName)
Return's if there is a file found with the given name.

Example

local FileLocated = isfile("Data.lua")

if not FileLocated then
    writefile("Data.lua", "")
end
\pagebreak

executetime

string executetime(<string> ScriptToRun, bool AutoWarn)
Return's an estimate of time it took to execute given code, will warn into console if AutoWarn is set to true.

Example

executetime("print('true')", true)
\pagebreak

irisgetproperties

Table irisgetproperties(<Object> Object)
Return's a table of object's properties.

Example

local ItemProperties = irisgetproperties(workspace)
table.foreach(ItemProperties, warn)
\pagebreak

isproperty

bool isproperty(<Object> Object, <string> Property)
Return's whether given object has property.

Example

print(isproperty("workspace", "Gravity"))
\pagebreak

irisencrypt

string irisencrypt(<string> TextToEncrypt, <int> Key)
Return's an encrypted string.

Example

local Data = irisencrypt("ImportantInformatio", 235423)
print(Data)
\pagebreak

irisdecrypt

string irisdecrypt(<string> TextToDecrypt, <int> Key)
Return's the decrypted string from irisencrypt.

Example

local EncryptedData = irisencrypt("ImportantInformatio", 235423)
local Data = irisdecrypt(EncryptedData, 235423)
print(Data)
\pagebreak

irisdebug

void irisdebug(<string> DebugText, <bool> AppendToFile)
Warns (And writes if AppendToFile) text with timestamp and [DEBUG] tag.

Example

irisdebug("Stepped over function.", true)
\pagebreak

tweento

void tweento(<Vector3> Position, <int> Speed)
Tween's user position to given position.

Example

tweento(workspace.Part.Position, 300)
\pagebreak

rejoin

void rejoin()
Rejoins the game with the placeid. (Not 100% same server!)

Example

rejoin()
\pagebreak

crash

void crash()
Crashes the roblox environment.

Example

crash()
\pagebreak

printtable

void printtable(<Table> GivenTable)
Print's the table in format: Index | Value .

Example

local CoolTable = {
    ["Yeet"] = true,
}

printtable(CoolTable)