Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tool = Instance.new("Tool")
- tool.Name = "Stoic Bomb"
- tool.RequiresHandle = true
- local handle = Instance.new("Part")
- handle.Name = "Handle"
- handle.Size = Vector3.new(1, 1, 1)
- handle.Anchored = false
- handle.CanCollide = false
- handle.Transparency = 1
- handle.Parent = tool
- local player = game.Players.LocalPlayer
- tool.Parent = player.Backpack
- tool.Equipped:Connect(function()
- local character = player.Character or player.CharacterAdded:Wait()
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- local rootPart = character:FindFirstChild("HumanoidRootPart")
- local camera = workspace.CurrentCamera
- if not rootPart then return end -- Verificar que el jugador tiene el "HumanoidRootPart"
- local animation = Instance.new("Animation")
- animation.AnimationId = "rbxassetid://17141153099"
- local animTrack = humanoid:LoadAnimation(animation)
- animTrack:Play()
- wait(1) -- Esperar 1 segundo antes de pausar la animación
- animTrack:AdjustSpeed(0) -- Pausar la animación después de 1 segundo
- -- Mover al personaje instantáneamente a una altura de 1500 studs
- rootPart.CFrame = rootPart.CFrame + Vector3.new(0, 4000, 0)
- -- Crear un nuevo BodyVelocity para controlar la velocidad de caída
- local fallVelocity = Instance.new("BodyVelocity")
- fallVelocity.Velocity = Vector3.new(0, -(3950 / 12), 0) -- Velocidad calculada para que caiga en 12 segundos desde 1500 studs
- fallVelocity.MaxForce = Vector3.new(0, math.huge, 0) -- Aplicar fuerza constante solo en el eje Y
- fallVelocity.Parent = rootPart
- wait(5) -- Esperar 5 segundos antes de comenzar el temblor de la cámara
- -- Comenzar el temblor de la cámara
- local startTime = tick()
- local duration = 7 -- Duración del temblor en segundos
- while tick() - startTime < duration do
- camera.CFrame = camera.CFrame * CFrame.new(
- math.random() * 0.25 - 0.15, -- Reducir magnitud del temblor en X
- math.random() * 0.25 - 0.15, -- Reducir magnitud del temblor en Y
- math.random() * 0.25 - 0.15 -- Reducir magnitud del temblor en Z
- ) * CFrame.Angles(
- math.random() * 0.025 - 0.015, -- Reducir magnitud del temblor de ángulo en X
- math.random() * 0.025 - 0.015, -- Reducir magnitud del temblor de ángulo en Y
- math.random() * 0.025 - 0.015 -- Reducir magnitud del temblor de ángulo en Z
- )
- wait(0.05) -- Intervalo entre movimientos del temblor
- end
- -- Dejar de temblar la cámara
- camera.CFrame = CFrame.new(camera.CFrame.Position, camera.CFrame.Position + camera.CFrame.LookVector) -- Restablecer la cámara
- -- Quitar la fuerza para restaurar la gravedad normal
- fallVelocity:Destroy()
- -- Reanudar la animación a velocidad 1 después de los 12 segundos
- animTrack:AdjustSpeed(1)
- -- Esperar 0.5 segundos y luego cambiar la velocidad a 0.5
- wait(0.5)
- animTrack:AdjustSpeed(0.5)
- -- Esperar 0.5 segundos y luego cambiar la velocidad a 0.1
- wait(0.5)
- animTrack:AdjustSpeed(0.1)
- -- Esperar 2.5 segundos y luego pausar la animación
- wait(2.5)
- animTrack:AdjustSpeed(0) -- Pausar la animación nuevamente
- -- Esperar 2.8 segundos y luego reanudar la animación
- wait(2.8)
- animTrack:AdjustSpeed(1) -- Reanudar la animación a velocidad normal
- end
- end)
Add Comment
Please, Sign In to add comment