-- LocalScript (place in StarterPlayer > StarterPlayerScripts) -- GUI name: "CEO OF SPEEDS AND MADE BY TWEEN GUY" -- Purpose: Notification button + client-side ESP name tags for learning/admin use. -- NOTE: This script does NOT provide anti-hit/invulnerability. I cannot help with that. local Players = game:GetService("Players") local RunService = game:GetService("RunService") local localPlayer = Players.LocalPlayer -- Create ScreenGui (top-level) local screenGui = Instance.new("ScreenGui") screenGui.Name = "CEO OF SPEEDS AND MADE BY TWEEN GUY" screenGui.ResetOnSpawn = false screenGui.Parent = localPlayer:WaitForChild("PlayerGui") -- Style settings (tweak as desired) local uiWidth = 260 local uiPadding = 8 local bgColor = Color3.fromRGB(30,30,30) local accentColor = Color3.fromRGB(0,170,255) local textColor = Color3.fromRGB(255,255,255) -- Main frame local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, uiWidth, 0, 110) mainFrame.Position = UDim2.new(0, 20, 0, 20) mainFrame.BackgroundColor3 = bgColor mainFrame.BorderSizePixel = 0 mainFrame.Parent = screenGui mainFrame.AnchorPoint = Vector2.new(0,0) local uiCorner = Instance.new("UICorner", mainFrame) uiCorner.CornerRadius = UDim.new(0, 8) -- Title local title = Instance.new("TextLabel") title.Name = "Title" title.Size = UDim2.new(1, -uiPadding*2, 0, 28) title.Position = UDim2.new(0, uiPadding, 0, uiPadding) title.BackgroundTransparency = 1 title.TextColor3 = textColor title.Font = Enum.Font.GothamBold title.Text = "CEO OF SPEEDS — MADE BY TWEEN GUY" title.TextSize = 14 title.TextXAlignment = Enum.TextXAlignment.Left title.Parent = mainFrame -- Notification button local notifButton = Instance.new("TextButton") notifButton.Name = "NotificationButton" notifButton.Size = UDim2.new(0, 110, 0, 32) notifButton.Position = UDim2.new(0, uiPadding, 0, 40) notifButton.BackgroundColor3 = accentColor notifButton.TextColor3 = Color3.new(1,1,1) notifButton.Font = Enum.Font.GothamSemibold notifButton.Text = "NOTIFICATION" notifButton.TextSize = 14 notifButton.AutoButtonColor = true notifButton.Parent = mainFrame local nbCorner = Instance.new("UICorner", notifButton) nbCorner.CornerRadius = UDim.new(0,6) -- ESP toggle button local espButton = Instance.new("TextButton") espButton.Name = "ESPButton" espButton.Size = UDim2.new(0, 110, 0, 32) espButton.Position = UDim2.new(0, uiPadding + 120, 0, 40) espButton.BackgroundColor3 = Color3.fromRGB(60,60,60) espButton.TextColor3 = textColor espButton.Font = Enum.Font.GothamSemibold espButton.Text = "ESP: OFF" espButton.TextSize = 14 espButton.AutoButtonColor = true espButton.Parent = mainFrame local ebCorner = Instance.new("UICorner", espButton) ebCorner.CornerRadius = UDim.new(0,6) -- Notification area (top-right of mainFrame) local notifArea = Instance.new("Frame") notifArea.Name = "NotifArea" notifArea.Size = UDim2.new(1, -uiPadding*2, 0, 26) notifArea.Position = UDim2.new(0, uiPadding, 0, 80) notifArea.BackgroundTransparency = 1 notifArea.Parent = mainFrame local notifLabel = Instance.new("TextLabel") notifLabel.Name = "NotifLabel" notifLabel.Size = UDim2.new(1,0,1,0) notifLabel.BackgroundTransparency = 1 notifLabel.TextColor3 = textColor notifLabel.Font = Enum.Font.Gotham notifLabel.TextSize = 14 notifLabel.Text = "" notifLabel.TextXAlignment = Enum.TextXAlignment.Left notifLabel.Parent = notifArea -- Simple notification function local notifTweenService = game:GetService("TweenService") local function showNotification(text, duration) duration = duration or 3 notifLabel.Text = text -- fade in notifLabel.TextTransparency = 1 notifLabel.TextTransparency = 0 -- simple coroutine to clear after duration delay(duration, function() -- fade out notifLabel.TextTransparency = 1 wait(0.2) if notifLabel.Text == text then notifLabel.Text = "" end end) end -- ESP implementation (client-side) using BillboardGui attached to each character's Head. local espOn = false local espGuis = {} -- [player] = BillboardGui local function createNameBillboardForCharacter(player, character) if not character then return end local head = character:FindFirstChild("Head") if not head then return end -- Avoid creating multiple if espGuis[player] then return end local billboard = Instance.new("BillboardGui") billboard.Name = "TweenGuyESP" billboard.AlwaysOnTop = true billboard.Size = UDim2.new(0, 140, 0, 32) billboard.StudsOffset = Vector3.new(0, 2.2, 0) billboard.Parent = head local bg = Instance.new("Frame", billboard) bg.Size = UDim2.new(1, 0, 1, 0) bg.BackgroundTransparency = 0.45 bg.BackgroundColor3 = Color3.fromRGB(0,0,0) bg.BorderSizePixel = 0 local nameLabel = Instance.new("TextLabel", bg) nameLabel.Size = UDim2.new(1, -8, 1, -4) nameLabel.Position = UDim2.new(0,4,0,2) nameLabel.BackgroundTransparency = 1 nameLabel.Text = player.Name nameLabel.TextColor3 = Color3.fromRGB(255,255,255) nameLabel.Font = Enum.Font.GothamSemibold nameLabel.TextSize = 14 nameLabel.TextStrokeTransparency = 0.6 nameLabel.TextXAlignment = Enum.TextXAlignment.Center espGuis[player] = billboard end local function removeESPGui(player) local gui = espGuis[player] if gui and gui.Parent then gui:Destroy() end espGuis[player] = nil end -- Toggle function local function setESP(on) espOn = on if espOn then espButton.Text = "ESP: ON" -- create for all existing players (except local) for _, p in pairs(Players:GetPlayers()) do if p ~= localPlayer and p.Character then createNameBillboardForCharacter(p, p.Character) end end else espButton.Text = "ESP: OFF" for p,_ in pairs(espGuis) do removeESPGui(p) end end end -- Connections to handle future players/character spawns Players.PlayerAdded:Connect(function(p) p.CharacterAdded:Connect(function(char) if espOn and p ~= localPlayer then createNameBillboardForCharacter(p, char) end end) end) -- Remove guis when player leaves Players.PlayerRemoving:Connect(function(p) removeESPGui(p) end) -- Also remove if characters die/reset local function onCharacterRemoving(char) for p, gui in pairs(espGuis) do if gui and gui.Parent and gui.Parent:IsDescendantOf(char) then removeESPGui(p) end end end -- Button callbacks notifButton.MouseButton1Click:Connect(function() showNotification("Hello! This is a notification.", 3) end) espButton.MouseButton1Click:Connect(function() setESP(not espOn) end) -- On load: create ESP for players already present (character added might not have happened) for _, p in pairs(Players:GetPlayers()) do if p ~= localPlayer and p.Character then -- small delay to ensure Head exists spawn(function() wait(0.1) if espOn then createNameBillboardForCharacter(p, p.Character) end end) end -- watch for subsequent character spawns p.CharacterAdded:Connect(function(char) if espOn and p ~= localPlayer then createNameBillboardForCharacter(p, char) end end) end -- Initial state: ESP off setESP(false) -- OPTIONAL: A small hint label local hint = Instance.new("TextLabel") hint.Size = UDim2.new(1, -uiPadding*2, 0, 14) hint.Position = UDim2.new(0, uiPadding, 1, -20) hint.BackgroundTransparency = 1 hint.TextColor3 = Color3.fromRGB(180,180,180) hint.Font = Enum.Font.Gotham hint.TextSize = 12 hint.Text = "For development use only. No invulnerability / anti-hit features included." hint.Parent = mainFrame