Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --MADE BY OneLegend (NOT THE SCRIPT) REGULAR SCRIPT: Go to line 8 and put your name where it says "YOUR NAME HERE"
- Plrs = game:GetService("Players")
- me = Plrs.refrop
- char = me.Character
- Modelname = "xWep"
- Toolname = "Drage"
- Able = true
- Selected = false
- Deb = true
- Hurt = false
- CritMultiplier = 999
- ComboOn = false
- AbleToBreak = false
- CounterKey = false
- Attack = 1
- AddDamage = 0
- AddDamageX = 1
- AddShield = 0
- Dmgs = {Smash = {"Smash", 25, 2, 3, false}, Slash = {"Slash", 18, 1, 3, false}, SideSlash = {"SideSlash", 18, 1, 3, false},
- DoubleSlash = {"Double Slash", 20, 1, 2, false}, Spin = {"Spin Slash", 30, 2, 5, true, 30}, Boom = {"Boom", 60, 6, 6, true, 50, 16},
- RageMode = {"RAGE", 8, 1.35, 1, 50}, Counter = {"Counter", 25, 1, 1, true, 15}, RageSlash = {"Rage Slash", 40, 3, 7, true, 30}}
- RageMode = false
- Mode = Dmgs.Slash
- AbleAll = true
- necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- Aim = false
- LineColor = "White"
- EffectColor3 = "Bright red"
- EffectColor2 = "White"
- EffectColor = "Pastel Blue"
- MainColor = "Navy blue"
- BladeColor = "Pastel Blue"
- BlockBars = {}
- MaxRage = 100
- Rage = MaxRage
- CritChance = 5 --Percent
- for _, v in pairs(char:children()) do
- if v.Name == "Block" then v:remove() end
- end
- BlockRealPowa = 4
- Block = Instance.new("BoolValue")
- Block.Name = "Block"
- Block.Value = false
- BlockPower = Instance.new("IntValue")
- BlockPower.Name = "BlockPower"
- BlockPower.Value = BlockRealPowa
- BlockPower.Parent = Block
- Block.Parent = char
- CA = CFrame.Angles
- CN = CFrame.new
- MR = math.rad
- MP = math.pi
- MD = math.deg
- MH = math.huge
- MRA = math.random
- EffPos = CFrame.new(0, 0.5, 0)
- Sounds = {
- Equip = {"rbxasset://sounds//unsheath.wav", 0.7, 0.6},
- Hit = {"http://www.roblox.com/asset/?id=2801263", 0.9, 0.6},
- Block = {"", 1, 0.5},
- Slash = {"rbxasset://sounds//swordslash.wav", 2, 0.8},
- SmashHit = {"rbxasset://sounds\\metal.ogg", 1.5, 0.8},
- Jump = {"rbxasset://sounds/swoosh.wav", 1, 1},
- Boom = {"http://www.roblox.com/asset?id=1369158", 1.2, 1},
- SmashBoom = {"http://www.roblox.com/asset/?id=2760979", 0.25, 1},
- Jump2 = {"http://www.roblox.com/asset/?id=2101148", 2, 1},
- GoRage = {"http://www.roblox.com/asset/?id=2767090", 1, 1},
- Shout = {"http://www.roblox.com/asset/?id=2676305", 1.1, 0.8},
- RageOff = {"http://www.roblox.com/asset/?id=3264793", 1.6, 0.6},
- }
- Add = {
- Sphere = function(P)
- local m = Instance.new("SpecialMesh",P)
- m.MeshType = "Sphere"
- return m
- end,
- BP = function(P)
- local bp = Instance.new("BodyPosition",P)
- bp.maxForce = Vector3.new(MH, MH, MH)
- bp.P = 14000
- return bp
- end,
- BG = function(P)
- local bg = Instance.new("BodyGyro",P)
- bg.maxTorque = Vector3.new(MH, MH, MH)
- bg.P = 14000
- return bg
- end,
- Mesh = function(P, ID, x, y, z)
- local m = Instance.new("SpecialMesh")
- m.MeshId = ID
- m.Scale = Vector3.new(x, y, z)
- m.Parent = P
- return m
- end,
- Head = function(P)
- local s = Instance.new("SpecialMesh")
- s.MeshType = "Head"
- s.Parent = P
- return s
- end,
- Sound = function(P, ID, vol, pitch)
- local s = Instance.new("Sound")
- s.SoundId = ID
- s.Volume = vol
- s.Pitch = pitch
- s.Parent = P
- return s
- end
- }
- function RC(Pos, Dir, Max, Ignore)
- return workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999)), Ignore)
- end
- function RayC(Start, En, MaxDist, Ignore)
- return RC(Start, (En - Start), MaxDist, Ignore)
- end
- function Notime(func, tim)
- coroutine.resume(coroutine.create(function()
- if tim then
- wait(tim)
- end
- func()
- end))
- end
- function waitChild(parent, name)
- local child = parent:findFirstChild(name)
- if child then return child end
- while true do
- child = parent.ChildAdded:wait()
- if child.Name == name then return child end
- end
- end
- function ComputePos(pos1, pos2)
- local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
- return CFrame.new(pos1, pos3)
- end
- function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
- local p = Instance.new("Part")
- p.formFactor = "Custom"
- p.Anchored = Anchor
- p.CanCollide = Collide
- p.Transparency = Tran
- p.Reflectance = Ref
- p.BrickColor = BrickColor.new(Color)
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Size = Vector3.new(X, Y, Z)
- if Break then
- p:BreakJoints()
- else p:MakeJoints() end
- p.Parent = Parent
- p.Locked = true
- return p
- end
- function Weld(p0, p1, x, y, z, a, b, c)
- local w = Instance.new("Weld")
- w.Parent = p0
- w.Part0 = p0
- w.Part1 = p1
- w.C1 = CN(x,y,z) * CA(a,b,c)
- return w
- end
- torso = char.Torso
- neck = torso.Neck
- hum = char.Humanoid
- Rarm = char["Right Arm"]
- Larm = char["Left Arm"]
- Rleg = char["Right Leg"]
- Lleg = char["Left Leg"]
- hc = Instance.new("Humanoid")
- hc.Health = 0
- hc.MaxHealth = 0
- function getHumanoid(c)
- local h = nil
- for i,v in pairs(c:children()) do
- if v:IsA("Humanoid") and c ~= char then
- if v.Health > 0 then
- h = v
- end
- end
- end
- return h
- end
- function getCharacters(where, pos, dist)
- local chars = {}
- for _, v in pairs(where:children()) do
- local hum = getHumanoid(v)
- local tors = v:findFirstChild("Torso")
- if tors ~= nil and hum ~= nil then
- local anypart = nil
- for _,k in pairs(v:children()) do
- if k:IsA("BasePart") then
- if (k.Position - pos).magnitude <= dist then
- anypart = k
- break
- end
- end
- end
- if anypart then
- table.insert(chars, {v, tors, hum})
- end
- end
- end
- return chars
- end
- function PlaySound(id, pitch, vol)
- local s = Add.Sound(nil, id, vol, pitch)
- if pitch ~= nil then
- if tonumber(pitch) then
- s.Pitch = tonumber(pitch)
- end
- end
- if vol ~= nil then
- if tonumber(vol) then
- s.Volume = tonumber(vol)
- end
- end
- s.Parent = torso
- s.PlayOnRemove = true
- Notime(function()
- wait()
- s:remove()
- end)
- end
- function playz(sound)
- PlaySound(sound[1], sound[2], sound[3])
- end
- PlrGui = waitChild(me, "PlayerGui")
- for _, v in pairs(char:children()) do if v.Name == Modelname then v:remove() end end
- for _, v in pairs(PlrGui:children()) do
- if v.Name == "HealthGUI" or v.Name == "MyGui" then
- v:remove()
- end
- end
- function EditGui(obj, parent, size, position, bgcolor, bordercolor, transparency, text, textcolor, auto)
- obj.Size = size
- obj.Position = position
- obj.BackgroundColor3 = bgcolor
- obj.BorderColor3 = bordercolor
- obj.BackgroundTransparency = transparency
- if obj:IsA("TextLabel") or obj:IsA("TextButton") then
- obj.Text = text
- obj.TextColor3 = textcolor
- end
- if obj:IsA("ImageButton") or obj:IsA("TextButton") then
- obj.AutoButtonColor = auto
- obj.MouseButton1Down:connect(function()
- RemoveOptions()
- end)
- end
- obj.Parent = parent
- end
- C3 = Color3.new
- UD = UDim2.new
- Sc = Instance.new("ScreenGui", PlrGui)
- Sc.Name = "MyGui"
- Fr = Instance.new("Frame")
- EditGui(Fr, Sc, UD(0, 60, 0, 250), UD(1, -70, 0.5, -125), C3(0.1, 0.2, 0.5), C3(), 0)
- HealthBack = Instance.new("Frame")
- EditGui(HealthBack, Fr, UD(0, 25, 1, -20), UD(0, 3, 0, 10), C3(0.2, 0, 0), C3(), 0)
- RageBack = Instance.new("Frame")
- EditGui(RageBack, Fr, UD(0, 25, 1, -20), UD(1, -27, 0, 10), C3(0.2, 0, 0), C3(), 0)
- local hp = hum.Health/hum.MaxHealth
- if hp > 1 then hp = 1 elseif hp < 0 then hp = 0 end
- HealthBar = Instance.new("ImageLabel")
- EditGui(HealthBar, HealthBack, UD(1, 0, hp, 0), UD(0, 0, 0, 0), C3(0.1, 0.65, 0), C3(), 0)
- HealthBar.Image = "http://www.roblox.com/asset/?id=50051953"
- RageBar = Instance.new("ImageLabel")
- EditGui(RageBar, RageBack, UD(1, 0, Rage/MaxRage, 0), UD(0, 0, 0, 0), C3(1, 0.6, 0.15), C3(), 0)
- RageBar.Image = "http://www.roblox.com/asset/?id=50051953"
- RageAmount = Instance.new("TextLabel")
- EditGui(RageAmount, RageBack, UD(1, 0, 0, 0), UD(0, 0, 0, 0), C3(1, 0.6, 0.15), C3(), 0, Rage, C3(1,1,1))
- RageAmount.TextYAlignment = "Top"
- AimButton = Instance.new("TextButton")
- EditGui(AimButton, Fr, UD(1, 0, 0, 35), UD(0, 0, 1, 0), C3(0.9, 0.2, 0.3), C3(), 0, "AIM: OFF", C3(), true)
- AimButton.TextWrap = true
- AimButton.Font = "ArialBold"
- AimButton.FontSize = "Size14"
- AimButton.MouseButton1Down:connect(function()
- if Aim then
- Aim = false
- AimButton.Text = "AIM: OFF"
- AimButton.BackgroundColor3 = C3(0.9, 0.2, 0.3)
- else
- Aim = true
- AimButton.Text = "AIM: ON"
- AimButton.BackgroundColor3 = C3(0.3, 0.85, 0.1)
- end
- end)
- for i = 1, BlockRealPowa do
- local gui = Instance.new("ImageLabel")
- EditGui(gui, Fr, UD(0, 16, 0, 16), UD(0, -18, 0.5, 20*(i-1)-((BlockRealPowa*20)/2)), C3(), C3(), 1)
- gui.Image = "http://www.roblox.com/asset/?id=48908046"
- table.insert(BlockBars, gui)
- end
- BlockPower.Changed:connect(function()
- for _, v in pairs(BlockBars) do
- v.Image = ""
- end
- for i = 1, BlockPower.Value do
- local gui = BlockBars[i]
- if gui then
- gui.Image = "http://www.roblox.com/asset/?id=48908046"
- end
- end
- end)
- Mo = Instance.new("Model")
- Mo.Name = Modelname
- RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
- LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
- RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
- LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
- RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
- LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
- RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
- LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
- RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
- LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
- RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
- LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
- HB = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
- HBW = Weld(Rarm, HB, 0, 0, 1, MP/2, 0, 0)
- HW = Weld(HB, nil, 0, 0, 0, 0, 0, 0)
- SW = Weld(Larm, nil, -0.5, 0, 0.3, MP/2, 0, 0)
- TH = Weld(torso, nil, 0, 2.5, 0, MR(145), 0, 0)
- TH.C0 = CN(0, -0.3, 0.75) * CA(0, MP/2, 0)
- Weapon = Instance.new("Model")
- Weapon.Name = "Weapon"
- Handle = Part(Weapon, false, false, 0, 0, MainColor, 0.4, 1.8, 0.4)
- Add.Head(Handle)
- Tip1 = Part(Weapon, false, false, 0, 0, "Deep blue", 0.45, 1.2, 0.45)
- Add.Head(Tip1)
- Weld(Handle, Tip1, 0, 0, 0, 0, 0, 0)
- Tip2 = Part(Weapon, false, false, 0, 0, "Bright blue", 0.5, 0.5, 0.5)
- Weld(Handle, Tip2, 0, 0.9, 0, 0, 0, 0)
- Add.Mesh(Tip2, "http://www.roblox.com/asset/?id=9756362", 0.75, 0.5, 0.75)
- Tip3 = Part(Weapon, false, false, 0, 0, "Deep blue", 0.7, 0.3, 1.2)
- Weld(Handle, Tip3, 0, -0.9, 0, 0, 0, 0)
- Add.Mesh(Tip3, "http://www.roblox.com/asset/?id=9756362", 0.7, 0.35, 1.35)
- Tip4 = Part(Weapon, false, false, 0, 0, "Deep blue", 0.6, 0.2, 1.8)
- Weld(Handle, Tip4, 0, -0.9, 0, 0, 0, 0)
- Tip5 = Part(Weapon, false, false, 0, 0, "Bright blue", 0.6, 0.6, 0.3)
- Weld(Tip4, Tip5, 0, -0.4, -0.85, MR(-15), 0, 0)
- Tip6 = Part(Weapon, false, false, 0, 0, "Bright blue", 0.6, 0.6, 0.3)
- Weld(Tip4, Tip6, 0, -0.4, 0.85, MR(15), 0, 0)
- Blades = {}
- for i = 0, 180, 180 do
- for x = -20, 20, 40 do
- local lol = i-90
- local lol2 = math.abs(lol/480)
- local lol3 = x/90
- local Blade1 = Part(Weapon, false, false, 0, 0.3, BladeColor, 0.2, 3.5, 0.6)
- Instance.new("BlockMesh",Blade1).Scale = Vector3.new(0.2, 1, 0.99)
- local w = Weld(Tip4, Blade1, lol2, 0, -lol3, 0, 0, 0)
- w.C0 = CN(0, 1.7, 0) * CA(0, MR(i+x), 0)
- table.insert(Blades, Blade1)
- end
- end
- Tip7 = Part(Weapon, false, false, 0, 0.3, BladeColor, 0.3, 1.3, 0.7)
- Add.Mesh(Tip7, "http://www.roblox.com/asset/?id=9756362", 0.31, 1.4, 0.8)
- Weld(Tip4, Tip7, 0, -3.45, 0, 0, 0, 0)
- table.insert(Blades, Tip7)
- TH.Part1 = Handle
- Shield = Instance.new("Model")
- Shield.Name = "Shield"
- SHandle = Part(Weapon, false, false, 0, 0, "Really black", 0.2, 0.9, 0.4)
- SW.Part1 = SHandle
- for i = 65, 115, 25 do
- local STip1 = Part(Weapon, false, false, 0, 0, "Really black", 0.2, 0.5, 0.4)
- local w = Weld(SHandle, STip1, 0.8, 0, 0, 0, 0, 0)
- w.C0 = CN(-0.5, 0.2, 0) * CA(0, 0, MR(i))
- end
- for i = -65, -115, -25 do
- local STip1 = Part(Weapon, false, false, 0, 0, "Really black", 0.2, 0.5, 0.4)
- local w = Weld(SHandle, STip1, 0.8, 0, 0, 0, 0, 0)
- w.C0 = CN(-0.5, -0.2, 0) * CA(0, 0, MR(i))
- end
- SHandle2 = Part(Weapon, false, false, 0, 0, "Really black", 0.2, 0.9, 0.4)
- Weld(SHandle, SHandle2, 1, 0, 0, 0, 0, 0)
- ShieldMain = Part(Weapon, false, false, 0, 0, "Medium grey", 0.3, 3.5, 1.1)
- ShieldW = Weld(SHandle2, ShieldMain, 0, 0, 0, 0, 0, 0)
- ShieldW.C0 = CN(0, -0.2, 0) * CA(0, MR(-5), 0)
- STip1 = Part(Weapon, false, false, 0, 0, "Navy blue", 0.35, 0.4, 1.15)
- Weld(ShieldMain, STip1, 0, -1.75, 0, 0, 0, 0)
- STip2 = Part(Weapon, false, false, 0, 0, "Navy blue", 0.35, 0.4, 1.15)
- Weld(ShieldMain, STip2, 0, 1.75, 0, 0, 0, 0)
- for i = -15, 15, 30 do
- local ShieldPlate = Part(Weapon, false, false, 0, 0, "Medium grey", 0.3, 3.5, 1.1)
- local w = Weld(ShieldMain, ShieldPlate, 3.5, 0, 0, 0, 0, 0)
- w.C0 = CN(3.5, 0, 0) * CA(0, math.rad(i), 0)
- for x = -1.75, 1.75, 1.75*2 do
- local STip3 = Part(Weapon, false, false, 0, 0, "Navy blue", 0.35, 0.4, 1.15)
- Weld(ShieldPlate, STip3, 0, x, 0, 0, 0, 0)
- end
- local i2 = i/40
- local STip3 = Part(Weapon, false, false, 0, 0, "Navy blue", 0.35, 3.9, 0.4)
- Weld(ShieldPlate, STip3, 0, 0, -i2, 0, 0, 0)
- end
- Weapon.Parent = Mo
- Shield.Parent = Mo
- Mo.Parent = char
- function ShowDamage(Dmg, Par, Crit, block)
- local Pos = Par.CFrame * CN(0, 2.5, 0)
- local M = Instance.new("Model")
- local Loldmg = Dmg
- if Loldmg < 0 then
- Loldmg = 0
- end
- if tostring(Loldmg):sub(1,1) == "-" then
- Loldmg = tostring(Loldmg):sub(2)
- end
- M.Name = Loldmg
- local Col = "Bright red"
- if Crit then Col = "Bright yellow" elseif block then Col = "Bright blue" end
- local P = Part(M, false, false, 0, 0, Col, 0.8, 0.3, 0.8, true)
- P.CFrame = CN(Par.Position)
- P.Name = "Head"
- local BP = Add.BP(P)
- BP.position = Pos.p
- BP.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- BP.P = 11000
- Add.BG(P)
- local H = hc:clone()
- H.Parent = M
- H.MaxHealth = 0
- H.Health = 0
- M.Parent = workspace
- Notime(function()
- wait(1.5)
- M:remove()
- end)
- end
- function Damage(P, Hum, dmg, crit, block)
- if Hum then
- if Hum.Health > 0 then
- local Damg = dmg
- if crit then
- Damg = dmg*CritMultiplier
- end
- Damg = math.ceil(((Damg+AddDamage)*AddDamageX)-0.5)
- Hum.Health = Hum.Health - Damg
- ShowDamage(Damg, P, crit, block)
- end
- end
- end
- function ShieldDamage(mode, blockval, blockpowerval, crit)
- if blockval and blockpowerval then
- local ShieldDmg = mode[3]+AddShield
- if crit then
- ShieldDmg = mode[4]+AddShield
- end
- if blockpowerval then
- blockpowerval.Value = blockpowerval.Value - ShieldDmg
- if blockpowerval.Value < 1 then
- blockval.Value = false
- end
- end
- end
- end
- function getBlock(c)
- local block, blockpow = nil
- local blockin = false
- for _,v in pairs(c:children()) do
- if v.Name == "Block" and v:IsA("BoolValue") then
- block = v
- blockin = v.Value
- local bp = v:findFirstChild("BlockPower")
- if bp then
- blockpow = bp
- end
- end
- end
- return block, blockpow, blockin
- end
- function TouchDamage(hit)
- local Hum = getHumanoid(hit.Parent)
- if Hum and Deb and Hurt then
- Deb = false
- local Crit = false
- local BlockVal, BlockPowaVal, Blawk = getBlock(Hum.Parent)
- local BlockPowa = 0
- local blocksound = Sounds.SmashHit
- if math.random(1,100/CritChance) == 1 then
- Crit = true
- end
- local Damg = math.random(Mode[2]/3, Mode[2])
- if Blawk then
- Damg = 0
- ShieldDamage(Mode, BlockVal, BlockPowaVal, Crit)
- if BlockPowaVal then
- if BlockPowaVal.Value < 1 then
- blocksound = Sounds.Equip
- end
- end
- end
- if Mode[5] == false and RageMode == false and Blawk == false then
- Rage = Rage + math.ceil(Damg*0.75-0.5)
- end
- if Blawk then
- PlaySound(blocksound[1], blocksound[2]-0.15, blocksound[3])
- else
- PlaySound(Sounds.Hit[1], Sounds.Hit[2], Sounds.Hit[3])
- end
- Damage(hit, Hum, Damg, Crit, Blawk)
- if Mode == Dmgs.Spin then
- Notime(function()
- wait(0.35)
- Deb = true
- end)
- end
- end
- end
- for _, v in pairs(Blades) do
- v.Touched:connect(TouchDamage)
- end
- if script.Parent.className ~= "HopperBin" then
- H = Instance.new("HopperBin", me.Backpack)
- H.Name = Toolname
- script.Parent = H
- end
- Bin = script.Parent
- EffectOn = false
- function StartEffect(color)
- EffectOn = true
- local lastPoint = Tip7.CFrame * EffPos.p
- Notime(function()
- while EffectOn do
- wait()
- local pos = Tip7.CFrame * EffPos.p
- local magn = (lastPoint - pos).magnitude
- local col = LineColor
- if color and col ~= EffectColor3 then
- col = color
- end
- local p = Part(workspace, true, false, 0.1, 0, col, 0.3, 1, 0.3, true)
- local mesh = Add.Head(p)
- mesh.Scale = Vector3.new(1, magn+0.1, 1)
- p.CFrame = CN(lastPoint, pos) * CA(-MP/2, 0, 0) * CN(0, magn/2+0.05, 0)
- lastPoint = pos
- Notime(function()
- wait(0.05)
- for i = 0, 1, 0.12 do
- p.Transparency = 0.1+0.9*i
- mesh.Scale = Vector3.new(1-1*i, magn+0.1-0.1*i, 1-1*i)
- wait()
- end
- p:remove()
- end)
- end
- end)
- end
- function EndEffect()
- EffectOn = false
- end
- function Detach()
- RAW.Part1 = nil
- LAW.Part1 = nil
- RLW.Part1 = nil
- LLW.Part1 = nil
- RAW.C0 = CN()
- LAW.C0 = CN()
- RLW.C0 = CN()
- LLW.C0 = CN()
- end
- function Normalize()
- RAW.C0 = CA(MR(40), MR(50), 0)
- LAW.C0 = CA(MR(20), MR(-20), MR(-20))
- HW.C0 = CA(0, 0, 0)
- neck.C0 = necko
- end
- SelectAnim = function()
- RAW.Part1 = Rarm
- HW.Part1 = nil
- TH.Part1 = Handle
- for i = 0.1, 1, 0.14 do
- RAW.C0 = CA(MR(220*i), MR(-30*i), MR(-35*i)) * CN(0.4*i, 0, 0)
- neck.C0 = necko * CA(MR(-10*i), 0, MR(-60*i))
- wait()
- end
- PlaySound(Sounds.Equip[1], Sounds.Equip[2], Sounds.Equip[3])
- HW.C0 = CN(0.4, 0, 0) * CA(MR(-60), MR(10), MR(100))
- HW.Part1 = Handle
- TH.Part1 = nil
- LAW.Part1 = Larm
- for i = 0.09, 1, 0.11 do
- RAW.C0 = CA(MR(220-70*i), MR(-30+25*i), MR(-35+70*i)) * CN(0.4-0.4*i, 0, 0)
- HW.C0 = CN(0.4-0.4*i, 0, 0) * CA(MR(-60+40*i), MR(10-10*i), MR(100-40*i))
- LAW.C0 = CA(MR(20*i), MR(-20*i), MR(-20*i))
- neck.C0 = necko * CA(MR(-10+10*i), 0, MR(-60+40*i))
- wait()
- end
- for i = 0.14, 1, 0.25 do
- RAW.C0 = CA(MR(150-60*i), MR(-5+15*i), MR(35-10*i))
- HW.C0 = CA(MR(-20+20*i), 0, MR(60-30*i))
- neck.C0 = necko * CA(0, 0, MR(-60+40+5*i))
- wait()
- end
- for i = 0.1, 1, 0.14 do
- RAW.C0 = CA(MR(90-50*i), MR(10+40*i), MR(25-25*i))
- HW.C0 = CA(0, 0, MR(30-30*i))
- neck.C0 = necko * CA(0, 0, MR(-15+15*i))
- wait()
- end
- Normalize()
- end
- DeselectAnim = function()
- for i = 0.09, 1, 0.14 do
- RAW.C0 = CA(MR(40+100*i), MR(50-50*i), MR(20*i))
- LAW.C0 = CA(MR(20-20*i), MR(-20+20*i), MR(-20+20*i))
- HW.C0 = CN(0.4*i, 0, 0) * CA(MR(-30*i), MR(5*i), MR(20*i))
- neck.C0 = necko * CA(MR(-5*i), 0, MR(-35*i))
- wait()
- end
- LAW.Part1 = nil
- for i = 0.08, 1, 0.14 do
- RAW.C0 = CA(MR(140+80*i), MR(-30*i), MR(20-55*i))
- HW.C0 = CN(0.4, 0, 0) * CA(MR(-30-30*i), MR(5+5*i), MR(20+80*i))
- neck.C0 = necko * CA(MR(-5-10*i), 0, MR(-35-25*i))
- wait()
- end
- HW.Part1 = nil
- TH.Part1 = Handle
- for i = 0.09, 1, 0.18 do
- RAW.C0 = CA(MR(220-220*i), MR(-30+30*i), MR(20-55+35*i))
- neck.C0 = necko * CA(MR(-5-10+15*i), 0, MR(-35-25+60*i))
- wait()
- end
- neck.C0 = necko
- Detach()
- end
- function setatk(s, e)
- Notime(function()
- Attack = e
- wait(0.25)
- Attack = s
- end)
- end
- Attacks = {
- function()
- Attack = 1
- Able = false
- for i = 0.1, 1, 0.2 do
- RAW.C0 = CA(MR(40+90*i), MR(50-60*i), 0)
- HW.C0 = CA(0, 0, 0)
- LAW.C0 = CA(MR(20+55*i), MR(-20), MR(-20+60*i))
- neck.C0 = necko * CA(MR(-10*i), 0, MR(-25*i))
- wait()
- end
- PlaySound(Sounds.Slash[1], Sounds.Slash[2], Sounds.Slash[3])
- for i = 0.16, 1, 0.33 do
- RAW.C0 = CA(MR(130+5*i), MR(-10-20*i), 0)
- HW.C0 = CA(0, 0, 0)
- LAW.C0 = CA(MR(75+5*i), MR(-20), MR(40+5*i))
- neck.C0 = necko * CA(MR(-10-5*i), 0, MR(-25-5*i))
- wait()
- end
- Hurt = true
- Deb = true
- StartEffect()
- Mode = Dmgs.Slash
- for i = 0.11, 1, 0.22 do
- RAW.C0 = CA(MR(135-115*i), MR(-30), MR(-50*i)) * CN(0, -0.7*i, 0)
- HW.C0 = CA(MR(-70*i), 0, 0)
- LAW.C0 = CA(MR(80-120*i), MR(-20+20*i), MR(45-45*i))
- neck.C0 = necko * CA(MR(-15+30*i), 0, MR(-30+45*i))
- wait()
- end
- EndEffect()
- Hurt = false
- setatk(1,2)
- Able = true
- for i = 0.2, 1, 0.25 do
- RAW.C0 = CA(MR(20-18*i), MR(-30), MR(-50-3*i)) * CN(0, -0.7-0.05*i, 0)
- HW.C0 = CA(MR(-70-5*i), 0, 0)
- neck.C0 = necko * CA(MR(15+3*i), 0, MR(15+3*i))
- wait()
- end
- wait(0.1)
- for i = 0.1, 1, 0.15 do
- if Able == false then return end
- RAW.C0 = CA(MR(2+38*i), MR(-30+80*i), MR(-53+53*i)) * CN(0, -0.75+0.75*i, 0)
- HW.C0 = CA(MR(-75+75*i), 0, 0)
- LAW.C0 = CA(MR(-40+60*i), MR(-20+20-20*i), MR(-20*i))
- neck.C0 = necko * CA(MR(15+3-18*i), 0, MR(15+3-18*i))
- wait()
- end
- Normalize()
- end,
- function()
- Attack = 2
- Able = false
- PlaySound(Sounds.Slash[1], Sounds.Slash[2]+0.1, Sounds.Slash[3])
- for i = 0.05, 1, 0.1 do
- RAW.C0 = CA(MR(10+80*i), MR(-30+30*i), MR(-55+35*i)) * CN(0, -0.75+0.35*i, 0)
- LAW.C0 = CA(MR(-40), 0, 0)
- HW.C0 = CA(MR(-75+75*i), 0, MR(90*i))
- neck.C0 = necko * CA(MR(18-13*i), 0, MR(18+22*i))
- wait()
- end
- Hurt = true
- Deb = true
- StartEffect()
- Mode = Dmgs.SideSlash
- for i = 0.09, 1, 0.17 do
- RAW.C0 = CA(MR(90-40*i), 0, MR(-20+110*i)) * CN(0, -0.4+0.4*i, 0)
- HW.C0 = CA(0, MR(-65*i), MR(90))
- LAW.C0 = CA(MR(-40+120*i), MR(-20*i), MR(50*i)) * CN(0, -0.6*i, 0)
- neck.C0 = necko * CA(MR(5), 0, MR(40-90*i))
- wait()
- end
- EndEffect()
- Hurt = false
- Deb = false
- setatk(1,3)
- Able = true
- for i = 0.12, 1, 0.25 do
- RAW.C0 = CA(MR(50-5*i), 0, MR(90+10*i))
- HW.C0 = CA(0, MR(-65-5*i), MR(90))
- LAW.C0 = CA(MR(-40+120), MR(-20), MR(50+5*i)) * CN(0, -0.6, 0)
- neck.C0 = necko * CA(MR(5), 0, MR(40-90-5*i))
- wait()
- end
- wait(0.08)
- for i = 0.05, 1, 0.1 do
- if Able == false then return end
- RAW.C0 = CA(MR(45-5*i), MR(50*i), MR(100-100*i)) * CN(0, 0, 0)
- HW.C0 = CA(0, MR(-70+70*i), MR(90-90*i))
- LAW.C0 = CA(MR(-40+120-60*i), MR(-20), MR(55-75*i)) * CN(0, -0.6+0.6*i, 0)
- neck.C0 = necko * CA(MR(5-5*i), 0, MR(-55+55*i))
- wait()
- end
- Normalize()
- end,
- function()
- Able = false
- for i = 0.05, 1, 0.08 do
- RAW.C0 = CA(MR(50+130*i), 0, MR(90-125*i)) * CN(0, -1*i, 0)
- HW.C0 = CA(0, MR(-65-35*i), MR(90-90*i))
- LAW.C0 = CA(MR(80+100*i), MR(-20+20*i), MR(50-15*i)) * CN(0, -0.6-0.4*i, 0)
- neck.C0 = necko * CA(MR(5-25*i), 0, MR(-50+50*i))
- wait()
- end
- PlaySound(Sounds.Slash[1], Sounds.Slash[2]+0.05, Sounds.Slash[3])
- for i = 0.13, 1, 0.25 do
- RAW.C0 = CA(MR(180+10*i), 0, MR(-35)) * CN(0, -1, 0)
- HW.C0 = CA(0, MR(-100), 0)
- LAW.C0 = CA(MR(180+10*i), 0, MR(35)) * CN(0, -1, 0)
- neck.C0 = necko * CA(MR(5-25-5*i), 0, 0)
- wait()
- end
- StartEffect()
- Hurt = true
- Deb = true
- Mode = Dmgs.Smash
- for i = 0.06, 1, 0.12 do
- RAW.C0 = CA(MR(190-160*i), 0, MR(-35)) * CN(0, -1+0.2*i, 0)
- HW.C0 = CA(MR(-20*i), MR(-100-40*i), MR(40*i))
- LAW.C0 = CA(MR(190-160*i), 0, MR(35)) * CN(0, -1+0.2*i, 0)
- neck.C0 = necko * CA(MR(-25+45*i), 0, 0)
- wait()
- end
- PlaySound(Sounds.SmashHit[1], Sounds.SmashHit[2], Sounds.SmashHit[3])
- EndEffect()
- Hurt = false
- Deb = false
- for i = 0.2, 1, 0.5 do
- RAW.C0 = CA(MR(30+15*i), 0, MR(-35)) * CN(0, -0.8+0.4*i, 0)
- HW.C0 = CA(MR(-20), MR(-140), MR(40))
- LAW.C0 = CA(MR(30+15*i), 0, MR(35)) * CN(0, -0.8+0.4*i, 0)
- neck.C0 = necko * CA(MR(20), 0, 0)
- wait()
- end
- setatk(1,4)
- Able = true
- for i = 0.16, 1, 0.33 do
- if not Able then return end
- RAW.C0 = CA(MR(30+15-15*i), 0, MR(-35)) * CN(0, -0.8+0.4-0.2*i, 0)
- HW.C0 = CA(MR(-20), MR(-140), MR(40))
- LAW.C0 = CA(MR(30+15-15*i), 0, MR(35)) * CN(0, -0.8+0.4-0.2*i, 0)
- neck.C0 = necko * CA(MR(20), 0, 0)
- wait()
- end
- for i = 0.05, 1, 0.1 do
- if not Able then return end
- RAW.C0 = CA(MR(30+10*i), MR(50*i), MR(-35+35*i)) * CN(0, -0.8+0.4-0.2+0.6*i, 0)
- HW.C0 = CA(MR(-20+20*i), MR(-140+140*i), MR(40-40*i))
- LAW.C0 = CA(MR(30+15-15-10*i), MR(-20*i), MR(35-55*i)) * CN(0, -0.8+0.4-0.2+0.6*i, 0)
- neck.C0 = necko * CA(MR(20-20*i), 0, 0)
- wait()
- end
- Normalize()
- end,
- function()
- Able = false
- for i = 0.06, 1, 0.12 do
- RAW.C0 = CA(MR(30), MR(-20*i), MR(-35-25*i)) * CN(0, -0.8, 0)
- HW.C0 = CA(MR(-20-60*i), MR(-140-40*i), MR(40-40*i))
- LAW.C0 = CA(MR(30-110*i), 0, MR(35-35*i)) * CN(0, -0.8+0.8*i, 0)
- neck.C0 = necko * CA(MR(20-15*i), 0, MR(10*i))
- wait()
- end
- Mode = Dmgs.DoubleSlash
- StartEffect()
- playz(Sounds.Slash)
- Hurt = true
- Deb = true
- for i = 0.07, 1, 0.14 do
- RAW.C0 = CA(MR(30+120*i), MR(-20), MR(-60+80*i)) * CN(0, -0.8+0.8*i, 0)
- HW.C0 = CA(MR(-80+60*i), MR(180), 0)
- LAW.C0 = CA(MR(-50+100*i), 0, MR(30*i))
- neck.C0 = necko * CA(MR(5-25*i), 0, MR(10-30*i))
- wait()
- end
- EndEffect()
- Hurt = false
- for i = 0.17, 1, 0.33 do
- RAW.C0 = CA(MR(150+15*i), MR(-20), MR(20+5*i))
- HW.C0 = CA(MR(-20), MR(180), 0)
- LAW.C0 = CA(MR(50+5*i), 0, MR(30+10*i))
- neck.C0 = necko * CA(MR(-20-5*i), 0, MR(-20))
- wait()
- end
- for i = 0.13, 1, 0.25 do
- RAW.C0 = CA(MR(165-15*i), MR(-20+50*i), MR(25-75*i))
- HW.C0 = CA(MR(-20-20*i), MR(180), 0)
- LAW.C0 = CA(MR(55+45*i), 0, MR(40-30*i))
- neck.C0 = necko * CA(MR(-25), 0, MR(-20+35*i))
- wait()
- end
- StartEffect()
- Hurt = true
- Deb = true
- playz(Sounds.Slash)
- for i = 0.08, 1, 0.16 do
- RAW.C0 = CA(MR(150-110*i), MR(30), MR(-50+65*i))
- HW.C0 = CA(MR(-40-40*i), MR(180), 0)
- LAW.C0 = CA(MR(100-50*i), MR(-30*i), MR(10+30*i)) * CN(0, -1.1*i, 0)
- neck.C0 = necko * CA(MR(-25+45*i), 0, MR(15-30*i))
- wait()
- end
- EndEffect()
- Hurt = false
- for i = 0.13, 1, 0.25 do
- RAW.C0 = CA(MR(40-5*i), MR(30), MR(15+5*i))
- HW.C0 = CA(MR(-80-5*i), MR(180), 0)
- LAW.C0 = CA(MR(50), MR(-30), MR(40)) * CN(0, -1.1-0.1*i, 0)
- neck.C0 = necko * CA(MR(20+5*i), 0, MR(-15-5*i))
- wait()
- end
- for i = 0.09, 1, 0.16 do
- RAW.C0 = CA(MR(35+5*i), MR(30+20*i), MR(20-20*i))
- HW.C0 = CA(MR(-85+85*i), MR(180+180*i), 0)
- LAW.C0 = CA(MR(50-30*i), MR(-30+10*i), MR(40-60*i)) * CN(0, -1.2+1.2*i, 0)
- neck.C0 = necko * CA(MR(25-25*i), 0, MR(-20+20*i))
- wait()
- end
- Normalize()
- Able = true
- Attack = 1
- end
- }
- SpinSlash = function(plaic)
- if Rage < Dmgs.Spin[6] then return end
- Rage = Rage - Dmgs.Spin[6]
- local cf = torso.CFrame
- local CF = ComputePos(cf.p, cf * CN(0, 0, -2))
- if plaic then
- CF = ComputePos(cf.p, plaic)
- end
- AbleAll = false
- local bg = Add.BG(torso)
- bg.cframe = CF
- for i = 0.07, 1, 0.14 do
- RAW.C0 = CA(MR(40+50*i), MR(50-65*i), 0)
- HW.C0 = CA(0, 0, MR(90*i))
- LAW.C0 = CA(MR(20-20*i), MR(-20+20*i), MR(-20-60*i))
- neck.C0 = necko * CA(0, 0, MR(-30*i))
- bg.cframe = CF * CA(0, MR(30*i), 0)
- wait()
- end
- StartEffect()
- Hurt = true
- Deb = true
- Mode = Dmgs.Spin
- Notime(function()
- while Hurt do
- PlaySound(Sounds.Slash[1], Sounds.Slash[2]+0.35, Sounds.Slash[3])
- wait(0.15)
- end
- end)
- for i = 0.04, 1, 0.06 do
- RAW.C0 = CA(MR(90-10*i), MR(-15), MR(90*i))
- HW.C0 = CA(0, MR(-70*i), MR(90))
- LAW.C0 = CA(MR(90*i), 0, MR(-20-60+120*i)) * CN(0, -0.7*i, 0)
- neck.C0 = necko * CA(0, 0, MR(-30+20*i))
- bg.cframe = CF * CA(0, MR(30-380*i), 0)
- wait()
- end
- EndEffect()
- for i = 0.09, 1, 0.17 do
- RAW.C0 = CA(MR(80), MR(-15), MR(90))
- HW.C0 = CA(0, MR(-70-10*i), MR(90))
- LAW.C0 = CA(MR(90), 0, MR(-20-60+120+20*i)) * CN(0, -0.7, 0)
- neck.C0 = necko * CA(0, 0, MR(-10+60*i))
- bg.cframe = CF * CA(0, MR(-350-60*i), 0)
- wait()
- end
- Hurt = false
- Deb = false
- for i = 0.05, 1, 0.1 do
- RAW.C0 = CA(MR(80-40*i), MR(-15+65*i), MR(90-90*i))
- HW.C0 = CA(0, MR(-80+80*i), MR(90-90*i))
- LAW.C0 = CA(MR(90-70*i), MR(-20*i), MR(60-80*i)) * CN(0, -0.7+0.7*i, 0)
- neck.C0 = necko * CA(0, 0, MR(-10+60-50*i))
- bg.cframe = CF * CA(0, MR(-410+50*i), 0)
- wait()
- end
- bg:remove()
- Normalize()
- AbleAll = true
- end
- Flawp = function(plaic)
- local cf = torso.CFrame
- local CF = ComputePos(cf.p, cf * CN(0, 0, -2))
- if plaic then
- CF = ComputePos(cf.p, plaic)
- end
- local cf2 = CF * CN(0, -1.1, -1)
- local Dist = 8
- local Hit1, Pos1 = RayC(CF.p, (CF * CN(0, -1, 0)).p, 4, char)
- local Hit2, Pos2 = RayC((CF * CN(0, 0, -Dist*2)).p, (CF * CN(0, -1, -Dist*2)).p, 4, char)
- local Hit3, Pos3 = RayC(CF.p, (CF * CN(0, 0, -Dist*2)).p, Dist*2, char)
- if Rage < Dmgs.Boom[6] then return end
- if Hit1 and Hit2 then
- Rage = Rage - Dmgs.Boom[6]
- local bp = Add.BP(torso)
- bp.position = cf.p
- local bg = Add.BG(torso)
- bg.cframe = CF
- AbleAll = false
- RLW.Part1 = Rleg
- LLW.Part1 = Lleg
- for i = 0.05, 1, 0.1 do
- RAW.C0 = CA(MR(40+30*i), MR(50-50*i), MR(25*i))
- LAW.C0 = CA(MR(20+50*i), MR(-20+20*i), MR(-20-5*i))
- HW.C0 = CA(MR(25*i), 0, 0)
- RLW.C0 = CN(0, 1*i, -1*i)
- LLW.C0 = CA(MR(-90*i), 0, 0) * CN(0, 0.5*i, -0.2*i)
- neck.C0 = necko * CA(MR(20*i), 0, 0)
- bp.position = CF * CN(0, -1*i, -1*i).p
- wait()
- end
- local Center = cf2 * CN(0, 0, -Dist)
- hum.PlatformStand = true
- PlaySound(Sounds.Jump[1], Sounds.Jump[2], Sounds.Jump[3])
- for i = 0.06, 1, 0.1 do
- RAW.C0 = CA(MR(70-160*i), 0, MR(25+15*i))
- LAW.C0 = CA(MR(70-160*i), 0, MR(-25-15*i))
- HW.C0 = CA(MR(25), 0, 0)
- RLW.C0 = CN(0, 1-1*i, -1+1*i)
- LLW.C0 = CA(MR(-90+70*i), 0, 0) * CN(0, 0.5+0.7*i, -0.2-0.3*i)
- neck.C0 = necko * CA(MR(20-50*i), 0, 0)
- bp.position = Center * CA(MR(180-45*i), 0, 0) * CN(0, 0, -Dist).p
- bg.cframe = CF * CA(MR(-90*i), 0, 0)
- wait()
- end
- for i = 0.06, 1, 0.1 do
- RAW.C0 = CA(MR(-90-90*i), 0, MR(40+50*i))
- LAW.C0 = CA(MR(-90-90*i), 0, MR(-40-50*i))
- HW.C0 = CA(MR(25-25*i), 0, MR(-90*i))
- RLW.C0 = CN(0, 0, 0)
- LLW.C0 = CA(MR(-20+20*i), 0, 0) * CN(0, 1.2-1.2*i, -0.5+0.5*i)
- bp.position = Center * CA(MR(135-45*i), 0, 0) * CN(0, 0, -Dist).p
- bg.cframe = CF * CA(MR(-90-90*i), 0, 0)
- wait()
- end
- StartEffect()
- for i = 0.06, 1, 0.1 do
- RAW.C0 = CA(MR(180+10*i), 0, MR(90-130*i)) * CN(0, -1*i, 0)
- LAW.C0 = CA(MR(180+10*i), 0, MR(-90+130*i)) * CN(0, -1*i, 0)
- HW.C0 = CA(0, 0, MR(-90-90*i))
- RLW.C0 = CN(0, 0, 0)
- LLW.C0 = CA(0, 0, 0) * CN(0, 0, 0)
- bp.position = Center * CA(MR(90-45*i), 0, 0) * CN(0, 0, -Dist).p
- bg.cframe = CF * CA(MR(-180-90*i), 0, 0)
- wait()
- end
- playz(Sounds.Slash)
- for i = 0.06, 1, 0.1 do
- RAW.C0 = CA(MR(190-100*i), 0, MR(-40)) * CN(0, -1-0.2*i, 0)
- LAW.C0 = CA(MR(190-80*i), MR(-25*i), MR(40-15*i)) * CN(0, -1-0.2*i, 0)
- HW.C0 = CA(0, MR(-45*i), MR(-180))
- RLW.C0 = CN(0, 1*i, -1*i)
- LLW.C0 = CA(MR(-20-70*i), 0, 0) * CN(0, 1.2-0.7*i, -0.5+0.3*i)
- neck.C0 = necko * CA(MR(-30+60*i), 0, 0)
- bp.position = Center * CA(MR(45-45*i), 0, 0) * CN(0, 0, -Dist).p
- bg.cframe = CF * CA(MR(-270-90*i), 0, 0)
- wait()
- end
- Mode = Dmgs.Boom
- EndEffect()
- RAW.C0 = CA(MR(90), 0, MR(-40)) * CN(0, -1.2, 0)
- LAW.C0 = CA(MR(110), MR(-25), MR(25)) * CN(0, -1.2, 0)
- HW.C0 = CA(0, MR(-45), MR(-180))
- RLW.C0 = CN(0, 1, -1)
- LLW.C0 = CA(MR(-90), 0, 0) * CN(0, 0.5, -0.2)
- bp.position = Center * CN(0, 0, -Dist).p
- bg.cframe = CF * CA(0, 0, 0)
- local PosEff = Center * CN(0, -2, -Dist-2.5)
- Notime(function()
- playz(Sounds.Boom)
- local disst = Dmgs.Boom[7]
- local chars = getCharacters(workspace, PosEff.p, disst)
- for _,v in pairs(chars) do
- local c, t, h = v[1], v[2], v[3]
- local d = (t.Position - PosEff.p).magnitude
- local bl, bp, blo = getBlock(c)
- if blo then
- ShieldDamage(Dmgs.Boom, bl, bp, false)
- end
- d = d/4
- if d < 1 then d = 1 end
- Damage(t, h, Dmgs.Boom[2]/d, false, false)
- for _,k in pairs(c:children()) do
- if k:IsA("BasePart") then
- k.Velocity = CFrame.new(PosEff.p, k.Position).lookVector * 40 + Vector3.new(0, 50, 0)
- end
- end
- h.PlatformStand = true
- Notime(function() h.PlatformStand = false end, 0.2)
- end
- local eff = Instance.new("Model",workspace)
- eff.Name = "Effect"
- local wave = Part(eff, true, false, 0, 0, EffectColor, 1, 1, 1, true)
- wave.CFrame = PosEff
- local wavem = Add.Mesh(wave, "http://www.roblox.com/asset/?id=20329976", 3, 2, 3)
- local ball = Part(eff, true, false, 0, 0, EffectColor2, 1, 1, 1, true)
- ball.CFrame = PosEff
- local ballm = Add.Sphere(ball)
- ballm.Scale = Vector3.new(2, 5, 2)
- local diamond = Part(eff, true, false, 0, 0, EffectColor, 1, 1, 1, true)
- diamond.CFrame = PosEff
- local diamondm = Add.Mesh(diamond, "http://www.roblox.com/asset/?id=9756362", 7, 0.5, 7)
- for i = 0, 1, 0.05 do
- wait()
- wave.CFrame = PosEff * CFrame.Angles(0, MR(180*i), 0)
- wave.Transparency = i
- wavem.Scale = Vector3.new(3+(disst*1.15)*i, 2+(disst/1.4)*i, 3+(disst*1.15)*i)
- ball.Transparency = i
- ballm.Scale = Vector3.new(1+(disst*2)*i, 5+(disst*1.2)*i, 1+(disst*2)*i)
- diamond.Transparency = i
- diamondm.Scale = Vector3.new(7-6.5*i, 0.5+(disst*2)*i, 7-6.5*i)
- end
- wait()
- eff:remove()
- end)
- wait(0.4)
- for i = 0.07, 1, 0.1 do
- RAW.C0 = CA(MR(90+50*i), 0, MR(-40)) * CN(0, -1.2+0.4*i, -0.4*i)
- LAW.C0 = CA(MR(110+30*i), MR(-25+25*i), MR(25+15*i)) * CN(0, -1.2+0.4*i, -0.4*i)
- HW.C0 = CA(MR(-30*i), MR(-45+45*i), MR(-180-30*i)) * CN(0, -0.7*i, 0)
- RLW.C0 = CN(0, 1-1*i, -1+1*i)
- LLW.C0 = CA(MR(-90+90*i), 0, 0) * CN(0, 0.5-0.5*i, -0.2+0.2*i)
- neck.C0 = necko * CA(MR(30-15*i), 0, 0)
- bp.position = Center * CN(0, 1.4*i, -Dist-1*i).p
- wait()
- end
- bp:remove()
- bg:remove()
- hum.PlatformStand = false
- for i = 0.05, 1, 0.1 do
- RAW.C0 = CA(MR(140-100*i), MR(50*i), MR(-40+40*i)) * CN(0, -0.8+0.8*i, -0.4+0.4*i)
- LAW.C0 = CA(MR(140-190*i), 0, MR(40-80*i)) * CN(0, -0.8+0.8*i, -0.4+0.4*i)
- HW.C0 = CA(MR(-30+30*i), 0, MR(-210-150*i)) * CN(0, -0.7+0.7*i, 0)
- RLW.C0 = CN()
- LLW.C0 = CN()
- neck.C0 = necko * CA(MR(15-15*i), 0, 0)
- bp.position = Center * CN(0, 1.4-0.4*i, -Dist-1-0.3*i).p
- wait()
- end
- RLW.Part1 = nil
- LLW.Part1 = nil
- for i = 0.1, 1, 0.2 do
- LAW.C0 = CA(MR(-50+70*i), MR(-20*i), MR(-40+20*i))
- wait()
- end
- Normalize()
- AbleAll = true
- end
- end
- function Raeg()
- if Rage < Dmgs.RageMode[5] then return end
- if RageMode == false and AbleAll and Able then
- AbleAll = false
- local CF = ComputePos(torso.Position, torso.CFrame * CN(0, 0, -2))
- for i = 0.05, 1, 0.1 do
- RAW.C0 = CA(MR(40-70*i), MR(50-45*i), MR(10*i))
- LAW.C0 = CA(MR(20-50*i), MR(-20+15*i), MR(-20+10*i))
- HW.C0 = CA(MR(20*i), 0, 0)
- wait()
- end
- for i = 0.12, 1, 0.25 do
- RAW.C0 = CA(MR(-30-10*i), MR(5-5*i), MR(10-5*i))
- LAW.C0 = CA(MR(-30-10*i), MR(-5+5*i), MR(-10+5*i))
- HW.C0 = CA(MR(20+5*i), 0, 0)
- wait()
- end
- hum.Jump = true
- playz(Sounds.Jump2)
- CF = ComputePos(torso.Position, torso.CFrame * CN(0, 0, -2))
- local p = Part(workspace, true, false, 0, 0, "Bright red", 0.2, 0.2, 0.2, true)
- p.CFrame = CF * CN(0, -2, 0)
- local m = Add.Mesh(p, "http://www.roblox.com/asset/?id=20329976", 1, 3, 1)
- Notime(function()
- for i = 0, 1, 0.08 do
- wait()
- m.Scale = Vector3.new(1+5*i, 3-2.5*i, 1+5*i)
- p.Transparency = i
- end
- p:remove()
- end)
- for i = 0.05, 1, 0.1 do
- RAW.C0 = CA(MR(-40+220*i), 0, MR(5+35*i))
- LAW.C0 = CA(MR(-40+220*i), 0, MR(-5-35*i))
- HW.C0 = CA(MR(25-115*i), MR(90*i), MR(45*i))
- wait()
- end
- for i = 0.12, 1, 0.25 do
- RAW.C0 = CA(MR(180+8*i), 0, MR(40))
- LAW.C0 = CA(MR(180+8*i), 0, MR(-40))
- HW.C0 = CA(MR(-90), MR(90), MR(45))
- wait()
- end
- for i = 0.05, 1, 0.1 do
- RAW.C0 = CA(MR(188-98*i), 0, MR(40-80*i)) * CN(0, -1*i, 0)
- LAW.C0 = CA(MR(188-98*i), 0, MR(-40+80*i)) * CN(0, -1*i, 0)
- HW.C0 = CA(MR(-90+90*i), MR(90+45*i), MR(45-45*i))
- wait()
- end
- playz(Sounds.GoRage)
- local p2 = Part(workspace, false, false, 1, 0, EffectColor3, 1, 1, 1, true)
- Weld(Tip4, p2, 0, -2, 0, 0, 0, 0)
- local m2 = Add.Sphere(p2)
- m2.Scale = Vector3.new(0.2, 2, 0.5)
- for i = 0, 1, 0.06 do
- p2.Transparency = 1-1*i
- m2.Scale = Vector3.new(0.2+0.7*i, 2+3*i, 0.5+1.6*i)
- wait()
- end
- for _,v in pairs(Blades) do
- v.BrickColor = BrickColor.new(EffectColor3)
- end
- wait(0.5)
- for i = 0, 1, 0.1 do
- p2.Transparency = i
- wait()
- end
- p2:remove()
- playz(Sounds.Shout)
- for i = 0.1, 1, 0.1 do
- RAW.C0 = CA(MR(90-50*i), MR(50*i), MR(-40+40*i)) * CN(0, -1+1*i, 0)
- LAW.C0 = CA(MR(90-70*i), MR(-20*i), MR(-40+80-60*i)) * CN(0, -1+1*i, 0)
- HW.C0 = CA(0, MR(135+45*i), 0)
- wait()
- end
- Normalize()
- AbleAll = true
- RageMode = true
- AddDamage = Dmgs.RageMode[2]
- AddDamageX = Dmgs.RageMode[3]
- AddShield = Dmgs.RageMode[4]
- LineColor = EffectColor3
- Notime(function()
- repeat
- wait()
- Rage = Rage - 0.45
- until Rage < 1
- RageMode = false
- AddDamage = 0
- AddShield = 0
- AddDamageX = 1
- LineColor = "White"
- local p3 = Part(workspace, false, false, 1, 0, BladeColor, 1, 1, 1, true)
- Weld(Tip4, p3, 0, -2, 0, 0, 0, 0)
- local m3 = Add.Sphere(p3)
- m3.Scale = Vector3.new(0.85, 4.9, 1.8)
- playz(Sounds.RageOff)
- for i = 0.1, 1, 0.1 do
- p3.Transparency = 1-1*i
- wait()
- end
- p.Transparency = 0
- for _,v in pairs(Blades) do
- v.BrickColor = BrickColor.new(BladeColor)
- end
- wait(0.2)
- for i = 0.2, 1, 0.2 do
- p3.Transparency = 1*i
- m3.Scale = Vector3.new(0.85+2*i, 4.9+9*i, 1.8+4.5*i)
- wait()
- end
- p3:remove()
- end)
- end
- end
- function RageSlash(plaic)
- if Rage < Dmgs.RageSlash[6] then return end
- local cf = torso.CFrame
- local CF = ComputePos(cf.p, cf * CN(0, 0, -2))
- if plaic then
- CF = ComputePos(cf.p, plaic)
- local bg = Add.BG(torso)
- bg.cframe = CF
- Notime(function() bg:remove() end, 0.4)
- end
- Rage = Rage - Dmgs.RageSlash[6]
- AbleAll = false
- for i = 0.05, 1, 0.1 do
- RAW.C0 = CA(MR(40+105*i), MR(50-50*i), MR(-35*i)) * CN(0.15*i, -1*i, 0)
- LAW.C0 = CA(MR(20+125*i), MR(-20+20*i), MR(-20+55*i)) * CN(-0.15*i, -1*i, 0)
- HW.C0 = CA(0, MR(-35*i), 0)
- neck.C0 = necko * CA(MR(-20*i), 0, 0)
- wait()
- end
- for i = 0.09, 1, 0.18 do
- RAW.C0 = CA(MR(145+55*i), 0, MR(-35)) * CN(0.15, -1, 0)
- LAW.C0 = CA(MR(145+55*i), 0, MR(35)) * CN(-0.15, -1, 0)
- HW.C0 = CA(0, MR(-35), 0)
- neck.C0 = necko * CA(MR(-20-20*i), 0, 0)
- wait()
- end
- PlaySound(Sounds.Slash[1], Sounds.Slash[2]-0.7, Sounds.Slash[3])
- for i = 0.12, 1, 0.25 do
- RAW.C0 = CA(MR(200+10*i), 0, MR(-35)) * CN(0.15, -1, 0)
- LAW.C0 = CA(MR(200+10*i), 0, MR(35)) * CN(-0.15, -1, 0)
- HW.C0 = CA(0, MR(-35), 0)
- neck.C0 = necko * CA(MR(-20-20-5*i), 0, 0)
- wait()
- end
- Mode = Dmgs.RageSlash
- StartEffect("Neon orange")
- Hurt = true
- Deb = true
- for i = 0.07, 1, 0.14 do
- RAW.C0 = CA(MR(210-160*i), 0, MR(-35)) * CN(0.15, -1, 0)
- LAW.C0 = CA(MR(210-150*i), MR(-30*i), MR(35)) * CN(-0.15, -1, 0)
- HW.C0 = CA(MR(-70*i), MR(-35), MR(-35*i))
- neck.C0 = necko * CA(MR(-45+80*i), 0, 0)
- wait()
- end
- EndEffect()
- Hurt = false
- for i = 0.33, 1, 0.33 do
- RAW.C0 = CA(MR(50-15*i), 0, MR(-35)) * CN(0.15, -1, 0)
- LAW.C0 = CA(MR(60-15*i), MR(-30), MR(35)) * CN(-0.15, -1, 0)
- HW.C0 = CA(MR(-70-15*i), MR(-35), MR(-35-7*i))
- neck.C0 = necko * CA(MR(-45+80+5*i), 0, 0)
- wait()
- end
- for i = 0.07, 1, 0.14 do
- RAW.C0 = CA(MR(35+5*i), MR(50*i), MR(-35+35*i)) * CN(0.15-0.15*i, -1+1*i, 0)
- LAW.C0 = CA(MR(45-25*i), MR(-30+10*i), MR(35-55*i)) * CN(-0.15+0.15*i, -1+1*i, 0)
- HW.C0 = CA(MR(-70-15+85*i), MR(-35+35*i), MR(-35-7+42*i))
- neck.C0 = necko * CA(MR(-45+80+5-40*i), 0, 0)
- wait()
- end
- Normalize()
- AbleAll = true
- end
- --RAW ORIGINAL = CA(MR(40), MR(50), 0)
- --LAW ORIGINAL = CA(MR(20), MR(-20), MR(-20))
- --HW ORIGINAL = CA(0, 0, 0)
- function Counter()
- local cf = torso.CFrame
- local CF = CFrame.new(cf.p, cf * CN(0, 0, -2).p)
- local bg = Add.BG(torso)
- bg.cframe = CF
- for i = 0.1, 1, 0.2 do
- RAW.C0 = CA(MR(-50+50*i), MR(-35), MR(80*i))
- LAW.C0 = CA(MR(90-20*i), 0, MR(80-20*i)) * CN(-0.75+0.25*i, -0.8+0.5*i, 0)
- HW.C0 = CA(MR(20-60*i), 0, 0)
- bg.cframe = CF * CA(0, MR(-35*i), 0)
- neck.C0 = necko * CA(0, 0, MR(35*i))
- wait()
- end
- StartEffect()
- Hurt = true
- Deb = true
- Mode = Dmgs.Counter
- playz(Sounds.Slash)
- for i = 0.09, 1, 0.18 do
- RAW.C0 = CA(0, MR(-35+130*i), MR(80)) * CN(0, -0.3*i, 0)
- LAW.C0 = CA(MR(70-130*i), 0, MR(60-60*i)) * CN(-0.5+0.5*i, -0.3+0.3*i, 0)
- HW.C0 = CA(MR(-40+40*i), 0, 0)
- bg.cframe = CF * CA(0, MR(-35+80*i), 0)
- neck.C0 = necko * CA(0, 0, MR(35-80*i))
- wait()
- end
- EndEffect()
- Hurt = false
- for i = 0.12, 1, 0.25 do
- RAW.C0 = CA(0, MR(95+10*i), MR(80)) * CN(0, -0.3, 0)
- LAW.C0 = CA(MR(-60-10*i), 0, 0)
- HW.C0 = CA(MR(5*i), 0, 0)
- bg.cframe = CF * CA(0, MR(45+5*i), 0)
- neck.C0 = necko * CA(0, 0, MR(-45-5*i))
- wait()
- end
- for i = 0.06, 1, 0.12 do
- RAW.C0 = CA(MR(40*i), MR(105-55*i), MR(80-80*i)) * CN(0, -0.3+0.3*i, 0)
- LAW.C0 = CA(MR(-70+90*i), MR(-20*i), MR(-20*i))
- HW.C0 = CA(MR(5-5*i), 0, 0)
- bg.cframe = CF * CA(0, MR(50-50*i), 0)
- neck.C0 = necko * CA(0, 0, MR(-50+50*i))
- wait()
- end
- Normalize()
- bg:remove()
- end
- function Bloc()
- if AbleAll and Able then
- AbleAll = false
- Block.Value = true
- for i = 0, 1, 0.15 do
- if not Block then break end
- RAW.C0 = CA(MR(40-90*i), MR(50-85*i), 0)
- LAW.C0 = CA(MR(20+70*i), MR(-20+20*i), MR(-20+100*i)) * CN(-0.75*i, -0.8*i, 0)
- HW.C0 = CA(MR(20*i), 0, 0)
- wait()
- end
- RAW.C0 = CA(MR(40-90), MR(50-85), 0)
- LAW.C0 = CA(MR(20+70), MR(-20+20), MR(-20+100)) * CN(-0.75, -0.8, 0)
- HW.C0 = CA(MR(20), 0, 0)
- PlaySound(Sounds.SmashHit[1], Sounds.SmashHit[2]-0.6, Sounds.SmashHit[3])
- repeat
- wait()
- if BlockPower.Value < 1 then
- Block.Value = false
- BlockPower.Value = BlockRealPowa
- end
- until Block.Value == false
- if CounterKey and Rage >= Dmgs.Counter[6] then
- Rage = Rage - Dmgs.Counter[6]
- Counter()
- else
- for i = 1, 0, -0.2 do
- RAW.C0 = CA(MR(40-90*i), MR(50-85*i), 0)
- LAW.C0 = CA(MR(20+70*i), MR(-20+20*i), MR(-20+100*i)) * CN(-0.75*i, -0.8*i, 0)
- HW.C0 = CA(MR(20*i), 0, 0)
- wait()
- end
- Normalize()
- end
- AbleAll = true
- end
- end
- function Clicked(mousepos)
- if Block.Value == false and Able and AbleAll then
- if Aim then
- Notime(function()
- local bg = Add.BG(torso)
- bg.cframe = ComputePos(torso.Position, mousepos)
- bg.P = 5500
- wait(0.4)
- bg:remove()
- end)
- end
- Attacks[Attack]()
- end
- end
- function KeyDown(key, mouse)
- key = key:lower()
- if Able then
- local aimplace = nil
- if Aim then
- aimplace = mouse.Hit.p
- end
- if key == string.char(48) then
- Notime(function()
- local k = nil
- repeat
- k = mouse.KeyUp:wait()
- until k == string.char(48)
- Block.Value = false
- end)
- Bloc()
- elseif key == "e" then
- if Block.Value == false and AbleAll then
- SpinSlash(aimplace)
- end
- elseif key == "r" then
- if Block.Value == false and AbleAll then
- Flawp(aimplace)
- end
- elseif key == "f" then
- if Block.Value == false and AbleAll then
- Raeg()
- end
- elseif key == "t" then
- Notime(function()
- local k = nil
- CounterKey = true
- repeat
- k = mouse.KeyUp:wait()
- until k == "t"
- CounterKey = false
- end)
- elseif key == "q" then
- if Block.Value == false and AbleAll then
- local a = nil
- if Aim then
- a = mouse.Hit.p
- end
- RageSlash(a)
- end
- end
- end
- end
- Select = function(mouse)
- SelectAnim()
- Selected = true
- mouse.Button1Down:connect(function()
- if Able then
- Clicked(mouse.Hit.p)
- end
- end)
- mouse.KeyDown:connect(function(key)
- KeyDown(key, mouse)
- end)
- end
- Deselect = function(mouse)
- Selected = false
- DeselectAnim()
- end
- Bin.Selected:connect(Select)
- Bin.Deselected:connect(Deselect)
- Notime(function()
- local parent = char.Parent
- while char.Parent == parent do
- wait()
- if Rage > MaxRage then Rage = MaxRage elseif Rage < 0 then Rage = 0 end
- RageBar.Size = UD(1, 0, Rage/MaxRage, 0)
- RageBar.Position = UD(0, 0, 1-(Rage/MaxRage), 0)
- RageAmount.Text = math.floor(Rage)
- local hp2 = hum.Health/hum.MaxHealth
- if hp2 > 1 then hp2 = 1 elseif hp2 < 0 then hp2 = 0 end
- HealthBar.Size = UD(1, 0, hp2, 0)
- if Block.Value then
- hum.WalkSpeed = 50
- elseif RageMode and Block.Value then
- hum.WalkSpeed = 56
- elseif RageMode then
- hum.WalkSpeed = 59
- else
- hum.WalkSpeed = 56
- end
- end
- end)
- --Ok
- local s = Instance.new("Sound")
- s.Name = "Sound"
- s.SoundId = "http://www.roblox.com/asset/?id=268796968"
- s.Volume = 70
- s.Looped = false
- s.archivable = false
- s.Parent = game.Workspace
- wait(3)
- s:play()
- --[[
- This script will change your shirt and pants ^-^
- Change the shirt and pants ID to the one you like
- If your using this script, do it as a local script ^-^
- ]]
- local part = game.Players.LocalPlayer.Character
- local basetemplate = "http://www.roblox.com/asset/?id="
- local shirt = 181553430
- local pants = 181553845
- local h = part:findFirstChild("Shirt")
- if h ~= nil then
- h.ShirtTemplate = basetemplate..shirt
- else
- local i = Instance.new("Shirt")
- i.Name = "Shirt"
- i.ShirtTemplate = basetemplate..shirt
- i.Parent = part
- end
- local p = part:findFirstChild("Pants")
- if p ~= nil then
- p.PantsTemplate = basetemplate..pants
- else
- local np = Instance.new("Pants")
- np.PantsTemplate = basetemplate..pants
- np.Name = "Pants"
- np.Parent = part
- end
- p = game.Players.LocalPlayer
- char = p.Character
- des = false
- fling = true
- dot = false
- falling = false
- jump = true
- --char.Shirt:Remove()
- --for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
- for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
- wait()--shirt = Instance.new("Shirt", char)
- --shirt.Name = "Shirt"
- --pants = Instance.new("Pants", char)
- --pants.Name = "Pants"
- --char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=22287244"
- --char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=22287352"
- tp = true
- shoot = true
- hum = char.Humanoid
- punch = true
- neckp = char.Torso.Neck.C0
- neck = char.Torso.Neck
- hum.MaxHealth = 999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
- wait()
- hum.Health =hum.MaxHealth
- des = false
- root=char.HumanoidRootPart
- torso = char.Torso
- char.Head.face.Texture = "rbxassetid://129646847"
- local ChatService = game:GetService("Chat")
- local player = game.Players.LocalPlayer
- lig = Instance.new("PointLight",player.Character.Torso)
- lig.Color=Color3.new(255,0,0)
- m=player:GetMouse()
- bb = Instance.new("BillboardGui",player.Character.Head)
- bb.Enabled = true
- function newRay(start,face,range,wat)
- local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
- hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
- return rey,hit,pos
- end
- --Triforce made by refrop
- 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 = "Triforce"
- 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("New Yeller")
- 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("New Yeller")
- 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 - 53
- animo(false)
- local Mus = Instance.new("Sound",workspace)
- Mus.SoundId = "rbxassetid://303819692"
- Mus.Pitch = 10
- Mus.Volume = 90000
- Mus.Looped = false
- wait(0.3)
- Mus:Play()
- 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://157823536"
- 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, 0))
- pe2.LightEmission = 0.9
- pe2.Size = NumberSequence.new(5)
- pe2.Texture = "rbxassetid://157823536"
- 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 + 13
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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, 0))
- pe.LightEmission = 0.9
- pe.Size = NumberSequence.new(0.5)
- pe.Texture = "rbxassetid://157823536"
- 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://157823536"
- 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("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, -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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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://157823536"
- 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://157823536"
- 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("New Yeller")
- 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 = 16
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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, 0))
- pe.LightEmission = 0.9
- pe.Size = NumberSequence.new(0.5)
- pe.Texture = "rbxassetid://157823536"
- 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, 0))
- pe2.LightEmission = 0.9
- pe2.Size = NumberSequence.new(5)
- pe2.Texture = "rbxassetid://157823536"
- 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://157823536"
- 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://157823536"
- 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://157823536"
- 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://157823536"
- 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://157823536"
- 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://157823536"
- 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://157823536"
- 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://157823536"
- 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://157823536"
- 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://157823536"
- 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://157823536"
- 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://157823536"
- 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 = 56
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("Really yellow")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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("New Yeller")
- 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 = 10
- game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 56
- 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