Universal Script 📌
5.5k Views
30 Executions

Clientsided Aura

Universal Script 📌
edixos
edixosFirst script
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Just makes a aura of your bodypart colours.

View Raw
local owner = game.Players.LocalPlayer

repeat wait() until owner.Character

local character = owner.Character
local runService = game:GetService("RunService")
local fakeParts = {}

-- create fake parts for each body part, slightly bigger
for _, part in pairs(character:GetChildren()) do
    if part:IsA("BasePart") then
        local fakePart = Instance.new("Part")
        fakePart.Size = part.Size + Vector3.new(0.05, 0.05, 0.05)
        fakePart.Parent = workspace
        fakePart.CanCollide = false
        fakePart.Massless = true
        fakePart.Name = "altrrxfakebody"
        fakeParts[part] = fakePart
    end
end

-- function to find the nearest non-body part
local function getNearestPart(realPart)
    local closest, closestDist = nil, math.huge

    for _, v in pairs(workspace:GetDescendants()) do
        if v:IsA("BasePart") and v ~= realPart and v.Name ~= "altrrxfakebody" and not fakeParts[v] then
            local distance = (realPart.Position - v.Position).Magnitude
            if distance < closestDist then
                closestDist = distance
                closest = v
            end
        end
    end

    return closest
end

-- sync fake parts, change color, and handle transparency
runService.RenderStepped:Connect(function()


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!