trexinator universal forcefield
Key RequiredUniversal

trexinator universal forcefield

Universal Scriptrolledrick581rolledrick581 1.2K views 49 executesUpdated Aug 16, 2025
Unrated
00
Lua Script•220 lines (7390 chars)
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local CoreGui = game:GetService("CoreGui")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = CoreGui

local OpenButton = Instance.new("TextButton")
OpenButton.Size = UDim2.new(0, 40, 0, 40)
OpenButton.Position = UDim2.new(0, 10, 0.5, -20)
OpenButton.Text = "≡"
OpenButton.BackgroundColor3 = Color3.fromRGB(30,30,30)
OpenButton.TextColor3 = Color3.fromRGB(200,200,200)
OpenButton.Font = Enum.Font.GothamBold
OpenButton.TextSize = 22
OpenButton.Parent = ScreenGui

local UICorner1 = Instance.new("UICorner", OpenButton)
UICorner1.CornerRadius = UDim.new(0, 8)

local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0, 270, 0, 380)
MainFrame.Position = UDim2.new(0, 60, 0.5, -190)
MainFrame.BackgroundColor3 = Color3.fromRGB(20,20,20)
MainFrame.BorderSizePixel = 0
MainFrame.Visible = false
MainFrame.Parent = ScreenGui

local UICorner2 = Instance.new("UICorner", MainFrame)
UICorner2.CornerRadius = UDim.new(0, 12)

local UIStroke = Instance.new("UIStroke", MainFrame)
UIStroke.Color = Color3.fromRGB(60,60,60)
UIStroke.Thickness = 2

local UIListLayout = Instance.new("UIListLayout", MainFrame)
UIListLayout.Padding = UDim.new(0,8)
UIListLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
UIListLayout.VerticalAlignment = Enum.VerticalAlignment.Top

function newBtn(name,toggleVar,setToggle)
    local holder = Instance.new("Frame", MainFrame)
    holder.Size = UDim2.new(0, 230, 0, 40)
    holder.BackgroundTransparency = 1

    local b = Instance.new("TextButton")
    b.Size = UDim2.new(0.7, 0, 1, 0)
    b.Position = UDim2.new(0,0,0,0)
    b.Text = name
    b.BackgroundColor3 = Color3.fromRGB(35,35,35)
    b.TextColor3 = Color3.fromRGB(220,220,220)
    b.Font = Enum.Font.Gotham
    b.TextSize = 16
    b.Parent = holder

    local corner = Instance.new("UICorner", b)
    corner.CornerRadius = UDim.new(0, 8)

    local stroke = Instance.new("UIStroke", b)
    stroke.Color = Color3.fromRGB(70,70,70)
    stroke.Thickness = 1.5

    local status = Instance.new("TextLabel")
    status.Size = UDim2.new(0.3, 0, 1, 0)
    status.Position = UDim2.new(0.7,0,0,0)
    status.Text = "OFF"
    status.BackgroundColor3 = Color3.fromRGB(25,25,25)
    status.TextColor3 = Color3.fromRGB(200,50,50)
    status.Font = Enum.Font.GothamBold
    status.TextSize = 14
    status.Parent = holder

    local corner2 = Instance.new("UICorner", status)
    corner2.CornerRadius = UDim.new(0, 8)

    b.MouseEnter:Connect(function()
        b.BackgroundColor3 = Color3.fromRGB(50,50,50)
    end)
    b.MouseLeave:Connect(function()
        b.BackgroundColor3 = Color3.fromRGB(35,35,35)
    end)

    b.MouseButton1Click:Connect(function()
        local newVal = not toggleVar[1]
        toggleVar[1] = newVal
        setToggle(newVal)
        if newVal then
            status.Text = "ON"
            status.TextColor3 = Color3.fromRGB(50,200,50)
        else
            status.Text = "OFF"
            status.TextColor3 = Color3.fromRGB(200,50,50)
        end
    end)

    return holder
end

