Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local character = player.Character
- local damage = require(workspace.Lobby.DamageModule)
- local fx = require(game.ReplicatedStorage.fxdrag)
- local mouse = player:GetMouse()
- mouse.TargetFilter = workspace
- local buff = game.ReplicatedStorage["Data"]:InvokeServer()[5][script.Name] or {Min = 0, Med = 0, Odd = 0}
- local base_hp = 250
- local base_spd = 20
- local base_dmg = 15
- local hp = base_hp
- local spd = base_spd
- local dmg = base_dmg
- local heal = false
- local knock = false
- local flame = fx.GetFlame("Storm")
- local pflame = fx.GetFlame("Storm",3)
- local mode_id = math.random(3)
- function switch()
- local flame_id = "Haze"
- hp = base_hp
- spd = base_spd
- dmg = base_dmg
- if mode_id == 1 then
- flame_id = "Storm"
- dmg = base_dmg + 10
- elseif mode_id == 2 then
- flame_id = "Flux"
- hp = base_hp * 2
- elseif mode_id == 3 then
- flame_id = "Narukami"
- dmg = base_dmg + 5
- hp = base_hp + 50
- --[[
- elseif mode_id == 4 then
- flame_id = "Haze"
- hp = base_hp * 2
- spd = base_spd
- dmg = base_dmg * -2
- elseif mode_id == 5 then
- flame_id = "Sky"
- local resizeModule = require(game.ReplicatedStorage.Models.resizeModule.ResizeModule)
- resizeModule.ScaleCharacter(character,0.5,{ScaleHats = true})
- dmg = dmg * -1
- spd = spd * 1.5
- hp = hp * 2
- --]]
- end
- flame = fx.GetFlame(flame_id)
- pflame = fx.GetFlame(flame_id,1/2)
- character.Humanoid.MaxHealth = hp
- character.Humanoid.Health = hp
- character.Humanoid.WalkSpeed = spd
- end
- switch()
- local blade
- local goal
- local active
- local debounces = {}
- local anims = script -- Animation parent
- -- Animation Objects should go into the base of the script
- -- Same goes for particles
- local anim = {}
- if anims then
- for _,animation in pairs(anims:GetChildren()) do
- if animation:IsA("Animation") then
- anim[animation.Name] = character.Humanoid:LoadAnimation(animation)
- end
- end
- end
- local container = Instance.new("Folder",character)
- local ContextActionModule = require(game.ReplicatedStorage.ContextActionModule)
- ContextActionModule.InputBegan(function(k,chatting)
- if character.Humanoid.Health <= 0 or character.Torso.Anchored or chatting then return false end
- local n = k.UserInputType
- if k.UserInputType == Enum.UserInputType.Keyboard then
- local n = k.KeyCode
- if k.KeyCode == Enum.KeyCode.Q and not debounces["Basic"] then
- debounces["Basic"] = true
- debounces["Global"] = true
- local part = fx.Projectile({Parent = character, Size = Vector3.new(1,6,1), Color = flame}, true)
- fx.Mesh(part, 582110789).Scale = Vector3.new(1,1,1)*1.5
- fx.Emitter(part,game.ReplicatedStorage.EmitterService.Ace.Flash)
- local mainWeld = Instance.new("Weld",part)
- mainWeld.Part0 = character["Right Arm"]
- mainWeld.Part1 = part
- mainWeld.C0 = CFrame.new(0, -1, -1.5) * CFrame.Angles(math.rad(270),math.rad(0),math.rad(0))
- part.Touched:Connect(function(hit)
- if active and damage(part,hit,dmg,1,player,dmg,dmg) then
- end
- end)
- blade = part
- character.Humanoid.MaxHealth = hp
- fx.Orb(character.Torso,flame,{Special = function() character.Humanoid.Health = hp end})
- character.Humanoid.WalkSpeed = spd
- debounces["Global"] = false
- if anims:FindFirstChild("Idle") then
- anim.Idle:Play()
- end
- elseif not debounces["Basic"] or debounces["Global"] then
- return
- --[[elseif k.KeyCode == Enum.KeyCode.Q and not debounces[n] then
- debounces[n] = true
- mode_id = mode_id%5 + 1
- switch()
- blade.Color = flame
- fx.Orb(character.Torso,flame,{Material = "Glass", Duration = 2, Damage = dmg, Healing = dmg})
- wait(3)
- debounces[n] = false
- --]]
- elseif k.KeyCode == Enum.KeyCode.E and not debounces[n] then
- debounces[n] = true
- local barrier = fx.Projectile({Parent = character, CanCollide = false, Material = Enum.Material.Glass, Color = flame},10)
- local mainWeld = Instance.new("Weld",barrier)
- mainWeld.Part0 = character["Torso"]
- mainWeld.Part1 = barrier
- mainWeld.C0 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(90),0,0)
- fx.Mesh(barrier,16606212).Scale = Vector3.new(1,1,1)*3
- for i=1,10 do
- local target = (dmg>0 and fx.AutoTarget(125) or fx.AutoTargetFriendly(250))
- if target then
- pcall(function() damage(barrier,target.Torso,dmg,0.5,player,-dmg,dmg) end)
- local a = Instance.new("Attachment",target.Torso)
- local b = Instance.new("Attachment",barrier)
- goal = target.Torso
- local c = Instance.new("Beam",barrier)
- c.Color = ColorSequence.new(pflame)
- c.Attachment0 = a
- c.Attachment1 = b
- fx.Sound(537581716,barrier,2,1.5)
- wait(1)
- goal = false
- a:Destroy()
- b:Destroy()
- else
- wait(1)
- end
- end
- debounces[n] = false
- elseif k.KeyCode == Enum.KeyCode.R and not debounces[n] and goal then
- debounces[n] = true
- fx.Sound(491270608,character.Torso)
- fx.Velocity(character.Torso,CFrame.new(character.HumanoidRootPart.Position,goal.Position).lookVector*100,0.25)
- wait(0.5)
- fx.Sound(576124533,character.Torso)
- spawn(function()
- fx.Orb(goal,flame,{Rings = 2, Duration = 1.5, Reach = 1.5, Damage = dmg/2, Material = "Neon"})
- end)
- wait(1)
- debounces[n] = false
- --[[elseif k.KeyCode == Enum.KeyCode.T and not debounces[n] and goal then
- debounces[n] = true
- fx.Sound(491270608,goal)
- fx.Velocity(goal,CFrame.new(goal.Position,character.HumanoidRootPart.Position).lookVector*100,0.25)
- wait(0.5)
- fx.Sound(576124533,character.Torso)
- spawn(function()
- fx.Orb(goal,flame,{Rings = 2, Duration = 1.5, Reach = 1.5, Damage = dmg/2, Material = "Neon"})
- end)
- wait(1)
- debounces[n] = false
- --]]
- elseif k.KeyCode == Enum.KeyCode.F and not debounces[n] then
- debounces[n] = true
- debounces["Global"] = true
- anim.Strike:Play()
- dmg = dmg * 3
- wait(0.9)
- active = true
- fx.Velocity(character.Torso,character.HumanoidRootPart.CFrame.lookVector*50,0.5)
- wait(1.1)
- active = false
- fx.Orb(character.Torso,flame,{Rings = 2, Duration = 2.5, Reach = 1.5, Damage = dmg/2, Material = "Neon"})
- dmg = dmg / 3
- debounces["Global"] = false
- wait(5)
- debounces[n] = false
- end
- elseif k.UserInputType == Enum.UserInputType.MouseButton1 and not debounces[n] and debounces["Basic"] then
- debounces[n] = true
- debounces["Global"] = true
- anim.Poke:Play()
- fx.Sound(182765513,character.Torso)
- wait(0.2)
- active = true
- wait(0.45)
- active = false
- debounces["Global"] = false
- debounces[n] = false
- fx.Orb(character.Torso,flame,{Rings = 2, Duration = 0.5, Reach = 1.5, Damage = dmg/2, Material = "Neon"})
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement