Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print[[Q = Homing energy orb
- E = Energy orb
- R = Singularity
- F = Pinnacle of Strength(transformation)(insanely overpowered)
- T = Taunt
- --Direct intervention is necessary.--
- ]]
- if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
- local function NewFakeEvent()
- local Bind = Instance.new("BindableEvent")
- local Fake;Fake = {Connections = {},
- fakeEvent=true;
- Connect=function(self,Func)
- Bind.Event:connect(Func)
- self.Connections[Bind] = true
- return setmetatable({Connected = true},{
- __index = function (self,Index)
- if Index:lower() == "disconnect" then
- return function() Fake.Connections[Bind] = false;self.Connected = false end
- end
- return Fake[Index]
- end;
- __tostring = function() return "Connection" end;
- })
- 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.Connections then
- for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
- end
- end
- Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then return 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
- end
- return RealPlayer[Index]
- 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)
- local FakeServices = {
- ["players"] = function()
- 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
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["runservice"] = function()
- 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
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return RealGame:GetService(Service)
- 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
- end
- return nil
- end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
- Player=game.Players.LocalPlayer
- Character=Player.Character
- Mouse = Player:GetMouse()
- mouse = Mouse
- Character.Humanoid.Name = "noneofurbusiness"
- hum = Character.noneofurbusiness
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- Root=Character["HumanoidRootPart"]
- Head=Character["Head"]
- Torso=Character["Torso"]
- Neck=Torso["Neck"]
- walking = false
- jumping = false
- attacking = false
- firsttime = false
- tauntdebounce = false
- position = nil
- invisible = false
- MseGuide = true
- running = false
- settime = 0
- sine = 0
- t = 0
- ws = 19
- jp = 85
- secondform = false
- isattacking = false
- change = 1
- combo1 = true
- dancing = false
- equip = false
- dgs = 75
- dedlaff = false
- combo2 = false
- switch1 = true
- singularitybounce = false
- switch2 = false
- firsttime2 = false
- combo3 = false
- gunallowance = false
- cooldown = false
- shooting = false
- RunSrv = game:GetService("RunService")
- RenderStepped = game:GetService("RunService").RenderStepped
- removeuseless = game:GetService("Debris")
- local dmt2 = {530959353,1147754917}
- local soundtable = {2568787910,2568788266,2568789694,2568791151,2568793830,2568797435,907329532,907330011,907330103,907328384,907328262,907328908,907328689,907329293,907328516,907329893,907332670,907332856,907333294}
- local soundtable2 = {2616767970,2614901458,2616891279,2614896603,2616768521,2616848595,2614905967,2614918002,2563244734,2563244134,2563244444,2563244999,2563245407,2563654940,2563656758,2563658474,2563659001}
- local deathtable = {2568790033,2568790412,907332997,907331307,907331575,907332235,907330753,907330198,907329669,907328147}
- local deathtable2 = {2563655622,2563656386,2563657337,2563657659,2563656003,2614903827}
- local beingattackedtable = {2568798123,907332525,907332040,907331443,907331178,907331038,907330908,907330619,907330447}
- local orbthrows = {907532492,907532684,909253995}
- rdnm = #soundtable
- dmt2random = #dmt2
- rdnm2 = #soundtable2
- death1 = #deathtable
- death2 = #deathtable2
- orbz = #orbthrows
- ouchtable = #beingattackedtable
- screenGui = Instance.new("ScreenGui")
- screenGui.Parent = script.Parent
- local HEADLERP = Instance.new("ManualWeld")
- HEADLERP.Parent = Head
- HEADLERP.Part0 = Head
- HEADLERP.Part1 = Head
- HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local TORSOLERP = Instance.new("ManualWeld")
- TORSOLERP.Parent = Root
- TORSOLERP.Part0 = Torso
- TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local ROOTLERP = Instance.new("ManualWeld")
- ROOTLERP.Parent = Root
- ROOTLERP.Part0 = Root
- ROOTLERP.Part1 = Torso
- ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local RIGHTARMLERP = Instance.new("ManualWeld")
- RIGHTARMLERP.Parent = RightArm
- RIGHTARMLERP.Part0 = RightArm
- RIGHTARMLERP.Part1 = Torso
- RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local LEFTARMLERP = Instance.new("ManualWeld")
- LEFTARMLERP.Parent = LeftArm
- LEFTARMLERP.Part0 = LeftArm
- LEFTARMLERP.Part1 = Torso
- LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local RIGHTLEGLERP = Instance.new("ManualWeld")
- RIGHTLEGLERP.Parent = RightLeg
- RIGHTLEGLERP.Part0 = RightLeg
- RIGHTLEGLERP.Part1 = Torso
- RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local LEFTLEGLERP = Instance.new("ManualWeld")
- LEFTLEGLERP.Parent = LeftLeg
- LEFTLEGLERP.Part0 = LeftLeg
- LEFTLEGLERP.Part1 = Torso
- LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- local function weldBetween(a, b)
- local weld = Instance.new("ManualWeld", a)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = a.CFrame:inverse() * b.CFrame
- return weld
- end
- function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
- A = Instance.new("Attachment", PARENT)
- A.Position = POSITION1
- A.Name = "A"
- B = Instance.new("Attachment", PARENT)
- B.Position = POSITION2
- B.Name = "B"
- tr1 = Instance.new("Trail", PARENT)
- tr1.Attachment0 = A
- tr1.Attachment1 = B
- tr1.Enabled = true
- tr1.Lifetime = LIFETIME
- tr1.TextureMode = "Static"
- tr1.LightInfluence = 0
- tr1.Color = COLOR
- tr1.Transparency = NumberSequence.new(0, 1)
- end
- introsound = Instance.new("Sound",Head)
- introsound.SoundId = "rbxassetid://907328262"
- introsound.Volume = 10
- introsound:Play()
- footsteps = Instance.new("Sound",Torso)
- footsteps.SoundId = "rbxassetid://1244506786"
- footsteps.Volume = 0
- footsteps.Looped = true
- footsteps.Pitch = 1.6
- footsteps.Name = "fp"
- footsteps:Play()
- orbz = orbthrows[math.random(1,#orbthrows)]
- orbthrow = Instance.new("Sound",RightArm)
- orbthrow.SoundId = "rbxassetid://"..orbz
- orbthrow.Volume = 7
- orbthrow.Pitch = 1
- orbthrow.Name = "orbthrow"
- coroutine.wrap(function()
- doomtheme = Instance.new("Sound",Torso)
- doomtheme.SoundId = "rbxassetid://425308442"
- doomtheme.Volume = 0
- doomtheme.Looped = true
- doomtheme:Play()
- doomtheme.Name = "doomtheme"
- for i = 1, 30 do
- doomtheme.Volume = doomtheme.Volume + .1
- wait()
- end
- end)()
- Torso.ChildRemoved:connect(function(removed)
- if removed.Name == "doomtheme" then
- if not secondform then
- doomtheme = Instance.new("Sound",Torso)
- doomtheme.SoundId = "rbxassetid://425308442"
- if invisible then
- doomtheme.Volume = 0
- else
- doomtheme.Volume = 2
- end
- doomtheme.Looped = true
- doomtheme:Play()
- doomtheme.Name = "doomtheme"
- else
- dmt2random = dmt2[math.random(1,#dmt2)]
- doomtheme = Instance.new("Sound",Torso)
- doomtheme.SoundId = "rbxassetid://"..dmt2random
- if invisible then
- doomtheme.Volume = 0
- else
- doomtheme.Volume = 3
- end
- doomtheme.Looped = true
- doomtheme:Play()
- doomtheme.Name = "doomtheme"
- end
- end
- end)
- Torso.ChildRemoved:connect(function(removed)
- if removed.Name == "orbthrow" then
- orbz = orbthrows[math.random(1,#orbthrows)]
- orbthrow = Instance.new("Sound",RightArm)
- orbthrow.SoundId = "rbxassetid://"..orbz
- orbthrow.Volume = 7
- orbthrow.Pitch = 1
- orbthrow.Name = "orbthrow"
- end
- end)
- Torso.ChildRemoved:connect(function(removed)
- if removed.Name == "fp" then
- footsteps = Instance.new("Sound",Torso)
- footsteps.SoundId = "rbxassetid://1244506786"
- footsteps.Volume = 0
- footsteps.Looped = true
- footsteps.Pitch = 1.6
- footsteps.Name = "fp"
- footsteps:Play()
- end
- end)
- leftlocation = Instance.new("Part",LeftArm)
- leftlocation.Size = Vector3.new(1,1,1)
- leftlocation.Transparency = 1
- leftlocation.Name = "leftlocation"
- leftlocationweld = weldBetween(leftlocation,LeftArm)
- leftlocationweld.C0 = CFrame.new(0,1.2,0)
- rightlocation = Instance.new("Part",RightArm)
- rightlocation.Size = Vector3.new(1,1,1)
- rightlocation.Transparency = 1
- rightlocation.Name = "rightlocation"
- rightlocationweld = weldBetween(rightlocation,RightArm)
- rightlocationweld.C0 = CFrame.new(0,1.2,0)
- shirt = Instance.new("Shirt", Character)
- shirt.Name = "Shirt"
- Character.Shirt.ShirtTemplate = "rbxassetid://302262616"
- particlecolor = ColorSequence.new(Color3.new(255, 255, 255))
- particlemiter1 = Instance.new("ParticleEmitter", LeftArm)
- particlemiter1.Enabled = false
- particlemiter1.Color = particlecolor
- particlemiter1.Texture = "rbxassetid://1390780157"
- particlemiter1.Lifetime = NumberRange.new(.05)
- particlemiter1.Size = NumberSequence.new(1.25,1.25)
- particlemiter1.Rate = 4
- particlemiter1.Rotation = NumberRange.new(0,360)
- particlemiter1.RotSpeed = NumberRange.new(0)
- particlemiter1.Speed = NumberRange.new(0)
- particlemiter2 = Instance.new("ParticleEmitter", RightArm)
- particlemiter2.Enabled = false
- particlemiter2.Color = particlecolor
- particlemiter2.Texture = "rbxassetid://1390780157"
- particlemiter2.Rotation = NumberRange.new(0,360)
- particlemiter2.Lifetime = NumberRange.new(.05)
- particlemiter2.Size = NumberSequence.new(1.25,1.25)
- particlemiter2.Rate = 4
- particlemiter2.RotSpeed = NumberRange.new(0)
- particlemiter2.Speed = NumberRange.new(0)
- particlemiter4 = Instance.new("ParticleEmitter", LeftLeg)
- particlemiter4.Enabled = false
- particlemiter4.Color = particlecolor
- particlemiter4.Texture = "rbxassetid://1390780157"
- particlemiter4.Lifetime = NumberRange.new(.05)
- particlemiter4.Rotation = NumberRange.new(0,360)
- particlemiter4.Size = NumberSequence.new(1.25,1.25)
- particlemiter4.Rate = 4
- particlemiter4.RotSpeed = NumberRange.new(0)
- particlemiter4.Speed = NumberRange.new(0)
- particlemiter5 = Instance.new("ParticleEmitter", RightLeg)
- particlemiter5.Enabled = false
- particlemiter5.Color = particlecolor
- particlemiter5.Texture = "rbxassetid://1390780157"
- particlemiter5.Rotation = NumberRange.new(0,360)
- particlemiter5.Lifetime = NumberRange.new(.05)
- particlemiter5.Size = NumberSequence.new(1.25,1.25)
- particlemiter5.Rate = 4
- particlemiter5.RotSpeed = NumberRange.new(0)
- particlemiter5.Speed = NumberRange.new(0)
- particlemiter6 = Instance.new("ParticleEmitter", Torso)
- particlemiter6.Enabled = false
- particlemiter6.Color = particlecolor
- particlemiter6.Texture = "rbxassetid://1390780157"
- particlemiter6.Rotation = NumberRange.new(0,360)
- particlemiter6.Lifetime = NumberRange.new(.05)
- particlemiter6.Size = NumberSequence.new(1.25,1.25)
- particlemiter6.Rate = 4
- particlemiter6.RotSpeed = NumberRange.new(0)
- particlemiter6.Speed = NumberRange.new(0)
- particlemiter7 = Instance.new("ParticleEmitter", Head)
- particlemiter7.Enabled = false
- particlemiter7.Color = particlecolor
- particlemiter7.Texture = "rbxassetid://1390780157"
- particlemiter7.Rotation = NumberRange.new(0,360)
- particlemiter7.Lifetime = NumberRange.new(.05)
- particlemiter7.Size = NumberSequence.new(1.25,1.25)
- particlemiter7.Rate = 4
- particlemiter7.RotSpeed = NumberRange.new(0)
- particlemiter7.Speed = NumberRange.new(0)
- hair = Instance.new("Part",Character)
- hair.Size = Vector3.new(2,2,2)
- hair.CFrame = Head.CFrame
- hair.CanCollide = false
- hairweld = Instance.new("Weld",hair)
- hairweld.Part0 = hair
- hairweld.Part1 = Head
- hairweld.C0 = hair.CFrame:inverse() * Head.CFrame * CFrame.new(0,.6,-.78)
- mhair = Instance.new("SpecialMesh", hair)
- mhair.MeshType = "FileMesh"
- mhair.Scale = Vector3.new(.97, 1.03, 1.06)
- mhair.MeshId,mhair.TextureId = 'http://www.roblox.com/asset/?id=398618628','http://www.roblox.com/asset/?id=398620800'
- bandana = Instance.new("Part",Character)
- bandana.Size = Vector3.new(2,2,2)
- bandana.CFrame = Head.CFrame
- bandana.CanCollide = false
- bandana.Transparency = 0
- bandanaweld = Instance.new("Weld",bandana)
- bandanaweld.Part0 = bandana
- bandanaweld.Part1 = Head
- bandanaweld.C0 = bandana.CFrame:inverse() * Head.CFrame * CFrame.new(0,.3,-.05)
- mbandana = Instance.new("SpecialMesh", bandana)
- mbandana.MeshType = "FileMesh"
- mbandana.Scale = Vector3.new(1.04, 1.04, 1.04)
- mbandana.MeshId,mbandana.TextureId = 'http://www.roblox.com/asset/?id=64560176','http://www.roblox.com/asset/?id=64560199'
- spiderlegs = Instance.new("Part",Character)
- spiderlegs.Size = Vector3.new(2,2,2)
- spiderlegs.CFrame = Torso.CFrame
- spiderlegs.CanCollide = false
- spiderlegs.Transparency = 0
- spiderlegsweld = Instance.new("Weld",spiderlegs)
- spiderlegsweld.Part0 = spiderlegs
- spiderlegsweld.Part1 = Torso
- spiderlegsweld.C0 = spiderlegs.CFrame:inverse() * Root.CFrame * CFrame.new(0,-.9,.3)
- mspiderlegs = Instance.new("SpecialMesh", spiderlegs)
- mspiderlegs.MeshType = "FileMesh"
- mspiderlegs.Scale = Vector3.new(.9, .9, .9)
- mspiderlegs.MeshId,mspiderlegs.TextureId = 'http://www.roblox.com/asset/?id=696339842','http://www.roblox.com/asset/?id=696339520'
- for i,v in pairs(Character:GetChildren()) do
- if v.ClassName == "Pants" or v.ClassName == "Hat" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then
- v:Remove()
- end
- end
- leg1 = Instance.new("SpecialMesh", LeftLeg)
- leg1.MeshType = "FileMesh"
- leg1.Scale = Vector3.new(1, 1, 1)
- leg1.MeshId,leg1.TextureId = 'http://www.roblox.com/asset/?id=76123854','http://www.roblox.com/asset/?id=76123834'
- leg2 = Instance.new("SpecialMesh", RightLeg)
- leg2.MeshType = "FileMesh"
- leg2.Scale = Vector3.new(1, 1, 1)
- leg2.MeshId,leg2.TextureId = 'http://www.roblox.com/asset/?id=76123889','http://www.roblox.com/asset/?id=76123834'
- torso1 = Instance.new("CharacterMesh",Character)
- torso1.MeshId = 319346857
- torso1.BodyPart = "Torso"
- arm1 = Instance.new("CharacterMesh",Character)
- arm1.MeshId = 303665934
- arm1.BodyPart = "LeftArm"
- arm2 = Instance.new("CharacterMesh",Character)
- arm2.MeshId = 303665872
- arm2.BodyPart = "RightArm"
- coroutine.wrap(function()
- while wait() do
- if secondform then
- Head.face.Texture = "rbxassetid://1127768638"
- else
- Head.face.Texture = "rbxassetid://629947734"
- end
- hum.WalkSpeed = ws
- hum.JumpPower = jp
- LeftArm.BrickColor = BrickColor.new("Really black")
- RightArm.BrickColor = BrickColor.new("Really black")
- Head.BrickColor = BrickColor.new("Really black")
- Torso.BrickColor = BrickColor.new("Really black")
- LeftLeg.BrickColor = BrickColor.new("Really black")
- RightLeg.BrickColor = BrickColor.new("Really black")
- end
- end)()
- godmode = coroutine.wrap(function()
- while wait() do
- for i,v in pairs(Character:GetChildren()) do
- if v:IsA("BasePart") and v ~= Root then
- v.Anchored = false
- end
- end
- hum.MaxHealth = math.huge
- wait(.00001)
- hum.Health = math.huge
- swait()
- end
- end)
- godmode()
- ff = Instance.new("ForceField", Character)
- ff.Visible = false
- coroutine.wrap(function()
- for i,v in pairs(Character:GetChildren()) do
- if v.Name == "Animate" then v:Remove()
- end
- end
- end)()
- function damagealll(Radius,Position)
- local Returning = {}
- for _,v in pairs(workspace:GetChildren()) do
- if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
- if v:FindFirstChild("Torso") then
- local Mag = (v.Torso.Position - Position).magnitude
- if Mag < Radius then
- table.insert(Returning,v)
- end
- elseif v:FindFirstChild("UpperTorso") then
- local Mag = (v.UpperTorso.Position - Position).magnitude
- if Mag < Radius then
- table.insert(Returning,v)
- end
- end
- end
- end
- return Returning
- end
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 1 / 60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- game:service("RunService").Stepped:wait(0)
- else
- for i = 0, num do
- game:service("RunService").Stepped:wait(0)
- end
- end
- end
- for _,n in pairs(Character:GetChildren()) do
- if n:IsA("Accessory") then n:Remove() end
- end
- for _,x in pairs(Character:GetChildren()) do
- if x:IsA("Decal") then x:Remove() end
- end
- function ray(pos, dir, rang, ignoredesc)
- return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
- end
- function ray2(startpos, endpos, distance, ignore)
- local dir = CFrame.new(startpos,endpos).lookVector
- return ray(startpos, dir, distance, ignore)
- end
- coroutine.wrap(function()
- while true do
- for i,v in pairs(Torso:GetChildren()) do
- if v.Name == "explodball" then
- v.Size = v.Size + Vector3.new(2,2,2)
- v.Transparency = v.Transparency + .08
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do
- if v.Name == "explodmesh" then
- v.Scale = v.Scale + Vector3.new(.01,0,.01)
- v.Parent.Transparency = v.Parent.Transparency + .06
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do
- if v.Name == "explodmesh2" then
- v.Scale = v.Scale + Vector3.new(1.5,0,1.5)
- v.Parent.Transparency = v.Parent.Transparency + .06
- end
- end
- swait()
- end
- end)()
- function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
- so = Instance.new("Sound")
- so.Parent = PARENT
- so.SoundId = "rbxassetid://"..ID
- so.Volume = VOL
- so.Looped = LOOP
- so:Play()
- removeuseless:AddItem(so,REMOVE)
- end
- immortal = {}
- for i,v in pairs(Character:GetDescendants()) do
- if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
- if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then
- v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
- end
- table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
- elseif v:IsA("JointInstance") then
- table.insert(immortal,{v,v.Parent,nil,nil,nil})
- end
- end
- for e = 1, #immortal do
- if immortal[e] ~= nil then
- local STUFF = immortal[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local COLOR = STUFF[4]
- local TRANSPARENCY = STUFF[5]
- if levitate then
- if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
- PART.Material = MATERIAL
- PART.Color = COLOR
- PART.Transparency = TRANSPARENCY
- end
- PART.AncestryChanged:connect(function()
- PART.Parent = PARENT
- end)
- else
- if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
- PART.Material = MATERIAL
- PART.Color = COLOR
- PART.Transparency = TRANSPARENCY
- end
- PART.AncestryChanged:connect(function()
- PART.Parent = PARENT
- end)
- end
- end
- end
- function immortality()
- for e = 1, #immortal do
- if immortal[e] ~= nil then
- local STUFF = immortal[e]
- local PART = STUFF[1]
- local PARENT = STUFF[2]
- local MATERIAL = STUFF[3]
- local COLOR = STUFF[4]
- local TRANSPARENCY = STUFF[5]
- if PART.ClassName == "Part" and PART == Root then
- PART.Material = MATERIAL
- PART.Color = COLOR
- PART.Transparency = TRANSPARENCY
- end
- if PART.Parent ~= PARENT then
- hum:Remove()
- PART.Parent = PARENT
- hum = Instance.new("Humanoid",Character)
- hum.Name = "noneofurbusiness"
- end
- end
- end
- end
- mouse.KeyDown:connect(function(Press)
- Press=Press:lower()
- if Press=='f' then
- if invisible then return end
- if cooldown then return end
- if debounce then return end
- if secondform then
- SOUND(Torso,1316455158,10,false,6)
- particlemiter1.Enabled = false
- particlemiter2.Enabled = false
- particlemiter4.Enabled = false
- particlemiter5.Enabled = false
- particlemiter6.Enabled = false
- particlemiter7.Enabled = false
- cooldown = true
- debounce = true
- coroutine.wrap(function()
- for i = 1, 10 do
- framee.BackgroundTransparency = framee.BackgroundTransparency + .0423
- swait()
- end
- framee:Remove()
- end)()
- leg1.TextureId = "rbxassetid://76123834"
- leg2.TextureId = "rbxassetid://76123834"
- mhair.TextureId = "rbxassetid://398620800"
- mbandana.TextureId = "rbxassetid://64560199"
- transformwave = Instance.new("Part",Torso)
- transformwave.BrickColor = BrickColor.new("Dark Royal blue")
- transformwave.Anchored = true
- transformwave.CFrame = Torso.CFrame
- transformwave.CanCollide = false
- transformwave.Size = Vector3.new(5,5,5)
- transformwave.Transparency = 0
- transformwave.Material = "Neon"
- transformwave.Shape = "Ball"
- for i = 1, 20 do
- transformwave.Size = transformwave.Size + Vector3.new(2,2,2)
- transformwave.Transparency = transformwave.Transparency + .09
- doomtheme.Volume = doomtheme.Volume - .25
- swait()
- end
- transformwave:Remove()
- secondform = false
- doomtheme.SoundId = "rbxassetid://425308442"
- doomtheme:Play()
- for i = 1, 20 do
- doomtheme.Volume = doomtheme.Volume + .15
- swait()
- end
- debounce = false
- wait(5)
- cooldown = false
- else
- particlemiter1.Enabled = true
- particlemiter2.Enabled = true
- particlemiter4.Enabled = true
- particlemiter5.Enabled = true
- particlemiter6.Enabled = true
- particlemiter7.Enabled = true
- coroutine.wrap(function()
- for i = 1, 12 do
- hum.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
- swait()
- end
- hum.CameraOffset = Vector3.new(0,0,0)
- end)()
- tauntdebounce = true
- cooldown = true
- debounce = true
- secondform = true
- coroutine.wrap(function()
- transformwave = Instance.new("Part",Torso)
- transformwave.BrickColor = BrickColor.new("Really red")
- transformwave.Anchored = true
- transformwave.CFrame = Torso.CFrame
- transformwave.CanCollide = false
- transformwave.Size = Vector3.new(5,5,5)
- transformwave.Transparency = 0
- transformwave.Material = "Neon"
- transformwave.Shape = "Ball"
- for i = 1, 20 do
- transformwave.Size = transformwave.Size + Vector3.new(2,2,2)
- transformwave.Transparency = transformwave.Transparency + .09
- doomtheme.Volume = doomtheme.Volume - .25
- swait()
- end
- transformwave:Remove()
- end)()
- leg1.TextureId = "rbxassetid://91838241"
- leg2.TextureId = "rbxassetid://91838241"
- mhair.TextureId = "rbxassetid://1461382301"
- mbandana.TextureId = "rbxassetid://1326186614"
- transformsound = Instance.new("Sound",Torso)
- transformsound.Volume = 10
- transformsound.SoundId = "rbxassetid://159576182"
- transformsound:Play()
- coroutine.wrap(function()
- wait(1)
- realmofexistence = Instance.new("Sound",Torso)
- realmofexistence.Volume = 8
- realmofexistence.SoundId = "rbxassetid://2565721367"
- realmofexistence:Play()
- end)()
- framee = Instance.new("Frame")
- framee.Parent = screenGui
- framee.Position = UDim2.new(0, 8, 0, -500)
- framee.Size = UDim2.new(100000000,10000000,10000000,10000000)
- framee.BackgroundColor3 = BrickColor.new("Really red").Color
- framee.BackgroundTransparency = 1
- coroutine.wrap(function()
- for i = 1, 10 do
- framee.BackgroundTransparency = framee.BackgroundTransparency - .0423
- swait()
- end
- end)()
- wait(2.2)
- dmt2random = dmt2[math.random(1,#dmt2)]
- doomtheme.SoundId = "rbxassetid://"..dmt2random
- if doomtheme.SoundId == "rbxassetid://530959353" then
- doomtheme.TimePosition = 57
- elseif doomtheme.SoundId == "rbxassetid://1147754917" then
- doomtheme.TimePosition = 39.929965046201687073
- end
- doomtheme:Play()
- for i = 1, 20 do
- doomtheme.Volume = doomtheme.Volume + .25
- swait()
- end
- end
- debounce = false
- coroutine.wrap(function()
- wait(2)
- tauntdebounce = false
- end)()
- wait(5)
- cooldown = false
- elseif Press=='m' then
- immortality()
- if tauntdebounce then return end
- if dedlaff then return end
- if oofing then return end
- coroutine.wrap(function()
- oofing = true
- ouchtable = beingattackedtable[math.random(1,#beingattackedtable)]
- ouch = Instance.new("Sound",Head)
- ouch.SoundId = "rbxassetid://"..ouchtable
- ouch.Volume = 8
- ouch:Play()
- wait(1)
- wait(ouch.TimeLength)
- ouch:Remove()
- wait(1)
- oofing = false
- end)()
- elseif Press=='e' then
- if secondform then
- if debounce then return end
- debounce = true
- attacking = true
- orbz = orbthrows[math.random(1,#orbthrows)]
- orbthrow.SoundId = "rbxassetid://"..orbz
- orbthrow:Play()
- appi = true
- coroutine.wrap(function()
- while appi do
- swait()
- if Root.Velocity.Magnitude < 2 and attacking == true then
- position = "Idle3"
- elseif Root.Velocity.Magnitude > 2 and attacking == true then
- position = "Walk3"
- end
- end
- end)()
- coroutine.wrap(function()
- while appi do
- swait()
- settime = 0.05
- sine = sine + change
- if position == "Idle3" and attacking == true and appi == true then
- change = .4
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.14 + .02 * math.sin(sine/12),-.125) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.2)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2, 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.2)
- elseif position == "Walk3" and attacking == true and appi == true then
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.42, 1.92 - 0.35 * math.cos(sine/9)/2.8,0) * CFrame.Angles(math.rad(20 - 20) + -math.sin(sine/9)/2.3, math.rad(0)*math.cos(sine/9), math.rad(0), math.cos(-15 * 75 * math.cos(sine/9))), 0.3)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.42, 1.92 + 0.35 * math.cos(sine/9)/2.8,0) * CFrame.Angles(math.rad(20 - 20) - -math.sin(sine/9)/2.3, math.rad(0)*math.cos(sine/9), math.rad(0) , math.cos(-15 * 75 * math.cos(sine/9))), 0.3)
- end
- end
- end)()
- g1 = Instance.new("BodyGyro", Root)
- g1.D = 175
- g1.P = 20000
- g1.MaxTorque = Vector3.new(0,9000,0)
- borb = Instance.new("Part",Torso)
- borb.BrickColor = BrickColor.new("Bright orange")
- borb.Material = "Neon"
- borb.Anchored = true
- borb.Shape = "Ball"
- borb.CanCollide = false
- borb.CFrame = rightlocation.CFrame
- borb.Size = Vector3.new(11.5,11.5,11.5)
- borb.Transparency = 1
- for i = 1, 10 do
- borb.CFrame = rightlocation.CFrame
- borb.Size = borb.Size - Vector3.new(1,1,1)
- borb.Transparency = borb.Transparency - .1
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.19,0) * CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(0)),.3)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.97, 1.35, .45) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3)
- swait()
- end
- borb:Remove()
- coroutine.wrap(function()
- local zorb = Instance.new("Part",Torso)
- zorb.Shape = "Ball"
- zorb.Size = Vector3.new(1.5,1.5,1.5)
- zorb.BrickColor = BrickColor.new("Really red")
- zorb.Material = "Neon"
- zorb.Anchored = false
- zorb.CanCollide = false
- zorb.CFrame = rightlocation.CFrame
- MAKETRAIL(zorb,Vector3.new(.2,.2,0),Vector3.new(-.2,-.2,0),.7,ColorSequence.new(BrickColor.new("Really red").Color,BrickColor.new("Really black").Color))
- Hit = damagealll(100,Root.Position)
- local bov = Instance.new("BodyVelocity",zorb)
- bov.maxForce = Vector3.new(99999,99999,99999)
- zorb.CFrame = CFrame.new(zorb.Position,mouse.Hit.p)
- bov.velocity = zorb.CFrame.lookVector*180
- local zorbhit = false
- for i = 1, 250 do
- if zorbhit then break end
- Hit = damagealll(6,zorb.Position)
- for _,v in pairs(Hit) do
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
- slachtoffer = v:FindFirstChildOfClass("Humanoid")
- zorbhit = true
- slachtoffer.Parent:BreakJoints()
- vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
- vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
- torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
- vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*180
- removeuseless:AddItem(vel,.1)
- pcall(function()
- boombiatch = Instance.new("Sound",slachtoffer.Parent.Torso)
- boombiatch.Volume = 8
- boombiatch.SoundId = "rbxassetid://907532865"
- boombiatch:Play()
- end)
- removeuseless:AddItem(boombiatch,3)
- coroutine.wrap(function()
- for i = 1, 3 do
- wshockwave = Instance.new("Part", Torso)
- wshockwave.Size = Vector3.new(1,1,1)
- wshockwave.CanCollide = false
- wshockwave.Anchored = true
- wshockwave.Transparency = .1
- wshockwave.BrickColor = BrickColor.new("Bright orange")
- wshockwave.CFrame = CFrame.new(zorb.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
- wshockwavemesh = Instance.new("SpecialMesh", wshockwave)
- wshockwavemesh.Scale = Vector3.new(1,.05,1)
- wshockwavemesh.Name = "explodmesh2"
- wshockwavemesh.MeshId = "rbxassetid://20329976"
- removeuseless:AddItem(wshockwave,2)
- bamwave = Instance.new("Part",Torso)
- bamwave.CanCollide = false
- bamwave.Anchored = true
- bamwave.BrickColor = BrickColor.new("Bright orange")
- bamwave.Name = "bamwave"
- bamwave.CFrame = zorb.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180)))
- bamwavemesh = Instance.new("SpecialMesh",bamwave)
- bamwavemesh.MeshId = "rbxassetid://662586858"
- bamwavemesh.Name = "explodmesh"
- bamwavemesh.Scale = Vector3.new(.04,.01,.04)
- removeuseless:AddItem(bamwave,2)
- explodball = Instance.new("Part",Torso)
- explodball.Shape = "Ball"
- explodball.Size = Vector3.new(1.5,1.5,1.5)
- explodball.BrickColor = BrickColor.new("Bright orange")
- explodball.Material = "Neon"
- explodball.Anchored = true
- explodball.Name = "explodball"
- explodball.CanCollide = false
- explodball.CFrame = zorb.CFrame
- removeuseless:AddItem(explodball,2.5)
- swait()
- end
- end)()
- bov:Remove()
- zorb:Remove()
- if tauntdebounce then return end
- if oofing then return end
- if dedlaff then return end
- coroutine.wrap(function()
- dedlaff = true
- death2 = deathtable2[math.random(1,#deathtable2)]
- tauntsound2 = Instance.new("Sound", Head)
- tauntsound2.Volume = 8
- tauntsound2.SoundId = "http://www.roblox.com/asset/?id="..death2
- tauntsound2.Looped = false
- tauntsound2:Play()
- wait(1.5)
- wait(tauntsound2.TimeLength)
- tauntsound2:Remove()
- dedlaff = false
- end)()
- end
- end
- swait()
- end
- if not zorbhit then
- bov:Remove()
- for i = 1, 10 do
- zorb.Size = zorb.Size + Vector3.new(.5,.5,.5)
- zorb.Transparency = zorb.Transparency + .1
- swait()
- end
- zorb:Remove()
- elseif zorbhit then
- zorbhit = false
- zorb:Remove()
- end
- end)()
- for i = 1, 10 do
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.19,0) * CFrame.Angles(math.rad(10),math.rad(20),math.rad(0)),.3)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.45,.1,.5) * CFrame.Angles(math.rad(-90),math.rad(-25),math.rad(0)),.3)
- swait()
- end
- removeuseless:AddItem(g1,.001)
- debounce = false
- attacking = false
- appi = false
- else
- if debounce then return end
- debounce = true
- attacking = true
- orbz = orbthrows[math.random(1,#orbthrows)]
- orbthrow.SoundId = "rbxassetid://"..orbz
- orbthrow:Play()
- appi = true
- coroutine.wrap(function()
- while appi do
- swait()
- if Root.Velocity.Magnitude < 2 and attacking == true then
- position = "Idle3"
- elseif Root.Velocity.Magnitude > 2 and attacking == true then
- position = "Walk3"
- end
- end
- end)()
- coroutine.wrap(function()
- while appi do
- swait()
- settime = 0.05
- sine = sine + change
- if position == "Idle3" and attacking == true and appi == true then
- change = .4
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.14 + .02 * math.sin(sine/12),-.125) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.2)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2, 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.2)
- elseif position == "Walk3" and attacking == true and appi == true then
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.42, 1.92 - 0.35 * math.cos(sine/9)/2.8,0) * CFrame.Angles(math.rad(20 - 20) + -math.sin(sine/9)/2.3, math.rad(0)*math.cos(sine/9), math.rad(0), math.cos(-15 * 75 * math.cos(sine/9))), 0.3)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.42, 1.92 + 0.35 * math.cos(sine/9)/2.8,0) * CFrame.Angles(math.rad(20 - 20) - -math.sin(sine/9)/2.3, math.rad(0)*math.cos(sine/9), math.rad(0) , math.cos(-15 * 75 * math.cos(sine/9))), 0.3)
- end
- end
- end)()
- g1 = Instance.new("BodyGyro", Root)
- g1.D = 175
- g1.P = 20000
- g1.MaxTorque = Vector3.new(0,9000,0)
- borb = Instance.new("Part",Torso)
- borb.BrickColor = BrickColor.new("Dark Royal blue")
- borb.Material = "Neon"
- borb.Anchored = true
- borb.Shape = "Ball"
- borb.CanCollide = false
- borb.CFrame = rightlocation.CFrame
- borb.Size = Vector3.new(11.5,11.5,11.5)
- borb.Transparency = 1
- for i = 1, 10 do
- borb.CFrame = rightlocation.CFrame
- borb.Size = borb.Size - Vector3.new(1,1,1)
- borb.Transparency = borb.Transparency - .1
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.19,0) * CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(0)),.3)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.97, 1.35, .45) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3)
- swait()
- end
- borb:Remove()
- coroutine.wrap(function()
- local zorb = Instance.new("Part",Torso)
- zorb.Shape = "Ball"
- zorb.Size = Vector3.new(1.5,1.5,1.5)
- zorb.BrickColor = BrickColor.new("Dark Royal blue")
- zorb.Material = "Neon"
- zorb.Anchored = false
- zorb.CanCollide = false
- zorb.CFrame = rightlocation.CFrame
- MAKETRAIL(zorb,Vector3.new(.2,.2,0),Vector3.new(-.2,-.2,0),.7,ColorSequence.new(BrickColor.new("Dark Royal blue").Color,BrickColor.new("Really black").Color))
- Hit = damagealll(100,Root.Position)
- local bov = Instance.new("BodyVelocity",zorb)
- bov.maxForce = Vector3.new(99999,99999,99999)
- zorb.CFrame = CFrame.new(zorb.Position,mouse.Hit.p)
- bov.velocity = zorb.CFrame.lookVector*180
- local zorbhit = false
- for i = 1, 250 do
- if zorbhit then break end
- Hit = damagealll(6,zorb.Position)
- for _,v in pairs(Hit) do
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
- slachtoffer = v:FindFirstChildOfClass("Humanoid")
- zorbhit = true
- slachtoffer:TakeDamage(math.random(37,55))
- vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
- vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
- torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
- vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*90
- removeuseless:AddItem(vel,.1)
- pcall(function()
- boombiatch = Instance.new("Sound",slachtoffer.Parent.Torso)
- boombiatch.Volume = 8
- boombiatch.SoundId = "rbxassetid://907532865"
- boombiatch:Play()
- end)
- removeuseless:AddItem(boombiatch,3)
- coroutine.wrap(function()
- for i = 1, 3 do
- wshockwave = Instance.new("Part", Torso)
- wshockwave.Size = Vector3.new(1,1,1)
- wshockwave.CanCollide = false
- wshockwave.Anchored = true
- wshockwave.Transparency = .1
- wshockwave.BrickColor = BrickColor.new("Dark Royal blue")
- wshockwave.CFrame = CFrame.new(zorb.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
- wshockwavemesh = Instance.new("SpecialMesh", wshockwave)
- wshockwavemesh.Scale = Vector3.new(1,.05,1)
- wshockwavemesh.Name = "explodmesh2"
- wshockwavemesh.MeshId = "rbxassetid://20329976"
- removeuseless:AddItem(wshockwave,2)
- bamwave = Instance.new("Part",Torso)
- bamwave.CanCollide = false
- bamwave.Anchored = true
- bamwave.BrickColor = BrickColor.new("Dark Royal blue")
- bamwave.Name = "bamwave"
- bamwave.CFrame = zorb.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180)))
- bamwavemesh = Instance.new("SpecialMesh",bamwave)
- bamwavemesh.MeshId = "rbxassetid://662586858"
- bamwavemesh.Name = "explodmesh"
- bamwavemesh.Scale = Vector3.new(.04,.01,.04)
- removeuseless:AddItem(bamwave,2)
- explodball = Instance.new("Part",Torso)
- explodball.Shape = "Ball"
- explodball.Size = Vector3.new(1.5,1.5,1.5)
- explodball.BrickColor = BrickColor.new("Dark Royal blue")
- explodball.Material = "Neon"
- explodball.Anchored = true
- explodball.Name = "explodball"
- explodball.CanCollide = false
- explodball.CFrame = zorb.CFrame
- removeuseless:AddItem(explodball,2.5)
- swait()
- end
- end)()
- if slachtoffer.Health < 1 then
- bov:Remove()
- zorb:Remove()
- if tauntdebounce then return end
- if oofing then return end
- if dedlaff then return end
- dedlaff = true
- coroutine.wrap(function()
- death1 = deathtable[math.random(1,#deathtable)]
- tauntsound2 = Instance.new("Sound", Head)
- tauntsound2.Volume = 8
- tauntsound2.SoundId = "http://www.roblox.com/asset/?id="..death1
- tauntsound2.Looped = false
- tauntsound2:Play()
- wait(1.5)
- wait(tauntsound2.TimeLength)
- tauntsound2:Remove()
- dedlaff = false
- end)()
- end
- end
- end
- swait()
- end
- if not zorbhit then
- bov:Remove()
- for i = 1, 10 do
- zorb.Size = zorb.Size + Vector3.new(.5,.5,.5)
- zorb.Transparency = zorb.Transparency + .1
- swait()
- end
- zorb:Remove()
- elseif zorbhit then
- zorbhit = false
- zorb:Remove()
- end
- end)()
- for i = 1, 10 do
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.19,0) * CFrame.Angles(math.rad(10),math.rad(20),math.rad(0)),.3)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.45,.1,.5) * CFrame.Angles(math.rad(-90),math.rad(-25),math.rad(0)),.3)
- swait()
- end
- removeuseless:AddItem(g1,.001)
- debounce = false
- attacking = false
- appi = false
- end
- elseif Press=='q' then
- if mouse.Target ~= nil then
- if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- enemyhum = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
- if enemyhum.Health < 1 then return end
- ETorso = enemyhum.Parent:FindFirstChild("Torso") or enemyhum.Parent:FindFirstChild("LowerTorso")
- if secondform then
- if debounce then return end
- debounce = true
- attacking = true
- orbz = orbthrows[math.random(1,#orbthrows)]
- orbthrow.SoundId = "rbxassetid://"..orbz
- orbthrow:Play()
- appi = true
- coroutine.wrap(function()
- while appi do
- swait()
- if Root.Velocity.Magnitude < 2 and attacking == true then
- position = "Idle3"
- elseif Root.Velocity.Magnitude > 2 and attacking == true then
- position = "Walk3"
- end
- end
- end)()
- coroutine.wrap(function()
- while appi do
- swait()
- settime = 0.05
- sine = sine + change
- if position == "Idle3" and attacking == true and appi == true then
- change = .4
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.14 + .02 * math.sin(sine/12),-.125) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.2)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2, 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.2)
- elseif position == "Walk3" and attacking == true and appi == true then
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.42, 1.92 - 0.35 * math.cos(sine/9)/2.8,0) * CFrame.Angles(math.rad(20 - 20) + -math.sin(sine/9)/2.3, math.rad(0)*math.cos(sine/9), math.rad(0), math.cos(-15 * 75 * math.cos(sine/9))), 0.3)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.42, 1.92 + 0.35 * math.cos(sine/9)/2.8,0) * CFrame.Angles(math.rad(20 - 20) - -math.sin(sine/9)/2.3, math.rad(0)*math.cos(sine/9), math.rad(0) , math.cos(-15 * 75 * math.cos(sine/9))), 0.3)
- end
- end
- end)()
- g1 = Instance.new("BodyGyro", Root)
- g1.D = 175
- g1.P = 20000
- g1.MaxTorque = Vector3.new(0,9000,0)
- borb = Instance.new("Part",Torso)
- borb.BrickColor = BrickColor.new("Bright orange")
- borb.Material = "Neon"
- borb.Anchored = true
- borb.Shape = "Ball"
- borb.CanCollide = false
- borb.CFrame = rightlocation.CFrame
- borb.Size = Vector3.new(11.5,11.5,11.5)
- borb.Transparency = 1
- for i = 1, 10 do
- borb.CFrame = rightlocation.CFrame
- borb.Size = borb.Size - Vector3.new(1,1,1)
- borb.Transparency = borb.Transparency - .1
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.19,0) * CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(0)),.3)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.97, 1.35, .45) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3)
- swait()
- end
- borb:Remove()
- coroutine.wrap(function()
- local zorb = Instance.new("Part",Torso)
- SOUND(zorb,1310929645,10,false,4)
- zorb.Shape = "Ball"
- zorb.Size = Vector3.new(1.5,1.5,1.5)
- zorb.BrickColor = BrickColor.new("Really red")
- zorb.Material = "Neon"
- zorb.Anchored = false
- zorb.CanCollide = false
- zorb.CFrame = rightlocation.CFrame
- MAKETRAIL(zorb,Vector3.new(.2,.2,0),Vector3.new(-.2,-.2,0),.7,ColorSequence.new(BrickColor.new("Really red").Color,BrickColor.new("Really black").Color))
- Hit = damagealll(100,Root.Position)
- maxsped = 50
- local bov = Instance.new("RocketPropulsion",zorb)
- bov.MaxThrust = 4000
- bov.MaxSpeed = maxsped
- bov.MaxTorque = Vector3.new(99999999,99999999,99999999)
- bov.Target = ETorso
- bov.TargetRadius = math.huge
- bov:fire()
- local zorbhit = false
- for i = 1, 250 do
- if zorbhit then break end
- maxsped = maxsped + 3
- bov.MaxSpeed = maxsped
- Hit = damagealll(12,zorb.Position)
- for _,v in pairs(Hit) do
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 and v:FindFirstChildOfClass("Humanoid").Parent.Name == enemyhum.Parent.Name then
- slachtoffer = v:FindFirstChildOfClass("Humanoid")
- zorbhit = true
- slachtoffer.Parent:BreakJoints()
- vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
- vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
- torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
- vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*180
- removeuseless:AddItem(vel,.1)
- pcall(function()
- boombiatch = Instance.new("Sound",slachtoffer.Parent.Torso)
- boombiatch.Volume = 8
- boombiatch.SoundId = "rbxassetid://907532865"
- boombiatch:Play()
- end)
- removeuseless:AddItem(boombiatch,3)
- coroutine.wrap(function()
- for i = 1, 3 do
- wshockwave = Instance.new("Part", Torso)
- wshockwave.Size = Vector3.new(1,1,1)
- wshockwave.CanCollide = false
- wshockwave.Anchored = true
- wshockwave.Transparency = .1
- wshockwave.BrickColor = BrickColor.new("Bright orange")
- wshockwave.CFrame = CFrame.new(zorb.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
- wshockwavemesh = Instance.new("SpecialMesh", wshockwave)
- wshockwavemesh.Scale = Vector3.new(1,.05,1)
- wshockwavemesh.Name = "explodmesh2"
- wshockwavemesh.MeshId = "rbxassetid://20329976"
- removeuseless:AddItem(wshockwave,2)
- bamwave = Instance.new("Part",Torso)
- bamwave.CanCollide = false
- bamwave.Anchored = true
- bamwave.BrickColor = BrickColor.new("Bright orange")
- bamwave.Name = "bamwave"
- bamwave.CFrame = zorb.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180)))
- bamwavemesh = Instance.new("SpecialMesh",bamwave)
- bamwavemesh.MeshId = "rbxassetid://662586858"
- bamwavemesh.Name = "explodmesh"
- bamwavemesh.Scale = Vector3.new(.04,.01,.04)
- removeuseless:AddItem(bamwave,2)
- explodball = Instance.new("Part",Torso)
- explodball.Shape = "Ball"
- explodball.Size = Vector3.new(1.5,1.5,1.5)
- explodball.BrickColor = BrickColor.new("Bright orange")
- explodball.Material = "Neon"
- explodball.Anchored = true
- explodball.Name = "explodball"
- explodball.CanCollide = false
- explodball.CFrame = zorb.CFrame
- removeuseless:AddItem(explodball,2.5)
- swait()
- end
- end)()
- bov:Remove()
- zorb:Remove()
- if tauntdebounce then return end
- if oofing then return end
- if dedlaff then return end
- coroutine.wrap(function()
- dedlaff = true
- death2 = deathtable2[math.random(1,#deathtable2)]
- tauntsound2 = Instance.new("Sound", Head)
- tauntsound2.Volume = 8
- tauntsound2.SoundId = "http://www.roblox.com/asset/?id="..death2
- tauntsound2.Looped = false
- tauntsound2:Play()
- wait(1.5)
- wait(tauntsound2.TimeLength)
- tauntsound2:Remove()
- dedlaff = false
- end)()
- end
- end
- swait()
- end
- if not zorbhit then
- bov:Remove()
- for i = 1, 10 do
- zorb.Size = zorb.Size + Vector3.new(.5,.5,.5)
- zorb.Transparency = zorb.Transparency + .1
- swait()
- end
- zorb:Remove()
- elseif zorbhit then
- zorbhit = false
- zorb:Remove()
- end
- end)()
- for i = 1, 10 do
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.19,0) * CFrame.Angles(math.rad(10),math.rad(20),math.rad(0)),.3)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.45,.1,.5) * CFrame.Angles(math.rad(-90),math.rad(-25),math.rad(0)),.3)
- swait()
- end
- removeuseless:AddItem(g1,.001)
- debounce = false
- attacking = false
- appi = false
- else
- if debounce then return end
- debounce = true
- attacking = true
- orbz = orbthrows[math.random(1,#orbthrows)]
- orbthrow.SoundId = "rbxassetid://"..orbz
- orbthrow:Play()
- appi = true
- coroutine.wrap(function()
- while appi do
- swait()
- if Root.Velocity.Magnitude < 2 and attacking == true then
- position = "Idle3"
- elseif Root.Velocity.Magnitude > 2 and attacking == true then
- position = "Walk3"
- end
- end
- end)()
- coroutine.wrap(function()
- while appi do
- swait()
- settime = 0.05
- sine = sine + change
- if position == "Idle3" and attacking == true and appi == true then
- change = .4
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.14 + .02 * math.sin(sine/12),-.125) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.2)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2, 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.2)
- elseif position == "Walk3" and attacking == true and appi == true then
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.42, 1.92 - 0.35 * math.cos(sine/9)/2.8,0) * CFrame.Angles(math.rad(20 - 20) + -math.sin(sine/9)/2.3, math.rad(0)*math.cos(sine/9), math.rad(0), math.cos(-15 * 75 * math.cos(sine/9))), 0.3)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.42, 1.92 + 0.35 * math.cos(sine/9)/2.8,0) * CFrame.Angles(math.rad(20 - 20) - -math.sin(sine/9)/2.3, math.rad(0)*math.cos(sine/9), math.rad(0) , math.cos(-15 * 75 * math.cos(sine/9))), 0.3)
- end
- end
- end)()
- g1 = Instance.new("BodyGyro", Root)
- g1.D = 175
- g1.P = 20000
- g1.MaxTorque = Vector3.new(0,9000,0)
- borb = Instance.new("Part",Torso)
- borb.BrickColor = BrickColor.new("Dark Royal blue")
- borb.Material = "Neon"
- borb.Anchored = true
- borb.Shape = "Ball"
- borb.CanCollide = false
- borb.CFrame = rightlocation.CFrame
- borb.Size = Vector3.new(11.5,11.5,11.5)
- borb.Transparency = 1
- for i = 1, 10 do
- borb.CFrame = rightlocation.CFrame
- borb.Size = borb.Size - Vector3.new(1,1,1)
- borb.Transparency = borb.Transparency - .1
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.19,0) * CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(0)),.3)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.97, 1.35, .45) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.3)
- swait()
- end
- borb:Remove()
- coroutine.wrap(function()
- local zorb = Instance.new("Part",Torso)
- SOUND(zorb,1310929645,10,false,4)
- zorb.Shape = "Ball"
- zorb.Size = Vector3.new(1.5,1.5,1.5)
- zorb.BrickColor = BrickColor.new("Dark Royal blue")
- zorb.Material = "Neon"
- zorb.Anchored = false
- zorb.CanCollide = false
- zorb.CFrame = rightlocation.CFrame
- MAKETRAIL(zorb,Vector3.new(.2,.2,0),Vector3.new(-.2,-.2,0),.7,ColorSequence.new(BrickColor.new("Dark Royal blue").Color,BrickColor.new("Really black").Color))
- Hit = damagealll(100,Root.Position)
- maxsped = 100
- local bov = Instance.new("RocketPropulsion",zorb)
- bov.MaxThrust = 4000
- bov.MaxSpeed = maxsped
- bov.MaxTorque = Vector3.new(99999,99999,99999)
- bov.Target = ETorso
- bov.TargetRadius = math.huge
- bov:fire()
- local zorbhit = false
- for i = 1, 250 do
- if zorbhit then break end
- maxsped = maxsped + 3
- bov.MaxSpeed = maxsped
- Hit = damagealll(12,zorb.Position)
- for _,v in pairs(Hit) do
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 and v:FindFirstChildOfClass("Humanoid").Parent.Name == enemyhum.Parent.Name then
- slachtoffer = v:FindFirstChildOfClass("Humanoid")
- zorbhit = true
- slachtoffer:TakeDamage(math.random(24,39))
- vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
- vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
- torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
- vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*90
- removeuseless:AddItem(vel,.1)
- pcall(function()
- boombiatch = Instance.new("Sound",slachtoffer.Parent.Torso)
- boombiatch.Volume = 8
- boombiatch.SoundId = "rbxassetid://907532865"
- boombiatch:Play()
- end)
- removeuseless:AddItem(boombiatch,3)
- coroutine.wrap(function()
- for i = 1, 3 do
- wshockwave = Instance.new("Part", Torso)
- wshockwave.Size = Vector3.new(1,1,1)
- wshockwave.CanCollide = false
- wshockwave.Anchored = true
- wshockwave.Transparency = .1
- wshockwave.BrickColor = BrickColor.new("Dark Royal blue")
- wshockwave.CFrame = CFrame.new(zorb.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
- wshockwavemesh = Instance.new("SpecialMesh", wshockwave)
- wshockwavemesh.Scale = Vector3.new(1,.05,1)
- wshockwavemesh.Name = "explodmesh2"
- wshockwavemesh.MeshId = "rbxassetid://20329976"
- removeuseless:AddItem(wshockwave,2)
- bamwave = Instance.new("Part",Torso)
- bamwave.CanCollide = false
- bamwave.Anchored = true
- bamwave.BrickColor = BrickColor.new("Dark Royal blue")
- bamwave.Name = "bamwave"
- bamwave.CFrame = zorb.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180)))
- bamwavemesh = Instance.new("SpecialMesh",bamwave)
- bamwavemesh.MeshId = "rbxassetid://662586858"
- bamwavemesh.Name = "explodmesh"
- bamwavemesh.Scale = Vector3.new(.04,.01,.04)
- removeuseless:AddItem(bamwave,2)
- explodball = Instance.new("Part",Torso)
- explodball.Shape = "Ball"
- explodball.Size = Vector3.new(1.5,1.5,1.5)
- explodball.BrickColor = BrickColor.new("Dark Royal blue")
- explodball.Material = "Neon"
- explodball.Anchored = true
- explodball.Name = "explodball"
- explodball.CanCollide = false
- explodball.CFrame = zorb.CFrame
- removeuseless:AddItem(explodball,2.5)
- swait()
- end
- end)()
- if slachtoffer.Health < 1 then
- bov:Remove()
- zorb:Remove()
- if tauntdebounce then return end
- if oofing then return end
- if dedlaff then return end
- dedlaff = true
- coroutine.wrap(function()
- death1 = deathtable[math.random(1,#deathtable)]
- tauntsound2 = Instance.new("Sound", Head)
- tauntsound2.Volume = 8
- tauntsound2.SoundId = "http://www.roblox.com/asset/?id="..death1
- tauntsound2.Looped = false
- tauntsound2:Play()
- wait(1.5)
- wait(tauntsound2.TimeLength)
- tauntsound2:Remove()
- dedlaff = false
- end)()
- end
- end
- end
- swait()
- end
- if not zorbhit then
- bov:Remove()
- for i = 1, 10 do
- zorb.Size = zorb.Size + Vector3.new(.5,.5,.5)
- zorb.Transparency = zorb.Transparency + .1
- swait()
- end
- zorb:Remove()
- elseif zorbhit then
- zorbhit = false
- zorb:Remove()
- end
- end)()
- for i = 1, 10 do
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.19,0) * CFrame.Angles(math.rad(10),math.rad(20),math.rad(0)),.3)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.45,.1,.5) * CFrame.Angles(math.rad(-90),math.rad(-25),math.rad(0)),.3)
- swait()
- end
- removeuseless:AddItem(g1,.001)
- debounce = false
- attacking = false
- appi = false
- end
- end
- end
- elseif Press=='u' then
- if debounce then return end
- debounce = true
- attacking = true
- energyballspin = 0
- isattacking = true
- ws = 0
- appi = true
- coroutine.wrap(function()
- while appi do
- swait()
- if Root.Velocity.Magnitude < 2 and attacking == true then
- position = "Idle3"
- end
- end
- end)()
- coroutine.wrap(function()
- while appi do
- swait()
- settime = 0.045
- sine = sine + change
- if position == "Idle3" and attacking == true and appi == true then
- change = .4
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.165 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)),math.rad(0),math.rad(0)),.2)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.2)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(0 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.2)
- end
- end
- end)()
- orbz = orbthrows[math.random(1,#orbthrows)]
- orbthrow.SoundId = "rbxassetid://"..orbz
- orbthrow:Play()
- enegoball = Instance.new("Part",Torso)
- enegoball.Size = Vector3.new(24,24,24)
- enegoball.Material = "Neon"
- enegoball.CFrame = Torso.CFrame
- enegoball.Anchored = true
- enegoball.CanCollide = false
- if secondform then
- enegoball.BrickColor = BrickColor.new("Bright orange")
- else
- enegoball.BrickColor = BrickColor.new("Dark Royal blue")
- end
- enegoball.Transparency = 1
- enegoball.Shape = "Ball"
- for i = 1, 13 do
- enegoball.Transparency = enegoball.Transparency - .1
- enegoball.Size = enegoball.Size - Vector3.new(2,2,2)
- ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.18,0) * CFrame.Angles(math.rad(0),0,0),.3)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:Lerp(CFrame.new(-1.55,.55,0) * CFrame.Angles(math.rad(10),math.rad(5),math.rad(-35)),.3)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:Lerp(CFrame.new(1.55,.55,0)* CFrame.Angles(math.rad(10),math.rad(-5),math.rad(35)),.3)
- swait()
- end
- enegoball:Remove()
- coroutine.wrap(function()
- enegoball = Instance.new("Part",Torso)
- enegoball.Size = Vector3.new(1,1,1)
- enegoball.Material = "Neon"
- enegoball.CFrame = Torso.CFrame
- enegoball.Anchored = true
- enegoball.CanCollide = false
- if secondform then
- enegoball.BrickColor = BrickColor.new("Bright orange")
- else
- enegoball.BrickColor = BrickColor.new("Dark Royal blue")
- end
- enegoball.Transparency = 0
- enegoball.Shape = "Ball"
- for i = 1, 13 do
- enegoball.Transparency = enegoball.Transparency + .1
- enegoball.Size = enegoball.Size + Vector3.new(4,4,4)
- swait()
- end
- enegoball:Remove()
- end)()
- wait(.1)
- SOUND(Torso,398951074,10,false,6)
- locationbrick1 = Instance.new("Part",Torso)
- locationbrick1.Transparency = 1
- locationbrick1.Anchored = false
- locationbrick1.CFrame = Torso.CFrame
- locationbrick1.CanCollide = false
- locationbrick1.Size = Vector3.new(1,1,1)
- locationbrick1weld = weldBetween(locationbrick1,Torso)
- for i = 1, 36 do
- energyballspin = energyballspin + 10
- coroutine.wrap(function()
- local zorbhit = false
- local energyball = Instance.new("Part",Torso)
- energyball.CFrame = locationbrick1.CFrame * CFrame.Angles(math.rad(0),math.rad(energyballspin),math.rad(0))
- energyball.Anchored = true
- if secondform then
- energyball.BrickColor = BrickColor.new("Bright orange")
- else
- energyball.BrickColor = BrickColor.new("Dark Royal blue")
- end
- energyball.Material = "Neon"
- energyball.Name = "energyball"
- energyball.Size = Vector3.new(1.5,1.5,1.5)
- energyball.CanCollide = false
- energyball.Shape = "Ball"
- if secondform then
- MAKETRAIL(energyball,Vector3.new(.2,.2,0),Vector3.new(-.2,-.2,0),.7,ColorSequence.new(BrickColor.new("Bright orange").Color,BrickColor.new("Really black").Color))
- else
- MAKETRAIL(energyball,Vector3.new(.2,.2,0),Vector3.new(-.2,-.2,0),.7,ColorSequence.new(BrickColor.new("Dark Royal blue").Color,BrickColor.new("Really black").Color))
- end
- while isattacking do
- local Hit = damagealll(4,energyball.Position)
- for _,v in pairs(Hit) do
- if zorbit then return end
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
- zorbhit = true
- slachtoffer = v:FindFirstChildOfClass("Humanoid")
- if secondform then
- slachtoffer.Parent:BreakJoints()
- else
- slachtoffer:TakeDamage(math.random(17,26))
- end
- vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
- vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
- torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
- vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*180
- removeuseless:AddItem(vel,.1)
- pcall(function()
- boombiatch = Instance.new("Sound",slachtoffer.Parent.Torso)
- boombiatch.Volume = 8
- boombiatch.SoundId = "rbxassetid://907532865"
- boombiatch:Play()
- end)
- removeuseless:AddItem(boombiatch,3)
- coroutine.wrap(function()
- for i = 1, 3 do
- wshockwave = Instance.new("Part", Torso)
- wshockwave.Size = Vector3.new(1,1,1)
- wshockwave.CanCollide = false
- wshockwave.Anchored = true
- wshockwave.Transparency = .1
- if secondform then
- wshockwave.BrickColor = BrickColor.new("Bright orange")
- else
- wshockwave.BrickColor = BrickColor.new("Dark Royal blue")
- end
- wshockwave.CFrame = CFrame.new(energyball.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
- wshockwavemesh = Instance.new("SpecialMesh", wshockwave)
- wshockwavemesh.Scale = Vector3.new(1,.05,1)
- wshockwavemesh.Name = "explodmesh2"
- wshockwavemesh.MeshId = "rbxassetid://20329976"
- removeuseless:AddItem(wshockwave,2)
- bamwave = Instance.new("Part",Torso)
- bamwave.CanCollide = false
- bamwave.Anchored = true
- if secondform then
- bamwave.BrickColor = BrickColor.new("Bright orange")
- else
- bamwave.BrickColor = BrickColor.new("Dark Royal blue")
- end
- bamwave.Name = "bamwave"
- bamwave.CFrame = energyball.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180)))
- bamwavemesh = Instance.new("SpecialMesh",bamwave)
- bamwavemesh.MeshId = "rbxassetid://662586858"
- bamwavemesh.Name = "explodmesh"
- bamwavemesh.Scale = Vector3.new(.04,.01,.04)
- removeuseless:AddItem(bamwave,2)
- explodball = Instance.new("Part",Torso)
- explodball.Shape = "Ball"
- explodball.Size = Vector3.new(1.5,1.5,1.5)
- if secondform then
- explodball.BrickColor = BrickColor.new("Bright orange")
- else
- explodball.BrickColor = BrickColor.new("Dark Royal blue")
- end
- explodball.Material = "Neon"
- explodball.Anchored = true
- explodball.Name = "explodball"
- explodball.CanCollide = false
- explodball.CFrame = energyball.CFrame
- removeuseless:AddItem(explodball,2.5)
- swait()
- end
- energyball:Remove()
- end)()
- if tauntdebounce then return end
- if not secondform then return end
- if oofing then return end
- if dedlaff then return end
- coroutine.wrap(function()
- dedlaff = true
- if secondform then
- death2 = deathtable2[math.random(1,#deathtable2)]
- tauntsound2 = Instance.new("Sound", Head)
- tauntsound2.Volume = 8
- tauntsound2.SoundId = "http://www.roblox.com/asset/?id="..death2
- tauntsound2.Looped = false
- tauntsound2:Play()
- end
- wait(1.5)
- if secondform then
- wait(tauntsound2.TimeLength)
- else
- wait(tauntsound.TimeLength)
- end
- if secondform then
- tauntsound2:Remove()
- else
- tauntsound:Remove()
- end
- dedlaff = false
- end)()
- end
- end
- swait()
- end
- end)()
- end
- for i,v in pairs(Torso:GetChildren()) do if v.Name == "energyball" then
- coroutine.wrap(function()
- for i = 1, 25 do
- v.CFrame = v.CFrame * CFrame.new(0,0,0+2)
- swait()
- end
- isattacking = false
- for i = 1, 20 do
- v.Transparency = v.Transparency + .05
- v.CFrame = v.CFrame * CFrame.new(0,0,0+2)
- swait()
- end
- v:Remove()
- locationbrick1:Remove()
- debounce = false
- attacking = false
- appi = false
- ws = 19
- end)()
- end
- end
- elseif Press=='y' then
- if isattacking then return end
- if invisible then
- if debounce then return end
- debounce = true
- invisible = false
- if secondform then
- particlemiter1.Enabled = true
- particlemiter2.Enabled = true
- particlemiter4.Enabled = true
- particlemiter5.Enabled = true
- particlemiter6.Enabled = true
- particlemiter7.Enabled = true
- end
- ws = 19
- for i,v in pairs(Character:GetDescendants()) do
- if v:IsA("Part") and v.Name ~= "rightlocation" and v.Name ~= "leftlocation" and v.Name ~= "HumanoidRootPart" then
- v.Transparency = 1
- end
- end
- SOUND(Torso,1209700563,10,false,15)
- for i = 1, 100 do
- heartbeat.Volume = heartbeat.Volume - .125
- if secondform then
- doomtheme.Volume = doomtheme.Volume + .03
- else
- doomtheme.Volume = doomtheme.Volume + .02
- end
- for i,v in pairs(Character:GetDescendants()) do
- if v:IsA("Part") and v.Name ~= "leftlocation" and v.Name ~= "rightlocation" and v.Name ~= "HumanoidRootPart" then
- Character.Head.face.Transparency = Character.Head.face.Transparency - .025
- v.Transparency = v.Transparency - .025
- end
- end
- swait()
- end
- heartbeat:Remove()
- debounce = false
- else
- if debounce then return end
- debounce = true
- invisible = true
- if secondform then
- particlemiter1.Enabled = false
- particlemiter2.Enabled = false
- particlemiter4.Enabled = false
- particlemiter5.Enabled = false
- particlemiter6.Enabled = false
- particlemiter7.Enabled = false
- end
- ws = 30
- SOUND(Torso,862693565,8,false,4)
- heartbeat = Instance.new("Sound",Torso)
- heartbeat.SoundId = "rbxassetid://1843033591"
- heartbeat.Volume = 10
- heartbeat.Looped = true
- heartbeat:Play()
- for i,v in pairs(Character:GetDescendants()) do
- if v:IsA("Part") and v.Name ~= "rightlocation" and v.Name ~= "leftlocation" and v.Name ~= "HumanoidRootPart" then
- Character.Head.face.Transparency = 0
- v.Transparency = 0
- end
- end
- for i = 1, 50 do
- if secondform then
- doomtheme.Volume = doomtheme.Volume - .6
- else
- doomtheme.Volume = doomtheme.Volume - .4
- end
- for i,v in pairs(Character:GetDescendants()) do
- if v:IsA("Part") and v.Name ~= "rightlocation" and v.Name ~= "leftlocation" and v.Name ~= "HumanoidRootPart" then
- Character.Head.face.Transparency = Character.Head.face.Transparency + .025
- v.Transparency = v.Transparency + .025
- end
- end
- swait()
- end
- debounce = false
- end
- elseif Press=='r' then
- if mouse.Target ~= nil then
- if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
- enemyhum = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
- if enemyhum.Health < 1 then return end
- ETorso = enemyhum.Parent:FindFirstChild("Torso") or enemyhum.Parent:FindFirstChild("LowerTorso")
- if singularitybounce then return end
- singularitybounce = true
- if secondform then
- if debounce then return end
- isattacking = true
- debounce = true
- attacking = true
- orbz = orbthrows[math.random(1,#orbthrows)]
- orbthrow.SoundId = "rbxassetid://907527912"
- orbthrow:Play()
- appi = true
- coroutine.wrap(function()
- while appi do
- swait()
- if Root.Velocity.Magnitude < 2 and attacking == true then
- position = "Idle3"
- elseif Root.Velocity.Magnitude > 2 and attacking == true then
- position = "Walk3"
- end
- end
- end)()
- coroutine.wrap(function()
- while appi do
- swait()
- settime = 0.05
- sine = sine + change
- if position == "Idle3" and attacking == true and appi == true then
- change = .4
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.14 + .02 * math.sin(sine/12),-.125) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.2)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2, 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.2)
- elseif position == "Walk3" and attacking == true and appi == true then
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.42, 1.92 - 0.35 * math.cos(sine/9)/2.8,0) * CFrame.Angles(math.rad(20 - 20) + -math.sin(sine/9)/2.3, math.rad(0)*math.cos(sine/9), math.rad(0), math.cos(-15 * 75 * math.cos(sine/9))), 0.3)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.42, 1.92 + 0.35 * math.cos(sine/9)/2.8,0) * CFrame.Angles(math.rad(20 - 20) - -math.sin(sine/9)/2.3, math.rad(0)*math.cos(sine/9), math.rad(0) , math.cos(-15 * 75 * math.cos(sine/9))), 0.3)
- end
- end
- end)()
- g1 = Instance.new("BodyGyro", Root)
- g1.D = 175
- g1.P = 20000
- g1.MaxTorque = Vector3.new(0,9000,0)
- for i = 1, 12 do
- for i = 1, 3 do
- wshockwave = Instance.new("Part", Torso)
- wshockwave.Size = Vector3.new(1,1,1)
- wshockwave.CanCollide = false
- wshockwave.Anchored = true
- wshockwave.Transparency = .1
- wshockwave.BrickColor = BrickColor.new("Really red")
- wshockwave.CFrame = CFrame.new(rightlocation.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
- wshockwavemesh = Instance.new("SpecialMesh", wshockwave)
- wshockwavemesh.Scale = Vector3.new(1,.05,1)
- wshockwavemesh.Name = "explodmesh2"
- wshockwavemesh.MeshId = "rbxassetid://20329976"
- removeuseless:AddItem(wshockwave,2)
- end
- borb = Instance.new("Part",Torso)
- borb.BrickColor = BrickColor.new("Bright orange")
- borb.Material = "Neon"
- borb.Anchored = true
- borb.Shape = "Ball"
- borb.CanCollide = false
- borb.CFrame = rightlocation.CFrame
- borb.Size = Vector3.new(33,33,33)
- borb.Transparency = 1
- for i = 1, 5 do
- borb.CFrame = rightlocation.CFrame
- borb.Size = borb.Size - Vector3.new(6,6,6)
- borb.Transparency = borb.Transparency - .2
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.19,0) * CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(0)),.1)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.97, 1.35, .45) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.1)
- swait()
- end
- borb:Remove()
- swait()
- end
- coroutine.wrap(function()
- local zorb = Instance.new("Part",Torso)
- zorb.Shape = "Ball"
- zorb.Size = Vector3.new(3,3,3)
- zorb.BrickColor = BrickColor.new("Really red")
- zorb.Material = "Neon"
- zorb.Anchored = false
- zorb.CanCollide = false
- zorb.CFrame = rightlocation.CFrame
- MAKETRAIL(zorb,Vector3.new(.2,.2,0),Vector3.new(-.2,-.2,0),.7,ColorSequence.new(BrickColor.new("Really red").Color,BrickColor.new("Really black").Color))
- Hit = damagealll(100,Root.Position)
- maxsped = 45
- local bov = Instance.new("RocketPropulsion",zorb)
- bov.MaxThrust = 4000
- bov.MaxSpeed = maxsped
- bov.MaxTorque = Vector3.new(99999999,99999999,99999999)
- bov.Target = ETorso
- bov.TargetRadius = math.huge
- bov:fire()
- local zorbhit = false
- for i = 1, 425 do
- if zorbhit then break end
- maxsped = maxsped + 2.5
- bov.MaxSpeed = maxsped
- Hit = damagealll(10,zorb.Position)
- for _,v in pairs(Hit) do
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
- slachtoffer = v:FindFirstChildOfClass("Humanoid")
- zorbhit = true
- vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
- vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
- torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
- vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*40
- removeuseless:AddItem(vel,.1)
- pcall(function()
- boombiatch = Instance.new("Sound",slachtoffer.Parent.Torso)
- boombiatch.Volume = 10
- boombiatch.SoundId = "rbxassetid://2467762386"
- boombiatch:Play()
- end)
- removeuseless:AddItem(boombiatch,3)
- removeuseless:AddItem(bamwave,2)
- local explodball = Instance.new("Part",Torso)
- explodball.Shape = "Ball"
- explodball.Size = Vector3.new(1.5,1.5,1.5)
- explodball.BrickColor = BrickColor.new("Really red")
- explodball.Material = "Neon"
- explodball.Anchored = true
- explodball.Transparency = .25
- explodball.CanCollide = false
- explodball.CFrame = zorb.CFrame
- local explodball2 = Instance.new("Part",Torso)
- explodball2.Shape = "Ball"
- explodball2.Size = Vector3.new(1.5,1.5,1.5)
- explodball2.BrickColor = BrickColor.new("Bright orange")
- explodball2.Material = "Neon"
- explodball2.Anchored = true
- explodball2.Transparency = .5
- explodball2.CanCollide = false
- explodball2.CFrame = zorb.CFrame
- local explodball3 = Instance.new("Part",Torso)
- explodball3.Shape = "Ball"
- explodball3.Size = Vector3.new(1.5,1.5,1.5)
- explodball3.BrickColor = BrickColor.new("Really black")
- explodball3.Material = "Neon"
- explodball3.Transparency = .75
- explodball3.Anchored = true
- explodball3.CanCollide = false
- explodball3.CFrame = zorb.CFrame
- coroutine.wrap(function()
- for i = 1, 30 do
- local bamwave = Instance.new("Part",Torso)
- bamwave.CanCollide = false
- bamwave.Anchored = true
- bamwave.BrickColor = BrickColor.new("Really red")
- bamwave.Name = "bamwave"
- bamwave.Transparency = .85
- bamwave.CFrame = explodball.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180)))
- bamwavemesh = Instance.new("SpecialMesh",bamwave)
- bamwavemesh.MeshId = "rbxassetid://662586858"
- bamwavemesh.Name = "explodmesh34"
- bamwavemesh.Scale = Vector3.new(.04,.01,.04)
- local wshockwave2 = Instance.new("Part", Torso)
- wshockwave2.Size = Vector3.new(1,1,1)
- wshockwave2.CanCollide = false
- wshockwave2.Anchored = true
- wshockwave2.Transparency = .9
- wshockwave2.BrickColor = BrickColor.new("Bright orange")
- wshockwave2.CFrame = CFrame.new(explodball.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
- wshockwavemesh2 = Instance.new("SpecialMesh",wshockwave2)
- wshockwavemesh2.Scale = Vector3.new(1,.05,1)
- wshockwavemesh2.Name = "explodmesh33"
- wshockwavemesh2.MeshId = "rbxassetid://20329976"
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh33" then
- v.Scale = v.Scale + Vector3.new(3,.05,3)
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh34" then
- v.Scale = v.Scale + Vector3.new(.01,0,.01)
- end
- end
- explodball.Size = explodball.Size + Vector3.new(1,1,1)
- explodball2.Size = explodball2.Size + Vector3.new(2,2,2)
- explodball3.Size = explodball3.Size + Vector3.new(4,4,4)
- swait()
- end
- for i = 1, 15 do
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh33" then
- v.Scale = v.Scale + Vector3.new(1.5,.025,1.5)
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh34" then
- v.Scale = v.Scale + Vector3.new(.01,0,.01)
- end
- end
- explodball.Size = explodball.Size + Vector3.new(.5,.5,.5)
- explodball2.Size = explodball2.Size + Vector3.new(1,1,1)
- explodball3.Size = explodball3.Size + Vector3.new(2,2,2)
- swait()
- end
- blackholesound = Instance.new("Sound",explodball)
- blackholesound.SoundId = "rbxassetid://1529939980"
- blackholesound.Volume = 10
- blackholesound.Pitch = 1.25
- blackholesound:Play()
- local wuwuwu = Instance.new("Sound",explodball)
- wuwuwu.Volume = 0
- wuwuwu.SoundId = "rbxassetid://907530407"
- wuwuwu.Looped = true
- wuwuwu:Play()
- for i = 1, 750 do
- Hit = damagealll(50,explodball.Position)
- for _,v in pairs(Hit) do
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
- slachtoffer = v:FindFirstChildOfClass("Humanoid")
- zorbhit = true
- slachtoffer.Parent:BreakJoints()
- vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
- vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
- torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
- vel.velocity = CFrame.new(torso.Position,explodball.Position).lookVector*100
- removeuseless:AddItem(vel,.1)
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh33" then
- v.Scale = v.Scale - Vector3.new(.1,0,.1)
- v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0+3),math.rad(0-4),math.rad(0+2))
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh34" then
- v.Scale = v.Scale - Vector3.new(.00035,0,.00035)
- v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0+3),math.rad(0-3),math.rad(0+1))
- end
- end
- wuwuwu.Volume = wuwuwu.Volume + .05
- explodball.Size = explodball.Size - Vector3.new(.05,.05,.05)
- explodball2.Size = explodball2.Size - Vector3.new(.1,.1,.1)
- explodball3.Size = explodball3.Size - Vector3.new(.2,.2,.2)
- swait()
- end
- local soundbox = Instance.new("Part",Torso)
- soundbox.CFrame = explodball.CFrame
- soundbox.Size = Vector3.new(1,1,1)
- soundbox.Transparency = 1
- soundbox.Anchored = true
- soundbox.CanCollide = false
- removeuseless:AddItem(soundbox,6)
- SOUND(soundbox,265581252,10,false,6)
- wuwuwu:Remove()
- Hit = damagealll(76,explodball.Position)
- for _,v in pairs(Hit) do
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
- slachtoffer = v:FindFirstChildOfClass("Humanoid")
- zorbhit = true
- slachtoffer.Parent:BreakJoints()
- vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
- vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
- torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
- vel.velocity = CFrame.new(explodball.Position,torso.Position).lookVector*225
- removeuseless:AddItem(vel,.1)
- end
- end
- for i = 1, 105 do
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh33" then
- v.Scale = v.Scale + Vector3.new(12,.05,12)
- v.Parent.Transparency = v.Parent.Transparency + .003
- v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0+3),math.rad(0-4),math.rad(0+2))
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh34" then
- v.Scale = v.Scale + Vector3.new(.04,0,.04)
- v.Parent.Transparency = v.Parent.Transparency + .002
- v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0-3),math.rad(0+4),math.rad(0-2))
- end
- end
- explodball.Size = explodball.Size + Vector3.new(2,2,2)
- explodball2.Size = explodball2.Size + Vector3.new(4,4,4)
- explodball3.Size = explodball3.Size + Vector3.new(8,8,8)
- explodball3.Transparency = explodball3.Transparency + .01
- explodball2.Transparency = explodball2.Transparency + .01
- explodball.Transparency = explodball.Transparency + .01
- swait()
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh33" then
- v.Parent:Remove()
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh34" then
- v.Parent:Remove()
- end
- end
- explodball:Remove()
- explodball2:Remove()
- explodball3:Remove()
- isattacking = false
- singularitybounce = false
- end)()
- bov:Remove()
- zorb:Remove()
- end
- end
- swait()
- end
- if not zorbhit then
- bov:Remove()
- for i = 1, 10 do
- zorb.Size = zorb.Size + Vector3.new(.5,.5,.5)
- zorb.Transparency = zorb.Transparency + .1
- swait()
- end
- zorb:Remove()
- singularitybounce = false
- elseif zorbhit then
- zorbhit = false
- zorb:Remove()
- end
- end)()
- for i = 1, 10 do
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.19,0) * CFrame.Angles(math.rad(10),math.rad(20),math.rad(0)),.3)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.45,.1,.5) * CFrame.Angles(math.rad(-90),math.rad(-25),math.rad(0)),.3)
- swait()
- end
- removeuseless:AddItem(g1,.001)
- debounce = false
- attacking = false
- appi = false
- else
- isattacking = true
- debounce = true
- attacking = true
- orbz = orbthrows[math.random(1,#orbthrows)]
- orbthrow.SoundId = "rbxassetid://907527912"
- orbthrow:Play()
- appi = true
- coroutine.wrap(function()
- while appi do
- swait()
- if Root.Velocity.Magnitude < 2 and attacking == true then
- position = "Idle3"
- elseif Root.Velocity.Magnitude > 2 and attacking == true then
- position = "Walk3"
- end
- end
- end)()
- coroutine.wrap(function()
- while appi do
- swait()
- settime = 0.05
- sine = sine + change
- if position == "Idle3" and attacking == true and appi == true then
- change = .4
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.14 + .02 * math.sin(sine/12),-.125) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2, 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.2)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2, 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.2)
- elseif position == "Walk3" and attacking == true and appi == true then
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.42, 1.92 - 0.35 * math.cos(sine/9)/2.8,0) * CFrame.Angles(math.rad(20 - 20) + -math.sin(sine/9)/2.3, math.rad(0)*math.cos(sine/9), math.rad(0), math.cos(-15 * 75 * math.cos(sine/9))), 0.3)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.42, 1.92 + 0.35 * math.cos(sine/9)/2.8,0) * CFrame.Angles(math.rad(20 - 20) - -math.sin(sine/9)/2.3, math.rad(0)*math.cos(sine/9), math.rad(0) , math.cos(-15 * 75 * math.cos(sine/9))), 0.3)
- end
- end
- end)()
- g1 = Instance.new("BodyGyro", Root)
- g1.D = 175
- g1.P = 20000
- g1.MaxTorque = Vector3.new(0,9000,0)
- for i = 1, 12 do
- for i = 1, 3 do
- wshockwave = Instance.new("Part", Torso)
- wshockwave.Size = Vector3.new(1,1,1)
- wshockwave.CanCollide = false
- wshockwave.Anchored = true
- wshockwave.Transparency = .1
- wshockwave.BrickColor = BrickColor.new("Bright blue")
- wshockwave.CFrame = CFrame.new(rightlocation.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
- wshockwavemesh = Instance.new("SpecialMesh", wshockwave)
- wshockwavemesh.Scale = Vector3.new(1,.05,1)
- wshockwavemesh.Name = "explodmesh2"
- wshockwavemesh.MeshId = "rbxassetid://20329976"
- removeuseless:AddItem(wshockwave,2)
- end
- borb = Instance.new("Part",Torso)
- borb.BrickColor = BrickColor.new("Dark Royal blue")
- borb.Material = "Neon"
- borb.Anchored = true
- borb.Shape = "Ball"
- borb.CanCollide = false
- borb.CFrame = rightlocation.CFrame
- borb.Size = Vector3.new(33,33,33)
- borb.Transparency = 1
- for i = 1, 5 do
- borb.CFrame = rightlocation.CFrame
- borb.Size = borb.Size - Vector3.new(6,6,6)
- borb.Transparency = borb.Transparency - .2
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.19,0) * CFrame.Angles(math.rad(-10),math.rad(-20),math.rad(0)),.1)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.97, 1.35, .45) * CFrame.Angles(math.rad(14), math.rad(20), math.rad(-90)), 0.1)
- swait()
- end
- borb:Remove()
- swait()
- end
- coroutine.wrap(function()
- local zorb = Instance.new("Part",Torso)
- zorb.Shape = "Ball"
- zorb.Size = Vector3.new(3,3,3)
- zorb.BrickColor = BrickColor.new("Dark Royal blue")
- zorb.Material = "Neon"
- zorb.Anchored = false
- zorb.CanCollide = false
- zorb.CFrame = rightlocation.CFrame
- MAKETRAIL(zorb,Vector3.new(.2,.2,0),Vector3.new(-.2,-.2,0),.7,ColorSequence.new(BrickColor.new("Dark Royal blue").Color,BrickColor.new("Really black").Color))
- Hit = damagealll(100,Root.Position)
- maxsped = 40
- local bov = Instance.new("RocketPropulsion",zorb)
- bov.MaxThrust = 4000
- bov.MaxSpeed = maxsped
- bov.MaxTorque = Vector3.new(99999999,99999999,99999999)
- bov.Target = ETorso
- bov.TargetRadius = math.huge
- bov:fire()
- local zorbhit = false
- for i = 1, 425 do
- if zorbhit then break end
- maxsped = maxsped + 1.5
- bov.MaxSpeed = maxsped
- Hit = damagealll(10,zorb.Position)
- for _,v in pairs(Hit) do
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
- slachtoffer = v:FindFirstChildOfClass("Humanoid")
- zorbhit = true
- vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
- vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
- torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
- vel.velocity = CFrame.new(Torso.Position,torso.Position).lookVector*40
- removeuseless:AddItem(vel,.1)
- pcall(function()
- boombiatch = Instance.new("Sound",slachtoffer.Parent.Torso)
- boombiatch.Volume = 10
- boombiatch.SoundId = "rbxassetid://2467762386"
- boombiatch:Play()
- end)
- removeuseless:AddItem(boombiatch,3)
- removeuseless:AddItem(bamwave,2)
- local explodball = Instance.new("Part",Torso)
- explodball.Shape = "Ball"
- explodball.Size = Vector3.new(1.5,1.5,1.5)
- explodball.BrickColor = BrickColor.new("Bright blue")
- explodball.Material = "Neon"
- explodball.Anchored = true
- explodball.Transparency = .25
- explodball.CanCollide = false
- explodball.CFrame = zorb.CFrame
- local explodball2 = Instance.new("Part",Torso)
- explodball2.Shape = "Ball"
- explodball2.Size = Vector3.new(1.5,1.5,1.5)
- explodball2.BrickColor = BrickColor.new("Dark Royal blue")
- explodball2.Material = "Neon"
- explodball2.Anchored = true
- explodball2.Transparency = .5
- explodball2.CanCollide = false
- explodball2.CFrame = zorb.CFrame
- local explodball3 = Instance.new("Part",Torso)
- explodball3.Shape = "Ball"
- explodball3.Size = Vector3.new(1.5,1.5,1.5)
- explodball3.BrickColor = BrickColor.new("Really black")
- explodball3.Material = "Neon"
- explodball3.Transparency = .75
- explodball3.Anchored = true
- explodball3.CanCollide = false
- explodball3.CFrame = zorb.CFrame
- coroutine.wrap(function()
- for i = 1, 30 do
- local bamwave = Instance.new("Part",Torso)
- bamwave.CanCollide = false
- bamwave.Anchored = true
- bamwave.BrickColor = BrickColor.new("Bright blue")
- bamwave.Name = "bamwave"
- bamwave.Transparency = .85
- bamwave.CFrame = explodball.CFrame * CFrame.Angles(math.rad(math.random(-180,180)),0,math.rad(math.random(-180,180)))
- bamwavemesh = Instance.new("SpecialMesh",bamwave)
- bamwavemesh.MeshId = "rbxassetid://662586858"
- bamwavemesh.Name = "explodmesh34"
- bamwavemesh.Scale = Vector3.new(.04,.01,.04)
- local wshockwave2 = Instance.new("Part", Torso)
- wshockwave2.Size = Vector3.new(1,1,1)
- wshockwave2.CanCollide = false
- wshockwave2.Anchored = true
- wshockwave2.Transparency = .9
- wshockwave2.BrickColor = BrickColor.new("Dark Royal blue")
- wshockwave2.CFrame = CFrame.new(explodball.Position) * CFrame.Angles(math.rad(math.random(-180,180)),math.rad(math.random(-180,180)),math.rad(math.random(-180,180)))
- wshockwavemesh2 = Instance.new("SpecialMesh",wshockwave2)
- wshockwavemesh2.Scale = Vector3.new(1,.05,1)
- wshockwavemesh2.Name = "explodmesh33"
- wshockwavemesh2.MeshId = "rbxassetid://20329976"
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh33" then
- v.Scale = v.Scale + Vector3.new(3,.05,3)
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh34" then
- v.Scale = v.Scale + Vector3.new(.01,0,.01)
- end
- end
- explodball.Size = explodball.Size + Vector3.new(1,1,1)
- explodball2.Size = explodball2.Size + Vector3.new(2,2,2)
- explodball3.Size = explodball3.Size + Vector3.new(4,4,4)
- swait()
- end
- for i = 1, 15 do
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh33" then
- v.Scale = v.Scale + Vector3.new(1.5,.025,1.5)
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh34" then
- v.Scale = v.Scale + Vector3.new(.01,0,.01)
- end
- end
- explodball.Size = explodball.Size + Vector3.new(.5,.5,.5)
- explodball2.Size = explodball2.Size + Vector3.new(1,1,1)
- explodball3.Size = explodball3.Size + Vector3.new(2,2,2)
- swait()
- end
- blackholesound = Instance.new("Sound",explodball)
- blackholesound.SoundId = "rbxassetid://1529939980"
- blackholesound.Volume = 10
- blackholesound.Pitch = 1.25
- blackholesound:Play()
- local wuwuwu = Instance.new("Sound",explodball)
- wuwuwu.Volume = 0
- wuwuwu.SoundId = "rbxassetid://907530407"
- wuwuwu.Looped = true
- wuwuwu:Play()
- for i = 1, 750 do
- Hit = damagealll(50,explodball.Position)
- for _,v in pairs(Hit) do
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
- slachtoffer = v:FindFirstChildOfClass("Humanoid")
- zorbhit = true
- slachtoffer:TakeDamage(1)
- vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
- vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
- torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
- vel.velocity = CFrame.new(torso.Position,explodball.Position).lookVector*100
- removeuseless:AddItem(vel,.1)
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh33" then
- v.Scale = v.Scale - Vector3.new(.1,0,.1)
- v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0+3),math.rad(0-4),math.rad(0+2))
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh34" then
- v.Scale = v.Scale - Vector3.new(.00035,0,.00035)
- v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0+3),math.rad(0-3),math.rad(0+1))
- end
- end
- wuwuwu.Volume = wuwuwu.Volume + .05
- explodball.Size = explodball.Size - Vector3.new(.05,.05,.05)
- explodball2.Size = explodball2.Size - Vector3.new(.1,.1,.1)
- explodball3.Size = explodball3.Size - Vector3.new(.2,.2,.2)
- swait()
- end
- local soundbox = Instance.new("Part",Torso)
- soundbox.CFrame = explodball.CFrame
- soundbox.Size = Vector3.new(1,1,1)
- soundbox.Transparency = 1
- soundbox.Anchored = true
- soundbox.CanCollide = false
- removeuseless:AddItem(soundbox,6)
- SOUND(soundbox,265581252,10,false,6)
- wuwuwu:Remove()
- Hit = damagealll(76,explodball.Position)
- for _,v in pairs(Hit) do
- if v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 0 then
- slachtoffer = v:FindFirstChildOfClass("Humanoid")
- zorbhit = true
- slachtoffer:TakeDamage(math.random(37,68))
- vel = Instance.new("BodyVelocity",v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso"))
- vel.maxForce = Vector3.new(9999999999999,9999999999999,9999999999999)
- torso = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso")
- vel.velocity = CFrame.new(explodball.Position,torso.Position).lookVector*225
- removeuseless:AddItem(vel,.1)
- end
- end
- for i = 1, 105 do
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh33" then
- v.Scale = v.Scale + Vector3.new(12,.05,12)
- v.Parent.Transparency = v.Parent.Transparency + .003
- v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0+3),math.rad(0-4),math.rad(0+2))
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh34" then
- v.Scale = v.Scale + Vector3.new(.04,0,.04)
- v.Parent.Transparency = v.Parent.Transparency + .002
- v.Parent.CFrame = v.Parent.CFrame * CFrame.Angles(math.rad(0-3),math.rad(0+4),math.rad(0-2))
- end
- end
- explodball.Size = explodball.Size + Vector3.new(2,2,2)
- explodball2.Size = explodball2.Size + Vector3.new(4,4,4)
- explodball3.Size = explodball3.Size + Vector3.new(8,8,8)
- explodball3.Transparency = explodball3.Transparency + .01
- explodball2.Transparency = explodball2.Transparency + .01
- explodball.Transparency = explodball.Transparency + .01
- swait()
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh33" then
- v.Parent:Remove()
- end
- end
- for i,v in pairs(Torso:GetDescendants()) do if v.Name == "explodmesh34" then
- v.Parent:Remove()
- end
- end
- explodball:Remove()
- explodball2:Remove()
- explodball3:Remove()
- isattacking = false
- singularitybounce = false
- end)()
- bov:Remove()
- zorb:Remove()
- end
- end
- swait()
- end
- if not zorbhit then
- bov:Remove()
- for i = 1, 10 do
- zorb.Size = zorb.Size + Vector3.new(.5,.5,.5)
- zorb.Transparency = zorb.Transparency + .1
- swait()
- end
- zorb:Remove()
- singularitybounce = false
- elseif zorbhit then
- zorbhit = false
- zorb:Remove()
- end
- end)()
- for i = 1, 10 do
- g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0,-.19,0) * CFrame.Angles(math.rad(10),math.rad(20),math.rad(0)),.3)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.45,.1,.5) * CFrame.Angles(math.rad(-90),math.rad(-25),math.rad(0)),.3)
- swait()
- end
- removeuseless:AddItem(g1,.001)
- debounce = false
- attacking = false
- appi = false
- end
- end
- end
- elseif Press=='t' then
- if oofing then return end
- if dedlaff then return end
- if tauntdebounce == true then return end
- tauntdebounce = true
- if not secondform then
- rdnm = soundtable[math.random(1,#soundtable)]
- tauntsound = Instance.new("Sound", Head)
- tauntsound.Volume = 8
- tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm
- tauntsound.Looped = false
- tauntsound:Play()
- wait(3)
- wait(tauntsound.TimeLength)
- tauntsound:Remove()
- wait(1)
- tauntdebounce = false
- else
- rdnm2 = soundtable2[math.random(1,#soundtable2)]
- tauntsound = Instance.new("Sound", Head)
- tauntsound.Volume = 8
- tauntsound.SoundId = "http://www.roblox.com/asset/?id="..rdnm2
- tauntsound.Looped = false
- tauntsound:Play()
- wait(3)
- wait(tauntsound.TimeLength)
- tauntsound:Remove()
- wait(1)
- tauntdebounce = false
- end
- end
- end)
- checks1 = coroutine.wrap(function() -------Checks
- while true do
- hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
- if Root.Velocity.y > 1 and hf == nil then
- position = "Jump"
- elseif Root.Velocity.y < -1 and hf == nil then
- position = "Falling"
- elseif Root.Velocity.Magnitude < 2 and hf ~= nil then
- position = "Idle"
- elseif Root.Velocity.Magnitude > 2 and hf ~= nil then
- position = "Walking"
- end
- wait()
- end
- end)
- checks1()
- oofing = true
- hum.HealthChanged:Connect(function(healthz)
- if tauntdebounce then return end
- if dedlaff then return end
- if oofing then return end
- oofing = true
- ouchtable = beingattackedtable[math.random(1,#beingattackedtable)]
- ouch = Instance.new("Sound",Head)
- ouch.SoundId = "rbxassetid://"..ouchtable
- ouch.Volume = 8
- ouch:Play()
- wait(1)
- wait(ouch.TimeLength)
- ouch:Remove()
- wait(1)
- oofing = false
- end)
- coroutine.wrap(function()
- wait(2)
- oofing = false
- end)()
- OrgnC0 = Neck.C0
- local movelimbs = coroutine.wrap(function()
- while wait() do
- TrsoLV = Torso.CFrame.lookVector
- Dist = nil
- Diff = nil
- if not MseGuide then
- print("Failed to recognize")
- else
- local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, Mouse.Hit.lookVector), Workspace, false, true)
- Dist = (Head.CFrame.p-Point).magnitude
- Diff = Head.CFrame.Y-Point.Y
- local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, Mouse.Hit.lookVector), Workspace, false, true)
- Dist2 = (LeftArm.CFrame.p-Point).magnitude
- Diff2 = LeftArm.CFrame.Y-Point.Y
- HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
- Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
- end
- end
- end)
- movelimbs()
- alreadyflip = false
- function jumpsound()
- if alreadyflip then return end
- alreadyflip = true
- flipsound = Instance.new("Sound",Torso)
- flipsound.SoundId = "rbxassetid://1031614266"
- flipsound.Volume = 2
- flipsound.Pitch = 1
- flipsound:Play()
- removeuseless:AddItem(flipsound,2)
- wait(1)
- alreadyflip = false
- end
- coroutine.wrap(function()
- while true do
- hum:SetStateEnabled("Dead",false) hum:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
- if hum.Health < .1 then
- immortality()
- end
- wait()
- end
- end)()
- spinny = 0
- local anims = coroutine.wrap(function()
- while true do
- settime = 0.05
- sine = sine + change
- if position == "Jump" and attacking == false then
- coroutine.wrap(function()
- jumpsound()
- end)()
- spinny = spinny - 18
- change = 1
- ws = 35
- footsteps.Volume = 0
- LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
- RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
- LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(spinny), math.rad(0), math.rad(0)), 0.4)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.14 + .02 * math.sin(sine/12),-.125) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.2)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.14 + .02 * math.sin(sine/12),-.125) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-10)), 0.2)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1., .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.4)
- elseif position == "Falling" and attacking == false then
- change = 1
- ws = 19
- spinny = 0
- footsteps.Volume = 0
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
- LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
- RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
- LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.64 + .02 * math.sin(sine/12),-.125) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.64 + .02 * math.sin(sine/12),-.125) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2)
- elseif position == "Walking" and attacking == false and running == false then
- change = 1.2
- if invisible then
- ws = 30
- else
- ws = 19
- end
- walking = true
- spinny = 0
- footsteps.Volume = 2
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.3,-.3) * CFrame.Angles(math.rad(50 + 5 * math.sin(sine/8)),math.rad(0),math.rad(-10)),.3)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.3,-.3) * CFrame.Angles(math.rad(50 + 5 * math.sin(sine/8)),math.rad(0),math.rad(10)),.3)
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.45 + 0.2*math.sin(sine/3.5), 0) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/7))), 0.3)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.42, 1.52 - 0.35 * math.cos(sine/7)/2.8, -.1 + 0.2 - math.sin(sine/7)/3.4) * CFrame.Angles(math.rad(25 - 35) + -math.sin(sine/7)/2.3, math.rad(0)*math.cos(sine/7), math.rad(0), math.cos(-15 * 75 * math.cos(sine/7))), 0.3)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.42, 1.52 + 0.35 * math.cos(sine/7)/2.8, -.1 + 0.2 + math.sin(sine/7)/3.4) * CFrame.Angles(math.rad(25 - 35) - -math.sin(sine/7)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(-15 * 75 * math.cos(sine/7))), 0.3)
- elseif position == "Idle" and attacking == false and running == false then
- change = .5
- if invisible then
- ws = 30
- else
- ws = 19
- end
- spinny = 0
- footsteps.Volume = 0
- ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.165 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)),math.rad(0),math.rad(0)),.1)
- LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.14 + .02 * math.sin(sine/12),-.125) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1)
- RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.34 + .02 * math.sin(sine/12),.10 * -math.sin(sine/12)) * CFrame.Angles(math.rad(-10 + 10 * math.sin(sine/12)),math.rad(0),math.rad(-25)), 0.1)
- RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.1)
- LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.1)
- end
- swait()
- end
- end)
- anims()
Add Comment
Please, Sign In to add comment