Is Trash
Key RequiredUniversal

Is Trash

Universal ScriptRase_584Rase_584 628 views 1.2K executesUpdated Apr 24, 2026
Unrated
00
Lua Script•176 lines (4693 chars)
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")

local LocalPlayer = Players.LocalPlayer
local Camera = workspace.CurrentCamera

-- ===== AIM =====
local MAX_DISTANCE = 70
local Enabled = false
local Smoothness = 0.45 -- rápido

local Target = nil

local function getTarget()
    local char = LocalPlayer.Character
    if not char then return nil end

    local root = char:FindFirstChild("HumanoidRootPart")
    if not root then return nil end

    local closest, distLimit = nil, MAX_DISTANCE

    for _, plr in pairs(Players:GetPlayers()) do
        if plr ~= LocalPlayer and plr.Character then
            local enemy = plr.Character
            local enemyRoot = enemy:FindFirstChild("HumanoidRootPart")
            local head = enemy:FindFirstChild("Head")

            if enemyRoot and head then
                local dist = (root.Position - enemyRoot.Position).Magnitude

                if dist < distLimit then
                    distLimit = dist
                    closest = head
                end
            end
        end
    end

    return closest
end

RunService.RenderStepped:Connect(function()
    if not Enabled then return end

    if not Target or not Target.Parent then
        Target = getTarget()
    end

    if Target then
        local camCF = Camera.CFrame
        local goal = CFrame.new(camCF.Position, Target.Position)

        Camera.CFrame = camCF:Lerp(goal, Smoothness)
    end
end)

-- ===== UI =====
local gui = Instance.new("ScreenGui")
gui.Parent = game.CoreGui

local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 360, 0, 220)
frame.Position = UDim2.new(0, 80, 0.5, -110)
frame.BackgroundColor3 = Color3.fromRGB(25,25,25)
frame.Parent = gui

Instance.new("UICorner", frame).CornerRadius = UDim.new(0,10)

-- TOP BAR
local top = Instance.new("Frame")
top.Size = UDim2.new(1,0,0,35)
top.BackgroundColor3 = Color3.fromRGB(40,40,40)
top.Parent = frame

Instance.new("UICorner", top).CornerRadius = UDim.new(0,10)

local title = Instance.new("TextLabel")
title.Size = UDim2.new(1,-120,1,0)
title.Position = UDim2.new(0,10,0,0)
title.Text = "Aim Training Hub"
title.TextColor3 = Color3.new(1,1,1)
title.BackgroundTransparency = 1
title.TextXAlignment = Enum.TextXAlignment.Left
title.Parent = top

-- CLOSE
local close = Instance.new("TextButton")
close.Size = UDim2.new(0,35,1,0)
close.Position = UDim2.new(1,-35,0,0)
close.Text = "X"
close.BackgroundColor3 = Color3.fromRGB(200,60,60)
close.TextColor3 = Color3.new(1,1,1)
close.Parent = top

close.MouseButton1Click:Connect(function()
    gui:Destroy()
end)

-- MINIMIZE
local mini = Instance.new("TextButton")
mini.Size = UDim2.new(0,35,1,0)
mini.Position = UDim2.new(1,-75,0,0)
mini.Text = "-"
mini.BackgroundColor3 = Color3.fromRGB(100,100,100)
mini.TextColor3 = Color3.new(1,1,1)
mini.Parent = top

local minimized = false

mini.MouseButton1Click:Connect(function()
    minimized = not minimized

    for _, v in pairs(frame:GetChildren()) do
        if v ~= top then
            v.Visible = not minimized
        end
    end

    frame.Size = minimized and UDim2.new(0,360,0,35)
        or UDim2.new(0,360,0,220)
end)

-- DRAG
local dragging = false
local dragStart, startPos

top.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = true
        dragStart = input.Position
        startPos = frame.Position
    end
end)

UserInputService.InputChanged:Connect(function(input)
    if dragging and input.UserInputType == Enum.UserInputType.MouseMovement then
        local delta = input.Position - dragStart
        frame.Position = UDim2.new(
            startPos.X.Scale,
            startPos.X.Offset + delta.X,
            startPos.Y.Scale,
            startPos.Y.Offset + delta.Y
        )
    end
end)

UserInputService.InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = false
    end
end)

-- BUTTON
local btn = Instance.new("TextButton")
btn.Size = UDim2.new(0,320,0,55)
btn.Position = UDim2.new(0,20,0,60)
btn.Text = "Aim Assist: OFF"
btn.BackgroundColor3 = Color3.fromRGB(50,50,50)
btn.TextColor3 = Color3.new(1,1,1)
btn.Parent = frame

btn.MouseButton1Click:Connect(function()
    Enabled = not Enabled
    btn.Text = Enabled and "Aim Assist: ON" or "Aim Assist: OFF"
end)

-- INFO
local info = Instance.new("TextLabel")
info.Size = UDim2.new(0,320,0,50)
info.Position = UDim2.new(0,20,0,130)
info.Text = "PvP Training System (Single Target Fast)"
info.TextColor3 = Color3.new(1,1,1)
info.BackgroundTransparency = 1
info.Parent = frame

Features & Information

Es un Iambot no terminado si querés arreglalo

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts