Advertisement
EpicHackerman

test script

Dec 17th, 2019
1,821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.66 KB | None | 0 0
  1.  
  2. function notify(toptext, btext, tim)
  3. local GUI = Instance.new("ScreenGui")
  4. local Notif = Instance.new("Frame")
  5. local Top = Instance.new("Frame")
  6. local TopText = Instance.new("TextLabel")
  7. local BText = Instance.new("TextLabel")
  8.  
  9. GUI.Parent = game:GetService("CoreGui")
  10.  
  11. Notif.Name = "Notif"
  12. Notif.Parent = GUI
  13. Notif.BackgroundColor3 = Color3.new(0.156863, 0.156863, 0.156863)
  14. Notif.BorderSizePixel = 0
  15. Notif.Position = UDim2.new(0.404000014, 0, -0.5, 0)
  16. Notif.Size = UDim2.new(0, 261, 0, 115)
  17.  
  18. Top.Name = "Top"
  19. Top.Parent = Notif
  20. Top.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078)
  21. Top.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  22. Top.BorderSizePixel = 0
  23. Top.Size = UDim2.new(0, 261, 0, 31)
  24.  
  25. TopText.Name = "TopText"
  26. TopText.Parent = Notif
  27. TopText.BackgroundColor3 = Color3.new(1, 1, 1)
  28. TopText.BackgroundTransparency = 1
  29. TopText.BorderSizePixel = 0
  30. TopText.Position = UDim2.new(0.118773945, 0, 0, 0)
  31. TopText.Size = UDim2.new(0, 200, 0, 31)
  32. TopText.Font = Enum.Font.SourceSans
  33. TopText.Text = toptext
  34. TopText.TextColor3 = Color3.new(1, 1, 1)
  35. TopText.TextSize = 20
  36.  
  37. BText.Name = "BText"
  38. BText.Parent = Notif
  39. BText.BackgroundColor3 = Color3.new(1, 1, 1)
  40. BText.BackgroundTransparency = 1
  41. BText.BorderSizePixel = 0
  42. BText.Position = UDim2.new(0, 0, 0.269565225, 0)
  43. BText.Size = UDim2.new(0, 261, 0, 73)
  44. BText.Font = Enum.Font.SourceSans
  45. BText.Text = btext
  46. BText.TextColor3 = Color3.new(1, 1, 1)
  47. BText.TextSize = 20
  48. BText.TextWrapped = true
  49.  
  50. wait(0.1)
  51. Notif:TweenPosition(UDim2.new(0.404, 0,0.404, 0), "Out", "Sine", 0.5)
  52. wait(tim)
  53. Notif:TweenPosition(UDim2.new(0.404, 0,-0.5, 0), "Out", "Sine", 0.5)
  54. wait(2)
  55. GUI:Destroy()
  56. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement