Lee_everitt

Untitled

May 21st, 2025
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.26 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local TweenService = game:GetService("TweenService")
  3. local UserInputService = game:GetService("UserInputService")
  4. local RunService = game:GetService("RunService")
  5.  
  6. local THEME = {
  7. BACKGROUND = Color3.fromRGB(20, 20, 20),
  8. SECONDARY = Color3.fromRGB(30, 30, 30),
  9. ACCENT = Color3.fromRGB(0, 200, 255),
  10. ACCENT_HOVER = Color3.fromRGB(0, 150, 255),
  11. TEXT = Color3.fromRGB(173, 216, 230),
  12. TEXT_SECONDARY = Color3.fromRGB(150, 150, 150),
  13. SUCCESS = Color3.fromRGB(0, 255, 100),
  14. ERROR = Color3.fromRGB(255, 50, 50),
  15. BORDER = Color3.fromRGB(50, 50, 50)
  16. }
  17.  
  18. local CONFIG = {
  19. GUI_WIDTH = 320,
  20. GUI_HEIGHT = 420,
  21. ENTRY_HEIGHT = 60,
  22. CORNER_RADIUS = 12,
  23. TWEEN_SPEED = 0.3,
  24. BORDER_THICKNESS = 1
  25. }
  26.  
  27. local function createTween(instance, properties, duration, style)
  28. if not instance then return end
  29. local tween = TweenService:Create(
  30. instance,
  31. TweenInfo.new(duration or CONFIG.TWEEN_SPEED, style or Enum.EasingStyle.Quad, Enum.EasingDirection.Out),
  32. properties
  33. )
  34. tween:Play()
  35. return tween
  36. end
  37.  
  38. local gui = Instance.new("ScreenGui")
  39. gui.Name = "Gta_" .. math.random(10000, 99999)
  40. gui.ResetOnSpawn = false
  41. gui.IgnoreGuiInset = true
  42. gui.Parent = Players.LocalPlayer:WaitForChild("PlayerGui")
  43.  
  44. local frame = Instance.new("Frame")
  45. frame.Size = UDim2.new(0, CONFIG.GUI_WIDTH, 0, CONFIG.GUI_HEIGHT)
  46. frame.Position = UDim2.new(0.5, -CONFIG.GUI_WIDTH / 2, 0.5, -CONFIG.GUI_HEIGHT / 2)
  47. frame.BackgroundColor3 = THEME.BACKGROUND
  48. frame.BackgroundTransparency = 1
  49. frame.BorderColor3 = THEME.BORDER
  50. frame.BorderSizePixel = CONFIG.BORDER_THICKNESS
  51. frame.ClipsDescendants = true
  52. frame.Parent = gui
  53.  
  54. local corner = Instance.new("UICorner")
  55. corner.CornerRadius = UDim.new(0, CONFIG.CORNER_RADIUS)
  56. corner.Parent = frame
  57.  
  58. local titleBar = Instance.new("Frame")
  59. titleBar.Size = UDim2.new(1, 0, 0, 50)
  60. titleBar.BackgroundTransparency = 1
  61. titleBar.Parent = frame
  62.  
  63. local title = Instance.new("TextLabel")
  64. title.Size = UDim2.new(1, -100, 0, 40)
  65. title.Position = UDim2.new(0, 15, 0, 5)
  66. title.BackgroundTransparency = 1
  67. title.Text = "lee's Anim Grabber!"
  68. title.TextColor3 = THEME.ACCENT
  69. title.TextSize = 24
  70. title.Font = Enum.Font.GothamBlack
  71. title.TextTransparency = 1
  72. title.TextXAlignment = Enum.TextXAlignment.Left
  73. title.Parent = titleBar
  74.  
  75. local buttonContainer = Instance.new("Frame")
  76. buttonContainer.Size = UDim2.new(0, 80, 0, 40)
  77. buttonContainer.Position = UDim2.new(1, -90, 0, 5)
  78. buttonContainer.BackgroundTransparency = 1
  79. buttonContainer.Parent = titleBar
  80.  
  81. local function createButton(properties)
  82. local button = Instance.new("TextButton")
  83. for prop, value in pairs(properties) do
  84. button[prop] = value
  85. end
  86. local corner = Instance.new("UICorner")
  87. corner.CornerRadius = UDim.new(0, 8)
  88. corner.Parent = button
  89. local border = Instance.new("UIStroke")
  90. border.Color = THEME.BORDER
  91. border.Thickness = 1
  92. border.Parent = button
  93. return button
  94. end
  95.  
  96. local clearButton = createButton({
  97. Text = "Clear",
  98. Font = Enum.Font.GothamBold,
  99. TextSize = 14,
  100. Size = UDim2.new(0, 40, 0, 30),
  101. Position = UDim2.new(0, 0, 0, 5),
  102. BackgroundColor3 = THEME.SECONDARY,
  103. BackgroundTransparency = 0.9,
  104. TextColor3 = THEME.ACCENT,
  105. TextTransparency = 1,
  106. AutoButtonColor = false,
  107. Parent = buttonContainer
  108. })
  109.  
  110. local closeButton = createButton({
  111. Text = "X",
  112. Font = Enum.Font.GothamBold,
  113. TextSize = 16,
  114. Size = UDim2.new(0, 30, 0, 30),
  115. Position = UDim2.new(1, -35, 0, 5),
  116. BackgroundColor3 = THEME.SECONDARY,
  117. BackgroundTransparency = 0.9,
  118. TextColor3 = THEME.ACCENT,
  119. TextTransparency = 1,
  120. AutoButtonColor = false,
  121. Parent = buttonContainer
  122. })
  123.  
  124. local scrollFrame = Instance.new("ScrollingFrame")
  125. scrollFrame.Position = UDim2.new(0, 10, 0, 60)
  126. scrollFrame.Size = UDim2.new(1, -20, 1, -70)
  127. scrollFrame.BackgroundTransparency = 1
  128. scrollFrame.ScrollBarThickness = 4
  129. scrollFrame.ScrollBarImageColor3 = THEME.ACCENT
  130. scrollFrame.ScrollBarImageTransparency = 0.5
  131. scrollFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  132. scrollFrame.Parent = frame
  133.  
  134. local listLayout = Instance.new("UIListLayout")
  135. listLayout.Padding = UDim.new(0, 8)
  136. listLayout.Parent = scrollFrame
  137.  
  138. local loggedAnimations = {}
  139.  
  140. local function createLogEntry(track)
  141. local animId = track.Animation.AnimationId
  142. if loggedAnimations[animId] then return end
  143. loggedAnimations[animId] = true
  144.  
  145. local entry = Instance.new("Frame")
  146. entry.Size = UDim2.new(1, 0, 0, CONFIG.ENTRY_HEIGHT)
  147. entry.BackgroundColor3 = THEME.SECONDARY
  148. entry.BackgroundTransparency = 0.9
  149. entry.Parent = scrollFrame
  150.  
  151. local corner = Instance.new("UICorner")
  152. corner.CornerRadius = UDim.new(0, 8)
  153. corner.Parent = entry
  154. local border = Instance.new("UIStroke")
  155. border.Color = THEME.BORDER
  156. border.Thickness = 1
  157. border.Transparency = 1
  158. border.Parent = entry
  159.  
  160. local animName = Instance.new("TextLabel")
  161. animName.Text = track.Animation.Name or "Unknown Animation"
  162. animName.Font = Enum.Font.GothamBold
  163. animName.TextSize = 16
  164. animName.Size = UDim2.new(0, 200, 0, 24)
  165. animName.Position = UDim2.new(0, 15, 0, 10)
  166. animName.BackgroundTransparency = 1
  167. animName.TextColor3 = THEME.TEXT
  168. animName.TextXAlignment = Enum.TextXAlignment.Left
  169. animName.TextTransparency = 1
  170. animName.TextTruncate = Enum.TextTruncate.AtEnd
  171. animName.Parent = entry
  172.  
  173. local idLabel = Instance.new("TextLabel")
  174. idLabel.Text = animId:match("rbxassetid://(.+)") or animId
  175. idLabel.Font = Enum.Font.Gotham
  176. idLabel.TextSize = 12
  177. idLabel.Size = UDim2.new(0, 200, 0, 18)
  178. idLabel.Position = UDim2.new(0, 15, 0, 34)
  179. idLabel.BackgroundTransparency = 1
  180. idLabel.TextColor3 = THEME.TEXT_SECONDARY
  181. idLabel.TextXAlignment = Enum.TextXAlignment.Left
  182. idLabel.TextTransparency = 1
  183. idLabel.TextTruncate = Enum.TextTruncate.AtEnd
  184. idLabel.Parent = entry
  185.  
  186. local copyButton = createButton({
  187. Text = "Copy",
  188. Font = Enum.Font.GothamBold,
  189. TextSize = 12,
  190. Size = UDim2.new(0, 60, 0, 28),
  191. Position = UDim2.new(1, -70, 0.5, -14),
  192. BackgroundColor3 = THEME.SECONDARY,
  193. BackgroundTransparency = 0.9,
  194. TextColor3 = THEME.ACCENT,
  195. TextTransparency = 1,
  196. AutoButtonColor = false,
  197. Parent = entry,
  198. Name = "Copy"
  199. })
  200.  
  201. createTween(entry, {BackgroundTransparency = 0.2}, 0.5)
  202. createTween(entry:FindFirstChildOfClass("UIStroke"), {Transparency = 0}, 0.5)
  203. createTween(animName, {TextTransparency = 0}, 0.5)
  204. createTween(idLabel, {TextTransparency = 0.2}, 0.5)
  205. createTween(copyButton, {BackgroundTransparency = 0.7, TextTransparency = 0}, 0.5)
  206. createTween(copyButton:FindFirstChildOfClass("UIStroke"), {Transparency = 0}, 0.5)
  207.  
  208. local function addHover(button)
  209. button.MouseEnter:Connect(function()
  210. createTween(button, {BackgroundColor3 = THEME.ACCENT_HOVER, BackgroundTransparency = 0.7, TextColor3 = Color3.fromRGB(255, 255, 255)})
  211. createTween(button:FindFirstChildOfClass("UIStroke"), {Transparency = 0.7}, 0.2)
  212. end)
  213. button.MouseLeave:Connect(function()
  214. createTween(button, {BackgroundColor3 = THEME.SECONDARY, BackgroundTransparency = 0.9, TextColor3 = THEME.ACCENT})
  215. createTween(button:FindFirstChildOfClass("UIStroke"), {Transparency = 0}, 0.2)
  216. end)
  217. end
  218.  
  219. addHover(copyButton)
  220.  
  221. copyButton.MouseButton1Click:Connect(function()
  222. setclipboard(animId:match("%d+"))
  223. createTween(copyButton, {BackgroundColor3 = THEME.SUCCESS, TextColor3 = Color3.fromRGB(255, 255, 255)})
  224. createTween(copyButton:FindFirstChildOfClass("UIStroke"), {Transparency = 0.7}, 0.2)
  225. task.wait(0.7)
  226. createTween(copyButton, {BackgroundColor3 = THEME.SECONDARY, BackgroundTransparency = 0.9, TextColor3 = THEME.ACCENT})
  227. createTween(copyButton:FindFirstChildOfClass("UIStroke"), {Transparency = 0}, 0.2)
  228. end)
  229.  
  230. scrollFrame.CanvasSize = UDim2.new(0, 0, 0, listLayout.AbsoluteContentSize.Y)
  231. end
  232.  
  233. local function hookCharacter(char)
  234. local humanoid = char:WaitForChild("Humanoid")
  235. local animator = humanoid:WaitForChild("Animator")
  236. animator.AnimationPlayed:Connect(createLogEntry)
  237. end
  238.  
  239. local player = Players.LocalPlayer
  240. if player.Character then hookCharacter(player.Character) end
  241. player.CharacterAdded:Connect(hookCharacter)
  242.  
  243. local dragging, dragStart, startPos, dragInput
  244.  
  245. titleBar.InputBegan:Connect(function(input)
  246. if input.UserInputType == Enum.UserInputType.MouseButton1 or
  247. input.UserInputType == Enum.UserInputType.Touch then
  248. dragging = true
  249. dragStart = input.Position
  250. startPos = frame.Position
  251. input.Changed:Connect(function()
  252. if input.UserInputState == Enum.UserInputState.End then
  253. dragging = false
  254. end
  255. end)
  256. end
  257. end)
  258.  
  259. UserInputService.InputChanged:Connect(function(input)
  260. if input.UserInputType == Enum.UserInputType.MouseMovement or
  261. input.UserInputType == Enum.UserInputType.Touch then
  262. dragInput = input
  263. end
  264. end)
  265.  
  266. RunService.RenderStepped:Connect(function()
  267. if dragging and dragInput then
  268. local delta = dragInput.Position - dragStart
  269. createTween(frame, {
  270. Position = UDim2.new(
  271. startPos.X.Scale,
  272. startPos.X.Offset + delta.X,
  273. startPos.Y.Scale,
  274. startPos.Y.Offset + delta.Y
  275. )
  276. }, 0.1, Enum.EasingStyle.Sine)
  277. end
  278. end)
  279.  
  280. local function addHover(button)
  281. button.MouseEnter:Connect(function()
  282. createTween(button, {BackgroundColor3 = THEME.ACCENT_HOVER, BackgroundTransparency = 0.7, TextColor3 = Color3.fromRGB(255, 255, 255)})
  283. createTween(button:FindFirstChildOfClass("UIStroke"), {Transparency = 0.7}, 0.2)
  284. end)
  285. button.MouseLeave:Connect(function()
  286. createTween(button, {BackgroundColor3 = THEME.SECONDARY, BackgroundTransparency = 0.9, TextColor3 = THEME.ACCENT})
  287. createTween(button:FindFirstChildOfClass("UIStroke"), {Transparency = 0}, 0.2)
  288. end)
  289. end
  290.  
  291. addHover(clearButton)
  292. addHover(closeButton)
  293.  
  294. clearButton.MouseButton1Click:Connect(function()
  295. for _, child in ipairs(scrollFrame:GetChildren()) do
  296. if child:IsA("Frame") then
  297. createTween(child, {BackgroundTransparency = 1, Position = UDim2.new(1, 0, child.Position.Y.Scale, child.Position.Y.Offset)}, 0.3)
  298. createTween(child:FindFirstChildOfClass("UIStroke"), {Transparency = 1}, 0.3)
  299. for _, element in ipairs(child:GetChildren()) do
  300. if element:IsA("TextLabel") then
  301. createTween(element, {TextTransparency = 1}, 0.3)
  302. elseif element:IsA("TextButton") and element.Name == "Copy" then
  303. createTween(element, {TextTransparency = 1, BackgroundTransparency = 1}, 0.3)
  304. createTween(element:FindFirstChildOfClass("UIStroke"), {Transparency = 1}, 0.3)
  305. end
  306. end
  307. task.delay(0.3, function()
  308. if child and child.Parent then
  309. child:Destroy()
  310. end
  311. end)
  312. end
  313. end
  314. loggedAnimations = {}
  315. end)
  316.  
  317. closeButton.MouseButton1Click:Connect(function()
  318. createTween(frame, {BackgroundTransparency = 1}, 0.5)
  319. createTween(frame:FindFirstChildOfClass("UIStroke"), {Transparency = 1}, 0.5)
  320. createTween(title, {TextTransparency = 1}, 0.5)
  321. createTween(clearButton, {BackgroundTransparency = 1, TextTransparency = 1}, 0.5)
  322. createTween(clearButton:FindFirstChildOfClass("UIStroke"), {Transparency = 1}, 0.5)
  323. createTween(closeButton, {BackgroundTransparency = 1, TextTransparency = 1}, 0.5)
  324. createTween(closeButton:FindFirstChildOfClass("UIStroke"), {Transparency = 1}, 0.5)
  325. for _, child in ipairs(scrollFrame:GetChildren()) do
  326. if child:IsA("Frame") then
  327. createTween(child, {BackgroundTransparency = 1}, 0.5)
  328. createTween(child:FindFirstChildOfClass("UIStroke"), {Transparency = 1}, 0.5)
  329. for _, element in ipairs(child:GetChildren()) do
  330. if element:IsA("TextLabel") then
  331. createTween(element, {TextTransparency = 1}, 0.5)
  332. elseif element:IsA("TextButton") and element.Name == "Copy" then
  333. createTween(element, {TextTransparency = 1, BackgroundTransparency = 1}, 0.5)
  334. createTween(element:FindFirstChildOfClass("UIStroke"), {Transparency = 1}, 0.5)
  335. end
  336. end
  337. end
  338. end
  339. task.wait(0.5)
  340. gui:Destroy()
  341. end)
  342.  
  343. createTween(frame, {BackgroundTransparency = 0.2}, 0.5)
  344. createTween(frame:FindFirstChildOfClass("UIStroke"), {Transparency = 0}, 0.5)
  345. createTween(title, {TextTransparency = 0}, 0.5)
  346. createTween(clearButton, {BackgroundTransparency = 0.9, TextTransparency = 0}, 0.5)
  347. createTween(clearButton:FindFirstChildOfClass("UIStroke"), {Transparency = 0}, 0.5)
  348. createTween(closeButton, {BackgroundTransparency = 0.9, TextTransparency = 0}, 0.5)
  349. createTween(closeButton:FindFirstChildOfClass("UIStroke"), {Transparency = 0}, 0.5)
Advertisement
Add Comment
Please, Sign In to add comment