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)
- local pants = Instance.new('Pants',chr)
- local mask = Instance.new('Part',chr)
- mask.Name = "Mask"
- mask.Size = Vector3.new(2,1,1)
- 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)
- player = game:service("Players").LocalPlayer
- char = player.Character
- local beat = true
- local beattime = 0.6
- suit = Instance.new("Model", char)
- suit.Name = "Determination"
- local vDebounce = false
- Torso = char.Torso
- cf = CFrame.new
- euler = CFrame.fromEulerAnglesXYZ
- slashvalue = 1
- beamvalue = 1
- onehitkill = true
- onehitkilltwo = true
- specialattack = false
- for _, v in pairs(char.Head:GetChildren()) do
- if v.ClassName == "Decal" then
- v:remove()
- end
- end
- for _, v in pairs(char:GetChildren()) do
- if v.ClassName == "Hat" then
- v:remove()
- end
- end
- for _, v in pairs(char:GetChildren()) do
- if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "T-Shirt" or v.ClassName == "ShirtGraphic" then
- v:remove()
- end
- end
- shirt = Instance.new("Shirt", char)
- pants = Instance.new("Pants", char)
- face = Instance.new("Decal", char.Head)
- faceDecal.Texture='rbxassetid://400377667';
- shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=334755544"
- pants.PantsTemplate = "http://www.roblox.com/asset/?id=315964941"
- local Hat = char:FindFirstChild("Hat_F") or Instance.new("Hat")
- Hat.AttachmentPos = Vector3.new(0, 0.33, 0)
- Hat.Name = "Hat_F"
- local Handle = Hat:FindFirstChild("Handle") or Instance.new("Part", Hat)
- if Handle.Name ~= "Handle" then
- Handle.Size = Vector3.new(1, 1, 1)
- end
- Handle.BottomSurface = 0
- Handle.Name = "Handle"
- Handle.TopSurface = 0
- Handle.Locked = 1
- local Mesh = Hat:FindFirstChild("Mesh") or Instance.new("SpecialMesh", Handle)
- Mesh.TextureId = "http://www.roblox.com/asset/?id="
- Mesh.MeshId = "http://www.roblox.com/asset/?id=495214311"
- Mesh.Scale = Vector3.new(1.05, 1.05, 1.05)
- Hat.Parent = char
- RW, LW = Instance.new("Weld"), Instance.new("Weld")
- RW.Name = "Right Shoulder"
- LW.Name = "Left Shoulder"
- RSH, LSH = nil, nil
- LS = Torso["Left Shoulder"]
- LH = Torso["Left Hip"]
- RS = Torso["Right Shoulder"]
- RH = Torso["Right Hip"]
- RSH = char.Torso["Right Shoulder"]
- LSH = char.Torso["Left Shoulder"]
- local LSounds = {
- MegaloStrikesBack = Instance.new("Sound")
- }
- LSounds.MegaloStrikesBack.SoundId = "http://www.roblox.com/asset?id=576197352"
- LSounds.MegaloStrikesBack.Volume = 10
- function PlayLoopedSound(soundname, pitch)
- LSounds[soundname].Parent = char.Torso
- LSounds[soundname].Pitch = pitch
- LSounds[soundname]:Play()
- LSounds[soundname].Looped = true
- oldloopedsound = LSounds[soundname]
- LSounds[soundname] = LSounds[soundname]:clone()
- end
- local Sounds = {
- Hurt = Instance.new("Sound"),
- Slash = Instance.new("Sound"),
- Explode = Instance.new("Sound"),
- Sans = Instance.new("Sound")
- }
- Sounds.Slash.SoundId = "http://www.roblox.com/asset?id=394934205"
- Sounds.Slash.Volume = 1
- Sounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
- Sounds.Hurt.Volume = 1
- Sounds.Sans.SoundId = "http://www.roblox.com/asset?id=388205678"
- Sounds.Sans.Volume = 1
- Sounds.Explode.SoundId = "rbxasset://sounds/collide.wav"
- Sounds.Explode.Volume = 1
- function PlaySound(soundname, pitch)
- Sounds[soundname].Parent = Torso
- Sounds[soundname].Pitch = pitch
- Sounds[soundname]:Play()
- local oldsound = Sounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- Sounds[soundname] = Sounds[soundname]:clone()
- end
- --char.Humanoid.MaxHealth = 99999999999999999999999999
- --char.Humanoid.Health = 9999999999999999999999999999
- function CharaTalks()
- local m = Instance.new("Model", char.Head)
- m.Name = "* W"
- local chat = Instance.new("Part", m)
- chat.TopSurface = "Smooth"
- chat.BottomSurface = "Smooth"
- chat.Name = "Head"
- chat.FormFactor = "Custom"
- chat.Size = Vector3.new(0.05, 0.05, 0.1)
- chat.Transparency = 0.9
- chat.CanCollide = false
- chat.Anchored = true
- chat.CFrame = char.Head.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
- local h = Instance.new("Humanoid", m)
- h.MaxHealth = 0
- m.Name = "* We"
- wait()
- m.Name = "* Wel"
- wait()
- m.Name = "* Welc"
- wait()
- m.Name = "* Welco"
- wait()
- m.Name = "* Welcom"
- wait()
- m.Name = "* Welcome"
- wait()
- m.Name = "* Welcome "
- wait()
- m.Name = "* Welcome t"
- wait()
- m.Name = "* Welcome to"
- wait()
- m.Name = "* Welcome to "
- wait()
- m.Name = "* Welcome to m"
- wait()
- m.Name = "* Welcome to my"
- wait()
- m.Name = "* Welcome to my "
- wait()
- m.Name = "* Welcome to my S"
- wait()
- m.Name = "* Welcome to my SP"
- wait()
- m.Name = "* Welcome to my SPE"
- wait()
- m.Name = "* Welcome to my SPEC"
- wait()
- m.Name = "* Welcome to my SPECI"
- wait()
- m.Name = "* Welcome to my SPECIA"
- wait()
- m.Name = "* Welcome to my SPECIAL"
- wait()
- m.Name = "* Welcome to my SPECIAL "
- wait()
- m.Name = "* Welcome to my SPECIAL A"
- wait()
- m.Name = "* Welcome to my SPECIAL AT"
- wait()
- m.Name = "* Welcome to my SPECIAL ATT"
- wait()
- m.Name = "* Welcome to my SPECIAL ATTA"
- wait()
- m.Name = "* Welcome to my SPECIAL ATTAC"
- wait()
- m.Name = "* Welcome to my SPECIAL ATTACK"
- wait()
- m.Name = "* Welcome to my SPECIAL ATTACK!"
- wait()
- m:remove()
- end
- function GETDUNKED()
- coroutine.resume(coroutine.create(function()
- local m = Instance.new("Model", char.Head)
- m.Name = "* G"
- local chat = Instance.new("Part", m)
- chat.TopSurface = "Smooth"
- chat.BottomSurface = "Smooth"
- chat.Name = "Head"
- chat.FormFactor = "Custom"
- chat.Size = Vector3.new(0.05, 0.05, 0.1)
- chat.Transparency = 0.9
- chat.CanCollide = false
- chat.Anchored = true
- chat.CFrame = char.Head.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
- local h = Instance.new("Humanoid", m)
- h.MaxHealth = 0
- PlaySound("Sans", 1)
- m.Name = "* GE"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* GEE"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* GEEE"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* GEEET"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* GEEETT"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* GEEETTT"
- wait(0.3)
- PlaySound("Sans", 1)
- m.Name = "* GEEETTT D"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* GEEETTT DU"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* GEEETTT DUN"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* GEEETTT DUNK"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* GEEETTT DUNKE"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* GEEETTT DUNKED"
- wait(0.3)
- PlaySound("Sans", 1)
- m.Name = "* GEEETTT DUNKED O"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* GEEETTT DUNKED ON"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* GEEETTT DUNKED ON!"
- wait(0.3)
- PlaySound("Sans", 1)
- m.Name = "* Y"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* Yo"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You m"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You me"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You meg"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You mega"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You megal"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You megalo"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You megalom"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You megaloma"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You megaloman"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You megalomani"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You megalomania"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You megalomaniac"
- wait(0.1)
- PlaySound("Sans", 1)
- m.Name = "* You megalomaniac!"
- wait(3)
- m:remove()
- end))
- end
- function startup()
- coroutine.resume(coroutine.create(function()
- local m = Instance.new("Model", char)
- m.Name = "* C"
- local chat = Instance.new("Part", m)
- chat.TopSurface = "Smooth"
- chat.BottomSurface = "Smooth"
- chat.Name = "Head"
- chat.FormFactor = "Custom"
- chat.Size = Vector3.new(0.05, 0.05, 0.1)
- chat.Transparency = 0.9
- chat.CanCollide = false
- local Weld7 = Instance.new("Weld", char)
- Weld7.Part0 = char.Head
- Weld7.Part1 = chat
- Weld7.C1 = CFrame.new(0, -2, 0) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local cy7 = Instance.new("BlockMesh", chat)
- local h = Instance.new("Humanoid", m)
- h.MaxHealth = 0
- m.Name = "* Ch"
- wait(0.2)
- m.Name = "* Cha"
- wait(0.2)
- m.Name = "* Char"
- wait(0.2)
- m.Name = "* Chara"
- wait(0.2)
- m.Name = "* Chara."
- wait(0.5)
- m.Name = "* Chara.."
- wait(0.5)
- m.Name = "* Chara..."
- wait(0.5)
- wait(5)
- m:remove()
- end))
- end
- startup()
- PlayLoopedSound("MegaloStrikesBack", 1)
- Tool = Instance.new("HopperBin", player.Backpack)
- Tool.Name = "Charas Megalovania Knife"
- Tool.Selected:connect(function(mouse)
- RW.Part0 = char.Torso
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- RW.Part1 = char["Right Arm"]
- RW.Parent = char.Torso
- handle = Instance.new("Part", suit)
- handle.TopSurface = "Smooth"
- handle.BottomSurface = "Smooth"
- handle.Size = Vector3.new(0.2, 0.5, 0.5)
- handle.CanCollide = false
- handle.BrickColor = BrickColor.new("Dark stone grey")
- handle.FormFactor = "Custom"
- local Weldb = Instance.new("Weld", char)
- Weldb.Part0 = char["Right Arm"]
- Weldb.Part1 = handle
- Weldb.C1 = CFrame.new(0, -1.6, 0.8) * CFrame.fromEulerAnglesXYZ(-4.2, 0, 0)
- local KnifeMesh = Instance.new("SpecialMesh", handle)
- KnifeMesh.MeshType = "FileMesh"
- KnifeMesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
- KnifeMesh.TextureId = "http://www.roblox.com/asset/?id=121944805"
- function touch(hit)
- if vDebounce == true and hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then
- return
- end
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 100000000000000000000000000000000
- do
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=571898289"
- HitSounds.Hurt.Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end
- end
- end
- handle.Touched:connect(touch)
- function teleportPlayer(pos)
- if player == nil or player.Character == nil then
- return
- end
- Torso.CFrame = CFrame.new(Vector3.new(pos.x, pos.y, pos.z))
- end
- function slash1()
- if not vDebounce then
- vDebounce = true
- RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
- wait(0.1)
- PlaySound("Slash", 1)
- coroutine.resume(coroutine.create(function()
- for i = 1, 10 do
- wait()
- local RedSlash = Instance.new("Part", suit)
- RedSlash.FormFactor = "Custom"
- RedSlash.Size = Vector3.new(0.5, 2, 0.5)
- RedSlash.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", RedSlash)
- selectionBox.Adornee = RedSlash
- selectionBox.Color = BrickColor.new("Red")
- selectionBox.LineThickness = 0.005
- RedSlash.TopSurface = 0
- RedSlash.BottomSurface = 0
- local colorc = {"Red"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- RedSlash.BrickColor = Fire
- RedSlash.CanCollide = false
- RedSlash.Anchored = true
- RedSlash.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
- game.Debris:AddItem(RedSlash, 0.1)
- end
- end))
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
- end
- wait(0.3)
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- slashvalue = slashvalue + 1
- vDebounce = false
- end
- end
- function slash2()
- if not vDebounce then
- vDebounce = true
- coroutine.resume(coroutine.create(function()
- for i = 1, 20 do
- wait()
- local RedSlash2 = Instance.new("Part", suit)
- RedSlash2.FormFactor = "Custom"
- RedSlash2.Size = Vector3.new(0.5, 2, 0.5)
- RedSlash2.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", RedSlash2)
- selectionBox.Adornee = RedSlash2
- selectionBox.Color = BrickColor.new("Really black")
- selectionBox.LineThickness = 0.005
- RedSlash2.TopSurface = 0
- RedSlash2.BottomSurface = 0
- local colorc = {"Black"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- RedSlash2.BrickColor = Fire
- RedSlash2.CanCollide = false
- RedSlash2.Anchored = true
- RedSlash2.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
- game.Debris:AddItem(RedSlash2, 0.2)
- end
- end))
- for i = 1, 10 do
- wait()
- RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
- RW.C1 = cf(0, 0.5, 0) * euler(0.1 * i, 0, 0)
- end
- PlaySound("Slash", 1)
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
- RW.C1 = cf(0, 0.5, 0) * euler(-0.5 * i, 0, 0)
- end
- wait(0.3)
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- slashvalue = slashvalue + 1
- vDebounce = false
- end
- end
- function slash3()
- if not vDebounce then
- vDebounce = true
- PlaySound("Slash", 1)
- coroutine.resume(coroutine.create(function()
- for i = 1, 20 do
- wait()
- local RedSlash3 = Instance.new("Part", suit)
- RedSlash3.FormFactor = "Custom"
- RedSlash3.Size = Vector3.new(0.5, 2, 0.5)
- RedSlash3.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", RedSlash3)
- selectionBox.Adornee = RedSlash3
- selectionBox.Color = BrickColor.new("Red")
- selectionBox.LineThickness = 0.005
- RedSlash3.TopSurface = 0
- RedSlash3.BottomSurface = 0
- local colorc = {"Red"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- RedSlash3.BrickColor = Fire
- RedSlash3.CanCollide = false
- RedSlash3.Anchored = true
- RedSlash3.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
- game.Debris:AddItem(RedSlash3, 0.3)
- end
- end))
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
- RW.C1 = cf(0, 0.5, 0) * euler(-0.5 * i, 0, 0)
- end
- wait(0.3)
- PlaySound("Slash", 1)
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.5, 0.5, 0) * euler(1.5, 0, 0)
- RW.C1 = cf(0, 0.5, 0) * euler(0.6 * i, 0, 0)
- end
- wait(0.3)
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- slashvalue = slashvalue - 2
- vDebounce = false
- end
- end
- function KnifeBeam1()
- if not vDebounce then
- vDebounce = true
- RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
- wait(0.1)
- PlaySound("Slash", 1)
- coroutine.resume(coroutine.create(function()
- for i = 1, 10 do
- wait()
- local p = Instance.new("Part", handle)
- p.FormFactor = "Custom"
- p.Size = Vector3.new(1, 0.5, 1)
- p.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", p)
- selectionBox.Adornee = p
- selectionBox.Color = BrickColor.new("Red")
- selectionBox.LineThickness = 0.005
- p.Material = "Neon"
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Red"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide = false
- p.Anchored = true
- p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
- game.Debris:AddItem(p, 0.1)
- end
- end))
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
- end
- coroutine.resume(coroutine.create(function()
- local ps = Instance.new("Part", suit)
- ps.Name = "MagicPart"
- ps.TopSurface = "Smooth"
- ps.BottomSurface = "Smooth"
- ps.BrickColor = BrickColor.new("Institutional white")
- ps.Material = "Neon"
- ps.FormFactor = "Custom"
- ps.Size = Vector3.new(5, 1, 1)
- ps.Anchored = true
- ps.Transparency = 0.5
- ps.CanCollide = false
- ps.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 1)
- local selectionBox = Instance.new("SelectionBox", ps)
- selectionBox.Adornee = ps
- selectionBox.Color = BrickColor.new("Black")
- selectionBox.LineThickness = 0.2
- selectionBox.Transparency = 0.5
- function touch(hit)
- if hit.Parent.Name == char.Name then
- return
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- ps:remove()
- if hit.Parent.Name == char.Name then
- return
- end
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 100000000000000000000000000000000000000000000000000000000000000000000
- do
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
- HitSounds.Hurt.Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end
- end
- end
- ps.Touched:connect(touch)
- coroutine.resume(coroutine.create(function()
- for i = 1, 50 do
- wait()
- ps.CFrame = ps.CFrame * CFrame.new(0, 0, -4)
- end
- ps.Transparency = ps.Transparency + 1
- wait()
- ps.Transparency = ps.Transparency + 1
- wait()
- ps.Transparency = ps.Transparency + 1
- wait()
- ps.Transparency = ps.Transparency + 1
- wait()
- ps.Transparency = ps.Transparency + 1
- wait()
- ps:remove()
- end))
- end))
- wait(0.3)
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- beamvalue = beamvalue + 1
- vDebounce = false
- end
- end
- function KnifeBeam2()
- if not vDebounce then
- vDebounce = true
- coroutine.resume(coroutine.create(function()
- for i = 1, 20 do
- wait()
- local p = Instance.new("Part", handle)
- p.FormFactor = "Custom"
- p.Size = Vector3.new(1, 0.5, 1)
- p.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", p)
- selectionBox.Adornee = p
- selectionBox.Color = BrickColor.new("Red")
- selectionBox.LineThickness = 0.005
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Red"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide = false
- p.Anchored = true
- p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
- game.Debris:AddItem(p, 0.2)
- end
- end))
- for i = 1, 10 do
- wait()
- RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
- RW.C1 = cf(0, 0.5, 0) * euler(0.1 * i, 0, 0)
- end
- PlaySound("Slash", 1)
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
- RW.C1 = cf(0, 0.5, 0) * euler(-0.5 * i, 0, 0)
- end
- coroutine.resume(coroutine.create(function()
- local ps = Instance.new("Part", suit)
- ps.Name = "MagicPart"
- ps.TopSurface = "Smooth"
- ps.BottomSurface = "Smooth"
- ps.BrickColor = BrickColor.new("Institutional white")
- ps.Material = "Neon"
- ps.FormFactor = "Custom"
- ps.Size = Vector3.new(1, 5, 1)
- ps.Anchored = true
- ps.Transparency = 0.5
- ps.CanCollide = false
- ps.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(-10, 0, 0)
- local selectionBox = Instance.new("SelectionBox", ps)
- selectionBox.Adornee = ps
- selectionBox.Color = BrickColor.new("Black")
- selectionBox.LineThickness = 0.2
- selectionBox.Transparency = 0.5
- function touch(hit)
- if hit.Parent.Name == char.Name then
- return
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- ps:remove()
- if hit.Parent.Name == char.Name then
- return
- end
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 10000000000000000000000000000000000000000000000000
- do
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
- HitSounds.Hurt.Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end
- end
- end
- ps.Touched:connect(touch)
- coroutine.resume(coroutine.create(function()
- for i = 1, 50 do
- wait()
- ps.CFrame = ps.CFrame * CFrame.new(0, -1.9, 3)
- end
- ps.Transparency = ps.Transparency + 1
- wait()
- ps.Transparency = ps.Transparency + 1
- wait()
- ps.Transparency = ps.Transparency + 1
- wait()
- ps.Transparency = ps.Transparency + 1
- wait()
- ps.Transparency = ps.Transparency + 1
- wait()
- ps:remove()
- end))
- end))
- wait(0.3)
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- beamvalue = beamvalue + 1
- vDebounce = false
- end
- end
- function KnifeBeam3()
- if not vDebounce then
- vDebounce = true
- RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
- wait(0.1)
- PlaySound("Slash", 1)
- coroutine.resume(coroutine.create(function()
- for i = 1, 10 do
- wait()
- local p = Instance.new("Part", handle)
- p.FormFactor = "Custom"
- p.Size = Vector3.new(1, 0.5, 1)
- p.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", p)
- selectionBox.Adornee = p
- selectionBox.Color = BrickColor.new("Really black")
- selectionBox.LineThickness = 0.005
- p.Material = "Neon"
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Black"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide = false
- p.Anchored = true
- p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
- game.Debris:AddItem(p, 0.1)
- end
- end))
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
- end
- coroutine.resume(coroutine.create(function()
- local ps = Instance.new("Part", suit)
- ps.Name = "MagicPart"
- ps.TopSurface = "Smooth"
- ps.BottomSurface = "Smooth"
- ps.BrickColor = BrickColor.new("Institutional white")
- ps.Material = "Neon"
- ps.FormFactor = "Custom"
- ps.Size = Vector3.new(10, 10, 1)
- ps.Anchored = true
- ps.Transparency = 0.5
- ps.CanCollide = false
- ps.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 0)
- local selectionBox = Instance.new("SelectionBox", ps)
- selectionBox.Adornee = ps
- selectionBox.Color = BrickColor.new("Black")
- selectionBox.LineThickness = 0.2
- selectionBox.Transparency = 0.5
- function touch(hit)
- if hit.Parent.Name == char.Name then
- return
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- ps:remove()
- if hit.Parent.Name == char.Name then
- return
- end
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 100000000000000000000000000000000000000000000
- do
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
- HitSounds.Hurt.Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end
- end
- end
- ps.Touched:connect(touch)
- coroutine.resume(coroutine.create(function()
- for i = 1, 50 do
- wait()
- ps.CFrame = ps.CFrame * CFrame.new(0, 0, -5)
- end
- ps.Transparency = ps.Transparency + 1
- wait()
- ps.Transparency = ps.Transparency + 1
- wait()
- ps.Transparency = ps.Transparency + 1
- wait()
- ps.Transparency = ps.Transparency + 1
- wait()
- ps.Transparency = ps.Transparency + 1
- wait()
- ps:remove()
- end))
- end))
- wait(0.3)
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- beamvalue = beamvalue - 2
- vDebounce = false
- end
- end
- function drawded()
- if onehitkill == true then
- onehitkill = false
- RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
- wait(0.1)
- PlaySound("Slash", 1)
- coroutine.resume(coroutine.create(function()
- for i = 1, 10 do
- wait()
- local p = Instance.new("Part", handle)
- p.FormFactor = "Custom"
- p.Size = Vector3.new(1, 1, 1)
- p.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", p)
- selectionBox.Adornee = p
- selectionBox.Color = BrickColor.new("Red")
- selectionBox.LineThickness = 0.001
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {
- "Red"
- }
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide = false
- p.Anchored = true
- p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
- game.Debris:AddItem(p, 0.1)
- end
- end))
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
- end
- coroutine.resume(coroutine.create(function()
- ultra = Instance.new("Part", suit)
- ultra.Name = "MagicPart"
- ultra.TopSurface = "Smooth"
- ultra.BottomSurface = "Smooth"
- ultra.BrickColor = BrickColor.new("Really black")
- ultra.Material = "Neon"
- ultra.FormFactor = "Custom"
- ultra.Size = Vector3.new(5, 1, 1)
- ultra.Anchored = true
- ultra.CanCollide = false
- ultra.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 1)
- local selectionBox = Instance.new("SelectionBox", ultra)
- selectionBox.Adornee = ultra
- selectionBox.Color = BrickColor.new("Really black")
- selectionBox.LineThickness = 0.01
- selectionBox.Transparency = 0
- end))
- wait(0.3)
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
- wait(0.1)
- PlaySound("Slash", 1)
- coroutine.resume(coroutine.create(function()
- for i = 1, 10 do
- wait()
- local p = Instance.new("Part", handle)
- p.FormFactor = "Custom"
- p.Size = Vector3.new(1, 0.5, 1)
- p.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", p)
- selectionBox.Adornee = p
- selectionBox.Color = BrickColor.new("Red")
- selectionBox.LineThickness = 0.001
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {
- "Red"
- }
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide = false
- p.Anchored = true
- p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
- game.Debris:AddItem(p, 0.1)
- end
- end))
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
- end
- coroutine.resume(coroutine.create(function()
- ultra2 = Instance.new("Part", suit)
- ultra2.Name = "MagicPart"
- ultra2.TopSurface = "Smooth"
- ultra2.BottomSurface = "Smooth"
- ultra2.BrickColor = BrickColor.new("Red")
- ultra2.Material = "Neon"
- ultra2.FormFactor = "Custom"
- ultra2.Size = Vector3.new(5, 1, 1)
- ultra2.Anchored = true
- ultra2.CanCollide = false
- ultra2.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 1)
- local selectionBox = Instance.new("SelectionBox", ultra2)
- selectionBox.Adornee = ultra2
- selectionBox.Color = BrickColor.new("Really black")
- selectionBox.LineThickness = 0.01
- selectionBox.Transparency = 0
- end))
- wait(0.3)
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- PlaySound("Slash", 1)
- coroutine.resume(coroutine.create(function()
- ultra3 = Instance.new("Part", suit)
- ultra3.Name = "MagicPart"
- ultra3.TopSurface = "Smooth"
- ultra3.BottomSurface = "Smooth"
- ultra3.BrickColor = BrickColor.new("Red")
- ultra3.Material = "Neon"
- ultra3.FormFactor = "Custom"
- ultra3.Size = Vector3.new(1, 5, 1)
- ultra3.Anchored = true
- ultra3.CanCollide = false
- ultra3.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 0)
- local selectionBox = Instance.new("SelectionBox", ultra3)
- selectionBox.Adornee = ultra3
- selectionBox.Color = BrickColor.new("Red")
- selectionBox.LineThickness = 0.01
- selectionBox.Transparency = 0
- end))
- coroutine.resume(coroutine.create(function()
- for i = 1, 10 do
- wait()
- local p = Instance.new("Part", handle)
- p.FormFactor = "Custom"
- p.Size = Vector3.new(1, 0.5, 1)
- p.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", p)
- selectionBox.Adornee = p
- selectionBox.Color = BrickColor.new("Red")
- selectionBox.LineThickness = 0.001
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {
- "Red"
- }
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide = false
- p.Anchored = true
- p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
- game.Debris:AddItem(p, 0.1)
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i = 1, 20 do
- wait()
- local p = Instance.new("Part", handle)
- p.FormFactor = "Custom"
- p.Size = Vector3.new(1, 0.5, 1)
- p.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", p)
- selectionBox.Adornee = p
- selectionBox.Color = BrickColor.new("Red")
- selectionBox.LineThickness = 0.005
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Black"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide = false
- p.Anchored = true
- p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
- game.Debris:AddItem(p, 0.3)
- end
- end))
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
- RW.C1 = cf(0, 0.5, 0) * euler(-0.5 * i, 0, 0)
- end
- wait(0.3)
- PlaySound("Slash", 1)
- coroutine.resume(coroutine.create(function()
- ultra4 = Instance.new("Part", suit)
- ultra4.Name = "MagicPart"
- ultra4.TopSurface = "Smooth"
- ultra4.BottomSurface = "Smooth"
- ultra4.BrickColor = BrickColor.new("Red")
- ultra4.Material = "Neon"
- ultra4.FormFactor = "Custom"
- ultra4.Size = Vector3.new(1, 5, 1)
- ultra4.Anchored = true
- ultra4.CanCollide = false
- ultra4.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 0)
- local selectionBox = Instance.new("SelectionBox", ultra3)
- selectionBox.Adornee = ultra4
- selectionBox.Color = BrickColor.new("Really black")
- selectionBox.LineThickness = 0.01
- selectionBox.Transparency = 0
- end))
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.5, 0.5, 0) * euler(0, 0, 0)
- RW.C1 = cf(0, 0.5, 0) * euler(0.3 * i, 0, 0)
- end
- wait(0.3)
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
- wait(0.1)
- PlaySound("Slash", 1)
- coroutine.resume(coroutine.create(function()
- for i = 1, 10 do
- wait()
- local p = Instance.new("Part", handle)
- p.FormFactor = "Custom"
- p.Size = Vector3.new(1, 0.5, 1)
- p.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", p)
- selectionBox.Adornee = p
- selectionBox.Color = BrickColor.new("Red")
- selectionBox.LineThickness = 0.001
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {
- "Red"
- }
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide = false
- p.Anchored = true
- p.CFrame = handle.CFrame * CFrame.new(0, 1.5, 0) * CFrame.Angles(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3))
- game.Debris:AddItem(p, 0.1)
- end
- end))
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
- end
- coroutine.resume(coroutine.create(function()
- ultra5 = Instance.new("Part", suit)
- ultra5.Name = "MagicPart"
- ultra5.TopSurface = "Smooth"
- ultra5.BottomSurface = "Smooth"
- ultra5.BrickColor = BrickColor.new("Really black")
- ultra5.Material = "Neon"
- ultra5.FormFactor = "Custom"
- ultra5.Size = Vector3.new(5, 1, 1)
- ultra5.Anchored = true
- ultra5.CanCollide = false
- ultra5.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -5) * CFrame.Angles(0, 0, 1)
- local selectionBox = Instance.new("SelectionBox", ultra2)
- selectionBox.Adornee = ultra5
- selectionBox.Color = BrickColor.new("Really black")
- selectionBox.LineThickness = 0.01
- selectionBox.Transparency = 0
- end))
- wait()
- local p = Instance.new("Part", handle)
- p.FormFactor = "Custom"
- p.Material = "Neon"
- p.Size = Vector3.new(1, 2, 1)
- p.Transparency = 0
- local selectionBox = Instance.new("SelectionBox", p)
- selectionBox.Adornee = p
- selectionBox.Color = BrickColor.new("Red")
- selectionBox.LineThickness = 0.001
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {
- "Red"
- }
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide = false
- p.Anchored = true
- p.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
- local light1 = Instance.new("SpotLight", p)
- light1.Brightness = 164
- light1.Color = Color3.new(255, 0, 0)
- light1.Range = 7
- for i = 1, 13 do
- p.Transparency = p.Transparency + 0.1
- p.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
- wait()
- end
- game.Debris:AddItem(p, 0.1)
- coroutine.resume(coroutine.create(function()
- coroutine.resume(coroutine.create(function()
- for i = 1, 100 do
- wait()
- ultra.CFrame = ultra.CFrame * CFrame.new(0, 0, -4)
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i = 1, 100 do
- wait()
- ultra2.CFrame = ultra2.CFrame * CFrame.new(0, 0, -4)
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i = 1, 100 do
- wait()
- ultra3.CFrame = ultra3.CFrame * CFrame.new(0, 0, -4)
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i = 1, 100 do
- wait()
- ultra4.CFrame = ultra4.CFrame * CFrame.new(0, 0, -4)
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i = 1, 100 do
- wait()
- ultra5.CFrame = ultra5.CFrame * CFrame.new(0, 0, -4)
- end
- end))
- wait(3)
- ultra.Transparency = ultra.Transparency + 1
- ultra2.Transparency = ultra2.Transparency + 1
- ultra3.Transparency = ultra3.Transparency + 1
- ultra4.Transparency = ultra4.Transparency + 1
- ultra5.Transparency = ultra5.Transparency + 1
- wait()
- ultra.Transparency = ultra.Transparency + 1
- ultra2.Transparency = ultra2.Transparency + 1
- ultra3.Transparency = ultra3.Transparency + 1
- ultra4.Transparency = ultra4.Transparency + 1
- ultra5.Transparency = ultra5.Transparency + 1
- wait()
- ultra.Transparency = ultra.Transparency + 1
- ultra2.Transparency = ultra2.Transparency + 1
- ultra3.Transparency = ultra3.Transparency + 1
- ultra4.Transparency = ultra4.Transparency + 1
- ultra5.Transparency = ultra5.Transparency + 1
- wait()
- ultra.Transparency = ultra.Transparency + 1
- ultra2.Transparency = ultra2.Transparency + 1
- ultra3.Transparency = ultra3.Transparency + 1
- ultra4.Transparency = ultra4.Transparency + 1
- ultra5.Transparency = ultra5.Transparency + 1
- wait()
- ultra.Transparency = ultra.Transparency + 1
- ultra2.Transparency = ultra2.Transparency + 1
- ultra3.Transparency = ultra3.Transparency + 1
- ultra4.Transparency = ultra4.Transparency + 1
- ultra5.Transparency = ultra5.Transparency + 1
- wait()
- ultra:remove()
- ultra2:remove()
- ultra3:remove()
- ultra4:remove()
- ultra5:remove()
- end))
- function touch(hit)
- if hit.Parent.Name == char.Name then
- return
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then
- return
- end
- hit.Parent:BreakJoints()
- ultra:remove()
- do
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
- HitSounds.Hurt.Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end
- end
- end
- ultra.Touched:connect(touch)
- function touch(hit)
- if hit.Parent.Name == char.Name then
- return
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then
- return
- end
- hit.Parent:BreakJoints()
- ultra2:remove()
- do
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
- HitSounds.Hurt.Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end
- end
- end
- ultra2.Touched:connect(touch)
- function touch(hit)
- if hit.Parent.Name == char.Name then
- return
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then
- return
- end
- hit.Parent:BreakJoints()
- ultra2:remove()
- do
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
- HitSounds.Hurt.Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end
- end
- end
- ultra2.Touched:connect(touch)
- function touch(hit)
- if hit.Parent.Name == char.Name then
- return
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then
- return
- end
- hit.Parent:BreakJoints()
- ultra3:remove()
- do
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
- HitSounds.Hurt.Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end
- end
- end
- ultra3.Touched:connect(touch)
- function touch(hit)
- if hit.Parent.Name == char.Name then
- return
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then
- return
- end
- hit.Parent:BreakJoints()
- ultra4:remove()
- do
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
- HitSounds.Hurt.Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end
- end
- end
- ultra4.Touched:connect(touch)
- function touch(hit)
- if hit.Parent.Name == char.Name then
- return
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then
- return
- end
- hit.Parent:BreakJoints()
- ultra5:remove()
- do
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
- HitSounds.Hurt.Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end
- end
- end
- ultra5.Touched:connect(touch)
- wait()
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- local Dialogconnect = Instance.new("Part", suit)
- Dialogconnect.TopSurface = "Smooth"
- Dialogconnect.BottomSurface = "Smooth"
- Dialogconnect.Material = "Neon"
- Dialogconnect.FormFactor = "Custom"
- Dialogconnect.Size = Vector3.new(1, 1, 1)
- Dialogconnect.Transparency = 1
- Dialogconnect.CanCollide = false
- Dialogconnect.BrickColor = BrickColor.new("Black")
- local selectionBox1 = Instance.new("SelectionBox", Dialogconnect)
- selectionBox1.Adornee = Dialogconnect
- selectionBox1.Color = BrickColor.new("Really black")
- selectionBox1.LineThickness = 0.01
- selectionBox1.Transparency = 1
- local Weld = Instance.new("Weld", char)
- Weld.Part0 = char.Torso
- Weld.Part1 = Dialogconnect
- Weld.C1 = CFrame.new(0, -3, -1.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- Dialogconnect.BrickColor = BrickColor.new("New Yeller")
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- Dialogconnect.BrickColor = BrickColor.new("Lime green")
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- Dialogconnect:remove()
- onehitkill = true
- end
- end
- function Stuckhit()
- if not vDebounce then
- vDebounce = true
- RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
- wait(0.1)
- PlaySound("Slash", 1)
- coroutine.resume(coroutine.create(function()
- for i = 1, 10 do
- wait()
- local RedSlash = Instance.new("Part", handle)
- RedSlash.FormFactor = "Custom"
- RedSlash.Size = Vector3.new(0.5, 2, 0.5)
- RedSlash.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", RedSlash)
- selectionBox.Adornee = RedSlash
- selectionBox.Color = BrickColor.new("Really black")
- selectionBox.LineThickness = 0.005
- RedSlash.TopSurface = 0
- RedSlash.BottomSurface = 0
- local colorc = {"Black"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- RedSlash.BrickColor = Fire
- RedSlash.CanCollide = false
- RedSlash.Anchored = true
- RedSlash.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
- game.Debris:AddItem(RedSlash, 0.1)
- end
- end))
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
- end
- local ray = Ray.new(Handle.CFrame.p, (mouse.Hit.p - Handle.CFrame.p).unit * 1000)
- local hit, position = game.Workspace:FindPartOnRay(ray, player)
- wait(0.1)
- local ray = Ray.new(Handle.CFrame.p, (mouse.Hit.p - Handle.CFrame.p).unit * 300)
- local position = mouse.Hit.p
- local distance = (position - Handle.CFrame.p).magnitude
- local rp = Instance.new("Part", workspace)
- rp.Anchored = true
- rp.TopSurface = "Smooth"
- rp.BottomSurface = "Smooth"
- rp.Transparency = 1
- rp.BrickColor = BrickColor.new("Deep orange")
- rp.FormFactor = "Custom"
- rp.CanCollide = false
- rp.Size = Vector3.new(0.6, 0.6, distance)
- rp.Material = "Neon"
- rp.CFrame = CFrame.new(position, Handle.CFrame.p) * CFrame.new(0, 0, -distance / 2)
- local cy = Instance.new("BlockMesh", rp)
- for i = 1, 10 do
- wait()
- cy.Scale = cy.Scale - Vector3.new(0.1, 0.1, 0)
- end
- rp:Destroy()
- local ps = Instance.new("Part", suit)
- ps.Name = "MagicPart"
- ps.TopSurface = "Smooth"
- ps.BottomSurface = "Smooth"
- ps.BrickColor = BrickColor.new("Black")
- ps.FormFactor = "Custom"
- ps.Transparency = 0.9
- ps.Size = Vector3.new(5, 250, 5)
- ps.Anchored = true
- ps.CanCollide = false
- ps.CFrame = CFrame.new(position)
- local cy = Instance.new("BlockMesh", ps)
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then
- return
- end
- hit.Parent.Torso.Anchored = true
- do
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
- HitSounds.Hurt.Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- local p = Instance.new("Part", handle)
- p.FormFactor = "Custom"
- p.Material = "Neon"
- p.Size = Vector3.new(1, 2, 1)
- p.Transparency = 0
- local selectionBox = Instance.new("SelectionBox", p)
- selectionBox.Adornee = p
- selectionBox.Color = BrickColor.new("Really black")
- selectionBox.LineThickness = 0.001
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Black"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide = false
- p.Anchored = true
- p.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
- coroutine.resume(coroutine.create(function()
- for i = 1, 100 do
- wait()
- p.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
- end
- end))
- local light1 = Instance.new("SpotLight", p)
- light1.Brightness = 164
- light1.Color = Color3.new(255, 0, 0)
- light1.Range = 7
- for i = 1, 13 do
- p.Transparency = p.Transparency + 0.1
- wait(0.4)
- end
- game.Debris:AddItem(p, 0.1)
- PlaySound("Slash", 1)
- coroutine.resume(coroutine.create(function()
- for i = 1, 10 do
- wait()
- local RedSlash = Instance.new("Part", handle)
- RedSlash.FormFactor = "Custom"
- RedSlash.Size = Vector3.new(0.5, 2, 0.5)
- RedSlash.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", RedSlash)
- selectionBox.Adornee = RedSlash
- selectionBox.Color = BrickColor.new("Really black")
- selectionBox.LineThickness = 0.005
- RedSlash.TopSurface = 0
- RedSlash.BottomSurface = 0
- local colorc = {"Black"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- RedSlash.BrickColor = Fire
- RedSlash.CanCollide = false
- RedSlash.Anchored = true
- RedSlash.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
- game.Debris:AddItem(RedSlash, 0.1)
- end
- end))
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.5, 0.5, 0) * euler(1.5, 0, 0)
- RW.C1 = cf(0, 0.5, 0) * euler(0.6 * i, 0, 0)
- end
- hit.Parent.Torso.Anchored = false
- hit.Parent.Torso:BreakJoints()
- end
- end
- end
- ps.Touched:connect(touch)
- for i = 1, 8 do
- wait(0.5)
- ps.Transparency = ps.Transparency - 0.1
- end
- wait(2)
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- ps:remove()
- end
- vDebounce = false
- end
- mouse.Button1Down:connect(function()
- if slashvalue == 1 then
- slash1()
- elseif slashvalue == 3 then
- slash3()
- elseif slashvalue == 2 then
- slash2()
- end
- end)
- function WelcomeToMySpecialAttack()
- CharaTalks()
- RW.C0 = cf(1, 0.3, -0.5) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0, -2, 0)
- wait(0.1)
- PlaySound("Slash", 1)
- coroutine.resume(coroutine.create(function()
- for i = 1, 10 do
- wait()
- local RedSlash = Instance.new("Part", handle)
- RedSlash.FormFactor = "Custom"
- RedSlash.Size = Vector3.new(0.5, 2, 0.5)
- RedSlash.Transparency = 0.5
- local selectionBox = Instance.new("SelectionBox", RedSlash)
- selectionBox.Adornee = RedSlash
- selectionBox.Color = BrickColor.new("Really black")
- selectionBox.LineThickness = 0.005
- RedSlash.TopSurface = 0
- RedSlash.BottomSurface = 0
- local colorc = {"Black"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- RedSlash.BrickColor = Fire
- RedSlash.CanCollide = false
- RedSlash.Anchored = true
- RedSlash.CFrame = handle.CFrame * CFrame.new(0, 1, 0)
- game.Debris:AddItem(RedSlash, 0.1)
- end
- end))
- for i = 1, 3 do
- wait()
- RW.C0 = cf(1.2, 0.3 * i, 0.2) * euler(0.8000000000000003, 0, 0)
- RW.C1 = cf(0, 0, 0) * euler(0.8 * i, -2, 0)
- end
- PlaySound("Explode", 1)
- coroutine.resume(coroutine.create(function()
- local ps = Instance.new("Part", suit)
- ps.Name = "MagicPart"
- ps.TopSurface = "Smooth"
- ps.BottomSurface = "Smooth"
- ps.BrickColor = BrickColor.new("Black")
- ps.Material = "Neon"
- ps.FormFactor = "Custom"
- ps.Size = Vector3.new(1500, 1500, 1000)
- ps.Anchored = true
- ps.Transparency = 0
- ps.CanCollide = false
- ps.CFrame = char.Torso.CFrame * CFrame.new(1, 0, -55) * CFrame.Angles(0, 0, 0)
- local selectionBox = Instance.new("SelectionBox", ps)
- selectionBox.Adornee = ps
- selectionBox.Color = BrickColor.new("Black")
- selectionBox.LineThickness = 0.2
- selectionBox.Transparency = 0.5
- function touch(hit)
- if hit.Parent.Name == char.Name then
- return
- end
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then
- return
- end
- hit.Parent:BreakJoints()
- do
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds.Hurt.SoundId = "http://www.roblox.com/asset?id=406913243"
- HitSounds.Hurt.Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end
- end
- end
- ps.Touched:connect(touch)
- coroutine.resume(coroutine.create(function()
- for i = 1, 500 do
- wait()
- ps.CFrame = ps.CFrame * CFrame.new(0, 0, -4)
- end
- ps.Transparency = ps.Transparency + 0.2
- wait()
- ps.Transparency = ps.Transparency + 0.2
- wait()
- ps.Transparency = ps.Transparency + 0.2
- wait()
- ps.Transparency = ps.Transparency + 0.2
- wait()
- ps.Transparency = ps.Transparency + 0.2
- ps:remove()
- end))
- end))
- wait(2)
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- end
- mouse.KeyDown:connect(function(key)
- if key == "r" and specialattack == false then
- specialattack = true
- WelcomeToMySpecialAttack()
- local Dialogconnect = Instance.new("Part", suit)
- Dialogconnect.TopSurface = "Smooth"
- Dialogconnect.BottomSurface = "Smooth"
- Dialogconnect.Material = "Neon"
- Dialogconnect.FormFactor = "Custom"
- Dialogconnect.Size = Vector3.new(1, 1, 1)
- Dialogconnect.Transparency = 1
- Dialogconnect.CanCollide = false
- Dialogconnect.BrickColor = BrickColor.new("Black")
- local selectionBox1 = Instance.new("SelectionBox", Dialogconnect)
- selectionBox1.Adornee = Dialogconnect
- selectionBox1.Color = BrickColor.new("Really black")
- selectionBox1.LineThickness = 0.01
- selectionBox1.Transparency = 1
- local Weld = Instance.new("Weld", char)
- Weld.Part0 = char.Torso
- Weld.Part1 = Dialogconnect
- Weld.C1 = CFrame.new(-3, -3, -1.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- Dialogconnect.BrickColor = BrickColor.new("New Yeller")
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- Dialogconnect.BrickColor = BrickColor.new("Lime green")
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- Dialogconnect:remove()
- specialattack = false
- end
- if key == "q" then
- if beamvalue == 1 then
- KnifeBeam1()
- elseif beamvalue == 2 then
- KnifeBeam2()
- elseif beamvalue == 3 then
- KnifeBeam3()
- end
- end
- if key == "x" and not vDebounce then
- vDebounce = true
- for i = 1, 5 do
- wait()
- Torso.Transparency = 0.5
- char["Left Arm"].Transparency = 0.5
- char["Left Leg"].Transparency = 0.5
- char["Right Arm"].Transparency = 0.5
- char["Right Leg"].Transparency = 0.5
- char.Head.Transparency = 0.5
- wait()
- Torso.Transparency = 0
- char["Left Arm"].Transparency = 0
- char["Left Leg"].Transparency = 0
- char["Right Arm"].Transparency = 0
- char["Right Leg"].Transparency = 0
- char.Head.Transparency = 0
- end
- teleportPlayer(mouse.hit.p)
- vDebounce = false
- end
- if key == "z" and onehitkilltwo == true then
- onehitkilltwo = false
- Stuckhit()
- local Dialogconnect = Instance.new("Part", suit)
- Dialogconnect.TopSurface = "Smooth"
- Dialogconnect.BottomSurface = "Smooth"
- Dialogconnect.Material = "Neon"
- Dialogconnect.FormFactor = "Custom"
- Dialogconnect.Size = Vector3.new(1, 1, 1)
- Dialogconnect.Transparency = 1
- Dialogconnect.CanCollide = false
- Dialogconnect.BrickColor = BrickColor.new("Black")
- local selectionBox1 = Instance.new("SelectionBox", Dialogconnect)
- selectionBox1.Adornee = Dialogconnect
- selectionBox1.Color = BrickColor.new("Really black")
- selectionBox1.LineThickness = 0.01
- selectionBox1.Transparency = 1
- local Weld = Instance.new("Weld", char)
- Weld.Part0 = char.Torso
- Weld.Part1 = Dialogconnect
- Weld.C1 = CFrame.new(3, -3, -1.5) * CFrame.fromEulerAnglesXYZ(0, 0, 0)
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- Dialogconnect.BrickColor = BrickColor.new("New Yeller")
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- Dialogconnect.BrickColor = BrickColor.new("Lime green")
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- wait()
- Dialogconnect.Transparency = 1
- selectionBox1.Transparency = 1
- wait()
- Dialogconnect.Transparency = 0
- selectionBox1.Transparency = 0
- Dialogconnect:remove()
- onehitkilltwo = true
- end
- if key == "e" then
- drawded()
- end
- end)
- Tool.Deselected:connect(function(mouse)
- RW.Parent = nil
- LW.Parent = nil
- handle:remove()
- RSH.Parent = player.Character.Torso
- LSH.Parent = player.Character.Torso
- end)
- end)
- function OnDeath()
- GETDUNKED()
- oldloopedsound:remove()
- end
- char.Humanoid.Died:connect(OnDeath)
- print("Made By Jose Likes And Enjoys Roblox for Josemmoya")
- wait(5)
- print("Based on the animation Determination by Jigsaw Rules.")
- wait(5)
- print("Special attacks are on q,e,z,x,and m(Megalomaniac).")
- print("fixed by ROBLOX")
- local plr = game.Players.LocalPlayer
- local good = true
- local R15 = false
- while plr.Character == nil or plr.Character:FindFirstChildOfClass('Humanoid') == nil do
- wait()
- end
- if plr.Character:FindFirstChildOfClass('Humanoid').RigType == Enum.HumanoidRigType.R15 then
- R15 = true
- end
- function makegui()
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextBox = Instance.new("TextLabel")
- -- Properties
- ScreenGui.Parent = plr.PlayerGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- Frame.BackgroundTransparency = 0.5
- Frame.BorderSizePixel = 0
- Frame.Size = UDim2.new(1, 0, 0, 0)
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox.BackgroundTransparency = 1
- TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
- TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- TextBox.Font = Enum.Font.Code
- TextBox.FontSize = Enum.FontSize.Size14
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextScaled = true
- TextBox.TextSize = 14
- TextBox.TextWrapped = true
- Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
- wait(1.5)
- local text = "This script doesn't work in R15, sorry!"
- for i=1,string.len(text) do
- TextBox.Text = string.sub(text,1,i)
- wait()
- end
- wait(2)
- TextBox.Text = ""
- Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
- end
- function makegui2()
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextBox = Instance.new("TextLabel")
- -- Properties
- ScreenGui.Parent = plr.PlayerGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- Frame.BackgroundTransparency = 0.5
- Frame.BorderSizePixel = 0
- Frame.Size = UDim2.new(1, 0, 0, 0)
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox.BackgroundTransparency = 1
- TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
- TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- TextBox.Font = Enum.Font.Code
- TextBox.FontSize = Enum.FontSize.Size14
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextScaled = true
- TextBox.TextSize = 14
- TextBox.TextWrapped = true
- Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
- wait(1.5)
- local text = "This script doesn't work in Filtering Enabled, sorry!"
- for i=1,string.len(text) do
- TextBox.Text = string.sub(text,1,i)
- wait()
- end
- wait(2)
- TextBox.Text = ""
- Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
- end
- function makegui3()
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextBox = Instance.new("TextLabel")
- -- Properties
- ScreenGui.Parent = plr.PlayerGui
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
- Frame.BackgroundTransparency = 0.5
- Frame.BorderSizePixel = 0
- Frame.Size = UDim2.new(1, 0, 0, 0)
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox.BackgroundTransparency = 1
- TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
- TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
- TextBox.Font = Enum.Font.Code
- TextBox.FontSize = Enum.FontSize.Size14
- TextBox.Text = ""
- TextBox.TextColor3 = Color3.new(1, 1, 1)
- TextBox.TextScaled = true
- TextBox.TextSize = 14
- TextBox.TextWrapped = true
- Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
- wait(1.5)
- local text = "Press F on a player to force choke them, and hold G to use force lightning."
- for i=1,string.len(text) do
- TextBox.Text = string.sub(text,1,i)
- wait()
- end
- wait(2)
- TextBox.Text = ""
- Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
- end
- local coru = coroutine.wrap(function()
- if R15 then
- good = false
- makegui()
- elseif workspace.FilteringEnabled then
- good = false
- makegui2()
- else
- makegui3()
- end
- end)
- coru()
- if good then
- local mou = plr:GetMouse()
- local choking = false
- local zapping = false
- local target = nil
- local lastzap = nil
- local oldHit = nil
- local startpos = CFrame.new(0,0,0)
- local beforehealth = 100
- local timez = 0
- Gibs = workspace
- function Kill(Character,yee,oh)
- if Character:FindFirstChildOfClass('Humanoid') then
- Character:FindFirstChildOfClass('Humanoid').Health = 0
- 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 Character.Torso ~= nil then
- local killtors = Character:findFirstChild("Torso")
- if killtors ~= nil then
- movevector = CFrame.new(plr.Character["Right Arm"].Position,Torso.Position).lookVector
- end
- end
- if Torso then
- local Head = Character:FindFirstChild("Head")
- if Head and yee == false then
- local Neck = Instance.new("Weld")
- Neck.Name = "Neck"
- Neck.Part0 = Torso
- Neck.Part1 = Head
- Neck.C0 = CFrame.new(0, 1.5, 0)
- Neck.C1 = CFrame.new()
- Neck.Parent = Torso
- end
- 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)
- Character.Torso.Velocity = plr.Character.Torso.CFrame.lookVector*10
- Character.Head.Velocity = plr.Character.Torso.CFrame.lookVector*10
- if oh then
- local repulse = Instance.new('BodyForce',Torso)
- repulse.Force = movevector*10000 + Vector3.new(0,1000,0)
- game.Debris:AddItem(repulse,0.05)
- for i,v in pairs(chrclone:GetChildren()) do
- if v:IsA('BasePart') then
- v.BrickColor = BrickColor.Black()
- end
- end
- local sound = Instance.new('Sound',Torso)
- sound.EmitterSize = 50
- sound.MaxDistance = 100
- sound.Volume = 6
- sound.SoundId = 'rbxassetid://157325701'
- sound:Play()
- sound.Ended:connect(function()
- sound:Destroy()
- end)
- end
- local duh = Torso
- if yee == true then
- 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
- end
- end
- function gettouching(startpos,endpos,dont)
- local ray = Ray.new(startpos,(endpos-startpos).unit*300)
- local ignore = {}
- for i,v in pairs(game:GetService('Players'):GetChildren()) do
- if v.Character and v ~= plr then
- table.insert(ignore,v.Character)
- end
- end
- local part,pos = workspace:FindPartOnRayWithWhitelist(ray,ignore,false)
- if part then
- if part.Parent:FindFirstChildOfClass('Humanoid') and part.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
- local coru = coroutine.wrap(function()
- Kill(part.Parent,false,true)
- end)
- coru()
- end
- end
- table.insert(ignore,dont)
- local part2,pos2 = workspace:FindPartOnRayWithIgnoreList(ray,ignore,false,true)
- if part2 and part2.Parent and part2.Parent ~= plr.Character and part2.Parent:FindFirstChildOfClass('Humanoid') and part2.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
- local coru = coroutine.wrap(function()
- Kill(part2.Parent,false,true)
- end)
- coru()
- end
- end
- function makelaser(parent)
- local part = Instance.new('Part',parent)
- part.Size = Vector3.new(0.2,0.2,0.2)
- part.Transparency = 1
- part.CanCollide = false
- local weld = Instance.new('Weld',part)
- weld.Part0 = part
- weld.Part1 = plr.Character["Right Arm"]
- weld.C0 = CFrame.new(0,1.25,0)
- for i=1,5 do
- local mouse = mou
- targ = mouse.Target
- if targ then
- hum = targ.Parent:findFirstChild("Humanoid")
- Hit = mouse.hit
- local P = Instance.new("Part")
- P.Name = "Guideline"
- P.Material = Enum.Material.Neon
- local Place0 = part.CFrame
- P.formFactor = 0
- P.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
- if plr.Character:FindFirstChild('Right Arm') then
- for i,v in pairs(plr.Character:FindFirstChild('Right Arm'):GetChildren()) do
- if v:IsA('Sound') and v.Name == "Electricity" then
- if Place0 and Hit and (Place0.p - Hit.p).magnitude >= 20 then
- v.MaxDistance = (Place0.p - Hit.p).magnitude
- v.EmitterSize = (Place0.p - Hit.p).magnitude
- elseif Place0 and Hit then
- v.MaxDistance = 20
- v.EmitterSize = 20
- end
- end
- end
- end
- P.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
- P.Parent = parent
- P.BrickColor = BrickColor.Yellow()
- P.Anchored = true
- P.CanCollide = false
- P.Transparency = 1
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.1,0.1,1)
- m.Parent = P
- local mh = mouse.Hit
- for c1 = 1, 1 do
- oldHit = part.CFrame
- for count = 1, 9 do
- local val1 = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
- local val2 = P.Size.z / 10
- local val3 = P.CFrame.lookVector * -1
- local val4 = count * val2
- local val5 = val4 * val3
- local val6 = part.CFrame.p
- local Hit = CFrame.new(val5 + val1 + val6)
- local s = Instance.new("Part")
- s.Name = "Spark"
- s.Material = Enum.Material.Neon
- local Place0 = oldHit
- s.formFactor = 0
- s.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
- s.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
- s.Parent = parent
- s.BrickColor = BrickColor.new('Instatutional white')
- s.Anchored = true
- s.CanCollide = false
- m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.1,0.1,1)
- m.Parent = s
- local clone = s:clone()
- clone.Mesh.Scale = Vector3.new(0.3,0.3,1.1)
- clone.BrickColor = BrickColor.new('Electric blue')
- clone.Transparency = 0.8
- clone.Parent = s.Parent
- oldHit = Hit
- end
- Hit = oldHit
- local s = Instance.new("Part")
- s.Name = "Spark"
- s.Material = Enum.Material.Neon
- local Place0 = mh
- s.formFactor = 0
- s.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
- s.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
- s.Parent = parent
- s.BrickColor = BrickColor.new('Instatutional white')
- s.Anchored = true
- s.CanCollide = false
- m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.1,0.1,1)
- m.Parent = s
- local clone = s:clone()
- clone.Mesh.Scale = Vector3.new(0.3,0.3,1.1)
- clone.BrickColor = BrickColor.new('Electric blue')
- clone.Transparency = 0.8
- clone.Parent = s.Parent
- gettouching(part.Position,mou.Hit.p,parent)
- end
- P:remove()
- end
- end
- end
- function chokearms(chr)
- if chr:FindFirstChild('Torso') then
- if chr:FindFirstChild('Right Arm') then
- if chr.Torso:FindFirstChild('Right Shoulder') then
- chr.Torso["Right Shoulder"]:Destroy()
- end
- local thing = Instance.new('Weld',chr.Torso)
- thing.Name = "Right Shoulder"
- thing.Part0 = chr.Torso
- thing.Part1 = chr["Right Arm"]
- thing.C0 = CFrame.new(0.811074257, 0.835914135, -0.381313324, 0.27563563, 0.961260796, 2.0569455e-06, 0.488285512, -0.140010983, -0.861379266, -0.828009903, 0.237427771, -0.50796169)
- end
- if chr:FindFirstChild('Left Arm') then
- if chr.Torso:FindFirstChild('Left Shoulder') then
- chr.Torso["Left Shoulder"]:Destroy()
- end
- local thing = Instance.new('Weld',chr.Torso)
- thing.Name = "Left Shoulder"
- thing.Part0 = chr["Left Arm"]
- thing.Part1 = chr.Torso
- thing.C0 = CFrame.new(0.962814331, -0.457080841, 0.306755066, 0.309041202, -0.579310298, 0.754249752, -0.951046288, -0.188228443, 0.245104745, -2.09111568e-05, -0.793076754, -0.609121859)
- end
- end
- end
- function fixarms(chr)
- if chr:FindFirstChild('Torso') then
- for i,v in pairs(chr.Torso:GetChildren()) do
- if v.Name == "Right Shoulder" or v.Name == "Left Shoulder" then
- v:Destroy()
- end
- end
- if chr:FindFirstChild('Right Arm') then
- local rs = Instance.new('Motor6D',chr.Torso)
- rs.Name = "Right Shoulder"
- rs.Part0 = chr.Torso
- rs.Part1 = chr:FindFirstChild('Right Arm')
- rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- end
- if chr:FindFirstChild('Left Arm') then
- local ls = Instance.new('Motor6D',chr.Torso)
- ls.Name = "Left Shoulder"
- ls.Part0 = chr.Torso
- ls.Part1 = chr:FindFirstChild('Left Arm')
- ls.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- ls.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- end
- end
- end
- mou.KeyDown:connect(function(key)
- if key == "f" and mou.Target and zapping == false then
- if choking == false then
- local hum = mou.Target.Parent:FindFirstChildOfClass('Humanoid')
- if hum == nil then
- hum = mou.Target.Parent.Parent:FindFirstChildOfClass('Humanoid')
- end
- if hum and hum.Parent:FindFirstChild('Torso') and hum.Health > 0 then
- beforehealth = hum.Health
- choking = true
- target = hum.Parent.Torso
- local sound = Instance.new('Sound',target)
- sound.Volume = 5
- sound.EmitterSize = 50
- sound.MaxDistance = 100
- sound.SoundId = 'rbxassetid://418658161'
- sound.Looped = false
- sound.PlaybackSpeed = 0.75
- sound.Name = "Choking"
- sound:Play()
- startpos = target.CFrame
- chokearms(target.Parent)
- local bod = Instance.new('BodyPosition',hum.Parent.Torso)
- bod.Position = target.Position+Vector3.new(0,12,0)
- bod.MaxForce = Vector3.new(100000,100000,100000)
- bod.P = 1000
- bod.D = 500
- end
- if target and target:FindFirstChild('Breathing') then
- target.Breathing:Destroy()
- end
- local coru = coroutine.wrap(function()
- while timez < 5 and choking do
- timez = timez + 0.1
- if target.Parent:FindFirstChildOfClass('Humanoid') then
- if target.Parent:FindFirstChildOfClass('Humanoid').Health - (beforehealth/49) > 0 then
- target.Parent:FindFirstChildOfClass('Humanoid').Health = target.Parent:FindFirstChildOfClass('Humanoid').Health - (beforehealth/49)
- end
- end
- wait(0.1)
- end
- if timez >= 5 then
- if target and target.Parent and target.Parent:FindFirstChildOfClass('Humanoid') and target.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
- if target and target:FindFirstChild('Choking') then
- target.Choking:Stop()
- target.Choking:Destroy()
- end
- if target then
- for i,v in pairs(target:GetChildren()) do
- if v:IsA("BodyPosition") then
- v:Destroy()
- end
- end
- end
- Kill(target.Parent,false,false)
- end
- end
- target = nil
- choking = false
- startpos = CFrame.new(0,0,0)
- timez = 0
- for i,v in pairs(plr.Character.Torso:GetChildren()) do
- if v.Name == "Right Shoulder" and v:IsA('Weld') then
- v:Destroy()
- end
- end
- if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
- local rs = Instance.new('Motor6D',plr.Character.Torso)
- rs.Name = "Right Shoulder"
- rs.Part0 = plr.Character.Torso
- rs.Part1 = plr.Character:FindFirstChild('Right Arm')
- rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- end
- end)
- coru()
- else
- if target and target:FindFirstChild('Choking') then
- fixarms(target.Parent)
- target.Choking:Stop()
- target.Choking:Destroy()
- local sound = Instance.new('Sound',target)
- sound.Volume = 5
- sound.EmitterSize = 50
- sound.MaxDistance = 100
- sound.SoundId = 'rbxassetid://304511128'
- sound.Looped = true
- sound.PlaybackSpeed = 1
- sound.Name = "Breathing"
- sound:Play()
- game:GetService('Debris'):AddItem(sound,timez)
- for i,v in pairs(target:GetChildren()) do
- if v:IsA("BodyPosition") then
- v:Destroy()
- end
- end
- end
- if target.Parent:FindFirstChildOfClass('Humanoid') then
- target.Parent:FindFirstChildOfClass('Humanoid').Health = beforehealth
- end
- target = nil
- choking = false
- startpos = CFrame.new(0,0,0)
- timez = 0
- end
- elseif key == "g" and choking == false then
- zapping = true
- local electricity = Instance.new("Sound",plr.Character:FindFirstChild('Right Arm'))
- electricity.Name = "Electricity"
- electricity.SoundId = "rbxassetid://379557765"
- electricity.Volume = 5
- electricity.EmitterSize = 100
- electricity.MaxDistance = 100
- electricity.Looped = true
- electricity:Play()
- end
- end)
- mou.KeyUp:connect(function(key)
- if key == "g" then
- zapping = false
- if plr.Character:FindFirstChild('Right Arm') then
- for i,v in pairs(plr.Character:FindFirstChild('Right Arm'):GetChildren()) do
- if v:IsA('Sound') and v.Name == "Electricity" then
- v:Destroy()
- end
- end
- end
- end
- end)
- while true do
- if choking and plr.Character and target and target.Parent and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') then
- for i,v in pairs(plr.Character.Torso:GetChildren()) do
- if v.Name == "Right Shoulder" then
- v:Destroy()
- end
- end
- local Head = plr.Character.Head
- local RightArm = plr.Character["Right Arm"]
- local RightShoulder = Instance.new('Weld',plr.Character.Torso)
- RightShoulder.Name = "Right Shoulder"
- RightShoulder.Part0 = plr.Character.Torso
- RightShoulder.Part1 = RightArm
- RightShoulder.C0 = CFrame.new(1,1,-0.75)
- local MousePosition = target.Position+(target.Size/2)
- local ToMouse = (MousePosition - Head.Position).unit
- local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
- local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
- local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
- local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
- local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
- if tostring(LateralAngle) == "-1.#IND" then
- LateralAngle = 0
- end
- local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
- local change = false
- if LateralAngle > (math.pi / 2) then
- LateralAngle = (math.pi / 2)
- change = true
- end
- if Cross.Y < 0 then
- LateralAngle = -LateralAngle
- end
- RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
- for i,v in pairs(target.Parent:GetChildren()) do
- if v:IsA('Tool') then
- v.ManualActivationOnly = true
- end
- end
- elseif zapping == false and plr and plr.Character and plr.Character:FindFirstChild("Torso") and plr.Character:FindFirstChild('Right Arm') then
- for i,v in pairs(plr.Character.Torso:GetChildren()) do
- if v.Name == "Right Shoulder" and v:IsA('Weld') then
- v:Destroy()
- end
- end
- if target then
- for i,v in pairs(target:GetChildren()) do
- if v:IsA("BodyPosition") then
- v:Destroy()
- end
- end
- if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
- local rs = Instance.new('Motor6D',plr.Character.Torso)
- rs.Name = "Right Shoulder"
- rs.Part0 = plr.Character.Torso
- rs.Part1 = plr.Character:FindFirstChild('Right Arm')
- rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- end
- if target.Parent then
- for i,v in pairs(target.Parent:GetChildren()) do
- if v:IsA('Tool') then
- v.ManualActivationOnly = false
- end
- end
- end
- end
- target = nil
- choking = false
- startpos = CFrame.new(0,0,0)
- timez = 0
- end
- if zapping and plr.Character and mou.Hit and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') then
- if lastzap then
- lastzap:Destroy()
- lastzap = nil
- end
- for i,v in pairs(plr.Character.Torso:GetChildren()) do
- if v.Name == "Right Shoulder" then
- v:Destroy()
- end
- end
- local Head = plr.Character.Head
- local RightArm = plr.Character["Right Arm"]
- local RightShoulder = Instance.new('Weld',plr.Character.Torso)
- RightShoulder.Name = "Right Shoulder"
- RightShoulder.Part0 = plr.Character.Torso
- RightShoulder.Part1 = RightArm
- RightShoulder.C0 = CFrame.new(1,1,-0.75)
- local MousePosition = mou.Hit.p
- local ToMouse = (MousePosition - Head.Position).unit
- local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
- local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
- local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
- local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
- local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
- if tostring(LateralAngle) == "-1.#IND" then
- LateralAngle = 0
- end
- local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
- local change = false
- if LateralAngle > (math.pi / 2) then
- LateralAngle = (math.pi / 2)
- change = true
- end
- if Cross.Y < 0 then
- LateralAngle = -LateralAngle
- end
- RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
- local thing = Instance.new('Model',workspace)
- thing.Name = "Zap"
- lastzap = thing
- makelaser(thing)
- elseif choking == false and zapping == false then
- if lastzap then
- lastzap:Destroy()
- lastzap = nil
- end
- if plr.Character:FindFirstChild('Torso') then
- for i,v in pairs(plr.Character.Torso:GetChildren()) do
- if v.Name == "Right Shoulder" and v:IsA('Weld') then
- v:Destroy()
- end
- end
- if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
- local rs = Instance.new('Motor6D',plr.Character.Torso)
- rs.Name = "Right Shoulder"
- rs.Part0 = plr.Character.Torso
- rs.Part1 = plr.Character:FindFirstChild('Right Arm')
- rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- end
- end
- end
- wait()
- end
- end
Add Comment
Please, Sign In to add comment