local notificationGui = Instance.new("ScreenGui") notificationGui.Enabled = true notificationGui.IgnoreGuiInset = true local notificationFrame = Instance.new("Frame") notificationFrame.Size = UDim2.new(0, 200, 0, 50)--大小 notificationFrame.Position = UDim2.new(0.5, -100, 1, -50) --位置 notificationFrame.BackgroundColor3 = Color3.new(1, 1, 1)--背景颜色3 notificationFrame.Parent = notificationGui local notificationText = Instance.new("TextLabel") notificationText.Size = UDim2.new(1, 0, 1, 0)--大小 notificationText.Position = UDim2.new(0, 0, 0, 0)--位置 notificationText.BackgroundColor3 = Color3.new(1, 1, 1)--背景颜色3 notificationText.TextColor3 = Color3.new(0, 0, 0)--文本颜色3 notificationText.Text = "群728293118" notificationText.Font = Enum.Font.SourceSansBold notificationText.FontSize = Enum.FontSize.Size24 notificationText.TextScaled = true notificationText.Parent = notificationFrame local function animateNotification() local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, false, 0) local tween = game:GetService("TweenService"):Create(notificationFrame, tweenInfo, {Position = UDim2.new(0.5, -100, 0.70, -50)}) tween:Play() wait(3) tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quint, Enum.EasingDirection.Out, 0, false, 0) tween = game:GetService("TweenService"):Create(notificationFrame, tweenInfo, {Position = UDim2.new(0.5, -100, 1.25, -50)}) tween:Play() wait(3)--停止 notificationGui:Destroy() end notificationGui.Parent = game.Players.LocalPlayer.PlayerGui animateNotification()