Advertisement
kill21_2

Раш идет

May 24th, 2025
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 KB | None | 0 0
  1. -- RushMoving Detector with Beautiful GUI
  2. -- By YourName
  3.  
  4. local Players = game:GetService("Players")
  5. local LocalPlayer = Players.LocalPlayer
  6. local PlayerGui = LocalPlayer:WaitForChild("PlayerGui")
  7.  
  8. -- Create main screen GUI
  9. local RushNotifier = Instance.new("ScreenGui")
  10. RushNotifier.Name = "RushNotifier"
  11. RushNotifier.ResetOnSpawn = false
  12. RushNotifier.ZIndexBehavior = Enum.ZIndexBehavior.Global
  13. RushNotifier.Parent = PlayerGui
  14.  
  15. -- Notification frame
  16. local Notification = Instance.new("Frame")
  17. Notification.Name = "Notification"
  18. Notification.AnchorPoint = Vector2.new(0.5, 0.5)
  19. Notification.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  20. Notification.BackgroundTransparency = 0.2
  21. Notification.BorderSizePixel = 0
  22. Notification.Position = UDim2.new(0.5, 0, 0.2, -100)
  23. Notification.Size = UDim2.new(0, 0, 0, 0)
  24. Notification.Visible = false
  25. Notification.Parent = RushNotifier
  26.  
  27. -- Corner rounding
  28. local UICorner = Instance.new("UICorner")
  29. UICorner.CornerRadius = UDim.new(0, 12)
  30. UICorner.Parent = Notification
  31.  
  32. -- Glow effect
  33. local UIStroke = Instance.new("UIStroke")
  34. UIStroke.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  35. UIStroke.Color = Color3.fromRGB(255, 50, 50)
  36. UIStroke.LineJoinMode = Enum.LineJoinMode.Round
  37. UIStroke.Thickness = 3
  38. UIStroke.Transparency = 0.7
  39. UIStroke.Parent = Notification
  40.  
  41. -- Title text
  42. local Title = Instance.new("TextLabel")
  43. Title.Name = "Title"
  44. Title.Font = Enum.Font.GothamBlack
  45. Title.Text = "РАШ ВНИМАНИЯ!"
  46. Title.TextColor3 = Color3.fromRGB(255, 50, 50)
  47. Title.TextScaled = true
  48. Title.TextSize = 24
  49. Title.TextWrapped = true
  50. Title.BackgroundTransparency = 1
  51. Title.Position = UDim2.new(0.5, 0, 0.2, 0)
  52. Title.Size = UDim2.new(0.9, 0, 0.2, 0)
  53. Title.AnchorPoint = Vector2.new(0.5, 0.5)
  54. Title.Visible = false
  55. Title.Parent = Notification
  56.  
  57. -- Description text
  58. local Description = Instance.new("TextLabel")
  59. Description.Name = "Description"
  60. Description.Font = Enum.Font.GothamMedium
  61. Description.Text = "Раш бежит!"
  62. Description.TextColor3 = Color3.fromRGB(255, 255, 255)
  63. Description.TextScaled = true
  64. Description.TextSize = 18
  65. Description.TextWrapped = true
  66. Description.BackgroundTransparency = 1
  67. Description.Position = UDim2.new(0.5, 0, 0.5, 0)
  68. Description.Size = UDim2.new(0.8, 0, 0.4, 0)
  69. Description.AnchorPoint = Vector2.new(0.5, 0.5)
  70. Description.Visible = false
  71. Description.Parent = Notification
  72.  
  73. -- Icon (skull for danger)
  74. local Icon = Instance.new("ImageLabel")
  75. Icon.Name = "Icon"
  76. Icon.Image = "rbxassetid://7733960981" -- Skull icon (replace with your preferred image)
  77. Icon.BackgroundTransparency = 1
  78. Icon.Position = UDim2.new(0.5, 0, -0.2, 0)
  79. Icon.Size = UDim2.new(0, 80, 0, 80)
  80. Icon.AnchorPoint = Vector2.new(0.5, 0.5)
  81. Icon.Visible = false
  82. Icon.Parent = Notification
  83.  
  84. -- Pulse animation function
  85. local function pulseAnimation()
  86. local pulseIn = game:GetService("TweenService"):Create(
  87. Icon,
  88. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  89. {Size = UDim2.new(0, 100, 0, 100)}
  90. )
  91.  
  92. local pulseOut = game:GetService("TweenService"):Create(
  93. Icon,
  94. TweenInfo.new(0.5, Enum.EasingStyle.Quad, Enum.EasingDirection.In),
  95. {Size = UDim2.new(0, 80, 0, 80)}
  96. )
  97.  
  98. while true do
  99. pulseIn:Play()
  100. pulseIn.Completed:Wait()
  101. pulseOut:Play()
  102. pulseOut.Completed:Wait()
  103. wait(2) -- Wait 2 seconds between pulses
  104. end
  105. end
  106.  
  107. -- Show notification function
  108. local function showNotification()
  109. -- Play sound effect
  110. local sound = Instance.new("Sound")
  111. sound.SoundId = "rbxassetid://9114260401" -- Alarm sound
  112. sound.Volume = 0.5
  113. sound.Parent = Notification
  114. sound:Play()
  115.  
  116. -- Make notification visible
  117. Notification.Visible = true
  118. Title.Visible = true
  119. Description.Visible = true
  120. Icon.Visible = true
  121.  
  122. -- Animation sequence
  123. local ts = game:GetService("TweenService")
  124.  
  125. -- Expand notification
  126. local expand = ts:Create(
  127. Notification,
  128. TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out),
  129. {Size = UDim2.new(0, 300, 0, 150)}
  130. )
  131. expand:Play()
  132.  
  133. -- Fade in stroke
  134. local strokeFadeIn = ts:Create(
  135. UIStroke,
  136. TweenInfo.new(0.3),
  137. {Transparency = 0}
  138. )
  139. strokeFadeIn:Play()
  140.  
  141. -- Start pulse animation in a separate thread
  142. coroutine.wrap(pulseAnimation)()
  143.  
  144. -- Wait 5 seconds
  145. wait(5)
  146.  
  147. -- Shrink notification
  148. local shrink = ts:Create(
  149. Notification,
  150. TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.In),
  151. {Size = UDim2.new(0, 0, 0, 0)}
  152. )
  153. shrink:Play()
  154.  
  155. -- Fade out stroke
  156. local strokeFadeOut = ts:Create(
  157. UIStroke,
  158. TweenInfo.new(0.3),
  159. {Transparency = 0.7}
  160. )
  161. strokeFadeOut:Play()
  162.  
  163. -- Hide elements after animation
  164. shrink.Completed:Wait()
  165. Notification.Visible = false
  166. Title.Visible = false
  167. Description.Visible = false
  168. Icon.Visible = false
  169. end
  170.  
  171. -- Check for RushMoving in Workspace
  172. local function checkForRushMoving()
  173. while true do
  174. local rush = game:GetService("Workspace"):FindFirstChild("RushMoving")
  175. if rush then
  176. showNotification()
  177. -- Wait until RushMoving is gone before checking again
  178. rush:GetPropertyChangedSignal("Parent"):Wait()
  179. end
  180. wait(0.5) -- Check every 0.5 seconds
  181. end
  182. end
  183.  
  184. -- Start the detector
  185. coroutine.wrap(checkForRushMoving)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement