Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Define Animation IDs
- local AnimationIds = {
- -- Dummy
- ["DummyAttackVictim"] = "18717298618",
- ["DummyAttack"] = "18440389930",
- -- Genos
- ["GenosSpawn"] = "18716464560",
- ["GenosWallCombo"] = "18716485513",
- ["GenosWallComboVictim"] = "18716505052",
- ["GenosM1"] = "18716472014,18716475828,18716477298,18716478642",
- ["GenosIgnitionBurst"] = "18716481342",
- ["GenosMachineGunBlows"] = "18716470698",
- ["GenosBlitzShot"] = "12618271998",
- ["GenosJetDrive"] = "12684390285",
- ["GenosJetDriveLand"] = "12684185971",
- ["GenosAwk"] = "18778839005",
- ["GenosAwkThunderKick"] = "14721837245",
- ["GenosAwkSpeedblitzDropkick"] = "12832505612",
- ["GenosAwkFlamewaveCannon"] = "13083332742",
- ["GenosAwkIncinerate"] = "13146710762",
- ["Attract"] = "13560306510",
- ["Repulse"] = "13073745835",
- ["Erase"] = "13071982935",
- ["AttractInfinityActive"] = "15121659862",
- ["AttractLoopInfinityActive"] = "15125307874",
- ["AttractEndInfinityActive"] = "15124762088",
- -- Sorcerer
- ["SorcererWallCombo"] = "18903642853",
- ["SorcererWallComboVictim"] = "18903644685",
- -- Death
- ["Death"] = "18894511179",
- -- Claws
- ["LeftClawAttack"] = "18893408267",
- ["RightClawAttack"] = "18893391798",
- -- Movement
- ["Spawn"] = "18893355822",
- ["WalkBackwards"] = "18893363004",
- ["WalkForward"] = "18893366575",
- ["WalkLeft"] = "18893369850",
- ["WalkRight"] = "18893372474",
- ["Idle"] = "18893376101",
- ["RotateLeft"] = "18893378722",
- ["RotateRight"] = "18893381474",
- ["RightClaw1"] = "18893388903",
- ["LeftClaw1"] = "18893395278",
- ["LeftClawSlash"] = "18893399479",
- ["AcidSpit"] = "18893403844",
- ["BodySlam"] = "18893412159",
- ["MultiAttack"] = "18893415339",
- ["Jump"] = "18893417968",
- ["Beam"] = "18893419896",
- ["Stagger2"] = "18893477234",
- ["Stunned"] = "18894271262",
- -- Atomic
- ["AtomicSpawn"] = "18716865654",
- ["AtomicWallCombo"] = "18716867254",
- ["AtomicWallComboVictim"] = "18716944734",
- ["AtomicBlock"] = "18716869912",
- ["AtomicM1"] = "15259161390,15240216931,15240176873,15162694192",
- ["AtomicPinpointCut"] = "18716871856",
- ["AtomicPinpointCutVictim"] = "18716974191",
- ["AtomicPinpointCutFinisher"] = "15436465829",
- ["AtomicPinpointCutAirVariantFinisher"] = "15436668469",
- ["AtomicQuickSlice"] = "15290930205",
- ["AtomicAtmosCleave"] = "15145462680",
- ["AtomicAtmosCleaveFinisher"] = "15279910941",
- ["AtomicAtmosCleaveVictim"] = "18716941238",
- ["AtomicRunSwordHand"] = "13379404053",
- ["AtomicSplitSecondCounter"] = "15334974550",
- ["AtomicSplitSecondCounterMiss"] = "15311685628",
- ["AtomicSplitSecondCounterVictim"] = "18716935181",
- ["AtomicAwk"] = "18716880183",
- ["AtomicSunrise"] = "18716884610",
- ["AtomicSunriseVictim"] = "18716952942",
- ["AtomicAtomicSlash"] = "18716893399",
- ["AtomicAtomicSlashLand"] = "18716897393",
- ["AtomicAtomicSlashVictim"] = "18716949989",
- ["AtomicSunset"] = "15520132233",
- ["AtomicSunsetVictim"] = "18716961861",
- ["AtomicSolarCleave"] = "15676072469",
- -- Tatsumaki
- ["TatsumakiSpawn"] = "18717022527",
- ["TatsumakiWallCombo"] = "18717027887",
- ["TatsumakiWallComboVictim"] = "16310732064",
- ["TatsumakiM1"] = "16515503507,16515520431,16515448089,16552234590",
- ["TatsumakiWindstorm"] = "18717029694",
- ["TatsumakiStoneCoffin"] = "18717024196",
- ["TatsumakiStoneCoffinFinisher"] = "18717025535",
- ["TatsumakiCrashingPullAir"] = "18717031831",
- ["TatsumakiCrashingPull"] = "16139108718",
- ["TatsumakiCrashingPullFinisher"] = "18717033246",
- ["TatsumakiExpulsivePushFail"] = "16597322398",
- ["TatsumakiExpulsivePush"] = "16597912086",
- ["TatsumakiExpulsivePushFinisher"] = "16699717165",
- ["TatsumakiExpulsivePushFinisherVictim"] = "16699365893",
- ["TatsumakiAwk"] = "18717034991",
- ["TatsumakiCosmicStrike"] = "16737255386",
- ["TatsumakiPsychicRicochet"] = "17464644182",
- ["TatsumakiPsychicRicochetVictim"] = "17466449380",
- ["TatsumakiTerribleTornado"] = "17571752869",
- ["TatsumakiTerribleTornadoVictim"] = "17534979975",
- ["TerribleTornadoMissedUse"] = "17534631905",
- ["TatsumakiSkySnatcherFail"] = "17860467628",
- ["TatsumakiSkySnatcher"] = "17889080495",
- ["TatsumakiSkySnatcherVictim"] = "17889083042",
- ["TatsumakiSeismicFistHandAnim"] = "18717089928",
- -- Metal Bat
- ["MetalBatSpawn"] = "18716634245",
- ["MetalBatWallCombo"] = "18716750744",
- ["MetalBatWallComboVictim"] = "18716782310",
- ["MetalBatBlock"] = "18716638776",
- ["MetalBatM1"] = "18716641152,18716644788,18716646083,18716647575",
- ["MetalBatGrandSlam"] = "18716650993",
- ["MetalBatGrandSlamAir"] = "18716655757",
- ["MetalBatGrandSlamHitFloor"] = "18716657427",
- ["MetalBatGrandSlamAirFinisher"] = "18716690247",
- ["MetalBatGrandSlamAirFinisherVictim"] = "18716777568",
- ["MetalBatFoulBall"] = "18716660379",
- ["MetalBatFoulBallLand"] = "18716683497",
- ["MetalBatFoulBallFinisher"] = "18716684967",
- ["MetalBatFoulBallVictim"] = "18716813950",
- ["MetalBatFoulBallVictimFinisher"] = "18716819019",
- ["MetalBatForwardDash"] = "18716664096",
- ["MetalBatHomerun"] = "18716667710",
- ["MetalBatHomerunFinisher"] = "18716670225",
- ["MetalBatHomerunFail"] = "18716673362",
- ["MetalBatHomerunVictim"] = "18716795505",
- ["MetalBatBeatdown"] = "18716698376",
- ["MetalBatBeatdownVictim"] = "18716788085",
- ["MetalBatBeatdownFinisher"] = "18716701716",
- ["MetalBatIdleSaveBat"] = "18716708244",
- ["MetalBatAwkSaveBat"] = "18716713510",
- ["MetalBatAwk"] = "18716765679",
- ["MetalBatDeathBlow"] = "18716734026",
- ["MetalBatDeathBlowStart"] = "18716737190",
- ["MetalBatDeathBlowVictimMelee"] = "18716739997",
- ["MetalBatDeathBlowVictim"] = "18716769631",
- ["MetalBatDeathBlowStart"] = "18716771313",
- -- Garou
- ["GarouSpawn"] = "18716207598",
- ["GarouWallCombo"] = "18716209740",
- ["GarouWallComboVictim"] = "18716210686",
- ["GarouM1"] = "18716212465,18716214840,18716216685,18716219015",
- ["GarouSeriousFist"] = "18716222914",
- ["GarouSeriousFistFinisher"] = "18716226105",
- ["GarouSeriousFistVictim"] = "18716228474",
- ["GarouLethalWhirlwindStart"] = "18716149866",
- ["GarouLethalWhirlwind"] = "18716164838",
- ["GarouLethalWhirlwindFinisher"] = "18716129897",
- ["GarouLethalWhirlwindVictim"] = "18716264678",
- ["GarouFinalHuntStart"] = "12463072679",
- ["GarouFinalHunt"] = "12467789963",
- ["GarouFinalHuntVictim"] = "18716274478",
- ["GarouFinalHuntFinish"] = "18716277556",
- ["GarouAwk"] = "18716208932",
- ["GarouAwkFatalFist"] = "18716234778",
- ["GarouAwkFatalFistVictim"] = "18716246223",
- ["GarouAwkConsecutiveNormalPunches"] = "18716258835",
- ["GarouAwkSeriousFist"] = "18716261894",
- ["GarouAwkConsecutiveNormalPunchesVictim"] = "18716262997",
- ["GarouAwkFatalFistVictim2"] = "18716264347",
- ["GarouAwkFatalFist2"] = "18716264652",
- -- Saitama
- ["SaitamaSpawn"] = "18715800557",
- ["SaitamaBlock"] = "18715874793",
- ["SaitamaM1"] = "18715812734,18715817240,18715818827,18715820628",
- ["SaitamaWallCombo"] = "18715829082",
- ["SaitamaWallComboVictim"] = "18715946847",
- ["SaitamaConsecutiveNormalPunches"] = "18715831781",
- ["SaitamaNormalUppercut"] = "18715837899",
- ["SaitamaNormalPunch"] = "18715842262",
- ["SaitamaNormalShove"] = "18715845645",
- ["SaitamaAwk"] = "12447707844",
- ["SaitamaAwkDeathCounter"] = "18715881168",
- ["SaitamaAwkTableFlip"] = "18715884857",
- ["SaitamaAwkOmni"] = "18715891164",
- ["SaitamaAwkOmniVictim"] = "13916238703",
- ["SaitamaAwkSeriousPunch"] = "18715898844",
- -- Suiryu
- ["SuiryuVanishingKick"] = "18715691149",
- ["SuiryuVanishingKickFinisher"] = "18464372850",
- ["SuiryuVanishingKickFinisherVictim"] = "18464373968",
- ["SuiryuSpawn"] = "18435303746",
- ["SuiryuHeadFirst"] = "18182425133",
- ["SuiryuVictimHeadFirst"] = "18182400897",
- ["SuiryuBulletBarrageStart"] = "18716581594",
- ["SuiryuBulletBarrageFinisherStart"] = "18464351556",
- ["SuiryuBulletBarrageFinisherEnd"] = "18464356233",
- ["SuiryuBulletBarrageFinisherVictim"] = "18464353914",
- ["SuiryuWallCombo"] = "18181159825",
- ["SuiryuHeadFirstStart"] = "18179181663",
- ["SuiryuHeadFirstVictimAir"] = "18171728577",
- ["SuiryuWhirlwindDrop"] = "18716588373",
- ["SuiryuWhirlwindDropFinisher"] = "18464362124",
- ["SuiryuM1"] = "18716133404,18716143973,18169291044,18716149223",
- ["SuiryuAwk"] = "18435535291",
- ["SuiryuAwkEnd"] = "18435383478",
- ["SuiryuAwkRisingFist"] = "18896127525",
- ["SuiryuAwkRisingFistVictim"] = "18896121004",
- ["SuiryuAwkTwinFangsMiss"] = "18896124320",
- ["SuiryuAwkTwinFangs"] = "18896229321",
- ["SuiryuAwkTwinFangsVictim"] = "18896222853",
- ["SuiryuAwkEarthSplittingStrikeEnd"] = "18897118507,18897120868",
- ["SuiryuAwkEarthSplittingStrikeMiss"] = "18897119503",
- ["SuiryuAwkEarthSplittingStrikeVictim"] = "18897121931",
- -- Sonic
- ["SonicSpawnAnim"] = "18715714749",
- ["SonicWallCombo"] = "18715756612",
- ["SonicWallComboVictim"] = "18715943219",
- ["SonicBlock"] = "18715728313",
- ["SonicM1"] = "18715736372,18715743167,18715745239,18715747362",
- ["SonicAwkFourFoldFlashStrike"] = "18715789130",
- ["SonicAwkStraightOn"] = "18715777712",
- ["SonicAwkTwinbladeRush"] = "18715770173",
- ["SonicAwkTwinbladeRushVictim"] = "18716435262",
- ["SonicAwkStart"] = "13499771836",
- ["SonicAwkEnd"] = "13497875049",
- ["SonicRunOnlyHand"] = "13379404053",
- -- KJ
- ["KJ_M1"] = "17325510002,17325513870,17325522388,17325537719",
- ["KJWallCombo"] = "18447913645",
- ["KJWallComboVictim"] = "18447915110",
- ["KJ5SeasonsFinish"] = "18462894593",
- ["KJ5SeasonsStart"] = "18462892217,18461128573",
- -- Ravage
- ["RavageStartup"] = "16945573694",
- ["RavageFullMove"] = "16945550029",
- ["RavageVictim"] = "16945557433",
- -- Swift
- ["SwiftSweep"] = "16944345619",
- ["SwiftSweepFail"] = "18716997669",
- ["SwiftSweepVictim"] = "18715930149",
- -- Collateral Ruin
- ["CollateralRuin"] = "17325254223",
- -- Ultimate Activation
- ["UltimateActivation"] = "17140902079",
- ["UltimateActivation2"] = "18445236460",
- -- Stoic Bomb
- ["StoicBomb"] = "17141153099",
- -- 20-20-20 Dropkick
- ["Dropkick"] = "17354976067",
- ["DropkickHit"] = "17420452843",
- ["DropkickVictim"] = "17363256069"
- }
- -- Function to load an animation
- local function loadAnimation(animationName, animationId)
- local Animation = Instance.new("Animation")
- Animation.Name = animationName
- Animation.AnimationId = "rbxassetid://" .. animationId
- return Animation
- end
- -- Function to play an animation
- local function playAnimation(character, animationName)
- local animationId = AnimationIds[animationName]
- if animationId then
- local animation = loadAnimation(animationName, animationId)
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- local animator = humanoid:FindFirstChild("Animator") or Instance.new("Animator", humanoid)
- local animationTrack = animator:LoadAnimation(animation)
- animationTrack:Play()
- end
- end
- end
- -- Function to create GUI
- local function createGUI()
- local player = game.Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- -- Create ScreenGui
- local screenGui = Instance.new("ScreenGui")
- screenGui.Name = "TSB ANIM DEVTEST2"
- screenGui.Parent = player.PlayerGui
- -- Create main Frame
- local mainFrame = Instance.new("Frame")
- mainFrame.Size = UDim2.new(0.4, 0, 0.5, 0) -- Smaller size
- mainFrame.Position = UDim2.new(0.3, 0, 0.25, 0)
- mainFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 139) -- Dark blue background
- mainFrame.BackgroundTransparency = 0.25 -- 75% transparent
- mainFrame.Parent = screenGui
- -- Create draggable top bar
- local topBar = Instance.new("Frame")
- topBar.Size = UDim2.new(1, 0, 0, 40) -- Smaller height
- topBar.BackgroundColor3 = Color3.fromRGB(0, 0, 139) -- Dark blue background for the top bar
- topBar.Parent = mainFrame
- -- Create minimize button
- local minimizeButton = Instance.new("TextButton")
- minimizeButton.Size = UDim2.new(0, 40, 0, 40) -- Smaller button size
- minimizeButton.Position = UDim2.new(1, -40, 0, 0)
- minimizeButton.Text = "-"
- minimizeButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) -- Red background
- minimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- minimizeButton.Parent = topBar
- -- Create title text
- local titleLabel = Instance.new("TextLabel")
- titleLabel.Size = UDim2.new(1, -40, 1, 0)
- titleLabel.Position = UDim2.new(0, 0, 0, 0)
- titleLabel.Text = "(Almost) all animations hub"
- titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- titleLabel.TextScaled = true
- titleLabel.BackgroundTransparency = 1
- titleLabel.Parent = topBar
- -- Draggable functionality
- local dragging
- local dragStart
- local startPos
- local function update(input)
- local delta = input.Position - dragStart
- mainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
- end
- local function onInputBegan(input)
- if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
- dragging = true
- dragStart = input.Position
- startPos = mainFrame.Position
- input.Changed:Connect(function()
- if input.UserInputState == Enum.UserInputState.End then
- dragging = false
- end
- end)
- end
- end
- local function onInputChanged(input)
- if dragging then
- update(input)
- end
- end
- topBar.InputBegan:Connect(onInputBegan)
- topBar.InputChanged:Connect(onInputChanged)
- game:GetService("RunService").RenderStepped:Connect(onInputChanged)
- -- Minimize functionality
- local minimized = false
- local function toggleMinimize()
- minimized = not minimized
- mainFrame.Size = minimized and UDim2.new(0.4, 0, 0.1, 0) or UDim2.new(0.4, 0, 0.5, 0)
- scrollingFrame.Visible = not minimized
- end
- minimizeButton.MouseButton1Click:Connect(toggleMinimize)
- -- Create a ScrollingFrame
- local scrollingFrame = Instance.new("ScrollingFrame")
- scrollingFrame.Size = UDim2.new(1, 0, 1, -40) -- Adjust size to fit below the top bar
- scrollingFrame.Position = UDim2.new(0, 0, 0, 40)
- scrollingFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 139) -- Dark blue background
- scrollingFrame.BackgroundTransparency = 0.25 -- 75% transparent
- scrollingFrame.ScrollBarThickness = 10
- scrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 0) -- Initial canvas size
- scrollingFrame.Parent = mainFrame
- -- Create a UIListLayout for the buttons
- local listLayout = Instance.new("UIListLayout")
- listLayout.Padding = UDim.new(0, 10)
- listLayout.SortOrder = Enum.SortOrder.LayoutOrder
- listLayout.Parent = scrollingFrame
- -- Function to update the canvas size
- local function updateCanvasSize()
- local contentSize = listLayout.AbsoluteContentSize
- scrollingFrame.CanvasSize = UDim2.new(0, contentSize.X, 0, contentSize.Y)
- end
- -- Create buttons for each animation
- for animationName, animationId in pairs(AnimationIds) do
- local button = Instance.new("TextButton")
- button.Size = UDim2.new(1, 0, 0, 40) -- Adjust size for smaller buttons
- button.Text = animationName
- button.BackgroundColor3 = Color3.fromRGB(0, 139, 139) -- Dark blue-green background for buttons
- button.TextColor3 = Color3.fromRGB(255, 255, 255)
- button.Parent = scrollingFrame
- -- Button click event
- button.MouseButton1Click:Connect(function()
- playAnimation(character, animationName)
- end)
- end
- -- Update the canvas size after all buttons are created
- listLayout:GetPropertyChangedSignal("AbsoluteContentSize"):Connect(updateCanvasSize)
- updateCanvasSize()
- end
- -- Create the GUI
- createGUI()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement