--[[
☢️ TOXIC HUB ☢️
Official Release
Platform: Roblox (Universal)
Executor: Delta & Others
--]]
local Players = game:GetService("Players")
local CoreGui = game:GetService("CoreGui")
local StarterGui = game:GetService("StarterGui")
-- نظام إشعار عند التشغيل
StarterGui:SetCore("SendNotification", {
Title = "☢️ TOXIC HUB ☢️",
Text = "Script Loaded Successfully!",
Duration = 5;
})
local TrackedPlayers = {}
-- إنشاء الواجهة
local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Name = "ToxicHub_Public"
pcall(function() ScreenGui.Parent = CoreGui end)
-- زر الفتح (تصميم نيون)
local ToggleButton = Instance.new("TextButton", ScreenGui)
ToggleButton.Size = UDim2.new(0, 60, 0, 60)
ToggleButton.Position = UDim2.new(0, 10, 0.5, -30)
ToggleButton.BackgroundColor3 = Color3.fromRGB(10, 10, 10)
ToggleButton.Text = "☢️"
ToggleButton.TextColor3 = Color3.fromRGB(0, 255, 0)
ToggleButton.Font = Enum.Font.GothamBold
ToggleButton.TextSize = 30
Instance.new("UICorner", ToggleButton).CornerRadius = UDim.new(1, 0)
local Stroke = Instance.new("UIStroke", ToggleButton)
Stroke.Color = Color3.fromRGB(0, 255, 0)
Stroke.Thickness = 2
-- الإطار الرئيسي
local Main = Instance.new("Frame", ScreenGui)
Main.Size = UDim2.new(0, 350, 0, 420)
Main.Position = UDim2.new(0.5, -175, 0.5, -210)
Main.BackgroundColor3 = Color3.fromRGB(15, 15, 15)
Main.Active = true
Main.Draggable = true
Main.Visible = false
Instance.new("UICorner", Main).CornerRadius = UDim.new(0, 12)
Instance.new("UIStroke", Main).Color = Color3.fromRGB(0, 255, 0)
ToggleButton.MouseButton1Click:Connect(function() Main.Visible = not Main.Visible end)
-- العنوان
local Title = Instance.new("TextLabel", Main)
Title.Size = UDim2.new(1, 0, 0, 50)
Title.Text = "☢️ TOXIC HUB ☢️"
Title.TextColor3 = Color3.fromRGB(0, 255, 0)
Title.BackgroundTransparency = 1
Title.Font = Enum.Font.GothamBold
Title.TextSize = 22
-- مربع البحث
local SearchBox = Instance.new("TextBox", Main)
SearchBox.Size = UDim2.new(0, 320, 0, 40)
SearchBox.Position = UDim2.new(0, 15, 0, 60)
SearchBox.PlaceholderText = "Type Player Name..."
SearchBox.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
SearchBox.TextColor3 = Color3.fromRGB(255, 255, 255)
SearchBox.Text = ""
Instance.new("UICorner", SearchBox)
-- قائمة التمرير
local ScrollFrame = Instance.new("ScrollingFrame", Main)
ScrollFrame.Size = UDim2.new(0, 320, 0, 300)
ScrollFrame.Position = UDim2.new(0, 15, 0, 110)
ScrollFrame.BackgroundTransparency = 1
ScrollFrame.ScrollBarThickness = 2
local UIList = Instance.new("UIListLayout", ScrollFrame)
UIList.Padding = UDim.new(0, 10)
-- دالة البطاقة (مع إصلاح عداد Joins)
local function CreatePlayerCard(targetPlayer)
if TrackedPlayers[targetPlayer.Name] then return end
local Card = Instance.new("Frame", ScrollFrame)
Card.Size = UDim2.new(1, -5, 0, 90)
Card.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
Instance.new("UICorner", Card)
local Img = Instance.new("ImageLabel", Card)
Img.Size = UDim2.new(0, 60, 0, 60)
Img.Position = UDim2.new(0, 10, 0.5, -30)
task.spawn(function()
Img.Image = Players:GetUserThumbnailAsync(targetPlayer.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size150x150)
end)
Instance.new("UICorner", Img).CornerRadius = UDim.new(1, 0)
local Info = Instance.new("TextLabel", Card)
Info.Size = UDim2.new(1, -85, 1, 0)
Info.Position = UDim2.new(0, 80, 0, 0)
Info.BackgroundTransparency = 1
Info.TextColor3 = Color3.new(1, 1, 1)
Info.Font = Enum.Font.Gotham
Info.TextSize = 11
Info.TextXAlignment = Enum.TextXAlignment.Left
Info.RichText = true
TrackedPlayers[targetPlayer.Name] = {
InfoLabel = Info,
DisplayName = targetPlayer.DisplayName,
JoinTime = tick(),
Joins = 0, -- يبدأ من صفر كما طلبت
Leaves = 0,
IsOnline = true
}
end
-- نظام المراقبة للنشر (Global Events)
Players.PlayerRemoving:Connect(function(plr)
if TrackedPlayers[plr.Name] then
TrackedPlayers[plr.Name].Leaves = TrackedPlayers[plr.Name].Leaves + 1
TrackedPlayers[plr.Name].IsOnline = false
end
end)
Players.PlayerAdded:Connect(function(plr)
if TrackedPlayers[plr.Name] then
TrackedPlayers[plr.Name].Joins = TrackedPlayers[plr.Name].Joins + 1
TrackedPlayers[plr.Name].JoinTime = tick()
TrackedPlayers[plr.Name].IsOnline = true
end
end)
-- تفعيل البحث
SearchBox.FocusLost:Connect(function(enter)
if enter and SearchBox.Text ~= "" then
local q = SearchBox.Text:lower()
for _, p in pairs(Players:GetPlayers()) do
if p.Name:lower():find(q) or p.DisplayName:lower():find(q) then
CreatePlayerCard(p)
SearchBox.Text = ""
break
end
end
end
end)
-- تحديث الواجهة
task.spawn(function()
while task.wait(1) do
for name, data in pairs(TrackedPlayers) do
local status = data.IsOnline and "<font color='#00ff00'>ONLINE</font>" or "<font color='#ff0000'>OFFLINE</font>"
local duration = data.IsOnline and (tick() - data.JoinTime) or 0
local mins, secs = math.floor(duration / 60), math.floor(duration % 60)
data.InfoLabel.Text = string.format([[
<b>%s</b> (@%s) [%s]
⏱️ Time: %dm %ds
📥 Joins: %d | 📤 Leaves: %d
]], data.DisplayName, name, status, mins, secs, data.Joins, data.Leaves)
end
ScrollFrame.CanvasSize = UDim2.new(0, 0, 0, UIList.AbsoluteContentSize.Y)
end
end)
Comments
No comments yet
Be the first to share your thoughts!