local godmode = {false}
local autoheal = {false}
local espEnabled = {false}
local hitboxVisible = {true}
local fakeLag = {false}
local hitboxExpand = {false}

newBtn("Godmode",godmode,function(v) end)
newBtn("AutoHeal",autoheal,function(v) end)
newBtn("Hitbox Visible",hitboxVisible,function(v)
    for _,p in ipairs(Players:GetPlayers()) do
        if p ~= LocalPlayer and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then
            p.Character.HumanoidRootPart.Transparency = v and 0.5 or 1
        end
    end
end)
newBtn("ESP",espEnabled,function(v)
    for _,p in ipairs(Players:GetPlayers()) do
        if p ~= LocalPlayer then
            local h = p.Character and p.Character:FindFirstChildOfClass("Highlight")
            if v and not h then
                local hl = Instance.new("Highlight", p.Character)
                hl.FillTransparency = 1
                hl.OutlineColor = Color3.fromRGB(255,0,0)
            elseif not v and h then
                h:Destroy()
            end
        end
    end
end)
newBtn("Fake Lag",fakeLag,function(v)
    if v then
        task.spawn(function()
            while fakeLag[1] do
                local char = LocalPlayer.Character
                if char and char:FindFirstChild("HumanoidRootPart") then
                    local hrp = char.HumanoidRootPart
                    local savedPos = hrp.CFrame
                    task.wait(0.5)
                    hrp.CFrame = savedPos
                end
                task.wait(0.1)
            end
        end)
    end
end)
newBtn("Hitbox Expander",hitboxExpand,function(v)
    for _,p in ipairs(Players:GetPlayers()) do
        if p ~= LocalPlayer and p.Character and p.Character:FindFirstChild("HumanoidRootPart") then
            local part = p.Character.HumanoidRootPart
            if v then
                part.Size = Vector3.new(10, 10, 10)
                part.Transparency = 0.7
                part.BrickColor = BrickColor.new("Really red")
                part.Material = Enum.Material.Neon
            else
                part.Size = Vector3.new(2, 2, 1)
                part.Transparency = 1
                part.Material = Enum.Material.Plastic
            end
        end
    end
end)

local closeBtn = Instance.new("TextButton", MainFrame)
closeBtn.Size = UDim2.new(0,230,0,40)
closeBtn.Text = "Close & Remove GUI"
closeBtn.BackgroundColor3 = Color3.fromRGB(80,20,20)
closeBtn.TextColor3 = Color3.fromRGB(255,255,255)
closeBtn.Font = Enum.Font.GothamBold
closeBtn.TextSize = 16

local cCorner = Instance.new("UICorner", closeBtn)
cCorner.CornerRadius = UDim.new(0,8)

closeBtn.MouseButton1Click:Connect(function()
    ScreenGui:Destroy()
end)

OpenButton.MouseButton1Click:Connect(function()
    MainFrame.Visible = not MainFrame.Visible
end)

local dragging, dragInput, dragStart, startPos
OpenButton.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragging = true
        dragStart = input.Position
        startPos = OpenButton.Position
        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragging = false
            end
        end)
    end
end)
OpenButton.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement then
        dragInput = input
    end
end)
UserInputService.InputChanged:Connect(function(input)
    if input == dragInput and dragging then
        local delta = input.Position - dragStart
        OpenButton.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
        MainFrame.Position = UDim2.new(0, OpenButton.Position.X.Offset + 50, 0, OpenButton.Position.Y.Offset - 150)
    end
end)

RunService.Heartbeat:Connect(function()
    local char = LocalPlayer.Character
    if char and char:FindFirstChild("Humanoid") then
        local hum = char.Humanoid
        if godmode[1] then
            hum.Health = hum.MaxHealth
        elseif autoheal[1] and hum.Health < hum.MaxHealth then
            hum.Health = math.min(hum.MaxHealth, hum.Health + 2)
        end
    end
end)

Features & Information

gives forcefield and can hide hitbox

Community Comments (0)

No comments yet for this script.

More Scripts for Universal Scripts