Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TweenService = game:GetService("TweenService")
- local function Use(...)
- -- Declare variables for later
- local args = {...}
- local finished = false
- local cuenta = math.random(2, 3) -- spanish for "goat"
- local hum = args[1].Character.Humanoid
- local torso = args[1].Character.Torso
- -- Anchor the user and set up the "charging" part
- torso.Anchored = true
- local p = Instance.new("Part")
- p.Size, p.Anchored, p.CFrame = Vector3.new(3, 3, 3), true, torso.CFrame
- -- p.Anchored = true
- -- p.CFrame = torso.CFrame
- -- put more propeeties
- p.Parent = workspace
- local grow = TweenService:Create(p, TweenInfo.new(0.2, Enum.EasingStyle.Linear), {Size = Vector3.new(7, 7, 7)}
- local shrink = TweenService:Create(p, TweenInfo.new(0.2, Enum.EasingStyle.Linear), {Size = Vector3.new(3, 3, 3)}
- -- Activate the "charging" part, then explode
- for i = 1,cuenta do
- grow:Play()
- task.wait(0.3)
- shrink:Play()
- task.wait(0.3)
- end
- p:Destroy()
- local exp = Instance.new("Explosion")
- exp.BlastPressure, exp.BlastRadius, exp.ExplosionType, exp.Position = 0, 0, Enum.ExplosionType.NoCraters, torso.Position
- exp.Parent = workspace
- -- Set up a time limit for activating the move
- local limit = tick() + 20
- coroutine.wrap(function()
- repeat task.wait(1) until tick() >= limit or hum:GetState() == Enum.HumanoidStateType.Died or finished
- finished = true
- end)()
- -- Wait for the user to enter landing anim before activating the move (if they don't jump or whatever, the time limit gets them)
- if hum:GetState() ~= Enum.HumanoidStateType.Freefall then
- repeat task.wait(1/60) until hum:GetState() == Enum.HumanoidStateType.Jumping or finished
- end
- repeat task.wait(1/60) until hum:GetState() == Enum.HumanoidStateType.Landed or tick() >= limit or finished
- finished = true
- -- Perform AoE and explode
- -- Make melee hitbox, increase speed, cut HP, disable jump, disable moves
- -- Perform last AoEs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement