Advertisement
AutumnMoon88683

animation gui

Feb 22nd, 2025
448
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.10 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ZayasAnimationGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local ScrollingFrame = Instance.new("ScrollingFrame")
  9. local tem = Instance.new("TextButton")
  10. local UICorner = Instance.new("UICorner")
  11. local UIGridLayout = Instance.new("UIGridLayout")
  12. local TopBar = Instance.new("Frame")
  13. local GuiName = Instance.new("TextLabel")
  14. local UICorner_2 = Instance.new("UICorner")
  15. local UICorner_3 = Instance.new("UICorner")
  16. local Speed = Instance.new("TextBox")
  17. local Stop = Instance.new("TextButton")
  18. local all = Instance.new("TextButton")
  19.  
  20. --Properties:
  21.  
  22. ZayasAnimationGui.Name = "Zaya'sAnimationGui"
  23.  
  24. if game:GetService("CoreGui"):FindFirstChild("Zaya'sAnimationGui") then
  25.     game:GetService("CoreGui"):FindFirstChild("Zaya'sAnimationGui"):Destroy()
  26. end
  27.  
  28. ZayasAnimationGui.Parent = game:GetService("CoreGui")
  29.  
  30. Frame.Parent = ZayasAnimationGui
  31. Frame.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  32. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  33. Frame.BorderSizePixel = 0
  34. Frame.Position = UDim2.new(0.00589390984, 0, 0.263033181, 0)
  35. Frame.Size = UDim2.new(0, 250, 0, 400)
  36.  
  37. ScrollingFrame.Parent = Frame
  38. ScrollingFrame.Active = true
  39. ScrollingFrame.BackgroundColor3 = Color3.fromRGB(100, 100, 100)
  40. ScrollingFrame.BackgroundTransparency = 1.000
  41. ScrollingFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  42. ScrollingFrame.BorderSizePixel = 0
  43. ScrollingFrame.Position = UDim2.new(0.555999994, -122, 0.709999979, -246)
  44. ScrollingFrame.Size = UDim2.new(0, 214, 0, 356)
  45. ScrollingFrame.CanvasSize = UDim2.new(0, 0, 9999, 0)
  46. ScrollingFrame.ScrollBarThickness = 2
  47.  
  48. tem.Name = "tem"
  49. tem.Parent = ScrollingFrame
  50. tem.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  51. tem.BackgroundTransparency = 0.650
  52. tem.BorderColor3 = Color3.fromRGB(0, 0, 0)
  53. tem.BorderSizePixel = 0
  54. tem.Size = UDim2.new(0, 200, 0, 50)
  55. tem.Visible = false
  56. tem.Font = Enum.Font.Unknown
  57. tem.TextColor3 = Color3.fromRGB(255, 255, 255)
  58. tem.TextScaled = true
  59. tem.TextSize = 14.000
  60. tem.TextStrokeColor3 = Color3.fromRGB(108, 108, 108)
  61. tem.TextStrokeTransparency = 0.000
  62. tem.TextWrapped = true
  63.  
  64. UICorner.CornerRadius = UDim.new(0, 15)
  65. UICorner.Parent = tem
  66.  
  67. UIGridLayout.Parent = ScrollingFrame
  68. UIGridLayout.HorizontalAlignment = Enum.HorizontalAlignment.Center
  69. UIGridLayout.SortOrder = Enum.SortOrder.LayoutOrder
  70. UIGridLayout.CellPadding = UDim2.new(0, 3, 0, 3)
  71. UIGridLayout.FillDirectionMaxCells = 2
  72.  
  73. TopBar.Name = "TopBar"
  74. TopBar.Parent = Frame
  75. TopBar.BackgroundColor3 = Color3.fromRGB(43, 43, 43)
  76. TopBar.BorderColor3 = Color3.fromRGB(0, 0, 0)
  77. TopBar.BorderSizePixel = 0
  78. TopBar.Position = UDim2.new(0, 0, -0.0524999984, 0)
  79. TopBar.Size = UDim2.new(1, 0, -0.117500007, 100)
  80.  
  81. GuiName.Name = "GuiName"
  82. GuiName.Parent = TopBar
  83. GuiName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  84. GuiName.BackgroundTransparency = 1.000
  85. GuiName.BorderColor3 = Color3.fromRGB(0, 0, 0)
  86. GuiName.BorderSizePixel = 0
  87. GuiName.Position = UDim2.new(0.0680000037, 0, 0, 0)
  88. GuiName.Size = UDim2.new(0, 215, 0, 21)
  89. GuiName.Font = Enum.Font.GothamMedium
  90. GuiName.Text = "Zaya's Animation Gui"
  91. GuiName.TextColor3 = Color3.fromRGB(255, 255, 255)
  92. GuiName.TextScaled = true
  93. GuiName.TextSize = 14.000
  94. GuiName.TextStrokeTransparency = 0.000
  95. GuiName.TextWrapped = true
  96.  
  97. UICorner_2.CornerRadius = UDim.new(0, 12)
  98. UICorner_2.Parent = TopBar
  99.  
  100. UICorner_3.CornerRadius = UDim.new(0, 12)
  101. UICorner_3.Parent = Frame
  102.  
  103. Speed.Name = "Speed"
  104. Speed.Parent = Frame
  105. Speed.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  106. Speed.BackgroundTransparency = 0.950
  107. Speed.BorderColor3 = Color3.fromRGB(0, 0, 0)
  108. Speed.BorderSizePixel = 0
  109. Speed.Size = UDim2.new(1, 0, 0, 14)
  110. Speed.Font = Enum.Font.SourceSans
  111. Speed.PlaceholderText = "AnimationSpeed"
  112. Speed.Text = ""
  113. Speed.TextColor3 = Color3.fromRGB(0, 0, 0)
  114. Speed.TextScaled = true
  115. Speed.TextSize = 14.000
  116. Speed.TextWrapped = true
  117.  
  118. Stop.Name = "Stop"
  119. Stop.Parent = Frame
  120. Stop.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  121. Stop.BorderColor3 = Color3.fromRGB(0, 0, 0)
  122. Stop.BorderSizePixel = 0
  123. Stop.Position = UDim2.new(0, 0, 0.0350000001, 0)
  124. Stop.Size = UDim2.new(0, 120, 0, 18)
  125. Stop.Style = Enum.ButtonStyle.RobloxRoundButton
  126. Stop.Font = Enum.Font.SourceSans
  127. Stop.Text = "Stop Animations"
  128. Stop.TextColor3 = Color3.fromRGB(0, 0, 0)
  129. Stop.TextSize = 14.000
  130. Stop.TextWrapped = true
  131.  
  132. all.Name = "all"
  133. all.Parent = Frame
  134. all.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  135. all.BorderColor3 = Color3.fromRGB(0, 0, 0)
  136. all.BorderSizePixel = 0
  137. all.Position = UDim2.new(0.479999989, 0, 0.0350000001, 0)
  138. all.Size = UDim2.new(0, 120, 0, 18)
  139. all.Style = Enum.ButtonStyle.RobloxRoundButton
  140. all.Font = Enum.Font.SourceSans
  141. all.Text = "Play all Animations"
  142. all.TextColor3 = Color3.fromRGB(0, 0, 0)
  143. all.TextSize = 14.000
  144. all.TextWrapped = true
  145.  
  146. -- Scripts:
  147.  
  148. local function HUNLUC_fake_script() -- ZayasAnimationGui.Main
  149.     local script = Instance.new('LocalScript', ZayasAnimationGui)
  150.  
  151.     local frame = script.Parent.Frame
  152.    
  153.     local uis = game:GetService("UserInputService")
  154.    
  155.     local speed = frame:WaitForChild("Speed")
  156.    
  157.     local scroll = frame:WaitForChild("ScrollingFrame")
  158.    
  159.     local stop = frame:WaitForChild("Stop")
  160.    
  161.     local template = scroll:WaitForChild("tem")
  162.    
  163.     local lol = frame:WaitForChild("all")
  164.    
  165.     local IsScriptOn = true
  166.    
  167.     local plr = game.Players.LocalPlayer
  168.    
  169.     if IsScriptOn ~= true then return end
  170.    
  171.     local function GetAnimationName(AnimationId)
  172.         if IsScriptOn ~= true then return end
  173.         local MarketplaceService = game:GetService("MarketplaceService")
  174.         local Info = MarketplaceService:GetProductInfo(AnimationId,Enum.InfoType.Asset)
  175.         return Info.Name, AnimationId
  176.     end
  177.    
  178.     local function PlayAnimation(AnimationId)
  179.         if IsScriptOn ~= true then return end
  180.         local animation = Instance.new("Animation")
  181.         animation.AnimationId = "rbxassetid://"..AnimationId
  182.        
  183.         local track = plr.Character:FindFirstChildWhichIsA("Humanoid"):LoadAnimation(animation)
  184.         track.Looped = true
  185.         track:Play()
  186.     end
  187.    
  188.     local function SetAnimationSpeed(Speed)
  189.         if IsScriptOn ~= true then return end
  190.         local Char = plr.Character
  191.         local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")
  192.    
  193.         for i,v in next, Hum:GetPlayingAnimationTracks() do
  194.             v:AdjustSpeed(tonumber(Speed))
  195.         end
  196.     end
  197.    
  198.     local function CreateButton(AnimationId)
  199.         if IsScriptOn ~= true then return end
  200.         local c = template:Clone()
  201.         local Name,Id = GetAnimationName(AnimationId)
  202.         c.Name = Name
  203.         c.Text = Name
  204.         c.Visible = true
  205.         c.Parent = scroll
  206.         c.Activated:Connect(function()
  207.             PlayAnimation(Id)
  208.         end)
  209.     end
  210.    
  211.     local AnimationList = {10714390497,10713962506,14899979575,16572740012,18443237526,15679621440,4940563117,135876612109535,14352362059,18665811005,10714360343,85267023718407,10214319518,15963314052,10714016223,11309255148,16126469463,15505459811,16256203246,10714378156,10370362157,15122972413,18524313628,12507085924,10714330764,11444441914,17748314784,10713954623,18526288497,136831243854748,10714345862,10214311282,10714336041,17360699557,17000021306,134283166482394,14352343065,10714342957,10714388352,16584481352,12992262118,10714392151,11753474067,10717116749,14899980745,15698402762,10714068222,15609995579,10714101749,14352337694,5895324424,10713981723,10478338114,16553163212,15571453761,10714366910,10714375667,10714100539,10714374267,10714372526,15698404340,14352340648,12507084541,15392752812,15505456446,71243990877913,10714352930,10714065135,10713990381,10714349037,16646423316,15517864808,15693621070,15689279687,17746180844,11394033602,10714345459,10714386947,10714352626,10714395175,10713983178,10714347453,10714389396,10214314957,15549124879,10714340543,10714369325,10714069471,14022936101,16392075853,10714089137,14024642130,10714362852,10714003221,10714360164,16270690701,10370346995,6862001787,10370351535,18148804340,15392756794,107875941017127,15689278184,10714061912,10714293450,10713984554,129470135909814,10713957138,10714382225,10714072822,10714340558,10714393929,10713968716,10714074218,10714347256,16272432203,10714358528,10713992055,10714394082,10714392953,10714391240,10714383856,16215030041,15392759696,12507083048,12259826609,16302968986,4940561610,15517862739,10214317325,10275008655,10714371274,10713988674,10714066964,12259825026,11453082181,10714350889,10370353969,18225053113,13823324057,11444443576,10714392876,10714164866,10714382522,10714349738,17370775305,10714076981,10714365721,15505454268,80995190624232,15505458452,10714361543,10714364213,10714022275,10714174918,12804157977,10714063823,10714070681,14352335202,10714380563,18526362841,10714403700,10714377090,10714168145,10714389988,10714338461,10713966026,125064469983655,132748833449150,10714395441,10714374484,10714359093,10714356920}
  212.    
  213.     coroutine.resume(coroutine.create(function()
  214.         if IsScriptOn ~= true then return end
  215.         for i,v in pairs(AnimationList) do
  216.             CreateButton(v)
  217.         end
  218.     end))
  219.    
  220.     local function Buttons()
  221.         stop.Activated:Connect(function()
  222.             if IsScriptOn ~= true then return end
  223.             for i,v in pairs(plr.Character:FindFirstChildWhichIsA("Humanoid"):GetPlayingAnimationTracks()) do
  224.                 v:Stop()
  225.             end
  226.         end)
  227.    
  228.         speed.Changed:Connect(function()
  229.             if IsScriptOn ~= true then return end
  230.             if speed.Text == nil or speed.Text == "" then speed.Text = "1" end
  231.         end)
  232.    
  233.         lol.Activated:Connect(function()
  234.             if IsScriptOn ~= true then return end
  235.             for i,v in pairs(AnimationList) do
  236.                 PlayAnimation(v)
  237.             end
  238.         end)
  239.        
  240.         uis.InputBegan:Connect(function(a,c)
  241.             if IsScriptOn ~= true then return end
  242.             if c then return end
  243.             if a.KeyCode == Enum.KeyCode.F1 then
  244.                 IsScriptOn = false
  245.                 script.Parent:Destroy()
  246.             end
  247.         end)   
  248.        
  249.         while true do
  250.             wait()
  251.             if IsScriptOn ~= true then return end
  252.             SetAnimationSpeed(speed.Text)
  253.         end
  254.     end
  255.    
  256.     coroutine.wrap(Buttons)()
  257. end
  258. coroutine.wrap(HUNLUC_fake_script)()
  259. local function YEZIP_fake_script() -- Frame.UIDrag
  260.     local script = Instance.new('LocalScript', Frame)
  261.  
  262.     -- Made by Real_IceyDev (@lceyDex) --
  263.     -- Simple UI dragger (PC Only/Any device that has a mouse) --
  264.    
  265.     local UIS = game:GetService('UserInputService')
  266.     local frame = script.Parent
  267.     local dragToggle = nil
  268.     local dragSpeed = 0.25
  269.     local dragStart = nil
  270.     local startPos = nil
  271.    
  272.     local function updateInput(input)
  273.         local delta = input.Position - dragStart
  274.         local position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X,
  275.             startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  276.         game:GetService('TweenService'):Create(frame, TweenInfo.new(dragSpeed), {Position = position}):Play()
  277.     end
  278.    
  279.     frame.InputBegan:Connect(function(input)
  280.         if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) then
  281.             dragToggle = true
  282.             dragStart = input.Position
  283.             startPos = frame.Position
  284.             input.Changed:Connect(function()
  285.                 if input.UserInputState == Enum.UserInputState.End then
  286.                     dragToggle = false
  287.                 end
  288.             end)
  289.         end
  290.     end)
  291.    
  292.     UIS.InputChanged:Connect(function(input)
  293.         if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  294.             if dragToggle then
  295.                 updateInput(input)
  296.             end
  297.         end
  298.     end)
  299. end
  300. coroutine.wrap(YEZIP_fake_script)()
  301.  
Tags: #Fun @ROBLOX
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement