Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = Instance.new("RemoteEvent",owner.PlayerGui)
- p.Name = "KeyPress"
- m = Instance.new("RemoteFunction",owner.PlayerGui)
- m.Name = "Mouse"
- l = Instance.new("RemoteFunction",owner.PlayerGui)
- l.Name = "Mouse0"
- local source = [[
- local p = owner.PlayerGui:WaitForChild("KeyPress")
- local m = owner.PlayerGui:WaitForChild("Mouse")
- local l = owner.PlayerGui:WaitForChild("Mouse0")
- game:GetService("UserInputService").InputBegan:Connect(function(key, gameProcessed)
- if not gameProcessed then
- p:FireServer(key.KeyCode)
- end
- end)
- wait()
- m.OnClientInvoke = function()
- return owner:GetMouse().Target
- end
- l.OnClientInvoke = function()
- return owner:GetMouse().Hit
- end
- ]]
- NLS(source,owner.PlayerGui)
- math.randomseed(tick())
- green = "rbxassetid://2616525039"
- white = "rbxassetid://2129755572"
- swordtexture = "rbxassetid://432834982"
- sword = "rbxassetid://432834974"
- slice = "rbxassetid://3424466520"
- crystal = "rbxassetid://1059108471"
- zeroid = "rbxassetid://3189558544"
- oneid = "rbxassetid://3189560540"
- twoid = "rbxassetid://3189561617"
- threeid = "rbxassetid://3189563503"
- fourid = "rbxassetid://3189565375"
- fiveid = "rbxassetid://3189567260"
- sixid = "rbxassetid://3189568531"
- sevenid = "rbxassetid://3189570442"
- eightid = "rbxassetid://3189583938"
- nineid = "rbxassetid://3189585966"
- Aid = "rbxassetid://3084426035"
- Bid = "rbxassetid://3084451043"
- Cid = "rbxassetid://3084463904"
- Did = "rbxassetid://3084487555"
- Eid = "rbxassetid://3084491097"
- Fid = "rbxassetid://3084492520"
- Gid = "rbxassetid://3084493904"
- Hid = "rbxassetid://3084494750"
- Iid = "rbxassetid://3084496200"
- Jid = "rbxassetid://3084497782"
- Kid = "rbxassetid://3084529073"
- Lid = "rbxassetid://3084530895"
- Mid = "rbxassetid://3084531995"
- Nid = "rbxassetid://3084533592"
- Oid = "rbxassetid://3084535047"
- Pid = "rbxassetid://3084538795"
- Qid = "rbxassetid://3084540933"
- Rid = "rbxassetid://3084546446"
- Sid = "rbxassetid://3084547589"
- Tid = "rbxassetid://3084549927"
- Uid = "rbxassetid://3084551005"
- Vid = "rbxassetid://3084551887"
- Wid = "rbxassetid://3084554595"
- Xid = "rbxassetid://3084558232"
- Yid = "rbxassetid://3084558960"
- Zid = "rbxassetid://3084560220"
- iid = "rbxassetid://442354677"
- nid = "rbxassetid://442354929"
- fid = "rbxassetid://442354456"
- crownid = "rbxassetid://1007757199"
- donutid = "rbxassetid://750104831"
- ringid = "rbxassetid://471124075"
- ring0id = "rbxassetid://3270017"
- diamondid = "rbxassetid://1254392112"
- coneid = "rbxassetid://703458158"
- square = "rbxassetid://703387192"
- glow = "rbxassetid://172380355"
- dust = "rbxassetid://464840466"
- blood = "rbxassetid://1927066320"
- pentagram = "rbxassetid://2998471080"
- it = Instance.new
- cf = CFrame.new
- ang = CFrame.Angles
- v3 = Vector3.new
- rad = math.rad
- rand = math.random
- huge = math.huge
- v2 = Vector2.new
- numse = NumberSequence.new
- numra = NumberRange.new
- rgb = Color3.fromRGB
- col = Color3.new
- dead = false
- healthboost = 1
- deathboost = 1
- torso = nil
- plr = owner
- char = owner.Character
- head = owner.Character.Head
- if owner.Character:FindFirstChild("Torso") then
- torso = owner.Character:FindFirstChild("Torso")
- else
- torso = owner.Character:FindFirstChild("UpperTorso")
- end
- function swait()
- game:GetService("RunService").Stepped:wait()
- end
- blocking = false
- orbsummoned = false
- billboardgui = Instance.new("BillboardGui", head)
- textlabel = Instance.new("TextBox")
- textlabel.Name = "TxtLabel"
- billboardgui.Name = "Billboard"
- textlabel.BackgroundTransparency = 1
- textlabel.Font = Enum.Font.Arcade
- textlabel.Text = ""
- textlabel.TextColor3 = Color3.fromRGB(120,255,0)
- textlabel.BorderSizePixel = 0
- textlabel.Size = UDim2.new(2,0,2,0)
- textlabel.Position = UDim2.new(0.15,0,-0.7,0)
- textlabel.Parent = billboardgui
- textlabel.TextScaled = true
- billboardgui.StudsOffset = Vector3.new(0,2,0)
- billboardgui.Size = UDim2.new(10,0,3,0)
- pos = nil
- char.Humanoid.MaxHealth = 1000
- char.Humanoid.Health = 1000
- local music = Instance.new("Sound",owner.Character.Head)
- music.SoundId = "rbxassetid://4339366148"
- music.Volume = 10
- music.TimePosition = 190
- music.Looped = true
- music:Play()
- function modeswitch()
- spawn(function()
- local d = 0
- while wait(0.1) do
- local chance = math.random(1,100)
- if chance < 11 then
- local beam = Instance.new("Part")
- beam.Size = Vector3.new(1,1,1)
- beam.Anchored = true
- beam.Color = Color3.fromRGB(120,255,0)
- beam.CFrame = CFrame.new(torso.Position - Vector3.new(0,3.5,0) + Vector3.new(math.random(-500,500)/100,0,math.random(-500,500)/100)) * CFrame.Angles(math.rad(math.random(-60,60)),0,math.rad(math.random(-60,60)))
- beam.Material = "Neon"
- beam.CanCollide = false
- beam.Parent = workspace
- local spm = Instance.new("SpecialMesh",beam)
- spm.MeshType = "Sphere"
- spawn(function()
- for i=1,5,0.1 do
- spm.Scale = spm.Scale + Vector3.new(0.05,0.5*i,0.05)
- beam.Transparency = beam.Transparency + 0.02
- swait()
- end
- beam:Destroy()
- end)
- end
- if d > 360 then
- d = 0
- end
- local crown = Instance.new("Part")
- crown.Anchored = true
- crown.Size = Vector3.new(2,2,2)
- crown.Position = torso.Position - Vector3.new(0,3.5,0)
- crown.CFrame = crown.CFrame * CFrame.Angles(0,math.rad(d),0)
- crown.CanCollide = false
- crown.Color = Color3.fromRGB(120,255,0)
- crown.Transparency = 0.5
- crown.Parent = workspace
- local spm = Instance.new("SpecialMesh",crown)
- spm.MeshId = crownid
- local am = math.random(-3,3)
- local am0 = math.random(2,4)
- local am1 = math.random(-80,80)/100
- local am2 = math.random(-80,80)/100
- spawn(function()
- for i=1,5,0.1 do
- crown.Transparency = crown.Transparency + 0.012
- crown.CFrame = crown.CFrame * CFrame.Angles(math.rad(am1),math.rad(am),math.rad(am2))
- spm.Scale = spm.Scale + Vector3.new((am0/30)*i,(am0/30)*i/5,(am0/30)*i)
- swait()
- end
- crown:Destroy()
- end)
- d = d + 2
- end
- end)
- end
- local speed = 0
- local prevhp = 1000
- local dashing = false
- local tpos = 0
- local moded = false
- spawn(function()
- while wait(0.05) do
- tpos = music.TimePosition
- if tpos > 216.07441929324295415 and not moded then
- moded = true
- modeswitch()
- end
- end
- end)
- local uplifted = false
- local superdashing = false
- local blasting = false
- spawn(function()
- while wait(0.05) do
- healthboost = 3 - char.Humanoid.Health/500
- pos = torso.CFrame + v3(0,2,0)
- end
- end)
- char.Humanoid.Running:Connect(function(speeed)
- speed = speeed
- end)
- spawn(function()
- local o = 0
- local right = false
- local p = 0
- while not dead do
- local q = rand(1,5)
- local e = rand(1,5)
- if o>1 then
- o=0
- end
- if p>10 then
- right = false
- elseif p<-10 then
- right = true
- end
- o=o+0.05
- wait(0.05)
- end
- end)
- function torsotouched(h)
- if dashing then
- if h.Parent then
- if h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent ~= char and h.Parent:FindFirstChild("Head") and not released and h.Name ~= "M0" then
- released = true
- stop = true
- local percent = rand(1,100)
- local chance = rand(10,30)
- if percent < chance and percent > 10 then
- if h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
- h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
- h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(chance/10)*(deathboost*healthboost))
- else
- h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/(chance/10)*(deathboost*healthboost))
- end
- local effect0 = it("Part")
- effect0.Color = Color3.fromHSV(0,1,1)
- effect0.Material = "Neon"
- effect0.Size = v3(1,1,1)
- effect0.CFrame = h.Parent.Head.CFrame
- effect0.Anchored = true
- effect0.CanCollide = false
- effect0.Parent = workspace
- local effect1 = it("Part")
- effect1.Color = Color3.fromHSV(0,1,1)
- effect1.Size = v3(2,2,2)
- effect1.CFrame = h.Parent.Head.CFrame
- effect1.Anchored = false
- effect1.CanCollide = false
- effect1.Parent = workspace
- local effect2 = it("Part")
- effect2.Color = Color3.fromHSV(0,1,1)
- effect2.Size = v3(2,2,2)
- effect2.CFrame = h.Parent.Head.CFrame
- effect2.Anchored = false
- effect2.CanCollide = false
- effect2.Parent = workspace
- local bpos = it("BodyPosition",effect1)
- bpos.MaxForce = v3(huge,huge,huge)
- bpos.Position = effect1.Position
- local bpos0 = it("BodyPosition",effect2)
- bpos0.MaxForce = v3(huge,huge,huge)
- bpos0.Position = effect2.Position
- local angvel = it("BodyAngularVelocity",effect1)
- angvel.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
- local angvel0 = it("BodyAngularVelocity",effect2)
- angvel0.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
- local mesh0 = it("SpecialMesh",effect0)
- mesh0.MeshType = "Sphere"
- local mesh1 = it("SpecialMesh",effect1)
- mesh1.MeshId = ring0id
- mesh1.Scale = effect1.Size
- local mesh2 = it("SpecialMesh",effect2)
- mesh2.MeshId = ring0id
- mesh2.Scale = effect2.Size
- local o = 0
- spawn(function()
- p = 0
- textlabel.Text = "CRIT " .. percent .. "%"
- for i=1,25 do
- if p>1 then
- p=0
- end
- textlabel.TextColor3 = Color3.fromHSV(p,1,1)
- textlabel.TextTransparency = textlabel.TextTransparency + 0.04
- textlabel.Rotation = textlabel.Rotation + 1.2
- billboardgui.StudsOffset = billboardgui.StudsOffset + v3(0,0.2,0)
- p=p+0.03
- swait()
- end
- textlabel.Text = ""
- textlabel.TextTransparency = 0
- textlabel.Rotation = 0
- billboardgui.StudsOffset = v3(0,2,0)
- end)
- for i=1,25 do
- effect0.Size = effect0.Size + v3(0.5,0.5,0.5)
- mesh1.Scale = mesh1.Scale + v3(0.7,0.7,0.7)
- mesh2.Scale = mesh2.Scale + v3(0.7,0.7,0.7)
- effect0.Transparency = effect0.Transparency + 0.04
- effect1.Transparency = effect1.Transparency + 0.04
- effect2.Transparency = effect2.Transparency + 0.04
- effect0.Color = Color3.fromHSV(o,1,1)
- effect1.Color = Color3.fromHSV(o,1,1)
- effect2.Color = Color3.fromHSV(o,1,1)
- o = o + 0.03
- swait()
- end
- effect0:Destroy()
- effect1:Destroy()
- effect2:Destroy()
- elseif percent < 10 then
- if h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
- h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
- h.Parent:FindFirstChildOfClass("Humanoid").Health = 0
- h.Parent:BreakJoints()
- else
- h.Parent:FindFirstChildOfClass("Humanoid").Health = 0
- h.Parent:BreakJoints()
- end
- h.Parent:FindFirstChildOfClass("Humanoid"):Destroy()
- local effect0 = it("Part")
- effect0.Color = Color3.fromHSV(0,1,1)
- effect0.Material = "Neon"
- effect0.Size = v3(1,1,1)
- effect0.CFrame = h.Parent.Head.CFrame
- effect0.Anchored = true
- effect0.CanCollide = false
- effect0.Parent = workspace
- local effect1 = it("Part")
- effect1.Color = Color3.fromHSV(0,1,1)
- effect1.Size = v3(2,2,2)
- effect1.CFrame = h.Parent.Head.CFrame
- effect1.Anchored = false
- effect1.CanCollide = false
- effect1.Parent = workspace
- local effect2 = it("Part")
- effect2.Color = Color3.fromHSV(0,1,1)
- effect2.Size = v3(2,2,2)
- effect2.CFrame = h.Parent.Head.CFrame
- effect2.Anchored = false
- effect2.CanCollide = false
- effect2.Parent = workspace
- local bpos = it("BodyPosition",effect1)
- bpos.MaxForce = v3(huge,huge,huge)
- bpos.Position = effect1.Position
- local bpos0 = it("BodyPosition",effect2)
- bpos0.MaxForce = v3(huge,huge,huge)
- bpos0.Position = effect2.Position
- local angvel = it("BodyAngularVelocity",effect1)
- angvel.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
- local angvel0 = it("BodyAngularVelocity",effect2)
- angvel0.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
- local mesh0 = it("SpecialMesh",effect0)
- mesh0.MeshType = "Sphere"
- local mesh1 = it("SpecialMesh",effect1)
- mesh1.MeshId = ring0id
- mesh1.Scale = effect1.Size
- local mesh2 = it("SpecialMesh",effect2)
- mesh2.MeshId = ring0id
- mesh2.Scale = effect2.Size
- local o = 0
- spawn(function()
- p = 0
- textlabel.Text = "ACE CRIT"
- for i=1,25 do
- if p>1 then
- p=0
- end
- textlabel.TextColor3 = Color3.fromHSV(p,1,1)
- textlabel.TextTransparency = textlabel.TextTransparency + 0.04
- textlabel.Rotation = textlabel.Rotation + 1.2
- billboardgui.StudsOffset = billboardgui.StudsOffset + v3(0,0.2,0)
- p=p+0.2
- swait()
- end
- textlabel.Text = ""
- textlabel.TextTransparency = 0
- textlabel.Rotation = 0
- billboardgui.StudsOffset = v3(0,2,0)
- end)
- h.Parent.Head:Destroy()
- for i=1,25 do
- if o>1 then
- o=0
- end
- effect0.Size = effect0.Size + v3(2.5,2.5,2.5)
- mesh1.Scale = mesh1.Scale + v3(2.7,2.7,2.7)
- mesh2.Scale = mesh2.Scale + v3(2.7,2.7,2.7)
- effect0.Transparency = effect0.Transparency + 0.04
- effect1.Transparency = effect1.Transparency + 0.04
- effect2.Transparency = effect2.Transparency + 0.04
- effect0.Color = Color3.fromHSV(o,1,1)
- effect1.Color = Color3.fromHSV(o,1,1)
- effect2.Color = Color3.fromHSV(o,1,1)
- o = o + 0.2
- swait()
- end
- effect0:Destroy()
- effect1:Destroy()
- effect2:Destroy()
- else
- if h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
- h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
- h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/10)*(deathboost*healthboost))
- else
- h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/10)*(deathboost*healthboost))
- end
- local effect0 = it("Part")
- effect0.Color = col(0,0,0)
- effect0.Material = "Neon"
- effect0.Size = v3(1,1,1)
- effect0.CFrame = torso.CFrame
- effect0.Anchored = true
- effect0.CanCollide = false
- effect0.Parent = workspace
- local effect1 = it("Part")
- effect1.Color = col(0,0,0)
- effect1.Size = v3(2,2,2)
- effect1.CFrame = torso.CFrame
- effect1.Anchored = false
- effect1.CanCollide = false
- effect1.Parent = workspace
- local effect2 = it("Part")
- effect2.Color = col(0,0,0)
- effect2.Size = v3(2,2,2)
- effect2.CFrame = torso.CFrame
- effect2.Anchored = false
- effect2.CanCollide = false
- effect2.Parent = workspace
- local bpos = it("BodyPosition",effect1)
- bpos.MaxForce = v3(huge,huge,huge)
- bpos.Position = effect1.Position
- local bpos0 = it("BodyPosition",effect2)
- bpos0.MaxForce = v3(huge,huge,huge)
- bpos0.Position = effect2.Position
- local angvel = it("BodyAngularVelocity",effect1)
- angvel.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
- local angvel0 = it("BodyAngularVelocity",effect2)
- angvel0.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
- local mesh0 = it("SpecialMesh",effect0)
- mesh0.MeshType = "Sphere"
- local mesh1 = it("SpecialMesh",effect1)
- mesh1.MeshId = ring0id
- mesh1.Scale = effect1.Size
- local mesh2 = it("SpecialMesh",effect2)
- mesh2.MeshId = ring0id
- mesh2.Scale = effect2.Size
- local o = 0
- for i=1,25 do
- effect0.Size = effect0.Size + v3(0.5,0.5,0.5)
- mesh1.Scale = mesh1.Scale + v3(0.7,0.7,0.7)
- mesh2.Scale = mesh2.Scale + v3(0.7,0.7,0.7)
- effect0.Transparency = effect0.Transparency + 0.04
- effect1.Transparency = effect1.Transparency + 0.04
- effect2.Transparency = effect2.Transparency + 0.04
- o = o + 0.03
- swait()
- end
- effect0:Destroy()
- effect1:Destroy()
- effect2:Destroy()
- end
- wait(0.05)
- stop = false
- released = false
- end
- end
- elseif superdashing then
- if h.Parent then
- if h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent ~= char and h.Parent:FindFirstChild("Head") and not released and h.Name ~= "M0" then
- released = true
- stop = true
- if h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
- h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
- h.Parent:FindFirstChildOfClass("Humanoid").Health = 0
- h.Parent:BreakJoints()
- else
- h.Parent:FindFirstChildOfClass("Humanoid").Health = 0
- h.Parent:BreakJoints()
- end
- h.Parent:FindFirstChildOfClass("Humanoid"):Destroy()
- local effect0 = it("Part")
- effect0.Color = Color3.fromHSV(0,1,1)
- effect0.Material = "Neon"
- effect0.Size = v3(1,1,1)
- effect0.CFrame = h.Parent.Head.CFrame
- effect0.Anchored = true
- effect0.CanCollide = false
- effect0.Parent = workspace
- local effect1 = it("Part")
- effect1.Color = Color3.fromHSV(0,1,1)
- effect1.Size = v3(2,2,2)
- effect1.CFrame = h.Parent.Head.CFrame
- effect1.Anchored = false
- effect1.CanCollide = false
- effect1.Parent = workspace
- local effect2 = it("Part")
- effect2.Color = Color3.fromHSV(0,1,1)
- effect2.Size = v3(2,2,2)
- effect2.CFrame = h.Parent.Head.CFrame
- effect2.Anchored = false
- effect2.CanCollide = false
- effect2.Parent = workspace
- local bpos = it("BodyPosition",effect1)
- bpos.MaxForce = v3(huge,huge,huge)
- bpos.Position = effect1.Position
- local bpos0 = it("BodyPosition",effect2)
- bpos0.MaxForce = v3(huge,huge,huge)
- bpos0.Position = effect2.Position
- local angvel = it("BodyAngularVelocity",effect1)
- angvel.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
- local angvel0 = it("BodyAngularVelocity",effect2)
- angvel0.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
- local mesh0 = it("SpecialMesh",effect0)
- mesh0.MeshType = "Sphere"
- local mesh1 = it("SpecialMesh",effect1)
- mesh1.MeshId = ring0id
- mesh1.Scale = effect1.Size
- local mesh2 = it("SpecialMesh",effect2)
- mesh2.MeshId = ring0id
- mesh2.Scale = effect2.Size
- spawn(function()
- for i=1,rand(3,7) do
- local debris = it("Part")
- debris.Material = h.Material
- debris.Color = h.Color
- debris.Size = v3(h.Size.X-(rand(-40,60)/10),h.Size.Y-(rand(-40,60)/10),h.Size.Z-(rand(-40,60)/10))
- debris.CFrame = h.CFrame
- debris.Parent = workspace
- local velo = it("BodyVelocity",debris)
- velo.MaxForce = v3(huge,huge,huge)
- velo.Velocity = v3(rand(-100,100),rand(-100,100),rand(-100,100))
- game:GetService("Debris"):AddItem(debris,5)
- spawn(function()
- wait(1)
- velo:Destroy()
- end)
- wait(rand(100,700)/10000)
- end
- end)
- local o = 0
- spawn(function()
- p = 0
- textlabel.Text = "ACE DASH"
- for i=1,25 do
- if p>1 then
- p=0
- end
- textlabel.TextColor3 = Color3.fromHSV(p,1,1)
- textlabel.TextTransparency = textlabel.TextTransparency + 0.04
- textlabel.Rotation = textlabel.Rotation + 1.2
- billboardgui.StudsOffset = billboardgui.StudsOffset + v3(0,0.2,0)
- p=p+0.2
- swait()
- end
- textlabel.Text = ""
- textlabel.TextTransparency = 0
- textlabel.Rotation = 0
- billboardgui.StudsOffset = v3(0,2,0)
- end)
- h.Parent.Head:Destroy()
- for i=1,25 do
- if o>1 then
- o=0
- end
- effect0.Size = effect0.Size + v3(2.5,2.5,2.5)
- mesh1.Scale = mesh1.Scale + v3(2.7,2.7,2.7)
- mesh2.Scale = mesh2.Scale + v3(2.7,2.7,2.7)
- effect0.Transparency = effect0.Transparency + 0.04
- effect1.Transparency = effect1.Transparency + 0.04
- effect2.Transparency = effect2.Transparency + 0.04
- effect0.Color = Color3.fromHSV(o,1,1)
- effect1.Color = Color3.fromHSV(o,1,1)
- effect2.Color = Color3.fromHSV(o,1,1)
- o = o + 0.2
- swait()
- end
- effect0:Destroy()
- effect1:Destroy()
- effect2:Destroy()
- released = false
- stop = false
- elseif h.Name ~= "Base" and h.Name ~= "M0" and h.Size.X < 400 and h.Size.Y < 400 and h.Size.Z < 400 and not released then
- released = true
- stop = true
- h.Anchored = false
- local effect0 = it("Part")
- effect0.Color = Color3.fromHSV(0,1,1)
- effect0.Material = "Neon"
- effect0.Size = v3(1,1,1)
- effect0.CFrame = torso.CFrame
- effect0.Anchored = true
- effect0.CanCollide = false
- effect0.Parent = workspace
- local effect1 = it("Part")
- effect1.Color = Color3.fromHSV(0,1,1)
- effect1.Size = v3(2,2,2)
- effect1.CFrame = torso.CFrame
- effect1.Anchored = false
- effect1.CanCollide = false
- effect1.Parent = workspace
- local effect2 = it("Part")
- effect2.Color = Color3.fromHSV(0,1,1)
- effect2.Size = v3(2,2,2)
- effect2.CFrame = torso.CFrame
- effect2.Anchored = false
- effect2.CanCollide = false
- effect2.Parent = workspace
- local bpos = it("BodyPosition",effect1)
- bpos.MaxForce = v3(huge,huge,huge)
- bpos.Position = effect1.Position
- local bpos0 = it("BodyPosition",effect2)
- bpos0.MaxForce = v3(huge,huge,huge)
- bpos0.Position = effect2.Position
- local angvel = it("BodyAngularVelocity",effect1)
- angvel.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
- local angvel0 = it("BodyAngularVelocity",effect2)
- angvel0.AngularVelocity = v3(rad(rand(-100,100)),rad(rand(-100,100)),rad(rand(-100,100)))
- local mesh0 = it("SpecialMesh",effect0)
- mesh0.MeshType = "Sphere"
- local mesh1 = it("SpecialMesh",effect1)
- mesh1.MeshId = ring0id
- mesh1.Scale = effect1.Size
- local mesh2 = it("SpecialMesh",effect2)
- mesh2.MeshId = ring0id
- mesh2.Scale = effect2.Size
- spawn(function()
- for i=1,rand(3,7) do
- local debris = it("Part")
- debris.Material = h.Material
- debris.Color = h.Color
- debris.Size = v3(h.Size.X-(rand(-40,60)/10),h.Size.Y-(rand(-40,60)/10),h.Size.Z-(rand(-40,60)/10))
- debris.CFrame = h.CFrame
- debris.Parent = workspace
- local velo = it("BodyVelocity",debris)
- velo.MaxForce = v3(huge,huge,huge)
- velo.Velocity = v3(rand(-100,100),rand(-100,100),rand(-100,100))
- game:GetService("Debris"):AddItem(debris,5)
- spawn(function()
- wait(1)
- velo:Destroy()
- end)
- wait(rand(100,700)/10000)
- end
- end)
- local o=0
- for i=1,25 do
- if o>1 then
- o=0
- end
- effect0.Size = effect0.Size + v3(2.5,2.5,2.5)
- mesh1.Scale = mesh1.Scale + v3(2.7,2.7,2.7)
- mesh2.Scale = mesh2.Scale + v3(2.7,2.7,2.7)
- effect0.Transparency = effect0.Transparency + 0.04
- effect1.Transparency = effect1.Transparency + 0.04
- effect2.Transparency = effect2.Transparency + 0.04
- effect0.Color = Color3.fromHSV(o,1,1)
- effect1.Color = Color3.fromHSV(o,1,1)
- effect2.Color = Color3.fromHSV(o,1,1)
- o = o + 0.2
- swait()
- end
- effect0:Destroy()
- effect1:Destroy()
- effect2:Destroy()
- released = false
- stop = false
- end
- end
- end
- end
- function fix()
- owner:LoadCharacter()
- deathboost = deathboost + 0.5
- torso = nil
- plr = owner
- char = owner.Character
- head = owner.Character.Head
- if owner.Character:FindFirstChild("Torso") then
- torso = owner.Character:FindFirstChild("Torso")
- else
- torso = owner.Character:FindFirstChild("UpperTorso")
- end
- billboardgui = Instance.new("BillboardGui", head)
- textlabel = Instance.new("TextBox")
- textlabel.Name = "TxtLabel"
- billboardgui.Name = "Billboard"
- textlabel.BackgroundTransparency = 1
- textlabel.Font = Enum.Font.Arcade
- textlabel.Text = ""
- textlabel.TextColor3 = Color3.fromRGB(120,255,0)
- textlabel.BorderSizePixel = 0
- textlabel.Size = UDim2.new(2,0,2,0)
- textlabel.Position = UDim2.new(0.15,0,-0.7,0)
- textlabel.Parent = billboardgui
- textlabel.TextScaled = true
- billboardgui.StudsOffset = Vector3.new(0,2,0)
- billboardgui.Size = UDim2.new(10,0,3,0)
- char.Humanoid.MaxHealth = 1000
- char.Humanoid.Health = 1000
- char.HumanoidRootPart.CFrame = cf(pos.Position)
- local music = Instance.new("Sound",owner.Character.Head)
- music.SoundId = "rbxassetid://4339366148"
- music.Volume = 10
- music.Looped = true
- music.TimePosition = tpos
- music:Play()
- dead = false
- local moded = false
- spawn(function()
- while wait(0.05) do
- tpos = music.TimePosition
- if tpos > 216.07441929324295415 and not moded then
- moded = true
- modeswitch()
- end
- end
- end)
- torso.Touched:Connect(torsotouched)
- spawn(function()
- local o = 0
- local right = false
- local p = 0
- while not dead do
- local q = rand(1,5)
- local e = rand(1,5)
- if o>1 then
- o=0
- end
- if p>10 then
- right = false
- elseif p<-10 then
- right = true
- end
- if right then
- p = p + 0.2
- else
- p = p - 0.2
- end
- o=o+0.05
- wait(0.05)
- end
- end)
- char.Humanoid.Died:Connect(function()
- for _,v in pairs(char:GetDescendants()) do
- if v:IsA("Part") then
- v.Anchored = false
- v.Material = "Neon"
- v.Color = Color3.fromRGB(120,255,0)
- local bp = Instance.new("BodyPosition",v)
- bp.Position = v.Position + Vector3.new(math.random(-300,300)/300,math.random(-300,300)/300,math.random(-300,300)/300)
- bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- elseif v:IsA("CharacterMesh") then
- v:Destroy()
- elseif v:IsA("SpecialMesh") then
- v:Destroy()
- elseif v:IsA("Shirt") then
- v:Destroy()
- elseif v:IsA("Accessory") then
- v:Destroy()
- elseif v:IsA("Pants") then
- v:Destroy()
- end
- end
- end)
- local bill = it("BillboardGui", head)
- local text = it("TextLabel", bill)
- bill.StudsOffset = v3(0,-2,0)
- text.Size = UDim2.new(0.7,0,0.8,0)
- text.Position = UDim2.new(0.45,0,-0.05,0)
- text.Text = ">INITIATING RESTORATION SEQUENCE"
- text.Font = Enum.Font.Arcade
- text.TextScaled = true
- text.AnchorPoint = Vector2.new(0.5,0.5)
- text.TextColor3 = Color3.fromHSV(0,1,1)
- bill.Size = UDim2.new(10,0,3,0)
- text.BackgroundTransparency = 1
- spawn(function()
- local o=0
- for i=1, 80 do
- if o>1 then
- o=0
- end
- text.Rotation = text.Rotation + 0.5
- text.Size = text.Size + UDim2.new(0.005,0,0.005,0)
- bill.StudsOffset = bill.StudsOffset + v3(0,0.025,0)
- text.TextColor3 = Color3.fromHSV(o,1,1)
- o=o+0.05
- swait()
- end
- for i=1, 80 do
- if o>1 then
- o=0
- end
- text.Rotation = text.Rotation + 0.5
- text.Size = text.Size + UDim2.new(0.005,0,0.005,0)
- bill.StudsOffset = bill.StudsOffset + v3(0,0.025,0)
- text.TextColor3 = Color3.fromHSV(o,1,1)
- text.TextTransparency = text.TextTransparency + 0.0125
- o=o+0.05
- swait()
- end
- end)
- for i=1,0,-0.01 do
- local a = rand(1,5)
- if a == 5 then
- local part = it("Part")
- part.Material = "Neon"
- local colr = rand(1,3)
- if colr==1 then
- part.Color = col(0,1,0)
- elseif colr==2 then
- part.Color = col(1,0,0)
- elseif colr==3 then
- part.Color = col(0,0,1)
- end
- part.Transparency = 1
- part.Anchored = true
- part.CanCollide = false
- part.Size = v3(rand(200,400)/100,rand(100,200)/100,rand(100,200)/100)
- part.Position = torso.Position + v3(rand(-800,800)/100,rand(-300,300)/100,rand(-800,800)/100)
- part.Parent = workspace
- local eff = part:Clone()
- eff.Position = torso.Position + v3(rand(-800,800)/100,-3,rand(-800,800)/100)
- eff.Parent = workspace
- local wai = rand(20,40)/10
- game:GetService("Debris"):AddItem(part,wai)
- game:GetService("Debris"):AddItem(eff,wai)
- spawn(function()
- local speed = rand(20,40)/100
- for i=1,wai*100 do
- part.Transparency = rand(0,100)/100
- eff.Transparency = rand(0,100)/100
- eff.Position = eff.Position + v3(0,speed,0)
- if dead then
- break
- end
- swait()
- end
- end)
- end
- for _,v in pairs(char:GetDescendants()) do
- if v:IsA("Part") or v:IsA("MeshPart") then
- if v.Name ~= "HumanoidRootPart" then
- v.Transparency = i + rand(-10,10)/200
- local mat = rand(1,3)
- if mat==1 then
- v.Material = "Neon"
- elseif mat==2 then
- v.Material = "Glass"
- elseif mat==3 then
- v.Material = "ForceField"
- end
- end
- end
- end
- swait()
- end
- for _,v in pairs(char:GetDescendants()) do
- if v:IsA("Part") or v:IsA("MeshPart") then
- if v.Name ~= "HumanoidRootPart" then
- v.Material = "Plastic"
- v.Transparency = 0
- end
- end
- end
- end
- function parentchanged()
- if char.Parent ~= workspace then
- dead = true
- repeat swait() until owner.Character
- fix()
- char:GetPropertyChangedSignal("Parent"):Connect(parentchanged)
- end
- end
- char:GetPropertyChangedSignal("Parent"):Connect(parentchanged)
- char.Humanoid.Died:Connect(function()
- wait(0.2)
- for _,v in pairs(char:GetDescendants()) do
- if v:IsA("Part") then
- v.Anchored = false
- v.Material = "Neon"
- v.Color = Color3.fromRGB(120,255,0)
- local bp = Instance.new("BodyPosition",v)
- bp.Position = v.Position + Vector3.new(math.random(-300,300)/300,math.random(-300,300)/300,math.random(-300,300)/300)
- bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- elseif v:IsA("CharacterMesh") then
- v:Destroy()
- elseif v:IsA("SpecialMesh") then
- v:Destroy()
- elseif v:IsA("Shirt") then
- v:Destroy()
- elseif v:IsA("Accessory") then
- v:Destroy()
- elseif v:IsA("Pants") then
- v:Destroy()
- end
- end
- end)
- char.Humanoid.HealthChanged:Connect(function()
- if char.Humanoid.Health < prevhp then
- if blocking and not blasting then
- blasting = true
- local amount = prevhp - char.Humanoid.Health
- char.Humanoid:TakeDamage(-(amount/2))
- local part = it("Part")
- part.Transparency = 1
- part.Material = "ForceField"
- part.Size = v3(1,1,1)
- part.CFrame = torso.CFrame
- part.Color = Color3.fromHSV(0,1,1)
- part.Anchored = true
- part.CanCollide = false
- part.Parent = workspace
- local mesh = it("SpecialMesh",part)
- mesh.MeshType = "Sphere"
- part.Touched:Connect(function(h)
- if h.Parent then
- if h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent ~= char and not h.Parent:FindFirstChild("Hit") then
- local hit = it("BoolValue",h.Parent)
- hit.Name = "Hit"
- h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((amount/4)*(deathboost*healthboost))
- end
- end
- end)
- for i=1,10 do
- part.Size = part.Size + Vector3.new(0.1,0.1,0.1)
- part.Transparency = part.Transparency - 0.1
- swait()
- end
- blasting = false
- local o = 0
- for i=1,50 do
- if o > 1 then
- o = 0
- end
- part.Color = Color3.fromHSV(o,1,1)
- o = o + 0.02
- part.Size = part.Size + Vector3.new(0.5,0.5,0.5)
- part.Transparency = part.Transparency + 0.02
- swait()
- end
- part:Destroy()
- end
- end
- prevhp = char.Humanoid.Health
- end)
- local released = false
- local stop = false
- torso.Touched:Connect(torsotouched)
- p.OnServerEvent:Connect(function(plr,key)
- if key == Enum.KeyCode.Q then
- if not orbsummoned then
- orbsummoned = true
- local orb = it("Part")
- orb.Shape = "Ball"
- orb.CFrame = torso.CFrame + torso.CFrame.upVector * 6
- orb.Size = v3(1,1,1)
- orb.Material = "Neon"
- orb.Parent = char
- local parte = it("ParticleEmitter")
- parte.Size = numse(1.5,0)
- parte.Texture = glow
- parte.Transparency = numse(0.2,0.3)
- parte.Parent = orb
- parte.Lifetime = numra(0.8)
- parte.LightEmission = 0.6
- parte.Rate = 500
- spawn(function()
- while orb.Parent do
- local from = orb.Color
- local to = Color3.fromRGB(255,80,0)
- for i=0,1,0.05 do
- swait()
- orb.Color = from:Lerp(to,i)
- parte.Color = ColorSequence.new(from:Lerp(to,i))
- end
- local from = orb.Color
- local to = Color3.fromRGB(120,255,0)
- for i=0,1,0.05 do
- swait()
- orb.Color = from:Lerp(to,i)
- parte.Color = ColorSequence.new(from:Lerp(to,i))
- end
- swait()
- end
- end)
- local bodyp = it("BodyPosition")
- bodyp.D = 500
- bodyp.P = 10000
- bodyp.MaxForce = v3(huge,huge,huge)
- bodyp.Position = orb.Position
- bodyp.Parent = orb
- spawn(function()
- while orb.Parent do
- bodyp.Position = torso.CFrame.Position + torso.CFrame.upVector * 6
- for _,v in pairs(workspace:GetChildren()) do
- if v:FindFirstChildOfClass("Humanoid") and v ~= char then
- if v:FindFirstChild("Head") then
- local mag = (orb.Position - v.Head.Position).magnitude
- if mag < 70 then
- local ray = Ray.new(orb.Position, v.Head.Position)
- local part, position = workspace:FindPartOnRay(ray,char,false,true)
- local beam = it("Part")
- beam.Anchored = true
- beam.Material = "Neon"
- beam.Size = v3(1,1,((orb.Position - v.Head.Position).magnitude + 1)/10)
- local val = ((orb.Position - v.Head.Position).magnitude+5)
- beam.CFrame = CFrame.new(orb.Position, v.Head.Position) * CFrame.new(0, 0, -val+(val/1))
- beam.Color = Color3.fromRGB(120,255,0)
- beam.CanCollide = false
- beam.Parent = workspace
- local from = orb.Color
- local to = Color3.fromRGB(255,80,0)
- beam.Touched:Connect(function(h)
- if h.Parent then
- if h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent ~= char then
- if h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
- h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
- h.Parent:FindFirstChildOfClass("Humanoid").Health = 100000
- h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((1+((h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/20000)*1.8)*(deathboost*healthboost)))
- else
- h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((1+((h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/20000)*1.8)*(deathboost*healthboost)))
- end
- end
- end
- end)
- spawn(function()
- local p = 1
- local o = 10
- for i=10,1,-1 do
- beam.Size = v3(1,1,((orb.Position - v.Head.Position).magnitude + 1)/o)
- beam.CFrame = CFrame.new(orb.Position, v.Head.Position) * CFrame.new(0, 0, -val+(val/p))
- o = o - 1
- p = p + 0.1
- swait()
- end
- end)
- spawn(function()
- for i=0,1,0.02 do
- beam.Transparency = beam.Transparency + 0.02
- beam.Color = from:Lerp(to,i)
- swait()
- end
- beam:Destroy()
- end)
- end
- end
- end
- end
- wait(0.05)
- bodyp.Position = torso.CFrame.Position + torso.CFrame.upVector * 6
- wait(0.05)
- bodyp.Position = torso.CFrame.Position + torso.CFrame.upVector * 6
- wait(0.05)
- bodyp.Position = torso.CFrame.Position + torso.CFrame.upVector * 6
- wait(0.05)
- end
- end)
- wait(5)
- orb:Destroy()
- orbsummoned = false
- end
- elseif key == Enum.KeyCode.C then
- local ray = Ray.new(torso.Position, torso.CFrame.Position + torso.CFrame.upVector * -1000)
- local part, pos = workspace:FindPartOnRayWithIgnoreList(ray, owner.Character:GetChildren())
- local range = (torso.Position-pos).magnitude
- local size = range
- if range > 100 and not uplifted then
- uplifted = true
- local b = it("BodyPosition",torso)
- b.MaxForce = v3(huge,huge,huge)
- b.D = 300
- b.Position = v3(torso.Position.X,3,torso.Position.Z)
- repeat wait() until torso.Position.Y < 5
- b:Destroy()
- for _,v in pairs(workspace:GetChildren()) do
- if v:FindFirstChildOfClass("Humanoid") and v ~= char then
- if v:FindFirstChild("Head") then
- local mag = (head.Position - v.Head.Position).magnitude
- if mag < (size/5)*2 then
- local vel = it("BodyVelocity",v.Head)
- vel.Velocity = v3(0,size*(rand(10,30)/10),0)
- v:FindFirstChildOfClass("Humanoid").Health = 1
- spawn(function()
- wait(1)
- vel:Destroy()
- repeat wait() until v.Head.Position.Y < pos.Y + 5
- v:FindFirstChildOfClass("Humanoid").Health = 0
- end)
- end
- end
- end
- end
- spawn(function()
- local ray = Ray.new(torso.Position, torso.CFrame.Position + torso.CFrame.upVector * -100)
- local part,pos = workspace:FindPartOnRayWithIgnoreList(ray,char:GetChildren())
- for i=1,36 do
- local pa = it("Part")
- pa.Name = "UnanchorMe0"
- pa.CFrame = (char.HumanoidRootPart.CFrame * CFrame.Angles(0,rad(10*i),0) * CFrame.new(size/8,0,0)) * CFrame.Angles(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360))) - v3(0,15,0)
- pa.Anchored = true
- pa.Material = part.Material
- pa.Color = part.Color
- pa.Size = v3(rand(10,12),rand(10,12),rand(10,12))
- pa.Parent = char
- end
- for i=1,30 do
- for _,v in pairs(char:GetChildren()) do
- if v.Name == "UnanchorMe0" then
- v.Position = v.Position + v3(0,0.5,0)
- end
- end
- swait()
- end
- for i=1,36 do
- local pa = it("Part")
- pa.Name = "UnanchorMe1"
- pa.CFrame = (char.HumanoidRootPart.CFrame * CFrame.Angles(0,rad(10*i),0) * CFrame.new(size/5,0,0)) * CFrame.Angles(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360))) - v3(0,30,0)
- pa.Anchored = true
- pa.Material = part.Material
- pa.Color = part.Color
- pa.Size = v3(rand(26,28),rand(26,28),rand(26,28))
- pa.Parent = char
- end
- for i=1,30 do
- for _,v in pairs(char:GetChildren()) do
- if v.Name == "UnanchorMe1" then
- v.Position = v.Position + v3(0,1,0)
- end
- end
- swait()
- end
- for i=1,36 do
- local pa = it("Part")
- pa.Name = "UnanchorMe2"
- pa.CFrame = (char.HumanoidRootPart.CFrame * CFrame.Angles(0,rad(10*i),0) * CFrame.new(size/3,0,0)) * CFrame.Angles(rad(rand(-360,360)),rad(rand(-360,360)),rad(rand(-360,360))) - v3(0,60,0)
- pa.Anchored = true
- pa.Material = part.Material
- pa.Color = part.Color
- pa.Size = v3(rand(42,52),rand(42,52),rand(42,52))
- pa.Parent = char
- end
- for i=1,30 do
- for _,v in pairs(char:GetChildren()) do
- if v.Name == "UnanchorMe2" then
- v.Position = v.Position + v3(0,2,0)
- end
- end
- swait()
- end
- spawn(function()
- wait(3)
- for _,v in pairs(char:GetChildren()) do
- if v.Name == "UnanchorMe0" or v.Name == "UnanchorMe1" or v.Name == "UnanchorMe2" then
- v.Anchored = false
- v.CanCollide = false
- end
- end
- wait(0.5)
- for _,v in pairs(char:GetChildren()) do
- if v.Name == "UnanchorMe0" or v.Name == "UnanchorMe1" or v.Name == "UnanchorMe2" then
- v:Destroy()
- end
- end
- end)
- end)
- for i=1,rand(12,24) do
- local effect = it("Part")
- effect.Size = v3(size/5,0.1,size/5)
- effect.CFrame = cf(torso.Position) * ang(rad(rand(-30,30)),rad(rand(-360,360)),rad(rand(-30,30)))
- effect.CanCollide = false
- effect.Anchored = true
- effect.Parent = workspace
- local mesh = it("SpecialMesh",effect)
- mesh.MeshId = slice
- mesh.TextureId = white
- mesh.Scale = effect.Size
- local effect0 = it("Part")
- effect0.Size = v3(size/5,0.1,size/5)
- effect0.CFrame = cf(torso.Position) * ang(rad(rand(-5,5)),rad(rand(-360,360)),rad(rand(-5,5)))
- effect0.Color = col(1,1,1)
- effect0.CanCollide = false
- effect0.Anchored = true
- effect0.Parent = workspace
- local mesh0 = it("SpecialMesh",effect0)
- mesh0.MeshId = crownid
- mesh0.Scale = effect.Size
- spawn(function()
- local am = rand(-size/2,size/2)/10
- for i=1,50 do
- effect.CFrame = effect.CFrame * ang(0,rad(am),0)
- effect.Transparency = effect.Transparency + 0.02
- mesh.Scale = mesh.Scale + v3(size/500,size/500,size/500)
- effect0.CFrame = effect0.CFrame * ang(0,rad(am),0)
- mesh0.Scale = mesh0.Scale + v3(math.abs(am/5),math.abs(am/5),math.abs(am/5))
- effect0.Transparency = effect0.Transparency + 0.02
- swait()
- end
- effect:Destroy()
- effect:Destroy()
- end)
- swait()
- end
- wait(1)
- uplifted = false
- end
- elseif key == Enum.KeyCode.X then
- local hit = l:InvokeClient(owner)
- local effect0 = it("Part")
- effect0.Shape = "Ball"
- effect0.Anchored = true
- effect0.CanCollide = false
- effect0.Material = "Neon"
- effect0.Size = v3(1,1,1)
- effect0.CFrame = hit + v3(0,5,0)
- effect0.Parent = workspace
- local drone = it("Part")
- drone.Shape = "Ball"
- drone.Anchored = false
- drone.Color = col(0,0,0)
- drone.Material = "Neon"
- drone.Size = v3(1,1,1)
- drone.CFrame = hit + v3(0,5,0)
- drone.Parent = workspace
- local vel = it("BodyVelocity",drone)
- vel.Velocity = v3(0,0,0)
- vel.MaxForce = v3(huge,huge,huge)
- spawn(function()
- local o = 0
- for i=1,25 do
- effect0.Size = effect0.Size + v3(0.3,0.3,0.3)
- effect0.Transparency = effect0.Transparency + 0.04
- effect0.Color = Color3.fromHSV(o,1,1)
- o = o + 0.04
- swait()
- end
- effect0:Destroy()
- end)
- spawn(function()
- while drone and drone.Parent do
- local dist = 50
- local part = nil
- for _,v in pairs(workspace:GetChildren()) do
- if v:FindFirstChildOfClass("Humanoid") and v ~= char then
- if v:FindFirstChild("Head") then
- local mag = (drone.Position - v.Head.Position).magnitude
- if mag < dist then
- dist = mag
- part = v.Head
- end
- end
- end
- end
- if part then
- local q = drone.Touched:Connect(function(h)
- if h.Parent then
- if h.Parent:FindFirstChildOfClass("Humanoid") and h.Parent ~= char then
- if h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
- h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
- h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/4)*(deathboost*healthboost))
- else
- h.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((h.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/4)*(deathboost*healthboost))
- end
- local explode = it("Explosion",workspace)
- explode.Position = drone.Position
- explode.BlastRadius = 0
- drone:Destroy()
- end
- end
- end)
- drone:GetPropertyChangedSignal("Parent"):Connect(function()
- if drone.Parent ~= workspace then
- q:Disconnect()
- end
- end)
- spawn(function()
- while drone and drone.Parent do
- local e = CFrame.new(drone.Position, part.Position)
- local mag = (drone.Position - part.Position).magnitude
- if mag > 100 then
- vel.Velocity = e.LookVector * 300
- wait(0.2)
- vel.Velocity = v3(0,0,0)
- else
- vel.Velocity = e.LookVector * (10+mag)
- end
- wait(0.2)
- end
- end)
- end
- wait(0.1)
- end
- end)
- wait(10)
- drone:Destroy()
- elseif key == Enum.KeyCode.Z then
- local targ = m:InvokeClient(owner)
- if targ.Parent then
- if targ.Parent:FindFirstChild("Head") then
- for i=1,10 do
- local o = cf(targ.Parent.Head.Position + v3(rand(-1,1),0,rand(-1,1)), targ.Parent.Head.Position)
- local cr = o + o.LookVector * rand(-40,-20) + v3(0,-1.5,0)
- spawn(function()
- local beam = it("Part")
- beam.Color = col(0,0,0)
- beam.Transparency = 1
- beam.Material = "Neon"
- beam.Size = v3(0.05,0.05,(cr.Position - targ.Parent.Head.Position).magnitude)
- beam.CFrame = cf(cr.Position, targ.Parent.Head.Position) * cf(0,0,-(cr.Position - targ.Parent.Head.Position).magnitude/2)
- beam.Anchored = true
- beam.CanCollide = false
- beam.Parent = workspace
- local mesh = it("SpecialMesh",beam)
- mesh.MeshType = "Sphere"
- local beam0 = it("Part")
- beam0.Color = col(0,0,0)
- beam0.Transparency = 1
- beam0.Material = "Neon"
- beam0.Size = v3(0.05,0.05,0.05)
- beam0.CFrame = cf(cr.Position)
- beam0.Anchored = true
- beam0.CanCollide = false
- beam0.Parent = workspace
- local mesh0 = it("SpecialMesh",beam0)
- mesh0.MeshType = "Sphere"
- local beam1 = it("Part")
- beam1.Color = col(0,0,0)
- beam1.Transparency = 1
- beam1.Material = "Neon"
- beam1.Size = v3(0.05,0.05,0.05)
- beam1.CFrame = cf(targ.Parent.Head.Position)
- beam1.Anchored = true
- beam1.CanCollide = false
- beam1.Parent = workspace
- local mesh1 = it("SpecialMesh",beam1)
- mesh1.MeshType = "Sphere"
- for i=1,25 do
- beam.Transparency = beam.Transparency - 0.04
- beam.Size = beam.Size + Vector3.new(0.1,0.1,0)
- beam.CFrame = beam.CFrame + beam.CFrame.upVector * 0.02
- beam0.Transparency = beam0.Transparency - 0.04
- beam0.Size = beam0.Size + Vector3.new(0.3,0.3,0.3)
- beam0.CFrame = beam0.CFrame + beam0.CFrame.upVector * 0.02
- beam1.Transparency = beam1.Transparency - 0.04
- beam1.Size = beam1.Size + Vector3.new(0.3,0.3,0.3)
- beam1.CFrame = beam1.CFrame + beam1.CFrame.upVector * 0.02
- swait()
- end
- for i=1,25 do
- beam.Transparency = beam.Transparency + 0.04
- beam.Size = beam.Size + Vector3.new(0.05,0.05,0)
- beam.CFrame = beam.CFrame + beam.CFrame.upVector * 0.04
- beam0.Transparency = beam0.Transparency + 0.1
- beam0.Size = beam0.Size + Vector3.new(0.6,0.6,0.6)
- beam0.CFrame = beam0.CFrame + beam0.CFrame.upVector * 0.04
- beam1.Transparency = beam1.Transparency + 0.1
- beam1.Size = beam1.Size + Vector3.new(0.6,0.6,0.6)
- beam1.CFrame = beam1.CFrame + beam1.CFrame.upVector * 0.04
- swait()
- end
- beam:Destroy()
- beam0:Destroy()
- beam1:Destroy()
- if targ.Parent:FindFirstChildOfClass("Humanoid") then
- if targ.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 100000 then
- targ.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100000
- targ.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((targ.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/15)*(deathboost*healthboost))
- else
- targ.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage((targ.Parent:FindFirstChildOfClass("Humanoid").MaxHealth/15)*(deathboost*healthboost))
- end
- end
- end)
- wait(1)
- end
- end
- end
- elseif key == Enum.KeyCode.R then
- dashing = true
- local vel = it("BodyVelocity",torso)
- vel.MaxForce = v3(huge,huge,huge)
- vel.P = 3000
- local ray = Ray.new(torso.Position, torso.CFrame.Position + torso.CFrame.upVector * -1000)
- local part, pos = workspace:FindPartOnRayWithIgnoreList(ray,char:GetChildren())
- local range = (torso.Position-pos).magnitude
- if range > 4 then
- if speed > 3 then
- spawn(function()
- for i=1,10 do
- local part = it("Part")
- part.Size = v3(5,15,5)
- part.Name = "M0"
- part.CFrame = torso.CFrame * CFrame.Angles(rad(135),0,0)
- part.CanCollide = false
- part.Anchored = true
- part.Parent = workspace
- local mesh = it("SpecialMesh",part)
- mesh.MeshId = crownid
- mesh.Scale = part.Size
- spawn(function()
- for i=1,25 do
- part.Transparency = part.Transparency + 0.04
- swait()
- end
- part:Destroy()
- end)
- wait(0.05)
- end
- end)
- for i=1,10 do
- vel.Velocity = torso.CFrame.LookVector * (i*15) + torso.CFrame.upVector * (i*15)
- swait()
- end
- elseif speed < 3 then
- spawn(function()
- for i=1,10 do
- local part = it("Part")
- part.Size = v3(5,15,5)
- part.Name = "M0"
- part.CFrame = torso.CFrame * CFrame.Angles(rad(180),0,0)
- part.CanCollide = false
- part.Anchored = true
- part.Parent = workspace
- local mesh = it("SpecialMesh",part)
- mesh.MeshId = crownid
- mesh.Scale = part.Size
- spawn(function()
- for i=1,25 do
- part.Transparency = part.Transparency + 0.04
- swait()
- end
- part:Destroy()
- end)
- wait(0.05)
- end
- end)
- for i=1,10 do
- vel.Velocity = torso.CFrame.upVector * (i*30)
- swait()
- end
- end
- else
- spawn(function()
- for i=1,10 do
- local part = it("Part")
- part.Size = v3(5,15,5)
- part.Name = "M0"
- part.CFrame = torso.CFrame * CFrame.Angles(rad(90),0,0)
- part.CanCollide = false
- part.Anchored = true
- part.Parent = workspace
- local mesh = it("SpecialMesh",part)
- mesh.MeshId = crownid
- mesh.Scale = part.Size
- spawn(function()
- for i=1,25 do
- part.Transparency = part.Transparency + 0.04
- swait()
- end
- part:Destroy()
- end)
- wait(0.05)
- end
- end)
- for i=1,10 do
- if stop then
- --torso.Anchored = true
- --wait(0.2)
- --torso.Anchored = false
- vel.Velocity = -vel.Velocity
- wait(0.1)
- vel:Destroy()
- break
- end
- vel.Velocity = torso.CFrame.LookVector * (i*15)
- swait()
- end
- end
- for i=1,6 do
- if stop then
- --torso.Anchored = true
- --wait(0.2)
- --torso.Anchored = false
- vel.Velocity = -vel.Velocity
- wait(0.1)
- vel:Destroy()
- break
- end
- swait()
- end
- vel:Destroy()
- for i=1,60 do
- if stop then
- --torso.Anchored = true
- --wait(0.2)
- --torso.Anchored = false
- vel.Velocity = -vel.Velocity
- wait(0.1)
- vel:Destroy()
- break
- end
- swait()
- end
- dashing = false
- elseif key == Enum.KeyCode.T then
- superdashing = true
- local vel = it("BodyVelocity",torso)
- vel.MaxForce = v3(huge,huge,huge)
- vel.P = 3000
- local ray = Ray.new(torso.Position, torso.CFrame.Position + torso.CFrame.upVector * -1000)
- local part, pos = workspace:FindPartOnRayWithIgnoreList(ray,char:GetChildren())
- local range = (torso.Position-pos).magnitude
- if range > 4 then
- if speed > 3 then
- spawn(function()
- for i=1,10 do
- local part = it("Part")
- part.Size = v3(5,15,5)
- part.CFrame = torso.CFrame * CFrame.Angles(rad(135),0,0)
- part.Name = "M0"
- part.Color = Color3.fromHSV(0,1,1)
- part.CanCollide = false
- part.Anchored = true
- part.Parent = workspace
- local mesh = it("SpecialMesh",part)
- mesh.MeshId = crownid
- mesh.Scale = part.Size
- spawn(function()
- local o=0
- for i=1,25 do
- if o > 1 then
- o=0
- end
- part.Transparency = part.Transparency + 0.04
- mesh.Scale = mesh.Scale + v3(2,2,2)
- part.Color = Color3.fromHSV(o,1,1)
- o = o + 0.05
- swait()
- end
- part:Destroy()
- end)
- wait(0.025)
- end
- end)
- for i=1,10 do
- vel.Velocity = torso.CFrame.upVector * (i*80)
- swait()
- end
- elseif speed < 3 then
- spawn(function()
- for i=1,10 do
- local part = it("Part")
- part.Size = v3(5,15,5)
- part.CFrame = torso.CFrame * CFrame.Angles(rad(180),0,0)
- part.Name = "M0"
- part.Color = Color3.fromHSV(0,1,1)
- part.CanCollide = false
- part.Anchored = true
- part.Parent = workspace
- local mesh = it("SpecialMesh",part)
- mesh.MeshId = crownid
- mesh.Scale = part.Size
- spawn(function()
- local o=0
- for i=1,25 do
- if o > 1 then
- o=0
- end
- part.Transparency = part.Transparency + 0.04
- mesh.Scale = mesh.Scale + v3(2,2,2)
- part.Color = Color3.fromHSV(o,1,1)
- o = o + 0.05
- swait()
- end
- part:Destroy()
- end)
- wait(0.025)
- end
- end)
- for i=1,10 do
- vel.Velocity = torso.CFrame.upVector * (i*80)
- swait()
- end
- end
- else
- spawn(function()
- for i=1,10 do
- local part = it("Part")
- part.Size = v3(10,20,10)
- part.Name = "M0"
- part.CFrame = torso.CFrame * CFrame.Angles(rad(90),0,0)
- part.CanCollide = false
- part.Color = Color3.fromHSV(0,1,1)
- part.Anchored = true
- part.Parent = workspace
- local mesh = it("SpecialMesh",part)
- mesh.MeshId = crownid
- mesh.Scale = part.Size
- spawn(function()
- local o = 0
- for i=1,25 do
- if o > 1 then
- o=0
- end
- part.Transparency = part.Transparency + 0.04
- mesh.Scale = mesh.Scale + v3(0.5,0.5,0.5)
- part.Color = Color3.fromHSV(o,1,1)
- o = o + 0.05
- swait()
- end
- part:Destroy()
- end)
- wait(0.05)
- end
- end)
- for i=1,10 do
- if stop then
- vel.Velocity = -vel.Velocity
- wait(0.1)
- vel:Destroy()
- break
- end
- vel.Velocity = torso.CFrame.LookVector * (i*40)
- swait()
- end
- end
- for i=1,6 do
- if stop then
- vel.Velocity = -vel.Velocity
- wait(0.1)
- vel:Destroy()
- break
- end
- swait()
- end
- vel:Destroy()
- for i=1,60 do
- if stop then
- vel.Velocity = -vel.Velocity
- wait(0.02)
- vel:Destroy()
- break
- end
- swait()
- end
- superdashing = false
- elseif key == Enum.KeyCode.E and not blocking then
- blocking = true
- local shield0 = it("Part")
- shield0.Size = v3(5,5,1)
- shield0.CFrame = cf(torso.CFrame.Position + torso.CFrame.lookVector * 2,torso.Position)
- shield0.CanCollide = false
- shield0.Material = "Neon"
- shield0.Transparency = 1
- shield0.Color = Color3.fromHSV(0,1,1)
- shield0.Parent = workspace
- local shield1 = it("Part")
- shield1.Size = v3(5,5,1)
- shield1.CFrame = cf(torso.CFrame.Position + torso.CFrame.lookVector * -1.6 + torso.CFrame.rightVector * 2,torso.Position)
- shield1.CanCollide = false
- shield1.Material = "Neon"
- shield1.Transparency = 1
- shield1.Color = Color3.fromHSV(0,1,1)
- shield1.Parent = workspace
- local shield2 = it("Part")
- shield2.Size = v3(5,5,1)
- shield2.CFrame = cf(torso.CFrame.Position + torso.CFrame.lookVector * -1.6 + torso.CFrame.rightVector * -2,torso.Position)
- shield2.CanCollide = false
- shield2.Material = "Neon"
- shield2.Transparency = 1
- shield2.Color = Color3.fromHSV(0,1,1)
- shield2.Parent = workspace
- spawn(function()
- local o = 0
- while shield0 do
- if o > 1 then
- o = 0
- end
- shield0.Color = Color3.fromHSV(o,1,1)
- shield1.Color = Color3.fromHSV(o,1,1)
- shield2.Color = Color3.fromHSV(o,1,1)
- o = o + 0.01
- swait()
- end
- end)
- local vel0 = it("BodyVelocity",shield0)
- vel0.Velocity = shield0.CFrame.LookVector * -20 + Vector3.new(0,10,0)
- local vel1 = it("BodyVelocity",shield1)
- vel1.Velocity = shield1.CFrame.LookVector * -20 + Vector3.new(0,10,0)
- local vel2 = it("BodyVelocity",shield2)
- vel2.Velocity = shield2.CFrame.LookVector * -20 + Vector3.new(0,10,0)
- for i=1,10 do
- shield0.Transparency = shield0.Transparency - 0.1
- shield1.Transparency = shield1.Transparency - 0.1
- shield2.Transparency = shield2.Transparency - 0.1
- swait()
- end
- for i=1,50 do
- shield0.Transparency = shield0.Transparency + 0.02
- shield1.Transparency = shield1.Transparency + 0.02
- shield2.Transparency = shield2.Transparency + 0.02
- swait()
- end
- shield0:Destroy()
- shield1:Destroy()
- shield2:Destroy()
- blocking = false
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement