Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --custom chat by tomonaoboys (it will be my 2nd custom chat which has uploaded)
- function chatfunc(text)
- spawn(function()
- local rs=game:service'RunService'.RenderStepped
- local function sw(n)if n==nil then rs:wait()else for i=1,n do rs:wait()end end return true end
- local Character=game:service'Players'.LocalPlayer.Character local RootPart=Character.HumanoidRootPart
- local s=Instance.new("Sound",Character)s.SoundId="rbxassetid://418252437"s.Volume=2
- if Character:FindFirstChild("cht")then Character.cht:Destroy()end
- local b=Instance.new("BillboardGui",Character)b.AlwaysOnTop=true b.Adornee=RootPart b.StudsOffset=Vector3.new(0,4.5,0)b.Name="cht"
- local snum=text:len()b.Size=UDim2.new(snum/1.7,0,2,0)
- local texts={}
- for i=1,snum do
- texts[i]=Instance.new("TextLabel",b)
- texts[i].Size=UDim2.new(1/snum,0,1,0)texts[i].Name=text:sub(i,i)--texts[i].TextSize=30
- texts[i].Text=text:sub(i,i)texts[i].Position=UDim2.new((i-1)/snum,0,.3,0)texts[i].BackgroundTransparency=1 texts[i].TextColor3=Color3.new(255, 255, 0)
- texts[i].TextStrokeTransparency=1 texts[i].Font="Antique"texts[i].TextScaled=1 texts[i].TextTransparency=1
- end
- for i=1,#texts do
- if texts[i].Parent then
- texts[i].TextTransparency=0 texts[i].Rotation=math.random(-30,30)texts[i].TextStrokeTransparency=.6
- end
- if texts[i].Text~=" "then s:Play()end
- sw(3)
- end
- sw(60)
- for i=1,#texts do
- if texts[i].Parent then texts[i].Text="~"texts[i].Rotation=0 end
- end
- s.Volume=1 s.SoundId="rbxassetid://138093550"s:Play()s.Ended:connect(function()s:Destroy()b:Destroy()end)
- game:service'Debris':AddItem(b,5)
- end)
- end
- game:service'Players'.LocalPlayer.Chatted:connect(function(msg)chatfunc(game:service("Chat"):FilterStringAsync(msg,game:service'Players'.LocalPlayer,game:service'Players'.LocalPlayer))
- end)
- --//====================================================\\--
- --|| CREATED BY SHACKLUSTER
- --\\====================================================//--
- wait(0.2)
- Player = game:GetService("Players").LocalPlayer
- PlayerGui = Player.PlayerGui
- Cam = workspace.CurrentCamera
- Backpack = Player.Backpack
- Character = Player.Character
- Humanoid = Character.Humanoid
- Mouse = Player:GetMouse()
- RootPart = Character["HumanoidRootPart"]
- Torso = Character["Torso"]
- Head = Character["Head"]
- RightArm = Character["Right Arm"]
- LeftArm = Character["Left Arm"]
- RightLeg = Character["Right Leg"]
- LeftLeg = Character["Left Leg"]
- RootJoint = RootPart["RootJoint"]
- Neck = Torso["Neck"]
- RightShoulder = Torso["Right Shoulder"]
- LeftShoulder = Torso["Left Shoulder"]
- RightHip = Torso["Right Hip"]
- LeftHip = Torso["Left Hip"]
- local sick = Instance.new("Sound",Character)
- sick.SoundId = "rbxassetid://277784505"
- sick.Looped = true
- sick.Pitch = 1
- sick.Volume = 1
- sick:Play()
- NUMBEROPARTS = 16
- local naeeym2 = Instance.new("BillboardGui",Character)
- naeeym2.AlwaysOnTop = true
- naeeym2.Size = UDim2.new(5,35,2,35)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = Character.Head
- naeeym2.Name = "Name"
- --naeeym2.PlayerToHideFrom = Player
- naeeym2.MaxDistance = 200
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.TextScaled = true
- tecks2.BorderSizePixel = 0
- tecks2.Text = "Miniix15/ Pain"
- tecks2.Font = "SciFi"
- tecks2.TextSize = 30
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(255, 255, 0)
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- tecks2.Parent = naeeym2
- IT = Instance.new
- CF = CFrame.new
- VT = Vector3.new
- RAD = math.rad
- C3 = Color3.new
- UD2 = UDim2.new
- BRICKC = BrickColor.new
- ANGLES = CFrame.Angles
- EULER = CFrame.fromEulerAnglesXYZ
- COS = math.cos
- ACOS = math.acos
- SIN = math.sin
- ASIN = math.asin
- ABS = math.abs
- MRANDOM = math.random
- FLOOR = math.floor
- function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
- local NEWMESH = IT(MESH)
- if MESH == "SpecialMesh" then
- NEWMESH.MeshType = MESHTYPE
- if MESHID ~= "nil" and MESHID ~= "" then
- NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
- end
- if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
- NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
- end
- end
- NEWMESH.Offset = OFFSET or VT(0, 0, 0)
- NEWMESH.Scale = SCALE
- NEWMESH.Parent = PARENT
- return NEWMESH
- end
- function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
- local NEWPART = IT("Part")
- NEWPART.formFactor = FORMFACTOR
- NEWPART.Reflectance = REFLECTANCE
- NEWPART.Transparency = TRANSPARENCY
- NEWPART.CanCollide = false
- NEWPART.Locked = true
- NEWPART.Anchored = true
- if ANCHOR == false then
- NEWPART.Anchored = false
- end
- NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
- NEWPART.Name = NAME
- NEWPART.Size = SIZE
- NEWPART.Position = Torso.Position
- NEWPART.Material = MATERIAL
- NEWPART:BreakJoints()
- NEWPART.Parent = PARENT
- return NEWPART
- end
- --//=================================\\
- --|| CUSTOMIZATION
- --\\=================================//
- Player_Size = 1 --Size of the player.
- Animation_Speed = 3
- Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
- local Speed = 16
- local Effects2 = {}
- --//=================================\\
- --|| END OF CUSTOMIZATION
- --\\=================================//
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
- local acs = Instance.new("Part")
- acs.CanCollide = false
- acs.Anchored = false
- acs.Size = Vector3.new(0,0,0)
- acs.CFrame = attachmentpart.CFrame
- acs.Parent = Character
- acs.BrickColor = color
- local meshs = Instance.new("SpecialMesh")
- meshs.MeshId = mesh
- meshs.TextureId = texture
- meshs.Parent = acs
- meshs.Scale = scale
- meshs.Offset = offset
- weldBetween(attachmentpart,acs)
- end
- function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
- if TYPE == "Gem" then
- local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0))
- acs.Anchored = false
- acs.CanCollide = false
- acs.CFrame = PART.CFrame
- local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
- weldBetween(PART,acs)
- elseif TYPE == "Skull" then
- local acs = CreatePart(3, Character, "Marble", 0, 0, "Pearl", "Part", VT(0,0,0))
- acs.Anchored = false
- acs.CanCollide = false
- acs.CFrame = PART.CFrame
- local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
- weldBetween(PART,acs)
- elseif TYPE == "Eye" then
- local acs = CreatePart(3, Character, "Neon", 0, 0, "Navy blue", "Part", VT(0,0,0))
- acs.Anchored = false
- acs.CanCollide = false
- acs.CFrame = PART.CFrame
- local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
- weldBetween(PART,acs)
- end
- end
- --//=================================\\
- --|| USEFUL VALUES
- --\\=================================//
- local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
- local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
- local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
- local CHANGEDEFENSE = 0
- local CHANGEDAMAGE = 0
- local CHANGEMOVEMENT = 0
- local ANIM = "Idle"
- local ATTACK = false
- local EQUIPPED = false
- local HOLD = false
- local COMBO = 1
- local Rooted = false
- local SINE = 0
- local KEYHOLD = false
- local CHANGE = 2 / Animation_Speed
- local WALKINGANIM = false
- local WALK = 0
- local VALUE1 = false
- local VALUE2 = false
- local ROBLOXIDLEANIMATION = IT("Animation")
- ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
- ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
- --ROBLOXIDLEANIMATION.Parent = Humanoid
- local WEAPONGUI = IT("ScreenGui", PlayerGui)
- WEAPONGUI.Name = "Weapon GUI"
- local Weapon = IT("Model")
- Weapon.Name = "Adds"
- local Effects = IT("Folder", Weapon)
- Effects.Name = "Effects"
- local ANIMATOR = Humanoid.Animator
- local ANIMATE = Character.Animate
- local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
- local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
- local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
- local HITBLOCKSOUNDS = {"199148933", "199148947"}
- local UNANCHOR = true
- local SKILLTEXTCOLOR = C3(255, 255, 0)
- --//=================================\\
- --\\=================================//
- --//=================================\\
- --|| SAZERENOS' ARTIFICIAL HEARTBEAT
- --\\=================================//
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "ArtificialHB"
- script:WaitForChild("ArtificialHB")
- frame = Frame_Speed
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.ArtificialHB:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.ArtificialHB:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.ArtificialHB:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- --//=================================\\
- --\\=================================//
- --//=================================\\
- --|| SOME FUNCTIONS
- --\\=================================//
- function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
- return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
- end
- function PositiveAngle(NUMBER)
- if NUMBER >= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function NegativeAngle(NUMBER)
- if NUMBER <= 0 then
- NUMBER = 0
- end
- return NUMBER
- end
- function Swait(NUMBER)
- if NUMBER == 0 or NUMBER == nil then
- ArtificialHB.Event:wait()
- else
- for i = 1, NUMBER do
- ArtificialHB.Event:wait()
- end
- end
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5 / s
- return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00 - m11 - m22 + 1)
- local recip = 0.5 / s
- return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
- elseif i == 1 then
- local s = math.sqrt(m11 - m22 - m00 + 1)
- local recip = 0.5 / s
- return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
- elseif i == 2 then
- local s = math.sqrt(m22 - m00 - m11 + 1)
- local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w * xs, w * ys, w * zs
- local xx = x * xs
- local xy = x * ys
- local xz = x * zs
- local yy = y * ys
- local yz = y * zs
- local zz = z * zs
- return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = ACOS(cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((1 - t) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- else
- if (1 + cosTheta) > 0.0001 then
- local theta = ACOS(-cosTheta)
- local invSinTheta = 1 / SIN(theta)
- startInterp = SIN((t - 1) * theta) * invSinTheta
- finishInterp = SIN(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- end
- end
- return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
- end
- function Clerp(a, b, t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1 - t
- return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
- end
- function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
- local frame = IT("Frame")
- frame.BackgroundTransparency = TRANSPARENCY
- frame.BorderSizePixel = BORDERSIZEPIXEL
- frame.Position = POSITION
- frame.Size = SIZE
- frame.BackgroundColor3 = COLOR
- frame.BorderColor3 = BORDERCOLOR
- frame.Name = NAME
- frame.Parent = PARENT
- return frame
- end
- function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
- local label = IT("TextLabel")
- label.BackgroundTransparency = 1
- label.Size = UD2(1, 0, 1, 0)
- label.Position = UD2(0, 0, 0, 0)
- label.TextColor3 = TEXTCOLOR
- label.TextStrokeTransparency = STROKETRANSPARENCY
- label.TextTransparency = TRANSPARENCY
- label.FontSize = TEXTFONTSIZE
- label.Font = TEXTFONT
- label.BorderSizePixel = BORDERSIZEPIXEL
- label.TextScaled = false
- label.Text = TEXT
- label.Name = NAME
- label.Parent = PARENT
- return label
- end
- function NoOutlines(PART)
- PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
- local NEWWELD = IT(TYPE)
- NEWWELD.Part0 = PART0
- NEWWELD.Part1 = PART1
- NEWWELD.C0 = C0
- NEWWELD.C1 = C1
- NEWWELD.Parent = PARENT
- return NEWWELD
- end
- function CreateSound(ID, PARENT, VOLUME, PITCH)
- local NEWSOUND = nil
- coroutine.resume(coroutine.create(function()
- NEWSOUND = IT("Sound", PARENT)
- NEWSOUND.Volume = VOLUME
- NEWSOUND.Pitch = PITCH
- NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
- Swait()
- NEWSOUND:play()
- game:GetService("Debris"):AddItem(NEWSOUND, 10)
- end))
- return NEWSOUND
- end
- function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
- end
- function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
- local mesh = IT("SpecialMesh",wave)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
- mesh.Scale = SIZE
- wave.CFrame = CFRAME
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale + GROW
- mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
- if DOESROT == true then
- wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
- end
- wave.Transparency = wave.Transparency + (0.5/WAIT)
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function CreateTornado(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
- local mesh = IT("SpecialMesh",wave)
- mesh.MeshType = "FileMesh"
- mesh.MeshId = "http://www.roblox.com/asset/?id=102638417"
- mesh.Scale = SIZE
- wave.CFrame = CFRAME
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale + GROW
- if DOESROT == true then
- wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
- end
- wave.Transparency = wave.Transparency + (0.5/WAIT)
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
- local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
- wave.CFrame = CFRAME
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale * GROW
- wave.Transparency = wave.Transparency + (0.5/WAIT)
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
- local mesh = IT("SpecialMesh",wave)
- mesh.MeshType = "Sphere"
- mesh.Scale = SIZE
- mesh.Offset = VT(0,0,0)
- wave.CFrame = CFRAME
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale + GROW
- wave.Transparency = wave.Transparency + (1/WAIT)
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function MagicBlock(SIZE,WAIT,CFRAME,COLOR,GROW)
- local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(SIZE,SIZE,SIZE), true)
- local mesh = IT("BlockMesh",wave)
- wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
- coroutine.resume(coroutine.create(function(PART)
- for i = 1, WAIT do
- Swait()
- mesh.Scale = mesh.Scale + GROW
- wave.CFrame = CFRAME * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360)))
- wave.Transparency = wave.Transparency + (1/WAIT)
- if wave.Transparency > 0.99 then
- wave:remove()
- end
- end
- end))
- end
- function MakeForm(PART,TYPE)
- if TYPE == "Cyl" then
- local MSH = IT("CylinderMesh",PART)
- elseif TYPE == "Ball" then
- local MSH = IT("SpecialMesh",PART)
- MSH.MeshType = "Sphere"
- elseif TYPE == "Wedge" then
- local MSH = IT("SpecialMesh",PART)
- MSH.MeshType = "Wedge"
- end
- end
- function CheckTableForString(Table, String)
- for i, v in pairs(Table) do
- if string.find(string.lower(String), string.lower(v)) then
- return true
- end
- end
- return false
- end
- function CheckIntangible(Hit)
- local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
- if Hit and Hit.Parent then
- if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
- return true
- end
- end
- return false
- end
- Debris = game:GetService("Debris")
- function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
- local Direction = CFrame.new(StartPos, Vec).lookVector
- local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
- local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
- if RayHit and CheckIntangible(RayHit) then
- if DelayIfHit then
- wait()
- end
- RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
- end
- return RayHit, RayPos, RayNormal
- end
- function turnto(position)
- RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
- end
- --//=================================\\
- --|| WEAPON CREATION
- --\\=================================//
- function GloballyWeldTo(Part,WhatModelToWeld)
- for _, c in pairs(WhatModelToWeld:GetChildren()) do
- if c.ClassName == "Part" then
- weldBetween(c,Part)
- c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
- end
- end
- end
- local ORBHOLDER = IT("Model",Weapon)
- ORBHOLDER.Name = "Zen orbs"
- local Orbs = {}
- local AvailableOrbs = {}
- local ORBCOUNT = 16
- for i = 1, ORBCOUNT do
- local POSITION = RootPart.CFrame*ANGLES(RAD(0),RAD(0),RAD(i*(360/ORBCOUNT)))*CF(0,2.5,1.5).p
- local Part = CreatePart(3, ORBHOLDER, "Neon", 0, 0, "Electric blue", "Zen orb "..i, VT(1,1,1),false)
- MakeForm(Part,"Ball")
- local grav = Instance.new("BodyPosition",Part)
- grav.P = 20000
- grav.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- grav.position = POSITION
- grav.Name = "GravityForce"
- grav.D = 1400
- local VALUE = IT("NumberValue",Part)
- VALUE.Name = "ItemValue"
- VALUE.Value = i
- table.insert(Orbs,{Part,grav})
- table.insert(AvailableOrbs,Part)
- end
- local BONES = IT("Model",Character)
- BONES.Name = "Internal skeleton"
- --Internal skeleton--
- local BONE = IT("Model",BONES)
- BONE.Name = "Right Arm"
- local LIMB = RightArm
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.8,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.4,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,-0.4,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,-0.8,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.6,1.75,0.6),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
- GloballyWeldTo(LIMB,BONE)
- --LIMB.Transparency = 1
- local BONE = IT("Model",BONES)
- BONE.Name = "Left Arm"
- local LIMB = LeftArm
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.8,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.4,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,-0.4,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,-0.8,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.6,1.75,0.6),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
- GloballyWeldTo(LIMB,BONE)
- --LIMB.Transparency = 1
- local BONE = IT("Model",BONES)
- BONE.Name = "Right Leg"
- local LIMB = RightLeg
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.8,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.4,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,-0.4,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,-0.8,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.6,1.75,0.6),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
- GloballyWeldTo(LIMB,BONE)
- --LIMB.Transparency = 1
- local BONE = IT("Model",BONES)
- BONE.Name = "Left Leg"
- local LIMB = LeftLeg
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.8,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.4,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.8,0.2,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,-0.4,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.95,0.2,0.95),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,-0.8,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.6,1.75,0.6),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0,0)
- GloballyWeldTo(LIMB,BONE)
- ---LIMB.Transparency = 1
- local BONE = IT("Model",BONES)
- BONE.Name = "Torso"
- local LIMB = Torso
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.9),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,-0.85,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.8,0.35)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.8,-0.35)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.5,0.35)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.5,-0.35)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.2,0.35)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.2,-0.35)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,-0.1,0.35)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,-0.1,-0.35)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,-0.4,0.35)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(1.95,0.18,0.18),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,-0.4,-0.35)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0.9,0.8,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(-0.9,0.8,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0.9,0.5,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(-0.9,0.5,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0.9,0.2,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(-0.9,0.2,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0.9,-0.1,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(-0.9,-0.1,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(0.9,-0.4,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.18,0.18,0.8),false)
- BONE2.CFrame = LIMB.CFrame*CF(-0.9,-0.4,0)
- local BONE2 = CreatePart(3, BONE, "Marble", 0, 0, "Pearl", "Bone", VT(0.3,1.8,0.3),false)
- BONE2.CFrame = LIMB.CFrame*CF(0,0.1,0.32)
- GloballyWeldTo(LIMB,BONE)
- --LIMB.Transparency = 1
- local BONE = IT("Model",BONES)
- BONE.Name = "Head"
- local SKULL = IT("Part",BONE)
- SKULL.CFrame = Head.CFrame
- SKULL.Color = C3(0.75,0.75,0.75)
- CreateMesh("SpecialMesh", SKULL, "FileMesh", "4770583", "", VT(2.1, 2.8, 2.1), VT(0,0,0))
- SKULL.Size = Head.Size
- SKULL.Name = "Skull"
- SKULL.Size = VT(1,1,1)
- weldBetween(Head,SKULL)
- ---------------------
- Weapon.Parent = Character
- for _, r in pairs(Character:GetChildren()) do
- r.Changed:connect(function()
- for _, c in pairs(BONES:GetChildren()) do
- if Character:FindFirstChild(c.Name) == nil then
- for _, e in pairs(c:GetChildren()) do
- e.Anchored = true
- end
- end
- end
- end)
- end
- local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
- local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
- local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
- local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Zen arrows [3]", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 1")
- local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Zen castle [5]", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 2")
- local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Zen outbreak [ALL]", SKILLTEXTCOLOR, 7, "Garamond", 0, 2, 1, "Text 3")
- --//=================================\\
- --|| DAMAGE FUNCTIONS
- --\\=================================//
- function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
- local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
- STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
- local BODYGYRO = IT("BodyGyro", STATPART)
- local BODYPOSITION = IT("BodyPosition", STATPART)
- BODYPOSITION.P = 2000
- BODYPOSITION.D = 100
- BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
- BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
- game:GetService("Debris"):AddItem(STATPART ,5)
- local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
- BILLBOARDGUI.Adornee = STATPART
- BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
- BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
- BILLBOARDGUI.AlwaysOnTop = false
- local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
- TEXTLABEL.BackgroundTransparency = 1
- TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
- TEXTLABEL.Text = TEXT
- TEXTLABEL.Font = "SciFi"
- TEXTLABEL.FontSize="Size42"
- TEXTLABEL.TextColor3 = COLOR
- TEXTLABEL.TextStrokeTransparency = 1
- TEXTLABEL.TextScaled = true
- TEXTLABEL.TextWrapped = true
- coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
- if LABELTYPE == "Normal" then
- for i = 1, 30 do
- Swait()
- STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
- TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
- end
- elseif LABELTYPE == "Debuff" then
- for i = 1, 30 do
- Swait()
- STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
- TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
- end
- elseif LABELTYPE == "Shock" then
- local ORIGIN = STATPART.Position
- for i = 1, 30 do
- Swait()
- STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
- TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
- end
- end
- THEPART.Parent = nil
- end),STATPART, BODYPOSITION, TEXTLABEL)
- end
- --//=================================\\
- --|| DAMAGING
- --\\=================================//
- function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier)
- local defence = Instance.new("BoolValue",Humanoid.Parent)
- defence.Name = ("HitBy"..Player.Name)
- game:GetService("Debris"):AddItem(defence, 0.001)
- if Humanoid.Health ~= 0 then
- local CritChance = MRANDOM(1,100)
- if CritChance < CritRate + 1 then
- Damage = Damage*CritMultiplier
- end
- if Damage > Humanoid.Health then
- Damage = math.ceil(Humanoid.Health)
- if Damage == 0 then
- Damage = 0.1
- end
- end
- Humanoid.Health = Humanoid.Health - Damage
- if Humanoid.Parent:FindFirstChild("Head") then
- if CritChance < CritRate + 1 then
- StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
- else
- StatLabel("Normal", Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
- end
- end
- end
- end
- function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,CanBeDodgedByJumping)
- local dmg = math.random(min,max)
- for i,v in ipairs(workspace:GetChildren()) do
- if v:FindFirstChild("HitBy"..Player.Name) == nil then
- local body = v:GetChildren()
- for part = 1, #body do
- if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
- if(body[part].Position - position).Magnitude < radius then
- if v.ClassName == "Model" then
- if v:FindFirstChildOfClass("Humanoid") then
- if CanBeDodgedByJumping == true then
- if body[part].Position.Y < position.Y+5 then
- ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
- end
- else
- ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier)
- end
- local bv = Instance.new("BodyVelocity")
- bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
- bv.velocity = RootPart.CFrame.lookVector*maxstrength
- bv.Parent = body[part]
- Debris:AddItem(bv,0.2)
- end
- end
- end
- end
- end
- end
- if v:FindFirstChild("HitBy"..Player.Name) then
- v:FindFirstChild("HitBy"..Player.Name):remove()
- end
- end
- end
- --//=================================\\
- --|| ATTACK FUNCTIONS AND STUFF
- --\\=================================//
- function Dissapear()
- for i = 1, 10 do
- Swait()
- for _, c in pairs(Character:GetChildren()) do
- if c.ClassName == "Part" then
- c.Transparency = c.Transparency + 0.1
- elseif c.ClassName == "Accessory" or c.ClassName == "Hat" then
- c.Handle.Transparency = c.Handle.Transparency + 0.1
- end
- end
- end
- end
- function Appear()
- for i = 1, 10 do
- Swait()
- for _, c in pairs(Character:GetChildren()) do
- if c.ClassName == "Part" then
- c.Transparency = c.Transparency - 0.1
- elseif c.ClassName == "Accessory" or c.ClassName == "Hat" then
- c.Handle.Transparency = c.Handle.Transparency - 0.1
- end
- end
- end
- end
- function OrbFade(Orb,FadeInOrOut)
- if FadeInOrOut == "In" then
- for i = 1, 10 do
- Swait()
- Orb.Transparency = Orb.Transparency + 0.1
- end
- elseif FadeInOrOut == "Out" then
- for i = 1, 10 do
- Swait()
- Orb.Transparency = Orb.Transparency - 0.1
- end
- end
- end
- function ClickAttack()
- if #AvailableOrbs > 0 then
- Swait()
- local ORB = AvailableOrbs[MRANDOM(1,#AvailableOrbs)]
- local NUMBER = ORB.ItemValue.Value
- table.remove(AvailableOrbs,NUMBER)
- table.remove(Orbs,NUMBER)
- ATTACK = true
- Rooted = false
- local POS = Mouse.Hit.p
- ORB.GravityForce.position = POS
- if COMBO == 1 then
- COMBO = 2
- for i=0, 0.3, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.75 * COS(SINE / 35)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.2 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(-90)), 0.2 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, 0) * ANGLES(RAD(35), RAD(0), RAD(15)) * LEFTSHOULDERC0, 2 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(90), RAD(-5), RAD(40)), 0.2 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(90), RAD(25), RAD(-35)), 0.2 / Animation_Speed)
- end
- elseif COMBO == 2 then
- COMBO = 1
- for i=0, 0.3, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.75 * COS(SINE / 35)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.2 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(90)), 0.2 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(-20)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, 0) * ANGLES(RAD(90), RAD(0), RAD(-75)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(90), RAD(-5), RAD(40)), 0.2 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(90), RAD(25), RAD(-35)), 0.2 / Animation_Speed)
- end
- end
- coroutine.resume(coroutine.create(function()
- local DIST = nil
- repeat
- Swait()
- DIST = (POS - ORB.Position).Magnitude
- until DIST < 1
- CreateSound("314970772", ORB, 3, 2)
- for i = 1, 15 do
- Slice(0.3,15,ORB.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Pearl",1.15)
- end
- AoEDamage(ORB.Position,10,15,22,5,2,2,false)
- MagicSphere(VT(0,0,0),15,ORB.CFrame,"Pearl",VT(1,1,1))
- OrbFade(ORB,"In")
- Swait(200)
- ORB.CFrame = Torso.CFrame
- ORB.GravityForce.Position = Torso.Position
- ORB.Transparency = 0
- table.insert(AvailableOrbs,ORB)
- table.insert(Orbs,{ORB,ORB.GravityForce})
- end))
- ATTACK = false
- Rooted = false
- end
- end
- function ZenArrow()
- if #AvailableOrbs >= 3 then
- ATTACK = true
- VALUE1 = true
- Rooted = true
- local COLLECTEDORBS = {}
- coroutine.resume(coroutine.create(function()
- for i = 1, 3 do
- local ORB = AvailableOrbs[MRANDOM(1,#AvailableOrbs)]
- local NUMBER = ORB.ItemValue.Value
- table.remove(AvailableOrbs,NUMBER)
- table.remove(Orbs,NUMBER)
- table.insert(COLLECTEDORBS,ORB)
- MagicSphere(VT(0,0,0),15,ORB.CFrame,"Pearl",VT(0.3,0.3,0.3))
- Swait(5)
- end
- end))
- for i = 1, 50 do
- Swait()
- turnto(Mouse.Hit.p)
- end
- coroutine.resume(coroutine.create(function()
- local STARTPOS = RootPart.CFrame*CF(0,0,-3)
- for e = 1, #COLLECTEDORBS do
- if COLLECTEDORBS[e]~=nil then
- local Thing=COLLECTEDORBS[e]
- if Thing~=nil then
- local Part=Thing
- Part.GravityForce.Position = RootPart.CFrame*CF(0,0,0)*ANGLES(RAD(0),RAD(0),RAD(e*(360/#COLLECTEDORBS)))*CF(0,1.5,-3).p
- end
- end
- end
- Swait(80)
- for i = 1, 50 do
- Swait()
- MagicBlock(0.5,15,STARTPOS,"Pearl",VT(0.3,0.3,0.3))
- end
- for i = 1, 30 do
- Swait()
- MagicBlock(0.5,15,STARTPOS,"Pearl",VT(0.3,0.3,0.3))
- coroutine.resume(coroutine.create(function()
- local FIRE = CreatePart(3, Effects, "Neon", 0, 0, "Pearl", "Arrow", VT(0.05,0.05,2))
- FIRE.CFrame = STARTPOS*CF(0,0,-0.25)*ANGLES(RAD(MRANDOM(-2,2)),RAD(MRANDOM(-25,25)),RAD(0))
- for i = 1, 150 do
- Swait()
- --Slice(0.2,15,FIRE.CFrame*CF(0,-0.25,-1.5)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),COLORS[MRANDOM(1,#COLORS)],1.15)
- FIRE.CFrame = FIRE.CFrame*CF(0,0,-2)
- local HIT = Raycast(FIRE.Position, FIRE.CFrame.lookVector, 3, Character)
- if HIT ~= nil then
- break
- end
- end
- CreateSound("314970772", FIRE, 3, 2)
- FIRE.Transparency = 1
- Debris:AddItem(FIRE,5)
- for i = 1, 15 do
- Slice(0.2,15,FIRE.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Pearl",1.15)
- end
- AoEDamage(FIRE.Position,5,35,42,5,2,2,false)
- MagicSphere(VT(0,0,0),15,FIRE.CFrame,"Pearl",VT(0.5,0.5,0.5))
- end))
- end
- Swait(150)
- for e = 1, #COLLECTEDORBS do
- if COLLECTEDORBS[e]~=nil then
- local Thing=COLLECTEDORBS[e]
- if Thing~=nil then
- table.insert(AvailableOrbs,Thing)
- table.insert(Orbs,{Thing,Thing.GravityForce})
- end
- end
- end
- print(#AvailableOrbs)
- end))
- Swait(100)
- ATTACK = false
- Rooted = false
- VALUE1 = false
- end
- end
- function ZenCastle()
- if #AvailableOrbs >= 5 then
- ATTACK = true
- VALUE1 = true
- Rooted = false
- local COLLECTEDORBS = {}
- for i = 1, 5 do
- local ORB = AvailableOrbs[MRANDOM(1,#AvailableOrbs)]
- local NUMBER = ORB.ItemValue.Value
- table.remove(AvailableOrbs,NUMBER)
- table.remove(Orbs,NUMBER)
- table.insert(COLLECTEDORBS,ORB)
- MagicSphere(VT(0,0,0),15,ORB.CFrame,"Pearl",VT(0.3,0.3,0.3))
- Swait(5)
- end
- coroutine.resume(coroutine.create(function()
- for e = 1, #COLLECTEDORBS do
- if COLLECTEDORBS[e]~=nil then
- local Thing=COLLECTEDORBS[e]
- if Thing~=nil then
- local Part=Thing
- Part.GravityForce.Position = RootPart.CFrame*CF(0,0,0)*ANGLES(RAD(90),RAD(0),RAD(e*(360/#COLLECTEDORBS)))*CF(0,15,0).p
- end
- end
- end
- Swait(80)
- for i = 1, 50 do
- Swait()
- for e = 1, #COLLECTEDORBS do
- if COLLECTEDORBS[e]~=nil then
- local Thing=COLLECTEDORBS[e]
- if Thing~=nil then
- local Part=Thing
- Part.Size = Part.Size * 1.03
- MagicSphere(VT(0,0,0),15,CF(Part.Position),"Pearl",VT(0.02,8,0.02))
- end
- end
- end
- end
- for e = 1, #COLLECTEDORBS do
- if COLLECTEDORBS[e]~=nil then
- local Thing=COLLECTEDORBS[e]
- if Thing~=nil then
- local Part=Thing
- local BOOM = Part:Clone()
- BOOM.Parent = Effects
- CreateSound("314970772", BOOM, 3, 1.7)
- coroutine.resume(coroutine.create(function()
- for i = 1, 50 do
- Swait()
- BOOM.Size = BOOM.Size * 0.9
- end
- BOOM.Transparency = 1
- Debris:AddItem(BOOM,2)
- end))
- for i = 1, 25 do
- Slice(0.7,25,Part.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Pearl",1.05)
- end
- AoEDamage(Part.Position,25,15,22,5,2,2,false)
- MagicSphere(VT(0,0,0),15,Part.CFrame,"Pearl",VT(3,3,3))
- Part.Size = VT(1,1,1)
- CreateSwirl(VT(35,0,35),35,CF(Part.Position),true,4,"Pearl",VT(0.2,1,0.2))
- end
- end
- end
- Swait(25)
- for e = 1, #COLLECTEDORBS do
- if COLLECTEDORBS[e]~=nil then
- local Thing=COLLECTEDORBS[e]
- if Thing~=nil then
- table.insert(AvailableOrbs,Thing)
- table.insert(Orbs,{Thing,Thing.GravityForce})
- end
- end
- end
- print(#AvailableOrbs)
- end))
- ATTACK = false
- Rooted = false
- VALUE1 = false
- end
- end
- function ZenOutbreak()
- if #AvailableOrbs == 16 then
- local COLLECTEDORBS = AvailableOrbs
- Orbs = {}
- AvailableOrbs = {}
- ATTACK = true
- Rooted = true
- for i=0, 1, 0.1 / Animation_Speed do
- Swait()
- RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.75 * COS(SINE / 35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, 0) * ANGLES(RAD(90), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(90), RAD(-5), RAD(40)), 0.2 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(90), RAD(25), RAD(-35)), 0.2 / Animation_Speed)
- end
- for e = 1, #COLLECTEDORBS do
- if COLLECTEDORBS[e]~=nil then
- local Thing=COLLECTEDORBS[e]
- if Thing~=nil then
- local Part=Thing
- Part.GravityForce.Position = Torso.Position
- end
- end
- end
- Swait(100)
- Dissapear()
- for e = 1, #COLLECTEDORBS do
- if COLLECTEDORBS[e]~=nil then
- local Thing=COLLECTEDORBS[e]
- if Thing~=nil then
- local Part=Thing
- MagicSphere(VT(0,0,0),65,Part.CFrame,"Pearl",VT(0.3,0.3,0.3))
- MagicSphere(VT(0.2,0.2,0.2),150,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Pearl",VT(0.005,0.005,1),0)
- MagicSphere(VT(0.2,0.2,0.2),150,CF(Torso.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,Torso.Position),"Pearl",VT(0.005,0.005,1),0)
- OrbFade(Thing,"In")
- end
- end
- end
- for i = 1, 25 do
- Slice(0.7,65,RootPart.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Pearl",1.05)
- end
- local SOUND = CreateSound("314970772", RootPart, 10, 1)
- CreateSound("414517163", RootPart, 10, 1)
- IT("EchoSoundEffect",SOUND)
- AoEDamage(RootPart.Position,125,85,125,5,2,2,false)
- MagicSphere(VT(0,0,0),55,RootPart.CFrame,"Pearl",VT(3,3,3))
- MagicSphere(VT(0.3,0.3,0.3),45,RootPart.CFrame,"Really black",VT(3,3,3))
- CreateSwirl(VT(85,0,85),35,CF(RootPart.Position),true,-4,"Pearl",VT(0.2,3,0.2))
- CreateSwirl(VT(100,0,100),65,CF(RootPart.Position),true,4,"Pearl",VT(0.2,3,0.2))
- CreateTornado(VT(0,100,0),true,-2,65,CF(RootPart.Position),"Pearl",VT(2,0,2))
- Swait(300)
- Appear()
- coroutine.resume(coroutine.create(function()
- Swait(250)
- for _, c in pairs(ORBHOLDER:GetChildren()) do
- if c.ClassName == "Part" then
- c.CFrame = Torso.CFrame
- c.GravityForce.Position = Torso.Position
- c.Transparency = 0
- table.insert(AvailableOrbs,c)
- table.insert(Orbs,{c,c.GravityForce})
- Swait(75)
- end
- end
- end))
- ATTACK = false
- Rooted = false
- end
- end
- function Taunt()
- if #AvailableOrbs > 0 then
- Swait()
- local ORB = AvailableOrbs[MRANDOM(1,#AvailableOrbs)]
- local NUMBER = ORB.ItemValue.Value
- table.remove(AvailableOrbs,NUMBER)
- table.remove(Orbs,NUMBER)
- ATTACK = true
- Rooted = true
- CreateSound("649634100", Torso, 10, 0.8)
- for i=0, 3, 0.1 / Animation_Speed do
- Swait()
- ORB.GravityForce.position = Torso.CFrame*CF(0,1,-2).p
- RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.75 * COS(SINE / 35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(25)) * LEFTSHOULDERC0, 0.3 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(90), RAD(-5), RAD(40)), 0.2 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(90), RAD(25), RAD(-35)), 0.2 / Animation_Speed)
- end
- coroutine.resume(coroutine.create(function()
- table.insert(AvailableOrbs,ORB)
- table.insert(Orbs,{ORB,ORB.GravityForce})
- end))
- ATTACK = false
- Rooted = false
- end
- end
- --//=================================\\
- --|| ASSIGN THINGS TO KEYS
- --\\=================================//
- function MouseDown(Mouse)
- if ATTACK == false then
- ClickAttack()
- end
- end
- function MouseUp(Mouse)
- HOLD = false
- end
- function KeyDown(Key)
- KEYHOLD = true
- if Key == "z" and ATTACK == false then
- ZenArrow()
- end
- if Key == "b" and ATTACK == false then
- ZenCastle()
- end
- if Key == "c" and ATTACK == false then
- ZenOutbreak()
- end
- if Key == "t" and ATTACK == false then
- Taunt()
- end
- end
- function KeyUp(Key)
- KEYHOLD = false
- end
- Mouse.Button1Down:connect(function(NEWKEY)
- MouseDown(NEWKEY)
- end)
- Mouse.Button1Up:connect(function(NEWKEY)
- MouseUp(NEWKEY)
- end)
- Mouse.KeyDown:connect(function(NEWKEY)
- KeyDown(NEWKEY)
- end)
- Mouse.KeyUp:connect(function(NEWKEY)
- KeyUp(NEWKEY)
- end)
- --//=================================\\
- --\\=================================//
- function unanchor()
- if UNANCHOR == true then
- g = Character:GetChildren()
- for i = 1, #g do
- if g[i].ClassName == "Part" then
- g[i].Anchored = false
- end
- end
- end
- end
- --//=================================\\
- --|| WRAP THE WHOLE SCRIPT UP
- --\\=================================//
- Humanoid.Changed:connect(function(Jump)
- if Jump == "Jump" and (Disable_Jump == true) then
- Humanoid.Jump = false
- end
- end)
- Humanoid.HipHeight = 1
- local Part = CreatePart(3, Character, "Neon", 0, 0, "Pearl", "Eon", VT(0.1,0.2,0.1),false)
- CreateWeldOrSnapOrMotor("Weld", Head, Head, Part, CF(-0.2, 0.2, -0.55) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
- MakeForm(Part,"Ball")
- local Part = CreatePart(3, Character, "Neon", 0, 0, "Pearl", "Eon", VT(0.1,0.2,0.1),false)
- CreateWeldOrSnapOrMotor("Weld", Head, Head, Part, CF(0.2, 0.2, -0.55) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
- MakeForm(Part,"Ball")
- Speed = 25
- while true do
- Swait()
- ANIMATE.Parent = nil
- local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
- IDLEANIMATION:Play()
- SINE = SINE + CHANGE
- local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
- local TORSOVERTICALVELOCITY = RootPart.Velocity.y
- local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
- local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
- ANIM = "Levitate"
- if ATTACK == false or VALUE1 == true then
- RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.75 * COS(SINE / 35)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.2 / Animation_Speed)
- RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40), RAD(0), RAD(-20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
- LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, 0) * ANGLES(RAD(35), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
- RightHip.C0 = Clerp(RightHip.C0, CF(1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(90), RAD(-5), RAD(40)), 0.2 / Animation_Speed)
- LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.6, -1.5, -0.1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(90), RAD(25), RAD(-35)), 0.2 / Animation_Speed)
- end
- unanchor()
- Humanoid.MaxHealth = "inf"
- Humanoid.Health = "inf"
- if Rooted == false then
- Disable_Jump = false
- Humanoid.WalkSpeed = Speed
- elseif Rooted == true then
- Disable_Jump = true
- Humanoid.WalkSpeed = 0
- end
- if Head:FindFirstChild("face") then
- Head.face:remove()
- end
- if Head:FindFirstChildOfClass("Sound") then
- Head:FindFirstChildOfClass("Sound"):remove()
- end
- q = Character:GetChildren()
- for u = 1, #q do
- if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
- if q[u].Handle:FindFirstChild("FaceFrontAttachment") then
- q[u].Handle.Transparency = 1
- end
- elseif q[u].ClassName == "CharacterMesh" then
- q[u]:remove()
- end
- end
- for _, c in pairs(ORBHOLDER:GetChildren()) do
- c.Name = "IN USE"
- end
- if #Orbs>0 then
- for e=1,#Orbs do
- if Orbs[e]~=nil then
- local Thing=Orbs[e]
- if Thing~=nil then
- local Part=Thing[1]
- local Force=Thing[2]
- Part.ItemValue.Value = e
- Part.Anchored = false
- Part.Parent = ORBHOLDER
- Part.Name = e
- Force.Position = Torso.CFrame*CF(0,1,0)*ANGLES(RAD(0),RAD(0),RAD(e*(360/#Orbs)))*CF(0,3.5,1.5).p
- end
- end
- end
- end
- end
- --//=================================\\
- --\\=================================//
- --//====================================================\\--
- --|| END OF SCRIPT
- --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement