0% found this document useful (0 votes)
2 views6 pages

XW 3 Bang Detecter

The document is a Lua script for a Roblox game that creates a GUI for executing various commands related to player actions, such as changing speed, jump power, and enabling ESP (Extra Sensory Perception) features. It includes functions for player interaction, such as 'Bang' which allows a player to attach to another player, and 'Noclip' which enables passing through walls. The script also handles player input and updates the character's properties upon death.

Uploaded by

zoldekvirus
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views6 pages

XW 3 Bang Detecter

The document is a Lua script for a Roblox game that creates a GUI for executing various commands related to player actions, such as changing speed, jump power, and enabling ESP (Extra Sensory Perception) features. It includes functions for player interaction, such as 'Bang' which allows a player to attach to another player, and 'Noclip' which enables passing through walls. The script also handles player input and updates the character's properties upon death.

Uploaded by

zoldekvirus
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

-- ‫الخدمات‬

local Players = game:GetService("Players")


local Player = Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local UIS = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local TweenService = game:GetService("TweenService")
local Prefix = "+"

-- ‫دالة الحصول على العب باالسم أو االسم الظاهر‬


local function getPlayerByName(name)
for _, plr in pairs(Players:GetPlayers()) do
if plr.Name:lower():sub(1, #name) == name:lower() or
plr.DisplayName:lower():sub(1, #name) == name:lower() then
return plr
end
end
end

-- ‫ واجهة‬GUI
local screenGui = Instance.new("ScreenGui", game.CoreGui)
screenGui.Name = "AstonGUI"

local mainFrame = Instance.new("Frame", screenGui)


mainFrame.Name = "MainFrame"
mainFrame.Size = UDim2.new(0, 420, 0, 360)
mainFrame.Position = UDim2.new(0.5, -210, 0.5, -180)
mainFrame.BackgroundColor3 = Color3.fromRGB(120, 0, 0)
mainFrame.BackgroundTransparency = 0.3
mainFrame.Active = true
mainFrame.Draggable = true
mainFrame.BorderSizePixel = 0
mainFrame.ClipsDescendants = true
mainFrame.Visible = false

local UICornerMain = Instance.new("UICorner", mainFrame)


UICornerMain.CornerRadius = UDim.new(0, 12)

local titleLabel = Instance.new("TextLabel", mainFrame)


titleLabel.Size = UDim2.new(1, 0, 0, 40)
titleLabel.BackgroundTransparency = 1
titleLabel.Text = "Aston"
titleLabel.TextColor3 = Color3.fromRGB(255, 200, 200)
titleLabel.Font = Enum.Font.SourceSansBold
titleLabel.TextSize = 28
titleLabel.Position = UDim2.new(0, 0, 0, 0)

local closeButton = Instance.new("TextButton", mainFrame)


closeButton.Size = UDim2.new(0, 30, 0, 30)
closeButton.Position = UDim2.new(0, 5, 0, 5)
closeButton.Text = "X"
closeButton.BackgroundColor3 = Color3.fromRGB(140, 30, 30)
closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
closeButton.BackgroundTransparency = 0.4
closeButton.Font = Enum.Font.SourceSansBold
closeButton.TextSize = 18
closeButton.MouseButton1Click:Connect(function()
mainFrame.Visible = false
end)

local UICornerClose = Instance.new("UICorner", closeButton)


UICornerClose.CornerRadius = UDim.new(0, 8)

local searchBox = Instance.new("TextBox", mainFrame)


searchBox.PlaceholderText = "‫ابحث عن أمر‬..."
searchBox.Size = UDim2.new(1, -20, 0, 30)
searchBox.Position = UDim2.new(0, 10, 0, 50)
searchBox.BackgroundColor3 = Color3.fromRGB(100, 0, 0)
searchBox.BackgroundTransparency = 0.3
searchBox.TextColor3 = Color3.fromRGB(255, 255, 255)
searchBox.Font = Enum.Font.SourceSans
searchBox.TextSize = 18

local UICornerSearch = Instance.new("UICorner", searchBox)


UICornerSearch.CornerRadius = UDim.new(0, 8)

local cmdsFrame = Instance.new("Frame", mainFrame)


cmdsFrame.Size = UDim2.new(1, -20, 1, -90)
cmdsFrame.Position = UDim2.new(0, 10, 0, 90)
cmdsFrame.BackgroundTransparency = 1

local UIListLayout = Instance.new("UIListLayout", cmdsFrame)


UIListLayout.SortOrder = Enum.SortOrder.LayoutOrder
UIListLayout.Padding = UDim.new(0, 5)

local Commands = {
"+Speed [‫ ]رقم‬- ‫"تغيير السرعة‬,
"+Jump [‫ ]رقم‬- ‫"تغيير قوة القفز‬,
"+Cmds - ‫"عرض قائمة الأوامر‬,
"+Noclip - ‫"تفعيل اختراق الجدران‬,
"+Unnoclip - ‫"تعطيل اختراق الجدران‬,
"+Esp - ‫"تفعيل رؤية الالعبين خلف الجدران‬,
"+Unesp - ‫"تعطيل الرؤية خلف الجدران‬,
"+Bang [‫ ]اسم الالعب‬- ‫"االلتصاق خلف العب‬,
"+Unbang - ‫"فك االلتصاق‬
}

for _, text in ipairs(Commands) do


local label = Instance.new("TextLabel", cmdsFrame)
label.Size = UDim2.new(1, 0, 0, 25)
label.BackgroundTransparency = 1
label.Text = text
label.TextColor3 = Color3.fromRGB(255, 200, 200)
label.Font = Enum.Font.SourceSans
label.TextSize = 18
label.TextXAlignment = Enum.TextXAlignment.Left
end

searchBox:GetPropertyChangedSignal("Text"):Connect(function()
local searchText = searchBox.Text:lower()
for _, child in pairs(cmdsFrame:GetChildren()) do
if child:IsA("TextLabel") then
child.Visible = (searchText == "" or
child.Text:lower():find(searchText))
end
end
end)
-- ESP
local espEnabled = false
local espFolder = Instance.new("Folder")
espFolder.Name = "ESPFolder"
espFolder.Parent = workspace

function toggleESP(state)
espEnabled = state
espFolder:ClearAllChildren()
if state then
for _, plr in ipairs(Players:GetPlayers()) do
if plr ~= Player and plr.Character and
plr.Character:FindFirstChild("HumanoidRootPart") then
local box = Instance.new("BoxHandleAdornment")
box.Size = Vector3.new(4, 6, 1)
box.Adornee = plr.Character.HumanoidRootPart
box.AlwaysOnTop = true
box.ZIndex = 5
box.Color3 = Color3.new(1,0,0)
box.Transparency = 0.5
box.Parent = espFolder
end
end
end
end

-- Noclip
local noclip = false
RunService.Stepped:Connect(function()
if noclip and Character then
for _, part in ipairs(Character:GetDescendants()) do
if part:IsA("BasePart") and not part.Anchored then
part.CanCollide = false
end
end
end
end)

-- ‫تحديث الشخصية عند الموت‬


Player.CharacterAdded:Connect(function(char)
Character = char
Humanoid = char:WaitForChild("Humanoid")
end)

-- ‫ متغيرات‬Bang ‫المحسنة‬
local banging = false
local bangConnection
local targetPlayerName = nil

-- ‫ دالة لبدء‬Bang
local function startBang(targetPlayer)
if not targetPlayer or not targetPlayer.Character or not
targetPlayer.Character:FindFirstChild("HumanoidRootPart") then
return
end

local targetHRP = targetPlayer.Character:FindFirstChild("HumanoidRootPart")


local myHRP = Character and Character:FindFirstChild("HumanoidRootPart")
if myHRP and targetHRP then
if bangConnection then
bangConnection:Disconnect()
end

local offsetZ = 0
local direction = -1

bangConnection = RunService.Heartbeat:Connect(function()
if not banging then return end

-- ‫التحقق من وجود الالعب المستهدف‬


local currentTarget = Players:FindFirstChild(targetPlayerName)
if not currentTarget or not currentTarget.Character or not
currentTarget.Character:FindFirstChild("HumanoidRootPart") then
return
end

-- ‫التحقق من شخصيتي‬
local currentMyHRP = Character and
Character:FindFirstChild("HumanoidRootPart")
if not currentMyHRP then
return
end

local currentTargetHRP =
currentTarget.Character:FindFirstChild("HumanoidRootPart")
local targetCFrame = currentTargetHRP.CFrame
local behindCFrame = targetCFrame * CFrame.new(0, 0, 2.2)

offsetZ += direction * 0.35


if offsetZ <= -1 then
direction = 1
elseif offsetZ >= 0 then
direction = -1
end

local dynamicOffset = CFrame.new(0, 0, offsetZ)


currentMyHRP.CFrame = CFrame.new((behindCFrame *
dynamicOffset).Position, currentTargetHRP.Position)
end)
end
end

-- ‫مراقبة دخول الالعبين‬


Players.PlayerAdded:Connect(function(player)
if banging and targetPlayerName and player.Name == targetPlayerName then
-- ‫انتظار تحميل الشخصية‬
player.CharacterAdded:Connect(function()
wait(1) -- ‫انتظار قصير للتأكد من تحميل كامل‬
startBang(player)
end)
end
end)

-- ‫دالة عرض الرسالة‬


local function showMessage(text)
local messageGui = Instance.new("ScreenGui", game.CoreGui)
messageGui.Name = "MessageGui"

local messageFrame = Instance.new("Frame", messageGui)


messageFrame.Size = UDim2.new(0, 300, 0, 50)
messageFrame.Position = UDim2.new(0.5, -150, 0, 20)
messageFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
messageFrame.BackgroundTransparency = 0.3
messageFrame.BorderSizePixel = 0

local UICorner = Instance.new("UICorner", messageFrame)


UICorner.CornerRadius = UDim.new(0, 10)

local messageLabel = Instance.new("TextLabel", messageFrame)


messageLabel.Size = UDim2.new(1, 0, 1, 0)
messageLabel.BackgroundTransparency = 1
messageLabel.Text = text
messageLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
messageLabel.Font = Enum.Font.SourceSansBold
messageLabel.TextSize = 18
messageLabel.TextStrokeTransparency = 0
messageLabel.TextStrokeColor3 = Color3.fromRGB(0, 0, 0)

-- ‫ ثوان‬3 ‫إخفاء الرسالة بعد‬


game:GetService("Debris"):AddItem(messageGui, 3)
end

-- ‫أوامر‬
Player.Chatted:Connect(function(msg)
local args = msg:split(" ")
local command = args[1]:lower()

if command == Prefix.."cmds" then


mainFrame.Visible = not mainFrame.Visible

elseif command == Prefix.."jump" and tonumber(args[2]) then


Humanoid.UseJumpPower = true
Humanoid.JumpPower = tonumber(args[2])

elseif command == Prefix.."speed" and tonumber(args[2]) then


Humanoid.WalkSpeed = tonumber(args[2])

elseif command == Prefix.."noclip" then


noclip = true

elseif command == Prefix.."unnoclip" then


noclip = false

elseif command == Prefix.."esp" then


toggleESP(true)

elseif command == Prefix.."unesp" then


toggleESP(false)

elseif command == Prefix.."bang" and args[2] then


local targetName = args[2]
local targetPlayer = getPlayerByName(targetName)

if targetPlayer then
banging = true
targetPlayerName = targetPlayer.Name
startBang(targetPlayer)
showMessage("made by @xw3")
end

elseif command == Prefix.."unbang" then


banging = false
targetPlayerName = nil
if bangConnection then
bangConnection:Disconnect()
bangConnection = nil
end
end
end)

You might also like