Advertisement
NoTextForSpeech

fixed by chatgpt for solara

May 20th, 2024
597
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.35 KB | None | 0 0
  1. --[[
  2. WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
  3. ]]
  4. -- This script made by WaveStorag and ChatGPT
  5. local gui = Instance.new("ScreenGui")
  6. gui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  7.  
  8. local frame = Instance.new("Frame")
  9. frame.Size = UDim2.new(0.3, 0, 0.4, 0)
  10. frame.Position = UDim2.new(0.35, 0, 0.3, 0)
  11. frame.BackgroundColor3 = Color3.new(0, 0, 0)
  12. frame.BorderSizePixel = 0 -- Remove border
  13. frame.Parent = gui
  14.  
  15. frame.Draggable = true
  16. frame.Active = true
  17.  
  18. local topBar = Instance.new("Frame")
  19. topBar.Size = UDim2.new(1, 0, 0, 30)
  20. topBar.BackgroundColor3 = Color3.new(0.3, 0.3, 0.3)
  21. topBar.BorderSizePixel = 0 -- Remove border
  22. topBar.Parent = frame
  23.  
  24. local titleLabel = Instance.new("TextLabel")
  25. titleLabel.Size = UDim2.new(1, -140, 1, 0)
  26. titleLabel.Position = UDim2.new(0, 0, 0, 0)
  27. titleLabel.BackgroundTransparency = 1
  28. titleLabel.Text = "Animation Logger"
  29. titleLabel.Font = Enum.Font.SourceSans
  30. titleLabel.TextColor3 = Color3.new(1, 1, 1)
  31. titleLabel.TextSize = 20
  32. titleLabel.Parent = topBar
  33.  
  34. local clearButton = Instance.new("TextButton")
  35. clearButton.Size = UDim2.new(0, 60, 0, 30)
  36. clearButton.Position = UDim2.new(1, -140, 0, 0)
  37. clearButton.BackgroundColor3 = Color3.new(1, 0, 0)
  38. clearButton.Text = "Clear All"
  39. clearButton.TextColor3 = Color3.new(1, 1, 1)
  40. clearButton.TextSize = 19
  41. clearButton.Font = Enum.Font.SourceSans
  42. clearButton.BackgroundTransparency = 1
  43. clearButton.Parent = topBar
  44.  
  45. local scrollFrame = Instance.new("ScrollingFrame")
  46. scrollFrame.Size = UDim2.new(1, 0, 1, -30)
  47. scrollFrame.Position = UDim2.new(0, 0, 0, 30)
  48. scrollFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  49. scrollFrame.ScrollBarThickness = 10
  50. scrollFrame.Parent = frame
  51. scrollFrame.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  52.  
  53. local logLayout = Instance.new("UIListLayout")
  54. logLayout.Parent = scrollFrame
  55. logLayout.SortOrder = Enum.SortOrder.LayoutOrder
  56.  
  57. local loggedAnimations = {}
  58.  
  59. local function logAnimation(animationName, animationId)
  60. if loggedAnimations[animationId] then
  61. return -- Animation already logged, exit function
  62. end
  63.  
  64. loggedAnimations[animationId] = true -- Mark animation as logged
  65.  
  66. local logEntry = Instance.new("TextButton")
  67. logEntry.Size = UDim2.new(1, -10, 0, 60) -- Increased height to accommodate both name and ID
  68. logEntry.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  69. logEntry.Text = string.format("%s\nAnimation ID: %s", animationName, animationId) -- Display animation name and ID
  70. logEntry.TextWrapped = true -- Wrap text to fit within button
  71. logEntry.Font = Enum.Font.SourceSans
  72. logEntry.TextColor3 = Color3.new(1, 1, 1)
  73. logEntry.TextSize = 18
  74. logEntry.Parent = scrollFrame
  75.  
  76. logEntry.MouseButton1Click:Connect(function()
  77. setclipboard(animationId)
  78. end)
  79.  
  80. scrollFrame.CanvasSize = UDim2.new(0, 0, 0, logLayout.AbsoluteContentSize.Y)
  81. end
  82.  
  83. logLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(function()
  84. scrollFrame.CanvasSize = UDim2.new(0, 0, 0, logLayout.AbsoluteContentSize.Y)
  85. end)
  86.  
  87. local function onAnimationPlayed(animationTrack)
  88. local animation = animationTrack.Animation
  89. if animation then
  90. local animationId = animation.AnimationId
  91. local animationName = animation.Name or "Unknown Animation"
  92. logAnimation(animationName, animationId)
  93. end
  94. end
  95.  
  96. local function trackPlayerAnimations()
  97. local player = game.Players.LocalPlayer
  98. local character = player.Character or player.CharacterAdded:Wait()
  99. local humanoid = character:WaitForChild("Humanoid")
  100.  
  101. humanoid.AnimationPlayed:Connect(onAnimationPlayed)
  102. end
  103.  
  104. trackPlayerAnimations()
  105.  
  106. clearButton.MouseButton1Click:Connect(function()
  107. for _, child in ipairs(scrollFrame:GetChildren()) do
  108. if child:IsA("TextButton") then
  109. child:Destroy()
  110. end
  111. end
  112. loggedAnimations = {}
  113. scrollFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  114. end)
  115.  
  116. local xButton = Instance.new("TextButton")
  117. xButton.Size = UDim2.new(0, 30, 0, 30)
  118. xButton.Position = UDim2.new(1, -30, 0, 0)
  119. xButton.BackgroundColor3 = Color3.new(1, 0, 0)
  120. xButton.Text = "X"
  121. xButton.TextColor3 = Color3.new(1, 1, 1)
  122. xButton.TextSize = 24
  123. xButton.Font = Enum.Font.SourceSans
  124. xButton.BackgroundTransparency = 1
  125. xButton.Parent = topBar
  126.  
  127. xButton.MouseButton1Click:Connect(function()
  128. gui:Destroy()
  129. end)
  130.  
  131. local minimizeButton = Instance.new("TextButton")
  132. minimizeButton.Size = UDim2.new(0, 30, 0, 30)
  133. minimizeButton.Position = UDim2.new(1, -60, 0, 0)
  134. minimizeButton.BackgroundColor3 = Color3.new(0, 0, 1)
  135. minimizeButton.Text = "–"
  136. minimizeButton.TextColor3 = Color3.new(1, 1, 1)
  137. minimizeButton.TextSize = 24
  138. minimizeButton.Font = Enum.Font.SourceSans
  139. minimizeButton.BackgroundTransparency = 1
  140. minimizeButton.Parent = topBar
  141.  
  142. -- Functionality to minimize/maximize the GUI when minimize button is clicked
  143. local isMinimized = false
  144. local originalSize = frame.Size
  145. minimizeButton.MouseButton1Click:Connect(function()
  146. isMinimized = not isMinimized
  147. if isMinimized then
  148. minimizeButton.Text = "+"
  149. frame.Size = UDim2.new(originalSize.X.Scale, originalSize.X.Offset, 0, 30) -- Minimized size
  150. scrollFrame.Visible = false
  151. else
  152. minimizeButton.Text = "–"
  153. frame.Size = originalSize -- Restore to original size
  154. scrollFrame.Visible = true
  155. end
  156. end)
  157.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement