Skip to content

Iris Protect Instance

Loadstring

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

Info

Anything that is protected via IProtectInstance will not be detected by the following methods: ChildAdded childAdded ChildRemoved childRemoved DescendantRemoving descendantRemoving DescendantAdded descendantAdded GetChildren getChildren GetDescendants getDescendants FindFirstChild findFirstChild FindFirstChildOfClass findFirstChildOfClass FindFirstChildWhichIsA findFirstChildWhichIsA

ProtectInstance

void ProtectInstance(<Instance> Object)
Protects the given instance.

Example

local NewInstance = Instance.new("ScreenGui")
local Frame = Instance.new("Frame");

ProtectInstance(NewInstance);
ProtectInstance(Frame);

Frame.Parent = NewInstance;
NewInstance.Parent = game.Players.LocalPlayer.PlayerGui

Frame.Size = UDim2.new(.25,0,.25,0)

UnProtectInstance

void UnProtectInstance(<Instance> Object)
UnProtects the given instance.

Example

UnProtectInstance(game:GetService("Players).LocalPlayer.PlayerGui.ScreenGui);