Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game:GetService("Players").LocalPlayer
- local mouse = player:GetMouse()
- repeat wait() until player.Character
- local character = player.Character
- character.Humanoid.MaxHealth = 1000
- wait(.05)
- character.Humanoid.Health = character.Humanoid.MaxHealth
- character.Humanoid.WalkSpeed = 28
- character.Animate:Destroy()
- character.Humanoid.Animator:Destroy()
- FPS = 1/game:GetService("RunService").RenderStepped:wait()
- local Damage = 1
- local MaxMana = 300
- local Mana = MaxMana
- function sound(parent, id, playonremove, volume, speed)
- local audio = Instance.new("Sound", parent)
- audio.SoundId = id
- audio.PlayOnRemove = playonremove
- audio.PlaybackSpeed = speed
- audio.Volume = volume
- if playonremove then
- audio:Destroy()
- else
- audio.Looped = true
- audio.Playing = true
- end
- return audio
- end
- local theme = sound(character.HumanoidRootPart, "rbxassetid://290263119", false, .5, 1)
- function hitBox(object, offset, radius, damage, physical, knockback)
- for i, v in pairs(workspace:GetChildren()) do
- local humanoid = v:FindFirstChild("Humanoid")
- local torso = v:FindFirstChild("HumanoidRootPart")
- if torso and (torso.CFrame.p - (object.CFrame*offset).p).magnitude < radius then
- if humanoid then
- if not humanoid:IsDescendantOf(character) then
- humanoid:TakeDamage(damage*Damage)
- torso.Velocity = character.HumanoidRootPart.CFrame.lookVector*knockback
- if physical then
- sound(torso, "rbxassetid://566593606", true, 1, .9)
- else
- return
- end
- end
- end
- end
- end
- end
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- fx = {
- ["fireblast"] = function(cframe)
- local cylin = Instance.new("Part", workspace)
- cylin.Anchored = true
- cylin.CanCollide = false
- cylin.Material = Enum.Material.Neon
- cylin.BrickColor = BrickColor.new("Bright red")
- cylin.Shape = "Cylinder"
- game:GetService("Debris"):AddItem(cylin, 5)
- local cymesh = Instance.new("SpecialMesh", cylin)
- cymesh.Scale = Vector3.new(.1, .3, .3)
- cymesh.MeshType = Enum.MeshType.Cylinder
- cylin.CFrame = cframe*CFrame.Angles(math.rad(90), math.rad(90), 0)
- local square = Instance.new("Part", workspace)
- square.Anchored = true
- square.CanCollide = false
- square.Material = Enum.Material.Neon
- square.BrickColor = BrickColor.new("Bright red")
- square.Shape = "Block"
- game:GetService("Debris"):AddItem(square, 5)
- square.Size = Vector3.new(.5, .5, .5)
- local sqmesh = Instance.new("SpecialMesh", square)
- sqmesh.Scale = Vector3.new(.5, .5, .5)
- sqmesh.MeshType = Enum.MeshType.Brick
- square.CFrame = cylin.CFrame
- --[[
- local projectile = Instance.new("Part", workspace)
- projectile.Anchored = false
- projectile.CanCollide = false
- projectile.Size = Vector3.new(2, 2, 2)
- projectile.Material = Enum.Material.Neon
- projectile.BrickColor = BrickColor.new("Bright red")
- projectile.Shape = "Ball"
- projectile.CFrame = cframe
- projectile.CFrame = CFrame.new(projectile.CFrame.p, mouse.Hit.p)
- local circle = Instance.new("SpecialMesh", projectile)
- circle.Scale = Vector3.new(2, 2, 2)
- circle.MeshType = Enum.MeshType.Sphere
- local BV = Instance.new("BodyVelocity", projectile)
- BV.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- BV.Velocity = projectile.CFrame.lookVector*150
- game:GetService("Debris"):AddItem(projectile, 1.8)
- projectile.Touched:connect(function(hit)
- local humanoid = hit.Parent:FindFirstChild("Humanoid")
- if humanoid then
- if not humanoid:IsDescendantOf(character) then
- humanoid:TakeDamage(math.random(6, 11))
- end
- end
- end)
- --]]
- spawn(function()
- for i = 0, 1, .05 do
- game:GetService("RunService").RenderStepped:wait()
- cylin.Transparency = i
- square.Transparency = i
- cymesh.Scale = cymesh.Scale + Vector3.new(0, 1.8, 1.8)
- sqmesh.Scale = sqmesh.Scale + Vector3.new(1.8, 1.8, 1.8)
- square.CFrame = square.CFrame*CFrame.Angles(.3, .3, .3)
- end
- cylin:Destroy()
- square:Destroy()
- end)
- end;
- ["fireburst"] = function(cframe, duration)
- spawn(function()
- hitBox(character.HumanoidRootPart, CFrame.new(0, 0, 0), 38, 30, false, 45)
- sound(character.HumanoidRootPart, "rbxassetid://233856115", true, 1, 1)
- local outer = Instance.new("Part", workspace)
- outer.Anchored = true
- outer.CanCollide = false
- outer.Material = Enum.Material.Neon
- outer.BrickColor = BrickColor.new("Bright red")
- outer.Shape = "Ball"
- outer.Size = Vector3.new(12, 12, 12)
- outer.CFrame = cframe
- game:GetService("Debris"):AddItem(outer, 9)
- local outermesh = Instance.new("SpecialMesh", outer)
- outermesh.MeshType = Enum.MeshType.Sphere
- local inner = Instance.new("Part", workspace)
- local innermesh = Instance.new("SpecialMesh", inner)
- innermesh.MeshType = Enum.MeshType.Brick
- inner.Anchored = true
- inner.CanCollide = false
- inner.Material = Enum.Material.Neon
- inner.BrickColor = BrickColor.new("Bright red")
- inner.Shape = "Block"
- inner.Size = Vector3.new(12, 12, 12)
- inner.CFrame = cframe
- game:GetService("Debris"):AddItem(inner, 9)
- for i = 0, duration, .05 do
- game:GetService("RunService").Heartbeat:wait()
- outer.Transparency = i
- inner.Transparency = i
- outermesh.Scale = outermesh.Scale + Vector3.new(.4, .4, .4)
- innermesh.Scale = innermesh.Scale + Vector3.new(.4, .4, .4)
- outer.CFrame = outer.CFrame*CFrame.Angles(.3, .3, .3)
- inner.CFrame = inner.CFrame*CFrame.Angles(.3, .3, .3)
- end
- outer:Destroy()
- inner:Destroy()
- end)
- end
- }
- local rarm = Instance.new("Weld", character)
- rarm.Part0 = character.Torso
- rarm.Part1 = character["Right Arm"]
- rarm.C0 = CFrame.new(1.5, 0, 0)
- local larm = Instance.new("Weld", character)
- larm.Part0 = character.Torso
- larm.Part1 = character["Left Arm"]
- larm.C0 = CFrame.new(-1.5, 0, 0)
- local rleg = Instance.new("Weld", character)
- rleg.Part0 = character.Torso
- rleg.Part1 = character["Right Leg"]
- rleg.C0 = CFrame.new(.5, -2, 0)
- local lleg = Instance.new("Weld", character)
- lleg.Part0 = character.Torso
- lleg.Part1 = character["Left Leg"]
- lleg.C0 = CFrame.new(-.5, -2, 0)
- local torso = Instance.new("Weld", character)
- torso.Part0 = character.HumanoidRootPart
- torso.Part1 = character.Torso
- local head = Instance.new("Weld", character)
- head.Part0 = character.Torso
- head.Part1 = character.Head
- head.C0 = CFrame.new(0, 1.5, 0)
- local blade = Instance.new("Part", character["Right Arm"])
- blade.CanCollide = false
- blade.Anchored = false
- blade.Locked = true
- blade.Size = Vector3.new(0.26, 1.14, 8.12)
- local blademesh = Instance.new("SpecialMesh", blade)
- blademesh.MeshId = "rbxassetid://409664704"
- blademesh.TextureId = "rbxassetid://409665021"
- blademesh.Scale = Vector3.new(3.8, 3.8, 4.5)
- local sword = Instance.new("Weld", character)
- sword.Part0 = character["Right Arm"]
- sword.Part1 = blade
- sword.C0 = CFrame.new(0, -.8, -2.9)*CFrame.Angles(0, 0, 0)
- local flamehood = Instance.new("Part", character.Head)
- flamehood.Anchored = false
- flamehood.CanCollide = false
- flamehood.Transparency = .4
- flamehood.BrickColor = BrickColor.new("Bright red")
- flamehood.Material = Enum.Material.Neon
- flamehood.Size = Vector3.new(1.6, 1.6, 2)
- flamehood.Locked = true
- local hoodmesh = Instance.new("SpecialMesh", flamehood)
- hoodmesh.MeshId = "http://www.roblox.com/asset/?id=72538389"
- hoodmesh.Scale = Vector3.new(2, 2, 2)
- local hood = Instance.new("Weld", character)
- hood.Part0 = character.Head
- hood.Part1 = flamehood
- hood.C0 = CFrame.new(0, -1.7, 1.2)*CFrame.Angles(math.rad(160), 0, 0)
- local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
- local bottom = Instance.new("Frame", gui)
- bottom.AnchorPoint = Vector2.new(.5, .5)
- bottom.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- bottom.Position = UDim2.new(0.5, 0, 0.9, 0)
- bottom.Size = UDim2.new(0.3, 0, .05, 0)
- local top = Instance.new("Frame", bottom)
- top.BackgroundColor3 = Color3.fromRGB(255, 66, 29)
- top.AnchorPoint = Vector2.new(.5, .5)
- top.Position = UDim2.new(.5, 0, .5, 0)
- top.Size = UDim2.new(1, -20, 1, -15)
- local Sine = 0
- local Change = 1
- local State = "Idle"
- local Form = "Standard"
- debounces = {
- ["Attacking"] = false
- }
- local pos = blade.CFrame
- game:GetService("RunService").RenderStepped:connect(function()
- FPS = 1/game:GetService("RunService").RenderStepped:wait()
- top.Size = UDim2.new(Mana/MaxMana, -20, 1, -15)
- if Form == "Standard" and Mana <= 300 then
- Mana = Mana + .1
- end
- --[[
- if debounces["Attacking"] == true then
- local part = Instance.new("Part", workspace)
- local lastPos = blade.CFrame
- local nextPos = pos
- part.Anchored = true
- part.CanCollide = false
- part.BrickColor = BrickColor.new("Really red")
- part.Material = Enum.Material.Neon
- local distance = (nextPos.p - lastPos.p).magnitude
- part.FormFactor = Enum.FormFactor.Brick
- part.Size = Vector3.new(.2, .2, distance)
- part.CFrame = CFrame.new((nextPos.p + lastPos.p)/2, nextPos.p)
- pos = blade.CFrame
- game:GetService("Debris"):AddItem(part, 1)
- end
- --]]
- Sine = tick() * Change * 60
- walkingMagnitude = Vector3.new(character.Torso.Velocity.X, 0, character.Torso.Velocity.Z).magnitude
- if walkingMagnitude > 2 then
- State = "Walking"
- rleg.C0 = clerp(rleg.C0, CFrame.new(.6, -2-math.sin(Sine/3)/1.3/1.2, -math.cos(Sine/3)/1.3*1.9)*CFrame.Angles(math.cos(Sine/3)/1.3*1.9, 0, math.rad(5)), .15)
- lleg.C0 = clerp(lleg.C0, CFrame.new(-.6, -2+math.sin(Sine/3)/1.3/1.2, math.cos(Sine/3)/1.3*1.9)*CFrame.Angles(-math.cos(Sine/3)/1.3*1.9, 0, math.rad(-5)), .15)
- if debounces["Attacking"] == false then
- rarm.C0 = clerp(rarm.C0, CFrame.new(1.7, 0, .2+math.sin(Sine/3)/1.3/5.5)*CFrame.Angles(math.rad(-15)-math.sin(Sine/3)/1.3/5.5, math.rad(-15)+math.sin(Sine/3)/1.3/5.5, math.rad(10)), .15)
- larm.C0 = clerp(larm.C0, CFrame.new(-1.6, 0, -math.sin(Sine/3)/1.3*1.7)*CFrame.Angles(math.sin(Sine/3)/1.3, 0, math.rad(-5)), .15)
- torso.C0 = clerp(torso.C0, CFrame.new(0, 0, 0)*CFrame.Angles(math.rad(-10)+math.sin(Sine/1.5)/1.3/4, math.sin(Sine/3)/1.3/2.5, 0), .15)
- head.C0 = clerp(head.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-10), 0, 0), .15)
- sword.C0 = clerp(sword.C0, CFrame.new(0, -.8, -2.9)*CFrame.Angles(0, 0, 0), .15)
- end
- elseif walkingMagnitude < 2 then
- State = "Idle"
- rleg.C0 = clerp(rleg.C0, CFrame.new(.6, -2+math.sin(Sine/7)/1.2/4.5, -.3)*CFrame.Angles(0, 0, math.rad(5)), .15)
- lleg.C0 = clerp(lleg.C0, CFrame.new(-.6, -2+math.sin(Sine/7)/1.2/4.5, .3)*CFrame.Angles(math.rad(-10), 0, math.rad(-5)), .15)
- if debounces["Attacking"] == false then
- rarm.C0 = clerp(rarm.C0, CFrame.new(1.6, math.cos(Sine/7)/1.2/4.5, -.2)*CFrame.Angles(math.rad(10), 0, math.rad(5)), .15)
- larm.C0 = clerp(larm.C0, CFrame.new(-1.6, math.cos(Sine/7)/1.2/4.5, 0)*CFrame.Angles(math.rad(-10), 0, math.rad(-5)), .15)
- torso.C0 = clerp(torso.C0, CFrame.new(0, -math.sin(Sine/7)/1.2/4.5, 0)*CFrame.Angles(0, math.rad(-20), 0), .15)
- head.C0 = clerp(head.C0, CFrame.new(0, 1.5, -.1)*CFrame.Angles(math.rad(-10), math.rad(20), 0), .15)
- sword.C0 = clerp(sword.C0, CFrame.new(0, -.8, -2.9)*CFrame.Angles(0, 0, 0), .15)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement