Instances
Helpers for working with instance references — cloning, comparing, firing interaction events, and inspecting the hidden UI and reference cache.
Helpers for the instance tree itself: producing references a game cannot trace back to you, comparing them, firing the interaction events a player would normally trigger, and reaching the hidden UI container.
cloneref is the one to internalise. It hands back a reference that points at the same instance but is not equal to the original, so a game holding == checks or a lookup table keyed by instance will not recognise it as the same object.
local Players = game:GetService("Players")
-- A reference the game's own bookkeeping will not match.
local me = cloneref(Players.LocalPlayer)
print(me == Players.LocalPlayer) --> false
print(compareinstances(me, Players.LocalPlayer)) --> true
-- Somewhere to put UI the game cannot find by walking PlayerGui.
local gui = Instance.new("ScreenGui")
gui.Parent = gethui()These fire the events a player interaction would, without the interaction. Range and line-of-sight checks the game does in Luau still apply — these bypass the input, not the logic.