Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Script made by Pedrorb03. Enjoy it ;)
- -- Set Up
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 100
- game.Players.LocalPlayer.Character.Humanoid.MaxHealth = 100000
- game.Players.LocalPlayer.Character.Humanoid.Health = 100000
- local music = nil
- while music == nil do
- local music = Instance.new("Sound",game.Players.LocalPlayer.Character) music.SoundId = "rbxassetid://186942568" music.Looped = true music:Play()
- if music ~= nil then
- break
- end
- end
- for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if part.ClassName == "Accessory" or part.ClassName == "BodyColors" or part.ClassName == "Shirt" or part.ClassName == "Pants" then
- part:remove()
- end
- end
- for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if part:IsA("BasePart") then
- part.BrickColor = BrickColor.new("Pastel brown")
- end
- end
- for _,anim in pairs(game.Players.LocalPlayer.Character.Humanoid:GetPlayingAnimationTracks()) do
- anim:Stop()
- end
- game.Players.LocalPlayer.Character.Animate:remove()
- local rootJoint = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
- local joints = {}
- for _,join in pairs(game.Players.LocalPlayer.Character.Torso:GetChildren()) do
- if join.ClassName == "Motor6D" then
- table.insert(joints,join:Clone())
- end
- end
- game.Players.LocalPlayer.Character.Torso.Size = game.Players.LocalPlayer.Character.Torso.Size+Vector3.new(0,0.5,0)
- game.Players.LocalPlayer.Character["Right Arm"].Size = game.Players.LocalPlayer.Character["Right Arm"].Size+Vector3.new(0,0.5,0)
- game.Players.LocalPlayer.Character["Left Arm"].Size = game.Players.LocalPlayer.Character["Left Arm"].Size+Vector3.new(0,0.5,0)
- game.Players.LocalPlayer.Character["Right Leg"].Size = game.Players.LocalPlayer.Character["Right Leg"].Size+Vector3.new(0,0.5,0)
- game.Players.LocalPlayer.Character["Left Leg"].Size = game.Players.LocalPlayer.Character["Left Leg"].Size+Vector3.new(0,0.5,0)
- rootJoint.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- for _,joint in pairs(joints) do
- joint.Parent = game.Players.LocalPlayer.Character.Torso
- end
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0-Vector3.new(0,0.5,0)
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0-Vector3.new(0,0.5,0)
- game.Players.LocalPlayer.Character.HumanoidRootPart["RootJoint"].C0 = game.Players.LocalPlayer.Character.HumanoidRootPart["RootJoint"].C0+Vector3.new(0,0.5,0)
- game.Players.LocalPlayer.Character.Torso.Neck.C0 = game.Players.LocalPlayer.Character.Torso.Neck.C0+Vector3.new(0,0.25,0)
- game.Players.LocalPlayer.Character.Humanoid.HipHeight = -0.3
- darknessBalls = {}
- darknessBall = Instance.new("Part") darknessBall.Size = Vector3.new(0,0,0) darknessBall.Anchored = true darknessBall.CanCollide = false
- darknessBall.Transparency = 1
- particle = Instance.new("ParticleEmitter",darknessBall) particle.Color = ColorSequence.new(Color3.fromRGB(120,120,120))
- particle.LightEmission = 0.65
- particle.LightInfluence = 0
- particle.Size = NumberSequence.new(5)
- particle.Texture = "rbxassetid://1084224253"
- particleTrans = {NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.1,0.4),NumberSequenceKeypoint.new(1,1)}
- particle.Transparency = NumberSequence.new(particleTrans)
- particle.ZOffset = 8
- particle.LockedToPart = true
- particle.Lifetime = NumberRange.new(5,5)
- particle.Rate = 20
- particle.Rotation = NumberRange.new(-360,360)
- particle.RotSpeed = NumberRange.new(200,200)
- particle.Speed = NumberRange.new(0,0)
- game.Players.LocalPlayer.Character.Head.face.Texture = "http://www.roblox.com/asset/?id=1082920525"
- hair = Instance.new("Part") hair.Size = Vector3.new(2,1,1) hair.CanCollide = false
- mesh = Instance.new("SpecialMesh",hair) mesh.Offset = Vector3.new(-0.15, -3.05, 0.41) mesh.Scale = Vector3.new(11, 8.3, 9) mesh.MeshId = "rbxassetid://1082583627" mesh.TextureId = "rbxassetid://1082570148"
- hair.Parent = game.Players.LocalPlayer.Character.Head
- weld = Instance.new("Weld",hair) weld.Part0 = hair weld.Part1 = game.Players.LocalPlayer.Character.Head
- masamune = Instance.new("Part") masamune.Size = Vector3.new(1, 13, 1) masamune.CanCollide = false
- mesh = Instance.new("SpecialMesh",masamune) mesh.Offset = Vector3.new(0,0,0) mesh.Scale = Vector3.new(6.5,6.5,6.5) mesh.MeshId = "rbxassetid://1082595355" mesh.TextureId = "rbxassetid://1082570148"
- masamune.Parent = game.Players.LocalPlayer.Character
- weld = Instance.new("Weld") weld.Part0 = masamune weld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
- weld.C0 = CFrame.new(0.75,-5.9,0)*CFrame.Angles(math.rad(90),0,math.rad(270))
- weld.Parent = masamune
- shirt = Instance.new("Shirt",game.Players.LocalPlayer.Character) shirt.ShirtTemplate = "rbxassetid://419487588"
- pants = Instance.new("Pants",game.Players.LocalPlayer.Character) pants.PantsTemplate = "rbxassetid://419487610"
- attach0 = Instance.new("Attachment",masamune) attach0.Position = Vector3.new(0.1,6.2,0)
- attach1 = Instance.new("Attachment",masamune) attach1.Position = Vector3.new(-0.2,-4.9,0)
- trail = Instance.new("Trail",masamune) trail.Attachment0 = attach0 trail.Attachment1 = attach1
- trail.Lifetime = 0.2
- trail.Transparency = NumberSequence.new(0,1)
- trail.LightEmission = 0
- trail.Color = ColorSequence.new(Color3.new(0,0,0))
- wing = Instance.new("Part") wing.Name = "Wing" wing.Anchored = false wing.CanCollide = false wing.Color = Color3.fromRGB(30,30,30) wing.Size = Vector3.new(0,0,0)
- mesh = Instance.new("SpecialMesh",wing) mesh.MeshId = "rbxassetid://1090041973" mesh.Scale = Vector3.new(0.01,0.01,0.01)
- flyingCut = Instance.new("Part") flyingCut.Anchored = true flyingCut.Size = Vector3.new(0,13,4) flyingCut.Transparency = 1 flyingCut.CanCollide = false
- attach0 = Instance.new("Attachment",flyingCut) attach0.Position = Vector3.new(0,6,2)
- attach1 = Instance.new("Attachment",flyingCut) attach1.Position = Vector3.new(0,-1,0)
- attach2 = Instance.new("Attachment",flyingCut) attach2.Position = Vector3.new(0,-6,2)
- trail = Instance.new("Trail",flyingCut) trail.Attachment0 = attach0 trail.Attachment1 = attach1
- trail.Lifetime = 0.2
- trail.Transparency = NumberSequence.new(0,1)
- trail.LightEmission = 0
- trail.Color = ColorSequence.new(Color3.new(0,0,0))
- trail = Instance.new("Trail",flyingCut) trail.Attachment0 = attach1 trail.Attachment1 = attach2
- trail.Lifetime = 0.2
- trail.Transparency = NumberSequence.new(0,1)
- trail.LightEmission = 0
- trail.Color = ColorSequence.new(Color3.new(0,0,0))
- cuts = {}
- Cutpart = Instance.new("Part") Cutpart.Size = Vector3.new(0,0,0) Cutpart.Color = Color3.fromRGB(255,210,0) Cutpart.Anchored = false
- Cutpart.CanCollide = false
- Cutpart.Material = Enum.Material.Neon
- mesh = Instance.new("SpecialMesh",Cutpart) mesh.MeshType = Enum.MeshType.Sphere
- -------------
- function swordCut()
- local initPos = masamune.CFrame:toWorldSpace(CFrame.new(0,-4.9,0)) -Vector3.new(0,0.1,0)
- local initPos2 = masamune.CFrame:toWorldSpace(CFrame.new(0,6.75,0))
- local ray = Ray.new(initPos.p,-(initPos.p-initPos2.p).Unit*13)
- local hit,position,normal = game.Workspace:FindPartOnRay(ray,game.Players.LocalPlayer.Character)
- if hit then
- if hit.CanCollide == true then
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-300
- end
- local parto = Cutpart:Clone()
- if hit.Parent:FindFirstChild("Humanoid") then
- parto.Material = Enum.Material.SmoothPlastic
- parto.Color = Color3.fromRGB(255,0,0)
- end
- parto.CFrame = CFrame.new(position,position+normal)
- parto.Transparency = 1
- table.insert(cuttedList,parto)
- if #cuttedList > 0 then
- for i=1,#cuttedList do
- if cuttedList[i+1] == parto then
- if cuttedList[i].Material == parto.Material then
- if (cuttedList[i].Position-parto.Position).magnitude <= 6 then
- parto.Transparency = 0
- parto.Size = Vector3.new(0.1,0.1,(cuttedList[i].CFrame.p-parto.Position).magnitude)
- parto.CFrame = CFrame.new((cuttedList[i].CFrame.p+parto.Position)/2,parto.Position)
- end
- end
- end
- end
- end
- local weld = Instance.new("Weld") weld.Part0 = parto weld.Part1 = hit
- weld.C0 = parto.CFrame:inverse()*hit.CFrame
- weld.Parent = parto
- parto.Parent = game.Workspace
- game:GetService("Debris"):AddItem(parto,5)
- end
- end
- end
- function flyingCut2()
- for _,cutt in pairs(cuts) do
- local ignore = {}
- for _,child in pairs(game.Workspace:GetChildren()) do
- if child:FindFirstChild("Humanoid") then
- local did = false
- for _,ignor in pairs(ignore) do
- if ignore == child then
- did = true
- end
- end
- if did == false then
- for _,part in pairs(child:GetChildren()) do
- if part:IsA("BasePart") then
- if (part.Position-cutt.Position).magnitude <= 6 then
- table.insert(ignore,child)
- child.Humanoid.Health = child.Humanoid.Health-50
- end
- end
- end
- end
- end
- end
- end
- end
- function swordCut2()
- local initPos2 = masamune.CFrame:toWorldSpace(CFrame.new(0,-4.9,0)) -Vector3.new(0,0.1,0)
- local initPos = masamune.CFrame:toWorldSpace(CFrame.new(0,6.75,0))
- local ray = Ray.new(initPos.p,-(initPos.p-initPos2.p).Unit*13)
- local hit,position,normal = game.Workspace:FindPartOnRay(ray,game.Players.LocalPlayer.Character)
- if hit then
- if hit.CanCollide == true then
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health-300
- end
- local parto = Cutpart:Clone()
- if hit.Parent:FindFirstChild("Humanoid") then
- parto.Material = Enum.Material.SmoothPlastic
- parto.Color = Color3.fromRGB(255,0,0)
- end
- parto.CFrame = CFrame.new(position,position+normal)
- parto.Transparency = 1
- table.insert(cuttedList2,parto)
- if #cuttedList2 > 0 then
- for i=1,#cuttedList2 do
- if cuttedList2[i+1] == parto then
- if cuttedList2[i].Material == parto.Material then
- if (cuttedList2[i].Position-parto.Position).magnitude <= 6 then
- parto.Transparency = 0
- parto.Size = Vector3.new(0.1,0.1,(cuttedList2[i].CFrame.p-parto.Position).magnitude)
- parto.CFrame = CFrame.new((cuttedList2[i].CFrame.p+parto.Position)/2,parto.Position)
- end
- end
- end
- end
- end
- local weld = Instance.new("Weld") weld.Part0 = parto weld.Part1 = hit
- weld.C0 = parto.CFrame:inverse()*hit.CFrame
- weld.Parent = parto
- parto.Parent = game.Workspace
- game:GetService("Debris"):AddItem(parto,5)
- end
- end
- end
- -- Animations
- walking = false
- usingLegs = false
- function normalPos()
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-2,0.5,0)*CFrame.Angles(math.rad(-20),math.rad(70),math.rad(-10))
- end
- function wingPos()
- local wingu = wing:Clone()
- wingu.Name = "Wing"
- wingu.Mesh.Scale = Vector3.new(0,0.04,0.04)
- local wingu2 = wingu:Clone()
- wingu2.Name = "Main"
- wingu2.Parent = wingu
- local weld = Instance.new("Weld") weld.Part0 = wingu2 weld.Part1 = wingu weld.C0 = CFrame.new(0,0.5,0)
- weld.Parent = wingu2
- local weld = Instance.new("Weld") weld.Part0 = wingu weld.Part1 = game.Players.LocalPlayer.Character.Torso
- weld.C0 = CFrame.new(0,-1.75,-0.5)*CFrame.Angles(0,math.rad(10),math.rad(-15))
- weld.Parent = wingu
- wingu.Parent = game.Players.LocalPlayer.Character
- for i=1,30,1 do
- wait()
- wingu.Mesh.Scale = Vector3.new(i/400,0.04,0.04)
- wingu.Mesh.Offset = Vector3.new(i/5,0,0)
- wingu2.Mesh.Scale = Vector3.new(i/400,0.04,0.04)
- wingu2.Mesh.Offset = Vector3.new(i/5,0,0)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1.4+i/100,0.85,-0.5)*CFrame.Angles(math.rad(0),math.rad(60-i*2),math.rad(90))
- end
- wait(1)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1.5,0.5,-0.5)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(50))
- end
- function wingEnd()
- local wingu = game.Players.LocalPlayer.Character.Wing
- local wingu2 = game.Players.LocalPlayer.Character.Wing.Main
- for i=30,1,-1 do
- wait()
- wingu.Mesh.Scale = Vector3.new(i/400,0.04,0.04)
- wingu.Mesh.Offset = Vector3.new(i/5,0,0)
- wingu2.Mesh.Scale = Vector3.new(i/400,0.04,0.04)
- wingu2.Mesh.Offset = Vector3.new(i/5,0,0)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1.4+i/100,0.85,-0.5)*CFrame.Angles(math.rad(0),math.rad(30+i*2),math.rad(90))
- end
- wingu:remove()
- wingu2:remove()
- wait(1)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0)*CFrame.Angles(math.rad(0),math.rad(90),math.rad(0))
- end
- function fly()
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(70),math.rad(180),math.rad(0))
- end
- function flyEnd()
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(180),math.rad(0))
- end
- function slice()
- for i=1,30,3 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Shoulder"].C0 = CFrame.new(-1+i/100,1-i/50,-0.25+i/100)*CFrame.Angles(math.rad(90),math.rad(-70),math.rad(-40+i*6))
- end
- end
- function walkStart()
- walking = true
- for i=-30,30,5 do
- wait()
- if usingLegs == true then
- break
- end
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1.5,0)*CFrame.Angles(0,math.rad(90),math.rad(i))
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1,-1.5,0)*CFrame.Angles(math.rad(360),math.rad(270),math.rad(i))
- end
- for i=30,-30,-5 do
- wait()
- if usingLegs == true then
- break
- end
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1.5,0)*CFrame.Angles(0,math.rad(90),math.rad(i))
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1,-1.5,0)*CFrame.Angles(math.rad(360),math.rad(270),math.rad(i))
- end
- walking = false
- end
- function walkEnd()
- if usingLegs == false then
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1,-1.5,0)*CFrame.Angles(0,math.rad(90),math.rad(0))
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1,-1.5,0)*CFrame.Angles(math.rad(360),math.rad(270),math.rad(0))
- end
- end
- normalPos()
- --
- BodyPos = Instance.new("BodyPosition")
- cuttedList = {}
- cuttedList2 = {}
- cuttedList3 = {}
- cuttedList4 = {}
- flying = false
- cooldown = false
- wingUp = true
- wingRot = 15
- game:GetService("UserInputService").InputBegan:connect(function(key)
- if cooldown == false then
- if key.KeyCode == Enum.KeyCode.E then
- slice()
- normalPos()
- end
- if key.KeyCode == Enum.KeyCode.Z then
- cooldown = true
- if not game.Players.LocalPlayer.Character:FindFirstChild("Wing") then
- BodyPos.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
- BodyPos.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart
- game.Players.LocalPlayer.Character.Humanoid.PlatformStand = true
- for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if part:IsA("BasePart") then
- local bodyForce = Instance.new("BodyForce",part) bodyForce.Name = "FlyingGravity" bodyForce.Force = Vector3.new(0,part:GetMass()*game.Workspace.Gravity,0)
- end
- end
- wingPos()
- cooldown = false
- else
- wingEnd()
- flyEnd()
- BodyPos.Parent = nil
- game.Players.LocalPlayer.Character.Humanoid.PlatformStand = false
- for _,part in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if part:FindFirstChild("FlyingGravity") then
- part.FlyingGravity:remove()
- end
- end
- cooldown = false
- end
- end
- if key.KeyCode == Enum.KeyCode.R then
- slice()
- local cuttt = flyingCut:Clone()
- cuttt.CFrame = CFrame.new(masamune.Position,masamune.Position+game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*10000) + Vector3.new(0,7,0)
- cuttt.Parent = game.Workspace
- table.insert(cuts,cuttt)
- game:GetService("Debris"):AddItem(cuttt,10)
- normalPos()
- end
- if key.KeyCode == Enum.KeyCode.C then
- cooldown = true
- for i=1,10 do
- wait(0.1)
- local ball = darknessBall:Clone()
- ball.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
- ball.Parent = game.Workspace
- game:GetService("Debris"):AddItem(ball,4)
- table.insert(darknessBalls,ball)
- end
- cooldown = false
- end
- end
- if key.KeyCode == Enum.KeyCode.F then
- flying = true
- if game.Players.LocalPlayer.Character:FindFirstChild("Wing") then
- fly()
- end
- while flying == true do
- wait()
- game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*2
- local pos = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.p -Vector3.new(0,0.5,0) +game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*10 ,game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.p+game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector*100000)
- game.Players.LocalPlayer.Character.Torso.CFrame = pos
- BodyPos.Position = pos.p
- end
- end
- end)
- game:GetService("UserInputService").InputEnded:connect(function(key)
- if key.KeyCode == Enum.KeyCode.F then
- flying = false
- if game.Players.LocalPlayer.Character:FindFirstChild("Wing") then
- flyEnd()
- end
- end
- end)
- game:GetService("RunService").RenderStepped:connect(function()
- if not game.Players.LocalPlayer.Character:FindFirstChild("Wing") then
- if game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity.Magnitude > 0.5 then
- if walking == false then
- walkStart()
- end
- end
- if game.Players.LocalPlayer.Character.HumanoidRootPart.Velocity.Magnitude <= 0.5 then
- walkEnd()
- end
- else
- game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.p,game.Players.LocalPlayer:GetMouse().Hit.p)
- if wingUp == true then
- wingRot = wingRot+1
- if wingRot >= 15 then
- wingUp = false
- end
- end
- if wingUp == false then
- wingRot = wingRot-1
- if wingRot <= -15 then
- wingUp = true
- end
- end
- game.Players.LocalPlayer.Character.Wing.Weld.C0 = CFrame.new(0,-1.75,-0.5)*CFrame.Angles(0,math.rad(10),math.rad(-wingRot/2))
- end
- for _,cut in pairs(cuts) do
- cut.CFrame = cut.CFrame+cut.CFrame.lookVector*3
- end
- if #darknessBalls > 0 then
- local ignoreList = {game.Players.LocalPlayer.Character}
- for i=1,#darknessBalls do
- darknessBalls[i].CFrame = darknessBalls[i].CFrame+darknessBalls[i].CFrame.lookVector/5
- for _,child in pairs(game.Workspace:GetChildren()) do
- local did = false
- for _,ignored in pairs(ignoreList) do
- if ignored == child then
- did = true
- end
- end
- if did == false then
- if child:FindFirstChild("Humanoid") then
- for _,part in pairs(child:GetChildren()) do
- if part:IsA("BasePart") then
- if (part.Position-darknessBalls[i].Position).magnitude <= 5 then
- child.Humanoid.Health = child.Humanoid.Health-50
- table.insert(ignoreList,child)
- end
- end
- end
- end
- end
- end
- end
- end
- ---SwordCut
- swordCut()
- swordCut2()
- flyingCut2()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement