Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
- print("FE Compatibility: by WaverlyCole & Mokiros")
- InternalData = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput"
- local function NewFakeEvent()
- local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
- return Fake
- end
- local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
- local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- local function TriggerEvent(self,Event,...)
- local Trigger = Mouse[Event]
- if Trigger and Trigger.fakeEvent and Trigger.Function then
- Trigger.Function(...)
- end
- end
- Mouse.TrigEvent = TriggerEvent
- UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then end
- if Input.MouseEvent then
- Mouse.Target = Input.Target
- Mouse.Hit = Input.Hit
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then
- return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
- end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do
- if Key==Input.KeyCode then
- Action.Function(Action.Name,Input.UserInputState,Input)
- end
- end
- end
- Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
- UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse
- InternalData["ContextActionService"] = ContextActionService
- InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner
- local Event = script:WaitForChild("UserInput")
- local UserInputService = game:GetService("UserInputService")
- local Mouse = Player:GetMouse()
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- UserInputService.InputBegan:Connect(Input)
- UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit,Target = Mouse.Hit,Mouse.Target
- Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],owner.Character)
- end
- RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- local Sandbox = function (Thing)
- if Thing:IsA("Player") then
- local RealPlayer = Thing
- return setmetatable({},{
- __index = function (self,Index)
- local Type = type(RealPlayer[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)
- return InternalData["Mouse"]
- end
- end
- return function (self,...)
- return RealPlayer[Index](RealPlayer,...)
- end
- else
- if Index == "PlrObj" then
- return RealPlayer
- end
- return RealPlayer[Index]
- end
- end;
- __tostring = function(self)
- return RealPlayer.Name
- end
- })
- end
- end
- if RealGame[Index] then
- local Type = type(RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- if Service:lower() == "players" then
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...)
- return RealService[Index2](RealService,...)
- end
- else
- if Index2:lower() == "localplayer" then
- return Sandbox(owner)
- end
- return RealService[Index2]
- end
- end;
- __tostring = function(self)
- return RealGame:GetService(Service).Name
- end
- })
- elseif Service:lower() == "contextactionservice" then
- return InternalData["ContextActionService"]
- elseif Service:lower() == "contextactionservice" then
- return InternalData["UserInputService"]
- elseif Service:lower() == "runservice" then
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...)
- return RealService[Index2](RealService,...)
- end
- else
- if Index2:lower() == "bindtorenderstep" then
- return function (self,Name,Priority,Function)
- return RealGame:GetService("RunService").Stepped:Connect(Function)
- end
- end
- if Index2:lower() == "renderstepped" then
- return RealService["Stepped"]
- end
- return RealService[Index2]
- end
- end
- })
- else
- return RealGame:GetService(Service)
- end
- end
- end
- return function (self,...)
- return RealGame[Index](RealGame,...)
- end
- else
- if game:GetService(Index) then
- return game:GetService(Index)
- end
- return RealGame[Index]
- end
- else
- return nil
- end
- end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
- print("Complete! Running...")
- --//Paste script below this line.
- local p = game.Players.LocalPlayer
- local char = p.Character
- local hed = char:WaitForChild("Head")
- local rarm = char:WaitForChild("Right Arm")
- local larm = char:WaitForChild("Left Arm")
- local torso = char:WaitForChild("Torso")
- local lleg = char:WaitForChild("Left Leg")
- local rleg = char:WaitForChild("Right Leg")
- local root = char:WaitForChild("HumanoidRootPart")
- local hum = char:WaitForChild("Humanoid")
- local ChatService = game:GetService("Chat")
- local mouse = p:GetMouse()
- local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- local attack = false --Determining things
- local running = false --Running mode
- local anim = "idle"
- local sine = 0
- local add = 0
- local soulcrushermode = false
- local FX = Instance.new("Folder", char)
- FX.Name = "SpecialFX"
- local maincolor = BrickColor.new("Pink")
- local SuperExplosion = "rbxassetid://1417056081"
- hum.WalkSpeed = 29
- hum.MaxHealth = "inf"
- hum.Health = "inf"
- script.Name = "Created by iIceSniper, And SonicSydney Converted it And Edited."
- script.Parent = p.PlayerGui
- --// Useful Part-Creating Functions \\--
- --Sound Variables--
- local SuperExplosion = "rbxassetid://1417056081"
- --// Music
- local normalsong = "rbxassetid://1409668861"
- newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
- local wld = Instance.new("Weld", wp1)
- wld.Part0 = wp0
- wld.Part1 = wp1
- wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
- end
- local song = Instance.new("Sound", char)
- song.SoundId = normalsong
- song.Volume = 1
- song.Pitch = 1
- song.Playing = true
- song.Looped = true
- newWeld(torso, larm, -1.5, 0.5, 0)
- larm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, rarm, 1.5, 0.5, 0)
- rarm.Weld.C1 = CFrame.new(0, 0.5, 0)
- newWeld(torso, hed, 0, 1.5, 0)
- newWeld(torso, lleg, -0.5, -1, 0)
- lleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(torso, rleg, 0.5, -1, 0)
- rleg.Weld.C1 = CFrame.new(0, 1, 0)
- newWeld(root, torso, 0, -1, 0)
- torso.Weld.C1 = CFrame.new(0, -1, 0)
- function Lerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- function 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 ~= char then
- if(v.Torso.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- CV="Maroon"
- local txt = Instance.new("BillboardGui", char)
- txt.Adornee = hed
- txt.Name = "_status"
- txt.Size = UDim2.new(2, 0, 1.2, 0)
- txt.StudsOffset = Vector3.new(-9, 8, 0)
- local text = Instance.new("TextLabel", txt)
- text.Size = UDim2.new(10, 0, 7, 0)
- text.FontSize = "Size24"
- text.TextScaled = true
- text.TextTransparency = 0
- text.BackgroundTransparency = 1
- text.TextTransparency = 0
- text.Font = "Arcade"
- text.TextStrokeColor3 = Color3.new(1,1,1)
- v=Instance.new("Part")
- v.Name = "ColorBrick"
- v.Parent=char
- v.FormFactor="Symmetric"
- v.Anchored=true
- v.CanCollide=false
- v.BottomSurface="Smooth"
- v.TopSurface="Smooth"
- v.Size=Vector3.new(10,5,3)
- v.Transparency=1
- v.CFrame=torso.CFrame
- v.BrickColor=BrickColor.new(CV)
- v.Transparency=1
- text.TextColor3 = Color3.new(0.9,0,1)
- v.Shape="Block"
- text.Text = "e"
- for i,v in pairs(char:GetChildren()) do
- if v.Name == "Head" or v.Name == "Torso" or v.Name == "Torso" or v.Name == "Left Arm" or v.Name == "Right Arm" or v.Name == "Left Leg" or v.Name == "Right Leg" then
- local Glow1 = Color3.new(0.9,0,1) --98, 37, 209
- local Glow2 = Color3.new(1,1,1)
- local GlowParticle = Instance.new("ParticleEmitter",v)
- GlowParticle.LightEmission = 1
- GlowParticle.Color = ColorSequence.new(Glow1,Glow2)
- GlowParticle.Size = NumberSequence.new(0,2)
- GlowParticle.Texture = "http://www.roblox.com/asset/?id=467188845"
- GlowParticle.Transparency = NumberSequence.new(0,1)
- GlowParticle.LockedToPart = true
- GlowParticle.Lifetime = NumberRange.new(0.5)
- GlowParticle.Rate= 300
- GlowParticle.Speed =NumberRange.new(0)
- end end
- GroundWave = function()
- local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- local wave = Instance.new("Part", torso)
- wave.BrickColor = maincolor
- wave.Anchored = true
- wave.CanCollide = false
- wave.Locked = true
- wave.Size = Vector3.new(1, 1, 1)
- wave.TopSurface = "Smooth"
- wave.BottomSurface = "Smooth"
- wave.Transparency = 0.35
- wave.CFrame = HandCF
- wm = Instance.new("SpecialMesh", wave)
- wm.MeshId = "rbxassetid://3270017"
- coroutine.wrap(function()
- for i = 1, 14, 1 do
- wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1)
- wave.Size = wm.Scale
- wave.CFrame = HandCF
- wave.Transparency = i/14
- wait()
- end
- wait()
- wave:Destroy()
- end)()
- end
- r = game:GetService("RunService").RenderStepped
- Activated = true
- custommath={25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,-25,-26,-27,-28,-29,-30,-31,-32,-33,-34,-35,-36,-37,-38,-39,-40,-41,-42,-43,-44,-45,-46,-47,-48,-49,-50,-51,-52,-53,-54,-55,-56,-57,-58,-59,-60,-61,-62,-63,-64,-65,-66,-67,-68,-69,-70,-71,-72,-73,-74,-75,-76,-77,-78,-79,-80,-81,-82,-83,-84,-85,-86,-87,-88,-89,-90,-91,-92,-93,-94,-95,-96,-97,-98,-99,-100}
- Debri = coroutine.wrap(function()
- repeat
- local p = Instance.new('Part',torso)
- p.formFactor = 'Custom'
- p.Size = Vector3.new(1,1,1)
- p.BrickColor = maincolor
- p.CanCollide = false
- p.Transparency = 0
- p.Anchored = true
- p.Locked=true
- p.Material = 'Neon'
- s = math.random(1,40)/10
- local m = Instance.new("BlockMesh",p)
- m.Scale = Vector3.new(s,s,s)
- p.CFrame = torso.CFrame*CFrame.new(custommath[math.random(1,#custommath)]/10,-math.random(5,7),custommath[math.random(1,#custommath)]/10)*CFrame.Angles(math.random(),math.random(),math.random())
- spawn(function()
- while r:wait() do
- if p.Transparency >= 1 then p:Destroy() break end
- p.CFrame = p.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2))+Vector3.new(0,0.2,0)
- p.Transparency = p.Transparency+0.01
- end
- end)
- wait(.3)
- until Activated == false
- end)
- Debri()
- spawn(function()
- while wait(2)
- do
- GroundWave()
- 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 ~= char then
- if(v.Torso.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- function ExplodeMassen(rad,par)
- local expart = Instance.new("Part",workspace)
- local expart2 = Instance.new("Part",workspace)
- local partMesh = Instance.new("SpecialMesh",expart)
- partMesh.MeshType = "Sphere"
- local partMesh2 = Instance.new("SpecialMesh",expart2)
- partMesh2.MeshType = "Sphere"
- local expld = Instance.new("Explosion", workspace)
- local plode = Instance.new("Sound",workspace)
- plode.SoundId = "rbxassetid://579687077"
- plode.Volume = 1
- plode.Pitch = 0.85
- plode.Looped = false
- plode:Play()
- local plodez = Instance.new("Sound",workspace)
- plodez.SoundId = "rbxassetid://288641686"
- plodez.Volume = 1
- plodez.Pitch = 0.75
- plodez.Looped = false
- plodez:Play()
- local plodeza = Instance.new("Sound",workspace)
- plodeza.SoundId = "rbxassetid://197161452"
- plodeza.Volume = 0.85
- plodeza.Pitch = 0.65
- plodeza.Looped = false
- plodeza:Play()
- local plodezar = Instance.new("Sound",workspace)
- plodezar.SoundId = "rbxassetid://197161452"
- plodezar.Volume = 0.85
- plodezar.Pitch = 0.25
- plodezar.Looped = false
- plodezar:Play()
- expld.BlastRadius = rad
- expld.BlastPressure = 1000000000 --Rip objects around it x-x
- expld.Position = par.Position
- partMesh.Scale = Vector3.new(rad,rad,rad)
- expart.Size = Vector3.new(1,1,1)*1.5
- expart.Transparency = 0
- expart.Anchored = true
- expart.Material = "Neon"
- expart.BrickColor = BrickColor.new("Baby blue")
- expart.CFrame = par.CFrame
- partMesh2.Scale = Vector3.new(rad,rad,rad)
- expart2.Size = Vector3.new(1.15,1.15,1.15)*1.5
- expart2.Transparency = 0.5
- expart2.Anchored = true
- expart2.Material = "Neon"
- expart2.BrickColor = maincolor
- expart2.CFrame = par.CFrame
- local value = 1*rad/10
- par:Destroy()
- for i = 0, 300 do
- partMesh.Scale = partMesh.Scale + Vector3.new(value,value,value)
- expart.CFrame = expart.CFrame
- partMesh2.Scale = partMesh2.Scale + Vector3.new(value,value,value)
- expart2.CFrame = expart.CFrame
- value = value - 0.0175*rad/10
- if value <= 0 then
- expart.Transparency = expart.Transparency + 0.0125
- expart2.Transparency = expart2.Transparency + 0.0125
- value = 0.25
- end
- wait()
- end
- plode.Parent = nil
- expart.Parent = nil
- expart2.Parent = nil
- expld.Parent = nil
- end
- local spirit1 = Instance.new("Part",char)
- spirit1.CanCollide = false
- spirit1.Size = Vector3.new(1,1,1)
- spirit1.Transparency = 1
- spirit1.Position = Vector3.new(999,999,999)
- spirit1mesh = Instance.new("SpecialMesh",spirit1)
- spirit1mesh.MeshType = "Sphere"
- spirit1mesh.Scale = Vector3.new(1,1,1)
- partweld7 = Instance.new("Weld",spirit1)
- partweld7.Part0 = torso
- partweld7.Part1 = spirit1
- partweld7.C0 = CFrame.new(0,40,0)
- function EnergyBomb()
- local hito = false
- local sloc = Instance.new("Part",workspace)
- local msh = Instance.new("SpecialMesh",sloc)
- msh.MeshType = "Sphere"
- sloc.Size = Vector3.new(25,25,25)
- sloc.Transparency = 0
- sloc.BrickColor = maincolor
- sloc.Position = spirit1.Position + Vector3.new(0,50,0)
- sloc.CanCollide = false
- sloc.Shape = "Ball"
- sloc.Anchored = true
- sloc.Material = "Neon"
- local s = Instance.new("Sound",char)
- s.SoundId = "rbxassetid://289315275"
- s.Pitch = 1
- s.Volume = 2.75
- s.Looped = false
- s:Play()
- local s2 = Instance.new("Sound",char)
- s2.SoundId = "rbxassetid://671759140"
- s2.Pitch = 0.425
- s2.Volume = 1
- s2.Looped = false
- s2:Play()
- for i = 0 , 75 do
- sloc.Transparency = sloc.Transparency - 0.035
- msh.Scale = msh.Scale + Vector3.new(.05,.05,.05)
- wait()
- end
- wait(2)
- local sen = Instance.new("Sound",char)
- sen.SoundId = "rbxassetid://289315275"
- sen.Pitch = 1
- sen.Volume = 2.75
- sen.Looped = false
- sen:Play()
- local tick = Instance.new("Sound",char)
- tick.SoundId = "rbxassetid://446876721"
- tick.Volume = 2.5
- tick.Pitch = 0.5
- tick:Play()
- msh.Scale = msh.Scale - Vector3.new(1,1,1)
- sloc.Transparency = sloc.Transparency + 0.015
- local spart = Instance.new("Part",workspace)
- local msh2 = Instance.new("SpecialMesh",spart)
- msh2.MeshType = "Sphere"
- spart.Size = Vector3.new(25,25,25)
- spart.Shape = "Ball"
- spart.BrickColor = maincolor
- spart.Material = "Neon"
- spart.Transparency = 0
- spart.Anchored = false
- msh2.Scale = Vector3.new(4.875,4.875,4.875)
- spart.Rotation = hed.Rotation
- spart.CanCollide = false
- spart.Position = sloc.Position + Vector3.new(math.random(-0,0),math.random(-0,0),math.random(-0,0))
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = mouse.Hit.lookVector * 125
- bv.Parent = spart
- sloc:Destroy()
- wait()
- local pewdiepie=spart.Touched:connect(function(hit)
- ExplodeMassen(100,spart)
- end)
- sloc:Destroy()
- tick:Destroy()
- s:Destroy()
- sen:Destroy()
- s2:Destroy()
- end
- function AuraBall()
- attack = true
- for i = 1, 20 do
- wait()
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)--head
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 10, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)--torso
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(-180),math.rad(0),math.rad(20)), 0.3)--rarm
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(-180),math.rad(0),math.rad(-20)), 0.3)--larm
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3)--lleg
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(20)), 0.3)--rleg
- end
- hed.Anchored = true
- EnergyBomb()
- hed.Anchored = false
- for i = 1,40 do
- torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,0+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0),0,0),0.05)
- rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15+math.sin(sine/14)/20),0.25)
- lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15+-math.sin(sine/14)/20),0.25)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.3,0.6,-0.2)*CFrame.Angles(math.rad(160),math.rad(0),math.rad(90)), 0.5)--arm
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.3,0.6,-.2)*CFrame.Angles(math.rad(140),math.rad(0),math.rad(-90)), 0.5)--arm
- hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20),0,0),0.25)
- wait()
- end
- attack = false
- end
- function LaserEyes()
- end
- local theme = 2
- function ChangeThemes()
- if theme == 1 then
- theme = 2
- song.SoundId = "rbxassetid://2631079584"
- song:Stop()
- wait()
- song:Play()
- elseif theme == 2 then
- theme = 3
- song.SoundId = "rbxassetid://2559753891"
- song:Stop()
- wait()
- song:Play()
- elseif theme == 3 then
- theme = 4
- song.SoundId = "rbxassetid://981914802"
- song:Stop()
- wait()
- song:Play()
- elseif theme == 4 then
- theme = 5
- song.SoundId = "rbxassetid://1987979024"
- song.Volume = 3
- song:Stop()
- wait()
- song:Play()
- elseif theme == 5 then
- theme = 1
- song.SoundId = "rbxassetid://1409668861"
- song.Volume = 1
- song:Stop()
- wait()
- song:Play()
- end
- end
- function newRay(start,face,range,wat)
- local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
- local hit,pos=game.Workspace:FindPartOnRayWithIgnoreList(rey,wat)
- return rey,hit,pos
- end
- function nooutline(part)
- part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
- end
- function MegaCrater(cfremz, thepart, amt)
- for j = 1, amt do
- do
- local pr = Instance.new("Part")
- nooutline(pr)
- pr.Name = "debrisobeb"
- pr.Anchored = true
- pr.BrickColor = thepart.BrickColor
- pr.CanCollide = true
- pr.Material = thepart.Material
- pr.Transparency = thepart.Transparency
- pr.Size = Vector3.new(math.random(16, 24), math.random(12, 16), math.random(16, 24))
- pr.CFrame = cfremz * CFrame.Angles(0, math.rad(amt * j), 0) * CFrame.new(0, -5, math.random(18, 22)) * CFrame.Angles(math.rad(math.random(-30, -15)), math.rad(math.random(0, 1)), math.rad(math.random(0, 1)))
- pr.Parent = workspace
- game.Debris:AddItem(pr, 25)
- delay(15, function()
- if pr then
- pr.CanCollide = false
- pr.Anchored = false
- end
- end)
- end
- end
- for c = 1, amt do
- do
- local pr2 = Instance.new("Part")
- nooutline(pr2)
- pr2.Name = "moredebr"
- pr2.Anchored = false
- pr2.BrickColor = thepart.BrickColor
- pr2.CanCollide = false
- pr2.Material = thepart.Material
- pr2.Transparency = thepart.Transparency
- pr2.Size = Vector3.new(math.random(8, 18), math.random(6, 18), math.random(8, 18))
- pr2.CFrame = cfremz * CFrame.Angles(0, math.rad(30 * c), 0) * CFrame.new(0, -5, math.random(18, 22)) * CFrame.Angles(math.rad(math.random(-30, -15)), math.rad(math.random(0, 1)), math.rad(math.random(0, 1)))
- pr2.Parent = workspace
- pr2.Velocity = Vector3.new(math.random(-75, 75), math.random(120, 240), math.random(-75, 75))
- pr2.RotVelocity = Vector3.new(math.random(-35, 35), math.random(-35, 35), math.random(-35, 35))
- game.Debris:AddItem(pr2, 45)
- delay(2, function()
- pr2.CanCollide = true
- wait(10)
- if pr2 then
- pr2.CanCollide = false
- end
- end)
- end
- end
- end
- local acos = math.acos
- local sqrt = math.sqrt
- local Vec3 = Vector3.new
- local fromAxisAngle = CFrame.fromAxisAngle
- function ApplyTrig(Num,Func)
- local Min,Max = Func(0),Func(1)
- local i = Func(Num)
- return (i-Min)/(Max-Min)
- end
- function hito(partoz, magn, dmg, debtim)
- for _, guy in pairs(workspace:GetChildren()) do
- if guy:FindFirstChild("Humanoid") and guy:FindFirstChild("Head") and guy ~= char 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
- 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 so(id,par,vol,pit)
- local sou = Instance.new("Sound",par)
- sou.Volume=vol
- sou.Pitch=pit
- sou.SoundId=id
- sou:play()
- 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 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 = root.CFrame * CFrame.Angles(math.rad(180), 0, 0)
- effspwn.Parent = model
- Crater(torso,60)
- Crater(torso,120)
- for i,v in pairs(FindNearestTorso(torso.CFrame.p,50))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(10000020,10000030))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 200
- end
- end
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "whoosh"
- shok.BrickColor = maincolor
- 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, math.huge, 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, math.huge, 3)
- end
- end))
- coroutine.resume(coroutine.create(function()
- local shok = Instance.new("Part")
- shok.Name = "wring1"
- shok.BrickColor = maincolor
- 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 = maincolor
- 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 = maincolor
- 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 = maincolor
- 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 = maincolor
- 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 = maincolor
- 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 = maincolor
- 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 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 ~= char then
- if(v.Torso.Position -Position).magnitude <= Distance then
- table.insert(List,v)
- end
- end
- end
- end
- end
- return List
- end
- function weld(a, b, acf)
- local w = Instance.new("Weld", a)
- w.Part0 = a
- w.Part1 = b
- w.C0 = acf
- end
- function FuryBlast()
- local rs = game:GetService("RunService").RenderStepped
- if attack == false then
- attack = true
- sp = Instance.new("Part",rarm)
- sp.Anchored = true
- sp.CanCollide = false
- sp.Locked = true
- sp.Transparency = 1
- sp.Material = "Neon"
- sp.Size = Vector3.new(1,1,1)
- sp.TopSurface = "SmoothNoOutlines"
- sp.BottomSurface = "SmoothNoOutlines"
- sp.BrickColor = maincolor
- spm = Instance.new("SpecialMesh",sp)
- spm.MeshType = "Sphere"
- spm.Scale = Vector3.new(21,21,21)
- sp2 = Instance.new("Part", rarm)
- sp2.Name = "Energy"
- sp2.BrickColor = maincolor
- sp2.Size = Vector3.new(1, 1, 1)
- sp2.Shape = "Ball"
- sp2.CanCollide = false
- sp2.Anchored = true
- sp2.Locked = true
- sp2.TopSurface = 0
- sp2.BottomSurface = 0
- sp2.Transparency = 1
- spm2 = Instance.new("SpecialMesh",sp2)
- spm2.MeshId = "rbxassetid://9982590"
- spm2.Scale = Vector3.new(2,2,2)
- for i = 1, 20 do
- spm.Scale = spm.Scale - Vector3.new(1,1,1)
- sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(-6),math.rad(8)), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.62,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.4)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(-14),math.rad(0),0), 0.4)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(-8)), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(0, 0, math.rad(8)), 0.4)
- game:GetService("RunService").Stepped:wait()
- end
- for i = 1, 100, 20 do game:GetService("RunService").Stepped:wait()
- sp.CFrame = root.CFrame*CFrame.new(0,1,-2)
- end
- sp.Transparency = 0
- sp2.Transparency = 0.84
- for i = 1, 20 do
- --spm.Scale = spm.Scale - Vector3.new(1,1,1)
- sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0)
- sp2.CFrame = sp.CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(-i), math.rad(-i), math.rad(i))
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(110),math.rad(-6),math.rad(140)), 0.4)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(80),math.rad(6),math.rad(-40)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(30),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.3)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(20), 0, math.rad(-14)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-16), 0, math.rad(8)), 0.2)
- game:GetService("RunService").Stepped:wait()
- end
- for i = 1, 2880, 50 do
- game:GetService("RunService").Stepped:wait()
- sp.CFrame = rarm.CFrame*CFrame.new(0,-1,0)
- sp2.CFrame = rarm.CFrame * CFrame.new(0,-1,0) * CFrame.Angles(math.rad(-i/10), math.rad(-i/10), math.rad(i/10))
- game:GetService("RunService").Stepped:wait()
- end
- sp:Destroy()
- sp2:Destroy()
- local X = Instance.new("Part",char)
- local O = Instance.new("ObjectValue",X)
- O.Name = "creator"
- X.Locked = true
- X.Name = "Shell"
- X.Anchored = false
- X.CanCollide = false
- X.Transparency = 0
- X.Reflectance = 0
- X.BottomSurface = 0
- X.TopSurface = 0
- X.Shape = 0
- local V = Instance.new("ObjectValue",X)
- V.Value = char
- V.Name = "creator"
- X.BrickColor = maincolor
- X.Size = Vector3.new(2,2,2)
- X.Material = "Neon"
- local Z = Instance.new("SpecialMesh",X)
- Z.MeshType = "Sphere"
- Z.Scale = Vector3.new(0.5,0.5,1)
- X.CFrame = rarm.CFrame*CFrame.new(-3,0,0)
- local bv = Instance.new("BodyVelocity",X)
- bv.maxForce = Vector3.new(99999,99999,99999)
- X.CFrame = CFrame.new(X.Position,mouse.Hit.p)
- bv.velocity = X.CFrame.lookVector*65
- Explode = X.Touched:connect(function(hit)
- if hit ~= char and hit.Name ~= "Shell" then
- local cf = X.CFrame
- bv:Destroy()
- X.Anchored = true
- Z:Remove()
- Explode:disconnect()
- X.Size = Vector3.new(3,3,3)
- X.Touched:connect(function(hit) end)
- X.CanCollide = false
- local part3 = Instance.new("Part", rarm)
- part3.Anchored=true
- part3.CanCollide=false
- part3.Locked = true
- part3.TopSurface = "SmoothNoOutlines"
- part3.BottomSurface = "SmoothNoOutlines"
- part3.FormFactor='Custom'
- part3.Size=Vector3.new(1,1, 1)
- part3.CFrame=X.CFrame
- part3.Transparency=0
- part3.BrickColor=maincolor
- local mesh3 = Instance.new("SpecialMesh",part3)
- mesh3.MeshType = "Sphere"
- mesh3.Scale = Vector3.new(1,1,1)
- --debris:AddItem(X,8)
- local part4 = Instance.new("Part", rarm)
- part4.Material = "Neon"
- part4.Anchored=true
- part4.CanCollide=false
- part4.Locked = true
- part4.TopSurface = "SmoothNoOutlines"
- part4.BottomSurface = "SmoothNoOutlines"
- part4.FormFactor='Custom'
- part4.Size=Vector3.new(1,1, 1)
- part4.CFrame=X.CFrame
- part4.Transparency=0
- part4.BrickColor=BrickColor.new("Really black")
- local mesh4 = Instance.new("SpecialMesh",part4)
- mesh4.MeshType = "Sphere"
- mesh4.Scale = Vector3.new(.5,.5,.5)
- local part7 = Instance.new("Part", rarm)
- part7.Material = "Neon"
- part7.Anchored=true
- part7.CanCollide=false
- part7.Locked = true
- part7.TopSurface = "SmoothNoOutlines"
- part7.BottomSurface = "SmoothNoOutlines"
- part7.FormFactor='Custom'
- part7.Size=Vector3.new(1,1, 1)
- part7.CFrame=X.CFrame
- part7.Transparency=0
- part7.BrickColor=maincolor
- local mesh7 = Instance.new("SpecialMesh",part7)
- mesh7.MeshType = "Sphere"
- mesh7.Scale = Vector3.new(0.1, 0.1, 0.1)
- for i,v in pairs(FindNearestTorso(X.CFrame.p,140))do
- if v:FindFirstChild('Humanoid') then
- v.Humanoid:TakeDamage(math.random(math.huge,math.huge))
- v.Humanoid.PlatformStand = true
- v:FindFirstChild("Torso").Velocity = hed.CFrame.lookVector * 100
- end
- 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)
- 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
- 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(X.CFrame.x,0,X.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
- Part = function(x,y,z,color,tr,cc,an,parent)
- local p = Instance.new('Part',parent)
- p.formFactor = 'Custom'
- p.Size = Vector3.new(x,y,z)
- p.BrickColor = BrickColor.new(color)
- p.CanCollide = cc
- p.Transparency = tr
- p.Anchored = an
- p.TopSurface,p.BottomSurface = 0,0
- p.Locked=true
- p:BreakJoints()
- return p end
- Mesh = function(par,num,x,y,z)
- local msh = _
- if num == 1 then msh = Instance.new("CylinderMesh",par)
- elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
- elseif num == 3 then msh = Instance.new("BlockMesh",par)
- elseif num == 4 then msh = Instance.new("SpecialMesh",par) msh.MeshType = "Torso"
- elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
- end msh.Scale = Vector3.new(x,y,z)
- return msh end
- function explosion(col1,col2,cfr,sz,rng,dmg)
- local a= Part(1,1,1,col1,.5,false,true,workspace)
- local a2= Part(1,1,1,col2,.5,false,true,workspace)
- local a3= Part(1,1,1,col2,.5,false,true,workspace)
- v1,v2,v3=sz.x,sz.y,sz.z
- local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3)
- local m2= Mesh(a2,3,v1/3,v2/3,v3/3)
- local m3= Mesh(a3,3,v1/3,v2/3,v3/3)
- a.CFrame=cfr
- a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
- a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random())
- Spawn(function()
- while wait() do
- if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end
- m.Scale=m.Scale+Vector3.new(.1,0.1,0.1)
- m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1)
- m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1)
- a.Transparency=a.Transparency+0.05
- a2.Transparency=a2.Transparency+0.05
- a3.Transparency=a3.Transparency+0.05
- end
- 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)
- z = Instance.new("Sound",X)
- z.SoundId = SuperExplosion
- z.Pitch = 1
- z.Volume = 1999
- wait(0.1)
- z:Play()
- local part=Instance.new('Part',rarm)
- part.Anchored=true
- part.CanCollide=false
- part.Locked = true
- part.FormFactor='Custom'
- part.Size=Vector3.new(1,1,1)
- part.CFrame=X.CFrame*CFrame.new(0,0,0)
- part.Transparency=0
- part.BrickColor=maincolor
- local mesh=Instance.new('SpecialMesh',part)
- mesh.MeshId='http://www.roblox.com/asset/?id=20329976'
- mesh.Scale=Vector3.new(2,2,2)
- local part2=part:clone()
- part2.Parent = rarm
- part2.BrickColor=maincolor
- local part5=part:clone()
- part5.Parent = rarm
- part5.BrickColor=BrickColor.new("Baby blue")
- local part6=part:clone()
- part6.Parent = rarm
- part6.BrickColor=BrickColor.new("Hot pink")
- local mesh2=mesh:clone()
- mesh2.Parent=part2
- mesh2.Scale=Vector3.new(3, 3, 3)
- local mesh5=mesh:clone()
- mesh5.Parent=part5
- mesh5.Scale=Vector3.new(3, 3, 3)
- local mesh6=mesh:clone()
- mesh6.Parent=part6
- mesh6.Scale=Vector3.new(3, 3, 3)
- local blast = Instance.new("Part", rarm)
- blast.BrickColor = maincolor
- blast.Anchored = true
- blast.CanCollide = false
- blast.Locked = true
- blast.Size = Vector3.new(1, 1, 1)
- blast.TopSurface = "Smooth"
- blast.BottomSurface = "Smooth"
- blast.Transparency = 0
- blast.CFrame = HandCF
- local bm = Instance.new("SpecialMesh", blast)
- bm.Scale = Vector3.new(5,1,5)
- bm.MeshId = "rbxassetid://3270017"
- local blast2 = Instance.new("Part", rarm)
- blast2.BrickColor = maincolor
- blast2.Anchored = true
- blast2.CanCollide = false
- blast2.Locked = true
- blast2.Size = Vector3.new(1, 1, 1)
- blast2.TopSurface = "Smooth"
- blast2.BottomSurface = "Smooth"
- blast2.Transparency = 0
- blast2.CFrame = HandCF
- local bm2 = Instance.new("SpecialMesh", blast2)
- bm2.Scale = Vector3.new(3,1,3)
- bm2.MeshId = "rbxassetid://3270017"
- local blast3 = Instance.new("Part", rarm)
- blast3.BrickColor = maincolor
- blast3.Anchored = true
- blast3.CanCollide = false
- blast3.Locked = true
- blast3.Size = Vector3.new(1, 1, 1)
- blast3.TopSurface = "Smooth"
- blast3.BottomSurface = "Smooth"
- blast3.Transparency = 0
- blast3.CFrame = HandCF
- local bm3 = Instance.new("SpecialMesh", blast3)
- bm3.Scale = Vector3.new(3,1,3)
- bm3.MeshId = "rbxassetid://3270017"
- for i = 1,120 do game:GetService("RunService").Stepped:wait()
- X.Transparency = X.Transparency + (1/120)
- part.Transparency = part.Transparency + (1/120)
- part2.Transparency = part2.Transparency + (1/120)
- part3.Transparency = part3.Transparency + (1/120)
- part4.Transparency = part4.Transparency + (1/120)
- part5.Transparency = part5.Transparency + (1/120)
- part6.Transparency = part6.Transparency + (1/120)
- part7.Transparency = part7.Transparency + (1/120)
- blast.Transparency = blast.Transparency + (1/120)
- blast2.Transparency = blast2.Transparency + (1/120)
- blast3.Transparency = blast3.Transparency + (1/120)
- X.Size = X.Size + Vector3.new(.8,.8,.8)
- --part3.Size = part3.Size + Vector3.new(3,3,3)
- mesh.Scale = mesh.Scale + Vector3.new(1,.2,1)
- mesh2.Scale = mesh2.Scale + Vector3.new(1.1,.2,1.1)
- mesh3.Scale = mesh3.Scale + Vector3.new(3,3,3)
- mesh4.Scale = mesh4.Scale + Vector3.new(1.7,1.7,1.7)
- mesh5.Scale = mesh5.Scale + Vector3.new(1.6,.2,1.6)
- mesh6.Scale = mesh6.Scale + Vector3.new(2,.2,2)
- mesh7.Scale = mesh7.Scale + Vector3.new(4,4,4)
- bm.Scale = bm.Scale + Vector3.new(6,6,.2)
- bm2.Scale = bm2.Scale + Vector3.new(4,4,.2)
- bm3.Scale = bm3.Scale + Vector3.new(4,4,.2)
- X.CFrame = cf
- part.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2),0)
- part2.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2),0)
- part3.CFrame=X.CFrame
- part4.CFrame=X.CFrame
- part7.CFrame=X.CFrame
- part5.CFrame=X.CFrame * CFrame.Angles(0,math.rad(i*2.6),0)
- part6.CFrame=X.CFrame * CFrame.Angles(0,math.rad(-i*2.4),0)
- blast.CFrame=X.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- blast2.CFrame=X.CFrame * CFrame.Angles(math.rad(-i*4), math.rad(i*4), math.rad(0))
- blast3.CFrame=X.CFrame * CFrame.Angles(math.rad(180+i*4), math.rad(90-i*4), math.rad(0))
- game:GetService("RunService").Stepped:wait()
- end
- X:Destroy()
- part:Destroy()
- part2:Destroy()
- part3:Destroy()
- part4:Destroy()
- part5:Destroy()
- part6:Destroy()
- blast:Destroy()
- blast2:Destroy()
- blast3:Destroy()
- z:Destroy()
- end
- end)
- for i = 1, 20 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,0.55,0)*CFrame.Angles(math.rad(70),math.rad(-6),math.rad(-20)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0.55,0)*CFrame.Angles(math.rad(-6),math.rad(6),math.rad(-8)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,-.2)*CFrame.Angles(math.rad(0),math.rad(0),0), 0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.4)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-8)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(-6), 0, math.rad(8)), 0.2)
- game:GetService("RunService").Stepped:wait()
- end
- attack = false
- end
- end
- function GroundSmash()
- attack = true
- hum.WalkSpeed = 0
- for i = 1, 20 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1,0.6,-.2) *CFrame.Angles (math.rad (45),math.rad(0),math.rad(32)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1,1,0)*CFrame.Angles(math.rad (0),math.rad(0),math.rad(-20)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad (- 8),math.rad(-40), math.rad(-8)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles (math.rad (-50), math.rad(40), math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, .4, -.6) * CFrame.Angles (math.rad (30), 0, math.rad(20)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, 0) * CFrame.Angles (math.rad(- 10), math.rad(-40), math.rad(0)), 0.2)
- wait()
- end
- wait(1)
- hum.WalkSpeed = 150
- local BV = Instance.new("BodyVelocity", torso)
- BV.maxForce = Vector3.new(500000, 500000000, 500000)
- BV.P = 10000000000000
- BV.velocity = Vector3.new(0,300,0)
- for i = 1, 20 do
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(20),math.rad(0), math.rad(0)),0.7)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.7)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(40), 0, math.rad(-20)), 0.7)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(20)), 0.7)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-10), 0, 0), 0.7)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -0.5) * CFrame.Angles(math.rad(0), 0, 0), 0.7)
- wait()
- end
- torso.BodyVelocity:Destroy()
- for i = 1, 30 do
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-14),math.rad(0), math.rad(0)),0.3)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-16), math.rad (0), math.rad(0)), 0.3)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -1) * CFrame.Angles(math.rad(20), 0, 0), 0.3)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.6) * CFrame.Angles(math.rad(-30), 0, 0), 0.3)
- wait()
- end
- if (torso.Velocity*Vector3.new(1, 1, 1)).magnitude > 1 then
- for i = 1, 20 do
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0)*CFrame.Angles(math.rad(-18),math.rad(0), math.rad(0)),0.3)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-13), math.rad (0), math.rad(0)), 0.3)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-60)), 0.3)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(60)), 0.3)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -.4, -0.6) * CFrame.Angles(math.rad(10), 0, 0), 0.3)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.8, -.4) * CFrame.Angles(math.rad(-20), 0, 0), 0.3)
- wait()
- end
- end
- local ry,ht,ps=nil,nil,nil
- while ht==nil do
- ry,ht,ps=newRay(root.CFrame*CFrame.new(0,-2,0),root.CFrame*CFrame.new(0,-3,0),4.1,{char})
- wait()
- end
- local par,loc=workspace:FindPartOnRay(Ray.new(char.Torso.Position,(char.Torso.Position-(char.Torso.Position-Vector3.new(0,2,0))).unit*-500),char)
- if par then
- local cfremz = CFrame.new(loc)
- so("rbxassetid://133680244",torso,10,1)
- 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 = rarm.CFrame * CFrame.new(0, -0.7, 0)
- effspwn.Parent = model
- KABOOMZ2()
- MegaCrater(cfremz, par, 50)
- end
- hum.WalkSpeed = 8
- for i = 1, 25 do
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.6, 0.3) *CFrame.Angles (math.rad(120),math.rad(10),math.rad(32)), 0.2)
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.2,1,0)*CFrame.Angles(math.rad(80),math.rad(0),math.rad(-20)), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,1.5,0)*CFrame.Angles(math.rad (-8),math.rad(-40), math.rad(-8)),0.2)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1.5, 0) * CFrame.Angles(math.rad(-50), math.rad(40), math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.8, 0, -.6) * CFrame.Angles(math.rad(30), 0, math.rad(20)), 0.2)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(1, -1, 0) * CFrame.Angles(math.rad(-10), math.rad(-40), math.rad(0)), 0.2)
- wait()
- end
- wait(0.2)
- attack = false
- end
- --// Attacks \\--
- mouse.KeyDown:connect(function(key)
- if attack == false then
- if key == "q" then
- end
- if key == "e" then
- GroundSmash()
- end
- if key == "t" then
- AuraBall()
- end
- if key == "g" then
- game.Chat:Chat(char.Head,"Guten Tag", "Red")
- FuryBlast()
- end
- if key == "z" then
- if running == false then
- running = true
- hum.WalkSpeed = 75
- elseif running == true then
- running = false
- hum.WalkSpeed = 29
- end
- end
- if key == "m" then
- ChangeThemes()
- end
- end
- end)
- game:GetService("RunService").RenderStepped:connect(function()
- char.Humanoid.FreeFalling:connect(function(f)
- if f then
- ffing = true
- else
- ffing = false
- end
- end)
- sine = sine + add
- if ffing==true then
- anim="jump"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then
- anim="idle"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then
- anim = "walk"
- elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then
- anim = "run"
- end
- if attack==false then
- if anim=="idle" then
- add=0.5
- torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,0+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(0),0,0),0.05)
- rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15+math.sin(sine/14)/20),0.25)
- lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15+-math.sin(sine/14)/20),0.25)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(0.8,0.6,-0.6)*CFrame.Angles(math.rad(110),math.rad(0),math.rad(-90)), 0.5)--arm
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-0.8,0.6,-.6)*CFrame.Angles(math.rad(90),math.rad(0),math.rad(90)), 0.5)--arm
- hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.15)*CFrame.Angles(math.rad(-20),0,0),0.25)
- elseif anim=="walk" then
- add=0.5
- larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0.5 + 0.05 * math.cos(sine / 3), -math.sin(sine / 6) / 4) * CFrame.Angles(math.sin(sine / 6) / 2.8, -math.sin(sine / 6) / 3, math.rad(-10 - 2 * math.cos(sine / 3))), 0.2)
- rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0.5 - 0.05 * math.cos(sine / 3), math.sin(sine / 6) / 4) * CFrame.Angles(-math.sin(sine / 6) / 2.8, -math.sin(sine / 6) / 3, math.rad(10 + 2 * math.cos(sine / 3))), 0.2)
- hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 1.5, 0) * CFrame.Angles(math.rad(-8 + 2 * math.cos(sine / 3)), math.rad(0), math.rad(0)), 0.2)
- lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1 - 0.15 * math.cos(sine / 6) / 5, -0.15 + math.sin(sine / 6) / 5) * CFrame.Angles(math.rad(-14) + -math.sin(sine / 6) / 2.7, 0, 0), 0.4)
- rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1 + 0.15 * math.cos(sine / 6) / 5, -0.15 + -math.sin(sine / 6) / 5) * CFrame.Angles(math.rad(-14) + math.sin(sine / 6) / 2.7, 0, 0), 0.4)
- torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1 + 0.07 * math.cos(sine / 3), 0) * CFrame.Angles(math.rad(-4 + 1 * math.cos(sine / 3)), 0, math.rad(0)), 0.2)
- elseif anim=="run" then
- add=0.5
- torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0,1+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-70),0,0),0.25)
- rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-1,0)*CFrame.Angles(math.rad(0),0,0.15),0.25)
- lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0)*CFrame.Angles(math.rad(0),0,-0.15),0.25)
- rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-20)+-math.sin(sine/14)/7,0,-6),0.25)
- larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5+-math.cos(sine/14)/7,0)*CFrame.Angles(math.rad(-20)+-math.sin(sine/14)/7,0,6),0.25)
- hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,0.3)*CFrame.Angles(math.rad(70),0,0),0.25)
- elseif anim=="jump" then
- add=0.5
- torso.Weld.C0=torso.Weld.C0:lerp(CFrame.new(0+-math.cos(sine/14)/7,.5+-math.cos(sine/14)/7,0+-math.cos(sine/14)/7)*CFrame.Angles(math.rad(0),0,0),0.05)
- rleg.Weld.C0=rleg.Weld.C0:lerp(CFrame.new(.5,-0.7,-0.5)*CFrame.Angles(math.rad(10),0,0),0.25)
- lleg.Weld.C0=lleg.Weld.C0:lerp(CFrame.new(-.5,-1,0.1)*CFrame.Angles(math.rad(-10),0,0),0.25)
- rarm.Weld.C0=rarm.Weld.C0:lerp(CFrame.new(1.5,0.5,0)*CFrame.Angles(math.rad(50),0,90),0.25)
- larm.Weld.C0=larm.Weld.C0:lerp(CFrame.new(-1.5,0.5,0)*CFrame.Angles(math.rad(50),0,-90),0.25)
- hed.Weld.C0=hed.Weld.C0:lerp(CFrame.new(0,1.5,-0.1)*CFrame.Angles(math.rad(-20),0,0),0.25)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement