local Players = game:GetService("Players") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoidRootPart = character:WaitForChild("HumanoidRootPart") local playerCFrame = humanoidRootPart.CFrame local lastPart -- Pour garder la référence à la dernière notification function main(title, desc) local newPos = CFrame.new(humanoidRootPart.Position.X, humanoidRootPart.Position.Y, humanoidRootPart.Position.Z - 5) if lastPart then lastPart:Destroy() -- Détruire la dernière notification si elle existe end local part = Instance.new("Part") part.Size = Vector3.new(8, 0.3, 5) part.Parent = workspace part.Anchored = true part.Color = Color3.new(0.2, 0.2, 0.2) part.Transparency = 0.5 part.CanCollide = false part.CanTouch = false part.CanQuery = false part.Name = "Screen" part.Material = Enum.Material.Neon part.CFrame = newPos part.Rotation = Vector3.new(20, 0, 0) local screenguiMain = Instance.new("SurfaceGui") screenguiMain.Parent = part screenguiMain.Face = Enum.NormalId.Top screenguiMain.Adornee = part local textLabel = Instance.new("TextLabel") textLabel.Parent = screenguiMain textLabel.Text = title textLabel.Rotation = 90 textLabel.Size = UDim2.new(0.5, 0, 0.5, 0) textLabel.Position = UDim2.new(0, 550, 0, 10) textLabel.BackgroundTransparency = 1 textLabel.TextColor3 = Color3.new(0.905882, 0.905882, 0.905882) textLabel.TextScaled = true textLabel.FontFace = Font.fromEnum(Enum.Font.FredokaOne) local mainText = Instance.new("TextLabel") mainText.Parent = screenguiMain mainText.Text = desc mainText.Rotation = 90 mainText.Size = UDim2.new(0.5, 0, 0.5, 0) mainText.TextSize = 70 mainText.Position = UDim2.new(0, 275, 0, 150) mainText.BackgroundTransparency = 1 mainText.TextColor3 = Color3.new(0.905882, 0.905882, 0.905882) mainText.FontFace = Font.fromEnum(Enum.Font.FredokaOne) local button = Instance.new("Part") local newPosBtn = CFrame.new(part.Position.X, part.Position.Y + 0.05, part.Position.Z + 1) button.Parent = part button.Color = Color3.new(0, 0, 0) button.Size = Vector3.new(2, 0.2, 1) button.CFrame = newPosBtn button.CanCollide = true button.Rotation = Vector3.new(20, 0, 0) button.CanTouch = true button.CanQuery = true button.Anchored = true button.Name = "Button" button.Material = Enum.Material.Neon local buttonMain = Instance.new("SurfaceGui") buttonMain.Parent = button buttonMain.Face = Enum.NormalId.Top buttonMain.Adornee = button local buttontext = Instance.new("TextLabel") buttontext.Parent = buttonMain buttontext.Text = "Okay !" buttontext.Rotation = 90 buttontext.Size = UDim2.new(1, 0, 1, 0) buttontext.TextSize = 600 buttontext.TextScaled = true buttontext.BackgroundTransparency = 1 buttontext.TextColor3 = Color3.new(0.905882, 0.905882, 0.905882) buttontext.FontFace = Font.fromEnum(Enum.Font.FredokaOne) local buttonclick = Instance.new("ClickDetector") buttonclick.Parent = button buttonclick.MouseClick:Connect(function(player) part:Destroy() end) lastPart = part -- Garder une référence à la dernière notification end main("Notifier", "Script loaded !") game.Players.PlayerAdded:Connect(function(player) main("Player", player.Name .. " join this game !") end) game.Players.PlayerRemoving:Connect(function(player) main("Player", player.Name .. " left this game!") end)