Categories > Exploiting > Scripts >

I made a real ff that works

Posts: 1

Threads: 1

Joined: May, 2024

Reputation: 0

Posted

-- File Path: StarterGui/FFGuiScript

-- Create the ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "FFGui"
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
screenGui.ResetOnSpawn = false

-- Create the main frame
local mainFrame = Instance.new("Frame")
mainFrame.Size = UDim2.new(0, 220, 0, 120)
mainFrame.Position = UDim2.new(0.5, -110, 0.5, -60)
mainFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
mainFrame.BorderSizePixel = 0
mainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
mainFrame.Parent = screenGui

-- Add UI Corner for main frame
local mainFrameUICorner = Instance.new("UICorner")
mainFrameUICorner.CornerRadius = UDim.new(0, 15)
mainFrameUICorner.Parent = mainFrame

-- Make the frame draggable
local dragToggle = nil
local dragInput = nil
local dragStart = nil
local startPos = nil

local function updateInput(input)
    local delta = input.Position - dragStart
    mainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
end

mainFrame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseButton1 then
        dragToggle = true
        dragStart = input.Position
        startPos = mainFrame.Position
        
        input.Changed:Connect(function()
            if input.UserInputState == Enum.UserInputState.End then
                dragToggle = false
            end
        end)
    end
end)

mainFrame.InputChanged:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.MouseMovement then
        dragInput = input
    end
end)

game:GetService("UserInputService").InputChanged:Connect(function(input)
    if input == dragInput and dragToggle then
        updateInput(input)
    end
end)

-- Create Enable button
local enableButton = Instance.new("TextButton")
enableButton.Size = UDim2.new(0, 200, 0, 40)
enableButton.Position = UDim2.new(0, 10, 0, 10)
enableButton.BackgroundColor3 = Color3.fromRGB(0, 170, 255)
enableButton.TextColor3 = Color3.fromRGB(255, 255, 255)
enableButton.Font = Enum.Font.SourceSansBold
enableButton.TextSize = 20
enableButton.Text = "Enable FF"
enableButton.Parent = mainFrame

-- Add UI Corner for enable button
local enableButtonUICorner = Instance.new("UICorner")
enableButtonUICorner.CornerRadius = UDim.new(0, 10)
enableButtonUICorner.Parent = enableButton

-- Create Disable button
local disableButton = Instance.new("TextButton")
disableButton.Size = UDim2.new(0, 200, 0, 40)
disableButton.Position = UDim2.new(0, 10, 0, 60)
disableButton.BackgroundColor3 = Color3.fromRGB(255, 80, 80)
disableButton.TextColor3 = Color3.fromRGB(255, 255, 255)
disableButton.Font = Enum.Font.SourceSansBold
disableButton.TextSize = 20
disableButton.Text = "Disable FF"
disableButton.Parent = mainFrame

-- Add UI Corner for disable button
local disableButtonUICorner = Instance.new("UICorner")
disableButtonUICorner.CornerRadius = UDim.new(0, 10)
disableButtonUICorner.Parent = disableButton

-- Function to enable force field and heal the player instantly
local function enableFF()
    local player = game.Players.LocalPlayer
    if player.Character then
        local ff = player.Character:FindFirstChildOfClass("ForceField")
        if not ff then
            ff = Instance.new("ForceField")
            ff.Parent = player.Character
            
            -- Heal the player instantly and continuously
            player.Character.Humanoid.HealthChanged:Connect(function()
                if ff.Parent then
                    player.Character.Humanoid.Health = player.Character.Humanoid.MaxHealth
                end
            end)
        end
    end
end

-- Function to disable force field
local function disableFF()
    local player = game.Players.LocalPlayer
    if player.Character then
        local ff = player.Character:FindFirstChildOfClass("ForceField")
        if ff then
            ff:Destroy()
        end
    end
end

-- Connect buttons to functions
enableButton.MouseButton1Click:Connect(enableFF)
disableButton.MouseButton1Click:Connect(disableFF)

  • 0

bigstrongh1i

BIG STRONG H1I UTTP

Posts: 4

Threads: 0

Joined: Aug, 2024

Reputation: -1

Replied

WHAT IS A FF WHATEVER IT IS IT SOUNDS POOPY

  • 0

TOMMY PARKY COFFEE & FRIEZ

UTTP BIG TEAM SERVER

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )