Advertisement
Qnrohwow

KJ SCRIPT (ONLY WORKS IN DUELS)

Jul 29th, 2024 (edited)
4,500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1.  
  2. local animations = {
  3. {id = "rbxassetid://16945573694", name = "Ravage"},
  4. {id = "rbxassetid://16945550029", name = "Ravage full move"},
  5. {id = "rbxassetid://16944345619", name = "Swift Sweep"},
  6. {id = "rbxassetid://17325254223", name = "Collateral ruin"},
  7. {id = "rbxassetid://18447913645", name = "Wall combo"},
  8. {id = "rbxassetid://17140902079", name = "Ult anim 1"},
  9. {id = "rbxassetid://18445236460", name = "Ult anim 2"},
  10. {id = "rbxassetid://17141153099", name = "Stoic bomb"},
  11. {id = "rbxassetid://17354976067", name = "20-20-20 Dropkick"},
  12. {id = "rbxassetid://17420452843", name = "20-20-20 Dropkick Hit"}
  13. }
  14.  
  15. local screenGui = Instance.new("ScreenGui")
  16. screenGui.Name = "MovableScreenGui"
  17. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  18.  
  19.  
  20. local frame = Instance.new("Frame")
  21. frame.Size = UDim2.new(0, 350, 0, 400)
  22. frame.Position = UDim2.new(0.5, -175, 0.5, -200)
  23. frame.BackgroundColor3 = Color3.fromRGB(200, 200, 200)
  24. frame.Active = true
  25. frame.Draggable = true
  26. frame.Parent = screenGui
  27.  
  28.  
  29. local closeButton = Instance.new("TextButton")
  30. closeButton.Size = UDim2.new(0, 100, 0, 50)
  31. closeButton.Position = UDim2.new(0, 0, 0, -50)
  32. closeButton.Text = "Eliminar UI"
  33. closeButton.Parent = frame
  34.  
  35.  
  36. local function playAnimation(animationId)
  37. local player = game.Players.LocalPlayer
  38. local character = player.Character or player.CharacterAdded:Wait()
  39. local humanoid = character:WaitForChild("Humanoid")
  40. local animator = humanoid:FindFirstChild("Animator")
  41.  
  42. if not animator then
  43. animator = Instance.new("Animator")
  44. animator.Parent = humanoid
  45. end
  46.  
  47. local animation = Instance.new("Animation")
  48. animation.AnimationId = animationId
  49. local animationTrack = animator:LoadAnimation(animation)
  50. animationTrack:Play()
  51. end
  52.  
  53.  
  54. local function onCloseButtonClicked()
  55. screenGui:Destroy()
  56. end
  57.  
  58.  
  59. closeButton.MouseButton1Click:Connect(onCloseButtonClicked)
  60.  
  61.  
  62. for i, anim in ipairs(animations) do
  63. local button = Instance.new("TextButton")
  64. button.Size = UDim2.new(0, 150, 0, 50)
  65. button.Position = UDim2.new(0.1, 0, (i - 1) * 0.1 + 0.1, 0)
  66. button.Text = anim.name
  67. button.Parent = frame
  68.  
  69.  
  70. button.MouseButton1Click:Connect(function()
  71. playAnimation(anim.id)
  72. end)
  73. end
Tags: #script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement