
Key RequiredUniversal

local ScreenGui = Instance.new("ScreenGui")
local MainFrame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local MinimizeBtn = Instance.new("TextButton")
local AntiDeathBtn = Instance.new("TextButton")
local AntiVoidBtn = Instance.new("TextButton")
local TweenService = game:GetService("TweenService")
local RunService = game:GetService("RunService")
local player = game:GetService("Players").LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
ScreenGui.Name = "tarekscripter_Core"
ScreenGui.Parent = playerGui
ScreenGui.ResetOnSpawn = false
MainFrame.Name = "MainFrame"
MainFrame.Size = UDim2.new(0, 220, 0, 140)
MainFrame.Position = UDim2.new(0.5, -110, 0.5, -70)
MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
MainFrame.BorderSizePixel = 0
MainFrame.Active = true
MainFrame.Draggable = true
MainFrame.ClipsDescendants = true
MainFrame.Parent = ScreenGui
local MainCorner = Instance.new("UICorner")
MainCorner.CornerRadius = UDim.new(0, 8)
MainCorner.Parent = MainFrame
local MainStroke = Instance.new("UIStroke")
MainStroke.Color = Color3.fromRGB(255, 0, 0)
MainStroke.Thickness = 1.5
MainStroke.Parent = MainFrame
Title.Size = UDim2.new(1, -40, 0, 35)
Title.Position = UDim2.new(0, 10, 0, 0)
Title.Text = "tarekscripter AI anti death"
Title.TextColor3 = Color3.fromRGB(255, 0, 0)
Title.BackgroundTransparency = 1
Title.Font = Enum.Font.GothamBold
Title.TextSize = 14
Title.Parent = MainFrame
MinimizeBtn.Size = UDim2.new(0, 30, 0, 30)
MinimizeBtn.Position = UDim2.new(1, -35, 0, 2)
MinimizeBtn.Text = "ـ"
MinimizeBtn.BackgroundColor3 = Color3.fromRGB(40, 0, 0)
MinimizeBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
MinimizeBtn.Parent = MainFrame
Instance.new("UICorner", MinimizeBtn).CornerRadius = UDim.new(0, 5)
local function CreateStyledButton(btn, text, pos)
btn.Size = UDim2.new(0, 200, 0, 35)
btn.Position = pos
btn.Text = text
btn.BackgroundColor3 = Color3.fromRGB(35, 25, 25)
btn.TextColor3 = Color3.fromRGB(255, 255, 255)
btn.Font = Enum.Font.Gotham
btn.TextSize = 11
btn.Parent = MainFrame
Instance.new("UICorner", btn).CornerRadius = UDim.new(0, 6)
local s = Instance.new("UIStroke", btn)
s.Color = Color3.fromRGB(150, 0, 0)
s.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
end
CreateStyledButton(AntiDeathBtn, "مضاد الموت الذكي: مغلق | Smart Anti: OFF", UDim2.new(0, 10, 0, 45))
CreateStyledButton(AntiVoidBtn, "مضاد الڤويد: مغلق | Anti void: OFF", UDim2.new(0, 10, 0, 90))
local ghostMode = false
local minimized = false
local autoActive = false
local antiVoidActive = false
local lastSafeCFrame = nil
MinimizeBtn.MouseButton1Click:Connect(function()
minimized = not minimized
local targetSize = minimized and UDim2.new(0, 220, 0, 35) or UDim2.new(0, 220, 0, 140)
local info = TweenInfo.new(0.4, Enum.EasingStyle.Quart, Enum.EasingDirection.Out)
if not minimized then
AntiDeathBtn.Visible = true
AntiVoidBtn.Visible = true
end
local tween = TweenService:Create(MainFrame, info, {Size = targetSize})
tween:Play()
tween.Completed:Connect(function()
if minimized then
AntiDeathBtn.Visible = false
AntiVoidBtn.Visible = false
end
end)
end)
AntiDeathBtn.MouseButton1Click:Connect(function()
autoActive = not autoActive
if autoActive then
AntiDeathBtn.Text = "مضاد الموت الذكي: مفعل | Smart Anti: ON"
AntiDeathBtn.TextColor3 = Color3.fromRGB(0, 255, 0)
else
AntiDeathBtn.Text = "مضاد الموت الذكي: مغلق | Smart Anti: OFF"
AntiDeathBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
ghostMode = false
if player.Character then
for _, part in pairs(player.Character:GetDescendants()) do
if part:IsA("BasePart") then
part.CanTouch = true
end
end
end
end
end)
AntiVoidBtn.MouseButton1Click:Connect(function()
antiVoidActive = not antiVoidActive
if antiVoidActive then
AntiVoidBtn.Text = "مضاد الڤويد: مفعل | Anti void: ON"
AntiVoidBtn.TextColor3 = Color3.fromRGB(0, 255, 0)
else
AntiVoidBtn.Text = "مضاد الڤويد: مغلق | Anti void: OFF"
AntiVoidBtn.TextColor3 = Color3.fromRGB(255, 255, 255)
end
end)
RunService.Heartbeat:Connect(function()
if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then
local char = player.Character
local root = char.HumanoidRootPart
local hum = char:FindFirstChildOfClass("Humanoid")
local rayParams = RaycastParams.new()
rayParams.FilterType = Enum.RaycastFilterType.Blacklist
rayParams.FilterDescendantsInstances = {char}
local floorCheck = workspace:Raycast(root.Position, Vector3.new(0, -15, 0), rayParams)
if floorCheck and floorCheck.Instance and not floorCheck.Instance.Parent:FindFirstChildOfClass("Humanoid") then
lastSafeCFrame = root.CFrame
end
if antiVoidActive then
local voidY = workspace.FallenPartsDestroyHeight
local currentY = root.Position.Y
local velocityY = root.Velocity.Y
local predictedY = currentY + (velocityY * 0.1)
if predictedY <= (voidY + 10) or currentY <= (voidY + 15) then
if lastSafeCFrame then
root.CFrame = lastSafeCFrame
root.Velocity = Vector3.new(0, 0, 0)
end
end
end
if autoActive then
local auraRadius = 12
local dangerDetected = false
local overlapParams = OverlapParams.new()
overlapParams.FilterDescendantsInstances = {char}
overlapParams.FilterType = Enum.RaycastFilterType.Blacklist
local nearbyParts = workspace:GetPartBoundsInRadius(root.Position, auraRadius, overlapParams)
for _, part in pairs(nearbyParts) do
if part.CanTouch and not part:IsDescendantOf(char) then
if part.Parent:FindFirstChild("Humanoid") or part:FindFirstChild("TouchInterest") or part.Name:lower():find("kill") or part.Name:lower():find("lava") then
dangerDetected = true
break
end
end
end
if dangerDetected then
ghostMode = true
else
if ghostMode then
ghostMode = false
for _, part in pairs(char:GetDescendants()) do
if part:IsA("BasePart") then
part.CanTouch = true
end
end
end
end
if ghostMode then
for _, part in pairs(char:GetDescendants()) do
if part:IsA("BasePart") then
part.CanTouch = false
end
end
local directions = {
Vector3.new(0, -1.1, 0),
root.CFrame.LookVector,
-root.CFrame.LookVector,
root.CFrame.RightVector,
-root.CFrame.RightVector
}
for _, dir in pairs(directions) do
local res = workspace:Raycast(root.Position, dir * 3, rayParams)
if res and res.Distance < 0.5 then
root.CFrame = root.CFrame + (res.Normal * 0.1)
end
end
end
end
end
end)



Is that universal? It didn't work 😔