Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. if _G.dAAcG3fvBqVoPzVnAFk == nil then
  2. _G.dAAcG3fvBqVoPzVnAFk = "4491964512"
  3. end
  4.  
  5.  
  6. function notify(text, overwrite, response)
  7.  
  8. local clickfunction = response or function() return end
  9. local override = overwrite or false
  10. if text == _G.dAAcG3fvBqVoPzVnAFk and override == false then return end
  11. spawn(function()
  12. for i,v in pairs(game.CoreGui:GetChildren())do
  13. spawn(function()
  14. if v.Name == "MNotify" then -- deleting here
  15. pcall(function()
  16. v.ImageButton.ZIndex = 58; v.ImageButton.TextLabel.ZIndex = 59
  17. v.ImageButton:TweenPosition(UDim2.new(0.01, 0,1, 0), "Out", "Quint", .7, true)
  18. game:GetService("TweenService"):Create(v.ImageButton.TextLabel,TweenInfo.new(0.8,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,0,false,0), {TextTransparency = 1})
  19. wait(1)
  20. v:Destroy()
  21. end)
  22. end
  23. end)
  24. end
  25.  
  26. _G.dAAcG3fvBqVoPzVnAFk = text
  27. local clickfunction = response or function() return end
  28. local function CreateInstance(cls,props) local inst = Instance.new(cls) for i,v in pairs(props) do inst[i] = v end return inst end
  29. local MNotify = CreateInstance('ScreenGui',{DisplayOrder=0,Enabled=true,ResetOnSpawn=true,Name='MNotify', Parent=game.CoreGui})
  30. local ImageButton = CreateInstance('ImageButton',{Image='rbxassetid://1051186612',ImageColor3=Color3.new(0.129412, 0.129412, 0.129412),ImageRectOffset=Vector2.new(0, 0),ImageRectSize=Vector2.new(0, 0),ImageTransparency=0,ScaleType=Enum.ScaleType.Slice,SliceCenter=Rect.new(20, 20, 20, 20),AutoButtonColor=true,Modal=false,Selected=false,Style=Enum.ButtonStyle.Custom,Active=true,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=1,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.00999999978, 0, 1, 0),Rotation=0,Selectable=true,Size=UDim2.new(0, 234, 0, 40),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=60,Name='ImageButton',Parent = MNotify})
  31. local TextLabel = CreateInstance('TextLabel',{Font=Enum.Font.SourceSansLight,FontSize=Enum.FontSize.Size24,Text=text,TextColor3=Color3.new(0.807843, 0.807843, 0.807843),TextScaled=false,TextSize=24,TextStrokeColor3=Color3.new(0, 0, 0),TextStrokeTransparency=1,TextTransparency=0,TextWrapped=false,TextXAlignment=Enum.TextXAlignment.Center,TextYAlignment=Enum.TextYAlignment.Center,Active=false,AnchorPoint=Vector2.new(0, 0),BackgroundColor3=Color3.new(1, 1, 1),BackgroundTransparency=1,BorderColor3=Color3.new(0.105882, 0.164706, 0.207843),BorderSizePixel=1,ClipsDescendants=false,Draggable=false,Position=UDim2.new(0.132478639, 0, 0, 0),Rotation=0,Selectable=false,Size=UDim2.new(0, 174, 0, 40),SizeConstraint=Enum.SizeConstraint.RelativeXY,Visible=true,ZIndex=61,Name='TextLabel',Parent = ImageButton})
  32. local UIListLayout = CreateInstance('UIListLayout', {Padding = UDim.new(0, 0), FillDirection = Enum.FillDirection.Vertical, HorizontalAlignment = Enum.HorizontalAlignment.Center, SortOrder = Enum.SortOrder.Name, VerticalAlignment = Enum.VerticalAlignment.Top, Name = 'UIListLayout', Parent = ImageButton })
  33. -- not setting text ^
  34. local value = 1
  35. if string.len(text) <= 49 then
  36. ImageButton.Size = UDim2.new(0, game:GetService("TextService"):GetTextSize(text, 24, Enum.Font.SourceSansLight, Vector2.new(500,900)).X+57, 0, 40)
  37. elseif string.len(text) > 49 then
  38. value = math.ceil(string.len(string.sub(text, 49))/9)
  39. ImageButton.Size = UDim2.new(0, game:GetService("TextService"):GetTextSize(text, 24, Enum.Font.SourceSansLight, Vector2.new(500+value*100,900)).X+57, 0, 40)
  40. end
  41. ImageButton:TweenPosition(UDim2.new(0.01, 0,1, -60), "Out", "Quint", .7, true)
  42. spawn(function()
  43. wait(6.7)
  44. pcall(function()
  45. ImageButton.ZIndex = 58; TextLabel.ZIndex = 59
  46. ImageButton:TweenPosition(UDim2.new(0.01, 0,1, 0), "Out", "Quint", .7, true)
  47. _G.dAAcG3fvBqVoPzVnAFk = ""
  48. wait(1)
  49. MNotify:Destroy()
  50. end)
  51. end)
  52. ImageButton.MouseButton1Up:Connect(function()
  53. if response == nil then return end
  54. spawn(function()
  55. pcall(function()
  56. ImageButton.ZIndex = 58; TextLabel.ZIndex = 59
  57. ImageButton:TweenPosition(UDim2.new(0.01, 0,1, 0), "Out", "Quint", .7, true)
  58. _G.dAAcG3fvBqVoPzVnAFk = ""
  59. wait(1)
  60. MNotify:Destroy() end)
  61. end)
  62. clickfunction()
  63. end)
  64. end)
  65.  
  66. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement