Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- function weld(p0,p1,c0,c1,par)
- local w = Instance.new("Weld", par)
- w.Part0 = p0
- w.Part1 = p1
- w.C0 = c0 or CFrame.new()
- w.C1 = c1 or CFrame.new()
- return w
- end
- xmathrandom = math.random(-10,10)
- ymathrandom = math.random(2,10)
- zmathrandom = math.random(-10,10)
- player = game:service("Players").LocalPlayer
- char = player.Character
- local beat = true
- local beattime = 0.6
- suit = Instance.new("Model", char)
- suit.Name = "Gaster"
- local vDebounce = false
- Torso = char.Torso
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- local SHOT_SPEED = 100
- local SHOT_TIME = 1
- local NOZZLE_OFFSET = Vector3.new(0, 0, 0)
- mouse = player:GetMouse()
- shieldparent1 = nil
- shieldparent2 = nil
- shieldparent3 = nil
- shieldparent4 = nil
- shieldparent5 = nil
- shieldparent6 = nil
- switchvalue = 0
- RandomGasterRotaion = 0
- RandomPerseverance = 0
- ShieldValueToGaster = false
- ShieldValueToGasterDebounce = false
- 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"]
- function startup()
- RW.Part0 = char.Torso
- RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1 = CFrame.new(0, 0.5, 0)
- RW.Part1 = char["Right Arm"]
- RW.Parent = char.Torso
- LW.Part0 = char.Torso
- LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- LW.C1 = CFrame.new(0, 0.5, 0)
- LW.Part1 = char["Left Arm"]
- LW.Parent = char.Torso
- for i = 1,5 do wait()
- RW.C1= clerp(RW.C1*CFrame.new(-.1, -0, .1)*CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(-8),0),RW.C0,0.1)
- LW.C1= clerp(LW.C1*CFrame.new(.1, -0, .1)*CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(8),0),LW.C0,0.1)
- end
- coroutine.resume(coroutine.create(function()
- wait(1)
- for i = 1,20 do wait()
- RW.C1= clerp(RW.C1*CFrame.new(-.15, -.05, 0.01)*CFrame.fromEulerAnglesXYZ(-math.rad(-.1),-math.rad(-.1),-math.rad(3)),RW.C0,0.1)
- LW.C1= clerp(LW.C1*CFrame.new(.15, -.05, 0.01)*CFrame.fromEulerAnglesXYZ(math.rad(.1),math.rad(.1),-math.rad(-3)),LW.C0,0.1)
- end
- for i = 1,20 do wait()
- RW.C1= clerp(RW.C1*CFrame.new(-.12, .05, -0.1)*CFrame.fromEulerAnglesXYZ(-math.rad(-4),-math.rad(-4),-math.rad(-4)),RW.C0,0.1)
- LW.C1= clerp(LW.C1*CFrame.new(.12, .05, -0.1)*CFrame.fromEulerAnglesXYZ(math.rad(4),math.rad(-4),-math.rad(4)),LW.C0,0.1)
- end
- end))
- end
- local Sounds = {
- Gaster = Instance.new("Sound"),
- Gun = Instance.new("Sound"),
- Switch = Instance.new("Sound"),
- Explode = Instance.new("Sound"),
- GasterTheme = Instance.new("Sound")
- }
- Sounds["Gaster"].SoundId = "rbxassetid://345052019"
- Sounds["Gaster"].Volume = 99
- Sounds["Gun"].SoundId = "http://www.roblox.com/asset?id=417464011"
- Sounds["Gun"].Volume = 99
- Sounds["Switch"].SoundId = "http://www.roblox.com/asset?id=417464011"
- Sounds["Switch"].Volume = 99
- Sounds["Explode"].SoundId = "rbxasset://sounds/collide.wav"
- Sounds["Explode"].Volume = .1
- Sounds["GasterTheme"].SoundId = "rbxassetid://1046150894"
- Sounds["GasterTheme"].Volume = 99
- function PlaySound(soundname, pitch, where, looped)
- Sounds[soundname].Parent = where
- Sounds[soundname].Pitch = pitch
- Sounds[soundname].Looped= looped
- Sounds[soundname]:Play()
- local oldsound = Sounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- for i = 1,1 do
- if oldsound.Looped == true then return end
- oldsound:Destroy()
- end
- end))
- Sounds[soundname] = Sounds[soundname]:clone()
- end
- firstuse = true
- InUse = false
- JusticeAttack = false
- JusticeAttackDebounce = false
- IntegrityAttack = false
- IntegrityAttackDebounce = false
- PerseveranceAttack = false
- PerseveranceAttackDebounce = false
- KindnessAttack = false
- KindnessAttackDebounce = false
- DeterminationAttack = false
- DetermiantionAttackDebounce = false
- PatienceAttack = false
- PatienceAttackDebounce = false
- BraveryAttack = false
- BraveryAttackDebounce = false
- hand1DeterminationhealthDown = false
- hand2PerseverancehealthDown = false
- hand3PatiencehealthDown = false
- hand4IntegrityhealthDown = false
- hand5BraveryhealthDown = false
- hand6JusticehealthDown = false
- hand7KindnesshealthDown = false
- hand1Determination = Instance.new("Model", char)
- hand1Determination.Name ="Red"
- hand2Perseverance = Instance.new("Model", char)
- hand2Perseverance.Name ="Purple"
- hand3Patience = Instance.new("Model", char)
- hand3Patience.Name = "Cyan"
- hand4Integrity = Instance.new("Model", char)
- hand4Integrity.Name = "Blue"
- hand5Bravery = Instance.new("Model", char)
- hand5Bravery.Name = "Orange"
- hand6Justice = Instance.new("Model", char)
- hand6Justice.Name = "Yellow"
- hand7Kindness = Instance.new("Model", char)
- hand7Kindness.Name = "Green"
- function teleportPlayer(pos)
- if player == nil or player.Character == nil then return end
- char["Left Leg"].CFrame = CFrame.new(Vector3.new(pos.x, pos.y , pos.z))
- coroutine.resume(coroutine.create(function()
- TeleportPart = Instance.new("Part",workspace)
- TeleportPart.FormFactor="Custom"
- TeleportPart.Size=Vector3.new(0.8,0.8,0.8)
- TeleportPart.TopSurface = 0
- TeleportPart.BottomSurface = 0
- local colorc = {"Institutional white"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- TeleportPart.BrickColor = Fire
- TeleportPart.CanCollide=false
- TeleportPart.Anchored=true
- TeleportPart.CFrame =(Torso.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- TeleportPartmesh = Instance.new("BlockMesh",TeleportPart)
- game.Debris:AddItem(TeleportPart,1.5)
- for i = 1,5 do wait()
- Torso.Transparency = Torso.Transparency - 0.2
- char["Left Arm"].Transparency = char["Left Arm"].Transparency - 0.2
- char["Left Leg"].Transparency = char["Left Leg"].Transparency - 0.2
- char["Right Arm"].Transparency = char["Right Arm"].Transparency - 0.2
- char["Right Leg"].Transparency = char["Right Leg"].Transparency - 0.2
- char.Head.Transparency = char.Head.Transparency - 0.2
- Crack1.Transparency = Crack1.Transparency - 0.2
- Crack2.Transparency = Crack2.Transparency - 0.2
- mouth.Transparency = mouth.Transparency - 0.2
- Eye1.Transparency = Eye1.Transparency - 0.2
- Eye2.Transparency = Eye2.Transparency - 0.2
- MEye1.Transparency = MEye1.Transparency - 0.2
- MEye2.Transparency = MEye2.Transparency - 0.2
- end
- 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
- Crack1.Transparency = 0
- Crack2.Transparency = 0
- mouth.Transparency = 0
- Eye1.Transparency = 0
- Eye2.Transparency = 0
- MEye1.Transparency = 0
- MEye2.Transparency = 0
- end))
- for i = 1,7 do
- local parti = Instance.new("Part",Torso)
- parti.Anchored = true
- parti.TopSurface = 0
- parti.BottomSurface = 0
- parti.CanCollide = false
- parti.Size = Vector3.new(math.random(1,1),math.random(1,1),math.random(1,1))
- parti.CFrame = Torso.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- parti.Transparency = 0
- parti.BrickColor = BrickColor.new("Black")
- game.Debris:AddItem(parti,1.5)
- local pad = Vector3.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
- game:service("RunService").Stepped:connect(function()
- parti.Transparency = parti.Transparency + 0.05
- parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad
- end)
- end
- for i = 1,10 do wait()
- TeleportPartmesh.Scale=Vector3.new(2*i,2*i,2*i)
- TeleportPart.CFrame = clerp(TeleportPart.CFrame*CFrame.Angles(math.rad(10),math.rad(10),math.rad(10)),TeleportPart.CFrame,0.1)
- TeleportPart.Transparency = TeleportPart.Transparency + 0.1
- end
- end
- 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" or v.ClassName=="CharacterMesh" then v:remove() end end
- shirt=Instance.new("Shirt", char)
- pants=Instance.new("Pants", char)
- char.Head.BrickColor = BrickColor.new("Institutional white")
- shirt.ShirtTemplate="rbxassetid://395674792"
- pants.PantsTemplate="rbxassetid://305537520"
- --------Gaster's head
- mouth = Instance.new("Part",suit)
- mouth.Size = Vector3.new(0.2,.7,0.4)
- mouth.Transparency = 0
- mouth.BrickColor = BrickColor.new("Really black")
- mouth.CanCollide = false
- mouthMesh = Instance.new("SpecialMesh",mouth)
- mouthMesh.MeshType = "Sphere"
- mouthMesh.Scale = Vector3.new(2.5,0.50,0.8)
- weld(char.Head,mouth,CFrame.new(0,0,0),CFrame.new(0, .3, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- Crack2 = Instance.new("Part",suit)
- Crack2.Size = Vector3.new(0.2,.7,0.4)
- Crack2.Transparency = 0
- Crack2.BrickColor = BrickColor.new("Really blue")
- Crack2.CanCollide = false
- Crack2Mesh = Instance.new("SpecialMesh",Crack2)
- Crack2Mesh.MeshType = "Sphere"
- Crack2Mesh.Scale = Vector3.new(0.3,0.8,0.8)
- weld(char.Head,Crack2,CFrame.new(0,0,0),CFrame.new(.2, .15, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, -.2),char)
- Crack1 = Instance.new("Part",suit)
- Crack1.Size = Vector3.new(0.2,.7,0.4)
- Crack1.Transparency = 1
- Crack1.BrickColor = BrickColor.new("Really blue")
- Crack1.CanCollide = false
- Crack1Mesh = Instance.new("SpecialMesh",Crack1)
- Crack1Mesh.MeshType = "Sphere"
- Crack1Mesh.Scale = Vector3.new(0.3,0.7,0.65)
- weld(char.Head,Crack1,CFrame.new(0,0,0),CFrame.new(-.2, -.3, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, .2),char)
- Eye1 = Instance.new("Part",suit)
- Eye1.Size = Vector3.new(0.4,0.4,0.4)
- Eye1.Transparency = 0
- Eye1.BrickColor = BrickColor.new("Really blue")
- Eye1.CanCollide = false
- Eye1Mesh = Instance.new("SpecialMesh",Eye1)
- Eye1Mesh.MeshType = "Sphere"
- Eye1Mesh.Scale = Vector3.new(1,1,0.6)
- weld(char.Head,Eye1,CFrame.new(0,0,0),CFrame.new(-.2, -.1, 0.5)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- Eye2 = Instance.new("Part",suit)
- Eye2.Size = Vector3.new(0.4,0.4,0.4)
- Eye2.Transparency = 0
- Eye2.CanCollide = false
- Eye2.BrickColor = BrickColor.new("Deep orange")
- Eye2Mesh = Instance.new("SpecialMesh",Eye2)
- Eye2Mesh.MeshType = "Sphere"
- Eye2Mesh.Scale = Vector3.new(1,1,0.6)
- weld(char.Head,Eye2,CFrame.new(0,0,0),CFrame.new(.2, -.1, 0.5)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- MEye1 = Instance.new("Part",suit)
- MEye1.Size = Vector3.new(0.3,0.3,0.3)
- MEye1.Transparency = 0
- MEye1.Material= "Neon"
- MEye1.BrickColor = BrickColor.new("Institutional white")
- MEye1.CanCollide = false
- MEye1Mesh = Instance.new("SpecialMesh",MEye1)
- MEye1Mesh.MeshType = "Sphere"
- MEye1Mesh.Scale = Vector3.new(.2,.5,.2)
- weld(Eye1,MEye1,CFrame.new(0,0,0),CFrame.new(-.02,0,0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- MEye2 = Instance.new("Part",suit)
- MEye2.Size = Vector3.new(0.3,0.3,0.3)
- MEye2.Transparency = 0
- MEye2.Material= "Neon"
- MEye2.BrickColor = BrickColor.new("Institutional white")
- MEye2.CanCollide = false
- MEye2Mesh = Instance.new("SpecialMesh",MEye2)
- MEye2Mesh.MeshType = "Sphere"
- MEye2Mesh.Scale = Vector3.new(.2,.5,.2)
- weld(Eye2,MEye2,CFrame.new(0,0,0),CFrame.new(.02,0,0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- --------Gaster's hand
- startup()
- hand1DeterminationPosition = Instance.new("Part",suit)
- hand1DeterminationPosition.Size = Vector3.new(1,1,1)
- hand1DeterminationPosition.Transparency = 1
- hand1DeterminationPosition.CanCollide = false
- weld(Torso,hand1DeterminationPosition,CFrame.new(0,0,0),CFrame.new(-2, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- hand2PerseverancePosition = Instance.new("Part",suit)
- hand2PerseverancePosition.Size = Vector3.new(1,1,1)
- hand2PerseverancePosition.Transparency = 1
- hand2PerseverancePosition.CanCollide = false
- weld(Torso,hand2PerseverancePosition,CFrame.new(0,0,0),CFrame.new(2, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- hand3PatiencePosition = Instance.new("Part",suit)
- hand3PatiencePosition.Size = Vector3.new(1,1,1)
- hand3PatiencePosition.Transparency = 1
- hand3PatiencePosition.CanCollide = false
- weld(Torso,hand3PatiencePosition,CFrame.new(0,0,0),CFrame.new(-4, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- hand4IntegrityPosition = Instance.new("Part",suit)
- hand4IntegrityPosition.Size = Vector3.new(1,1,1)
- hand4IntegrityPosition.Transparency = 1
- hand4IntegrityPosition.CanCollide = false
- weld(Torso,hand4IntegrityPosition,CFrame.new(0,0,0),CFrame.new(4, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- hand5BraveryPosition = Instance.new("Part",suit)
- hand5BraveryPosition.Size = Vector3.new(1,1,1)
- hand5BraveryPosition.Transparency = 1
- hand5BraveryPosition.CanCollide = false
- weld(Torso,hand5BraveryPosition,CFrame.new(0,0,0),CFrame.new(-6, -7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- hand6JusticePosition = Instance.new("Part",suit)
- hand6JusticePosition.Size = Vector3.new(1,1,1)
- hand6JusticePosition.Transparency = 1
- hand6JusticePosition.CanCollide = false
- weld(Torso,hand6JusticePosition,CFrame.new(0,0,0),CFrame.new(6, -7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- hand7KindnessPosition = Instance.new("Part",suit)
- hand7KindnessPosition.Size = Vector3.new(1,1,1)
- hand7KindnessPosition.Transparency = 1
- hand7KindnessPosition.CanCollide = false
- weld(Torso,hand7KindnessPosition,CFrame.new(0,0,0),CFrame.new(0, -7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- AttackPosition = Instance.new("Part",suit)
- AttackPosition.Size = Vector3.new(1,1,1)
- AttackPosition.Transparency = 1
- AttackPosition.CanCollide = false
- weld(Torso,AttackPosition,CFrame.new(0,0,0),CFrame.new(0, 0, 4)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- --------Gaster's Health of hands and hands
- hand1Determinationhealth = Instance.new("Humanoid",hand1Determination)
- hand1Determinationhealth.DisplayDistanceType = "None"
- hand1Determinationhealth.Health = 7777777777777777
- hand1Determinationhealth.MaxHealth = 7777777777777777
- Determination = Instance.new("Part",hand1Determination)
- Determination.Size = Vector3.new(1,1.5,0.2)
- Determination.Name = "Head"
- Determination.Position = hand1DeterminationPosition.Position
- DeterminationMesh = Instance.new("SpecialMesh",Determination)
- DeterminationMesh.MeshId = "rbxassetid://305829157"
- DeterminationMesh.Offset = Vector3.new(0.09,0.1,0)
- Determination.BrickColor = BrickColor.new("Institutional white")
- DeterminationOrb = Instance.new("Part",Determination)
- DeterminationOrb.Size = Vector3.new(0.3,0.3,0.2)
- DeterminationOrb.BrickColor = BrickColor.new("Really red")
- weld(Determination,DeterminationOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand1DeterminationPosition,Determination,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Really red"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- --2--
- hand2Perseverancehealth = Instance.new("Humanoid",hand2Perseverance)
- hand2Perseverancehealth.DisplayDistanceType = "None"
- hand2Perseverancehealth.Health = 777777777777
- hand2Perseverancehealth.MaxHealth = 777777777777
- Perseverance = Instance.new("Part",hand2Perseverance)
- Perseverance.Size = Vector3.new(1,1.5,0.2)
- Perseverance.Name = "Head"
- Perseverance.Position = hand2PerseverancePosition.Position
- PerseveranceMesh = Instance.new("SpecialMesh",Perseverance)
- PerseveranceMesh.MeshId = "rbxassetid://1031341"
- PerseveranceMesh.Offset = Vector3.new(0.09,0.1,0)
- Perseverance.BrickColor = BrickColor.new("Institutional white")
- PerseveranceOrb = Instance.new("Part",Perseverance)
- PerseveranceOrb.Size = Vector3.new(0.3,0.3,0.2)
- PerseveranceOrb.BrickColor = BrickColor.new("Magenta")
- weld(Perseverance,PerseveranceOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand2PerseverancePosition,Perseverance,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Magenta"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- --3--
- hand3Patiencehealth = Instance.new("Humanoid",hand3Patience)
- hand3Patiencehealth.DisplayDistanceType = "None"
- hand3Patiencehealth.Health = 7777777777
- hand3Patiencehealth.MaxHealth = 77777777
- Patience = Instance.new("Part",hand3Patience)
- Patience.Size = Vector3.new(1,1.5,0.2)
- Patience.Name = "Head"
- PatienceMesh = Instance.new("SpecialMesh",Patience)
- PatienceMesh.MeshId = "rbxassetid://1047997"
- PatienceMesh.Offset = Vector3.new(0.09,0.1,0)
- Patience.BrickColor = BrickColor.new("Institutional white")
- PatienceOrb = Instance.new("Part",Patience)
- PatienceOrb.Size = Vector3.new(0.3,0.3,0.2)
- PatienceOrb.BrickColor = BrickColor.new("Cyan")
- weld(Patience,PatienceOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand3PatiencePosition,Patience,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Cyan"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- --4--
- hand4Integrityhealth = Instance.new("Humanoid",hand4Integrity)
- hand4Integrityhealth.DisplayDistanceType = "None"
- hand4Integrityhealth.Health = 7777777777
- hand4Integrityhealth.MaxHealth = 7777777777
- Integrity = Instance.new("Part",hand4Integrity)
- Integrity.Size = Vector3.new(1,1.5,0.2)
- Integrity.Name = "Head"
- Integrity.Position = hand1DeterminationPosition.Position
- IntegrityMesh = Instance.new("SpecialMesh",Integrity)
- IntegrityMesh.MeshId = "rbxassetid://1047997"
- IntegrityMesh.Offset = Vector3.new(0.09,0.1,0)
- Integrity.BrickColor = BrickColor.new("Institutional white")
- IntegrityOrb = Instance.new("Part",Integrity)
- IntegrityOrb.Size = Vector3.new(0.3,0.3,0.2)
- IntegrityOrb.BrickColor = BrickColor.new("Deep blue")
- weld(Integrity,IntegrityOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand4IntegrityPosition,Integrity,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Deep blue"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- --5--
- hand5Braveryhealth = Instance.new("Humanoid",hand5Bravery)
- hand5Braveryhealth.DisplayDistanceType = "None"
- hand5Braveryhealth.Health = 7777777777
- hand5Braveryhealth.MaxHealth = 7777777777
- Bravery = Instance.new("Part",hand5Bravery)
- Bravery .Size = Vector3.new(1,1.5,0.2)
- Bravery .Name = "Head"
- Bravery.Position = hand1DeterminationPosition.Position
- BraveryMesh = Instance.new("SpecialMesh",Bravery)
- BraveryMesh.MeshId = "rbxassetid://12891705"
- BraveryMesh.Offset = Vector3.new(0.09,0.1,0)
- Bravery.BrickColor = BrickColor.new("Institutional white")
- BraveryOrb = Instance.new("Part",Bravery)
- BraveryOrb.Size = Vector3.new(0.3,0.3,0.2)
- BraveryOrb.BrickColor = BrickColor.new("Deep orange")
- weld(Bravery,BraveryOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand5BraveryPosition,Bravery,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Deep orange"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- --6--
- hand6Justicehealth = Instance.new("Humanoid",hand6Justice)
- hand6Justicehealth.DisplayDistanceType = "None"
- hand6Justicehealth.Health = 7777777777
- hand6Justicehealth.MaxHealth = 7777777777
- Justice = Instance.new("Part",hand6Justice)
- Justice .Size = Vector3.new(1,1.5,0.2)
- Justice.Name = "Head"
- Justice.Position = hand1DeterminationPosition.Position
- JusticeMesh = Instance.new("SpecialMesh",Justice)
- JusticeMesh.MeshId = "rbxassetid://430045961"
- JusticeMesh.Offset = Vector3.new(0.09,0.1,0)
- Justice.BrickColor = BrickColor.new("Institutional white")
- JusticeOrb = Instance.new("Part",Justice)
- JusticeOrb.Size = Vector3.new(0.3,0.3,0.2)
- JusticeOrb.BrickColor = BrickColor.new("New Yeller")
- weld(Justice,JusticeOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand6JusticePosition,Justice,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"New Yeller"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- --7--
- hand7Kindnesshealth = Instance.new("Humanoid",hand7Kindness)
- hand7Kindnesshealth.DisplayDistanceType = "None"
- hand7Kindnesshealth.Health = 7777777777
- hand7Kindnesshealth.MaxHealth = 7777777777
- Kindness = Instance.new("Part",hand7Kindness)
- Kindness .Size = Vector3.new(1,1.5,0.2)
- Kindness.Name = "Head"
- Kindness.Position = hand1DeterminationPosition.Position
- KindnessMesh = Instance.new("SpecialMesh",Kindness)
- KindnessMesh.MeshId = "rbxassetid://16657069"
- KindnessMesh.Offset = Vector3.new(0.09,0.1,0)
- Kindness.BrickColor = BrickColor.new("Institutional white")
- KindnessOrb = Instance.new("Part",Kindness)
- KindnessOrb.Size = Vector3.new(0.3,0.3,0.2)
- KindnessOrb.BrickColor = BrickColor.new("Institutional white")
- weld(Kindness,KindnessOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand7KindnessPosition,Kindness,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Institutional white"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- PlaySound("GasterTheme", 1, char.Torso, true)
- ---functions and attacks
- function BravAttack()
- if hand5BraveryhealthDown == true then return end
- if switchvalue == 7 then
- BraveryAttack = true
- WeldBravery = Instance.new("Weld",Bravery)
- WeldBravery.Part0 = AttackPosition
- WeldBravery.Part1 = Bravery
- WeldBravery.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Deep orange"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function BravRest()
- if hand5BraveryhealthDown == true then return end
- if switchvalue == 6 then
- if BraveryAttack == true then
- WeldBravery:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Deep orange"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- BraveryAttack = false
- end
- end
- end
- function PatAttack()
- if hand3PatiencehealthDown == true then return end
- if switchvalue == 6 then
- PatienceAttack = true
- WeldPatience = Instance.new("Weld",Patience)
- WeldPatience.Part0 = AttackPosition
- WeldPatience.Part1 = Patience
- WeldPatience.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Cyan"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function PatRest()
- if hand3PatiencehealthDown == true then return end
- if switchvalue == 7 or switchvalue == 5 then
- if PatienceAttack == true then
- WeldPatience:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Cyan"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- PatienceAttack = false
- end
- end
- end
- function DetAttack()
- if hand1DeterminationhealthDown == true then return end
- if switchvalue == 5 then
- DeterminationAttack = true
- WeldDet = Instance.new("Weld",Determination)
- WeldDet.Part0 = AttackPosition
- WeldDet.Part1 = Determination
- WeldDet.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Really red"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function DetRest()
- if hand1DeterminationhealthDown == true then return end
- if switchvalue == 6 or switchvalue == 4 then
- if DeterminationAttack == true then
- WeldDet:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Really red"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- DeterminationAttack = false
- end
- end
- end
- function KinAttack()
- if hand7KindnesshealthDown == true then return end
- if switchvalue == 4 then
- KindAttack = true
- WeldKind = Instance.new("Weld",Kindness)
- WeldKind.Part0 = AttackPosition
- WeldKind.Part1 = Kindness
- WeldKind.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Lime green"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function KinRest()
- if hand7KindnesshealthDown == true then return end
- if switchvalue == 5 or switchvalue == 3 then
- if KindAttack == true then
- WeldKind:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Lime green"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- KindAttack = false
- end
- end
- end
- function PerAttack()
- if hand2PerseverancehealthDown == true then return end
- if switchvalue == 3 then
- PerseveranceAttack = true
- WeldPer = Instance.new("Weld",Perseverance)
- WeldPer.Part0 = AttackPosition
- WeldPer.Part1 = Perseverance
- WeldPer.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Magenta"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function PerRest()
- if hand2PerseverancehealthDown == true then return end
- if switchvalue == 4 or switchvalue == 2 then
- if PerseveranceAttack == true then
- WeldPer:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Magenta"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- PerseveranceAttack = false
- end
- end
- end
- function IntAttack()
- if hand4IntegrityhealthDown == true then return end
- if switchvalue == 2 then
- IntegrityAttack = true
- WeldInt = Instance.new("Weld",Integrity)
- WeldInt.Part0 = AttackPosition
- WeldInt.Part1 = Integrity
- WeldInt.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Dark blue"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function IntRest()
- if hand4IntegrityhealthDown == true then return end
- if switchvalue == 3 or switchvalue == 1 then
- if IntegrityAttack == true then
- WeldInt:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Dark blue"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- IntegrityAttack = false
- end
- end
- end
- function JusAttack()
- if switchvalue == 1 then
- if hand6JusticehealthDown == true then return end
- JusticeAttack = true
- Weldjus = Instance.new("Weld",Justice)
- Weldjus.Part0 = AttackPosition
- Weldjus.Part1 = Justice
- Weldjus.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"New Yeller"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function JusRest()
- if hand6JusticehealthDown == true then return end
- if switchvalue == 2 then
- if JusticeAttack == true then
- Weldjus:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"New Yeller"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- JusticeAttack = false
- end
- end
- end
- --Key Presses
- mouse.Button1Up:connect(function()
- InUse = false
- end)
- mouse.Button1Down:connect(function()
- InUse = true
- end)
- mouse.KeyDown:connect(function(key)
- if key =="r" then
- if hand7KindnesshealthDown == true then return end
- if ShieldValueToGasterDebounce == true then return end
- if ShieldValueToGaster == false then
- ShieldValueToGaster = true
- if ShieldValueToGasterDebounce == false then
- ShieldValueToGasterDebounce = true
- local ShieldOfGaster6= Instance.new("Part",hand7Kindness)
- ShieldOfGaster6.TopSurface = "Smooth"
- ShieldOfGaster6.BottomSurface = "Smooth"
- ShieldOfGaster6.Size = Vector3.new(18, 3, 18)
- ShieldOfGaster6.CanCollide = true
- ShieldOfGaster6.Anchored =true
- ShieldOfGaster6.BrickColor = BrickColor.new("Institutional white")
- ShieldOfGaster6 .FormFactor = "Custom"
- ShieldOfGaster6.Transparency = 0.7
- ShieldOfGaster6.CFrame= Torso.CFrame*CFrame.new(0,10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- shieldparent6 = ShieldOfGaster6
- local ShieldOfGaster5= Instance.new("Part",hand7Kindness)
- ShieldOfGaster5.TopSurface = "Smooth"
- ShieldOfGaster5.BottomSurface = "Smooth"
- ShieldOfGaster5.Size = Vector3.new(18, 3, 18)
- ShieldOfGaster5.CanCollide = true
- ShieldOfGaster5.Anchored =true
- ShieldOfGaster5.BrickColor = BrickColor.new("Institutional white")
- ShieldOfGaster5 .FormFactor = "Custom"
- ShieldOfGaster5.Transparency = 0.7
- ShieldOfGaster5.CFrame= Torso.CFrame*CFrame.new(0,-10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- shieldparent5 = ShieldOfGaster5
- local ShieldOfGaster4= Instance.new("Part",hand7Kindness)
- ShieldOfGaster4.TopSurface = "Smooth"
- ShieldOfGaster4.BottomSurface = "Smooth"
- ShieldOfGaster4.Size = Vector3.new(3, 18, 18)
- ShieldOfGaster4.CanCollide = true
- ShieldOfGaster4.Anchored =true
- ShieldOfGaster4.BrickColor = BrickColor.new("Institutional white")
- ShieldOfGaster4 .FormFactor = "Custom"
- ShieldOfGaster4.Transparency = 0.7
- ShieldOfGaster4.CFrame= Torso.CFrame*CFrame.new(-10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- shieldparent4 = ShieldOfGaster4
- local ShieldOfGaster3= Instance.new("Part",hand7Kindness)
- ShieldOfGaster3.TopSurface = "Smooth"
- ShieldOfGaster3.BottomSurface = "Smooth"
- ShieldOfGaster3.Size = Vector3.new(3, 18, 18)
- ShieldOfGaster3.CanCollide = true
- ShieldOfGaster3.Anchored =true
- ShieldOfGaster3.BrickColor = BrickColor.new("Institutional white")
- ShieldOfGaster3 .FormFactor = "Custom"
- ShieldOfGaster3.Transparency = 0.7
- ShieldOfGaster3.CFrame= Torso.CFrame*CFrame.new(10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- shieldparent3 = ShieldOfGaster3
- local ShieldOfGaster2= Instance.new("Part",hand7Kindness)
- ShieldOfGaster2.TopSurface = "Smooth"
- ShieldOfGaster2.BottomSurface = "Smooth"
- ShieldOfGaster2.Size = Vector3.new(18, 18, 3)
- ShieldOfGaster2.CanCollide = true
- ShieldOfGaster2.Anchored =true
- ShieldOfGaster2.BrickColor = BrickColor.new("Institutional white")
- ShieldOfGaster2 .FormFactor = "Custom"
- ShieldOfGaster2.Transparency = 0.7
- ShieldOfGaster2.CFrame= Torso.CFrame*CFrame.new(0,0,-10)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- shieldparent2 = ShieldOfGaster2
- local ShieldOfGaster1= Instance.new("Part",hand7Kindness)
- ShieldOfGaster1.TopSurface = "Smooth"
- ShieldOfGaster1.BottomSurface = "Smooth"
- ShieldOfGaster1.Size = Vector3.new(18, 18, 3)
- ShieldOfGaster1.CanCollide = true
- ShieldOfGaster1.Anchored =true
- ShieldOfGaster1.BrickColor = BrickColor.new("Institutional white")
- ShieldOfGaster1 .FormFactor = "Custom"
- ShieldOfGaster1.Transparency = 0.7
- ShieldOfGaster1.CFrame= Torso.CFrame*CFrame.new(0,0,10)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- shieldparent1 = ShieldOfGaster1
- for i = 1,7 do
- local parti = Instance.new("Part",Torso)
- parti.Anchored = true
- parti.TopSurface = 0
- parti.BottomSurface = 0
- parti.CanCollide = false
- parti.Size = Vector3.new(math.random(1,1),math.random(1,1),math.random(1,1))
- parti.CFrame = Torso.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- parti.Transparency = 0
- parti.BrickColor = BrickColor.new("Institutional white")
- game.Debris:AddItem(parti,1.5)
- local pad = Vector3.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
- game:service("RunService").Stepped:connect(function()
- parti.Transparency = parti.Transparency + 0.05
- parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad
- end)
- end
- ShieldValueToGasterDebounce = false
- ShieldValueToGaster = true
- end
- elseif ShieldValueToGaster == true then
- ShieldValueToGaster = false
- if ShieldValueToGasterDebounce == false then
- ShieldValueToGasterDebounce = true
- for i = 1,3 do wait()
- shieldparent6.Transparency =shieldparent6.Transparency + 0.1
- shieldparent5.Transparency =shieldparent5.Transparency + 0.1
- shieldparent4.Transparency =shieldparent4.Transparency + 0.1
- shieldparent3.Transparency =shieldparent3.Transparency + 0.1
- shieldparent2.Transparency =shieldparent2.Transparency + 0.1
- shieldparent1.Transparency =shieldparent1.Transparency + 0.1
- end
- shieldparent6:remove()
- shieldparent5:remove()
- shieldparent4:remove()
- shieldparent3:remove()
- shieldparent2:remove()
- shieldparent1:remove()
- shieldparent1=nil
- shieldparent2=nil
- shieldparent3=nil
- shieldparent4=nil
- shieldparent5=nil
- shieldparent6=nil
- ShieldValueToGasterDebounce = false
- ShieldValueToGaster = false
- end
- end
- end
- if key =="x" then
- if (not vDebounce) then
- vDebounce = true
- for i = 1,5 do wait()
- Torso.Transparency = Torso.Transparency + 0.2
- char["Left Arm"].Transparency = char["Left Arm"].Transparency + 0.2
- char["Left Leg"].Transparency = char["Left Leg"].Transparency + 0.2
- char["Right Arm"].Transparency = char["Right Arm"].Transparency + 0.2
- char["Right Leg"].Transparency = char["Right Leg"].Transparency + 0.2
- char.Head.Transparency = char.Head.Transparency + 0.2
- Crack1.Transparency = Crack1.Transparency + 0.2
- Crack2.Transparency = Crack2.Transparency + 0.2
- mouth.Transparency = mouth.Transparency + 0.2
- Eye1.Transparency = Eye1.Transparency + 0.2
- Eye2.Transparency = Eye2.Transparency + 0.2
- MEye1.Transparency = MEye1.Transparency + 0.2
- MEye2.Transparency = MEye2.Transparency + 0.2
- end
- teleportPlayer(mouse.hit.p)
- char.Humanoid.PlatformStand = false
- vDebounce = false
- end
- end
- if key == "q" then
- if switchvalue == 1 then return end
- switchvalue = switchvalue - 1
- print (switchvalue)
- JusAttack()
- JusRest()
- IntAttack()
- IntRest()
- PerAttack()
- PerRest()
- KinAttack()
- KinRest()
- DetAttack()
- DetRest()
- PatAttack()
- PatRest()
- BravAttack()
- BravRest()
- end
- if key == "e" then
- if switchvalue == 7 then return end
- switchvalue = switchvalue + 1
- print (switchvalue)
- JusAttack()
- JusRest()
- IntAttack()
- IntRest()
- PerAttack()
- PerRest()
- KinAttack()
- KinRest()
- DetAttack()
- DetRest()
- PatAttack()
- PatRest()
- BravAttack()
- BravRest()
- end
- end)
- ---runservices
- game:service("RunService").Stepped:connect(function() wait(.5)
- if hand1DeterminationhealthDown == true and hand2PerseverancehealthDown == true and hand3PatiencehealthDown == true and hand4IntegrityhealthDown == true and hand5BraveryhealthDown == true and hand6JusticehealthDown == true and hand7KindnesshealthDown == true then
- char.Humanoid.Health = 0
- end
- if InUse == false then return end
- if JusticeAttack == true then
- if InUse == false then return end
- if InUse == true then
- if JusticeAttackDebounce == true then return end
- if JusticeAttackDebounce == false then
- JusticeAttackDebounce = true
- wait(.2)
- local PewJustice = Instance.new("Part",suit)
- PewJustice.Size = Vector3.new(2,1,4)
- PewJustice.BrickColor = BrickColor.new("New Yeller")
- PewJustice.Position = Justice.Position
- PewJustice.CanCollide = false
- for i = 1,7 do
- local parti = Instance.new("Part",Torso)
- parti.Anchored = true
- parti.TopSurface = 0
- parti.BottomSurface = 0
- parti.CanCollide = false
- parti.Size = Vector3.new(math.random(.5,.5),math.random(.5,.5),math.random(.5,.5))
- parti.CFrame = Justice.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
- parti.Transparency = 0
- parti.BrickColor = BrickColor.new("New Yeller")
- game.Debris:AddItem(parti,1.5)
- local pad = Vector3.new(math.random(-2,2)/100,math.random(-2,2)/100,math.random(-2,2)/100)
- game:service("RunService").Stepped:connect(function()
- parti.Transparency = parti.Transparency + 0.05
- parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad
- end)
- end
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- local handleCFrame = PewJustice.CFrame
- local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
- local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p)
- local laserShotClone = PewJustice:Clone()
- PewJustice:remove()
- laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (PewJustice.Size.Z / 2))
- local bodyVelocity = Instance.new('BodyVelocity')
- bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
- bodyVelocity.Parent = laserShotClone
- bodyVelocity.Name = "Magic"
- bodyVelocity.MaxForce = Vector3.new(1000000,1000000,1000000)
- laserShotClone.Parent = suit
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-3
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- 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)
- coroutine.resume(coroutine.create(function()
- laserShotClone.Magic:remove()
- wait(3)
- laserShotClone:remove()
- end))
- end end laserShotClone.Touched:connect(touch)
- game.Debris:AddItem(laserShotClone,10)
- JusticeAttackDebounce = false
- end
- end
- end
- ----2nd Attack
- if IntegrityAttack == true then
- if InUse == false then return end
- if InUse == true then
- if IntegrityAttackDebounce == true then return end
- if IntegrityAttackDebounce == false then
- IntegrityAttackDebounce = true
- wait(.5)
- for i = 1,2 do wait(1)
- local PewIntegrity = Instance.new("Part",suit)
- PewIntegrity.Size = Vector3.new(5,1,5)
- PewIntegrity.BrickColor = BrickColor.new("Dark blue")
- PewIntegrity.Position = Integrity.Position
- PewIntegrity.CanCollide = false
- PewIntegrity.Transparency = 0.4
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Dark blue"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- local handleCFrame = PewIntegrity.CFrame
- local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
- local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p)
- local laserShotClone = PewIntegrity:Clone()
- PewIntegrity:remove()
- laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (PewIntegrity.Size.Z / 2))
- local bodyVelocity = Instance.new('BodyVelocity')
- bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
- negativevelocity = bodyVelocity.velocity*-1
- bodyVelocity.Parent = laserShotClone
- bodyVelocity.Name = "Magic"
- bodyVelocity.MaxForce = Vector3.new(1000000,1000000,1000000)
- laserShotClone.Parent = suit
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-7
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- 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 laserShotClone.Touched:connect(touch)
- game.Debris:AddItem(laserShotClone,10)
- coroutine.resume(coroutine.create(function()
- for i = 1,25 do wait()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(5,1,5)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Dark blue"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.Transparency = 0.7
- p.CFrame =(laserShotClone.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0.3*i,0))
- game.Debris:AddItem(p,.2)
- end
- bodyVelocity.velocity = negativevelocity
- for i = 1,25 do wait()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(5,1,5)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Dark blue"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.Transparency = 0.7
- game.Debris:AddItem(p,.2)
- p.CFrame =(laserShotClone.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0.3*i,0))
- end
- end))
- end
- wait(1)
- IntegrityAttackDebounce = false
- end
- end
- end
- --3rd AttackPosition
- if PerseveranceAttack == true then
- if InUse == false then return end
- if InUse == true then
- if PerseveranceAttackDebounce == true then return end
- if PerseveranceAttackDebounce == false then
- PerseveranceAttackDebounce = true
- RandomPerseverance = math.random(1,2)
- if RandomPerseverance == 2 then
- local randomnumber = math.random(1,2)
- wait(.3)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Magenta"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,5 do wait()
- p.Size=Vector3.new(0.5*i,0.5*i,0.5*i)
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- local throwbone1 = Instance.new("Part",suit)
- throwbone1.TopSurface = "Smooth"
- throwbone1.BottomSurface = "Smooth"
- throwbone1.Size = Vector3.new(0.2, 0.2, 3)
- throwbone1.CanCollide = true
- throwbone1.BrickColor = BrickColor.new("Magenta")
- throwbone1 .FormFactor = "Custom"
- local Weldbonepart2 = Instance.new("Weld",throwbone1)
- Weldbonepart2.Part0 = throwbone1
- Weldbonepart2.Part1 = Perseverance
- Weldbonepart2.Name = "WBP22"
- local throwbone1weld2 = Instance.new("Part",throwbone1)
- throwbone1weld2.TopSurface = "Smooth"
- throwbone1weld2.BottomSurface = "Smooth"
- throwbone1weld2.Size = Vector3.new(0.4, 0.4, 0.4)
- throwbone1weld2.CanCollide = true
- throwbone1weld2.BrickColor = BrickColor.new("Magenta")
- throwbone1weld2 .FormFactor = "Custom"
- local Weldbonepart2weld2 = Instance.new("Weld",throwbone1)
- Weldbonepart2weld2.Part0 = throwbone1weld2
- Weldbonepart2weld2.Part1 = throwbone1
- Weldbonepart2weld2.Name = "WBP2W2"
- Weldbonepart2weld2.C1 = CFrame.new(0, 0, -1.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local throwbone1weld1 = Instance.new("Part",throwbone1)
- throwbone1weld1.TopSurface = "Smooth"
- throwbone1weld1.BottomSurface = "Smooth"
- throwbone1weld1.Size = Vector3.new(0.4, 0.4, 0.4)
- throwbone1weld1.CanCollide = true
- throwbone1weld1.BrickColor = BrickColor.new("Magenta")
- throwbone1weld1 .FormFactor = "Custom"
- local Weldbonepart2weld1 = Instance.new("Weld",throwbone1)
- Weldbonepart2weld1.Part0 = throwbone1weld1
- Weldbonepart2weld1.Part1 = throwbone1
- Weldbonepart2weld1.Name = "WBP2W1"
- Weldbonepart2weld1.C1 = CFrame.new(0, 0, 1.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- if randomnumber == 1 then
- for i = 1,10 do wait()
- Weldbonepart2.C1 = CFrame.new(-3, 0, 0)*CFrame.fromEulerAnglesXYZ(0.7*i, 0, 0)
- end
- end
- if randomnumber == 2 then
- for i = 1,10 do wait()
- Weldbonepart2.C1 = CFrame.new(3, 0, 0)*CFrame.fromEulerAnglesXYZ(0.7*i, 0, 0)
- end
- end
- local handleCFrame = throwbone1.CFrame
- local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
- local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p)
- local laserShotClone = throwbone1:Clone()
- laserShotClone.WBP22:remove()
- laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (throwbone1.Size.Z / 2))
- local bodyVelocity = Instance.new('BodyVelocity')
- bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
- bodyVelocity.Parent = laserShotClone
- bodyVelocity.Name = "Magic"
- bodyVelocity.MaxForce = Vector3.new(1000000,1000000,1000000)
- laserShotClone.Parent = suit
- throwbone1:remove()
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-5
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- 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)
- coroutine.resume(coroutine.create(function()
- laserShotClone.Magic:remove()
- wait(3)
- laserShotClone:remove()
- end))
- end end laserShotClone.Touched:connect(touch)
- game.Debris:AddItem(laserShotClone,10)
- elseif RandomPerseverance == 1 then
- PlaySound("Gaster", 1, PerseveranceOrb,false)
- wait(1)
- local ray = Ray.new(PerseveranceOrb.CFrame.p, (mouse.Hit.p - PerseveranceOrb.CFrame.p).unit*1000)
- local hit, position = game.Workspace:FindPartOnRay(ray, char)
- local ray = Ray.new(PerseveranceOrb.CFrame.p, (mouse.Hit.p -PerseveranceOrb.CFrame.p).unit*300)
- local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
- local distance = (position - PerseveranceOrb.CFrame.p).magnitude
- local rp=Instance.new("Part",workspace)
- rp.Anchored=true
- rp.TopSurface="Smooth"
- rp.BottomSurface="Smooth"
- rp.Transparency=0
- rp.BrickColor=BrickColor.new("Bright purple")
- rp.FormFactor="Custom"
- rp.CanCollide=false
- rp.Size=Vector3.new(0.8,0.1,distance)
- rp.Material = "Neon"
- rp.CFrame=CFrame.new(position, PerseveranceOrb.CFrame.p) * CFrame.new(0, 0, -distance/2)
- local cy=Instance.new("BlockMesh",rp)
- coroutine.resume(coroutine.create(function()
- wait(1)
- for i=1,10 do
- wait()
- rp.Transparency=rp.Transparency + 0.1
- end
- rp:remove()
- end))
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-20
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- 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 rp.Touched:connect(touch)
- end
- RandomPerseverance = 0
- PerseveranceAttackDebounce = false
- end
- end
- end
- if KindAttack == true then
- if InUse == false then return end
- if InUse == true then
- if KindnessAttackDebounce == true then return end
- if KindnessAttackDebounce == false then
- KindnessAttackDebounce = true
- local ray = Ray.new(Kindness.CFrame.p, (mouse.Hit.p -Kindness.CFrame.p).unit*300)
- local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
- local distance = (position - Kindness.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, Kindness.CFrame.p) * CFrame.new(0, 0, -distance/2)
- local cy=Instance.new("BlockMesh",rp)
- rp:Destroy()
- local ps = Instance.new("Part", suit)
- ps.Name = "MagicPart"
- ps.TopSurface = "Smooth"
- ps.BottomSurface = "Smooth"
- ps.BrickColor = BrickColor.new("Toothpaste")
- ps.FormFactor = "Custom"
- ps.Transparency = 1
- ps.Size = Vector3.new(.2, 3, 3)
- ps.Anchored = true
- ps.CanCollide = false
- ps.CFrame = CFrame.new(position)*CFrame.new(0,3,0)
- local cy=Instance.new("SpecialMesh",ps)
- cy.MeshType = "Cylinder"
- coroutine.resume(coroutine.create(function()
- local SpawnSounds = {
- Spike = Instance.new("Sound")
- }
- SpawnSounds["Spike"].SoundId = "http://www.roblox.com/asset?id=486286230"
- SpawnSounds["Spike"].Volume = 0.5
- function PlaySpawnSound(soundname, pitch)
- SpawnSounds[soundname].Parent = ps
- SpawnSounds[soundname].Pitch = pitch
- SpawnSounds[soundname]:Play()
- local oldsound = SpawnSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- SpawnSounds[soundname] = SpawnSounds[soundname]:clone()
- end
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Lime green"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- PlaySpawnSound("Spike", 1)
- wait(0.5)
- end))
- local Shield6= Instance.new("Part",hand7Kindness)
- Shield6.TopSurface = "Smooth"
- Shield6.BottomSurface = "Smooth"
- Shield6.Size = Vector3.new(18, 3, 18)
- Shield6.CanCollide = true
- Shield6.Anchored =true
- Shield6.BrickColor = BrickColor.new("Institutional white")
- Shield6 .FormFactor = "Custom"
- Shield6.Transparency = 0.7
- Shield6.CFrame= ps.CFrame*CFrame.new(0,10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local Shield5= Instance.new("Part",hand7Kindness)
- Shield5.TopSurface = "Smooth"
- Shield5.BottomSurface = "Smooth"
- Shield5.Size = Vector3.new(18, 3, 18)
- Shield5.CanCollide = true
- Shield5.Anchored =true
- Shield5.BrickColor = BrickColor.new("Institutional white")
- Shield5 .FormFactor = "Custom"
- Shield5.Transparency = 0.7
- Shield5.CFrame= ps.CFrame*CFrame.new(0,-10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local Shield4= Instance.new("Part",hand7Kindness)
- Shield4.TopSurface = "Smooth"
- Shield4.BottomSurface = "Smooth"
- Shield4.Size = Vector3.new(3, 18, 18)
- Shield4.CanCollide = true
- Shield4.Anchored =true
- Shield4.BrickColor = BrickColor.new("Institutional white")
- Shield4 .FormFactor = "Custom"
- Shield4.Transparency = 0.7
- Shield4.CFrame= ps.CFrame*CFrame.new(-10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local Shield3= Instance.new("Part",hand7Kindness)
- Shield3.TopSurface = "Smooth"
- Shield3.BottomSurface = "Smooth"
- Shield3.Size = Vector3.new(3, 18, 18)
- Shield3.CanCollide = true
- Shield3.Anchored =true
- Shield3.BrickColor = BrickColor.new("Institutional white")
- Shield3 .FormFactor = "Custom"
- Shield3.Transparency = 0.7
- Shield3.CFrame= ps.CFrame*CFrame.new(10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local Shield2= Instance.new("Part",hand7Kindness)
- Shield2.TopSurface = "Smooth"
- Shield2.BottomSurface = "Smooth"
- Shield2.Size = Vector3.new(18, 18, 3)
- Shield2.CanCollide = true
- Shield2.Anchored =true
- Shield2.BrickColor = BrickColor.new("Institutional white")
- Shield2 .FormFactor = "Custom"
- Shield2.Transparency = 0.7
- Shield2.CFrame= ps.CFrame*CFrame.new(0,0,-10)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local Shield1= Instance.new("Part",hand7Kindness)
- Shield1.TopSurface = "Smooth"
- Shield1.BottomSurface = "Smooth"
- Shield1.Size = Vector3.new(18, 18, 3)
- Shield1.CanCollide = true
- Shield1.Anchored =true
- Shield1.BrickColor = BrickColor.new("Institutional white")
- Shield1 .FormFactor = "Custom"
- Shield1.Transparency = 0.7
- Shield1.CFrame= ps.CFrame*CFrame.new(0,0,10)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- for i = 1,7 do
- local parti = Instance.new("Part",Torso)
- parti.Anchored = true
- parti.TopSurface = 0
- parti.BottomSurface = 0
- parti.CanCollide = false
- parti.Size = Vector3.new(math.random(1,1),math.random(1,1),math.random(1,1))
- parti.CFrame = ps.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- parti.Transparency = 0
- parti.BrickColor = BrickColor.new("Institutional white")
- game.Debris:AddItem(parti,1.5)
- local pad = Vector3.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
- game:service("RunService").Stepped:connect(function()
- parti.Transparency = parti.Transparency + 0.05
- parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad
- end)
- end
- wait(3)
- function squeeze(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-50
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- 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
- Shield6.Touched:connect(squeeze)
- Shield5.Touched:connect(squeeze)
- Shield4.Touched:connect(squeeze)
- Shield3.Touched:connect(squeeze)
- Shield2.Touched:connect(squeeze)
- Shield1.Touched:connect(squeeze)
- for i = 1,30 do wait()
- Shield6.CFrame= clerp(Shield6.CFrame*CFrame.new(0,-.01*i,0),ps.CFrame,.1)
- Shield5.CFrame= clerp(Shield5.CFrame*CFrame.new(0,.01*i,0),ps.CFrame,.1)
- Shield4.CFrame= clerp(Shield4.CFrame*CFrame.new(.01*i,0,0),ps.CFrame,.1)
- Shield3.CFrame= clerp(Shield3.CFrame*CFrame.new(-.01*i,0,0),ps.CFrame,.1)
- Shield2.CFrame= clerp(Shield2.CFrame*CFrame.new(0,0,.01*i),ps.CFrame,.1)
- Shield1.CFrame= clerp(Shield1.CFrame*CFrame.new(0,0,-.01*i),ps.CFrame,.1)
- end
- for i = 1,30 do wait()
- Shield6.CFrame= clerp(Shield6.CFrame*CFrame.new(0,-.01*i,0),ps.CFrame,.1)
- Shield5.CFrame= clerp(Shield5.CFrame*CFrame.new(0,.01*i,0),ps.CFrame,.1)
- Shield4.CFrame= clerp(Shield4.CFrame*CFrame.new(.01*i,0,0),ps.CFrame,.1)
- Shield3.CFrame= clerp(Shield3.CFrame*CFrame.new(-.01*i,0,0),ps.CFrame,.1)
- Shield2.CFrame= clerp(Shield2.CFrame*CFrame.new(0,0,.01*i),ps.CFrame,.1)
- Shield1.CFrame= clerp(Shield1.CFrame*CFrame.new(0,0,-.01*i),ps.CFrame,.1)
- end
- ps:remove()
- wait(3)
- Shield1:Remove()
- Shield2:Remove()
- Shield3:Remove()
- Shield4:Remove()
- Shield5:Remove()
- Shield6:Remove()
- KindnessAttackDebounce = false
- end
- end
- end
- ---5th attack---
- if DeterminationAttack == true then
- if InUse == false then return end
- if InUse == true then
- if DetermiantionAttackDebounce == true then return end
- if DetermiantionAttackDebounce == false then
- DetermiantionAttackDebounce = true
- for i = 1,3 do
- local head = Instance.new("Part",char)
- head.Size = Vector3.new(18,.2,18)
- head.CanCollide = false
- head.Anchored = true
- head.CFrame = CFrame.new(char.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p)
- head.Transparency = 1
- for i = 1,2 do
- decal = Instance.new("Decal",head)
- decal.Texture = "rbxassetid://93777070"
- if i == 1 then
- decal.Face = Enum.NormalId.Top
- else
- decal.Face = Enum.NormalId.Bottom
- end
- end
- local bg = Instance.new("BodyGyro")
- bg.Parent = head
- bg.maxTorque = Vector3.new(0,0,0)
- bg.maxTorque = Vector3.new(0,0,0)
- RandomGasterRotaion = math.random(-10,10)
- for i = 1,5 do wait()
- print ' test'
- head.CFrame = clerp(head.CFrame*CFrame.new(RandomGasterRotaion,1*i,1*i),head.CFrame,.1)
- end
- RandomGasterRotaion = 0
- local ray = Ray.new(head.CFrame.p, (mouse.Hit.p - head.CFrame.p).unit*1000)
- local hit, position = game.Workspace:FindPartOnRay(ray, char)
- local ray = Ray.new(head.CFrame.p, (mouse.Hit.p -head.CFrame.p).unit*300)
- local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
- local distance = (position - head.CFrame.p).magnitude
- local rp=Instance.new("Part",workspace)
- rp.Anchored=true
- rp.TopSurface="Smooth"
- rp.BottomSurface="Smooth"
- rp.Transparency=0
- rp.BrickColor=BrickColor.new("Institutional white")
- rp.FormFactor="Custom"
- rp.CanCollide=false
- rp.Size=Vector3.new(10,0,distance)
- rp.Material = "Neon"
- rp.CFrame=CFrame.new(position, head.CFrame.p) * CFrame.new(0, 0, -distance/2)
- local cy=Instance.new("BlockMesh",rp)
- head.CFrame = CFrame.new(head.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p)
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-7
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- 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 rp.Touched:connect(touch)
- coroutine.resume(coroutine.create(function()
- PlaySound("Gaster", 1, head,false)
- for i=1,10 do
- wait()
- cy.Scale=cy.Scale+Vector3.new(0,0,.01*i)
- head.CFrame = head.CFrame*CFrame.new(0,0,1*i)*CFrame.Angles(0,0,0)
- end
- for i=1,10 do wait()
- decal.Transparency = decal.Transparency + 0.1
- rp.Transparency = rp.Transparency + 0.1
- end
- wait(1)
- head:Destroy()
- rp:Destroy()
- end))
- end
- wait(0.1)
- DetermiantionAttackDebounce = false
- end
- end
- end
- if PatienceAttack == true then
- if InUse == false then return end
- if InUse == true then
- if PatienceAttackDebounce == true then return end
- if PatienceAttackDebounce == false then
- PatienceAttackDebounce = true
- local ray = Ray.new(PatienceOrb.CFrame.p, (mouse.Hit.p - PatienceOrb.CFrame.p).unit*1000)
- local hit, position = game.Workspace:FindPartOnRay(ray, char)
- local ray = Ray.new(PatienceOrb.CFrame.p, (mouse.Hit.p -PatienceOrb.CFrame.p).unit*300)
- local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
- local distance = (position - PatienceOrb.CFrame.p).magnitude
- local rp=Instance.new("Part",workspace)
- rp.Anchored=true
- rp.TopSurface="Smooth"
- rp.BottomSurface="Smooth"
- rp.Transparency=0
- rp.BrickColor=BrickColor.new("Cyan")
- rp.FormFactor="Custom"
- rp.CanCollide=false
- rp.Size=Vector3.new(0.5,0.5,distance)
- rp.Material = "Neon"
- rp.CFrame=CFrame.new(position, PatienceOrb.CFrame.p) * CFrame.new(0, 0, -distance/2)
- local cy=Instance.new("BlockMesh",rp)
- coroutine.resume(coroutine.create(function()
- for i=1,13 do
- wait()
- cy.Scale=cy.Scale-Vector3.new(.01*i,.01*i,0)
- end
- end))
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-7
- local hittorso = hit.Parent.Torso
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- 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 Tied = Instance.new("Part",hittorso)
- Tied.Size = Vector3.new(4,2,1.5)
- Tied.Name = "Rope"
- Tied.CanCollide = false
- Tied.Transparency = 0.1
- Tied.BrickColor = BrickColor.new("Cyan")
- Tied.CFrame = hittorso.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local Weld = Instance.new("Weld",hittorso)
- Weld.Part0 = hittorso
- Weld.Part1 = Tied
- Weld.C1 = hittorso.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- hit.Parent.Torso.Anchored = true
- hit.Parent["Left Arm"].Anchored = true
- hit.Parent["Right Arm"].Anchored = true
- wait(3)
- for i = 1,10 do wait(.1)
- Tied.Transparency = Tied.Transparency + 0.1
- end
- hit.Parent.Torso.Anchored = false
- hit.Parent["Left Arm"].Anchored = false
- hit.Parent["Right Arm"].Anchored = false
- end end rp.Touched:connect(touch)
- coroutine.resume(coroutine.create(function()
- wait(1)
- rp:Destroy()
- end))
- end
- wait(1)
- PatienceAttackDebounce = false
- end
- end
- if BraveryAttack == true then
- if InUse == false then return end
- if InUse == true then
- if BraveryAttackDebounce == true then return end
- if BraveryAttackDebounce == false then
- BraveryAttackDebounce = true
- local ray = Ray.new(Bravery.CFrame.p, (mouse.Hit.p -Bravery.CFrame.p).unit*300)
- local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
- local distance = (position - Bravery.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, Kindness.CFrame.p) * CFrame.new(0, 0, -distance/2)
- local cy=Instance.new("BlockMesh",rp)
- rp:Destroy()
- local ps = Instance.new("Part", suit)
- ps.Name = "MagicPart"
- ps.TopSurface = "Smooth"
- ps.BottomSurface = "Smooth"
- ps.BrickColor = BrickColor.new("Toothpaste")
- ps.FormFactor = "Custom"
- ps.Transparency = 1
- ps.Size = Vector3.new(.5, .5, .5)
- ps.Anchored = true
- ps.CanCollide = false
- ps.CFrame = CFrame.new(position)*CFrame.new(0,3,0)
- local cy=Instance.new("SpecialMesh",ps)
- cy.MeshType = "Cylinder"
- for i =1,5 do
- coroutine.resume(coroutine.create(function()
- coroutine.resume(coroutine.create(function()
- local SpawnSounds = {
- Spike = Instance.new("Sound")
- }
- SpawnSounds["Spike"].SoundId = "http://www.roblox.com/asset?id=486286230"
- SpawnSounds["Spike"].Volume = 0.1
- function PlaySpawnSound(soundname, pitch)
- SpawnSounds[soundname].Parent = ps
- SpawnSounds[soundname].Pitch = pitch
- SpawnSounds[soundname]:Play()
- local oldsound = SpawnSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- SpawnSounds[soundname] = SpawnSounds[soundname]:clone()
- end
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.3,0.3,0.3)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Deep orange"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.3*i,0.3*i,0.3*i)
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- PlaySpawnSound("Spike", 1)
- wait(0.5)
- end))
- xmathrandom = math.random(-10,10)
- ymathrandom = math.random(2,10)
- zmathrandom = math.random(-10,10)
- local Bomb= Instance.new("Part",hand5Bravery)
- Bomb.TopSurface = "Smooth"
- Bomb.BottomSurface = "Smooth"
- Bomb.Size = Vector3.new(0.1,0.1,0.1)
- Bomb.CanCollide = true
- Bomb.Anchored =true
- Bomb.BrickColor = BrickColor.new("Mid gray")
- Bomb .Shape = "Ball"
- Bomb .Material= "Neon"
- Bomb.Transparency = 0
- Bomb.CFrame= ps.CFrame*CFrame.new(xmathrandom,ymathrandom ,zmathrandom )*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- xmathrandom = 0
- ymathrandom = 0
- zmathrandom = 0
- wait(1)
- Bomb.BrickColor = BrickColor.new("Deep orange")
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.1,0.1,0.1)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Deep orange"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Bomb.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,2 do wait()
- p.Size=Vector3.new(0.1*i,0.1*i,0.1*i)
- p.CFrame =(Bomb.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- wait(1)
- local explosion = Instance.new("Part",workspace)
- explosion.FormFactor="Custom"
- explosion.Size=Vector3.new(0.8,0.8,0.8)
- explosion.TopSurface = 0
- explosion.BottomSurface = 0
- local colorc = {"Deep orange"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- explosion.BrickColor = Fire
- explosion.CanCollide=false
- explosion.Anchored=true
- explosion.CFrame =(Bomb.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- PlaySound("Explode", 1, explosion, false)
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-50
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- 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
- explosion.Touched:connect(touch)
- coroutine.resume(coroutine.create(function()
- for i = 1,10 do wait()
- explosion.Position =Bomb.Position
- explosion.CFrame =Bomb.CFrame
- explosion.Size=Vector3.new(3*i,3*i,3*i)
- explosion.Position =Bomb.Position
- explosion.CFrame =Bomb.CFrame
- explosion.Transparency=explosion.Transparency + 0.1
- explosion.Position =Bomb.Position
- explosion.CFrame =Bomb.CFrame
- end
- explosion:remove()
- Bomb:remove()
- end))
- ps:remove()
- end))
- end
- wait(2)
- BraveryAttackDebounce = false
- end
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand1Determinationhealth.Health == 0 then
- if hand1DeterminationhealthDown == false then
- hand1DeterminationhealthDown = true
- Determination:remove()
- DeterminationAttack = false
- DetermiantionAttackDebounce = false
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand2Perseverancehealth.Health == 0 then
- if hand2PerseverancehealthDown == false then
- hand2PerseverancehealthDown = true
- Perseverance:remove()
- PerseveranceAttack = false
- PerseveranceAttackDebounce = false
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand3Patiencehealth.Health == 0 then
- if hand3PatiencehealthDown == false then
- hand3PatiencehealthDown = true
- Patience:remove()
- PatienceAttack = false
- PatienceAttackDebounce = false
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand4Integrityhealth.Health == 0 then
- if hand4IntegrityhealthDown == false then
- hand4IntegrityhealthDown = true
- Integrity:remove()
- IntegrityAttack = false
- IntegrityAttackDebounce = false
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand5Braveryhealth.Health == 0 then
- if hand5BraveryhealthDown == false then
- hand5BraveryhealthDown = true
- Bravery:remove()
- BraveryAttack = false
- BraveryAttackDebounce = false
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand6Justicehealth.Health == 0 then
- if hand6JusticehealthDown == false then
- hand6JusticehealthDown = true
- Justice:remove()
- JusticeAttack = false
- JusticeAttackDebounce = false
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand7Kindnesshealth.Health == 0 then
- if hand7KindnesshealthDown == false then
- hand7KindnesshealthDown = true
- Kindness:remove()
- KindnessAttack = false
- KindnessAttackDebounce = false
- if ShieldValueToGasterDebounce == false then
- ShieldValueToGasterDebounce = true
- for i = 1,3 do wait()
- shieldparent6.Transparency =shieldparent6.Transparency + 0.1
- shieldparent5.Transparency =shieldparent5.Transparency + 0.1
- shieldparent4.Transparency =shieldparent4.Transparency + 0.1
- shieldparent3.Transparency =shieldparent3.Transparency + 0.1
- shieldparent2.Transparency =shieldparent2.Transparency + 0.1
- shieldparent1.Transparency =shieldparent1.Transparency + 0.1
- end
- shieldparent6:remove()
- shieldparent5:remove()
- shieldparent4:remove()
- shieldparent3:remove()
- shieldparent2:remove()
- shieldparent1:remove()
- shieldparent1=nil
- shieldparent2=nil
- shieldparent3=nil
- shieldparent4=nil
- shieldparent5=nil
- shieldparent6=nil
- end
- end
- end
- end)
- char.Humanoid.MaxHealth = 777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
- wait()
- char.Humanoid.Health = 777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777777
- --:V
- p = game:GetService('Players').LocalPlayer if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end
- --fixed by Scenius
- plr = game.Players.LocalPlayer
- repeat
- wait(0.4)
- until plr.Character
- chr = plr.Character
- human = chr:FindFirstChild("Humanoid")
- mouse = plr:GetMouse()
- selected = false
- equipd = false
- tors = chr.Torso
- rarm = chr["Right Arm"]
- larm = chr["Left Arm"]
- rleg = chr["Right Leg"]
- lleg = chr["Left Leg"]
- hrp = chr.HumanoidRootPart
- head = chr.Head
- anim = human.Animator
- activu = false
- Heartbeat = Instance.new("BindableEvent")
- Heartbeat.Name = "Heartbeat"
- Heartbeat.Parent = script
- frame = 0.03333333333333333
- tf = 0
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- for i = 1, math.floor(tf / frame) do
- Heartbeat:Fire()
- end
- tf = tf - frame * math.floor(tf / frame)
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- Heartbeat.Event:wait()
- else
- for i = 1, num do
- Heartbeat.Event:wait()
- end
- end
- end
- tool = Instance.new("Tool")
- tool.CanBeDropped = false
- tool.RequiresHandle = false
- tool.Name = "Ultra gaster power"
- tool.Parent = plr.Backpack
- RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
- NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
- RS = tors:FindFirstChild("Right Shoulder")
- LS = tors:FindFirstChild("Left Shoulder")
- RH = tors:FindFirstChild("Right Hip")
- LH = tors:FindFirstChild("Left Hip")
- RJ = hrp:FindFirstChild("RootJoint")
- N = tors:FindFirstChild("Neck")
- cf = CFrame.new
- ang = CFrame.Angles
- rd = math.rad
- rd2 = math.random
- function nooutline(p)
- p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10
- end
- function makepart(color, name, reflec, mater, parnt, cfram)
- local port = Instance.new("Part")
- port.BrickColor = BrickColor.new(color)
- port.Name = name
- nooutline(port)
- port.Reflectance = reflec
- port.Material = mater
- port.Anchored = false
- port.CanCollide = false
- port.Locked = true
- port.Size = Vector3.new(0.2, 0.2, 0.2)
- port.Parent = parnt
- return port
- end
- function makemesh(meshtype, scale, meshid, parent)
- local mes = Instance.new("SpecialMesh")
- mes.MeshType = meshtype
- mes.Scale = scale
- if meshtype == "FileMesh" then
- mes.MeshId = meshid
- end
- mes.Parent = parent
- return mes
- end
- function makeweld(parent, p0, p1, c0, c1)
- local wel = Instance.new("Weld")
- wel.Part0 = p0
- wel.Part1 = p1
- wel.C0 = c0
- if c1 ~= nil then
- wel.C1 = c1
- end
- wel.Parent = parent
- return wel
- end
- function smokz(prnt)
- s = Instance.new("Smoke")
- s.Color = Color3.new(1, 1, 1)
- s.Enabled = false
- s.Name = "smok"
- s.Opacity = 0.5
- s.RiseVelocity = 0.2
- s.Size = 0.1
- s.Parent = prnt
- end
- function glow(tz, paz, smokinz, length)
- if tz.Parent:FindFirstChildOfClass("Humanoid") and paz.Transparency == 1 then
- do
- local s = Instance.new("Sound")
- s.SoundId = "rbxassetid://298181829"
- s.Volume = 0.25
- s.Pitch = math.random(9, 11) / 10
- s.Parent = paz
- s:Play()
- paz.Transparency = 0.7
- if smokinz == true then
- paz.smok.Enabled = true
- end
- delay(length, function()
- paz.Transparency = 1
- paz.smok.Enabled = false
- s:Destroy()
- end)
- end
- end
- end
- function makeglow()
- for _, p in pairs(chr:GetChildren()) do
- if p.ClassName == "Accessory" then
- do
- local h = p:FindFirstChildOfClass("Part")
- local nh = h:Clone()
- nh.Parent = nil
- nh.CFrame = h.CFrame
- nh.Transparency = 1
- nh.Name = "Glow"
- nh.Material = "Neon"
- nh.BrickColor = BrickColor.new("Dark stone grey")
- nh.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5)
- nh.Parent = h
- makeweld(nh, nh, h, cf(0, 0, 0))
- local m = nh:FindFirstChildOfClass("SpecialMesh")
- m.Scale = m.Scale + Vector3.new(0.06, 0.06, 0.06)
- m.TextureId = ""
- smokz(nh)
- nh.Touched:connect(function(po)
- glow(po, nh, true, 0.8)
- end)
- end
- elseif p.ClassName == "Part" and p ~= hrp then
- do
- local n = p:Clone()
- n.Parent = nil
- n.Transparency = 1
- n.Material = "Neon"
- n.Name = "Glow"
- n.BrickColor = BrickColor.new("Dark stone grey")
- n.CFrame = p.CFrame
- n.CustomPhysicalProperties = PhysicalProperties.new(0.2, 0.3, 0.5)
- n.Parent = p
- makeweld(n, n, p, cf(0, 0, 0))
- smokz(n)
- n.Touched:connect(function(po)
- glow(po, n, true, 0.8)
- end)
- if n:FindFirstChildOfClass("Decal") then
- n:FindFirstChildOfClass("Decal"):Destroy()
- end
- if p:FindFirstChildOfClass("SpecialMesh") then
- local c = p:FindFirstChildOfClass("SpecialMesh"):Clone()
- c.Parent = nil
- c.Scale = c.Scale + Vector3.new(0.05, 0.05, 0.05)
- c.Parent = n
- else
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(1.05, 1.025, 1.05)
- if p == tors then
- m.Scale = Vector3.new(1.05, 1.05, 1.05)
- end
- m.Parent = n
- end
- end
- end
- end
- end
- makeglow()
- function fglow(glopart, duration)
- for _ = 1, 4 do
- swait()
- glopart.Transparency = glopart.Transparency - 0.075
- end
- delay(duration, function()
- for _ = 1, 4 do
- swait()
- glopart.Transparency = glopart.Transparency + 0.075
- end
- end)
- end
- function lerpz(joint, prop, cfrmz, alp)
- joint[prop] = joint[prop]:lerp(cfrmz, alp)
- end
- function resetlerp()
- RJ.C0 = RJC0
- RJ.C1 = RJC1
- N.C0 = NC0
- N.C1 = NC1
- RS.C0 = RSC0
- RS.C1 = RSC1
- LS.C0 = LSC0
- LS.C1 = LSC1
- RH.C0 = RHC0
- RH.C1 = RHC1
- LH.C0 = LHC0
- end
- function RFistDamage()
- end
- function rsmash()
- if activu == true or selected == false then
- return
- end
- coroutine.resume(coroutine.create(function()
- fglow(rarm.Glow, 3)
- end))
- activu = true
- human.WalkSpeed = human.WalkSpeed - 13
- animo(false)
- local Mus = Instance.new("Sound",workspace)
- Mus.SoundId = "rbxassetid://449025737"
- Mus.Pitch = 1
- Mus.Volume = 90000
- Mus.Looped = false
- wait(0.3)
- Mus:Play()
- local pe = Instance.new("ParticleEmitter")
- pe.Color = ColorSequence.new(Color3.new(255, 255, 255))
- pe.LightEmission = 0.9
- pe.Size = NumberSequence.new(0.5)
- pe.Texture = "rbxassetid://1442994836"
- pe.Transparency = NumberSequence.new(0.1)
- pe.Lifetime = NumberRange.new(0.1)
- pe.Rate = 1
- pe.RotSpeed = NumberRange.new(360)
- pe.Speed = NumberRange.new(3)
- pe.VelocitySpread = 360
- pe.Parent = rarm.Glow
- local pe2 = Instance.new("ParticleEmitter")
- pe2.Color = ColorSequence.new(Color3.new(255, 255, 255))
- pe2.LightEmission = 0.9
- pe2.Size = NumberSequence.new(5)
- pe2.Texture = "rbxassetid://1442994836"
- pe2.Transparency = NumberSequence.new(0.4)
- pe2.ZOffset = 2
- pe2.Enabled = false
- pe2.LockedToPart = true
- pe2.Lifetime = NumberRange.new(0.07)
- pe2.Rate = 8
- pe2.Rotation = NumberRange.new(0, 360)
- pe2.RotSpeed = NumberRange.new(0)
- pe2.Speed = NumberRange.new(0)
- pe2.VelocitySpread = 180
- pe2.Parent = rarm.Glow
- for _ = 1, 45 do
- swait()
- lerpz(RJ, "C0", RJC0 * cf(0, 0.8, -0.2) * ang(rd(10), rd(0), rd(-70)), 0.2)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(6), rd(2), rd(68)), 0.2)
- lerpz(RS, "C0", RSC0 * cf(rd2(-1, 1) / 10, rd2(-1, 1) / 10, rd2(-1, 1) / 10) * ang(rd(rd2(25, 35)), rd(rd2(-15, -5)), rd(rd2(80, 90))), 0.2)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
- lerpz(LS, "C0", LSC0 * cf(-0.15, -0.4, 0.5) * ang(rd(-10), rd(60), rd(-86)), 0.2)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(80), rd(0)), 0.2)
- lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-29), rd(-2)), 0.2)
- lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
- lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
- pe.Rate = pe.Rate + 25
- end
- pe2.Enabled = true
- pe.Speed = NumberRange.new(10)
- for _ = 1, 30 do
- swait()
- lerpz(RJ, "C0", RJC0 * cf(0, 1.2, -0.2) * ang(rd(5), rd(6), rd(-109)), 0.2)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-2), rd(-6), rd(96)), 0.2)
- lerpz(RS, "C0", RSC0 * cf(rd2(-1, 1) / 10, rd2(-1, 1) / 10, rd2(-1, 1) / 10) * ang(rd(rd2(10, 20)), rd(rd2(-25, -15)), rd(rd2(100, 110))), 0.2)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-46)), 0.2)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.2)
- lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.2)
- lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.2)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.2)
- end
- for l = 1, 3 do
- swait()
- lerpz(RJ, "C0", RJC0 * cf(0.4, -1.6, -0.2) * ang(rd(5), rd(6), rd(60)), 0.3 + l / 4)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-4), rd(-35)), 0.3 + l / 4)
- lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(-58), rd(95)), 0.3 + l / 4)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.3 + l / 4)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-66)), 0.3 + l / 4)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.3 + l / 4)
- lerpz(RH, "C0", RHC0 * cf(0, 0.1, 0) * ang(rd(-6), rd(-39), rd(-2)), 0.3 + l / 4)
- lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-10)), 0.3 + l / 4)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.3 + l / 4)
- end
- pe:Destroy()
- pe2:Destroy()
- KABOOMZ()
- rarm.Glow.smok.Enabled = true
- for _ = 1, 8 do
- swait()
- lerpz(RJ, "C0", RJC0 * cf(1.5, -1.6, -0.7) * ang(rd(5), rd(18), rd(95)), 0.8)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(14), rd(-10), rd(-15)), 0.8)
- lerpz(RS, "C0", RSC0 * cf(0.3, -0.4, 0.55) * ang(rd(0), rd(40), rd(65)), 0.8)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(-80), rd(0)), 0.8)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-10), rd(60), rd(-86)), 0.8)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(30), rd(0)), 0.8)
- lerpz(RH, "C0", RHC0 * cf(0, 0.7, 0) * ang(rd(-6), rd(-39), rd(24)), 0.8)
- lerpz(LH, "C0", LHC0 * cf(0.4, 0.2, -0.2) * ang(rd(-6), rd(80), rd(-20)), 0.8)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(25), rd(0), rd(0)), 0.8)
- end
- wait(1.5)
- animo(true)
- human.WalkSpeed = human.WalkSpeed + 53
- for _ = 1, 24 do
- swait()
- lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
- lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
- lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
- lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.2)
- end
- resetlerp()
- rarm.Glow.smok.Enabled = false
- activu = false
- end
- local debris=game:service"Debris"
- vt = Vector3.new
- bc = BrickColor.new
- function Ring()
- local effspwn = Instance.new("Part")
- local model = Instance.new("Model")
- game.Debris:AddItem(model, 20)
- model.Name = "smasheffects"
- model.Parent = workspace
- effspwn.Name = "spwnr"
- effspwn.Size = Vector3.new(1, 1, 1)
- effspwn.Anchored = true
- effspwn.CanCollide = false
- effspwn.Transparency = 1
- effspwn.CFrame = hrp.CFrame * CFrame.Angles(math.rad(180), 0, 0)
- effspwn.Parent = model
- for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(10000020,10000030))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 200
- end
- end
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "wring1"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://1323306"
- mesh.Scale = Vector3.new(0.1, 0.1, 0.05)
- mesh.Parent = shok
- for e = 1, 30 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
- end
- for e = 1, 38 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
- end
- for e = 1, 24 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1)
- shok.Transparency = shok.Transparency + 0.03
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "wring2"
- shok.BrickColor = BrickColor.new("Institutional white")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://1323306"
- mesh.Scale = Vector3.new(12, 12, 0.05)
- mesh.Parent = shok
- for e = 1, 30 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
- end
- for e = 1, 38 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
- end
- for e = 1, 24 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1)
- shok.Transparency = shok.Transparency + 0.03
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shokwve"
- shok.BrickColor = BrickColor.new("Institutional white")
- shok.Position = effspwn.Position + Vector3.new(0, 5, 0)
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.6
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(1, 1, 1)
- mesh.Parent = shok
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2)
- shok.Transparency = shok.Transparency + 0.002
- end
- for e = 1, 32 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5)
- shok.Transparency = shok.Transparency + 0.002
- end
- for e = 1, 24 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5)
- shok.Transparency = shok.Transparency + 0.03
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shock2"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.35
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(12, 12, 12)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shock3"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.35
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(12, 12, 12)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- end))
- end
- function Landing()
- ROW = function(out, trans, s, wt, t, ang, plus)
- for i = 1, 360, 360/t do
- local c = Instance.new("Part", game.Workspace)
- c.FormFactor = 3
- c.TopSurface = 0
- c.BottomSurface = 0
- c.Size = s
- c.Anchored = true
- c.CanCollide = wt
- c.Material=workspace.Base.Material
- c.Transparency = trans
- c.BrickColor = workspace.Base.BrickColor
- c.CFrame = CFrame.new(tors.CFrame.x,0,tors.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang
- c.Locked=true
- game.Debris:AddItem(c,15)
- end
- end
- ROW(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0)
- Ring()
- end
- function newRay(start,face,range,wat)
- local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
- hit,pos=game.Workspace:FindPartOnRayWithIgnoreList(rey,wat)
- return rey,hit,pos
- end
- function jum()
- if activu == true or selected == false then
- return
- end
- coroutine.resume(coroutine.create(function()
- fglow(rleg.Glow, 1)
- fglow(lleg.Glow, 1)
- end))
- activu = true
- human.WalkSpeed = human.WalkSpeed - 13
- local pe = Instance.new("ParticleEmitter")
- pe.Color = ColorSequence.new(Color3.new(255, 255, 225))
- pe.LightEmission = 0.9
- pe.Size = NumberSequence.new(0.5)
- pe.Texture = "rbxassetid://1442994836"
- pe.Transparency = NumberSequence.new(0.1)
- pe.Lifetime = NumberRange.new(0.1)
- pe.Rate = 250
- pe.RotSpeed = NumberRange.new(360)
- pe.Speed = NumberRange.new(3)
- pe.VelocitySpread = 360
- pe.Parent = rleg.Glow
- local pea = pe:Clone()
- pea.Parent = lleg.Glow
- local pe2 = Instance.new("ParticleEmitter")
- pe2.Color = ColorSequence.new(Color3.new(255, 255, 225))
- pe2.LightEmission = 0.9
- pe2.Size = NumberSequence.new(5)
- pe2.Texture = "rbxassetid://1442994836"
- pe2.Transparency = NumberSequence.new(0.4)
- pe2.ZOffset = 2
- pe2.Enabled = true
- pe2.LockedToPart = true
- pe2.Lifetime = NumberRange.new(0.07)
- pe2.Rate = 8
- pe2.Rotation = NumberRange.new(0, 360)
- pe2.RotSpeed = NumberRange.new(0)
- pe2.Speed = NumberRange.new(0)
- pe2.VelocitySpread = 180
- pe2.Parent = lleg.Glow
- local pea2 = pe2:Clone()
- pea2.Parent = rleg.Glow
- for l = 1, 30 do
- swait()
- lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40)
- lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- end
- pe:Destroy()
- pe2:Destroy()
- pea:Destroy()
- pea2:Destroy()
- human.WalkSpeed = 50
- BV = Instance.new("BodyVelocity", tors)
- BV.maxForce = Vector3.new(0,100000,0)
- BV.P = 100000
- BV.velocity = Vector3.new(0,800,0)
- KABOOMZ2()
- coroutine.resume(coroutine.create(function()
- swait(3)
- BV:Destroy()
- end))
- for _ = 1, 18 do
- swait()
- lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(-3), rd(0), rd(0)), 0.6)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(-12), rd(0), rd(0)), 0.6)
- lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-9), rd(-9), rd(-15)), 0.6)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-9), rd(9), rd(15)), 0.6)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6)
- lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(-6), rd(0), rd(-12)), 0.6)
- lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6)
- lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(-6), rd(0), rd(12)), 0.6)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.6)
- end
- for _ = 1, 18 do
- swait()
- lerpz(RJ, "C0", RJC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
- lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
- lerpz(RH, "C0", RHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
- lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
- lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.3)
- end
- resetlerp()
- local ry,ht,ps=nil,nil,nil
- while ht==nil do
- ry,ht,ps=newRay(hrp.CFrame*CFrame.new(0,-2,0),hrp.CFrame*CFrame.new(0,-3,0),4.1,{chr})
- wait()
- end
- human.WalkSpeed = 0
- Landing()
- z = Instance.new("Sound",tors)
- z.SoundId = "rbxassetid://142070127"
- z.Volume = 2
- wait(.1)
- z:Play()
- for l = 1, 30 do
- swait()
- lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40)
- lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- end
- resetlerp()
- human.WalkSpeed = 56
- activu = false
- end
- local acos = math.acos
- local sqrt = math.sqrt
- local Vec3 = Vector3.new
- local fromAxisAngle = CFrame.fromAxisAngle
- local function toAxisAngle(CFr)
- local X,Y,Z,R00,R01,R02,R10,R11,R12,R20,R21,R22 = CFr:components()
- local Angle = math.acos((R00+R11+R22-1)/2)
- local A = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
- A = A == 0 and 0.00001 or A
- local B = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
- B = B == 0 and 0.00001 or B
- local C = (R21-R12)^2+(R02-R20)^2+(R10-R01)^2
- C = C == 0 and 0.00001 or C
- local x = (R21-R12)/sqrt(A)
- local y = (R02-R20)/sqrt(B)
- local z = (R10-R01)/sqrt(C)
- return Vec3(x,y,z),Angle
- end
- function ApplyTrig(Num,Func)
- local Min,Max = Func(0),Func(1)
- local i = Func(Num)
- return (i-Min)/(Max-Min)
- --[[if Func == "sin" then
- return (math.sin((1-Num)*math.pi)+1)/2
- elseif Func == "cos" then
- return (math.cos((1-Num)*math.pi)+1)/2
- end]]
- end
- function LerpCFrame(CFrame1,CFrame2,Num)
- local Vec,Ang = toAxisAngle(CFrame1:inverse()*CFrame2)
- return CFrame1*fromAxisAngle(Vec,Ang*Num) + (CFrame2.p-CFrame1.p)*Num
- end
- function Crater(Torso,Radius)
- spawn(function()
- local Ray = Ray.new(Torso.Position,Vector3.new(0,-1,0)*10)
- local Ignore = {}
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v.Character ~= nil then
- Ignore[#Ignore+1] = v.Character
- end
- end
- local Hit,Pos,SurfaceNorm = workspace:FindPartOnRayWithIgnoreList(Ray,Ignore)
- if Hit == nil then return end
- local Parts = {}
- for i = 1,360,10 do
- local P = Instance.new("Part",Torso.Parent)
- P.Anchored = true
- P.FormFactor = "Custom"
- P.BrickColor = Hit.BrickColor
- P.Material = Hit.Material
- P.TopSurface = "Smooth"
- P.BottomSurface = "Smooth"
- P.Size = Vector3.new(5,10,10)*(math.random(80,100)/100)
- P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,7,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
- Parts[#Parts+1] = {P,P.CFrame,((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,1,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius)*CFrame.Angles(math.rad(math.random(-50,-20)),math.rad(math.random(-15,15)),math.rad(math.random(-15,15))),P.Size}
- if math.random(0,5) == 0 then -- rubble
- local P = Instance.new("Part",Torso.Parent)
- P.Anchored = true
- P.FormFactor = "Custom"
- P.BrickColor = Hit.BrickColor
- P.Material = Hit.Material
- P.TopSurface = "Smooth"
- P.BottomSurface = "Smooth"
- P.Size = Vector3.new(2,2,2)*(math.random(80,100)/100)
- P.CFrame = ((CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))-Vector3.new(0,2.5,0))*CFrame.Angles(math.rad(math.random(-50,50)),math.rad(math.random(-50,50)),math.rad(math.random(-50,50)))
- Parts[#Parts+1] = {P,P.CFrame,(CFrame.new(Pos,Pos+SurfaceNorm)*CFrame.Angles(math.rad(90),0,0))*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,-Radius-8)*CFrame.Angles(math.rad(math.random(-90,90)),math.rad(math.random(-90,90)),math.rad(math.random(-90,90))),P.Size}
- end
- end
- for i = 0,1,0.05 do
- for i2,v in pairs(Parts) do
- v[1].CFrame = LerpCFrame(v[2],v[3],ApplyTrig(i,math.cos))
- end
- wait(0.02)
- end
- for i,v in pairs(Parts) do
- if v[1].Size.X > 2.1 then
- v[1].CFrame = v[1].CFrame+Vector3.new(0,2,0)
- end
- v[1].Anchored = false
- end
- for i = 0,1,0.05 do
- for i2,v in pairs(Parts) do
- v[1].Transparency = i
- if i == 1 then
- v[1]:Destroy()
- elseif i >= 0.25 then
- v[1].CanCollide = false
- end
- end
- wait(0.02)
- end
- Parts = nil
- end)
- end
- function FindNearestTorso(Position,Distance,SinglePlayer)
- if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end
- local List = {}
- for i,v in pairs(workspace:GetChildren())do
- if v:IsA("Model")then
- if v:findFirstChild("Torso")then
- if v ~= chr then
- if(v.Torso.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- function KABOOMZ()
- local effspwn = Instance.new("Part")
- coroutine.resume(coroutine.create(function()
- local sound1 = Instance.new("Sound")
- sound1.SoundId = "rbxassetid://138137702"
- sound1.MaxDistance = 300
- sound1.EmitterSize = 20
- sound1.Volume = 5
- sound1.Pitch = 0.95
- sound1.Parent = effspwn
- local sound2 = Instance.new("Sound")
- sound2.SoundId = "rbxassetid://157878578"
- sound2.MaxDistance = 300
- sound2.EmitterSize = 20
- sound2.Volume = 2
- sound2.Pitch = 0.9
- sound2.Parent = effspwn
- local sound3 = Instance.new("Sound")
- sound3.SoundId = "rbxassetid://138250406"
- sound2.MaxDistance = 400
- sound2.EmitterSize = 30
- sound2.Volume = 1.5
- sound2.Pitch = 0.6
- sound2.Parent = effspwn
- sound2:Play()
- wait()
- sound1:Play()
- sound3:Play()
- end))
- local model = Instance.new("Model")
- game.Debris:AddItem(model, 20)
- model.Name = "smasheffects"
- model.Parent = workspace
- effspwn.Name = "spwnr"
- effspwn.Size = Vector3.new(1, 1, 1)
- effspwn.Anchored = true
- effspwn.CanCollide = false
- effspwn.Transparency = 1
- effspwn.CFrame = rarm.CFrame * CFrame.new(0, -0.7, 0)
- effspwn.Parent = model
- Crater(head,60)
- for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(10000020,10000030))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 200
- end
- end
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "whoosh"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.1
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://437347603"
- mesh.Scale = Vector3.new(0.8, 0.8, 0.3)
- mesh.Parent = shok
- for e = 1, 8 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.24, 0.24, 0.22)
- shok.Transparency = shok.Transparency + 0.035
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -14), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.13, 0.13, 0.12)
- shok.Transparency = shok.Transparency + 0.11
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -5), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "wring1"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://3270017"
- mesh.Scale = Vector3.new(0.1, 0.1, 0.05)
- mesh.Parent = shok
- for e = 1, 30 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 38 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 24 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1)
- shok.Transparency = shok.Transparency + 0.03
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "wring2"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://3270017"
- mesh.Scale = Vector3.new(12, 12, 0.05)
- mesh.Parent = shok
- for e = 1, 30 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 38 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 24 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1)
- shok.Transparency = shok.Transparency + 0.03
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "coil1"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
- mesh.Scale = Vector3.new(12, 12, 12)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "coil2"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
- mesh.Scale = Vector3.new(6, 12, 6)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1)
- shok.Transparency = shok.Transparency + 0.005
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1)
- shok.Transparency = shok.Transparency + 0.005
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1)
- shok.Transparency = shok.Transparency + 0.09
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shokwve"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.Position = effspwn.Position - Vector3.new(0, 0.8, 0)
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.6
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(1, 1, 1)
- mesh.Parent = shok
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2)
- shok.Transparency = shok.Transparency + 0.002
- end
- for e = 1, 32 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5)
- shok.Transparency = shok.Transparency + 0.002
- end
- for e = 1, 24 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5)
- shok.Transparency = shok.Transparency + 0.03
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shock2"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.35
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(12, 12, 12)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shock3"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.35
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(12, 12, 12)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- end))
- end
- function KABOOMZ2()
- local effspwn = Instance.new("Part")
- coroutine.resume(coroutine.create(function()
- local sound1 = Instance.new("Sound")
- sound1.SoundId = "rbxassetid://138137702"
- sound1.MaxDistance = 300
- sound1.EmitterSize = 20
- sound1.Volume = 2.5
- sound1.Pitch = 0.65
- sound1.Parent = effspwn
- local sound2 = Instance.new("Sound")
- sound2.SoundId = "rbxassetid://157878578"
- sound2.MaxDistance = 300
- sound2.EmitterSize = 20
- sound2.Volume = 1
- sound2.Pitch = 0.7
- sound2.Parent = effspwn
- local sound3 = Instance.new("Sound")
- sound3.SoundId = "rbxassetid://138250406"
- sound2.MaxDistance = 400
- sound2.EmitterSize = 30
- sound2.Volume = 0.5
- sound2.Pitch = 0.5
- sound2.Parent = effspwn
- sound2:Play()
- wait()
- sound1:Play()
- sound3:Play()
- end))
- local model = Instance.new("Model")
- game.Debris:AddItem(model, 20)
- model.Name = "smasheffects"
- model.Parent = workspace
- effspwn.Name = "spwnr"
- effspwn.Size = Vector3.new(1, 1, 1)
- effspwn.Anchored = true
- effspwn.CanCollide = false
- effspwn.Transparency = 1
- effspwn.CFrame = hrp.CFrame * CFrame.Angles(math.rad(180), 0, 0)
- effspwn.Parent = model
- Crater(head,60)
- Crater(head,120)
- for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(10000020,10000030))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 200
- end
- end
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "whoosh"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.1
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://437347603"
- mesh.Scale = Vector3.new(0.8, 0.8, 0.3)
- mesh.Parent = shok
- for e = 1, 8 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.24, 0.24, 0.22)
- shok.Transparency = shok.Transparency + 0.035
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -22), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.13, 0.13, 0.12)
- shok.Transparency = shok.Transparency + 0.11
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -10), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "wring1"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://3270017"
- mesh.Scale = Vector3.new(0.1, 0.1, 0.05)
- mesh.Parent = shok
- for e = 1, 30 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
- end
- for e = 1, 38 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
- end
- for e = 1, 24 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1)
- shok.Transparency = shok.Transparency + 0.03
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "wring2"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://3270017"
- mesh.Scale = Vector3.new(12, 12, 0.05)
- mesh.Parent = shok
- for e = 1, 30 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
- end
- for e = 1, 38 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
- end
- for e = 1, 24 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1)
- shok.Transparency = shok.Transparency + 0.03
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "coil1"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
- mesh.Scale = Vector3.new(12, 12, 12)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "coil2"
- shok.BrickColor = BrickColor.new("Institutional white")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=Dark stone grey"
- mesh.Scale = Vector3.new(6, 12, 6)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1)
- shok.Transparency = shok.Transparency + 0.005
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0))
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1)
- shok.Transparency = shok.Transparency + 0.005
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0))
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1)
- shok.Transparency = shok.Transparency + 0.09
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shokwve"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.Position = effspwn.Position + Vector3.new(0, 5, 0)
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.6
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(1, 1, 1)
- mesh.Parent = shok
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2)
- shok.Transparency = shok.Transparency + 0.002
- end
- for e = 1, 32 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5)
- shok.Transparency = shok.Transparency + 0.002
- end
- for e = 1, 24 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5)
- shok.Transparency = shok.Transparency + 0.03
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shock2"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.35
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(12, 12, 12)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shock3"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.35
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(12, 12, 12)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- end))
- end
- tor = chr.Torso
- Debounce = false
- Invis = function()
- for i = 1,20 do
- chr['Right Arm'].Transparency = chr['Right Arm'].Transparency + .05
- chr['Left Arm'].Transparency = chr['Left Arm'].Transparency + .05
- chr['Right Leg'].Transparency = chr['Right Leg'].Transparency + .05
- chr['Left Leg'].Transparency = chr['Left Leg'].Transparency + .05
- chr['Head'].Transparency = chr['Head'].Transparency + .05
- chr['Torso'].Transparency = chr['Torso'].Transparency + .05
- chr.Head['face'].Transparency = chr.Head['face'].Transparency + .05
- game["Run Service"].RenderStepped:wait()
- end
- end
- Vis = function()
- for i = 1,20 do
- chr['Right Arm'].Transparency = chr['Right Arm'].Transparency - .05
- chr['Left Arm'].Transparency = chr['Left Arm'].Transparency - .05
- chr['Right Leg'].Transparency = chr['Right Leg'].Transparency - .05
- chr['Left Leg'].Transparency = chr['Left Leg'].Transparency - .05
- chr['Head'].Transparency = chr['Head'].Transparency - .05
- chr['Torso'].Transparency = chr['Torso'].Transparency - .05
- chr.Head['face'].Transparency = chr.Head['face'].Transparency - .05
- game["Run Service"].RenderStepped:wait()
- end
- end
- Fade = function(Part)
- if Part:IsA'Part' then
- for i = 1,20 do
- Part.Transparency = Part.Transparency + .05
- Part.Size = Part.Size - Vector3.new(.04,.04,.04)
- Part.CFrame = Part.CFrame * CFrame.new(0,-.1,0)
- wait()
- end
- Part:Destroy()
- end
- end
- Teleport = function(cx,cy,cz)
- Debounce = true
- tor.Anchored = true
- Invis()
- --MakeTpPart()
- tor.Anchored = false
- tor.CFrame = CFrame.new(cx,cy,cz) * CFrame.new(0,3,0)
- tor.Anchored = true
- Vis()
- tor.Anchored = false
- Debounce = false
- end;
- tps = Instance.new("Sound",chr)
- tps.SoundId = "http://www.roblox.com/asset/?id = 449860746"
- tps.Volume = 30
- function Tele()
- human.WalkSpeed = 0
- if activu == true or selected == false then
- return
- end
- coroutine.resume(coroutine.create(function()
- fglow(rleg.Glow, 1)
- fglow(lleg.Glow, 1)
- end))
- activu = true
- local pe = Instance.new("ParticleEmitter")
- pe.Color = ColorSequence.new(Color3.new(255, 255, 0))
- pe.LightEmission = 0.9
- pe.Size = NumberSequence.new(0.5)
- pe.Texture = "rbxassetid://1442994836"
- pe.Transparency = NumberSequence.new(0.1)
- pe.Lifetime = NumberRange.new(0.1)
- pe.Rate = 250
- pe.RotSpeed = NumberRange.new(360)
- pe.Speed = NumberRange.new(3)
- pe.VelocitySpread = 360
- pe.Parent = rleg.Glow
- local pea = pe:Clone()
- pea.Parent = lleg.Glow
- local pe2 = Instance.new("ParticleEmitter")
- pe2.Color = ColorSequence.new(Color3.new(255, 255, 0))
- pe2.LightEmission = 0.9
- pe2.Size = NumberSequence.new(5)
- pe2.Texture = "rbxassetid://1442994836"
- pe2.Transparency = NumberSequence.new(0.4)
- pe2.ZOffset = 2
- pe2.Enabled = true
- pe2.LockedToPart = true
- pe2.Lifetime = NumberRange.new(0.07)
- pe2.Rate = 8
- pe2.Rotation = NumberRange.new(0, 360)
- pe2.RotSpeed = NumberRange.new(0)
- pe2.Speed = NumberRange.new(0)
- pe2.VelocitySpread = 180
- pe2.Parent = lleg.Glow
- local pea2 = pe2:Clone()
- pea2.Parent = rleg.Glow
- for l = 1, 30 do
- swait()
- lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40)
- lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- end
- pe:Destroy()
- pe2:Destroy()
- pea:Destroy()
- pea2:Destroy()
- local rng = Instance.new("Part", chr)
- rng.Anchored = true
- rng.BrickColor = BrickColor.new("Dark stone grey")
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0.5
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.Position = tors.Position - Vector3.new(0,2,0)
- rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
- rngm.Scale = Vector3.new(1, 1, 2)
- coroutine.wrap(function()
- for i = 1, 60, 8 do
- rngm.Scale = Vector3.new(1.2 + i*1.1, 1.2 + i*1.1, 1)
- rng.Transparency = i/60
- wait()
- end
- wait()
- rng:Destroy()
- end)()
- tps:Play()
- Teleport(mouse.Hit.X,mouse.Hit.Y,mouse.Hit.Z)
- resetlerp()
- human.WalkSpeed = 56
- activu = false
- end
- boom3 = Instance.new("Sound",chr)
- boom3.SoundId = "http://www.roblox.com/asset/?id = 450719019"
- boom3.Volume = 50
- gprop = {}
- function materialhit(hit)
- if hit.Parent ~= chr and hit.Parent.Parent ~= chr and hit.Name ~= "Trace" and hit.Parent:FindFirstChild("Humanoid") == nil then
- gprop = {hit.BrickColor,hit.Material}
- end
- end
- chr["Left Leg"].Touched:connect(materialhit)
- chr["Right Leg"].Touched:connect(materialhit)
- function KickBoom()
- local effspwn = Instance.new("Part")
- local model = Instance.new("Model")
- game.Debris:AddItem(model, 20)
- model.Name = "smasheffects"
- model.Parent = chr
- effspwn.Name = "spwnr"
- effspwn.Size = Vector3.new(1, 1, 1)
- effspwn.Anchored = true
- effspwn.CanCollide = false
- effspwn.Transparency = 1
- effspwn.CFrame = hrp.CFrame * CFrame.Angles(math.rad(180), 0, 0)
- effspwn.Parent = model
- for i = 1, 15 do
- local gtrace = Instance.new("Part",game.Workspace)
- gtrace.BrickColor = gprop[1]
- gtrace.Material = gprop[2]
- gtrace.Size = Vector3.new(16,16,16)
- gtrace.Anchored = true
- gtrace.CanCollide = false
- gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-70,70),-6,math.random(-70,70))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
- local gdisp = coroutine.wrap(function()
- wait(3)
- for i = 1, 9 do
- wait(.1)
- gtrace.Transparency = gtrace.Transparency + .1
- end
- gtrace:Destroy()
- end)
- gdisp()
- end
- Crater(head,67)
- for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(10000020,10000030))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 250
- end
- end
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shock3"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.35
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(19, 19, 19)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shock3"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.35
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(47, 47, 47)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shock3"
- shok.BrickColor = BrickColor.new("Dark stone grey")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.35
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(79, 79, 79)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- end))
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- cam = workspace.CurrentCamera
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- it = Instance.new
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- end))
- end
- function Stom()
- cf=CFrame.new
- angles=CFrame.Angles
- euler=CFrame.fromEulerAnglesXYZ
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- RootPart=chr.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- if activu == true or selected == false then
- return
- end
- coroutine.resume(coroutine.create(function()
- fglow(lleg.Glow, 6)
- end))
- activu = true
- local pe = Instance.new("ParticleEmitter")
- pe.Color = ColorSequence.new(Color3.new(255, 255, 225))
- pe.LightEmission = 0.9
- pe.Size = NumberSequence.new(0.5)
- pe.Texture = "rbxassetid://1442994836"
- pe.Transparency = NumberSequence.new(0.1)
- pe.Lifetime = NumberRange.new(0.1)
- pe.Rate = 250
- pe.RotSpeed = NumberRange.new(360)
- pe.Speed = NumberRange.new(3)
- pe.VelocitySpread = 360
- pe.Parent = lleg.Glow
- local pea = pe:Clone()
- pea.Parent = lleg.Glow
- wait(0.5)
- local pe2 = Instance.new("ParticleEmitter")
- pe2.Color = ColorSequence.new(Color3.new(255, 255, 225))
- pe2.LightEmission = 0.9
- pe2.Size = NumberSequence.new(5)
- pe2.Texture = "rbxassetid://1442994836"
- pe2.Transparency = NumberSequence.new(0.4)
- pe2.ZOffset = 2
- pe2.Enabled = true
- pe2.LockedToPart = true
- pe2.Lifetime = NumberRange.new(0.07)
- pe2.Rate = 8
- pe2.Rotation = NumberRange.new(0, 360)
- pe2.RotSpeed = NumberRange.new(0)
- pe2.Speed = NumberRange.new(0)
- pe2.VelocitySpread = 180
- pe2.Parent = lleg.Glow
- local pea2 = pe2:Clone()
- pea2.Parent = lleg.Glow
- local Mus = Instance.new("Sound",workspace)
- Mus.SoundId = "rbxassetid://802518140"
- Mus.Pitch = 1
- Mus.Volume = 90000
- Mus.Looped = false
- wait(0.9)
- Mus:Play()
- human.WalkSpeed = 0
- for i = 0,1,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
- RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-.1,-.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
- end
- wait(1)
- for i = 0,1,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- RS.C0 = clerp(RS.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
- LS.C0 = clerp(LS.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(10))*angles(math.rad(-2),math.rad(0),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,-.5)*angles(math.rad(0),math.rad(-90),math.rad(-10))*angles(math.rad(-3),math.rad(0),math.rad(0)),.3)
- end
- KickBoom()
- so("http://roblox.com/asset/?id=144699494",lleg,2,1.1)
- so("http://roblox.com/asset/?id=321321137",lleg,1,1)
- so("http://roblox.com/asset/?id=506384002",lleg,1,1)
- so("http://roblox.com/asset/?id=157878578",lleg,25,1)
- so("http://roblox.com/asset/?id=165970126",lleg,25,1)
- wait(3)
- human.WalkSpeed = 16
- pe:Destroy()
- pe2:Destroy()
- pea:Destroy()
- pea2:Destroy()
- resetlerp()
- activu = false
- end
- function Smash()
- for i = 1, 15 do
- local gtrace = Instance.new("Part",game.Workspace)
- gtrace.BrickColor = gprop[1]
- gtrace.Material = gprop[2]
- gtrace.Size = Vector3.new(19,19,19)
- gtrace.Anchored = true
- gtrace.CanCollide = false
- gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-60,60),-6,math.random(-60,60))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
- local gdisp = coroutine.wrap(function()
- wait(7)
- for i = 1, 9 do
- wait(.1)
- gtrace.Transparency = gtrace.Transparency + .1
- end
- gtrace:Destroy()
- end)
- gdisp()
- end
- Crater(head,67)
- end
- function Smash2()
- for i = 1, 15 do
- local gtrace = Instance.new("Part",game.Workspace)
- gtrace.BrickColor = gprop[1]
- gtrace.Material = gprop[2]
- gtrace.Size = Vector3.new(19,19,19)
- gtrace.Anchored = true
- gtrace.CanCollide = false
- gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-70,70),-6,math.random(-70,70))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
- local gdisp = coroutine.wrap(function()
- wait(7)
- for i = 1, 9 do
- wait(.1)
- gtrace.Transparency = gtrace.Transparency + .1
- end
- gtrace:Destroy()
- end)
- gdisp()
- end
- end
- function Smash3()
- for i = 1, 15 do
- local gtrace = Instance.new("Part",game.Workspace)
- gtrace.BrickColor = gprop[1]
- gtrace.Material = gprop[2]
- gtrace.Size = Vector3.new(19,19,19)
- gtrace.Anchored = true
- gtrace.CanCollide = false
- gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-50,50),-6,math.random(-50,50))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
- local gdisp = coroutine.wrap(function()
- wait(7)
- for i = 1, 9 do
- wait(.1)
- gtrace.Transparency = gtrace.Transparency + .1
- end
- gtrace:Destroy()
- end)
- gdisp()
- end
- end
- function Smash4()
- for i = 1, 15 do
- local gtrace = Instance.new("Part",game.Workspace)
- gtrace.BrickColor = gprop[1]
- gtrace.Material = gprop[2]
- gtrace.Size = Vector3.new(19,19,19)
- gtrace.Anchored = true
- gtrace.CanCollide = false
- gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-40,40),-6,math.random(-40,40))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
- local gdisp = coroutine.wrap(function()
- wait(7)
- for i = 1, 9 do
- wait(.1)
- gtrace.Transparency = gtrace.Transparency + .1
- end
- gtrace:Destroy()
- end)
- gdisp()
- end
- end
- function Smash5()
- for i = 1, 15 do
- local gtrace = Instance.new("Part",game.Workspace)
- gtrace.BrickColor = gprop[1]
- gtrace.Material = gprop[2]
- gtrace.Size = Vector3.new(19,19,19)
- gtrace.Anchored = true
- gtrace.CanCollide = false
- gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-30,30),-6,math.random(-30,30))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
- local gdisp = coroutine.wrap(function()
- wait(7)
- for i = 1, 9 do
- wait(.1)
- gtrace.Transparency = gtrace.Transparency + .1
- end
- gtrace:Destroy()
- end)
- gdisp()
- end
- end
- function Smash6()
- for i = 1, 15 do
- local gtrace = Instance.new("Part",game.Workspace)
- gtrace.BrickColor = gprop[1]
- gtrace.Material = gprop[2]
- gtrace.Size = Vector3.new(19,19,19)
- gtrace.Anchored = true
- gtrace.CanCollide = false
- gtrace.CFrame = (chr.HumanoidRootPart.CFrame + Vector3.new(math.random(-20,20),-6,math.random(-20,20))) * CFrame.fromEulerAnglesXYZ(math.random(0,math.rad(359)),math.random(0,math.rad(359)),math.random(0,math.rad(359)))
- local gdisp = coroutine.wrap(function()
- wait(7)
- for i = 1, 9 do
- wait(.1)
- gtrace.Transparency = gtrace.Transparency + .1
- end
- gtrace:Destroy()
- end)
- gdisp()
- end
- end
- for i,v in pairs(FindNearestTorso(tors.CFrame.p,99))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999,9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 600
- end
- end
- function HeavenSmash()
- if activu == true or selected == false then
- return
- end
- coroutine.resume(coroutine.create(function()
- fglow(lleg.Glow, 19)
- fglow(rleg.Glow, 19)
- fglow(rarm.Glow, 19)
- fglow(larm.Glow, 19)
- fglow(head.Glow, 19)
- fglow(tors.Glow, 19)
- end))
- activu = true
- local pe = Instance.new("ParticleEmitter")
- pe.Color = ColorSequence.new(Color3.new(255, 255, 0))
- pe.LightEmission = 0.9
- pe.Size = NumberSequence.new(0.5)
- pe.Texture = "rbxassetid://272050333"
- pe.Transparency = NumberSequence.new(0.1)
- pe.Lifetime = NumberRange.new(0.1)
- pe.Rate = 250
- pe.RotSpeed = NumberRange.new(360)
- pe.Speed = NumberRange.new(3)
- pe.VelocitySpread = 360
- pe.Parent = lleg.Glow
- local pea = pe:Clone()
- pea.Parent = lleg.Glow
- local pe2 = Instance.new("ParticleEmitter")
- pe2.Color = ColorSequence.new(Color3.new(255, 255, 0))
- pe2.LightEmission = 0.9
- pe2.Size = NumberSequence.new(5)
- pe2.Texture = "rbxassetid://516107903"
- pe2.Transparency = NumberSequence.new(0.4)
- pe2.ZOffset = 2
- pe2.Enabled = true
- pe2.LockedToPart = true
- pe2.Lifetime = NumberRange.new(0.07)
- pe2.Rate = 8
- pe2.Rotation = NumberRange.new(0, 360)
- pe2.RotSpeed = NumberRange.new(0)
- pe2.Speed = NumberRange.new(0)
- pe2.VelocitySpread = 180
- pe2.Parent = lleg.Glow
- local pea2 = pe2:Clone()
- pea2.Parent = lleg.Glow
- local pet = Instance.new("ParticleEmitter")
- pet.Color = ColorSequence.new(Color3.new(255, 255, 0))
- pet.LightEmission = 0.9
- pet.Size = NumberSequence.new(0.5)
- pet.Texture = "rbxassetid://272050333"
- pet.Transparency = NumberSequence.new(0.1)
- pet.Lifetime = NumberRange.new(0.1)
- pet.Rate = 1
- pet.RotSpeed = NumberRange.new(360)
- pet.Speed = NumberRange.new(3)
- pet.VelocitySpread = 360
- pet.Parent = rarm.Glow
- local pet2 = Instance.new("ParticleEmitter")
- pet2.Color = ColorSequence.new(Color3.new(255, 255, 0))
- pet2.LightEmission = 0.9
- pet2.Size = NumberSequence.new(5)
- pet2.Texture = "rbxassetid://516107903"
- pet2.Transparency = NumberSequence.new(0.4)
- pet2.ZOffset = 2
- pet2.Enabled = false
- pet2.LockedToPart = true
- pet2.Lifetime = NumberRange.new(0.07)
- pet2.Rate = 8
- pet2.Rotation = NumberRange.new(0, 360)
- pet2.RotSpeed = NumberRange.new(0)
- pet2.Speed = NumberRange.new(0)
- pet2.VelocitySpread = 180
- pet2.Parent = rarm.Glow
- local petl = Instance.new("ParticleEmitter")
- petl.Color = ColorSequence.new(Color3.new(255, 255, 0))
- petl.LightEmission = 0.9
- petl.Size = NumberSequence.new(0.5)
- petl.Texture = "rbxassetid://272050333"
- petl.Transparency = NumberSequence.new(0.1)
- petl.Lifetime = NumberRange.new(0.1)
- petl.Rate = 1
- petl.RotSpeed = NumberRange.new(360)
- petl.Speed = NumberRange.new(3)
- petl.VelocitySpread = 360
- petl.Parent = larm.Glow
- local petl2 = Instance.new("ParticleEmitter")
- petl2.Color = ColorSequence.new(Color3.new(255, 255, 0))
- petl2.LightEmission = 0.9
- petl2.Size = NumberSequence.new(5)
- petl2.Texture = "rbxassetid://516107903"
- petl2.Transparency = NumberSequence.new(0.4)
- petl2.ZOffset = 2
- petl2.Enabled = false
- petl2.LockedToPart = true
- petl2.Lifetime = NumberRange.new(0.07)
- petl2.Rate = 8
- petl2.Rotation = NumberRange.new(0, 360)
- petl2.RotSpeed = NumberRange.new(0)
- petl2.Speed = NumberRange.new(0)
- petl2.VelocitySpread = 180
- petl2.Parent = larm.Glow
- local petl3 = Instance.new("ParticleEmitter")
- petl3.Color = ColorSequence.new(Color3.new(255, 255, 0))
- petl3.LightEmission = 0.9
- petl3.Size = NumberSequence.new(0.5)
- petl3.Texture = "rbxassetid://272050333"
- petl3.Transparency = NumberSequence.new(0.1)
- petl3.Lifetime = NumberRange.new(0.1)
- petl3.Rate = 1
- petl3.RotSpeed = NumberRange.new(360)
- petl3.Speed = NumberRange.new(3)
- petl3.VelocitySpread = 360
- petl3.Parent = head.Glow
- local petl23 = Instance.new("ParticleEmitter")
- petl23.Color = ColorSequence.new(Color3.new(255, 255, 0))
- petl23.LightEmission = 0.9
- petl23.Size = NumberSequence.new(5)
- petl23.Texture = "rbxassetid://516107903"
- petl23.Transparency = NumberSequence.new(0.4)
- petl23.ZOffset = 2
- petl23.Enabled = false
- petl23.LockedToPart = true
- petl23.Lifetime = NumberRange.new(0.07)
- petl23.Rate = 8
- petl23.Rotation = NumberRange.new(0, 360)
- petl23.RotSpeed = NumberRange.new(0)
- petl23.Speed = NumberRange.new(0)
- petl23.VelocitySpread = 180
- petl23.Parent = head.Glow
- local petl34 = Instance.new("ParticleEmitter")
- petl34.Color = ColorSequence.new(Color3.new(255, 255, 0))
- petl34.LightEmission = 0.9
- petl34.Size = NumberSequence.new(0.5)
- petl34.Texture = "rbxassetid://272050333"
- petl34.Transparency = NumberSequence.new(0.1)
- petl34.Lifetime = NumberRange.new(0.1)
- petl34.Rate = 1
- petl34.RotSpeed = NumberRange.new(360)
- petl34.Speed = NumberRange.new(3)
- petl34.VelocitySpread = 360
- petl34.Parent = rleg.Glow
- local petl234 = Instance.new("ParticleEmitter")
- petl234.Color = ColorSequence.new(Color3.new(255, 255, 0))
- petl234.LightEmission = 0.9
- petl234.Size = NumberSequence.new(5)
- petl234.Texture = "rbxassetid://516107903"
- petl234.Transparency = NumberSequence.new(0.4)
- petl234.ZOffset = 2
- petl234.Enabled = false
- petl234.LockedToPart = true
- petl234.Rate = 8
- petl234.Rotation = NumberRange.new(0, 360)
- petl234.RotSpeed = NumberRange.new(0)
- petl234.Speed = NumberRange.new(0)
- petl234.VelocitySpread = 180
- petl234.Parent = rleg.Glow
- local petl345 = Instance.new("ParticleEmitter")
- petl345.Color = ColorSequence.new(Color3.new(255, 255, 0))
- petl345.LightEmission = 0.9
- petl345.Size = NumberSequence.new(0.5)
- petl345.Texture = "rbxassetid://272050333"
- petl345.Transparency = NumberSequence.new(0.1)
- petl345.Lifetime = NumberRange.new(0.1)
- petl345.Rate = 1
- petl345.RotSpeed = NumberRange.new(360)
- petl345.Speed = NumberRange.new(3)
- petl345.VelocitySpread = 360
- petl345.Parent = tors.Glow
- local petl2345 = Instance.new("ParticleEmitter")
- petl2345.Color = ColorSequence.new(Color3.new(255, 255, 0))
- petl2345.LightEmission = 0.9
- petl2345.Size = NumberSequence.new(5)
- petl2345.Texture = "rbxassetid://516107903"
- petl2345.Transparency = NumberSequence.new(0.4)
- petl2345.ZOffset = 2
- petl2345.Enabled = false
- petl2345.LockedToPart = true
- petl2345.Rate = 8
- petl2345.Rotation = NumberRange.new(0, 360)
- petl2345.RotSpeed = NumberRange.new(0)
- petl2345.Speed = NumberRange.new(0)
- petl2345.VelocitySpread = 180
- petl2345.Parent = tors.Glow
- human.WalkSpeed = 0
- so("http://www.roblox.com/asset/?id=169445572",head,1.5,1.5)
- so("http://www.roblox.com/asset/?id=169380495",head,1.5,1.5)
- for l = 1, 30 do
- swait()
- lerpz(RJ, "C0", RJC0 * cf(0, 0, -0.5) * ang(rd(6), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(12), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(RS, "C0", RSC0 * cf(0, 0, 0) * ang(rd(-8), rd(-7), rd(-10)), 0.02 + l / 40)
- lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(LS, "C0", LSC0 * cf(0, 0, 0) * ang(rd(-8), rd(7), rd(10)), 0.02 + l / 40)
- lerpz(LS, "C1", LSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(RH, "C0", RHC0 * cf(0.4, 0.5, 0) * ang(rd(0), rd(-6), rd(8)), 0.02 + l / 40)
- lerpz(RH, "C1", RHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- lerpz(LH, "C0", LHC0 * cf(0, 0, 0) * ang(rd(3), rd(0), rd(42)), 0.02 + l / 40)
- lerpz(LH, "C1", LHC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.02 + l / 40)
- end
- resetlerp()
- BV = Instance.new("BodyVelocity", tors)
- BV.maxForce = Vector3.new(0,200000,0)
- BV.P = 100000
- BV.velocity = Vector3.new(0,150,0)
- local rng = Instance.new("Part", chr)
- rng.Anchored = true
- rng.BrickColor = BrickColor.new("Institutional white")
- rng.CanCollide = false
- rng.FormFactor = 3
- rng.Name = "Ring"
- rng.Size = Vector3.new(1, 1, 1)
- rng.Transparency = 0.5
- rng.TopSurface = 0
- rng.BottomSurface = 0
- rng.Position = tors.Position - Vector3.new(0,2,0)
- rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- local rngm = Instance.new("SpecialMesh", rng)
- rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
- rngm.Scale = Vector3.new(10, 10, 20)
- x = Instance.new("Sound",tors)
- x.SoundId = "http://www.roblox.com/asset/?id=169445602"
- x.Looped = false
- x.Pitch = .7
- x.Volume = 30
- x:Play()
- coroutine.wrap(function()
- for i = 1, 60, 8 do
- rngm.Scale = Vector3.new(10.20 + i*10.10, 10.20 + i*10.10, 10)
- rng.Transparency = i/60
- wait()
- end
- wait()
- rng:Destroy()
- end)()
- wait(2.6)
- BV:Destroy()
- tors.Anchored = true
- wait(3.2)
- tors.Anchored = false
- BV = Instance.new("BodyVelocity", tors)
- BV.maxForce = Vector3.new(0,-20000,0)
- BV.P = 1000
- BV.velocity = Vector3.new(0,-150,0)
- wait(1)
- BV:Destroy()
- wait(0.01)
- human.WalkSpeed = 0
- boom3:Play()
- Smash()
- Smash2()
- Smash3()
- Ring()
- pe:Destroy()
- pea:Destroy()
- pea2:Destroy()
- pe2:Destroy()
- wait(2)
- human.WalkSpeed = 16
- activu = false
- end
- sound = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Leg"])
- sound.SoundId = "rbxassetid://220025776"
- sound.Volume = 6
- sound2 = Instance.new("Sound", game.Players.LocalPlayer.Character["Torso"])
- sound2.SoundId = "rbxassetid://386946017"
- sound2.Volume = 6
- sound3 = Instance.new("Sound", game.Players.LocalPlayer.Character)
- sound3.SoundId = "rbxassetid://165969964"
- sound3.Volume = 6
- function rip()
- activu = true
- local detect = Instance.new("Part", game.Players.LocalPlayer.Character)
- detect.Size = Vector3.new(1,1,1)
- detect:BreakJoints()
- detect.CanCollide = false
- local weld = Instance.new("Weld", detect)
- weld.Part0 = game.Players.LocalPlayer.Character["Torso"]
- weld.Part1 = detect
- weld.C0 = weld.C0 * CFrame.new(0,-1,0)
- local function attack(prt)
- local humanoid = prt.Parent:findFirstChild("Humanoid")
- if humanoid ~= nil then
- local torso = prt.Parent:findFirstChild("Torso")
- function KABOOMZ3()
- local effspwn = Instance.new("Part")
- coroutine.resume(coroutine.create(function()
- local sound1 = Instance.new("Sound")
- sound1.SoundId = "rbxassetid://138137702"
- sound1.MaxDistance = 300
- sound1.EmitterSize = 20
- sound1.Volume = 2.5
- sound1.Pitch = 0.65
- sound1.Parent = effspwn
- local sound2 = Instance.new("Sound")
- sound2.SoundId = "rbxassetid://157878578"
- sound2.MaxDistance = 300
- sound2.EmitterSize = 20
- sound2.Volume = 1
- sound2.Pitch = 0.7
- sound2.Parent = effspwn
- local sound3 = Instance.new("Sound")
- sound3.SoundId = "rbxassetid://138250406"
- sound2.MaxDistance = 400
- sound2.EmitterSize = 30
- sound2.Volume = 0.5
- sound2.Pitch = 0.5
- sound2.Parent = effspwn
- sound2:Play()
- wait()
- sound1:Play()
- sound3:Play()
- end))
- local model = Instance.new("Model")
- game.Debris:AddItem(model, 20)
- model.Name = "smasheffects"
- model.Parent = workspace
- effspwn.Name = "spwnr"
- effspwn.Size = Vector3.new(1, 1, 1)
- effspwn.Anchored = true
- effspwn.CanCollide = false
- effspwn.Transparency = 1
- effspwn.CFrame = torso.CFrame * CFrame.Angles(math.rad(180), 0, 0)
- effspwn.Parent = model
- Crater(head,60)
- Crater(head,120)
- for i,v in pairs(FindNearestTorso(tors.CFrame.p,50))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(10000020,10000030))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = head.CFrame.lookVector * 200
- end
- end
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "whoosh"
- shok.BrickColor = BrickColor.new("Institutional white")
- shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.1
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://437347603"
- mesh.Scale = Vector3.new(0.8, 0.8, 0.3)
- mesh.Parent = shok
- for e = 1, 8 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.24, 0.24, 0.22)
- shok.Transparency = shok.Transparency + 0.035
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -22), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(29))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.13, 0.13, 0.12)
- shok.Transparency = shok.Transparency + 0.11
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -10), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(15))
- hito(shok, 10, 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999, 3)
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "wring1"
- shok.BrickColor = BrickColor.new("Institutional white")
- shok.CFrame = effspwn.CFrame * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://3270017"
- mesh.Scale = Vector3.new(0.1, 0.1, 0.05)
- mesh.Parent = shok
- for e = 1, 30 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 3)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
- end
- for e = 1, 38 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
- end
- for e = 1, 24 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.6, 2.6, 0.1)
- shok.Transparency = shok.Transparency + 0.03
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-2))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "wring2"
- shok.BrickColor = BrickColor.new("Institutional white")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(-90), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://3270017"
- mesh.Scale = Vector3.new(12, 12, 0.05)
- mesh.Parent = shok
- for e = 1, 30 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 3)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
- end
- for e = 1, 38 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1)
- shok.Transparency = shok.Transparency + 0.002
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
- end
- for e = 1, 24 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2.8, 2.8, 0.1)
- shok.Transparency = shok.Transparency + 0.03
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(0), math.rad(2))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "coil1"
- shok.BrickColor = BrickColor.new("Institutional white")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 12, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
- mesh.Scale = Vector3.new(12, 12, 12)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "coil2"
- shok.BrickColor = BrickColor.new("Institutional white")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.25
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
- mesh.Scale = Vector3.new(6, 12, 6)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1)
- shok.Transparency = shok.Transparency + 0.005
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -1), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0))
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1)
- shok.Transparency = shok.Transparency + 0.005
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0))
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.1, 2.4, 1.1)
- shok.Transparency = shok.Transparency + 0.09
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 0, -0.12), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-60), math.rad(0))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shokwve"
- shok.BrickColor = BrickColor.new("Institutional white")
- shok.Position = effspwn.Position + Vector3.new(0, 5, 0)
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.6
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(1, 1, 1)
- mesh.Parent = shok
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(2, 2, 2)
- shok.Transparency = shok.Transparency + 0.002
- end
- for e = 1, 32 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5)
- shok.Transparency = shok.Transparency + 0.002
- end
- for e = 1, 24 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 0.5, 0.5)
- shok.Transparency = shok.Transparency + 0.03
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shock2"
- shok.BrickColor = BrickColor.new("Institutional white")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.35
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(12, 12, 12)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(1.5, 2.8, 1.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(35), math.rad(0))
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "shock3"
- shok.BrickColor = BrickColor.new("Institutional white")
- shok.CFrame = effspwn.CFrame * CFrame.new(0, 6, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
- shok.Size = Vector3.new(1, 1, 1)
- shok.Anchored = true
- shok.Material = "Neon"
- shok.Transparency = 0.35
- shok.CanCollide = false
- shok.Parent = model
- game.Debris:AddItem(shok, 12)
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "rbxassetid://489415447"
- mesh.Scale = Vector3.new(12, 12, 12)
- mesh.Parent = shok
- for e = 1, 15 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- for e = 1, 16 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, 2.6, 0.5)
- shok.Transparency = shok.Transparency + 0.004
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- for e = 1, 12 do
- wait()
- mesh.Scale = mesh.Scale + Vector3.new(0.5, -1, 0.5)
- shok.Transparency = shok.Transparency + 0.06
- shok.CFrame = shok.CFrame:lerp(shok.CFrame * CFrame.new(0, 2, 0), 0.4)
- shok.CFrame = shok.CFrame * CFrame.Angles(math.rad(0), math.rad(-16), math.rad(0))
- end
- end))
- end
- if torso ~= nil then
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 0
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 0
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.25)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0.25)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.25,0,0)
- end
- sound:Play()
- local bodyVel = Instance.new("BodyPosition", torso)
- bodyVel.Position = game.Players.LocalPlayer.Character.Torso.Position + Vector3.new(0,1000,0)
- bodyVel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- wait(2)
- torso.Anchored = true
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.25)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,-0.25)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.25,0,0)
- end
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,-0.08)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0.08,0,0)
- end
- wait(1)
- local bodyvel = Instance.new("BodyPosition" , game.Players.LocalPlayer.Character.Torso)
- bodyvel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- bodyvel.Position = torso.Position
- for i = 1,5 do
- wait()
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 * CFrame.Angles(0,0,0)
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 * CFrame.Angles(0,0,0.08)
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(-0.15,0,0)
- end
- wait(2)
- bodyVel:destroy()
- game.Players.LocalPlayer.Character.Torso.Anchored = true
- torso.Anchored = false
- humanoid.PlatformStand = true
- local bodyVel = Instance.new("BodyPosition", torso)
- bodyVel.Position = game.Players.LocalPlayer.Character.Torso.Position - Vector3.new(0,1000,0)
- bodyVel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- sound2:Play()
- wait(1.2)
- game.Players.LocalPlayer.Character.Torso.Anchored = false
- game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint.C0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- game.Players.LocalPlayer.Character.Torso["Right Hip"].C0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- game.Players.LocalPlayer.Character.Torso["Right Shoulder"].C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- game.Players.LocalPlayer.Character.Torso["Left Hip"].C0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- activu = false
- wait(0.5)
- bodyvel:destroy()
- local ROW3 = function(out, trans, s, wt, t, ang, plus)
- for i = 1, 360, 360/t do
- local c = Instance.new("Part", game.Workspace)
- c.FormFactor = 3
- c.TopSurface = 0
- c.BottomSurface = 0
- c.Size = s
- c.Anchored = true
- c.CanCollide = wt
- c.Material=workspace.Base.Material
- c.Transparency = trans
- c.BrickColor = workspace.Base.BrickColor
- c.CFrame = CFrame.new(torso.CFrame.x,0,torso.CFrame.z) * CFrame.Angles(0, math.rad(i + plus), 0) * CFrame.new(0, 0, out) * ang
- c.Locked=true
- game.Debris:AddItem(c,25)
- end
- end
- sound3:Play()
- ROW3(12, 0, Vector3.new(34.5, 30, 3), true, 8, CFrame.Angles(math.rad(math.random (30,60)), 0, math.rad (math.random(-30,30))), 0)
- game.Players.LocalPlayer.Character.Torso.Anchored = true
- KABOOMZ3()
- wait(0.1)
- game.Players.LocalPlayer.Character.Torso.Anchored = false
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
- game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
- end
- end
- end
- detect.Touched:connect(attack)
- wait(0.1)
- detect:destroy()
- activu = false
- end
- function hito(partoz, magn, dmg, debtim)
- for _, guy in pairs(workspace:GetChildren()) do
- if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("Head") and guy ~= chr and magn > (guy:FindFirstChild("Head").Position - partoz.Position).magnitude and guy:FindFirstChild("Head"):FindFirstChild("alabo") == nil then
- do
- local humz = guy:FindFirstChild("Humanoid")
- local hed = guy:FindFirstChild("Head")
- humz:TakeDamage(dmg)
- local db = Instance.new("StringValue")
- db.Name = "alabo"
- db.Parent = hed
- delay(debtim, function()
- db:Destroy()
- end)
- end
- end
- end
- end
- function animo(yep)
- if yep == true then
- anim.Parent = human
- chr.Animate.Disabled = false
- elseif yep == false then
- chr.Animate.Disabled = true
- anim.Parent = nil
- end
- end
- mouse.KeyDown:connect(function(key)
- if key == "e" then
- rsmash()
- end
- if key == "t" then
- jum()
- end
- if key == "r" then
- Tele()
- end
- if key == "q" then
- Stom()
- end
- if key == "f" then
- HeavenSmash()
- end
- if key == "h" then
- rip()
- end
- end)
- tool.Equipped:connect(function()
- selected = true
- end)
- tool.Unequipped:connect(function()
- selected = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement