Advertisement
daniil30012003

annOyin message

Mar 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.17 KB | None | 0 0
  1. -- LocalScript -- daniil30012003 --
  2. -- Don't edit, unless you know what you're doing. --
  3.  
  4. local Notify = Instance.new("ScreenGui", script.Parent)
  5. local Frame = Instance.new("Frame")
  6. local Button = Instance.new("TextButton")
  7. local TextLabel = Instance.new("TextLabel")
  8. local Open = Instance.new("Sound")
  9. local Close = Instance.new("Sound")
  10.  
  11. Notify.Name = "Notify"
  12. Notify.Enabled = false
  13.  
  14. Frame.Parent = script.Parent:FindFirstChild("Notify")
  15. Frame.AnchorPoint = Vector2.new(0.5, 0.5)
  16. Frame.Position = UDim2.new(0.5,0,0.5,0)
  17. Frame.Size = UDim2.new(0,300,0,100)
  18. Frame.Style = "DropShadow"
  19.  
  20. Button.Parent = script.Parent:FindFirstChild("Notify"):FindFirstChild("Frame")
  21. Button.Name = "OK"
  22. Button.AnchorPoint = Vector2.new(0.5, 0.5)
  23. Button.Position = UDim2.new(0.5,0,0.8,0)
  24. Button.Size = UDim2.new(0,100,0,30)
  25. Button.Style = "RobloxRoundDefaultButton"
  26. Button.ZIndex = 2
  27. Button.Font = Enum.Font.SourceSansBold
  28. Button.Text = "OK"
  29. Button.TextColor3 = Color3.new(0,0,0)
  30. Button.TextSize = 20
  31.  
  32. TextLabel.Parent = script.Parent:FindFirstChild("Notify"):FindFirstChild("Frame")
  33. TextLabel.BackgroundTransparency = 1
  34. TextLabel.Text = "daniil's virus ecks deecks, corrupted the game, this message will annoy until you leave, ok? lmao, now get out, idiot." -- Message --
  35. TextLabel.Name = "Text"
  36. TextLabel.Size = UDim2.new(1,0,0.7,0)
  37. TextLabel.ZIndex = 2
  38. TextLabel.Font = Enum.Font.SourceSansSemibold
  39. TextLabel.TextColor3 = Color3.new(255,255,255)
  40. TextLabel.TextWrapped = true
  41. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  42. TextLabel.TextYAlignment = Enum.TextYAlignment.Top
  43. TextLabel.TextSize = 14
  44.  
  45. Open.Parent = script.Parent:FindFirstChild("Notify")
  46. Open.Name = "Open"
  47. Open.SoundId = "rbxassetid://136333500"
  48. Open.Volume = 10
  49.  
  50. Close.Parent = script.Parent:FindFirstChild("Notify")
  51. Close.Name = "Close"
  52. Close.SoundId = "rbxassetid://136331825"
  53. Open.Volume = 10
  54.  
  55. while true do
  56.     wait(math.random(1,10))
  57.     if Notify.Enabled == false then
  58.         Notify.Enabled = true
  59.         Notify.Open:Play()
  60.     end
  61. end
  62.  
  63. function onClicked()
  64.     script.Parent.Notify.Enabled = false
  65.     script.Parent.Notify.Close:Play()
  66. end
  67.  
  68. script.Parent.Notify.Frame.OK.MouseButton1Click:connect(onClicked)
  69.  
  70. -- End --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement