Advertisement
Gokuiscool23

Tsb anim gui

Sep 2nd, 2024 (edited)
1,329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.46 KB | None | 0 0
  1. -- Define Animation IDs
  2. local AnimationIds = {
  3. -- Dummy
  4. ["DummyAttackVictim"] = "18717298618",
  5. ["DummyAttack"] = "18440389930",
  6.  
  7. -- Genos
  8. ["GenosSpawn"] = "18716464560",
  9. ["GenosWallCombo"] = "18716485513",
  10. ["GenosWallComboVictim"] = "18716505052",
  11. ["GenosM1"] = "18716472014,18716475828,18716477298,18716478642",
  12. ["GenosIgnitionBurst"] = "18716481342",
  13. ["GenosMachineGunBlows"] = "18716470698",
  14. ["GenosBlitzShot"] = "12618271998",
  15. ["GenosJetDrive"] = "12684390285",
  16. ["GenosJetDriveLand"] = "12684185971",
  17. ["GenosAwk"] = "18778839005",
  18. ["GenosAwkThunderKick"] = "14721837245",
  19. ["GenosAwkSpeedblitzDropkick"] = "12832505612",
  20. ["GenosAwkFlamewaveCannon"] = "13083332742",
  21. ["GenosAwkIncinerate"] = "13146710762",
  22. ["Attract"] = "13560306510",
  23. ["Repulse"] = "13073745835",
  24. ["Erase"] = "13071982935",
  25. ["AttractInfinityActive"] = "15121659862",
  26. ["AttractLoopInfinityActive"] = "15125307874",
  27. ["AttractEndInfinityActive"] = "15124762088",
  28.  
  29. -- Sorcerer
  30. ["SorcererWallCombo"] = "18903642853",
  31. ["SorcererWallComboVictim"] = "18903644685",
  32.  
  33. -- Death
  34. ["Death"] = "18894511179",
  35.  
  36. -- Claws
  37. ["LeftClawAttack"] = "18893408267",
  38. ["RightClawAttack"] = "18893391798",
  39.  
  40. -- Movement
  41. ["Spawn"] = "18893355822",
  42. ["WalkBackwards"] = "18893363004",
  43. ["WalkForward"] = "18893366575",
  44. ["WalkLeft"] = "18893369850",
  45. ["WalkRight"] = "18893372474",
  46. ["Idle"] = "18893376101",
  47. ["RotateLeft"] = "18893378722",
  48. ["RotateRight"] = "18893381474",
  49. ["RightClaw1"] = "18893388903",
  50. ["LeftClaw1"] = "18893395278",
  51. ["LeftClawSlash"] = "18893399479",
  52. ["AcidSpit"] = "18893403844",
  53. ["BodySlam"] = "18893412159",
  54. ["MultiAttack"] = "18893415339",
  55. ["Jump"] = "18893417968",
  56. ["Beam"] = "18893419896",
  57. ["Stagger2"] = "18893477234",
  58. ["Stunned"] = "18894271262",
  59.  
  60. -- Atomic
  61. ["AtomicSpawn"] = "18716865654",
  62. ["AtomicWallCombo"] = "18716867254",
  63. ["AtomicWallComboVictim"] = "18716944734",
  64. ["AtomicBlock"] = "18716869912",
  65. ["AtomicM1"] = "15259161390,15240216931,15240176873,15162694192",
  66. ["AtomicPinpointCut"] = "18716871856",
  67. ["AtomicPinpointCutVictim"] = "18716974191",
  68. ["AtomicPinpointCutFinisher"] = "15436465829",
  69. ["AtomicPinpointCutAirVariantFinisher"] = "15436668469",
  70. ["AtomicQuickSlice"] = "15290930205",
  71. ["AtomicAtmosCleave"] = "15145462680",
  72. ["AtomicAtmosCleaveFinisher"] = "15279910941",
  73. ["AtomicAtmosCleaveVictim"] = "18716941238",
  74. ["AtomicRunSwordHand"] = "13379404053",
  75. ["AtomicSplitSecondCounter"] = "15334974550",
  76. ["AtomicSplitSecondCounterMiss"] = "15311685628",
  77. ["AtomicSplitSecondCounterVictim"] = "18716935181",
  78. ["AtomicAwk"] = "18716880183",
  79. ["AtomicSunrise"] = "18716884610",
  80. ["AtomicSunriseVictim"] = "18716952942",
  81. ["AtomicAtomicSlash"] = "18716893399",
  82. ["AtomicAtomicSlashLand"] = "18716897393",
  83. ["AtomicAtomicSlashVictim"] = "18716949989",
  84. ["AtomicSunset"] = "15520132233",
  85. ["AtomicSunsetVictim"] = "18716961861",
  86. ["AtomicSolarCleave"] = "15676072469",
  87.  
  88. -- Tatsumaki
  89. ["TatsumakiSpawn"] = "18717022527",
  90. ["TatsumakiWallCombo"] = "18717027887",
  91. ["TatsumakiWallComboVictim"] = "16310732064",
  92. ["TatsumakiM1"] = "16515503507,16515520431,16515448089,16552234590",
  93. ["TatsumakiWindstorm"] = "18717029694",
  94. ["TatsumakiStoneCoffin"] = "18717024196",
  95. ["TatsumakiStoneCoffinFinisher"] = "18717025535",
  96. ["TatsumakiCrashingPullAir"] = "18717031831",
  97. ["TatsumakiCrashingPull"] = "16139108718",
  98. ["TatsumakiCrashingPullFinisher"] = "18717033246",
  99. ["TatsumakiExpulsivePushFail"] = "16597322398",
  100. ["TatsumakiExpulsivePush"] = "16597912086",
  101. ["TatsumakiExpulsivePushFinisher"] = "16699717165",
  102. ["TatsumakiExpulsivePushFinisherVictim"] = "16699365893",
  103. ["TatsumakiAwk"] = "18717034991",
  104. ["TatsumakiCosmicStrike"] = "16737255386",
  105. ["TatsumakiPsychicRicochet"] = "17464644182",
  106. ["TatsumakiPsychicRicochetVictim"] = "17466449380",
  107. ["TatsumakiTerribleTornado"] = "17571752869",
  108. ["TatsumakiTerribleTornadoVictim"] = "17534979975",
  109. ["TerribleTornadoMissedUse"] = "17534631905",
  110. ["TatsumakiSkySnatcherFail"] = "17860467628",
  111. ["TatsumakiSkySnatcher"] = "17889080495",
  112. ["TatsumakiSkySnatcherVictim"] = "17889083042",
  113. ["TatsumakiSeismicFistHandAnim"] = "18717089928",
  114.  
  115. -- Metal Bat
  116. ["MetalBatSpawn"] = "18716634245",
  117. ["MetalBatWallCombo"] = "18716750744",
  118. ["MetalBatWallComboVictim"] = "18716782310",
  119. ["MetalBatBlock"] = "18716638776",
  120. ["MetalBatM1"] = "18716641152,18716644788,18716646083,18716647575",
  121. ["MetalBatGrandSlam"] = "18716650993",
  122. ["MetalBatGrandSlamAir"] = "18716655757",
  123. ["MetalBatGrandSlamHitFloor"] = "18716657427",
  124. ["MetalBatGrandSlamAirFinisher"] = "18716690247",
  125. ["MetalBatGrandSlamAirFinisherVictim"] = "18716777568",
  126. ["MetalBatFoulBall"] = "18716660379",
  127. ["MetalBatFoulBallLand"] = "18716683497",
  128. ["MetalBatFoulBallFinisher"] = "18716684967",
  129. ["MetalBatFoulBallVictim"] = "18716813950",
  130. ["MetalBatFoulBallVictimFinisher"] = "18716819019",
  131. ["MetalBatForwardDash"] = "18716664096",
  132. ["MetalBatHomerun"] = "18716667710",
  133. ["MetalBatHomerunFinisher"] = "18716670225",
  134. ["MetalBatHomerunFail"] = "18716673362",
  135. ["MetalBatHomerunVictim"] = "18716795505",
  136. ["MetalBatBeatdown"] = "18716698376",
  137. ["MetalBatBeatdownVictim"] = "18716788085",
  138. ["MetalBatBeatdownFinisher"] = "18716701716",
  139. ["MetalBatIdleSaveBat"] = "18716708244",
  140. ["MetalBatAwkSaveBat"] = "18716713510",
  141. ["MetalBatAwk"] = "18716765679",
  142. ["MetalBatDeathBlow"] = "18716734026",
  143. ["MetalBatDeathBlowStart"] = "18716737190",
  144. ["MetalBatDeathBlowVictimMelee"] = "18716739997",
  145. ["MetalBatDeathBlowVictim"] = "18716769631",
  146. ["MetalBatDeathBlowStart"] = "18716771313",
  147.  
  148. -- Garou
  149. ["GarouSpawn"] = "18716207598",
  150. ["GarouWallCombo"] = "18716209740",
  151. ["GarouWallComboVictim"] = "18716210686",
  152. ["GarouM1"] = "18716212465,18716214840,18716216685,18716219015",
  153. ["GarouSeriousFist"] = "18716222914",
  154. ["GarouSeriousFistFinisher"] = "18716226105",
  155. ["GarouSeriousFistVictim"] = "18716228474",
  156. ["GarouLethalWhirlwindStart"] = "18716149866",
  157. ["GarouLethalWhirlwind"] = "18716164838",
  158. ["GarouLethalWhirlwindFinisher"] = "18716129897",
  159. ["GarouLethalWhirlwindVictim"] = "18716264678",
  160. ["GarouFinalHuntStart"] = "12463072679",
  161. ["GarouFinalHunt"] = "12467789963",
  162. ["GarouFinalHuntVictim"] = "18716274478",
  163. ["GarouFinalHuntFinish"] = "18716277556",
  164. ["GarouAwk"] = "18716208932",
  165. ["GarouAwkFatalFist"] = "18716234778",
  166. ["GarouAwkFatalFistVictim"] = "18716246223",
  167. ["GarouAwkConsecutiveNormalPunches"] = "18716258835",
  168. ["GarouAwkSeriousFist"] = "18716261894",
  169. ["GarouAwkConsecutiveNormalPunchesVictim"] = "18716262997",
  170. ["GarouAwkFatalFistVictim2"] = "18716264347",
  171. ["GarouAwkFatalFist2"] = "18716264652",
  172.  
  173. -- Saitama
  174. ["SaitamaSpawn"] = "18715800557",
  175. ["SaitamaBlock"] = "18715874793",
  176. ["SaitamaM1"] = "18715812734,18715817240,18715818827,18715820628",
  177. ["SaitamaWallCombo"] = "18715829082",
  178. ["SaitamaWallComboVictim"] = "18715946847",
  179. ["SaitamaConsecutiveNormalPunches"] = "18715831781",
  180. ["SaitamaNormalUppercut"] = "18715837899",
  181. ["SaitamaNormalPunch"] = "18715842262",
  182. ["SaitamaNormalShove"] = "18715845645",
  183. ["SaitamaAwk"] = "12447707844",
  184. ["SaitamaAwkDeathCounter"] = "18715881168",
  185. ["SaitamaAwkTableFlip"] = "18715884857",
  186. ["SaitamaAwkOmni"] = "18715891164",
  187. ["SaitamaAwkOmniVictim"] = "13916238703",
  188. ["SaitamaAwkSeriousPunch"] = "18715898844",
  189.  
  190. -- Suiryu
  191. ["SuiryuVanishingKick"] = "18715691149",
  192. ["SuiryuVanishingKickFinisher"] = "18464372850",
  193. ["SuiryuVanishingKickFinisherVictim"] = "18464373968",
  194. ["SuiryuSpawn"] = "18435303746",
  195. ["SuiryuHeadFirst"] = "18182425133",
  196. ["SuiryuVictimHeadFirst"] = "18182400897",
  197. ["SuiryuBulletBarrageStart"] = "18716581594",
  198. ["SuiryuBulletBarrageFinisherStart"] = "18464351556",
  199. ["SuiryuBulletBarrageFinisherEnd"] = "18464356233",
  200. ["SuiryuBulletBarrageFinisherVictim"] = "18464353914",
  201. ["SuiryuWallCombo"] = "18181159825",
  202. ["SuiryuHeadFirstStart"] = "18179181663",
  203. ["SuiryuHeadFirstVictimAir"] = "18171728577",
  204. ["SuiryuWhirlwindDrop"] = "18716588373",
  205. ["SuiryuWhirlwindDropFinisher"] = "18464362124",
  206. ["SuiryuM1"] = "18716133404,18716143973,18169291044,18716149223",
  207. ["SuiryuAwk"] = "18435535291",
  208. ["SuiryuAwkEnd"] = "18435383478",
  209. ["SuiryuAwkRisingFist"] = "18896127525",
  210. ["SuiryuAwkRisingFistVictim"] = "18896121004",
  211. ["SuiryuAwkTwinFangsMiss"] = "18896124320",
  212. ["SuiryuAwkTwinFangs"] = "18896229321",
  213. ["SuiryuAwkTwinFangsVictim"] = "18896222853",
  214. ["SuiryuAwkEarthSplittingStrikeEnd"] = "18897118507,18897120868",
  215. ["SuiryuAwkEarthSplittingStrikeMiss"] = "18897119503",
  216. ["SuiryuAwkEarthSplittingStrikeVictim"] = "18897121931",
  217.  
  218. -- Sonic
  219. ["SonicSpawnAnim"] = "18715714749",
  220. ["SonicWallCombo"] = "18715756612",
  221. ["SonicWallComboVictim"] = "18715943219",
  222. ["SonicBlock"] = "18715728313",
  223. ["SonicM1"] = "18715736372,18715743167,18715745239,18715747362",
  224. ["SonicAwkFourFoldFlashStrike"] = "18715789130",
  225. ["SonicAwkStraightOn"] = "18715777712",
  226. ["SonicAwkTwinbladeRush"] = "18715770173",
  227. ["SonicAwkTwinbladeRushVictim"] = "18716435262",
  228. ["SonicAwkStart"] = "13499771836",
  229. ["SonicAwkEnd"] = "13497875049",
  230. ["SonicRunOnlyHand"] = "13379404053",
  231.  
  232. -- KJ
  233. ["KJ_M1"] = "17325510002,17325513870,17325522388,17325537719",
  234. ["KJWallCombo"] = "18447913645",
  235. ["KJWallComboVictim"] = "18447915110",
  236. ["KJ5SeasonsFinish"] = "18462894593",
  237. ["KJ5SeasonsStart"] = "18462892217,18461128573",
  238.  
  239. -- Ravage
  240. ["RavageStartup"] = "16945573694",
  241. ["RavageFullMove"] = "16945550029",
  242. ["RavageVictim"] = "16945557433",
  243.  
  244. -- Swift
  245. ["SwiftSweep"] = "16944345619",
  246. ["SwiftSweepFail"] = "18716997669",
  247. ["SwiftSweepVictim"] = "18715930149",
  248.  
  249. -- Collateral Ruin
  250. ["CollateralRuin"] = "17325254223",
  251.  
  252. -- Ultimate Activation
  253. ["UltimateActivation"] = "17140902079",
  254. ["UltimateActivation2"] = "18445236460",
  255.  
  256. -- Stoic Bomb
  257. ["StoicBomb"] = "17141153099",
  258.  
  259. -- 20-20-20 Dropkick
  260. ["Dropkick"] = "17354976067",
  261. ["DropkickHit"] = "17420452843",
  262. ["DropkickVictim"] = "17363256069"
  263. }
  264.  
  265. -- Function to load an animation
  266. local function loadAnimation(animationName, animationId)
  267. local Animation = Instance.new("Animation")
  268. Animation.Name = animationName
  269. Animation.AnimationId = "rbxassetid://" .. animationId
  270. return Animation
  271. end
  272.  
  273. -- Function to play an animation
  274. local function playAnimation(character, animationName)
  275. local animationId = AnimationIds[animationName]
  276. if animationId then
  277. local animation = loadAnimation(animationName, animationId)
  278. local humanoid = character:FindFirstChildOfClass("Humanoid")
  279. if humanoid then
  280. local animator = humanoid:FindFirstChild("Animator") or Instance.new("Animator", humanoid)
  281. local animationTrack = animator:LoadAnimation(animation)
  282. animationTrack:Play()
  283. end
  284. end
  285. end
  286.  
  287. -- Function to create GUI
  288. local function createGUI()
  289. local player = game.Players.LocalPlayer
  290. local character = player.Character or player.CharacterAdded:Wait()
  291.  
  292. -- Create ScreenGui
  293. local screenGui = Instance.new("ScreenGui")
  294. screenGui.Name = "TSB ANIM DEVTEST2"
  295. screenGui.Parent = player.PlayerGui
  296.  
  297. -- Create main Frame
  298. local mainFrame = Instance.new("Frame")
  299. mainFrame.Size = UDim2.new(0.4, 0, 0.5, 0) -- Smaller size
  300. mainFrame.Position = UDim2.new(0.3, 0, 0.25, 0)
  301. mainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 139) -- Dark blue background
  302. mainFrame.BackgroundTransparency = 0.25 -- 75% transparent
  303. mainFrame.Parent = screenGui
  304.  
  305. -- Create draggable top bar
  306. local topBar = Instance.new("Frame")
  307. topBar.Size = UDim2.new(1, 0, 0, 40) -- Smaller height
  308. topBar.BackgroundColor3 = Color3.fromRGB(0, 0, 139) -- Dark blue background for the top bar
  309. topBar.Parent = mainFrame
  310.  
  311. -- Create minimize button
  312. local minimizeButton = Instance.new("TextButton")
  313. minimizeButton.Size = UDim2.new(0, 40, 0, 40) -- Smaller button size
  314. minimizeButton.Position = UDim2.new(1, -40, 0, 0)
  315. minimizeButton.Text = "-"
  316. minimizeButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) -- Red background
  317. minimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  318. minimizeButton.Parent = topBar
  319.  
  320. -- Create title text
  321. local titleLabel = Instance.new("TextLabel")
  322. titleLabel.Size = UDim2.new(1, -40, 1, 0)
  323. titleLabel.Position = UDim2.new(0, 0, 0, 0)
  324. titleLabel.Text = "(Almost) all animations hub"
  325. titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  326. titleLabel.TextScaled = true
  327. titleLabel.BackgroundTransparency = 1
  328. titleLabel.Parent = topBar
  329.  
  330. -- Draggable functionality
  331. local dragging
  332. local dragStart
  333. local startPos
  334.  
  335. local function update(input)
  336. local delta = input.Position - dragStart
  337. mainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  338. end
  339.  
  340. local function onInputBegan(input)
  341. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  342. dragging = true
  343. dragStart = input.Position
  344. startPos = mainFrame.Position
  345.  
  346. input.Changed:Connect(function()
  347. if input.UserInputState == Enum.UserInputState.End then
  348. dragging = false
  349. end
  350. end)
  351. end
  352. end
  353.  
  354. local function onInputChanged(input)
  355. if dragging then
  356. update(input)
  357. end
  358. end
  359.  
  360. topBar.InputBegan:Connect(onInputBegan)
  361. topBar.InputChanged:Connect(onInputChanged)
  362. game:GetService("RunService").RenderStepped:Connect(onInputChanged)
  363.  
  364. -- Minimize functionality
  365. local minimized = false
  366. local function toggleMinimize()
  367. minimized = not minimized
  368. mainFrame.Size = minimized and UDim2.new(0.4, 0, 0.1, 0) or UDim2.new(0.4, 0, 0.5, 0)
  369. scrollingFrame.Visible = not minimized
  370. end
  371.  
  372. minimizeButton.MouseButton1Click:Connect(toggleMinimize)
  373.  
  374. -- Create a ScrollingFrame
  375. local scrollingFrame = Instance.new("ScrollingFrame")
  376. scrollingFrame.Size = UDim2.new(1, 0, 1, -40) -- Adjust size to fit below the top bar
  377. scrollingFrame.Position = UDim2.new(0, 0, 0, 40)
  378. scrollingFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 139) -- Dark blue background
  379. scrollingFrame.BackgroundTransparency = 0.25 -- 75% transparent
  380. scrollingFrame.ScrollBarThickness = 10
  381. scrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0) -- Initial canvas size
  382. scrollingFrame.Parent = mainFrame
  383.  
  384. -- Create a UIListLayout for the buttons
  385. local listLayout = Instance.new("UIListLayout")
  386. listLayout.Padding = UDim.new(0, 10)
  387. listLayout.SortOrder = Enum.SortOrder.LayoutOrder
  388. listLayout.Parent = scrollingFrame
  389.  
  390. -- Function to update the canvas size
  391. local function updateCanvasSize()
  392. local contentSize = listLayout.AbsoluteContentSize
  393. scrollingFrame.CanvasSize = UDim2.new(0, contentSize.X, 0, contentSize.Y)
  394. end
  395.  
  396. -- Create buttons for each animation
  397. for animationName, animationId in pairs(AnimationIds) do
  398. local button = Instance.new("TextButton")
  399. button.Size = UDim2.new(1, 0, 0, 40) -- Adjust size for smaller buttons
  400. button.Text = animationName
  401. button.BackgroundColor3 = Color3.fromRGB(0, 139, 139) -- Dark blue-green background for buttons
  402. button.TextColor3 = Color3.fromRGB(255, 255, 255)
  403. button.Parent = scrollingFrame
  404.  
  405. -- Button click event
  406. button.MouseButton1Click:Connect(function()
  407. playAnimation(character, animationName)
  408. end)
  409. end
  410.  
  411. -- Update the canvas size after all buttons are created
  412. listLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(updateCanvasSize)
  413. updateCanvasSize()
  414. end
  415.  
  416. -- Create the GUI
  417. createGUI()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement