local Players = game:GetService("Players") local CoreGui = game:GetService("CoreGui") local TeleportService = game:GetService("TeleportService") local RunService = game:GetService("RunService") local LocalPlayer = Players.LocalPlayer local Camera = workspace.CurrentCamera -- Eski UI varsa temizle if CoreGui:FindFirstChild("XZeroMegaHub") then CoreGui.XZeroMegaHub:Destroy() end -- Ana Ekran local ScreenGui = Instance.new("ScreenGui", CoreGui) ScreenGui.Name = "XZeroMegaHub" -- Oynak / Sürüklenebilir Ana Çerçeve local MainFrame = Instance.new("Frame", ScreenGui) MainFrame.Size = UDim2.new(0, 360, 0, 480) MainFrame.Position = UDim2.new(0.5, -180, 0.3, -240) MainFrame.BackgroundColor3 = Color3.fromRGB(18, 18, 24) MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true -- Başlık local Title = Instance.new("TextLabel", MainFrame) Title.Size = UDim2.new(1, 0, 0, 45) Title.BackgroundColor3 = Color3.fromRGB(28, 28, 38) Title.Text = "🔥 XZero - Ultimate Dedektif & Spectate Hub" Title.TextColor3 = Color3.fromRGB(255, 255, 255) Title.Font = Enum.Font.SourceSansBold Title.TextSize = 15 -- Arama Kutusu local NameInput = Instance.new("TextBox", MainFrame) NameInput.Size = UDim2.new(0.9, 0, 0, 35) NameInput.Position = UDim2.new(0.05, 0, 0.11, 0) NameInput.BackgroundColor3 = Color3.fromRGB(35, 35, 48) NameInput.TextColor3 = Color3.fromRGB(255, 255, 255) NameInput.PlaceholderText = "Kullanıcı Adı Girin..." NameInput.Font = Enum.Font.SourceSans NameInput.TextSize = 14 NameInput.Text = "" -- Bilgi Gösterme Paneli local InfoScroll = Instance.new("ScrollingFrame", MainFrame) InfoScroll.Size = UDim2.new(0.9, 0, 0, 110) InfoScroll.Position = UDim2.new(0.05, 0, 0.20, 0) InfoScroll.BackgroundColor3 = Color3.fromRGB(12, 12, 16) InfoScroll.BorderSizePixel = 0 InfoScroll.CanvasSize = UDim2.new(0, 0, 0, 250) InfoScroll.ScrollBarThickness = 6 local InfoText = Instance.new("TextLabel", InfoScroll) InfoText.Size = UDim2.new(1, -10, 1, 0) InfoText.Position = UDim2.new(0, 5, 0, 5) InfoText.BackgroundTransparency = 1 InfoText.TextColor3 = Color3.fromRGB(200, 200, 220) InfoText.Font = Enum.Font.Code InfoText.TextSize = 13 InfoText.TextXAlignment = Enum.TextXAlignment.Left InfoText.TextYAlignment = Enum.TextYAlignment.Top InfoText.TextWrapped = true InfoText.Text = "Sistem Hazır!\n- İsmi yazıp istediğin özelliği seçebilirsin.\n- Spectate (Gözetleme) modu ile oyuncuları canlı izleyebilirsin." -- Buton Alanı (Grid Layout) local ButtonContainer = Instance.new("Frame", MainFrame) ButtonContainer.Size = UDim2.new(0.9, 0, 0.32, 0) ButtonContainer.Position = UDim2.new(0.05, 0, 0.63, 0) ButtonContainer.BackgroundTransparency = 1 local UIGrid = Instance.new("UIGridLayout", ButtonContainer) UIGrid.CellSize = UDim2.new(0.48, 0, 0.30, 0) UIGrid.CellPadding = UDim2.new(0.04, 0, 0.06, 0) -- Buton 1: Profili Tara local InspectBtn = Instance.new("TextButton", ButtonContainer) InspectBtn.BackgroundColor3 = Color3.fromRGB(0, 130, 250) InspectBtn.TextColor3 = Color3.fromRGB(255, 255, 255) InspectBtn.Font = Enum.Font.SourceSansBold InspectBtn.TextSize = 13 InspectBtn.Text = "🔍 Profili Tara" -- Buton 2: Gözetleme (Spectate) local SpectateBtn = Instance.new("TextButton", ButtonContainer) SpectateBtn.BackgroundColor3 = Color3.fromRGB(220, 130, 0) SpectateBtn.TextColor3 = Color3.fromRGB(255, 255, 255) SpectateBtn.Font = Enum.Font.SourceSansBold SpectateBtn.TextSize = 13 SpectateBtn.Text = "👁️ Gözetle (Aç/Kapat)" -- Buton 3: Aynı Sunucuda Işınlan local TeleportBtn = Instance.new("TextButton", ButtonContainer) TeleportBtn.BackgroundColor3 = Color3.fromRGB(0, 180, 90) TeleportBtn.TextColor3 = Color3.fromRGB(255, 255, 255) TeleportBtn.Font = Enum.Font.SourceSansBold TeleportBtn.TextSize = 13 TeleportBtn.Text = "⚡ Yanına Işınlan" -- Buton 4: Başka Sunucuya Katıl local ServerJoinBtn = Instance.new("TextButton", ButtonContainer) ServerJoinBtn.BackgroundColor3 = Color3.fromRGB(150, 40, 200) ServerJoinBtn.TextColor3 = Color3.fromRGB(255, 255, 255) ServerJoinBtn.Font = Enum.Font.SourceSansBold ServerJoinBtn.TextSize = 13 ServerJoinBtn.Text = "🌐 Sunucusuna Git" -- Buton 5: Hız & Zıplama local SpeedBtn = Instance.new("TextButton", ButtonContainer) SpeedBtn.BackgroundColor3 = Color3.fromRGB(50, 50, 70) SpeedBtn.TextColor3 = Color3.fromRGB(255, 255, 255) SpeedBtn.Font = Enum.Font.SourceSansBold SpeedBtn.TextSize = 13 SpeedBtn.Text = "🚀 Hız 50 / Zıpla 120" -- Alt Bilgi Notu local Footer = Instance.new("TextLabel", MainFrame) Footer.Size = UDim2.new(1, 0, 0, 20) Footer.Position = UDim2.new(0, 0, 0.95, 0) Footer.BackgroundTransparency = 1 Footer.TextColor3 = Color3.fromRGB(100, 100, 120) Footer.Font = Enum.Font.SourceSans Footer.TextSize = 11 Footer.Text = "Discord.gg / ScriptBlox Exclusive" --- İŞLEVLER --- -- Spectate Değişkenleri local isSpectating = false local targetPlayer = nil local spectateConnection = nil -- 1. PROFİL TARAMA InspectBtn.MouseButton1Click:Connect(function() local name = NameInput.Text if name == "" then InfoText.Text = "Hata: Lütfen bir oyuncu adı yaz!" return end InfoText.Text = "Bilgiler taranıyor..." local success, userId = pcall(function() return Players:GetUserIdFromNameAsync(name) end) if success and userId then local profileUrl = "https://www.roblox.com/users/" .. userId .. "/profile" local status = "Bu sunucuda değil" for _, p in ipairs(Players:GetPlayers()) do if p.UserId == userId then status = "Şu an BU SUNUCUDA oynuyor!" break end end InfoText.Text = "== DOSYA ==\nAd: " .. name .. "\nID: " .. userId .. "\nDurum: " .. status .. "\nLink:\n" .. profileUrl else InfoText.Text = "Kullanıcı bulunamadı!" end end) -- 2. GÖZETLEME (SPECTATE) SpectateBtn.MouseButton1Click:Connect(function() local name = string.lower(NameInput.Text) if name == "" and not isSpectating then InfoText.Text = "Gözetlemek için bir isim gir!" return end if isSpectating then -- Spectate Kapat if spectateConnection then spectateConnection:Disconnect() end Camera.CameraSubject = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") isSpectating = false InfoText.Text = "👁️ Gözetleme modu kapatıldı. Kendi karakterine döndün." SpectateBtn.BackgroundColor3 = Color3.fromRGB(220, 130, 0) else -- Hedefi Bul ve Spectate Aç targetPlayer = nil for _, p in ipairs(Players:GetPlayers()) do if string.sub(string.lower(p.Name), 1, #name) == name or string.sub(string.lower(p.DisplayName), 1, #name) == name then targetPlayer = p break end end if targetPlayer and targetPlayer.Character and targetPlayer.Character:FindFirstChild("Humanoid") then isSpectating = true SpectateBtn.BackgroundColor3 = Color3.fromRGB(0, 200, 0) InfoText.Text = "👁️ Gözetleniyor: " .. targetPlayer.Name .. " canlı izleniyor!" spectateConnection = RunService.RenderStepped:Connect(function() if targetPlayer and targetPlayer.Character and targetPlayer.Character:FindFirstChild("Humanoid") then Camera.CameraSubject = targetPlayer.Character.Humanoid else -- Oyuncu oyundan çıkarsa normale dön Camera.CameraSubject = LocalPlayer.Character and LocalPlayer.Character:FindFirstChild("Humanoid") isSpectating = false SpectateBtn.BackgroundColor3 = Color3.fromRGB(220, 130, 0) end end) else InfoText.Text = "Oyuncu bu sunucuda bulunamadı!" end end end) -- 3. AYNI SUNUCUDA IŞINLAN TeleportBtn.MouseButton1Click:Connect(function() local name = string.lower(NameInput.Text) for _, p in ipairs(Players:GetPlayers()) do if string.sub(string.lower(p.Name), 1, #name) == name or string.sub(string.lower(p.DisplayName), 1, #name) == name then if p.Character and p.Character:FindFirstChild("HumanoidRootPart") then LocalPlayer.Character.HumanoidRootPart.CFrame = p.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 3) InfoText.Text = "⚡ " .. p.Name .. " yanına ışınlandın!" return end end end InfoText.Text = "Oyuncu sunucuda bulunamadı!" end) -- 4. BAŞKA SUNUCUYA KATIL (Server Join) ServerJoinBtn.MouseButton1Click:Connect(function() local name = NameInput.Text local success, userId = pcall(function() return Players:GetUserIdFromNameAsync(name) end) if success and userId then InfoText.Text = "🌐 Sunucusuna geçiliyor..." pcall(function() TeleportService:TeleportToPlaceInstance(game.PlaceId, userId, LocalPlayer) end) else InfoText.Text = "Kullanıcı bulunamadı!" end end) -- 5. HIZ & ZIPLAMA SpeedBtn.MouseButton1Click:Connect(function() local char = LocalPlayer.Character if char and char:FindFirstChild("Humanoid") then char.Humanoid.WalkSpeed = 50 char.Humanoid.JumpPower = 120 InfoText.Text = "🚀 Hız ve zıplama güçlendirildi!" end end)