message-3
message-3
getgenv().global = getgenv()
return self[index]
end
function global.get(service)
return services[service]
end
self.cache[index] = {
["enabled"] = (not disabled),
["func"] = func,
["toggle"] = function(self, boolean)
if boolean == nil then
self.enabled = not self.enabled
else
self.enabled = boolean
end
end,
["remove"] = function()
self.cache[index] = nil
end
}
return self.cache[index]
end
declare(get("loop"), "connection",
cloneref(game:GetService("RunService")).RenderStepped:Connect(function(delta)
for _, loop in get("loop").cache do
if loop.enabled then
local success, result = pcall(function()
loop.func(delta)
end)
self.cache[player] = nil
if highlight then
highlight:Destroy()
end
if connections[player] then
connections[player]:Disconnect()
end
end
end
if self:check(client) then
data.distance =
(client.Character.WorldCharacter.HumanoidRootPart.CFrame.Position -
root.CFrame.Position).Magnitude
end
task.spawn(function()
local position, visible = camera:WorldToViewportPoint(root.CFrame.Position)
drawings.box.Color = color(visuals.boxes.color)
drawings.box.Thickness = 1
drawings.boxFilled.Color = color(visuals.boxes.filled.color)
drawings.boxFilled.Transparency = visuals.boxes.filled.transparency
drawings.boxOutline.Color = visuals.boxes.outline.color
drawings.boxOutline.Thickness = 3
drawings.boxOutline.ZIndex = drawings.box.ZIndex - 1
drawings.boxFilled.ZIndex = drawings.boxOutline.ZIndex - 1
drawings.name.Text = `[ {player.Name} ]`
drawings.name.Size = math.max(math.min(math.abs(12.5 * scale), 12.5),
10)
drawings.name.Position = Vector2.new(x, (yPosition -
drawings.name.TextBounds.Y) - 2)
drawings.name.Color = color(visuals.names.color)
drawings.name.Outline = visuals.names.outline.enabled
drawings.name.OutlineColor = visuals.names.outline.color
drawings.name.ZIndex = drawings.box.ZIndex + 1
drawings.distance.Text = `[ {math.floor(data.distance)} ]`
drawings.distance.Size = math.max(math.min(math.abs(11 * scale), 11),
10)
drawings.distance.Position = Vector2.new(x, (yPosition + height) +
(drawings.distance.TextBounds.Y * 0.25))
drawings.distance.Color = color(visuals.distance.color)
drawings.distance.Outline = visuals.distance.outline.enabled
drawings.distance.OutlineColor = visuals.distance.outline.color
end
if self[feature].toggle then
task.spawn(function()
self[feature]:toggle()
end)
end
end
end
declare(features, "visuals", {
["enabled"] = true,
["teamCheck"] = false,
["teamColor"] = true,
["renderDistance"] = 4000,
["boxes"] = {
["enabled"] = true,
["color"] = Color3.fromRGB(255, 255, 255),
["outline"] = {
["enabled"] = true,
["color"] = Color3.fromRGB(0, 0, 0),
},
["filled"] = {
["enabled"] = false,
["color"] = Color3.fromRGB(255, 255, 255),
["transparency"] = 0.25
},
},
["names"] = {
["enabled"] = true,
["color"] = Color3.fromRGB(255, 255, 255),
["outline"] = {
["enabled"] = true,
["color"] = Color3.fromRGB(0, 0, 0),
},
},
["distance"] = {
["enabled"] = true,
["color"] = Color3.fromRGB(255, 255, 255),
["outline"] = {
["enabled"] = true,
["color"] = Color3.fromRGB(0, 0, 0),
},
},
})