0% found this document useful (0 votes)
11 views

Hack

The document contains code that loops through parts and meshes in the workspace and replicated storage, adding box handle adornments to highlight them. It also contains code to override the size of parts named 'Head' by hooking the __index metamethod.

Uploaded by

hc23005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Hack

The document contains code that loops through parts and meshes in the workspace and replicated storage, adding box handle adornments to highlight them. It also contains code to override the size of parts named 'Head' by hooking the __index metamethod.

Uploaded by

hc23005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

for i,v in pairs(game:GetService("ReplicatedStorage").

Player:GetDescendants()) do
if v:IsA("MeshPart") or v:IsA("Part") then
local adornment = Instance.new("BoxHandleAdornment")
adornment.Adornee = v
adornment.AlwaysOnTop = true
adornment.ZIndex = 1
adornment.Size = v.Size
adornment.Color = BrickColor.new("Bright pink")
adornment.Transparency = 0.3
adornment.Parent = v
end
end
for i,v in pairs(game.Workspace:GetChildren()) do
if v:FindFirstChild("Head") then

for i,v in pairs(v:GetChildren()) do


if v:IsA("Part") then

local adornment = Instance.new("BoxHandleAdornment")


adornment.Adornee = v
adornment.AlwaysOnTop = true
adornment.ZIndex = 1
adornment.Size = v.Size
adornment.Color = BrickColor.new("Bright Red")
adornment.Transparency = 0.3
adornment.Parent = v

end
end
for i,v in pairs(v:GetChildren()) do
if v:IsA("MeshPart") then

local adornment = Instance.new("BoxHandleAdornment")


adornment.Adornee = v
adornment.AlwaysOnTop = true
adornment.ZIndex = 1
adornment.Size = v.Size
adornment.Color = BrickColor.new("Bright Red")
adornment.Transparency = 0.3
adornment.Parent = v
end
end
end
end
local ad
ad= hookmetamethod(game, "__index", newcclosure(function(...)
local self, k = ...
if not checkcaller() and k == "Size" and self.Name == "Head" then
return Vector3.new(1.67325, 0.836624, 0.836624)
end

return ad(...)
end))

for i,v in pairs(game:GetService("ReplicatedStorage").Player:GetDescendants()) do


if v.Name == "Head" then
v.Size = Vector3.new(12, 12, 12)
end
end

for i,v in pairs(game.Workspace:GetChildren()) do


if v:FindFirstChild("Torso") then
v:FindFirstChild("Head").Size = Vector3.new(12, 12, 12)
end
end

You might also like