Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ContentProvider = game:GetService("ContentProvider")
- local function LoadAssets(AssetList)
- -- Takes an asset list and preloads it. Will not wait for them to load.
- for _, AssetId in pairs(AssetList) do
- ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
- end
- end
- LoadAssets({11442510,30956707})
- local Gibs = game.Workspace
- function Kill(Character)
- Character.Humanoid.Health = 0
- local poo = Instance.new("IntValue",Character)
- poo.Name = "haha nope"
- local svch = Character
- local hum = Character:findFirstChild("Humanoid")
- Character.Archivable = true
- local chrclone = Character:clone()
- Character.Archivable = false
- local ch = chrclone:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
- ch[i]:remove()
- end
- end
- local function Scan(ch)
- local e
- for e = 1,#ch do
- Scan(ch[e]:GetChildren())
- if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
- ch[e]:remove()
- end
- end
- end
- Scan(chrclone:GetChildren())
- local hum2 = chrclone:findFirstChild("Humanoid")
- if hum2 ~= nil then
- hum2.Name = "Humanoid2"
- hum2.PlatformStand = true
- hum2.Sit = true
- hum2.MaxHealth = 0
- hum2.Health = 0
- end
- local ch = Character:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
- ch[i]:remove()
- end
- end
- wait(0.2)
- local ch = Character:GetChildren()
- local i
- for i = 1,#ch do
- if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
- ch[i]:remove()
- end
- end
- Character = chrclone
- local Torso = Character.Torso
- local movevector = Vector3.new()
- if Torso then
- local Head = Character:FindFirstChild("Head")
- local Limb = Character:FindFirstChild("Right Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Left Arm")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftShoulder"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Right Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = Character:FindFirstChild("Left Leg")
- if Limb then
- Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftHip"
- Joint.Part0 = Torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = Torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = Character
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- --[
- local Bar = Instance.new("Part")
- Bar.TopSurface = 0
- Bar.BottomSurface = 0
- Bar.formFactor = "Symmetric"
- Bar.Size = Vector3.new(1, 1, 1)
- Bar.Transparency = 1
- Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
- Bar.Parent = Character
- local Weld = Instance.new("Weld")
- Weld.Part0 = Torso
- Weld.Part1 = Bar
- Weld.C0 = CFrame.new(0, 0.5, 0)
- Weld.Parent = Torso
- --]]
- end
- Character.Parent = Gibs
- game.Debris:AddItem(Character, 12)
- if movevector ~= Vector3.new() then
- for i = 1,10 do
- wait()
- Torso.Velocity = Vector3.new(0,0,-100)
- Head.Velocity = movevector * 200
- end
- end
- local duh = Torso
- ee = Instance.new("Part")
- ee.Anchored = false
- ee.CanCollide = false
- ee.Parent = duh
- ee.Transparency =1
- ee.Size = Vector3.new(0.15, 0.15, 0.15)
- wee = Instance.new("Weld")
- wee.Parent = duh
- wee.Part0 = duh
- wee.Part1 = ee
- wee.C0 = CFrame.new(0, 1, 0)
- ge = Instance.new('ParticleEmitter')
- ge.Parent = ee
- ge.Texture = "rbxassetid://29712167"
- ge.Size = NumberSequence.new(0.2,0.05)
- ge.Acceleration = Vector3.new(0, -20, 0)
- ge.Rate = 100000
- ge.Speed = NumberRange.new(7,8)
- ge.Lifetime = NumberRange.new(3,4)
- ge.VelocitySpread = 10
- ge.VelocityInheritance = 0.3
- ea = Instance.new("Part")
- ea.Anchored = false
- ea.CanCollide = false
- ea.Parent = Character.Head
- ea.Transparency =1
- ea.Size = Vector3.new(0.15, 0.15, 0.15)
- wea = Instance.new("Weld")
- wea.Parent = Character.Head
- wea.Part0 = Character.Head
- wea.Part1 = ea
- wea.C0 = CFrame.new(0, -0.7, 0)
- ga = Instance.new('ParticleEmitter')
- ga.Parent = ea
- ga.Texture = "rbxassetid://29712167"
- ga.Size = NumberSequence.new(0.2,0.05)
- ga.Acceleration = Vector3.new(0, -20, 0)
- ga.Rate = 100000
- ga.Speed = NumberRange.new(7,8)
- ga.Lifetime = NumberRange.new(3,4)
- ga.VelocitySpread = 10
- ga.VelocityInheritance = 0.3
- ga.EmissionDirection = Enum.NormalId.Bottom
- end
- local plr = game.Players.LocalPlayer
- local chr = plr.Character
- local mouse = plr:GetMouse()
- local intro = coroutine.wrap(function()
- local gui = Instance.new('ScreenGui',plr.PlayerGui)
- gui.Name = "Intro"
- local fr = Instance.new('Frame',gui)
- fr.Size = UDim2.new(0.4,0,0,0)
- fr.Position = UDim2.new(0.3,0,-0.1,0)
- fr.BorderColor3 = Color3.fromRGB(198, 45, 45)
- fr.BorderSizePixel = 5
- fr.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
- local title = Instance.new('TextLabel',fr)
- title.Size = UDim2.new(1,0,0.4,0)
- title.Position = UDim2.new(0,0,0.1,0)
- title.BackgroundTransparency = 1
- title.TextColor3 = Color3.fromRGB(198, 45, 45)
- title.TextScaled = true
- title.Text = 'Deadpool Script'
- local desc = Instance.new('TextLabel',fr)
- desc.Size = UDim2.new(1,0,0.5,0)
- desc.Position = UDim2.new(0,0,0.5,0)
- desc.BackgroundTransparency = 1
- desc.TextColor3 = Color3.fromRGB(198, 45, 45)
- desc.TextScaled = true
- desc.Text = ''
- wait(1)
- fr:TweenSize(UDim2.new(0.4,0,0.5,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,2)
- wait(2)
- local str = 'Hotkey to equip katana is N. Use Z to stab and X to slice heads off. Created by mustardfoot.'
- local leng = string.len(str)
- for i = 1,leng do
- desc.Text = string.sub(str,1,i)
- wait()
- end
- wait(2)
- fr:TweenSize(UDim2.new(0.4,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,0.8)
- wait(2)
- gui:Destroy()
- end)
- intro()
- wait(2)
- local tors = chr.Torso
- chr.Head.Transparency = 1
- for i,v in pairs(chr:GetChildren()) do
- if v.ClassName == "CharacterMesh" then
- v:Destroy()
- end
- end
- local humroot = chr.HumanoidRootPart:Clone()
- local torsclone = tors:Clone()
- local anim = chr.Animate:Clone()
- local hum = chr.Humanoid:Clone()
- local head = chr.Head:Clone()
- local neck = chr.Torso.Neck:Clone()
- local rightarm = chr["Right Arm"]:Clone()
- local leftarm = chr["Left Arm"]:Clone()
- local leftleg = chr["Left Leg"]:Clone()
- local rightleg = chr["Right Leg"]:Clone()
- local rightshoulder = tors["Right Shoulder"]:Clone()
- local leftshoulder = tors["Left Shoulder"]:Clone()
- local righthip = tors["Right Hip"]:Clone()
- local lefthip = tors["Left Hip"]:Clone()
- local shirt = nil
- local pants = nil
- local hats = {}
- local lastpos = CFrame.new(0,0,0)
- local on = true
- local doing = false
- local stabbing = false
- local slicing = false
- local toolz = Instance.new('Tool',plr.Backpack)
- toolz.Name = "Katana"
- toolz.RequiresHandle = false
- toolz.CanBeDropped = false
- local partz = Instance.new('Part',toolz)
- partz.Size = Vector3.new(0.2,0.2,3)
- partz.CanCollide = false
- local meshz = Instance.new('SpecialMesh',partz)
- meshz.MeshId = 'rbxassetid://11442510'
- meshz.TextureId = 'rbxassetid://30956707'
- meshz.VertexColor = Vector3.new(0,0,0)
- toolz.Equipped:connect(function(mouse)
- if chr:FindFirstChild('Right Arm') then
- local weld = Instance.new('Weld',partz)
- weld.Part0 = partz
- weld.Part1 = chr["Right Arm"]
- weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
- end
- mouse.KeyDown:connect(function(key)
- if doing == false then
- if key == 'z' then
- if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
- doing = true
- local weld = Instance.new('Weld',chr["Right Arm"])
- weld.Part0 = chr["Right Arm"]
- weld.Part1 = chr.Torso
- weld.C0 = CFrame.new(-1.5,0,0)
- for i=1,25 do
- weld.C0 = weld.C0:lerp(CFrame.new(-1.5,1,0.9)*CFrame.Angles(math.pi/2.5,0,-math.pi/2.5),i/25)
- wait()
- end
- wait()
- stabbing = true
- for i=1,10 do
- weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/4,0,-math.pi/6),i/10)
- wait()
- end
- wait()
- for i=1,25 do
- weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/25)
- wait()
- end
- chr["Right Arm"]:Destroy()
- doing = false
- stabbing = false
- end
- elseif key == 'x' then
- if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
- doing = true
- local weld = Instance.new('Weld',chr["Right Arm"])
- weld.Part0 = chr["Right Arm"]
- weld.Part1 = chr.Torso
- weld.C0 = CFrame.new(-1.5,0,0)
- for i=1,25 do
- weld.C0 = weld.C0:lerp(CFrame.new(-0.5,0.7,-0.5)*CFrame.Angles(math.pi/8,math.pi/1,math.pi/1.5),i/25)
- wait()
- end
- wait()
- slicing = true
- for i=1,5 do
- weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/8,0,-math.pi/4),i/5)
- wait()
- end
- wait()
- for i=1,12.5 do
- weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/12.5)
- wait()
- end
- chr["Right Arm"]:Destroy()
- doing = false
- slicing = false
- end
- end
- end
- end)
- end)
- partz.Touched:connect(function(hit)
- if hit.Parent:FindFirstChild('Humanoid') and stabbing and hit.Parent ~= chr then
- hit.Parent.Humanoid.Health = 0
- elseif hit.Parent:FindFirstChild('heck') == nil and slicing then
- local he = Instance.new('IntValue',hit.Parent)
- he.Name = "heck"
- Kill(hit.Parent)
- end
- end)
- toolz.Unequipped:connect(function(mouse)
- if partz:FindFirstChildOfClass('Weld') then
- partz:FindFirstChildOfClass('Weld'):Destroy()
- end
- end)
- toolz.AncestryChanged:connect(function(child, parent)
- if parent ~= chr and parent ~= plr.Backpack then
- wait()
- toolz.Parent = plr.Backpack
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "n" then
- wait()
- toolz:Equip()
- end
- end)
- if chr:FindFirstChildOfClass('Shirt') then
- shirt = chr:FindFirstChildOfClass('Shirt'):Clone()
- end
- if chr:FindFirstChildOfClass('Pants') then
- pants = chr:FindFirstChildOfClass('Pants'):Clone()
- end
- for i,v in pairs(chr:GetChildren()) do
- if v.ClassName == "Accessory" then
- table.insert(hats,v:Clone())
- end
- end
- local rootjoint = chr.HumanoidRootPart.RootJoint:Clone()
- chr.Humanoid:Destroy()
- local gui = Instance.new('ScreenGui')
- gui.Parent = game.Players.LocalPlayer.PlayerGui
- gui.Name = "Deadpool"
- gui.ResetOnSpawn = false
- local frame = Instance.new('Frame',gui)
- frame.Size = UDim2.new(0.2,0,0.2,0)
- frame.Position = UDim2.new(0,0,0.9,0)
- frame.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
- frame.BorderSizePixel = 4
- frame.BorderColor3 = Color3.fromRGB(198, 45, 45)
- frame.Active = true
- frame.Draggable = true
- local txt = Instance.new('TextLabel',frame)
- txt.Text = "Deadpool Gui"
- txt.TextColor3 = Color3.fromRGB(198, 45, 45)
- txt.Size = UDim2.new(1,0,0.3,0)
- txt.TextScaled = true
- txt.BackgroundTransparency = 1
- local but = Instance.new('TextButton',frame)
- but.Text = "Toggle Suit"
- but.TextColor3 = Color3.fromRGB(38, 38, 38)
- but.Size = UDim2.new(0.7,0,0.3,0)
- but.Position = UDim2.new(0.15,0,0.5,0)
- but.BorderSizePixel = 0
- but.TextScaled = true
- but.BackgroundColor3 = Color3.fromRGB(198, 45, 45)
- but.MouseButton1Down:connect(function()
- on = not on
- end)
- game:GetService('RunService').Stepped:connect(function()
- if chr.Parent == nil then
- chr.RobloxLocked = false
- chr.Parent = game.Workspace
- end
- if chr:FindFirstChildOfClass('Humanoid') == nil then
- hum:Clone().Parent = chr
- chr.Animate:Destroy()
- anim:Clone().Parent = chr
- end
- if chr:FindFirstChild('HumanoidRootPart') == nil then
- humroot:Clone().Parent = chr
- humroot.CFrame = lastpos
- chr.Humanoid:Destroy()
- hum:Clone().Parent = chr
- chr.Animate:Destroy()
- anim:Clone().Parent = chr
- chr.HumanoidRootPart.RootJoint:Destroy()
- end
- if chr:FindFirstChild('Torso') == nil then
- chr.Humanoid:Destroy()
- local tor = tors:Clone()
- tor.Parent = chr
- hum:Clone().Parent = chr
- chr.Animate:Destroy()
- anim:Clone().Parent = chr
- end
- if chr.HumanoidRootPart:FindFirstChild('RootJoint') == nil then
- local rtj = rootjoint:Clone()
- rtj.Parent = chr.HumanoidRootPart
- rtj.Part0 = chr.HumanoidRootPart
- rtj.Part1 = chr.Torso
- end
- if chr:FindFirstChild('Head') == nil then
- chr.Humanoid:Destroy()
- head:Clone().Parent = chr
- hum:Clone().Parent = chr
- chr.Animate:Destroy()
- anim:Clone().Parent = chr
- end
- if chr.Torso:FindFirstChild('Neck') == nil then
- chr.Humanoid:Destroy()
- local hec = neck:Clone()
- hec.Parent = chr.Torso
- hec.Part0 = chr.Torso
- hec.Part1 = chr.Head
- hum:Clone().Parent = chr
- chr.Animate:Destroy()
- anim:Clone().Parent = chr
- end
- if chr:FindFirstChild('Right Leg') == nil then
- rightleg:Clone().Parent = chr
- local fi = righthip:Clone()
- fi.Parent = chr.Torso
- fi.Part0 = chr.Torso
- fi.Part1 = chr["Right Leg"]
- end
- if chr:FindFirstChild('Right Arm') == nil then
- rightarm:Clone().Parent = chr
- local fi = rightshoulder:Clone()
- fi.Parent = chr.Torso
- fi.Part0 = chr.Torso
- fi.Part1 = chr["Right Arm"]
- end
- if chr:FindFirstChild('Left Leg') == nil then
- leftleg:Clone().Parent = chr
- local fi = lefthip:Clone()
- fi.Parent = chr.Torso
- fi.Part0 = chr.Torso
- fi.Part1 = chr["Left Leg"]
- end
- if chr:FindFirstChild('Left Arm') == nil then
- leftarm:Clone().Parent = chr
- local fi = leftshoulder:Clone()
- fi.Parent = chr.Torso
- fi.Part0 = chr.Torso
- fi.Part1 = chr["Left Arm"]
- end
- for i,v in pairs(chr:GetChildren()) do
- if v.Name == "Mask" or v.ClassName == "Accessory" or v.ClassName == "Shirt" or v.ClassName == "Pants" or v.Name == "KatanaHolder" then
- v:Destroy()
- end
- end
- chr.Humanoid.Health = chr.Humanoid.MaxHealth
- if partz:FindFirstChild('Weld') == nil and toolz.Parent == chr then
- local weld = Instance.new('Weld',partz)
- weld.Part0 = partz
- weld.Part1 = chr["Right Arm"]
- weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
- end
- lastpos = chr.HumanoidRootPart.CFrame
- local kat = Instance.new('Part',chr)
- kat.Size = Vector3.new(0.4,3,0.2)
- kat.Name = "KatanaHolder"
- kat.Material = Enum.Material.SmoothPlastic
- kat.BrickColor = BrickColor.new('Really black')
- kat.CanCollide = false
- local we = Instance.new('Weld',kat)
- we.Part0 = kat
- we.Part1 = chr.Torso
- we.C0 = CFrame.new(0,0,-0.5)*CFrame.Angles(0,0,0.5)
- if on == true then
- local shirt = Instance.new('Shirt',chr)
- shirt.ShirtTemplate = 'rbxassetid://379545459'
- local pants = Instance.new('Pants',chr)
- pants.PantsTemplate = 'rbxassetid://379545671'
- local mask = Instance.new('Part',chr)
- mask.Name = "Mask"
- mask.Size = Vector3.new(2,1,1)
- mask.BrickColor = BrickColor.new('Bright red')
- local mesh = Instance.new('SpecialMesh',mask)
- mesh.Scale = Vector3.new(1.3,1.3,1.3)
- local weld = Instance.new('Weld',mask)
- weld.Part0 = mask
- weld.Part1 = chr.Head
- local eyesurround = Instance.new('Part',mask)
- eyesurround.BrickColor = BrickColor.new('Really black')
- eyesurround.Size = Vector3.new(0.3,0.5,0.2)
- local mesh2 = Instance.new('SpecialMesh',eyesurround)
- mesh2.MeshType = Enum.MeshType.Sphere
- mesh2.Scale = Vector3.new(1,1,0.5)
- local weld2 = Instance.new('Weld',eyesurround)
- weld2.Part0 = eyesurround
- weld2.Part1 = mask
- weld2.C0 = CFrame.new(0.1,-0.22,0.58)*CFrame.Angles(0,0,-0.2)
- local eyesurround2 = Instance.new('Part',mask)
- eyesurround2.BrickColor = BrickColor.new('Really black')
- eyesurround2.Size = Vector3.new(0.3,0.5,0.2)
- local mesh3 = Instance.new('SpecialMesh',eyesurround2)
- mesh3.MeshType = Enum.MeshType.Sphere
- mesh3.Scale = Vector3.new(1,1,0.5)
- local weld3 = Instance.new('Weld',eyesurround2)
- weld3.Part0 = eyesurround2
- weld3.Part1 = mask
- weld3.C0 = CFrame.new(-0.1,-0.22,0.58)*CFrame.Angles(0,0,0.2)
- local eye = Instance.new('Part',mask)
- eye.BrickColor = BrickColor.new('Institutional white')
- eye.Size = Vector3.new(0.2,0.2,0.2)
- local mesh4 = Instance.new('SpecialMesh',eye)
- mesh4.MeshType = Enum.MeshType.Sphere
- mesh4.Scale = Vector3.new(1,1,0.5)
- local weld4 = Instance.new('Weld',eye)
- weld4.Part0 = eye
- weld4.Part1 = mask
- weld4.C0 = CFrame.new(0.1,-0.22,0.59)*CFrame.Angles(0,0,-0.2)
- local eye2 = Instance.new('Part',mask)
- eye2.BrickColor = BrickColor.new('Institutional white')
- eye2.Size = Vector3.new(0.2,0.2,0.2)
- local mesh5 = Instance.new('SpecialMesh',eye2)
- mesh5.MeshType = Enum.MeshType.Sphere
- mesh5.Scale = Vector3.new(1,1,0.5)
- local weld5 = Instance.new('Weld',eye2)
- weld5.Part0 = eye2
- weld5.Part1 = mask
- weld5.C0 = CFrame.new(-0.1,-0.22,0.59)*CFrame.Angles(0,0,0.2)
- else
- chr.Head.Transparency = 0
- if shirt ~= nil then
- shirt:Clone().Parent = chr
- end
- if pants ~= nil then
- pants:Clone().Parent = chr
- end
- for i,v in pairs(hats) do
- v:Clone().Parent = chr
- end
- end
- end)
- plr = game.Players.LocalPlayer
- mouse = plr:GetMouse()
- part = nil
- bp = nil
- particles = nil
- function clerp(a,b,c,d)
- for i = 0,d,.01 do
- a.CFrame = CFrame.new(b:lerp(c,i))
- wait()
- end
- end
- function slerp(a2,b2,c2,d2)
- for i2 = 0,d2,.01 do
- a2.CFrame = CFrame.new(b2:lerp(c2,i2))
- wait()
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == "e" and plr.Character.Parent == workspace then
- plr.Character.Parent = workspace.Camera
- plr.Character.Archivable = true
- Instance.new("ForceField",plr.Character).Visible = false
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
- t.Transparency = 1
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face.Transparency = 1
- end
- elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
- t.Handle.Transparency = 1
- end
- end
- elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
- plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
- elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then
- if plr.Character.Torso.Anchored == true then
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") then
- t.Anchored = false
- end
- end
- else
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") then
- t.Anchored = true
- end
- end
- end
- elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then
- local clone = part:Clone()
- clone.Parent = workspace
- clone.Anchored = false
- clone:ClearAllChildren()
- clone.CanCollide = true
- bp.Parent = clone
- particles.Parent = clone
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
- end
- part:Destroy()
- part = clone
- elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then
- plr.Character.Parent = workspace
- plr.Character.Archivable = false
- plr.Character:FindFirstChildOfClass("ForceField"):Remove()
- for y,t in pairs(plr.Character:GetChildren()) do
- if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
- t.Transparency = 0
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face.Transparency = 0
- end
- elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
- t.Handle.Transparency = 0
- end
- end
- end
- end)
- mouse.Button1Down:connect(function()
- if plr.Character.Parent == workspace.Camera then
- if mouse ~= nil then
- if mouse.Target ~= nil then
- part = mouse.Target
- bp = Instance.new("BodyPosition",part)
- bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bp.Position = part.Position
- particles = Instance.new("ParticleEmitter",part)
- particles.Color = ColorSequence.new(Color3.new(0,0,0))
- particles.Size = NumberSequence.new(1)
- particles.Texture = "rbxassetid://292289455"
- particles.VelocitySpread = 360
- particles.Speed = NumberRange.new(0)
- particles.RotSpeed = NumberRange.new(0)
- particles.Rotation = NumberRange.new(0)
- particles.Rate = 250
- particles.Lifetime = NumberRange.new(.2,.4)
- particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
- dwn = true
- end
- end
- while dwn == true do
- wait()
- bp.Position = mouse.hit.p
- if part then
- if part.Parent:FindFirstChildOfClass("Humanoid") then
- part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
- end
- end
- end
- end
- end)
- mouse.Button1Up:connect(function()
- dwn = false
- if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
- if bp then bp:Destroy() end
- if particles then particles:Destroy() end
- end)
- base = Instance.new("ScreenGui",plr.PlayerGui)
- bbg = Instance.new("BillboardGui",plr.Character.Head)
- bbg.Size = UDim2.new(0,200,0,50)
- bbg.StudsOffset = Vector3.new(0,3,0)
- bbgTl = Instance.new("TextLabel",bbg)
- bbgTl.BackgroundTransparency = 1
- bbgTl.Size = UDim2.new(10,0,1,0)
- bbgTl.Position = UDim2.new(-4.5,0,0,0)
- bbgTl.Font = "Code"
- bbgTl.Text = " "
- bbgTl.TextSize = 25
- bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
- bbgTl.TextColor3 = Color3.new(0,0,0)
- bbgTl.TextStrokeTransparency = 0
- bbgTl.TextWrapped = true
- plr.Chatted:connect(function(msg)
- bbgTl.Text = msg
- wait(5)
- if bbgTl.Text == msg then
- bbgTl.Text = " "
- end
- end)
- touchCounter = 0
- while wait() do
- if plr.Character.Parent == workspace.Camera then
- local c = plr.Character:Clone()
- c:MakeJoints()
- for y,t in pairs(c:GetChildren()) do
- if t:IsA("Part") then
- t.CanCollide = false
- t.Anchored = true
- t.Transparency = .5
- t.TopSurface = "Smooth"
- t.BottomSurface = "Smooth"
- t.RightSurface = "Smooth"
- t.LeftSurface = "Smooth"
- t.FrontSurface = "Smooth"
- t.BackSurface = "Smooth"
- t.BrickColor = BrickColor.new("Really black")
- if t.Name == "Head" and t:FindFirstChild("face") then
- t.face:Remove()
- elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
- t.roblox:Remove()
- elseif t.Name == "HumanoidRootPart" then
- t:Remove()
- end
- else
- t:Remove()
- end
- end
- c.Parent = workspace
- game.Debris:AddItem(c,.05)
- end
- end
- for i, v in pairs(game.Players.LocalPlayer.Backpack:children()) do
- if v.className == "HopperBin" and v.Name == "PPATTA's Trap Script" then
- v:Destroy()
- end
- end
- local player = game:service("Players").LocalPlayer
- local mouse = player:GetMouse()
- local char = player.Character
- local Torsoz = char:findFirstChild("Torso")
- local RA = char:findFirstChild("Right Arm")
- local LA = char:findFirstChild("Left Arm")
- local RL = char:findFirstChild("Right Leg")
- local LL = char:findFirstChild("Left Leg")
- local H = char:findFirstChild("Head")
- local RS = Torsoz:findFirstChild("Right Shoulder")
- local LS = Torsoz:findFirstChild("Left Shoulder")
- local RH = Torsoz:findFirstChild("Right Hip")
- local LH = Torsoz:findFirstChild("Left Hip")
- local N = Torsoz:findFirstChild("Neck")
- local NV = Vector3.new()
- local Main
- local Traps = {}
- local Projectiles = {}
- local Bolts = {}
- local bin = Instance.new("HopperBin")
- bin.Name = "PPATTA's Trap Script"
- bin.Parent = player.Backpack
- local P = Instance.new("Part")
- P.Anchored = false
- P.CanCollide = false
- P.Name = "Part"
- P.formFactor = "Custom"
- P.Size = Vector3.new(0.2,0.2,0.2)
- P.BrickColor = BrickColor.new("Black")
- P.Locked = true
- P.TopSurface = 10
- P.BottomSurface = 10
- P.FrontSurface = 10
- P.BackSurface = 10
- P.LeftSurface = 10
- P.RightSurface = 10
- local AnimJoints = {}
- function GetWeld(weld)
- local obj
- for i, v in pairs(AnimJoints) do
- if v[1] == weld then
- obj = v
- break
- end
- end
- if not obj then
- obj = {weld,NV}
- table.insert(AnimJoints,obj)
- end
- return weld.C0.p, obj[2]
- end
- function SetWeld(weld, i, loops, origpos,origangle, nextpos,nextangle,smooth)
- smooth = smooth or 1
- local obj
- for i, v in pairs(AnimJoints) do
- if v[1] == weld then
- obj = v
- break
- end
- end
- if not obj then
- obj = {weld,NV}
- table.insert(AnimJoints,obj)
- end
- local perc = (smooth == 1 and math.sin((math.pi/2)/loops*i)) or i/loops
- local tox,toy,toz = 0,0,0
- tox = math.abs(origangle.x - nextangle.x) *perc
- toy = math.abs(origangle.y - nextangle.y) *perc
- toz = math.abs(origangle.z - nextangle.z) *perc
- tox = (origangle.x > nextangle.x and -tox) or tox
- toy = (origangle.y > nextangle.y and -toy) or toy
- toz = (origangle.z > nextangle.z and -toz) or toz
- local tox2,toy2,toz2 = 0,0,0
- tox2 = math.abs(origpos.x - nextpos.x) *perc
- toy2 = math.abs(origpos.y - nextpos.y) *perc
- toz2 = math.abs(origpos.z - nextpos.z) *perc
- tox2 = (origpos.x > nextpos.x and -tox2) or tox2
- toy2 = (origpos.y > nextpos.y and -toy2) or toy2
- toz2 = (origpos.z > nextpos.z and -toz2) or toz2
- obj[2] = Vector3.new(origangle.x + tox, origangle.y + toy, origangle.z + toz)
- weld.C0 = CFrame.new(origpos.x + tox2,origpos.y + toy2,origpos.z + toz2) * CFrame.Angles(origangle.x + tox,origangle.y + toy,origangle.z + toz)
- end
- function RAY(pos, dir, collidedlist, startpos, endpos, distleft)
- collidedlist = collidedlist or {char}
- startpos = startpos or pos
- distleft = distleft or dir.unit * dir.magnitude
- endpos = endpos or pos + distleft
- local ray = Ray.new(pos, distleft)
- local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray, collidedlist)
- if hitz ~= nil and not hitz.Parent:findFirstChild("Humanoid") then
- if hitz.CanCollide == false then
- table.insert(collidedlist, hitz)
- local newpos = enz
- local newdistleft = distleft - (dir.unit * (pos - newpos).magnitude)
- if newdistleft ~= NV then
- return RAY(newpos-(dir*0.01), dir, collidedlist, startpos, endpos, newdistleft+(dir*0.01))
- end
- end
- end
- return hitz, enz, ray
- end
- function FindSurface(part, position)
- local obj = part.CFrame:pointToObjectSpace(position)
- local siz = part.Size/2
- for i,v in pairs(Enum.NormalId:GetEnumItems()) do
- local vec = Vector3.FromNormalId(v)
- local wvec = part.CFrame:vectorToWorldSpace(vec)
- local vz = (obj)/(siz*vec)
- if (math.abs(vz.X-1) < 0.01 or math.abs(vz.Y-1) < 0.01 or math.abs(vz.Z-1) < 0.01) then
- return wvec,vec
- end
- end
- if part.className == "WedgePart" then
- local pos = (part.CFrame * CFrame.new(0,part.Size.y/2,part.Size.z/2)).p
- local apos = (part.CFrame * CFrame.Angles(-math.atan2(part.CFrame:pointToObjectSpace(pos).y,part.CFrame:pointToObjectSpace(pos).z),0,0) * CFrame.new(0,1,0)).p
- local wvec,vec = (apos - part.Position).unit, part.CFrame:pointToObjectSpace(apos)
- return wvec,vec
- elseif part.className == "Part" and (part.Shape == Enum.PartType.Ball or part.Shape == Enum.PartType.Cylinder) then
- return (position - part.Position).unit, part.CFrame:vectorToObjectSpace((position - part.Position).unit)
- end
- end
- function CreateTrap(target,pos)
- local m = Instance.new("Model", char)
- m.Name = "Trap"
- local cframe = CFrame.new()
- local anchor = true
- if not target:IsA("Terrain") then
- local wvec,vec = FindSurface(target,pos)
- cframe = CFrame.new(NV,wvec) * CFrame.Angles(-math.pi/2,0,0)
- anchor = target.Anchored
- end
- local c = P:Clone()
- c.Parent = m
- c.Anchored = anchor
- c.CanCollide = true
- c.CFrame = (cframe +pos) * CFrame.Angles(0,math.rad(math.random(1,360)),0)
- c.BrickColor = BrickColor.new("Dark stone grey")
- local light = Instance.new("PointLight", c)
- light.Brightness = 2
- light.Range = 7
- light.Color = Color3.new(1,0.8,0.1)
- local mesh = Instance.new("CylinderMesh",c)
- mesh.Scale = Vector3.new(0.2,0.4,0.2) *5
- if not anchor then
- local newpos = target.CFrame:toObjectSpace(c.CFrame)
- local w = Instance.new("Weld",c)
- w.Part0 = target
- w.Part1 = c
- w.C0 = newpos
- end
- local tabl = {}
- for i = 1, 3 do
- local p = P:Clone()
- p.Parent = m
- p.Anchored = anchor
- p.CFrame = c.CFrame * CFrame.Angles(0,math.pi*2/3*i,0) * CFrame.new(0,0.04,-0.12) * CFrame.Angles(-math.pi/2 +0.05,0,0) * CFrame.new(0,0.55,0)
- local mesh = Instance.new("SpecialMesh",p)
- mesh.MeshType = "Wedge"
- mesh.Scale = Vector3.new(0.15,1.2,0.16) *5
- if not anchor then
- local w = Instance.new("Weld",p)
- w.Part0 = c
- w.Part1 = p
- w.C0 = CFrame.Angles(0,math.pi*2/3*i,0) * CFrame.new(0,0.04,-0.12) * CFrame.Angles(-math.pi/2 +0.05,0,0) * CFrame.new(0,0.55,0)
- end
- for j = -1,1,2 do
- local p = P:Clone()
- p.Parent = m
- p.Anchored = anchor
- p.Transparency = 0.6
- p.BrickColor = BrickColor.new("Bright yellow")
- p.CFrame = c.CFrame * CFrame.new(0,0.2,0) * CFrame.Angles(0,math.pi*2/3*i,0) * CFrame.new(0.32*j,0,-0.55) * CFrame.Angles(0.06,0,-math.pi/2*j)
- local mesh = Instance.new("SpecialMesh",p)
- mesh.MeshType = "Wedge"
- mesh.Scale = Vector3.new(0.03,0.6,1.1) *5
- if not anchor then
- local w = Instance.new("Weld",p)
- w.Part0 = c
- w.Part1 = p
- w.C0 = CFrame.new(0,0.2,0) * CFrame.Angles(0,math.pi*2/3*i,0) * CFrame.new(0.32*j,0,-0.55) * CFrame.Angles(0.06,0,-math.pi/2*j)
- end
- table.insert(tabl,p)
- end
- end
- table.insert(Traps,{m,c,tabl,0,light})
- end
- function Build()
- for i, v in pairs(char:children()) do
- if v.className == "Model" and (v.Name == "" or v.Name == "Trap" or v.Name == "TrapProjectile") then
- v:Destroy()
- end
- end
- local mdl = Instance.new("Model", char)
- mdl.Name = ""
- end
- Build()
- function Throw(aim)
- local mdl = Instance.new("Model",char)
- mdl.Name = "TrapProjectile"
- local p = P:Clone()
- p.Parent = mdl
- p.Anchored = true
- p.Size = Vector3.new(0.5,0.5,1.5)
- p.CFrame = CFrame.new(Torsoz.Position,Torsoz.Position+aim)
- table.insert(Projectiles,{mdl,p,aim,0.05})
- end
- function JumbleBolt(bolt)
- local lastpos = bolt[2][3]
- for i, v in pairs(bolt) do
- if i == 1 then
- bolt[1] = bolt[1] - 1
- else
- local point = v[4] * CFrame.new(math.random(-100,100)*v[5]/200,math.random(-100,100)*v[5]/200,0)
- v[1].CFrame = CFrame.new((lastpos+point.p)/2,point.p)
- v[2].Scale = Vector3.new(0.1,0.1,(lastpos-point.p).magnitude) *5
- lastpos = point.p
- end
- end
- end
- function Bolt(par,start,endpos,jumble)
- jumble = jumble or 8
- local dist = (start - endpos).magnitude
- if dist < 200 then
- local tab = {jumble}
- local dir = (endpos - start).unit
- local jump = dist/math.floor(dist)
- local lastpos = start
- local lastraw
- for i = 1, math.floor(dist) do
- local rawpoint = CFrame.new(start,endpos) + dir*jump*i
- local point = rawpoint
- if i ~= math.floor(dist) then
- point = point * CFrame.new(math.random(-100,100)*jump/200,math.random(-100,100)*jump/200,0)
- end
- local p = P:Clone()
- p.Parent = par
- p.Anchored = true
- p.BrickColor = BrickColor.new("Royal purple")
- p.CFrame = CFrame.new((lastpos+point.p)/2,point.p)
- local mesh = Instance.new("BlockMesh",p)
- mesh.Scale = Vector3.new(0.1,0.1,(lastpos-point.p).magnitude) *5
- game:GetService("Debris"):AddItem(p,5)
- table.insert(tab,{p,mesh,start,rawpoint,jump})
- lastpos = point.p
- lastraw = rawpoint
- end
- table.insert(Bolts,tab)
- end
- end
- function Explode(pos,bolts)
- local mdl = Instance.new("Model",char)
- mdl.Name = "Explosion"
- local p = P:Clone()
- p.Parent = mdl
- p.Anchored = true
- p.CanCollide = false
- p.CFrame = CFrame.new(pos)
- local l = Instance.new("PointLight",p)
- l.Color = Color3.new(0.5,0.1,1)
- l.Range = 10
- l.Brightness = 2
- game:GetService("Debris"):AddItem(mdl,0.7)
- for i, v in pairs(game:GetService("Players"):GetChildren()) do
- if v.Character ~= nil then
- if v.Character:findFirstChild("Torso") and v.Character:findFirstChild("Humanoid") then
- if (v.Character.Torso.Position - pos).magnitude < 6.5 then
- v.Character.Humanoid:TakeDamage(math.random(30,45))
- end
- end
- end
- end
- for i = 1, bolts do
- local dist = math.random(38,64) /10
- local dir = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50)).unit
- Bolt(mdl,pos,pos+dir*dist)
- end
- end
- function Detonate()
- for i, v in pairs(Traps) do
- Explode(v[2].Position,10)
- v[1]:Destroy()
- Traps[i] = nil
- end
- end
- function B1D(mouse)
- --[[if mouse.Target and #Traps < 6 then
- CreateTrap(mouse.Hit.p,mouse.Target)
- end ]]
- if #Traps + #Projectiles < 6 then
- Throw((mouse.Hit.p - Torsoz.Position).unit)
- end
- --Bolt(char,Torsoz.Position,mouse.Hit.p)
- --Explode(mouse.Hit.p,10)
- end
- function KD(key, mouse)
- if key == "e" then
- Detonate()
- --[[elseif key == "r" then
- for i, v in pairs(Traps) do
- v[1]:Destroy()
- Traps[i] = nil
- end ]]
- end
- end
- function Equip()
- end
- function Unequip()
- end
- bin.Selected:connect(function(mouse)
- mouse.Icon = "rbxasset://textures\\GunCursor.png"
- mouse.Button1Down:connect(function() B1D(mouse) end)
- mouse.KeyDown:connect(function(key) KD(key, mouse) end)
- end)
- bin.Deselected:connect(function()
- end)
- local jumpcount = 0
- game:GetService("RunService").Stepped:connect(function()
- jumpcount = (jumpcount%2) + 1
- for i, trap in pairs(Traps) do
- trap[4] = (trap[4] + 1) %2
- if trap[4] == 0 then
- local randum = math.random()
- local zaptrans = 0.3 + 0.45*randum
- trap[5].Brightness = 0.8 + 2.8*randum --math.random(-65,60)/100
- for j, v in pairs(trap[3]) do
- v.Transparency = zaptrans
- end
- end
- end
- for i, proj in pairs(Projectiles) do
- local spd = (proj[3]*3) + Vector3.new(0,proj[4],0)
- local hitz,enz = RAY(proj[2].Position,spd)
- if hitz then
- proj[1]:Destroy()
- CreateTrap(hitz,enz)
- table.remove(Projectiles,i)
- else
- proj[2].CFrame = CFrame.new(NV,spd) + proj[2].Position + spd
- proj[4] = proj[4] - 0.05
- end
- end
- if jumpcount == 1 then
- for i, bolt in pairs(Bolts) do
- JumbleBolt(bolt)
- if bolt[1] <= 0 then
- for j, v in pairs(bolt) do
- if j ~= 1 then
- v[1]:Destroy()
- end
- end
- table.remove(Bolts,i)
- end
- end
- end
- end)
- local asin = math.asin
- local atan2 = math.atan2
- local rad = math.rad
- local sin = math.sin
- local abs = math.abs
- local ceil = math.ceil
- local cos = math.cos
- local pi = math.pi
- local rclcount = 0
- local rcl = 0
- local rclcounttime = 50
- local rclcountspeed = 1
- local player = game.Players.LocalPlayer
- local pchar = player.Character
- local torso = pchar.Torso
- local mouse = player:GetMouse()
- local attack = false
- local combo = 0
- pchar.Archivable=true
- Cols={"Black","Really black","Royal purple","Alder","Magenta"}
- function stick(x, y)
- weld = Instance.new("Motor")
- weld.Name='mot'
- weld.Part0 = x
- weld.Part1 = y
- local HitPos = x.Position
- local CJ = CFrame.new(HitPos)
- local C0 = x.CFrame:inverse() *CJ
- local C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- do
- local function QuaternionFromCFrame(cf) local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() local trace = m00 + m11 + m22 if trace > 0 then local s = math.sqrt(1 + trace) local recip = 0.5/s return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 else local i = 0 if m11 > m00 then i = 1 end if m22 > (i == 0 and m00 or m11) then i = 2 end if i == 0 then local s = math.sqrt(m00-m11-m22+1) local recip = 0.5/s return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip elseif i == 1 then local s = math.sqrt(m11-m22-m00+1) local recip = 0.5/s return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip elseif i == 2 then local s = math.sqrt(m22-m00-m11+1) local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip end end end
- local function QuaternionToCFrame(px, py, pz, x, y, z, w) local xs, ys, zs = x + x, y + y, z + z local wx, wy, wz = w*xs, w*ys, w*zs local xx = x*xs local xy = x*ys local xz = x*zs local yy = y*ys local yz = y*zs local zz = z*zs return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) end
- local function QuaternionSlerp(a, b, t) local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] local startInterp, finishInterp; if cosTheta >= 0.0001 then if (1 - cosTheta) > 0.0001 then local theta = math.acos(cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((1-t)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = 1-t finishInterp = t end else if (1+cosTheta) > 0.0001 then local theta = math.acos(-cosTheta) local invSinTheta = 1/math.sin(theta) startInterp = math.sin((t-1)*theta)*invSinTheta finishInterp = math.sin(t*theta)*invSinTheta else startInterp = t-1 finishInterp = t end end return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- end
- Part = function(x,y,z,color,tr,cc,an,parent)
- local p = Instance.new('Part',parent or Weapon)
- p.formFactor = 'Custom'
- p.Size = Vector3.new(x,y,z)
- p.BrickColor = BrickColor.new(color)
- p.CanCollide = cc
- p.Transparency = tr
- p.Anchored = an
- p.TopSurface,p.BottomSurface = 0,0
- p.Locked=true
- p:BreakJoints()
- return p
- end
- wPart = function(x,y,z,color,tr,cc,an,parent)
- local wp = Instance.new('WedgePart',parent or Weapon)
- wp.formFactor = 'Custom'
- wp.Size = Vector3.new(x,y,z)
- wp.BrickColor = BrickColor.new(color)
- wp.CanCollide = cc
- wp.Transparency = tr
- wp.Anchored = an
- wp.TopSurface,wp.BottomSurface = 0,0
- return wp
- end
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z)
- end
- function Triangle(a, b, c)
- local edg1 = (c-a):Dot((b-a).unit)
- local edg2 = (a-b):Dot((c-b).unit)
- local edg3 = (b-c):Dot((a-c).unit)
- if edg1 <= (b-a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- print("unreachable")
- end
- local len1 = (c-a):Dot((b-a).unit)
- local len2 = (b-a).magnitude - len1
- local width = (a + (b-a).unit*len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
- local list = {}
- if len1 > 0.01 then
- local w1 = wPart(0,0,0,'Really black',0.5,false,true,pchar)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Mesh(w1,2,0,0,0)
- sp.MeshType='Wedge'
- sp.Scale=Vector3.new(0,1,1)*sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = true
- w1.Transparency = 0.7
- Spawn(function()
- for i=0,1,0.1 do
- wait()
- w1.Transparency=w1.Transparency+0.03
- end
- end)
- w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = wPart(0,0,0,'Really black',0.5,false,true,pchar)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Mesh(w2,2,0,0,0)
- sp.MeshType='Wedge'
- sp.Scale=Vector3.new(0,1,1)*sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = true
- w2.Transparency = 0.7
- Spawn(function()
- for i=0,1,0.1 do
- wait()
- w2.Transparency=w2.Transparency+0.03
- end
- end)
- w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- table.insert(list,w2)
- end
- return unpack(list)
- end
- function mgblock(pa,cfr,tm,col1,col2,sz,wa)
- local cols={col1,col2}
- Spawn(function()
- for i=1,tm do
- local a= Part(1,1,1,cols[math.random(1,2)],0,false,true,pchar)
- curre=a
- v1,v2,v3=sz.x,sz.y,sz.z
- local m= Mesh(a,3,v1,v2,v3)
- a.CFrame=pa.CFrame*cfr*CFrame.Angles(math.random(),math.random(),math.random())
- Spawn(function()
- while wait() do
- if a.Transparency >= 1 then a:Destroy() break end
- m.Scale=m.Scale-Vector3.new(.1,0.1,0.1)
- a.CFrame=a.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.1,0)
- a.Transparency=a.Transparency+0.05
- end
- end)
- wait(wa)
- end
- end)
- return curre
- end
- function trail(p,t,h)
- Spawn(function()
- local blcf = p.CFrame
- local scfr = blcf
- for i=1,t do
- local blcf = p.CFrame
- if scfr and (p.Position-scfr.p).magnitude > .1 then
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end
- if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end
- if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- game:service'RunService'.RenderStepped:wait()
- end
- scfr=nil
- end)
- end
- function cloneefx()
- for _,v in pairs(pchar:GetChildren()) do
- if v.ClassName=="Part" then
- local efx=v:Clone()
- efx.CanCollide=true
- efx.Anchored=true
- efx.Parent=workspace
- efx.BrickColor=BrickColor.new("Really black")
- efx:BreakJoints()
- Spawn(function()
- for i=1,10 do wait(.05)
- efx.Transparency=efx.Transparency+.1
- end
- efx:Destroy()
- end)
- end
- end
- end
- so = function(id,par,lo,pi,tm)
- local s = Instance.new("Sound",par)
- s.Looped=lo
- s.Pitch=pi
- s.SoundId = "http://roblox.com/asset/?id="..id
- s:play()
- s.Volume=10
- game.Debris:AddItem(s,tm)
- return s
- end
- function posfix(nom)
- Spawn(function()
- local bg=Instance.new("BodyGyro",pchar.Torso)
- bg.maxTorque=Vector3.new(0,math.huge,0)
- bg.P=5000
- bg.D=100
- bg.cframe=workspace.CurrentCamera.CoordinateFrame*CFrame.Angles(0,nom,0)
- wait(.5)
- bg:Destroy()
- end)
- end
- Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
- local w = Instance.new('Motor',par or p0)
- w.Part0 = p0
- w.Part1 = p1
- w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
- return w
- end
- Mesh = function(par,num,x,y,z)
- local msh = _
- if num == 1 then
- msh = Instance.new("CylinderMesh",par)
- elseif num == 2 then
- msh = Instance.new("SpecialMesh",par)
- msh.MeshType = 3
- elseif num == 3 then
- msh = Instance.new("BlockMesh",par)
- elseif num == 4 then
- msh = Instance.new("SpecialMesh",par)
- msh.MeshType = "Torso"
- elseif type(num) == 'string' then
- msh = Instance.new("SpecialMesh",par)
- msh.MeshId = num
- end
- msh.Scale = Vector3.new(x,y,z)
- return msh
- end
- anglespeed = 1
- angle = 0
- local function getAngles(cf)
- local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
- return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
- end
- function explosion(col1,col2,cfr,sz,rng,dmg)
- local a= Part(1,1,1,col1,.5,false,true,pchar)
- local a2= Part(1,1,1,col2,.5,false,true,pchar)
- local a3= Part(1,1,1,col2,.5,false,true,pchar)
- v1,v2,v3=sz.x,sz.y,sz.z
- local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
- local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
- local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
- a.CFrame=cfr
- a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
- a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
- for i,v in pairs(workspace:children()) do
- if v:IsA("Model") and v:findFirstChild("Humanoid") then
- if v:findFirstChild("Head") and v:findFirstChild("Torso") then
- if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= pchar.Name then
- v.Humanoid.Health=v.Humanoid.Health-dmg
- v.Torso.Velocity=Vector3.new(math.random(-dmg*2,dmg*2),dmg*3,math.random(-dmg*2,dmg*2))
- end
- end
- end
- end
- Spawn(function()
- while true do
- wait()
- if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
- m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
- m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
- m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
- a2.CFrame=a2.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))
- a3.CFrame=a3.CFrame*CFrame.Angles(-math.rad(2),-math.rad(2),-math.rad(2))
- a.Transparency=a.Transparency+0.05
- a2.Transparency=a2.Transparency+0.05
- a3.Transparency=a3.Transparency+0.05
- end
- end)
- end
- function tmdmg(tm,pa,dmg,rng)
- Spawn(function()
- for i=1,tm do wait()
- for i,v in pairs(workspace:children()) do
- if v:IsA("Model") and v:findFirstChild("Humanoid") then
- if v:findFirstChild("Head") and v:findFirstChild("Torso") then
- if (v:findFirstChild("Torso").Position - pa.Position).magnitude < rng and v.Name ~= pchar.Name then
- v.Humanoid.Health=v.Humanoid.Health-dmg
- end
- end
- end
- end
- end
- end)
- end
- Lerp = {
- Number = function(C1,C2,inc)
- return C1 + (C2 - C1) * inc
- end;
- CFrame = function(a,b,m)
- local c,d={a:components()},{b:components()}
- table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end)
- return CFrame.new(unpack(c))
- end;
- }
- local function genWeld(a,b)
- local w = Instance.new("Weld",a)
- w.Part0 = a
- w.Part1 = b
- return w
- end
- local Neck = genWeld(pchar.Torso,pchar.Head)
- Neck.C0 = CFrame.new(0,1,0)
- Neck.C1 = CFrame.new(0,-0.5,0)
- local LeftShoulder = genWeld(pchar.Torso,pchar['Left Arm'])
- LeftShoulder.C0 = CFrame.new(-1,0.5,0)
- LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
- local RightShoulder = genWeld(pchar.Torso,pchar['Right Arm'])
- RightShoulder.C0 = CFrame.new(1,0.5,0)
- RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
- local LeftHip = genWeld(pchar.Torso,pchar['Left Leg'])
- LeftHip.C0 = CFrame.new(-1,-1,0)
- LeftHip.C1 = CFrame.new(-0.5,1,0)
- local RightHip = genWeld(pchar.Torso,pchar['Right Leg'])
- RightHip.C0 = CFrame.new(1,-1,0)
- RightHip.C1 = CFrame.new(0.5,1,0)
- local RootJoint = genWeld(pchar.HumanoidRootPart,pchar.Torso)
- RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
- RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
- local m = Instance.new("Model")
- m.Name = "Model"
- p1 = Instance.new("Part", m)
- p1.BrickColor = BrickColor.new("Royal purple")
- p1.FormFactor = Enum.FormFactor.Custom
- p1.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
- p1.CFrame = CFrame.new(-4.38250017, 5.90899992, 11.0679998, -3.24902021e-006, 9.58114477e-010, -0.999992907, -7.26728331e-006, -0.999994278, -8.0171958e-010, -0.999992251, 7.50569825e-006, 3.24877897e-006)
- p1.Anchored = true
- p1.CanCollide = false
- b1 = Instance.new("SpecialMesh", p1)
- b1.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- b1.TextureId = ""
- b1.MeshType = Enum.MeshType.FileMesh
- b1.Name = "Mesh"
- b1.Scale = Vector3.new(0.0900000036, 1.5, 0.200000003)
- p2 = Instance.new("Part", m)
- p2.BrickColor = BrickColor.new("Really black")
- p2.FormFactor = Enum.FormFactor.Custom
- p2.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
- p2.CFrame = CFrame.new(-4.78348494, 1.20046949, 11.0674896, 2.03024854e-007, 0.999994814, 2.68895456e-005, -6.45878536e-005, -2.68897929e-005, 0.999998271, 0.999994814, -2.04498548e-007, 6.45876353e-005)
- p2.Anchored = true
- p2.CanCollide = false
- b2 = Instance.new("SpecialMesh", p2)
- b2.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- b2.TextureId = ""
- b2.MeshType = Enum.MeshType.FileMesh
- b2.Name = "Mesh"
- b2.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
- p3 = Instance.new("Part", m)
- p3.BrickColor = BrickColor.new("Royal purple")
- p3.FormFactor = Enum.FormFactor.Custom
- p3.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
- p3.CFrame = CFrame.new(-4.78348494, 1.20046949, 11.0674896, 1.35292976e-005, 0.999994814, 2.33750106e-005, 0.499945492, -2.70082237e-005, 0.866054654, 0.866051197, -3.0624193e-008, -0.499943763)
- p3.Anchored = true
- p3.CanCollide = false
- b3 = Instance.new("SpecialMesh", p3)
- b3.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- b3.TextureId = ""
- b3.MeshType = Enum.MeshType.FileMesh
- b3.Name = "Mesh"
- b3.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
- p4 = Instance.new("Part", m)
- p4.BrickColor = BrickColor.new("Royal purple")
- p4.FormFactor = Enum.FormFactor.Custom
- p4.Size = Vector3.new(0.200000003, 0.200000003, 0.400000006)
- p4.CFrame = CFrame.new(-3.9834733, 1.20044112, 11.0675144, 1.90376704e-005, 0.999994814, 1.91206054e-005, 0.707060516, -2.69822558e-005, 0.707149625, 0.707147956, 5.72263765e-008, -0.707058728)
- p4.Anchored = true
- p4.CanCollide = false
- b4 = Instance.new("SpecialMesh", p4)
- b4.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- b4.TextureId = ""
- b4.MeshType = Enum.MeshType.FileMesh
- b4.Name = "Mesh"
- b4.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
- p5 = Instance.new("Part", m)
- p5.BrickColor = BrickColor.new("Really black")
- p5.FormFactor = Enum.FormFactor.Custom
- p5.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
- p5.CFrame = CFrame.new(-3.9834733, 1.20044112, 11.0675144, 2.03024854e-007, 0.999994814, 2.68895456e-005, -6.45878536e-005, -2.68897929e-005, 0.999998271, 0.999994814, -2.04498548e-007, 6.45876353e-005)
- p5.Anchored = true
- p5.CanCollide = false
- b5 = Instance.new("SpecialMesh", p5)
- b5.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- b5.TextureId = ""
- b5.MeshType = Enum.MeshType.FileMesh
- b5.Name = "Mesh"
- b5.Scale = Vector3.new(0.100000001, 0.25999999, 0.100000001)
- p6 = Instance.new("Part", m)
- p6.BrickColor = BrickColor.new("Royal purple")
- p6.Material = Enum.Material.SmoothPlastic
- p6.FormFactor = Enum.FormFactor.Custom
- p6.Size = Vector3.new(0.200000003, 0.600000143, 1)
- p6.CFrame = CFrame.new(-4.38349676, 0.700476408, 11.0674639, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
- p6.Anchored = true
- p6.CanCollide = false
- b6 = Instance.new("CylinderMesh", p6)
- b6.Name = "Mesh"
- b6.Scale = Vector3.new(1, 1.5, 0.100000001)
- p7 = Instance.new("Part", m)
- p7.BrickColor = BrickColor.new("Royal purple")
- p7.Material = Enum.Material.SmoothPlastic
- p7.FormFactor = Enum.FormFactor.Custom
- p7.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p7.CFrame = CFrame.new(-4.38347578, 0.100488186, 11.0674219, 0.999994993, 2.68598014e-005, -2.10421803e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 2.08939497e-007, 6.46425033e-005, 0.999994993)
- p7.Anchored = true
- p7.CanCollide = false
- b7 = Instance.new("SpecialMesh", p7)
- b7.MeshId = "http://www.roblox.com/asset/?id=3270017"
- b7.TextureId = ""
- b7.MeshType = Enum.MeshType.FileMesh
- b7.Name = "Mesh"
- b7.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
- p8 = Instance.new("Part", m)
- p8.BrickColor = BrickColor.new("Really black")
- p8.Material = Enum.Material.SmoothPlastic
- p8.FormFactor = Enum.FormFactor.Custom
- p8.Size = Vector3.new(0.200000003, 0.80000037, 0.200000003)
- p8.CFrame = CFrame.new(-4.44335222, 6.31963682, 11.0678616, -2.03024811e-007, 2.68621734e-005, 0.999994993, 6.45878681e-005, 0.999998331, -2.68624135e-005, -0.999994993, 6.45876644e-005, -2.04505866e-007)
- p8.Anchored = true
- p8.CanCollide = false
- b8 = Instance.new("SpecialMesh", p8)
- b8.MeshType = Enum.MeshType.Wedge
- b8.Name = "Mesh"
- b8.Scale = Vector3.new(0.400000006, 1, 0.600000024)
- p9 = Instance.new("Part", m)
- p9.BrickColor = BrickColor.new("Really black")
- p9.Material = Enum.Material.SmoothPlastic
- p9.FormFactor = Enum.FormFactor.Custom
- p9.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003)
- p9.CFrame = CFrame.new(-4.38343573, 1.70038664, 11.0675249, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
- p9.Anchored = true
- p9.CanCollide = false
- b9 = Instance.new("BlockMesh", p9)
- b9.Name = "Mesh"
- b9.Scale = Vector3.new(0.449999988, 1.10000002, 0.150000006)
- handl = Instance.new("Part", m)
- handl.BrickColor = BrickColor.new("Really black")
- handl.Material = Enum.Material.SmoothPlastic
- handl.Name = "handle"
- handl.FormFactor = Enum.FormFactor.Custom
- handl.Size = Vector3.new(0.200000003, 0.600000024, 0.200000003)
- handl.CFrame = CFrame.new(-4.38349676, 0.700476408, 11.0674639, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
- handl.Anchored = true
- handl.CanCollide = false
- b10 = Instance.new("BlockMesh", handl)
- b10.Name = "Mesh"
- b10.Scale = Vector3.new(0.5, 1.5, 0.150000006)
- p11 = Instance.new("Part", m)
- p11.BrickColor = BrickColor.new("Really black")
- p11.Material = Enum.Material.SmoothPlastic
- p11.FormFactor = Enum.FormFactor.Custom
- p11.Size = Vector3.new(0.400000006, 0.200000003, 0.200000003)
- p11.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.000361636019, 0.000304358749, -0.999994814, -0.999998271, -0.000127056977, -0.000361675629, -0.000127166844, 0.999994755, 0.000304312387)
- p11.Anchored = true
- p11.CanCollide = false
- p11.BottomSurface = Enum.SurfaceType.Smooth
- p11.TopSurface = Enum.SurfaceType.Smooth
- b11 = Instance.new("SpecialMesh", p11)
- b11.MeshId = "http://www.roblox.com/asset/?id=16606212"
- b11.TextureId = ""
- b11.MeshType = Enum.MeshType.FileMesh
- b11.Name = "Mesh"
- b11.Scale = Vector3.new(0.0500000007, 0.0599999987, 0.219999999)
- p12 = Instance.new("Part", m)
- p12.BrickColor = BrickColor.new("Royal purple")
- p12.Material = Enum.Material.SmoothPlastic
- p12.FormFactor = Enum.FormFactor.Custom
- p12.Size = Vector3.new(0.600000024, 0.400000036, 0.400000006)
- p12.CFrame = CFrame.new(-4.38352394, 0.900473356, 11.0674744, 0.999994993, -2.10422286e-007, -2.68598014e-005, -2.68600634e-005, -6.46624612e-005, -0.999998331, 2.08939497e-007, 0.999994993, -6.46621702e-005)
- p12.Anchored = true
- p12.CanCollide = false
- b12 = Instance.new("SpecialMesh", p12)
- b12.MeshId = "http://www.roblox.com/asset/?id=3270017"
- b12.TextureId = ""
- b12.MeshType = Enum.MeshType.FileMesh
- b12.Name = "Mesh"
- b12.Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006)
- p13 = Instance.new("Part", m)
- p13.BrickColor = BrickColor.new("Really black")
- p13.Material = Enum.Material.SmoothPlastic
- p13.FormFactor = Enum.FormFactor.Custom
- p13.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003)
- p13.CFrame = CFrame.new(-4.38342142, 3.50038433, 11.0676756, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
- p13.Anchored = true
- p13.CanCollide = false
- b13 = Instance.new("BlockMesh", p13)
- b13.Name = "Mesh"
- b13.Scale = Vector3.new(0.400000006, 2.70000005, 1.25)
- p14 = Instance.new("Part", m)
- p14.BrickColor = BrickColor.new("Royal purple")
- p14.Material = Enum.Material.SmoothPlastic
- p14.FormFactor = Enum.FormFactor.Custom
- p14.Size = Vector3.new(0.200000003, 0.800000012, 0.200000003)
- p14.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 2.03024854e-007, 0.999994814, 2.68895456e-005, -6.45878536e-005, -2.68897929e-005, 0.999998271, 0.999994814, -2.04498548e-007, 6.45876353e-005)
- p14.Anchored = true
- p14.CanCollide = false
- b14 = Instance.new("CylinderMesh", p14)
- b14.Name = "Mesh"
- b14.Scale = Vector3.new(1, 0.860000014, 0.349999994)
- p15 = Instance.new("Part", m)
- p15.BrickColor = BrickColor.new("Royal purple")
- p15.Material = Enum.Material.SmoothPlastic
- p15.FormFactor = Enum.FormFactor.Custom
- p15.Size = Vector3.new(0.200000003, 0.400000006, 0.200000003)
- p15.CFrame = CFrame.new(-4.38351488, 1.00045681, 11.067482, 0.999994993, -2.10422286e-007, -2.68598014e-005, -2.68600634e-005, -6.46624612e-005, -0.999998331, 2.08939497e-007, 0.999994993, -6.46621702e-005)
- p15.Anchored = true
- p15.CanCollide = false
- b15 = Instance.new("SpecialMesh", p15)
- b15.MeshId = "http://www.roblox.com/asset/?id=3270017"
- b15.TextureId = ""
- b15.MeshType = Enum.MeshType.FileMesh
- b15.Name = "Mesh"
- b15.Scale = Vector3.new(0.200000003, 0.200000003, 0.400000006)
- p16 = Instance.new("Part", m)
- p16.BrickColor = BrickColor.new("Royal purple")
- p16.Material = Enum.Material.SmoothPlastic
- p16.FormFactor = Enum.FormFactor.Custom
- p16.Size = Vector3.new(1, 0.200000003, 0.400000036)
- p16.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.999994993, 2.10420296e-007, 2.68598014e-005, -2.68600634e-005, 6.45879554e-005, 0.999998331, 2.08939497e-007, -0.999994993, 6.45876644e-005)
- p16.Anchored = true
- p16.CanCollide = false
- b16 = Instance.new("CylinderMesh", p16)
- b16.Name = "Mesh"
- b16.Scale = Vector3.new(1, 0.899999976, 0.899999976)
- p17 = Instance.new("Part", m)
- p17.BrickColor = BrickColor.new("Royal purple")
- p17.Material = Enum.Material.SmoothPlastic
- p17.FormFactor = Enum.FormFactor.Custom
- p17.Size = Vector3.new(0.200000033, 0.200000003, 0.400000006)
- p17.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.999994993, 1.22376412e-006, 2.79684682e-005, -2.79687956e-005, 6.45115288e-005, 0.999998331, 1.22221331e-006, -0.999994993, 6.45113687e-005)
- p17.Anchored = true
- p17.CanCollide = false
- b17 = Instance.new("CylinderMesh", p17)
- b17.Name = "Mesh"
- b17.Scale = Vector3.new(1, 1.10000002, 0.25)
- p18 = Instance.new("Part", m)
- p18.BrickColor = BrickColor.new("Really black")
- p18.Material = Enum.Material.SmoothPlastic
- p18.FormFactor = Enum.FormFactor.Custom
- p18.Size = Vector3.new(0.600000024, 0.200000003, 0.400000006)
- p18.CFrame = CFrame.new(-4.3834815, 1.20045376, 11.0674934, 0.999994993, 2.10420296e-007, 2.68598014e-005, -2.68600634e-005, 6.45879554e-005, 0.999998331, 2.08939497e-007, -0.999994993, 6.45876644e-005)
- p18.Anchored = true
- p18.CanCollide = false
- b18 = Instance.new("CylinderMesh", p18)
- b18.Name = "Mesh"
- b18.Scale = Vector3.new(1, 1, 0.5)
- p19 = Instance.new("Part", m)
- p19.BrickColor = BrickColor.new("Really black")
- p19.Material = Enum.Material.SmoothPlastic
- p19.FormFactor = Enum.FormFactor.Custom
- p19.Size = Vector3.new(0.200000003, 0.80000037, 0.200000003)
- p19.CFrame = CFrame.new(-4.32335329, 6.31963253, 11.0678616, 1.78813934e-007, 2.67998621e-005, -0.999994993, -6.46066765e-005, 0.999998331, 2.68001022e-005, 0.999994993, 6.46064655e-005, 1.78813934e-007)
- p19.Anchored = true
- p19.CanCollide = false
- b19 = Instance.new("SpecialMesh", p19)
- b19.MeshType = Enum.MeshType.Wedge
- b19.Name = "Mesh"
- b19.Scale = Vector3.new(0.400000006, 1, 0.600000024)
- blade = Instance.new("Part", m)
- blade.BrickColor = BrickColor.new("Royal purple")
- blade.Material = Enum.Material.SmoothPlastic
- blade.Name = "blade"
- blade.FormFactor = Enum.FormFactor.Custom
- blade.Size = Vector3.new(0.200000003, 1.79999995, 0.200000003)
- blade.CFrame = CFrame.new(-4.38342142, 3.50038433, 11.0676756, 2.03024811e-007, 2.68621734e-005, -0.999994993, -6.45878681e-005, 0.999998331, 2.68624135e-005, 0.999994993, 6.45876644e-005, 2.04505866e-007)
- blade.Anchored = true
- blade.CanCollide = false
- b20 = Instance.new("BlockMesh", blade)
- b20.Name = "Mesh"
- b20.Scale = Vector3.new(0.419999987, 2.70000005, 0.5)
- p21 = Instance.new("Part", m)
- p21.BrickColor = BrickColor.new("Royal purple")
- p21.Material = Enum.Material.SmoothPlastic
- p21.FormFactor = Enum.FormFactor.Custom
- p21.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p21.CFrame = CFrame.new(-4.87347412, 1.20048833, 11.067421, 0.999994993, 2.68597978e-005, -1.63912773e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 1.63912773e-007, 6.46424742e-005, 0.999994993)
- p21.Anchored = true
- p21.CanCollide = false
- b21 = Instance.new("SpecialMesh", p21)
- b21.MeshId = "http://www.roblox.com/asset/?id=3270017"
- b21.TextureId = ""
- b21.MeshType = Enum.MeshType.FileMesh
- b21.Name = "Mesh"
- b21.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
- p22 = Instance.new("Part", m)
- p22.BrickColor = BrickColor.new("Really black")
- p22.Material = Enum.Material.SmoothPlastic
- p22.FormFactor = Enum.FormFactor.Custom
- p22.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p22.CFrame = CFrame.new(-4.6434741, 1.36048794, 11.0674219, 0.999994993, 2.68597978e-005, -1.63912773e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 1.63912773e-007, 6.46424742e-005, 0.999994993)
- p22.Anchored = true
- p22.CanCollide = false
- b22 = Instance.new("SpecialMesh", p22)
- b22.MeshId = "http://www.roblox.com/asset/?id=3270017"
- b22.TextureId = ""
- b22.MeshType = Enum.MeshType.FileMesh
- b22.Name = "Mesh"
- b22.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
- p23 = Instance.new("Part", m)
- p23.BrickColor = BrickColor.new("Really black")
- p23.Material = Enum.Material.SmoothPlastic
- p23.FormFactor = Enum.FormFactor.Custom
- p23.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p23.CFrame = CFrame.new(-4.6434741, 1.05048847, 11.0674219, 0.999994993, 2.68597978e-005, -1.63912773e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, 1.63912773e-007, 6.46424742e-005, 0.999994993)
- p23.Anchored = true
- p23.CanCollide = false
- b23 = Instance.new("SpecialMesh", p23)
- b23.MeshId = "http://www.roblox.com/asset/?id=3270017"
- b23.TextureId = ""
- b23.MeshType = Enum.MeshType.FileMesh
- b23.Name = "Mesh"
- b23.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
- p24 = Instance.new("Part", m)
- p24.BrickColor = BrickColor.new("Really black")
- p24.FormFactor = Enum.FormFactor.Custom
- p24.Size = Vector3.new(0.200000003, 0.400000006, 0.400000006)
- p24.CFrame = CFrame.new(-4.38800001, 3.43899989, 11.0679998, -3.24902021e-006, 9.58114477e-010, -0.999992907, -7.26728331e-006, -0.999994278, -8.0171958e-010, -0.999992251, 7.50569825e-006, 3.24877897e-006)
- p24.Anchored = true
- p24.CanCollide = false
- b24 = Instance.new("SpecialMesh", p24)
- b24.MeshId = "http://www.roblox.com/Asset/?id=9756362"
- b24.TextureId = ""
- b24.MeshType = Enum.MeshType.FileMesh
- b24.Name = "Mesh"
- b24.Scale = Vector3.new(0.100000001, 1.5, 0.100000001)
- p25 = Instance.new("Part", m)
- p25.BrickColor = BrickColor.new("Really black")
- p25.Material = Enum.Material.SmoothPlastic
- p25.FormFactor = Enum.FormFactor.Custom
- p25.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p25.CFrame = CFrame.new(-4.12346935, 1.36048794, 11.0674219, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993)
- p25.Anchored = true
- p25.CanCollide = false
- b25 = Instance.new("SpecialMesh", p25)
- b25.MeshId = "http://www.roblox.com/asset/?id=3270017"
- b25.TextureId = ""
- b25.MeshType = Enum.MeshType.FileMesh
- b25.Name = "Mesh"
- b25.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
- p26 = Instance.new("Part", m)
- p26.BrickColor = BrickColor.new("Royal purple")
- p26.Material = Enum.Material.SmoothPlastic
- p26.FormFactor = Enum.FormFactor.Custom
- p26.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p26.CFrame = CFrame.new(-3.89346814, 1.20048833, 11.0674229, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993)
- p26.Anchored = true
- p26.CanCollide = false
- b26 = Instance.new("SpecialMesh", p26)
- b26.MeshId = "http://www.roblox.com/asset/?id=3270017"
- b26.TextureId = ""
- b26.MeshType = Enum.MeshType.FileMesh
- b26.Name = "Mesh"
- b26.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
- p27 = Instance.new("Part", m)
- p27.BrickColor = BrickColor.new("Really black")
- p27.Material = Enum.Material.SmoothPlastic
- p27.FormFactor = Enum.FormFactor.Custom
- p27.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p27.CFrame = CFrame.new(-4.12346935, 1.05048847, 11.0674219, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993)
- p27.Anchored = true
- p27.CanCollide = false
- b27 = Instance.new("SpecialMesh", p27)
- b27.MeshId = "http://www.roblox.com/asset/?id=3270017"
- b27.TextureId = ""
- b27.MeshType = Enum.MeshType.FileMesh
- b27.Name = "Mesh"
- b27.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
- p28 = Instance.new("Part", m)
- p28.BrickColor = BrickColor.new("Really black")
- p28.Material = Enum.Material.SmoothPlastic
- p28.FormFactor = Enum.FormFactor.Custom
- p28.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p28.CFrame = CFrame.new(-4.12346935, 1.36048794, 11.0674219, -0.999994993, -2.6859796e-005, 1.78813934e-007, -2.68600634e-005, 0.999998331, -6.46428016e-005, -1.78813934e-007, -6.46425033e-005, -0.999994993)
- p28.Anchored = true
- p28.CanCollide = false
- b28 = Instance.new("SpecialMesh", p28)
- b28.MeshId = "http://www.roblox.com/asset/?id=3270017"
- b28.TextureId = ""
- b28.MeshType = Enum.MeshType.FileMesh
- b28.Name = "Mesh"
- b28.Scale = Vector3.new(0.280000001, 0.280000001, 0.5)
- c = m:children()
- for n = 1, #c do
- if (c[n].className == "Part") then
- if (c[n].Name ~= "handle") then
- stick(c[n], m.handle)
- wait()
- c[n].Anchored = false
- end
- end
- end
- for _,v in pairs(pchar:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
- handl.Anchored=false
- mwl= Weld(handl,pchar.Torso,-1,0,-1,rad(120),0,0,m)
- m.Parent = pchar
- hp=Instance.new('HopperBin',player.Backpack)
- hp.Name='Despira'
- local hat=Part(.5,1,1.02,'Really black',0,false,false,pchar)
- Mesh(hat,'http://www.roblox.com/asset/?id=16952952',1.05,1.05,1.05)
- Weld(pchar.Head,hat,0,-.25,0,0,0,0,p)
- -- cape mesh cause lazy :p
- local cpw=Part(.2,.2,.2,'White',1,false,false,pchar)
- Weld(torso,cpw,0,-1,-.5,0,0,0,p)
- local cp=Part(.1,.1,.1,'Really black',0,false,false,pchar)
- Mesh(cp,'http://www.roblox.com/asset/?id=114046169',1.3,1.3,1.3)
- cape = Weld(cpw,cp,0,1.2,0,0,0,0,p)
- local function newLerpTo(weld)
- return {
- Weld = weld;
- To = weld.C0;
- Cache = weld.C0;
- Speed = 0.2;
- }
- end
- Used={Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false}
- function SetAnimData(IF_DATA_IS_USED)
- Used = IF_DATA_IS_USED
- end
- function CheckAnimData(ANIM_TAB,DO_ANIM)
- anglespeed=Anims[ANIM_TAB][DO_ANIM].speed or 1
- if Used.Head == true then
- LerpTo.Neck.To = LerpTo.Neck.Cache * Anims[ANIM_TAB][DO_ANIM].Head
- end
- if Used.RightArm == true then
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * Anims[ANIM_TAB][DO_ANIM].RightArm
- end
- if Used.LeftArm == true then
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * Anims[ANIM_TAB][DO_ANIM].LeftArm
- end
- if Used.RightLeg == true then
- LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * Anims[ANIM_TAB][DO_ANIM].RightLeg
- end
- if Used.LeftLeg == true then
- LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * Anims[ANIM_TAB][DO_ANIM].LeftLeg
- end
- if Used.Torso == true then
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * Anims[ANIM_TAB][DO_ANIM].Torso
- end
- LerpTo.cape.To = LerpTo.cape.Cache * Anims[ANIM_TAB][DO_ANIM].Cape
- end
- function UpdateAnims()
- Anims = {
- ["Idle"] = {
- ["Stance"] = {
- speed=.25,
- Head = CFrame.Angles(cos(angle)*0.01,0,0),
- RightArm = CFrame.Angles(cos(angle)*0.1,0,0),
- LeftArm = CFrame.Angles(-cos(angle)*0.1,0,0),
- RightLeg = CFrame.Angles(cos(angle)*0.1,0,0),
- LeftLeg = CFrame.Angles(-cos(angle)*0.1,0,0),
- Torso = CFrame.Angles(0,0,0),
- Cape = CFrame.Angles(0,0,0)
- },
- ["Walk"] = {
- speed=2,
- Head = CFrame.Angles(0,0,cos(angle)*0.05),
- RightArm = CFrame.Angles(-cos(angle)*1,0,0),
- LeftArm = CFrame.Angles(cos(angle)*1,0,0),
- RightLeg = CFrame.Angles(cos(angle)*1,0,0),
- LeftLeg = CFrame.Angles(-cos(angle)*1,0,0),
- Torso = CFrame.Angles(0,0,0),
- Cape =CFrame.Angles(-rad(40)+sin(angle)*.1,0,0)
- },
- ["Jump"] = {
- speed=2,
- Head = CFrame.Angles(0,0,0),
- RightArm = CFrame.Angles(rad(-20),0,0),
- LeftArm = CFrame.Angles(rad(-20),0,0),
- RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
- LeftLeg = CFrame.Angles(0,0,0),
- Torso = CFrame.Angles(rad(10),0,0),
- Cape = CFrame.Angles(-rad(70)+sin(angle)*.4,0,0)
- }
- },
- ["Holding"] = {
- ["Stance"] = {
- speed=.25,
- Head = CFrame.Angles(cos(angle)*0.01,0,0),
- RightArm = CFrame.Angles(cos(angle)*0.1,0,rad(10)),
- LeftArm = CFrame.Angles(-cos(angle)*0.1,0,-rad(10)),
- RightLeg = CFrame.Angles(cos(angle)*0.1,0,0),
- LeftLeg = CFrame.Angles(-cos(angle)*0.1,0,0),
- Torso = CFrame.Angles(0,0,0),
- Cape = CFrame.Angles(0,0,0)
- },
- ["Walk"] = {
- speed=2,
- Head = CFrame.Angles(0,0,cos(angle)*0.05),
- RightArm = CFrame.Angles(-cos(angle)*.3,0,rad(10)),
- LeftArm = CFrame.Angles(cos(angle)*.3,0,-rad(10)),
- RightLeg = CFrame.Angles(cos(angle)*1,0,0),
- LeftLeg = CFrame.Angles(-cos(angle)*1,0,0),
- Torso = CFrame.Angles(0,0,0),
- Cape =CFrame.Angles(-rad(40)+sin(angle)*.1,0,0)
- },
- ["Jump"] = {
- speed=2,
- Head = CFrame.Angles(0,0,0),
- RightArm = CFrame.Angles(rad(-20),0,0),
- LeftArm = CFrame.Angles(rad(-20),0,0),
- RightLeg = CFrame.new(0,.5,-.5)*CFrame.Angles(rad(-20),0,0),
- LeftLeg = CFrame.Angles(0,0,0),
- Torso = CFrame.Angles(rad(10),0,0),
- Cape = CFrame.Angles(-rad(70)+sin(angle)*.4,0,0)
- }
- }
- }
- end
- LerpTo = {
- Neck = newLerpTo(Neck);
- LeftArm = newLerpTo(LeftShoulder);
- RightArm = newLerpTo(RightShoulder);
- LeftLeg = newLerpTo(LeftHip);
- RightLeg = newLerpTo(RightHip);
- RootJoint = newLerpTo(RootJoint);
- hndl = newLerpTo(mwl);
- cape = newLerpTo(cape);
- }
- LerpTo.hndl.Cache=CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,rad(90))
- hitdeb=false
- hp.Selected:connect(function(mouse)
- local jmptimer = 0
- mouse.Button1Down:connect(function()
- if attack == true then return end
- if combo==0 then
- attack=true
- tmdmg(10,blade,5,3)
- SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),rad(40),-rad(50))*CFrame.new(0,-.5,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
- wait(.1)
- trail(blade,10,5)
- so('161006212',torso,false,1)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(50))*CFrame.new(0,-.5,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
- wait(.2)
- attack=false
- combo=1
- elseif combo==1 then
- attack=true
- tmdmg(10,blade,5,3)
- SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(150),0,rad(120))*CFrame.new(-.5,0,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
- wait(.1)
- trail(blade,10,5)
- so('161006212',torso,false,.8)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,-rad(50))*CFrame.new(.5,0,-0.5)*CFrame.Angles(0,-rad(90),0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(70))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(70),0)
- wait(.2)
- attack=false
- combo=2
- elseif combo==2 then
- attack=true
- trail(blade,35,5)
- tmdmg(10,blade,5,3)
- so('160069154',torso,false,1)
- SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))*CFrame.new(0,-.5,0)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))*CFrame.new(0,-.5,0)
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,0)
- local spn=0
- for i=1,15 do
- spn=spn+30
- wait(i/1000)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(spn)+rad(70))
- end
- attack=false
- combo=3
- end
- Spawn(function()
- wait(0.6)
- if attack==false then
- attack=true
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.hndl.To = LerpTo.hndl.Cache
- wait(.2)
- attack=false
- combo=0
- end
- end)
- end)
- mouse.KeyDown:connect(function(ke)
- if attack==true then return end
- key=ke:lower()
- if key=="e" then attack=true
- SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
- posfix(-rad(90))
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(30))
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
- wait(.3)
- mgblock(pchar['Left Arm'],CFrame.new(0,-1,0),7,'Really black','Royal purple',Vector3.new(1.5,1.5,1.5),.1)
- so('28257433',pchar.Torso,false,.8)
- local efx= Part(1,1,1,'Black',0,false,true,pchar)
- local m= Mesh(efx,'http://www.roblox.com/asset/?id=51177741',2,2,2)
- efx.CFrame=pchar['Left Arm'].CFrame*CFrame.Angles(-rad(90),0,rad(90))
- local cb=Part(1,1,1,'Black',0,false,true,pchar)
- Mesh(cb,1,1,1,1)
- for i=1,20 do wait()
- efx.CFrame=clerp(efx.CFrame,efx.CFrame*CFrame.new(0,0,-50),.1)
- local p=Part(1,1,1,Cols[math.random(1,#Cols)],0,false,true,pchar)
- Mesh(p,3,1.5,1.5,1.5)
- p.CFrame=efx.CFrame
- cb.Size = Vector3.new(.5, (pchar['Left Arm'].Position - efx.Position).magnitude, .5)
- cb.CFrame = CFrame.new((pchar['Left Arm'].Position + efx.Position)/2, pchar['Left Arm'].Position) * CFrame.Angles(math.pi/2, 0, 0)
- coroutine.resume(coroutine.create(function(part,spin)
- for i=1, 15 do
- part.Mesh.Scale=part.Mesh.Scale+Vector3.new(.3,.3,.3)
- part.Transparency=i/15
- part.CFrame=part.CFrame*CFrame.new(math.random(-10,10)/3,math.random(-10,10)/3,math.random(-10,10)/3)*spin
- wait()
- end
- part.Parent=nil
- end),p,CFrame.fromEulerAnglesXYZ(math.random(-50,50)/500,math.random(-50,50)/500,math.random(-50,50)/500))
- if hitdeb==false then
- for i,v in pairs(workspace:children()) do
- if v:IsA("Model") and v:findFirstChild("Humanoid") then
- if v:findFirstChild("Head") and v:findFirstChild("Torso") then
- if (v:findFirstChild("Torso").Position - efx.Position).magnitude < 7 and v.Name ~= pchar.Name then
- damg=math.random(100,100)
- v.Humanoid:TakeDamage(damg)
- v.Humanoid.PlatformStand=true
- local lock=Weld(efx,v.Torso,0,0,0,0,0,0,v)
- local asd=true
- Spawn(function()
- while asd do wait()
- efx.CFrame=clerp(efx.CFrame,pchar.HumanoidRootPart.CFrame*CFrame.new(0,0,-7),.2)
- cb.Size = Vector3.new(.5, (pchar['Left Arm'].Position - efx.Position).magnitude, .5)
- cb.CFrame = CFrame.new((pchar['Left Arm'].Position + efx.Position)/2, pchar['Left Arm'].Position) * CFrame.Angles(math.pi/2, 0, 0)
- end
- end)
- wait(.1)
- for i=1,10 do wait()
- efx.Transparency=efx.Transparency+.1
- end
- trail(blade,35,5)
- tmdmg(10,blade,5,3)
- so('160069154',torso,false,1.1)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(45))
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(90))*CFrame.new(-0.5,-.5,0)
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,rad(90))
- wait(.05)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0)
- mgblock(pchar['Left Arm'],CFrame.new(0,-1,0),7,'Really black','Royal purple',Vector3.new(1.5,1.5,1.5),.1)
- local spn=0
- for i=1,12 do
- spn=spn+30
- wait()
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(spn)-rad(90))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(spn)+rad(90),0)
- end
- wait(.3)
- asd=false
- so('28144425',torso,false,.265)
- so('2697431',torso,false,.2)
- local splos= Part(1,1,1,'Really black',.5,false,true,pchar)
- local m= Mesh(splos,'http://www.roblox.com/asset/?id=20329976',3,1,3)
- splos.CFrame=torso.CFrame*CFrame.new(-3,0,0)*CFrame.Angles(0,0,-pi/2)
- Spawn(function()
- for i=1,10 do wait(.01)
- m.Scale=m.Scale+Vector3.new(1,.2,1)
- splos.Transparency=splos.Transparency+.1
- end
- splos:Destroy()
- end)
- for i=1,3 do
- for i=1,3 do
- mgblock(v.Torso,CFrame.new(math.random(-3,3)/2,math.random(-3,3)/2,math.random(-3,3)/2),2,'Really black','Royal purple',Vector3.new(.1,.1,.1),0)
- end
- end
- efx:Destroy()
- cb:Destroy()
- lock:Destroy()
- mgblock(v.Torso,CFrame.new(math.random(-3,3)/2,math.random(-3,3)/2,math.random(-3,3)/2),20,'Really black','Royal purple',Vector3.new(.1,.1,.1),0)
- local vs = Instance.new("BodyVelocity",v.Torso)
- vs.maxForce = Vector3.new(1,1,1)*9e9
- vs.P = 2000
- vs.velocity = pchar.HumanoidRootPart.CFrame.lookVector*60+Vector3.new(0,150,0)
- wait(.05)
- vs:Destroy()
- Spawn(function()
- wait(2)
- v.Humanoid.PlatformStand=false
- end)
- v.Humanoid.Health=v.Humanoid.Health-30
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.hndl.To = LerpTo.hndl.Cache
- attack=false
- return
- end
- end
- end
- end
- end
- end
- for i=1,10 do wait()
- efx.CFrame=clerp(efx.CFrame,pchar['Left Arm'].CFrame*CFrame.Angles(-rad(90),0,rad(90)),.2)
- cb.Size = Vector3.new(.5, (pchar['Left Arm'].Position - efx.Position).magnitude, .5)
- cb.CFrame = CFrame.new((pchar['Left Arm'].Position + efx.Position)/2, pchar['Left Arm'].Position) * CFrame.Angles(math.pi/2, 0, 0)
- end
- efx:Destroy()
- cb:Destroy()
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.hndl.To = LerpTo.hndl.Cache
- attack=false
- elseif key=="z" then
- elseif key=="x" then
- attack=true
- local tapdeb=false
- for i,x in pairs(workspace:children()) do
- if x:IsA("Model") and x:findFirstChild("Humanoid") then
- if x:findFirstChild("Head") and x:findFirstChild("Torso") then
- if (x:findFirstChild("Torso").Position - mouse.Hit.p).magnitude < 4 and x.Name ~= pchar.Name then
- if tapdeb==false then
- SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
- cloneefx()
- pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(0,0,-4)*CFrame.Angles(0,pi/1,0)
- tmdmg(10,blade,3,3)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),rad(40),-rad(50))*CFrame.new(0,-.5,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
- wait(.1)
- trail(blade,3,5)
- so('161006212',torso,false,1)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(50))*CFrame.new(0,-.5,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
- wait(.2)
- cloneefx()
- pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(-4,0,0)*CFrame.Angles(0,-pi/2,0)
- tmdmg(10,blade,4,3)
- SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(150),0,rad(120))*CFrame.new(-.5,0,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
- wait(.1)
- trail(blade,3,5)
- so('161006212',torso,false,.8)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,-rad(50))*CFrame.new(.5,0,-0.5)*CFrame.Angles(0,-rad(90),0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(70))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(70),0)
- wait(.2)
- cloneefx()
- pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(0,0,4)*CFrame.Angles(0,0,0)
- tmdmg(10,blade,4,3)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(120),rad(40),-rad(50))*CFrame.new(0,-.5,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(30))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(30),0)
- wait(.1)
- trail(blade,3,5)
- so('161006212',torso,false,1)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(50))*CFrame.new(0,-.5,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
- wait(.2)
- cloneefx()
- pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(4,0,0)*CFrame.Angles(0,pi/2,0)
- tmdmg(10,blade,4,3)
- SetAnimData({Head=false,RightArm=false,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=false})
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(150),0,rad(120))*CFrame.new(-.5,0,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(30))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(30),0)
- wait(.1)
- trail(blade,3,5)
- so('161006212',torso,false,.8)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),0,-rad(50))*CFrame.new(.5,0,-0.5)*CFrame.Angles(0,-rad(90),0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(70))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(70),0)
- wait(.2)
- so('161006212',torso,false,.5)
- cloneefx()
- tmdmg(10,blade,5,3)
- trail(blade,3,7)
- pchar.Torso.CFrame=x.Torso.CFrame*CFrame.new(0,0,-6)*CFrame.Angles(0,pi/1,0)
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(30))
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
- wait(.1)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0)
- wait(.1)
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,rad(90))
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,rad(90))
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(90))*CFrame.new(-.5,-.5,0)
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0)
- wait(.4)
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.hndl.To = LerpTo.hndl.Cache
- attack=false
- return
- end
- end
- end
- end
- end
- attack=false
- elseif key=="c" then
- attack=true
- SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
- posfix(-rad(90))
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(30))
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90))*CFrame.new(0.5,-.5,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(90),0)
- wait(.1)
- so('62339698',torso,false,.35)
- Spawn(function()
- for i=1,3 do wait()
- local efx= Part(1,1,1,'Really black',.5,false,true,m)
- local m= Mesh(efx,'http://www.roblox.com/asset/?id=20329976',3,1,3)
- efx.CFrame=torso.CFrame*CFrame.Angles(pi/2,0,-rad(90))
- Spawn(function()
- for i=1,7 do wait()
- m.Scale=m.Scale+Vector3.new(1,.1,1)
- end
- efx:Destroy()
- end)
- end
- end)
- Spawn(function()
- for i=1,4 do wait()
- mgblock(torso,CFrame.new(0,0,0),4,'Really black','Really black',Vector3.new(2,2,2),.1)
- end
- end)
- local v = Instance.new("BodyVelocity",torso)
- v.maxForce = Vector3.new(1,1,1)*9e9
- v.P = 2000
- local cfx=torso.CFrame*CFrame.Angles(0,rad(90),0)
- v.velocity = cfx.lookVector*60
- local tapdeb=false
- for i=1,10 do wait()
- for i,x in pairs(workspace:children()) do
- if x:IsA("Model") and x:findFirstChild("Humanoid") then
- if x:findFirstChild("Head") and x:findFirstChild("Torso") then
- if (x:findFirstChild("Torso").Position - torso.Position).magnitude < 7 and x.Name ~= pchar.Name then
- if tapdeb==false then
- tmdmg(15,blade,3,5)
- v:Destroy()
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(40))*CFrame.new(0.5,-.5,0)
- so('10209645',torso,false,.8)
- for i=1,3 do wait()
- x.Humanoid.PlatformStand=true
- x.Torso.CFrame=pchar['Left Arm'].CFrame*CFrame.new(0,-1,0)*CFrame.Angles(rad(90),0,0)
- end
- so('46153268',torso,false,.5)
- wait(.4)
- SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))* CFrame.new(-.2,-.25,0)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))* CFrame.new(.2,-.25,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
- LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1)
- LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0)
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,-rad(90))*CFrame.Angles(-rad(130),0,0)
- so('169310515',torso,false,.6)
- wait(.4)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(150),0,0)
- mgblock(pchar['Left Arm'],CFrame.new(0,-1,0),30,'Really black','Really black',Vector3.new(2,2,2),.1)
- mgblock(x.Torso,CFrame.new(0,0,0),30,'Really black','Really black',Vector3.new(2,2,2),.1)
- local vs = Instance.new("BodyVelocity",x.Torso)
- vs.maxForce = Vector3.new(1,1,1)*9e9
- vs.P = 2000
- vs.velocity = Vector3.new(0,6,0)
- local efx= Part(1,1,1,'Really black',1,false,true,m)
- local m= Mesh(efx,'http://www.roblox.com/asset/?id=1185246',10,10,10)
- Spawn(function()
- for i=1,7 do wait()
- efx.Transparency=efx.Transparency-.1
- end
- end)
- for i=1,100 do
- efx.CFrame=x.Torso.CFrame
- wait()
- end
- vs:Destroy()
- x.Torso.Anchored=true
- local bp=Instance.new("BodyPosition",torso)
- bp.maxForce=Vector3.new(10000,10000,10000)
- bp.position=x.Torso.Position+Vector3.new(5,0,0)
- so('160069154',torso,false,1.1)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(45))
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(90))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,-rad(90),0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,rad(90))*CFrame.new(-0.5,-.5,0)
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(rad(90),0,rad(90))
- trail(blade,35,5)
- local spn=0
- for i=1,12 do
- spn=spn+30
- wait()
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,-rad(spn))
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,rad(spn),0)
- end
- bp:Destroy()
- efx:Destroy()
- so('138122923',torso,false,.8)
- x.Humanoid.Health=x.Humanoid.Health-20
- for i=1,14 do
- local efx= Part(1,1,1,'Really black',0,false,false,pchar)
- local m= Mesh(efx,3,math.random(1,10)/10,math.random(1,10)/10,math.random(1,10)/10)
- efx.CFrame=x.Torso.CFrame
- efx.Velocity=Vector3.new(math.random(-20,20),0,math.random(-20,20))
- Spawn(function()
- for i=1,10 do wait(.1)
- efx.Transparency=efx.Transparency+.1
- end
- end)
- end
- x.Torso.Anchored=false
- x.Humanoid.PlatformStand=false
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.hndl.To = LerpTo.hndl.Cache
- attack=false
- return
- end
- end
- end
- end
- end
- end
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.hndl.To = LerpTo.hndl.Cache
- v:Destroy()
- attack=false
- elseif key=="v" then
- elseif key==" " then
- tim = game:service'RunService'.Stepped:wait()
- if (tim - jmptimer < .2) then
- attack=true
- Spawn(function()
- for i=1,3 do wait()
- local efx= Part(1,1,1,'Really black',.5,false,true,m)
- local m= Mesh(efx,'http://www.roblox.com/asset/?id=20329976',3,1,3)
- efx.CFrame=torso.CFrame
- Spawn(function()
- for i=1,7 do wait()
- m.Scale=m.Scale+Vector3.new(1,.2,1)
- efx.Transparency=efx.Transparency+.12
- end
- efx:Destroy()
- end)
- end
- end)
- local vs = Instance.new("BodyVelocity",pchar.Torso)
- vs.maxForce = Vector3.new(1,1,1)*9e9
- vs.P = 2000
- vs.velocity = pchar.Torso.CFrame.lookVector*60+Vector3.new(0,150,0)
- wait(.025)
- vs:Destroy()
- trail(blade,35,5)
- so('160069154',torso,false,.8)
- SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=false})
- LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))*CFrame.new(0,-.5,0)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))*CFrame.new(0,-.5,0)
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,rad(90),0)*CFrame.Angles(rad(130),0,0)
- local spn=0
- for i=1,14 do
- spn=spn+30
- wait(i/1000)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(rad(spn),0,0)
- end
- SetAnimData({Head=false,RightArm=false,LeftArm=false,RightLeg=false,LeftLeg=false,Torso=false})
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90),0,-rad(40))* CFrame.new(-.2,-.25,0)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90),0,rad(40))* CFrame.new(.2,-.25,0)
- LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,0,-1)
- LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,0) * CFrame.new(0,1,-1)
- LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-rad(50),0,0) * CFrame.new(0,0.5,0)
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,-rad(90))*CFrame.Angles(-rad(130),0,0)
- hitted=false
- local hp=blade.Touched:connect(function(hit)
- if hitted == true or hit.Parent.Name==pchar.Name then return end
- so('157878578',torso,false,1)
- hitted=true
- explosion('Really black','Royal purple',torso.CFrame,Vector3.new(40,40,40),30,40)
- for i=1, 30 do
- local p= Part(math.random(2,7),math.random(2,7),math.random(2,7),workspace.Base.BrickColor.Color,0,false,false,m)
- p.Material=workspace.Base.Material
- p.CFrame=CFrame.new(torso.CFrame.x+math.random(-i,i),0,torso.CFrame.z+math.random(-i,i))*CFrame.Angles(math.random(-10,10)/30,math.random(-10,10)/30,math.random(-10,10)/30)*CFrame.Angles(pi/2,0,0)
- p.Velocity=Vector3.new(math.random(-100,100),math.random(30,100),math.random(-100,100))
- game.Debris:AddItem(p,2)
- Spawn(function()
- for i=1,10 do wait(.01)
- p.Transparency=p.Transparency+.1
- end
- end)
- end
- end)
- repeat wait() until hitted
- hp:disconnect()
- wait(.5)
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.hndl.To = LerpTo.hndl.Cache
- attack=false
- end
- else
- wait(.2)
- end
- jmptimer = tim
- end)
- SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),rad(20),-rad(70))*CFrame.new(0,-1,0)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
- wait(.01)
- mwl.Part1=pchar['Right Arm']
- mwl.C1=CFrame.new(0,-1,0)*CFrame.Angles(-rad(90),0,rad(90))
- wait(.2)
- CurrentActiveAnim="Holding"
- LerpTo.hndl.To = LerpTo.hndl.Cache
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- end)
- hp.Deselected:connect(function()
- SetAnimData({Head=true,RightArm=false,LeftArm=false,RightLeg=true,LeftLeg=true,Torso=true})
- LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(70),rad(20),-rad(70))*CFrame.new(0,-1,0)
- LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(30))
- LerpTo.hndl.To = CFrame.new(0,-0.3,0)*CFrame.Angles(0,0,0)
- wait(.1)
- mwl.Part1=pchar.Torso
- mwl.C1=CFrame.new(-1,0,-1)*CFrame.Angles(rad(120),0,0)
- wait(.1)
- CurrentActiveAnim="Idle"
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- end)
- UpdateAnims()
- SetAnimData({Head=true,RightArm=true,LeftArm=true,RightLeg=true,LeftLeg=true,Torso=true})
- CurrentActiveAnim="Idle"
- game:service'RunService'.RenderStepped:connect(function()
- UpdateAnims(angle)
- for _,v in pairs(LerpTo) do
- v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)
- end
- rclcount = (rclcount%rclcounttime)+rclcountspeed
- rcl = math.pi*math.sin((math.pi*2)/rclcounttime*rclcount)
- angle = (angle % 100) + anglespeed/10
- if Vector3.new(0, torso.Velocity.y, 0).magnitude > 2 then
- CheckAnimData(CurrentActiveAnim,"Jump")
- elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 then
- CheckAnimData(CurrentActiveAnim,"Stance")
- elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 then
- CheckAnimData(CurrentActiveAnim,"Walk")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement