ILovePotato

Untitled

Jan 17th, 2025
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. local tool = Instance.new("Tool")
  2. tool.Name = "Stoic Bomb"
  3. tool.RequiresHandle = true
  4.  
  5. local handle = Instance.new("Part")
  6. handle.Name = "Handle"
  7. handle.Size = Vector3.new(1, 1, 1)
  8. handle.Anchored = false
  9. handle.CanCollide = false
  10. handle.Transparency = 1
  11. handle.Parent = tool
  12.  
  13. local player = game.Players.LocalPlayer
  14. tool.Parent = player.Backpack
  15.  
  16. tool.Equipped:Connect(function()
  17. local character = player.Character or player.CharacterAdded:Wait()
  18. local humanoid = character:FindFirstChildOfClass("Humanoid")
  19.  
  20. if humanoid then
  21. local rootPart = character:FindFirstChild("HumanoidRootPart")
  22. local camera = workspace.CurrentCamera
  23.  
  24. if not rootPart then return end -- Verificar que el jugador tiene el "HumanoidRootPart"
  25.  
  26. local animation = Instance.new("Animation")
  27. animation.AnimationId = "rbxassetid://17141153099"
  28. local animTrack = humanoid:LoadAnimation(animation)
  29.  
  30. animTrack:Play()
  31.  
  32. wait(1) -- Esperar 1 segundo antes de pausar la animación
  33. animTrack:AdjustSpeed(0) -- Pausar la animación después de 1 segundo
  34.  
  35. -- Mover al personaje instantáneamente a una altura de 1500 studs
  36. rootPart.CFrame = rootPart.CFrame + Vector3.new(0, 4000, 0)
  37.  
  38. -- Crear un nuevo BodyVelocity para controlar la velocidad de caída
  39. local fallVelocity = Instance.new("BodyVelocity")
  40. fallVelocity.Velocity = Vector3.new(0, -(3950 / 12), 0) -- Velocidad calculada para que caiga en 12 segundos desde 1500 studs
  41. fallVelocity.MaxForce = Vector3.new(0, math.huge, 0) -- Aplicar fuerza constante solo en el eje Y
  42. fallVelocity.Parent = rootPart
  43.  
  44. wait(5) -- Esperar 5 segundos antes de comenzar el temblor de la cámara
  45.  
  46. -- Comenzar el temblor de la cámara
  47. local startTime = tick()
  48. local duration = 7 -- Duración del temblor en segundos
  49.  
  50. while tick() - startTime < duration do
  51. camera.CFrame = camera.CFrame * CFrame.new(
  52. math.random() * 0.25 - 0.15, -- Reducir magnitud del temblor en X
  53. math.random() * 0.25 - 0.15, -- Reducir magnitud del temblor en Y
  54. math.random() * 0.25 - 0.15 -- Reducir magnitud del temblor en Z
  55. ) * CFrame.Angles(
  56. math.random() * 0.025 - 0.015, -- Reducir magnitud del temblor de ángulo en X
  57. math.random() * 0.025 - 0.015, -- Reducir magnitud del temblor de ángulo en Y
  58. math.random() * 0.025 - 0.015 -- Reducir magnitud del temblor de ángulo en Z
  59. )
  60. wait(0.05) -- Intervalo entre movimientos del temblor
  61. end
  62.  
  63. -- Dejar de temblar la cámara
  64. camera.CFrame = CFrame.new(camera.CFrame.Position, camera.CFrame.Position + camera.CFrame.LookVector) -- Restablecer la cámara
  65.  
  66. -- Quitar la fuerza para restaurar la gravedad normal
  67. fallVelocity:Destroy()
  68.  
  69. -- Reanudar la animación a velocidad 1 después de los 12 segundos
  70. animTrack:AdjustSpeed(1)
  71.  
  72. -- Esperar 0.5 segundos y luego cambiar la velocidad a 0.5
  73. wait(0.5)
  74. animTrack:AdjustSpeed(0.5)
  75.  
  76. -- Esperar 0.5 segundos y luego cambiar la velocidad a 0.1
  77. wait(0.5)
  78. animTrack:AdjustSpeed(0.1)
  79.  
  80. -- Esperar 2.5 segundos y luego pausar la animación
  81. wait(2.5)
  82. animTrack:AdjustSpeed(0) -- Pausar la animación nuevamente
  83.  
  84. -- Esperar 2.8 segundos y luego reanudar la animación
  85. wait(2.8)
  86. animTrack:AdjustSpeed(1) -- Reanudar la animación a velocidad normal
  87. end
  88. end)
  89.  
Add Comment
Please, Sign In to add comment