Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- face.Texture = "http://www.roblox.com/asset/?id=381193106"
- shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=344089667"
- pants.PantsTemplate = "http://www.roblox.com/asset/?id=344084364"
- 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=75975464"
- Mesh.MeshId = "http://www.roblox.com/asset/?id=250264520 "
- 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=378010694"
- LSounds.MegaloStrikesBack.Volume = 0.1
- 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=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
- 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")
- pls=game:GetService'Players';
- rs=game:GetService'RunService';
- uinps=game:GetService'UserInputService';
- lp=pls.LocalPlayer;
- mouse=lp:GetMouse();
- c=lp.Character;
- rayModel=Instance.new('Model',c);
- human=c.Humanoid;
- Cone=nil;
- human.MaxHealth=5000;
- wait();
- human.Health=5000;
- c.Health:Destroy();
- Debounces={
- FPS=0;
- isAttacking=false;
- isMoving=false;
- isSprinting=false;
- Debounce=false;
- isTyping=false;
- isJumping=false;
- isFlash=false;
- };
- numLerp=function(start,goal,alpha)
- return(((goal-start)*alpha)+start);
- end;
- CFrameZero=function()
- return CFrame.new(Vector3.new());
- end;
- local function a()
- local t=tick();
- local l=t%1*3;
- local t=.5*math.pi*(l%1);
- if l<1 then
- return Color3.new(1,1-math.cos(t),1-math.sin(t));
- elseif l<2 then
- return Color3.new(1-math.sin(t),1,1-math.cos(t));
- else
- return Color3.new(1-math.cos(t),1-math.sin(t),1);
- end;
- end;
- rad=function(value)
- return math.rad(value);
- end;
- CFAngles=function(Vector)
- return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
- end;
- AnimStat={
- lerpSpeed=.2;
- lerpSpeed2=.35;
- lerpTween=0;
- };
- Joints={
- c.HumanoidRootPart.RootJoint;
- c.Torso.Neck;
- c.Torso['Left Shoulder'];
- c.Torso['Right Shoulder'];
- c.Torso['Left Hip'];
- c.Torso['Right Hip'];
- };
- JointTargets={
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- };
- prepareCharacter=function()
- music=Instance.new('Sound',c.HumanoidRootPart);
- music.SoundId='rbxassetid://222274242';
- music.Looped=true;
- music.Volume=.99;
- music2=Instance.new('Sound',c);
- music2.SoundId='rbxassetid://675914071';
- music2.Looped=true;
- music2.Volume=99;
- music3=Instance.new('Sound',c.HumanoidRootPart);
- music3.SoundId='rbxassetid://151032732';
- music3.Looped=true;
- music3.Volume=99;
- music4=Instance.new('Sound',c.HumanoidRootPart);
- music4.SoundId='rbxassetid://675914071';
- music4.Looped=true;
- music4.Volume=99;
- music5=Instance.new('Sound',c.HumanoidRootPart);
- music5.SoundId='rbxassetid://675914071';
- music5.Looped=true;
- music5.Volume=99;
- human.WalkSpeed=0;
- human.JumpPower=0;
- for i,v in pairs(c:children())do
- if v:isA'Hat'then v:Destroy();end;
- if v:FindFirstChild'roblox'then v.roblox:Destroy();end;
- if v.Name=='Head'then v.Transparency=1 for _,x in pairs(v:children())do if x.ClassName=='Sound'then x:Destroy();end;end;end;
- if v:FindFirstChild'face'then v.face:Destroy();end;
- if v:isA'Part'then v.BrickColor=BrickColor.new'White';end;
- end
- local shirt=c:FindFirstChild'Shirt'or Instance.new('Shirt',c);
- local pants=c:FindFirstChild'Pants'or Instance.new('Pants',c);
- shirt.ShirtTemplate='rbxassetid://445336252';
- pants.PantsTemplate='rbxassetid://232014054';
- local Head=Instance.new('Part',c);
- Head.Size=Vector3.new(2.5,2.5,1);
- Head.Transparency=1;
- Head:BreakJoints();
- local hw=Instance.new('Weld',c.Head);
- hw.Part0=c.Head;
- hw.Part1=Head;
- hw.C0=CFrame.new(0,.3,0);
- faceDecal=Instance.new('Decal',Head);
- faceDecal.Face=Enum.NormalId.Front;
- faceDecal.Texture='http://www.roblox.com/asset/?id=50607824';
- local backDecal=Instance.new('Decal',Head);
- backDecal.Face=Enum.NormalId.Back;
- backDecal.Texture='http://www.roblox.com/asset/?id=50607824';
- local mes=Instance.new('BlockMesh',Head);
- mes.Scale=Vector3.new(1,1,.4);
- local Anim=human:FindFirstChild'Animator'
- if Anim then Anim:Destroy();end;
- end;
- setJointCFrames=function(table)
- for i=1,#table do
- JointTargets[i]=table[i];
- end;
- end;
- triWave=function(x)
- local pi2=math.pi/2;
- return math.abs((x/pi2)%4-2)-1;
- end;
- setLerp=function(speed)
- AnimStat.lerpSpeed=speed;
- end;
- setTween=function(tween)
- AnimStat.lerpTween=tween;
- end;
- playSound=function(id,part,vol,pitch)
- local vol=vol or 1;
- local pitch=pitch or 1;
- local x=Instance.new('Sound',part);
- x.Volume=vol;
- x.Pitch=pitch;
- x.SoundId='rbxassetid://'..id;
- spawn(function()
- wait();
- x:Play();
- wait(x.TimeLength+.2);
- x:Destroy();
- end);
- end;
- lerpBoom=function()
- if Cone then
- Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
- cMesh.Scale=Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20);
- Cone.Transparency=1-c.HumanoidRootPart.Velocity.magnitude/1000;
- else
- Cone=Instance.new('Part',c);
- Cone.Anchored=true;
- Cone.CanCollide=false;
- Cone.Transparency=math.random(50,70)/100;
- Cone.Size=Vector3.new(1,1,1);
- Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
- cMesh=Instance.new('SpecialMesh',Cone);
- cMesh.MeshId='rbxassetid://1033714';
- cMesh.Scale=Vector3.new(20,50,20);
- end;
- end;
- noBoom=function()
- if Cone then local x=Cone Cone=nil;
- for i=1,20 do
- wait();
- x.Mesh.Scale=x.Mesh.Scale+Vector3.new(-.5,1,-.5);
- x.Transparency=x.Transparency+1/30;
- end;
- end;
- end;
- gasterBlast=function(tCFrame,aimPos,charge)
- local aimTarget;
- if aimPos then
- aimTarget=CFrame.new(tCFrame,aimPos);
- else
- aimTarget=tCFrame;
- end;
- local gast=Instance.new('Part',c);
- gast.Size=Vector3.new(12,.2,12);
- gast.CanCollide=false;
- gast.Anchored=true;
- gast.Transparency=1;
- if charge then
- playSound(200590621,gast,math.random(90,110)/100);
- end;
- wait();
- for i=1,2 do
- local decal=Instance.new('Decal',gast);
- decal.Texture='http://www.roblox.com/asset/?id=50607824';
- if i==1 then
- decal.Face=Enum.NormalId.Top;
- else
- decal.Face=Enum.NormalId.Bottom;
- end;
- end;
- gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
- spawn(function()
- local tarCFrame=gast.CFrame;
- local isLooping=true;
- spawn(function()
- while rs.RenderStepped:wait()and isLooping do
- gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
- end;
- end);
- for i=1,30 do
- wait();
- tarCFrame=gast.CFrame:lerp(aimTarget,.24);
- end;
- playSound(428593644,gast,math.random(90,110)/100);
- isLooping=false;
- wait(.08);
- local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
- local _,pos=workspace:FindPartOnRay(ray,c);
- local dis=(aimTarget.p-pos).magnitude;
- local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
- local rayPart=Instance.new('Part',rayModel);
- rayPart.Material='Neon';
- rayPart.FormFactor='Custom';
- rayPart.Color=a();
- rayPart.Anchored=true;
- rayPart.CanCollide=false;
- rayPart.Shape='Cylinder';
- rayPart.Size=Vector3.new(dis+400,8,8);
- rayPart.CFrame=rayCFrame;
- gast:Destroy();
- end);
- end;
- largegasterBlast=function(tCFrame,aimPos)
- local aimTarget;
- if aimPos then
- aimTarget=CFrame.new(tCFrame,aimPos);
- else
- aimTarget=tCFrame;
- end;
- local gast=Instance.new('Part',c);
- gast.Size=Vector3.new(25,.2,25);
- gast.CanCollide=false;
- gast.Anchored=true;
- gast.Transparency=1;
- playSound(200590621,gast,math.random(85,97)/100);
- wait();
- for i=1,2 do
- local decal=Instance.new('Decal',gast);
- decal.Texture='http://www.roblox.com/asset/?id=50607824';
- if i==1 then
- decal.Face=Enum.NormalId.Top;
- else
- decal.Face=Enum.NormalId.Bottom;
- end;
- end;
- gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
- spawn(function()
- local tarCFrame=gast.CFrame;
- local isLooping=true;
- spawn(function()
- while rs.RenderStepped:wait()and isLooping do
- gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
- end;
- end);
- for i=1,40 do
- wait();
- tarCFrame=gast.CFrame:lerp(aimTarget,.18);
- end;
- playSound(428593644,gast,math.random(80,95)/100);
- isLooping=false;
- wait(.08);
- local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
- local _,pos=workspace:FindPartOnRay(ray,c);
- local dis=(aimTarget.p-pos).magnitude;
- local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
- local rayPart=Instance.new('Part',rayModel);
- rayPart.Material='Neon';
- rayPart.FormFactor='Custom';
- rayPart.Color=a();
- rayPart.Anchored=true;
- rayPart.CanCollide=false;
- rayPart.Shape='Cylinder';
- rayPart.Size=Vector3.new(dis+400,17,17);
- rayPart.CFrame=rayCFrame;
- gast:Destroy();
- end);
- end;
- prepareCharacter();
- spawn(function()
- local sine=0;
- while wait()do
- if Debounces.isFlash then
- if(tick()*8)%2>1 then
- faceDecal.Texture='http://www.roblox.com/asset/?id=50607824';
- else
- faceDecal.Texture='http://www.roblox.com/asset/?id=50607824';
- end;
- else
- faceDecal.Texture='http://www.roblox.com/asset/?id=50607824';
- end;
- if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then
- setLerp(.8);
- local spasm=math.abs(math.sin(tick()*20))*1.1;
- local spasm2=math.abs(math.sin(tick()*20-2))*1.1;
- local spasm3=math.abs(math.sin(tick()*20-2.3))*1.1;
- setJointCFrames({
- CFrame.new(Vector3.new(0,0-spasm,0))*CFAngles(Vector3.new(0,0,0));
- CFrame.new(Vector3.new(0,1.5,0))*CFAngles(Vector3.new(-0.011,-0.502,-1.177));
- CFrame.new(Vector3.new(-1.5-spasm2^2/3,-0.001,0))*CFAngles(Vector3.new(-2.344,7.899,-2.82+spasm3^2*-60));
- CFrame.new(Vector3.new(1.569+spasm2^2/3,0,-0.1))*CFAngles(Vector3.new(4.822,1.123,6.383+spasm3^2*60));
- CFrame.new(Vector3.new(-0.61,-2+spasm/1.01,-.15))*CFAngles(Vector3.new(-2.206,0.767,-0.582));
- CFrame.new(Vector3.new(0.55,-2+spasm/1.01,-.1))*CFAngles(Vector3.new(-0.026,0.463,3.184));
- });
- elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==false and Debounces.isJumping==false then
- sine=tick()*18;
- human.WalkSpeed=120;
- setLerp(.35);
- setJointCFrames({
- CFrame.new(Vector3.new(0,math.sin(sine)/50-.3,0))*CFAngles(Vector3.new(-30-math.sin(sine*2)*3,math.sin(sine*2)*15,0));
- CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
- CFrame.new(Vector3.new(-1.5,-0.001,0.2+math.sin(sine*2+math.pi)*1.2))*CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90,0,-15));
- CFrame.new(Vector3.new(1.5,-0.001,0.2+math.sin(sine*2)*1.2))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-90,-0.001,14.999));
- CFrame.new(Vector3.new(-0.501,-2+math.cos(sine*2+math.pi)/3,.3+math.sin(sine*2)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-70,0,-0.001));
- CFrame.new(Vector3.new(0.499,-2+math.cos(sine*2)/3,.3+math.sin(sine*2+math.pi)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*70,0,0));
- });
- elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then
- sine=tick()*28;
- human.WalkSpeed=400;
- lerpBoom();
- setLerp(.65);
- setJointCFrames({
- CFrame.new(Vector3.new(0,math.sin(sine)/50-.3,0))*CFAngles(Vector3.new(-30-math.sin(sine*2)*3,math.sin(sine*2)*15,0));
- CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
- CFrame.new(Vector3.new(-1.5,-0.001,0.2+math.sin(sine*2+math.pi)*1.2))*CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90,0,-15));
- CFrame.new(Vector3.new(1.5,-0.001,0.2+math.sin(sine*2)*1.2))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-90,-0.001,14.999));
- CFrame.new(Vector3.new(-0.501,-2+math.cos(sine*2+math.pi)/3,.3+math.sin(sine*2)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-70,0,-0.001));
- CFrame.new(Vector3.new(0.499,-2+math.cos(sine*2)/3,.3+math.sin(sine*2+math.pi)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*70,0,0));
- });
- elseif Debounces.isJumping==true and Debounces.Debounce==false then
- setLerp(.14);
- human.WalkSpeed=45;
- setJointCFrames({
- CFrame.new(Vector3.new(0,0,0))*CFAngles(Vector3.new(-8,0,0));
- CFrame.new(Vector3.new(0,1.5,-0.15))*CFAngles(Vector3.new(-10.138,3.687,0.306));
- CFrame.new(Vector3.new(-1.23,0.069,-0.56))*CFAngles(Vector3.new(50.809,0.672,18.704));
- CFrame.new(Vector3.new(0.929,-0.031,-1.0912))*CFAngles(Vector3.new(63.00,13.85,-36.416));
- CFrame.new(Vector3.new(-0.63,-1.82,-0.74))*CFAngles(Vector3.new(31.324,3.424,-1.249));
- CFrame.new(Vector3.new(0.619,-1.331,0.82))*CFAngles(Vector3.new(-59.644,0.998,9.776));
- });
- end;
- end;
- end);
- human.Changed:connect(function(prop)
- if prop=='MoveDirection'then
- if human.MoveDirection.magnitude>.02 then
- Debounces.isMoving=true;
- else
- Debounces.isMoving=false;
- end;
- end;
- end);
- uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode==Enum.KeyCode.Slash then
- local finishEvent=nil;
- Debounces.isTyping=true
- finishEvent=uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
- Debounces.isTyping=false;
- finishEvent:disconnect();
- end;
- end);
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='0'then
- Debounces.isSprinting=true;
- playSound(200590621,c.Torso);
- for i=1,3 do
- spawn(function()
- local e=Instance.new('Part',c);
- e.Size=Vector3.new(1,1,1);
- e.Material='Neon';
- e.Color=a();
- e.Anchored=true;
- e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
- e.CanCollide=false;
- local rm=Instance.new('SpecialMesh',e);
- rm.MeshType='FileMesh';
- rm.MeshId='rbxassetid://3270017';
- rm.Scale=Vector3.new(3.2,3.2,10);
- for x=1,30 do
- wait();
- rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
- e.Transparency=x/30+.5;
- end;
- end);
- end;
- c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200;
- end;
- end);
- mouse.KeyUp:connect(function(key)
- if key=='0'then
- Debounces.isSprinting=false;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='v'then
- playSound(200590621,c.Torso,math.random(90,120)/100);
- local oldPos=c.HumanoidRootPart.CFrame.p;
- local mHit=mouse.Hit.p;
- for i=1,2 do
- spawn(function()
- local pos
- if i==1 then pos=oldPos else pos=mHit end
- local p=Instance.new('Part',workspace);
- p.Anchored=true;
- p.CanCollide=false;
- p.Color=a();
- p.FormFactor='Custom';
- p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
- p.Transparency=.4;
- p.Size=Vector3.new(20,1000,20);
- for i=1,20 do
- wait();
- p.Transparency=.4+(i/10)*.6;
- p.Size=Vector3.new(20-i*1.5,1000,20-i*1.5);
- p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
- end;
- p:Destroy();
- end);
- end;
- if Debounces.isMoving then
- c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(c.HumanoidRootPart.Velocity.x,mouse.Hit.p.y+4,c.HumanoidRootPart.Velocity.z));
- else
- c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z));
- end;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='r'then
- local pointTarget=mouse.Hit.p;
- for i=1,20 do
- wait();
- gasterBlast(CFrame.new(pointTarget+Vector3.new(math.sin(tick()*10)*20,5+math.abs(math.sin(tick()*5)*10),math.cos(tick()*10)*20),pointTarget));
- end;
- wait();
- largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget));
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='f'then
- local pointTarget=mouse.Hit.p;
- for i=1,20 do
- wait();
- gasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(math.sin(i/2)*(20-i),math.cos(i/2)*(20-i),-i)));
- end;
- largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25)));
- end;
- end);
- mouse.Button1Down:connect(function()
- Debounces.isFlash=true;
- end);
- mouse.Button1Up:connect(function()
- Debounces.isFlash=false;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='k'then
- if music.isPlaying then music:Stop();else music:Play();end;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='j'then
- if music2.isPlaying then music2:Stop();else music2:Play();end;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='l'then
- if music3.isPlaying then music3:Stop();else music3:Play();end;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='p'then
- if music4.isPlaying then music4:Stop();else music4:Play();end;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='o'then
- if music5.isPlaying then music4:Stop();else music5:Play();end;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='e'then
- gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='c'then
- largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='q'then
- for i=1,5 do
- wait();
- gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
- end;
- largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p);
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='t'then
- local pointTarget=mouse.Hit.p;
- for i=1,20 do
- gasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/40)*i))*(20-i),5+i,math.cos(math.deg((360/40)*i))*(20-i)),pointTarget);
- end;
- wait(.2);
- for i=1,10 do
- largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget);
- end;
- end;
- end);
- human.StateChanged:connect(function(os,ns)
- if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then
- Debounces.isJumping=false;
- end;
- end);
- for i=1,#Joints do
- Joints[i].C1=CFrameZero();
- end;
- rs.RenderStepped:connect(function()
- Debounces.FPS=1/rs.RenderStepped:wait();
- if Debounces.FPS<30 then
- Debounces.FPS=30;
- end;
- if Debounces.isSprinting then
- lerpBoom();
- else
- noBoom();
- end;
- for _,v in pairs(rayModel:children())do
- v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
- if v.Transparency>.99 then v:Destroy();return;end;
- v.CanCollide=true;
- local tParts=v:GetTouchingParts();
- v.CanCollide=false;
- local vCFrame=v.CFrame;
- v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
- v.CFrame=vCFrame;
- for _,x in pairs(tParts)do
- if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
- x.Parent.Humanoid:TakeDamage(math.huge,math.huge);
- end;
- end;
- end;
- local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
- for i=1,#Joints do
- Joints[i].C0=Joints[i].C0:lerp(JointTargets[i],FPSLerp);
- end;
- end);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement