
KeylessUniversal

local Players = game:GetService("Players")
local Workspace = game:GetService("Workspace")
local RunService = game:GetService("RunService")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local LocalPlayer = Players.LocalPlayer
local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
local Event = ReplicatedStorage:WaitForChild("Remotes"):WaitForChild("FoodPopped")
local isActive = false
local isNoclip = false
local targetModePlayers = false
local isSafe = false
local flySpeed = 75
-- تنظيف الواجهة القديمة
if PlayerGui:FindFirstChild("SmoothUltraFarmGui") then
PlayerGui.SmoothUltraFarmGui:Destroy()
end
-- بناء الشاشة الرئيسية
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "SmoothUltraFarmGui"
screenGui.ResetOnSpawn = false
screenGui.Parent = PlayerGui
-- 1. الزر الدائري الصغير (حرف د)
local toggleIcon = Instance.new("TextButton", screenGui)
toggleIcon.Size = UDim2.new(0, 50, 0, 50)
toggleIcon.Position = UDim2.new(0.02, 0, 0.2, 0)
toggleIcon.BackgroundColor3 = Color3.fromRGB(20, 24, 38)
toggleIcon.Text = "د"
toggleIcon.TextColor3 = Color3.fromRGB(0, 210, 255)
toggleIcon.Font = Enum.Font.FredokaOne
toggleIcon.TextSize = 32
toggleIcon.Active = true
toggleIcon.Draggable = true -- يمكنك تحريك الزر الدائري لأي مكان في الشاشة
local iconCorner = Instance.new("UICorner", toggleIcon)
iconCorner.CornerRadius = UDim.new(1, 0) -- يجعله دائرياً تماماً
local iconStroke = Instance.new("UIStroke", toggleIcon)
iconStroke.Color = Color3.fromRGB(0, 170, 255)
iconStroke.Thickness = 2.5
-- 2. إطار الواجهة الرئيسية
local frame = Instance.new("Frame", screenGui)
frame.Size = UDim2.new(0, 210, 0, 260)
frame.Position = UDim2.new(0.15, 0, 0.2, 0)
frame.BackgroundColor3 = Color3.fromRGB(15, 17, 26)
frame.Active = true
frame.Draggable = true
frame.Visible = true -- تظهر افتراضياً ويمكن إخفاؤها بالضغط على الزر الدائري
Instance.new("UICorner", frame).CornerRadius = UDim.new(0, 12)
local frameStroke = Instance.new("UIStroke", frame)
frameStroke.Color = Color3.fromRGB(0, 170, 255)
frameStroke.Thickness = 2
-- ربط الزر الدائري بإظهار وإخفاء الواجهة
toggleIcon.MouseButton1Click:Connect(function()
frame.Visible = not frame.Visible
end)
-- العنوان داخل الواجهة
local title = Instance.new("TextLabel", frame)
title.Size = UDim2.new(1, 0, 0.15, 0)
title.BackgroundTransparency = 1
title.Text = "⚡ ULTRA FARM V2"
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.Font = Enum.Font.FredokaOne
title.TextScaled = true
-- إنشاء الأزرار الفرعية
local function createButton(text, pos, color)
local btn = Instance.new("TextButton", frame)
btn.Size = UDim2.new(0.9, 0, 0.18, 0)
btn.Position = pos
btn.Text = text
btn.BackgroundColor3 = color
btn.TextColor3 = Color3.fromRGB(255, 255, 255)
btn.Font = Enum.Font.SourceSansBold
btn.TextScaled = true
Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 8)
return btn
end
local farmBtn = createButton("Auto Farm: OFF", UDim2.new(0.05, 0, 0.18, 0), Color3.fromRGB(200, 50, 50))
local noclipBtn = createButton("Noclip: OFF", UDim2.new(0.05, 0, 0.38, 0), Color3.fromRGB(200, 50, 50))
local targetBtn = createButton("Target: Orbs", UDim2.new(0.05, 0, 0.58, 0), Color3.fromRGB(40, 140, 210))
local safeBtn = createButton("Safe Mode: OFF", UDim2.new(0.05, 0, 0.78, 0), Color3.fromRGB(200, 150, 50))
-- أفعال الأزرار
farmBtn.MouseButton1Click:Connect(function()
isActive = not isActive
farmBtn.Text = isActive and "Auto Farm: ON" or "Auto Farm: OFF"
farmBtn.BackgroundColor3 = isActive and Color3.fromRGB(45, 185, 90) or Color3.fromRGB(200, 50, 50)
end)
noclipBtn.MouseButton1Click:Connect(function()
isNoclip = not isNoclip
noclipBtn.Text = isNoclip and "Noclip: ON" or "Noclip: OFF"
noclipBtn.BackgroundColor3 = isNoclip and Color3.fromRGB(45, 185, 90) or Color3.fromRGB(200, 50, 50)
end)
targetBtn.MouseButton1Click:Connect(function()
targetModePlayers = not targetModePlayers
targetBtn.Text = targetModePlayers and "Target: Players" or "Target: Orbs"
targetBtn.BackgroundColor3 = targetModePlayers and Color3.fromRGB(160, 60, 220) or Color3.fromRGB(40, 140, 210)
end)
safeBtn.MouseButton1Click:Connect(function()
isSafe = not isSafe
safeBtn.Text = isSafe and "Safe Mode: ON" or "Safe Mode: OFF"
safeBtn.BackgroundColor3 = isSafe and Color3.fromRGB(255, 200, 0) or Color3.fromRGB(200, 150, 50)
end)
-- Noclip
RunService.Stepped:Connect(function()
if isNoclip and LocalPlayer.Character then
for _, part in ipairs(LocalPlayer.Character:GetDescendants()) do
if part:IsA("BasePart") then part.CanCollide = false end
end
end
end)
-- الحركة والتجميع
task.spawn(function()
local bv, bg
while true do
if LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
local root = LocalPlayer.Character.HumanoidRootPart
if isSafe then
root.CFrame = CFrame.new(root.Position.X, root.Position.Y + 75, root.Position.Z)
task.wait(0.2)
elseif isActive then
if not bv or bv.Parent ~= root then
bv = Instance.new("BodyVelocity", root)
bv.MaxForce = Vector3.new(math.huge, math.huge, math.huge)
bg = Instance.new("BodyGyro", root)
bg.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
bg.P = 20000
end
local targetPosition = nil
local targetObject = nil
if targetModePlayers then
local closestDist = math.huge
for _, player in ipairs(Players:GetPlayers()) do
if player ~= LocalPlayer and player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
local enemyRoot = player.Character.HumanoidRootPart
local dist = (root.Position - enemyRoot.Position).Magnitude
if dist < closestDist then
closestDist = dist
targetPosition = enemyRoot.Position
end
end
end
else
local minDist = math.huge
for _, obj in ipairs(Workspace:GetDescendants()) do
if obj:IsA("BasePart") and (obj.Name:lower():find("food") or obj.Name:lower():find("orb") or obj:FindFirstChildOfClass("TouchTransmitter")) then
local d = (root.Position - obj.Position).Magnitude
if d < minDist then
minDist = d
targetPosition = obj.Position
targetObject = obj
end
end
end
end
if targetPosition then
bg.CFrame = CFrame.new(root.Position, targetPosition)
bv.Velocity = (targetPosition - root.Position).Unit * flySpeed
if targetObject and Event then Event:FireServer(targetPosition, false) end
else
bv.Velocity = Vector3.zero
end
else
if bv then bv:Destroy(); bv = nil end
if bg then bg:Destroy(); bg = nil end
end
end
task.wait(0.02)
end
end)No comments yet for this script.



