Advertisement
MaxproGlitcher

Test Notif Max Version Test

Nov 25th, 2023
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. local key = Enum.KeyCode.L
  2. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Quad)
  3.  
  4. local main = Instance.new("ScreenGui")
  5. local Frame = Instance.new("Frame")
  6. local Bottom = Instance.new("Frame")
  7.  
  8. main.Name = "main"
  9. main.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  10. main.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  11. main.ResetOnSpawn = false
  12. main.Enabled = false
  13.  
  14. Frame.Parent = main
  15. Frame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  16. Frame.Position = UDim2.new(0, 0, -0.215, 0)
  17. Frame.Size = UDim2.new(1, 0, 0.209, 0)
  18.  
  19. Bottom.Parent = main
  20. Bottom.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  21. Bottom.Position = UDim2.new(0, 0, 1.05, 0)
  22. Bottom.Size = UDim2.new(1, 0, 0.209, 0)
  23.  
  24. local isUIVisible = false
  25. local debounce = false
  26.  
  27. local function toggleUIVisibility()
  28. if debounce then
  29. return
  30. end
  31.  
  32. debounce = true
  33. isUIVisible = not isUIVisible
  34.  
  35. local tweenGoalFrame = {}
  36. local tweenGoalBottom = {}
  37.  
  38. if isUIVisible then
  39. tweenGoalFrame.Position = UDim2.new(0, 0, -0.075, 0)
  40. tweenGoalBottom.Position = UDim2.new(0, 0, 0.835, 0)
  41. else
  42. tweenGoalFrame.Position = UDim2.new(0, 0, -0.215, 0)
  43. tweenGoalBottom.Position = UDim2.new(0, 0, 1.05, 0)
  44. end
  45.  
  46. local tweenFrame = game:GetService("TweenService"):Create(Frame, tweenInfo, tweenGoalFrame)
  47. local tweenBottom = game:GetService("TweenService"):Create(Bottom, tweenInfo, tweenGoalBottom)
  48.  
  49. tweenFrame:Play()
  50. tweenBottom:Play()
  51.  
  52. if not isUIVisible then
  53. tweenFrame.Completed:Connect(function()
  54. main.Enabled = false
  55. debounce = false
  56. end)
  57. else
  58. main.Enabled = true
  59. debounce = false
  60. end
  61. end
  62.  
  63. local function onKeyPress(input, gameProcessedEvent)
  64. if not gameProcessedEvent and input.KeyCode == key then
  65. toggleUIVisibility()
  66. end
  67. end
  68.  
  69. game:GetService("UserInputService").InputBegan:Connect(onKeyPress)
  70.  
  71. game.StarterGui:SetCore("SendNotification", {Title="Cinematic bars"; Text="L to toggle"; Duration=5;})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement