Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print(Gui was made by TheRealHabahabalos.);
- -- Farewell Infortality.
- -- Version: 2.82
- -- Instances:
- local UndertaleGUI = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local Asriel = Instance.new("TextButton")
- local sANNes = Instance.new("TextButton")
- local Sans = Instance.new("TextButton")
- local Gaster = Instance.new("TextButton")
- local SRY = Instance.new("TextButton")
- --Properties:
- UndertaleGUI.Name = "Undertale GUI"
- UndertaleGUI.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- Frame.Parent = UndertaleGUI
- Frame.BackgroundColor3 = Color3.new(0, 0, 0)
- Frame.BorderColor3 = Color3.new(1, 0, 0)
- Frame.BorderSizePixel = 5
- Frame.Position = UDim2.new(0.445240527, 0, 0.586735964, 0)
- Frame.Size = UDim2.new(0, 502, 0, 223)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(0.0901961, 0.101961, 1)
- TextLabel.BorderColor3 = Color3.new(1, 0, 0)
- TextLabel.BorderSizePixel = 5
- TextLabel.Size = UDim2.new(0, 502, 0, 29)
- TextLabel.Font = Enum.Font.Fantasy
- TextLabel.Text = "Undertale GUI"
- TextLabel.TextColor3 = Color3.new(0.443137, 1, 0.403922)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- Asriel.Name = "Asriel"
- Asriel.Parent = Frame
- Asriel.BackgroundColor3 = Color3.new(1, 1, 1)
- Asriel.Position = UDim2.new(0, 0, 0.775784731, 0)
- Asriel.Size = UDim2.new(0, 55, 0, 50)
- Asriel.Font = Enum.Font.SourceSans
- Asriel.Text = "Asriel"
- Asriel.TextColor3 = Color3.new(0, 0, 0)
- Asriel.TextSize = 14
- Asriel.MouseButton1Down:connect(function()
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- cam=game.Workspace.CurrentCamera
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Face = Head.face
- Neck=Torso.Neck
- it=Instance.new
- attacktype=1
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- cloaked=false
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- bounce=false
- cooldown=false
- deeznuts=false
- attackdebounce = false
- deb=false
- equipped=true
- hand=false
- MMouse=nil
- combo=0
- mana=0
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- local Effects={}
- local gun=false
- local shoot=false
- player=nil
- mana=0
- game:service("Chat"):Chat(Head, "The last form of my asriel transformation!", Enum.ChatColor.Blue)
- wait(1)
- game:service("Chat"):Chat(Head, "A world that will rip to shreds.", Enum.ChatColor.Blue)
- wait(1)
- game:service("Chat"):Chat(Head, "Obey your new founding fathers and america!", Enum.ChatColor.Green)
- wait(1)
- game:service("Chat"):Chat(Head, "A NATION REBORN!!", Enum.ChatColor.Red)
- wait(1)
- game:service("Chat"):Chat(Head, "My soul isnt proud, and i wont be either!", Enum.ChatColor.Green)
- wait(1)
- game:service("Chat"):Chat(Head, "You've defeated me once...", Enum.ChatColor.Green)
- wait(1)
- game:service("Chat"):Chat(Head, "AND IM NOT GONNA LET IT HAPPEN AGAIN!", Enum.ChatColor.Red)
- wait(1)
- cam = workspace.CurrentCamera
- ZTarget = nil
- RocketTarget = nil
- local m = Instance.new("Model",Character)
- m.Name = "WeaponModel"
- mouse=Player:GetMouse()
- --save shoulders
- RSH, LSH=nil, nil
- --welds
- RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- player=Player
- ch=Character
- RSH=ch.Torso["Right Shoulder"]
- LSH=ch.Torso["Left Shoulder"]
- --
- RSH.Parent=nil
- LSH.Parent=nil
- --
- RW.Name="Right Shoulder"
- RW.Part0=ch.Torso
- RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=ch["Right Arm"]
- RW.Parent=ch.Torso
- --
- LW.Name="Left Shoulder"
- LW.Part0=ch.Torso
- LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=ch["Left Arm"]
- LW.Parent=ch.Torso
- function swait(num)
- if num==0 or num==nil then
- game:service'RunService'.Heartbeat:wait(0)
- else
- for i=0,num do
- game:service'RunService'.Heartbeat:wait(0)
- end
- end
- end
- function nooutline(part)
- part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=BrickColor.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=Character.Torso.Position
- nooutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size)
- local fp = it("Part")
- fp.formFactor = formfactor
- fp.Parent = parent
- fp.Reflectance = reflectance
- fp.Transparency = transparency
- fp.CanCollide = false
- fp.Locked=true
- fp.BrickColor = brickcolor
- fp.Name = name
- fp.Size = size
- fp.Position = EffectPart.Position
- NoOutline(fp)
- fp.Material="Neon"
- fp:BreakJoints()
- return fp
- end
- function wweld(parent,part0,part1,c0)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- return weld
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function decal(part,face,texture,transparency,shiny,specular,name)
- local d=it("Decal",part)
- d.Shiny=shiny
- d.Face=face
- d.Specular=specular
- d.Transparency=transparency
- d.Texture=texture
- d.Name=name
- return d
- end
- function weld(parent,part0,part1,c0,c1)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- weld.C1=c1
- return weld
- end
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(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 Triangle(a, b, c)
- local edg1 = (c-a):Dot((b-a).unit)
- local edg2 = (a-b):Dot((c-b).unit)
- local edg3 = (b-c):Dot((a-c).unit)
- if edg1 <= (b-a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- assert(false, "unreachable")
- end
- local len1 = (c-a):Dot((b-a).unit)
- local len2 = (b-a).magnitude - len1
- local width = (a + (b-a).unit*len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
- local list = {}
- local TrailColor = ("Institutional white")
- if len1 > 0.01 then
- local w1 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w1,5)
- w1.Material = "Neon"
- w1.FormFactor = 'Custom'
- w1.BrickColor = BrickColor.new(TrailColor)
- w1.Transparency = 0
- w1.Reflectance = 0
- w1.Material = "Neon"
- w1.CanCollide = false
- NoOutline(w1)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Instance.new("SpecialMesh",w1)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = true
- w1.Parent = workspace
- w1.Transparency = 0.7
- table.insert(Effects,{w1,"Disappear",.01})
- w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w2,5)
- w2.Material = "Neon"
- w2.FormFactor = 'Custom'
- w2.BrickColor = BrickColor.new(TrailColor)
- w2.Transparency = 0
- w2.Reflectance = 0
- w2.Material = "Neon"
- w2.CanCollide = false
- NoOutline(w2)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Instance.new("SpecialMesh",w2)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = true
- w2.Parent = workspace
- w2.Transparency = 0.7
- table.insert(Effects,{w2,"Disappear",.01})
- w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- table.insert(list,w2)
- end
- return unpack(list)
- end
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- end))
- end
- function 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 QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
- if hit.Parent==nil then
- return
- end
- local h=hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end
- if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChild("Humanoid")
- end
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- local c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- local Damage=math.rad(minim,maxim)
- -- h:TakeDamage(Damage)
- local blocked=false
- local block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print(block.className)
- if block.className=="NumberValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock==nil then
- block.Value=block.Value-1
- end
- end
- end
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock~=nil then
- block.Value=block.Value-1
- end
- end
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color)
- else
- h.Health=h.Health-(Damage/2)
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color)
- end
- if Type=="Knockdown" then
- local hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- local rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.rad(-10,10),math.rad(-10,10),math.rad(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Normal" then
- local vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="Up" then
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=vt(0,60,0)
- bodyVelocity.P=5000
- bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,1)
- local rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.rad(-30,30),math.rad(-30,30),math.rad(-30,30))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Snare" then
- local bp=Instance.new("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.position=hit.Parent.Torso.Position
- bp.Parent=hit.Parent.Torso
- game:GetService("Debris"):AddItem(bp,1)
- elseif Type=="Target" then
- local Targetting = false
- if Targetting==false then
- ZTarget=hit.Parent.Torso
- coroutine.resume(coroutine.create(function(Part)
- so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
- swait(5)
- so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
- end),ZTarget)
- local TargHum=ZTarget.Parent:findFirstChild("Humanoid")
- local targetgui=Instance.new("BillboardGui")
- targetgui.Parent=ZTarget
- targetgui.Size=UDim2.new(10,100,10,100)
- local targ=Instance.new("ImageLabel")
- targ.Parent=targetgui
- targ.BackgroundTransparency=1
- targ.Image="rbxassetid://4834067"
- targ.Size=UDim2.new(1,0,1,0)
- cam.CameraType="Scriptable"
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- Targetting=true
- RocketTarget=ZTarget
- for i=1,Property do
- --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
- if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
- swait()
- end
- --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
- end
- Targetting=false
- RocketTarget=nil
- targetgui.Parent=nil
- cam.CameraType="Custom"
- end
- end
- local debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- end
- end
- function ShowDamage(Pos, Text, Time, Color)
- local Rate = (1 / 30)
- local Pos = (Pos or Vector3.new(0, 0, 0))
- local Text = (Text or "")
- local Time = (Time or 2)
- local Color = (Color or Color3.new(1, 0, 0))
- local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0))
- EffectPart.Anchored = true
- local BillboardGui = Instance.new("BillboardGui")
- BillboardGui.Size = UDim2.new(3, 0, 3, 0)
- BillboardGui.Adornee = EffectPart
- local TextLabel = Instance.new("TextLabel")
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(1, 0, 1, 0)
- TextLabel.Text = Text
- TextLabel.TextColor3 = Color
- TextLabel.TextScaled = true
- TextLabel.Font = Enum.Font.ArialBold
- TextLabel.Parent = BillboardGui
- BillboardGui.Parent = EffectPart
- game.Debris:AddItem(EffectPart, (Time + 0.1))
- EffectPart.Parent = game:GetService("Workspace")
- Delay(0, function()
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = (Frame / Frames)
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=BrickColor.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=Character.Torso.Position
- nooutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0,c1)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- weld.C1=c1
- return weld
- end
- -----Asriel {R} Arm-----
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Institutional white')
- p.Material=("Neon")
- p.Name="P1"
- p.Size=Vector3.new(1.2,2.2,1.2)
- w=Instance.new('Weld',Character.P1)
- w.Part0=Character.P1
- w.Part1=RightArm
- ------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="P2"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- w=Instance.new('Weld',Character.P2)
- w.Part0=Character.P2
- w.Part1=RightArm
- w.C0=CFrame.new(0,0.8,0)
- ------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="Diamond1"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- m=Instance.new('SpecialMesh',Character.Diamond1)
- m.MeshId="http://www.roblox.com/asset/?id=9756362"
- m.Scale=Vector3.new(1.3, 1.4, 1.3)
- w=Instance.new('Weld',Character.Diamond1)
- w.Part0=Character.Diamond1
- w.Part1=RightArm
- w.C0=CFrame.new(0,0,0)
- ----------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="P3"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- w=Instance.new('Weld',Character.P3)
- w.Part0=Character.P3
- w.Part1=RightArm
- w.C0=CFrame.new(0,0.4,0)
- ------------------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="P5"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- w=Instance.new('Weld',Character.P5)
- w.Part0=Character.P5
- w.Part1=RightArm
- w.C0=CFrame.new(0,-0.8,0)
- -----------------------------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="P4"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- w=Instance.new('Weld',Character.P4)
- w.Part0=Character.P4
- w.Part1=RightArm
- w.C0=CFrame.new(0,-0.4,0)
- -----Left Asriel {R} Arm Two----------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Institutional white')
- p.Material=("Neon")
- p.Name="P6"
- p.Size=Vector3.new(1.2,2.2,1.2)
- w=Instance.new('Weld',Character.P6)
- w.Part0=Character.P6
- w.Part1=LeftArm
- ------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="P7"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- w=Instance.new('Weld',Character.P7)
- w.Part0=Character.P7
- w.Part1=LeftArm
- w.C0=CFrame.new(0,0.8,0)
- ------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="Diamond2"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- m=Instance.new('SpecialMesh',Character.Diamond2)
- m.MeshId="http://www.roblox.com/asset/?id=9756362"
- m.Scale=Vector3.new(1.3, 1.4, 1.3)
- w=Instance.new('Weld',Character.Diamond2)
- w.Part0=Character.Diamond2
- w.Part1=LeftArm
- w.C0=CFrame.new(0,0,0)
- ----------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="P8"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- w=Instance.new('Weld',Character.P8)
- w.Part0=Character.P8
- w.Part1=LeftArm
- w.C0=CFrame.new(0,0.4,0)
- ------------------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="P9"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- w=Instance.new('Weld',Character.P9)
- w.Part0=Character.P9
- w.Part1=LeftArm
- w.C0=CFrame.new(0,-0.8,0)
- -----------------------------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="P10"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- w=Instance.new('Weld',Character.P10)
- w.Part0=Character.P10
- w.Part1=LeftArm
- w.C0=CFrame.new(0,-0.4,0)
- ------- Asriel {R} Leg-------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Institutional white')
- p.Material=("Neon")
- p.Name="R1"
- p.Size=Vector3.new(1.2,2,1.2)
- w=Instance.new('Weld',Character.R1)
- w.Part0=Character.R1
- w.Part1=RightLeg
- ------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="R2"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- w=Instance.new('Weld',Character.R2)
- w.Part0=Character.R2
- w.Part1=RightLeg
- w.C0=CFrame.new(0,0.7,0)
- ------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="Diamond3"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- m=Instance.new('SpecialMesh',Character.Diamond3)
- m.MeshId="http://www.roblox.com/asset/?id=9756362"
- m.Scale=Vector3.new(1, 1, 1)
- w=Instance.new('Weld',Character.Diamond3)
- w.Part0=Character.Diamond3
- w.Part1=RightLeg
- w.C0=CFrame.new(0,0,0)
- ----------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="Bash1"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- m=Instance.new('SpecialMesh',Character.Bash1)
- m.Scale=Vector3.new(5, 0, 1)
- w=Instance.new('Weld',Character.Bash1)
- w.Part0=Character.Bash1
- w.Part1=RightLeg
- w.C0=CFrame.new(0,0,0)
- ----------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="R3"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- w=Instance.new('Weld',Character.R3)
- w.Part0=Character.R3
- w.Part1=RightLeg
- w.C0=CFrame.new(0,-0.7,0)
- ------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Institutional white')
- p.Material=("Neon")
- p.Name="R4"
- p.Size=Vector3.new(1.2,2,1.2)
- w=Instance.new('Weld',Character.R4)
- w.Part0=Character.R4
- w.Part1=LeftLeg
- ------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="R5"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- w=Instance.new('Weld',Character.R5)
- w.Part0=Character.R5
- w.Part1=LeftLeg
- w.C0=CFrame.new(0,0.7,0)
- ------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="Diamond4"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- m=Instance.new('SpecialMesh',Character.Diamond4)
- m.MeshId="http://www.roblox.com/asset/?id=9756362"
- m.Scale=Vector3.new(1, 1, 1)
- w=Instance.new('Weld',Character.Diamond4)
- w.Part0=Character.Diamond4
- w.Part1=LeftLeg
- w.C0=CFrame.new(0,0,0)
- ----------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="Bash2"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- m=Instance.new('SpecialMesh',Character.Bash2)
- m.Scale=Vector3.new(5, 0, 1)
- w=Instance.new('Weld',Character.Bash2)
- w.Part0=Character.Bash2
- w.Part1=LeftLeg
- w.C0=CFrame.new(0,0,0)
- ----------------------------------
- p=Instance.new('Part',Character)
- p.BrickColor=BrickColor.new('Really black')
- p.Material=("Neon")
- p.Name="R6"
- p.Size=Vector3.new(1.3, 0.2, 1.3)
- w=Instance.new('Weld',Character.R6)
- w.Part0=Character.R6
- w.Part1=LeftLeg
- w.C0=CFrame.new(0,-0.7,0)
- ------- Death {A} Ray --------
- p=Instance.new('Part',Character)
- p.Name="DeathRay"
- p.Size=Vector3.new(0.2, 5.22, 2.13)
- p.BrickColor=BrickColor.new('White')
- p.Transparency=1
- d=Instance.new('Decal',Character.DeathRay)
- d.Face="Left"
- d.Texture="http://www.roblox.com/asset/?id=340395528"
- d=Instance.new('Decal',Character.DeathRay)
- d.Face="Right"
- d.Texture="http://www.roblox.com/asset/?id=340395528"
- w=Instance.new('Weld',Character.DeathRay)
- w.Part0=Character.DeathRay
- w.Part1=LeftArm
- w.C0=CFrame.new(0.7,0,0)
- ------- Left Death {A} Ray --------
- p=Instance.new('Part',Character)
- p.Name="DeathRay2"
- p.Size=Vector3.new(0.2, 5.22, 2.13)
- p.BrickColor=BrickColor.new('White')
- p.Transparency=1
- d=Instance.new('Decal',Character.DeathRay2)
- d.Face="Left"
- d.Texture="http://www.roblox.com/asset/?id=340395528"
- d=Instance.new('Decal',Character.DeathRay2)
- d.Face="Right"
- d.Texture="http://www.roblox.com/asset/?id=340395528"
- w=Instance.new('Weld',Character.DeathRay2)
- w.Part0=Character.DeathRay2
- w.Part1=RightArm
- w.C0=CFrame.new(-0.7,0,0)
- ---Asrielovania {R} Music---
- s=Instance.new('Sound',Character)
- s.SoundId="rbxassetid://306154368"
- s.Volume=1
- s.Pitch=1
- s.Looped=true
- s:Play()
- -------Sorcer {A} Sword-------
- handle=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","Handle",Vector3.new(0.200000003, 1.61857152, 0.200000003))
- handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.995889783, -0.101109691, 0.0468789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008))
- mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 1, 0.857142746))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.257142872, 0.911428571))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00982296467, -0.128642559, 5.57254982, -1.21753502e-007, -2.87620594e-010, 1, -1, -1.04306673e-006, -1.2175461e-007, 1.04306673e-006, -1, -2.87123214e-010))
- mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.571428657))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0100114346, 3.24283266, 2.64644623e-005, -2.98713599e-006, -1.63886575e-008, -1, -1.18017197e-005, -0.99999994, 1.64265153e-008, -0.99999994, 1.18017197e-005, 2.98713007e-006))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.514285743))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00896048546, 3.24313331, -6.2584877e-006, -2.62832918e-006, -1.58840017e-008, -1, -1.16825104e-005, -0.99999994, 1.59122848e-008, -0.99999994, 1.16825104e-005, 2.62831986e-006))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.914285779, 0.254285723))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0080575943, -5.57459974, 0.127099097, -7.20826961e-007, -1.18548371e-009, 1, 6.25863322e-007, 1, 1.18891563e-009, -1, 6.25863322e-007, -7.20827984e-007))
- mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.942857206, 0.28285715))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00858414173, -5.58866072, 0.142816901, -5.41048905e-007, -8.99582631e-010, 1, -5.96046448e-007, 0.99999994, 9.00953978e-010, -0.99999994, -5.96046448e-007, -5.41057148e-007))
- mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.285714328, 0.940000057))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.011053443, -0.142930448, 5.58944941, 2.97432763e-007, 3.64387631e-010, 1, -1, 6.25863322e-007, 2.9743137e-007, -6.25863322e-007, -1, 3.63804986e-010))
- mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1))
- Part=part(Enum.FormFactor.Brick,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1, 1.20000005, 1))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.57627869e-007, -0.809324801, 1.96695328e-006, 6.20105922e-008, 2.27451835e-010, -1, 1.81795622e-006, 1, 2.27856845e-010, 1, -1.81795622e-006, 6.2011928e-008))
- mesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 0.142857134, 0.285714298))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00226664543, 0.69951874, 1.00827909, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
- mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487548, -0.00217807293, 3.74913216e-005, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.857145786, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487882, -0.00217807293, 4.00543213e-005, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.571431458, 1.10000002))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.483492851, 0.539954185, 0.539909601))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00595891476, -1.00750566, 1.00747085, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
- mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00534570217, -1.00757694, -0.698815584, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
- mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.493492872, 0.539954185, 0.539909601))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000260472298, 0.6988675, -0.698937058, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
- mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00927072763, -0.0121991634, 1.19311547, 0.999999881, -2.08614802e-006, 1.9306286e-007, -1.93059051e-007, -1.09411957e-007, 1, -2.08616257e-006, -0.999999881, -1.09408283e-007))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604586363, -0.0121991634, 1.02863288, 0.866026282, 0.499998033, 2.28958157e-007, -1.93872992e-007, -1.22099237e-007, 1, 0.499998033, -0.866026282, -8.79730777e-009))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.03790355, -0.0121991634, 0.588528812, 0.500001669, 0.866024196, 1.74744486e-007, -1.6279435e-007, -1.0777579e-007, 1, 0.866024196, -0.500001669, 8.71042545e-008))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.662679553, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.39311564, -0.0121991634, -0.00927072763, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.46267951, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.02863288, -0.0121997595, -0.604586482, -0.499998093, 0.866026223, -6.44970513e-008, -1.45620604e-007, -9.60127267e-009, 1, 0.866026223, 0.499998093, 1.30918266e-007))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.588528991, -0.0121992826, -1.03790355, -0.866024137, 0.500001729, -9.11133142e-008, -1.16737233e-007, -1.99774206e-008, 1, 0.500001729, 0.866024137, 7.56750538e-008))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.372464359, 0.762464345, 0.762464285))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00338602066, -0.736121356, -0.540583551, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007))
- mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542364))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.382464379, 0.762464345, 0.762464285))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00803625584, -0.737174749, 0.736498654, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007))
- mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.913885474, 0.128561974, 0.128542408))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00594449043, 0.540397167, 0.737201214, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007))
- mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542408))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00681877136, 0.540436149, -0.541088939, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007))
- mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366669, 0.128561974, 0.128542364))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910848916, -0.00147974491, 0.000465214252, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.385687381, 0.642712057))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910846829, -0.00147974491, 0.000467300415, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.257125348, 0.706983268))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Institutional white","SwordPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.98755074e-005, -0.86527884, -0.00526940823, 0.99999994, -3.33786011e-006, -1.61662047e-006, 3.33786011e-006, 0.99999994, -1.75251103e-009, 1.61662604e-006, 1.74897963e-009, 1))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 0.857145548, 0.857142746))
- Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Institutional white","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003))
- Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0107657909, -3.95914412, 0.00325751305, 0.999999821, -0.000211339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907))
- EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Institutional white","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
- mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,1,"Institutional white","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
- DarkRiftF=function(par)
- while lol == true do
- wait()
- local PWN={}
- for _,v in pairs(game.Workspace:children()) do
- if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then
- if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then
- table.insert(PWN,v.Torso)
- end
- end
- end
- for _,t in pairs(PWN) do
- local targ=par.Position-t.Position
- local Mag=targ.magnitude
- if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then
- if Mag<=30 then
- t.Parent.Humanoid:TakeDamage(.5)
- local rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*5000
- rl.angularvelocity=Vector3.new(math.rad(-20,20),math.rad(-20,20),math.rad(-20,20))/10
- rl.Parent=t
- game:GetService("Debris"):AddItem(rl,.1)
- end
- if Mag<=20 then
- t.Parent.Humanoid:TakeDamage(.1)
- else
- local vl=Instance.new("BodyVelocity")
- vl.P=3000
- vl.maxForce=Vector3.new(50000000000,50000000000,50000000000)
- vl.velocity=(t.Position-par.Position).unit*-(70/(Mag))
- vl.Parent=t
- game:GetService("Debris"):AddItem(vl,.1)
- end
- end
- end
- wait(.08)
- end
- end
- function DerpMagic(part,x1,y1,z1,x2,y2,z2,color)
- local msh1 = Instance.new("BlockMesh")
- msh1.Scale = Vector3.new(0.5,0.5,0.5)
- local S=Instance.new("Part")
- S.Name="Effect"
- S.Material="Neon"
- S.formFactor=0
- S.Size=Vector3.new(x1,y1,z1)
- S.BrickColor=color
- S.Reflectance = 0
- S.TopSurface=0
- S.BottomSurface=0
- S.Transparency=0
- S.Anchored=false
- S.CanCollide=false
- S.CFrame=part.CFrame
- S.Parent=game.Workspace
- msh1.Parent = S
- local W=Instance.new("Weld")
- W.Parent=S
- W.Part0=S
- W.Part1=part
- W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))
- W.Parent=nil
- S.Anchored=true
- coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W)
- end
- local function BlackHole(parent,cframe)
- local effectsmsh = Instance.new("SpecialMesh")
- effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356"
- --effectsmsh.Scale = Vector3.new(1,1,2.5)
- effectsmsh.Scale = Vector3.new(3,3,3)
- local effectsg = Instance.new("Part")
- effectsg.formFactor = 3
- effectsg.CanCollide = false
- effectsg.Name = "Effect"
- effectsg.Locked = true
- effectsg.Transparency = 1
- effectsg.Size = Vector3.new(0.2,0.2,0.2)
- effectsg.Parent = parent
- effectsg.BrickColor = BrickColor.random()
- effectsg.Material="Neon"
- coroutine.resume(coroutine.create(function(Part,Mesh)
- local Mesh = Instance.new("SpecialMesh")
- Mesh.Scale = Vector3.new(0.5,0.5,0.5)
- Mesh.MeshType = "Sphere"
- -- Mesh.TextureId="http://www.roblox.com/asset/?id=1529460"
- Part=Instance.new("Part")
- Part.Name="Effect"
- Part.formFactor=0
- Part.Size=Vector3.new(1,1,1)
- Part.BrickColor=BrickColor.random()
- Part.Material="Neon"
- Part.Reflectance = 0
- Part.TopSurface=0
- Part.BottomSurface=0
- Part.Transparency=0
- Part.Anchored=true
- NoOutline(Part)
- Part.CanCollide=false
- Part.CFrame=cframe
- Part.Parent=parent
- Mesh.Parent = Part
- lol=true
- coroutine.resume(coroutine.create(function()
- DarkRiftF(Part)
- end))
- for i=0,200 do
- wait()
- DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.random())
- Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2)
- Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))
- end
- local fff=200
- for i=0,100 do
- wait()
- DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.random())
- Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))
- end
- for i=0,1,0.05 do
- wait()
- Part.Transparency=Part.Transparency+0.05
- Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5)
- end
- lol=false
- Part.Parent=nil
- end),nil,nil)
- end
- function makeShockwave(height,color,speed,range,pulse)
- local range = range or 2000
- local p = Instance.new("Part")
- p.Anchored = true
- p.CanCollide = false
- p.FormFactor = "Custom"
- p.BrickColor = color
- p.Parent = workspace
- local m = Instance.new("SpecialMesh",p)
- m.MeshId = "rbxassetid://3270017"
- local estimateSurvival = math.floor(range/speed) * 0.03
- game:GetService("Debris"):AddItem(p,estimateSurvival)
- Spawn(function ()
- for i = 1,range,speed do
- p.Transparency = 1-math.min(0.5,3-(i/500))
- m.Scale = Vector3.new(i,i,i*height)
- p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0)
- wait()
- end
- p:Destroy()
- end)
- end
- function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,2,delay do
- wait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- wait()
- Part.CFrame=Part.CFrame*euler(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent)
- local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt())
- if Type~=2 then
- prt.Anchored=true
- end
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh,dur)
- local wld=nil
- if dur==2 then
- wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0))
- end
- for i=0,1,delay do
- swait()
- if dur==1 then
- Part.CFrame=Part.CFrame
- elseif dur==2 then
- wld.C0=cframe
- end
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh,Type)
- end
- function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- swait()
- Part.CFrame=Part.CFrame*euler(0,0.7,0)
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- wait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt())
- prt.Anchored=true
- prt.CFrame=cframe
- local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3})
- end
- function Blast(parent)
- MagicBlock(BrickColor.random(),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
- MagicWaveThing(BrickColor.random(),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01)
- end
- function ChargeBall(parent,t)
- local counter=0
- local size=1
- for i=0,t,1 do
- swait()
- counter=counter+1
- if counter%10==0 then
- if size==3 then
- MagicRing(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
- elseif size==2 then
- MagicRing(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
- end
- end
- if counter%5==0 then
- if size==1 then
- MagicBlock(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
- elseif size==2 then
- MagicBlock(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
- elseif size==3 then
- MagicBlock(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
- end
- end
- end
- end
- function ChargeBall2(parent,t)
- local counter=0
- local size=1
- for i=0,t,1 do
- swait()
- counter=counter+1
- if counter%10==0 then
- if size==3 then
- MagicRing(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
- elseif size==2 then
- MagicRing(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
- end
- end
- if counter%5==0 then
- if size==1 then
- MagicBlock(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
- MagicWave(BrickColor.random(),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.rad(-50,50),0),1,1,1,1,.5,1,0.05)
- elseif size==2 then
- MagicBlock(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
- MagicWave(BrickColor.random(),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.rad(-50,50),0),1,1,1,1,.5,1,0.05)
- elseif size==3 then
- MagicBlock(BrickColor.random(),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent)
- MagicWave(BrickColor.random(),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.rad(-50,50),0),1,1,1,1,.5,1,0.05)
- end
- end
- end
- end
- function MagniDamage(Part,dis,mind,maxd,force,knock)
- for _,c in pairs(workspace:children()) do
- local hum=c:findFirstChild("Humanoid")
- if hum~=nil then
- local head=c:findFirstChild("Torso")
- if head~=nil then
- local targ=head.Position-Part.Position
- local mag=targ.magnitude
- if mag<=dis and c.Name~=Character.Name then
- Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1)
- end
- end
- end
- end
- end
- function computeDirection(vec)
- local lenSquared = vec.magnitude * vec.magnitude
- local invSqrt = 1 / math.sqrt(lenSquared)
- return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt)
- end
- function attackone()
- attack = true
- local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,70,100,math.rad(5,5),"Normal",RootPart,.2,1) end)
- local fx=Hitbox.Touched:connect(function(part)
- local human=part.Parent:findFirstChild("Humanoid")
- if human~=nil and bounce==false then
- bounce=true
- end
- end)
- for i = 0,1,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
- end
- so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
- for i = 0,1,0.1 do
- swait()
- local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
- if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
- local h = 5
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
- end
- attack = false
- bounce=false
- scfr=nil
- fx:disconnect()
- con:disconnect()
- end
- function attacktwo()
- attack=true
- local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,70,100,math.rad(5,5),"Normal",RootPart,.2,1) end)
- local fx=Hitbox.Touched:connect(function(part)
- local human=part.Parent:findFirstChild("Humanoid")
- if human~=nil and bounce==false then
- bounce=true
- end
- end)
- for i=0,1,.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
- end
- so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
- for i = 0,1,0.1 do
- swait()
- local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
- if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
- local h = 5
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
- end
- scfr=nil
- attack=false
- bounce=false
- con:disconnect()
- fx:disconnect()
- end
- function attackthree()
- attack=true
- local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,70,100,math.rad(5,5),"Normal",RootPart,.2,1) end)
- local fx=Hitbox.Touched:connect(function(part)
- local human=part.Parent:findFirstChild("Humanoid")
- if human~=nil and bounce==false then
- bounce=true
- end
- end)
- for i=0,1,.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
- end
- so("http://www.roblox.com/asset/?id=199145913",handle,1,.9)
- for i = 0,1,0.1 do
- swait()
- local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
- if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
- local h = 5
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.4)
- end
- attack=false
- bounce=false
- scfr=nil
- con:disconnect()
- fx:disconnect()
- end
- function attackfour()
- attack = true
- local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,70,100,math.rad(20,30),"Normal",RootPart,.2,1) end)
- local fx=Hitbox.Touched:connect(function(part)
- local human=part.Parent:findFirstChild("Humanoid")
- if human~=nil and bounce==false then
- bounce=true
- end
- end)
- for i = 0,1,0.1 do
- swait()
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.3)
- RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.3)
- LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.3)
- RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,-.2,.5)*angles(math.rad(50),math.rad(-15),math.rad(0)),.3)
- end
- so("http://www.roblox.com/asset/?id=199145433",Hitbox,1,1.1)
- local v=it("BodyVelocity",Torso)
- v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1
- v.velocity=RootPart.CFrame.lookVector*50
- for i = 0,1,0.1 do
- swait()
- local blcf = Hitbox.CFrame*cf(0,0,0)
- if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
- local h = 5
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-100),math.rad(0),math.rad(0)),.3)
- end
- v.Parent=nil
- scfr=nil
- attack = false
- bounce=false
- con:disconnect()
- fx:disconnect()
- end
- function Slash()
- attack=true
- local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,70,100,math.rad(5,5),"Normal",RootPart,.2,1) end)
- local fx=Hitbox.Touched:connect(function(part)
- local human=part.Parent:findFirstChild("Humanoid")
- if human~=nil and bounce==false then
- bounce=true
- end
- end)
- for i=0,1,.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
- end
- so("http://www.roblox.com/asset/?id=199145913",handle,1,.9)
- for i = 0,1,0.1 do
- swait()
- local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
- if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
- local h = 5
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.4)
- end
- for i = 0,1,0.1 do ----------------------------------- second attack
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
- end
- so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
- for i = 0,1,0.1 do
- swait()
- local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
- if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
- local h = 5
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
- end
- attack=false
- bounce=false
- scfr=nil
- con:disconnect()
- fx:disconnect()
- end
- function Combo()
- attack = true
- local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,70,100,math.rad(5,5),"Normal",RootPart,.2,1) end)
- local fx=Hitbox.Touched:connect(function(part)
- local human=part.Parent:findFirstChild("Humanoid")
- if human~=nil and bounce==false then
- bounce=true
- end
- end)
- for i = 0,1,0.1 do ----------------------------------- first attack
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
- end
- so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
- for i = 0,1,0.1 do
- swait()
- local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
- if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
- local h = 5
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
- end
- for i = 0,1,0.1 do ----------------------------------- second attack
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
- end
- so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
- for i = 0,1,0.1 do
- swait()
- local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
- if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
- local h = 5
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
- end
- for i = 0,1,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
- end
- so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
- for i = 0,1,0.1 do
- swait()
- local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
- if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
- local h = 5
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
- end
- for i = 0,1,0.1 do ----------------------------------- second attack
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
- end
- so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
- for i = 0,1,0.1 do
- swait()
- local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
- if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
- local h = 5
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
- end
- for i = 0,1,0.1 do ----------------------------------- first attack
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4)
- end
- so("http://www.roblox.com/asset/?id=199145841",handle,1,.9)
- for i = 0,1,0.1 do
- swait()
- local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
- if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
- local h = 5
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
- end
- for i = 0,1,0.1 do ----------------------------------- second attack
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4)
- end
- so("http://www.roblox.com/asset/?id=199145887",handle,1,1)
- for i = 0,1,0.1 do
- swait()
- local blcf = Hitbox.CFrame*CFrame.new(0,.5,0)
- if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then
- local h = 5
- local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p)
- if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end
- scfr = blcf
- elseif not scfr then
- scfr = blcf
- end
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
- end
- attack = false
- bounce=false
- scfr=nil
- fx:disconnect()
- con:disconnect()
- end
- function LustrisFulgo()
- attack=true
- Humanoid.WalkSpeed=0
- for i=0,1,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-15),math.rad(0),math.rad(10)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(-10)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(145), math.rad(0), math.rad(7)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(4), math.rad(-15)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-15),math.rad(90),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-25),math.rad(-90),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,-.5)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3)
- end
- local function boom()
- local pprt=ppart(3,game.Workspace,0,1,BrickColor.random(),"Effect",vt(1,1,1))
- pprt.Anchored=true
- pprt.CFrame=EffectPart.CFrame
- game:GetService("Debris"):AddItem(pprt,2)
- MagicCircle(BrickColor.random(),EffectPart.CFrame,20,20,20,-0.01,-0.01,-0.01,0.01)
- so("http://roblox.com/asset/?id=228343412",EffectPart,1,0.6)
- so("http://roblox.com/asset/?id=228343408",EffectPart,1,1.4)
- local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.random(),"Effect",vt(1,1,1))
- local waveweld=weld(game.Workspace,handle,wave,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008))
- local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
- MagniDamage(wave,20,15,25,math.rad(20,30),"Knockdown",RootPart)
- for i=0,80 do
- swait()
- MagicBlock(BrickColor.random(),EffectPart.CFrame,7,7,7,-0.5,-0.5,-0.5,0.05)
- MagicCircle(BrickColor.random(),EffectPart.CFrame*euler(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))*cf(0,5,0),0.5,1,0.5,0.02,1,0.02,0.05)
- wave.Size=vt(1+i,1+i,1+i)
- wavemesh.Scale=vt(1+i,1+i,1+i)
- wave.CFrame=EffectPart.CFrame
- Humanoid.Health=Humanoid.Health+.15
- end
- wave:Destroy()
- end
- boom()
- attack=false
- Humanoid.WalkSpeed=16
- end
- function LeviterGlomus()
- attack=true
- for i=0,1,.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(18), math.rad(-15), math.rad(15)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-75), math.rad(0), math.rad(-50)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-3),math.rad(65),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(-25),math.rad(-110),math.rad(0))*angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(-35),math.rad(-15),math.rad(0)),.3)
- end
- so("http://www.roblox.com/asset/?id=199145659",EffectPart2,1,1)
- efprt=part(Enum.FormFactor.Custom,game.Workspace,Enum.Material.Neon,0,0,"Institutional white","BallEffect",Vector3.new(2, 2, 2))
- weld(m,Character["Left Arm"],efprt,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008))
- mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1))
- ChargeBall(EffectPart2,35)
- for i=0,1,.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-18), math.rad(15), math.rad(15)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-65)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(0),math.rad(-15),math.rad(0)),.3)
- end
- so("http://www.roblox.com/asset/?id=199145534",EffectPart2,1,1.2)
- efprt:BreakJoints()
- local Target=mouse.Hit.p
- local direction = Target - handle.Position
- direction = computeDirection(direction)
- local pos = handle.Position + (direction * 10.0)
- efprt.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(math.pi/2, 0, 0)
- local floatForce = Instance.new("BodyForce")
- floatForce.force = Vector3.new(0, efprt:GetMass() * 196.1, 0.0)
- floatForce.Parent = efprt
- efprt.Velocity = direction * 160
- efprt.Touched:connect(function(hit)
- if not hit:IsDescendantOf(Character) then
- if hit.Name~="Effect" then
- MagniDamage(efprt,15,70,100,math.rad(20,30),"Knockdown",RootPart)
- floatForce.Parent=nil
- efprt.Anchored=true
- so("http://www.roblox.com/asset/?id=228343330",hit,1,.8)
- Blast(efprt)
- efprt:Destroy()
- end
- end
- end)
- game:GetService("Debris"):AddItem(efprt,6)
- attack=false
- end
- function PortalStorm()
- Humanoid.WalkSpeed=0
- attack=true
- for i=0,1,.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-40)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(40)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(5),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(-1,-2.3,-.4)*angles(math.rad(-165),math.rad(-15),math.rad(50)),.3)
- end
- so("http://www.roblox.com/asset/?id=199145446",handle,1,1)
- ChargeBall2(handle,100)
- makeShockwave(0.5,BrickColor.random(),30,1000,0)
- MagicWave(BrickColor.random(),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.rad(-50,50),0),2,2,2,.5,.3,.5,0.01)
- so("http://www.roblox.com/asset/?id=280247455",game.Workspace,1,1)
- wait(2)
- so("http://www.roblox.com/asset/?id=110284742",game.Workspace,1,0)
- delay(0.5,function ()
- MagniDamage(Torso,20,70,100,math.rad(50,70),"Knockdown",RootPart)
- end)
- Humanoid.Health=Humanoid.Health-0
- makeShockwave(4,BrickColor.new("Teal"),10,2000,1)
- attack=false
- Humanoid.WalkSpeed=9
- wait(4)
- Humanoid.WalkSpeed=16
- end
- function SolSiderea()
- Humanoid.WalkSpeed=0
- attack=true
- so("http://www.roblox.com/asset/?id=280758833",Workspace,1,1.3)
- for i=0,1,.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(95), math.rad(-10), math.rad(-17)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(95), math.rad(10), math.rad(17)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,-2,-.5)*angles(math.rad(0),math.rad(7.5),math.rad(-75)),.3)
- end
- for i=0,1,.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(-5), math.rad(8)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(5), math.rad(-8)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(-1.1,-4,-2)*angles(math.rad(-72),math.rad(8.5),math.rad(-92)),.3)
- end
- coroutine.resume(coroutine.create(function() ChargeBall(EffectPart,120) end))
- local n=2
- local orb=ppart(3,Character,0,1,BrickColor.random(),"Orb",vt())
- local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15))
- local owld=wweld(orb,orb,Torso,cf(-10,-150,0))
- for i=1,0.3,-0.01 do
- wait()
- orb.Transparency=i
- omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5)
- MagicBlock(BrickColor.random(),orb.CFrame,15,15,15,2,2,2,0.1)
- local ef=ppart(3,workspace,0,0,BrickColor.random(),"Effect",vt())
- ef.Anchored=true
- local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.rad(1000,1500)/100,2))
- local ceef=euler(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))*cf(0,math.rad(10,20),0)
- ef.CFrame=orb.CFrame*ceef
- game:GetService("Debris"):AddItem(ef,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,0.1 do
- wait()
- Part.Transparency=i
- Part.CFrame=Part.CFrame*cf(0,-1,0)
- end
- Part.Parent=nil
- end),ef,emsh)
- end
- local Pos=cf(orb.Position,Player:GetMouse().Hit.p).lookVector
- wait(.5)
- orb.Parent=nil
- wait(1)
- local hit,pos = rayCast(orb.Position,Pos,1000,Character)
- local mag=(orb.Position-pos).magnitude
- BlackHole(game.Workspace,cf(pos))
- coroutine.resume(coroutine.create(function()
- local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.random(),"Effect",vt(1,1,1))
- wweld(game.Workspace,wave,orb,Torso.CFrame)
- local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1))
- for i=1,100 do
- swait()
- wave.Size=vt(1+i,1+i,1+i)
- wavemesh.Scale=vt(1+i,1+i,1+i)
- wave.CFrame=cf(pos)
- end
- end))
- coroutine.resume(coroutine.create(function()
- for i=0,20 do
- swait(15)
- local range = 1500
- local p = Instance.new("Part")
- p.Anchored = true
- p.CanCollide = false
- p.FormFactor = "Custom"
- p.BrickColor = BrickColor.random()
- p.Parent = workspace
- p.Name="Effect"
- p.CFrame=cf(pos)
- local m = Instance.new("SpecialMesh",p)
- m.MeshId = "rbxassetid://3270017"
- local estimateSurvival = math.floor(range/30) * 0.03
- game:GetService("Debris"):AddItem(p,estimateSurvival)
- Spawn(function ()
- for i = 1,range,30 do
- p.Transparency = 1-math.min(0.5,3-(i/500))
- m.Scale = Vector3.new(i,i,i*0.5)
- p.CFrame = cf(pos) * CFrame.Angles(math.rad(90),0,0)
- wait()
- end
- p:Destroy()
- end)
- end
- end))
- MagicCylinder(BrickColor.random(),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01)
- for i=1,2 do
- end
- for i=1,5 do
- tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0)
- end
- for i=0,5 do
- tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0)
- end
- local ref=ppart(3,workspace,0,1,BrickColor.random(),"Effect",vt())
- ref.CFrame=cf(pos)
- coroutine.resume(coroutine.create(function(Part)
- wait(1)
- Part.Parent=nil
- end),ref)
- MagniDamage(ref,25,70,100,35,"Knockdown",ref)
- if hit~=nil then
- Damagefunc(ref,hit,40,50,35,"Knockdown",RootPart,0)
- end
- local n=2
- MagicWave(BrickColor.random(),cf(pos)*euler(0,math.rad(-50,50),0),2,2,2,.5,.3,.5,0.01)
- swait(75)
- Humanoid.WalkSpeed=16
- attack=false
- end
- attacktype=1
- mouse.Button1Down:connect(function()
- if attacktype==1 and attack==false then
- attacktype=2
- attackone()
- elseif attacktype==2 and attack==false then
- attacktype=3
- attacktwo()
- elseif attacktype==3 and attack==false then
- attacktype=4
- attackthree()
- elseif attacktype==4 and attack==false then
- attacktype=1
- attackfour()
- end
- end)
- mouse.KeyDown:connect(function(k)
- k=k:lower()
- if attack == false and k == 'e' then
- LeviterGlomus()
- ChargeBall(efprt,100)
- end
- if attack == false and k == 'q' then
- LustrisFulgo()
- end
- if attack == false and k == 'f' and deeznuts==false then
- deeznuts=true
- SolSiderea()
- deeznuts=false
- end
- if attack == false and k == 'r' and cooldown==false then
- cooldown=true
- PortalStorm()
- cooldown=false
- end
- end)
- mouse.KeyDown:connect(function(k)
- if attack == false and k == 't' then
- Combo()
- end
- end)
- mouse.KeyDown:connect(function(k)
- if attack == false and k == 'y' then
- Slash()
- end
- end)
- local sine = 0
- local change = 1
- local val = 0
- while true do
- swait()
- sine = sine + change
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if equipped==true or equipped==false then
- if attack==false then
- idle=idle+1
- else
- idle=0
- end
- if idle>=500 then
- if attack==false then
- end
- end
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false then
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- if attack==false then
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3)
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if attack==false then
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2),math.rad(0),math.rad(15)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2),math.rad(0),math.rad(-15)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-0.3, 0.5, -1) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0.3)*angles(math.rad(-36),math.rad(-95),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-10),math.rad(-2),math.rad(0)),.2)
- end
- elseif torvel>2 and hitfloor~=nil then
- Anim="Walk"
- if attack==false then
- change=3
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-20)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(25)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(-25), math.rad(5)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30)*math.cos(sine/10), math.rad(5), math.rad(0)), 0.3)
- RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1.1,-.9,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- end
- end
- end
- if #Effects>0 then
- for e=1,#Effects do
- if Effects[e]~=nil then
- local Thing=Effects[e]
- if Thing~=nil then
- local Part=Thing[1]
- local Mode=Thing[2]
- local Delay=Thing[3]
- local IncX=Thing[4]
- local IncY=Thing[5]
- local IncZ=Thing[6]
- if Thing[1].Transparency<=1 then
- if Thing[2]=="Block1" then
- Thing[1].CFrame=Thing[1].CFrame*euler(math.rad(-50,50),math.rad(-50,50),math.rad(-50,50))
- Mesh=Thing[1].Mesh
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Cylinder" then
- Mesh=Thing[1].Mesh
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Blood" then
- Mesh=Thing[7]
- Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
- Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Elec" then
- Mesh=Thing[1].Mesh
- Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- elseif Thing[2]=="Disappear" then
- Thing[1].Transparency=Thing[1].Transparency+Thing[3]
- end
- else
- Part.Parent=nil
- table.remove(Effects,e)
- end
- end
- end
- end
- end
- end
- end)
- sANNes.Name = "sANNes"
- sANNes.Parent = Frame
- sANNes.BackgroundColor3 = Color3.new(1, 1, 1)
- sANNes.Position = UDim2.new(0.143426299, 0, 0.775784731, 0)
- sANNes.Size = UDim2.new(0, 55, 0, 50)
- sANNes.Font = Enum.Font.SourceSans
- sANNes.Text = "sANNes"
- sANNes.TextColor3 = Color3.new(0, 0, 0)
- sANNes.TextSize = 14
- sANNes.MouseButton1Down:connect(function()
- pls=game:GetService'Players';
- rs=game:GetService'RunService';
- uinps=game:GetService'UserInputService';
- lp=pls.LocalPlayer;
- mouse=lp:GetMouse();
- c=lp.Character;
- rayModel=Instance.new('Model',c);
- human=c.Humanoid;
- Cone=nil;
- human.MaxHealth=5000;
- wait();
- human.Health=5000;
- c.Health:Destroy();
- Debounces={
- FPS=0;
- isAttacking=false;
- isMoving=false;
- isSprinting=false;
- Debounce=false;
- isTyping=false;
- isJumping=false;
- isFlash=false;
- };
- numLerp=function(start,goal,alpha)
- return(((goal-start)*alpha)+start);
- end;
- CFrameZero=function()
- return CFrame.new(Vector3.new());
- end;
- local function a()
- local t=tick();
- local l=t%1*3;
- local t=.5*math.pi*(l%1);
- if l<1 then
- return Color3.new(1,1-math.cos(t),1-math.sin(t));
- elseif l<2 then
- return Color3.new(1-math.sin(t),1,1-math.cos(t));
- else
- return Color3.new(1-math.cos(t),1-math.sin(t),1);
- end;
- end;
- rad=function(value)
- return math.rad(value);
- end;
- CFAngles=function(Vector)
- return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z));
- end;
- AnimStat={
- lerpSpeed=.2;
- lerpSpeed2=.35;
- lerpTween=0;
- };
- Joints={
- c.HumanoidRootPart.RootJoint;
- c.Torso.Neck;
- c.Torso['Left Shoulder'];
- c.Torso['Right Shoulder'];
- c.Torso['Left Hip'];
- c.Torso['Right Hip'];
- };
- JointTargets={
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- };
- prepareCharacter=function()
- music=Instance.new('Sound',c.HumanoidRootPart);
- music.SoundId='rbxassetid://394144904';
- music.Looped=true;
- music.Volume=.6;
- music2=Instance.new('Sound',c);
- music2.SoundId='rbxassetid://259613634';
- music2.Looped=true;
- music2.Volume=1;
- music3=Instance.new('Sound',c.HumanoidRootPart);
- music3.SoundId='rbxassetid://266530326';
- music3.Looped=true;
- music3.Volume=1;
- music4=Instance.new('Sound',c.HumanoidRootPart);
- music4.SoundId='rbxassetid://155738252';
- music4.Looped=true;
- music4.Volume=1;
- music5=Instance.new('Sound',c.HumanoidRootPart);
- music5.SoundId='rbxassetid://215391212';
- music5.Looped=true;
- music5.Volume=1;
- human.WalkSpeed=0;
- human.JumpPower=0;
- for i,v in pairs(c:children())do
- if v:isA'Hat'then v:Destroy();end;
- if v:FindFirstChild'roblox'then v.roblox:Destroy();end;
- if v.Name=='Head'then v.Transparency=1 for _,x in pairs(v:children())do if x.ClassName=='Sound'then x:Destroy();end;end;end;
- if v:FindFirstChild'face'then v.face:Destroy();end;
- if v:isA'Part'then v.BrickColor=BrickColor.new'White';end;
- end
- local shirt=c:FindFirstChild'Shirt'or Instance.new('Shirt',c);
- local pants=c:FindFirstChild'Pants'or Instance.new('Pants',c);
- shirt.ShirtTemplate='rbxassetid://334755544';
- pants.PantsTemplate='rbxassetid://315964941';
- local Head=Instance.new('Part',c);
- Head.Size=Vector3.new(2.5,2.5,1);
- Head.Transparency=1;
- Head:BreakJoints();
- local hw=Instance.new('Weld',c.Head);
- hw.Part0=c.Head;
- hw.Part1=Head;
- hw.C0=CFrame.new(0,.3,0);
- faceDecal=Instance.new('Decal',Head);
- faceDecal.Face=Enum.NormalId.Front;
- faceDecal.Texture='rbxassetid://400387868';
- local backDecal=Instance.new('Decal',Head);
- backDecal.Face=Enum.NormalId.Back;
- backDecal.Texture='rbxassetid://400377807';
- local mes=Instance.new('BlockMesh',Head);
- mes.Scale=Vector3.new(1,1,.4);
- local Anim=human:FindFirstChild'Animator'
- if Anim then Anim:Destroy();end;
- end;
- setJointCFrames=function(table)
- for i=1,#table do
- JointTargets[i]=table[i];
- end;
- end;
- triWave=function(x)
- local pi2=math.pi/2;
- return math.abs((x/pi2)%4-2)-1;
- end;
- setLerp=function(speed)
- AnimStat.lerpSpeed=speed;
- end;
- setTween=function(tween)
- AnimStat.lerpTween=tween;
- end;
- playSound=function(id,part,vol,pitch)
- local vol=vol or 1;
- local pitch=pitch or 1;
- local x=Instance.new('Sound',part);
- x.Volume=vol;
- x.Pitch=pitch;
- x.SoundId='rbxassetid://'..id;
- spawn(function()
- wait();
- x:Play();
- wait(x.TimeLength+.2);
- x:Destroy();
- end);
- end;
- lerpBoom=function()
- if Cone then
- Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
- cMesh.Scale=Vector3.new(20,20+c.HumanoidRootPart.Velocity.magnitude/10,20);
- Cone.Transparency=1-c.HumanoidRootPart.Velocity.magnitude/1000;
- else
- Cone=Instance.new('Part',c);
- Cone.Anchored=true;
- Cone.CanCollide=false;
- Cone.Transparency=math.random(50,70)/100;
- Cone.Size=Vector3.new(1,1,1);
- Cone.CFrame=CFrame.new(c.HumanoidRootPart.CFrame.p,c.HumanoidRootPart.CFrame.p+c.HumanoidRootPart.Velocity)*CFrame.Angles(-math.pi/2,0,0);
- cMesh=Instance.new('SpecialMesh',Cone);
- cMesh.MeshId='rbxassetid://1033714';
- cMesh.Scale=Vector3.new(20,50,20);
- end;
- end;
- noBoom=function()
- if Cone then local x=Cone Cone=nil;
- for i=1,20 do
- wait();
- x.Mesh.Scale=x.Mesh.Scale+Vector3.new(-.5,1,-.5);
- x.Transparency=x.Transparency+1/30;
- end;
- end;
- end;
- gasterBlast=function(tCFrame,aimPos,charge)
- local aimTarget;
- if aimPos then
- aimTarget=CFrame.new(tCFrame,aimPos);
- else
- aimTarget=tCFrame;
- end;
- local gast=Instance.new('Part',c);
- gast.Size=Vector3.new(12,.2,12);
- gast.CanCollide=false;
- gast.Anchored=true;
- gast.Transparency=1;
- if charge then
- playSound(400523331,gast,math.random(90,110)/100);
- end;
- wait();
- for i=1,2 do
- local decal=Instance.new('Decal',gast);
- decal.Texture='rbxassetid://323497117';
- if i==1 then
- decal.Face=Enum.NormalId.Top;
- else
- decal.Face=Enum.NormalId.Bottom;
- end;
- end;
- gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
- spawn(function()
- local tarCFrame=gast.CFrame;
- local isLooping=true;
- spawn(function()
- while rs.RenderStepped:wait()and isLooping do
- gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
- end;
- end);
- for i=1,30 do
- wait();
- tarCFrame=gast.CFrame:lerp(aimTarget,.24);
- end;
- playSound(340722848,gast,math.random(90,110)/100);
- isLooping=false;
- wait(.08);
- local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
- local _,pos=workspace:FindPartOnRay(ray,c);
- local dis=(aimTarget.p-pos).magnitude;
- local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
- local rayPart=Instance.new('Part',rayModel);
- rayPart.Material='Neon';
- rayPart.FormFactor='Custom';
- rayPart.Color=a();
- rayPart.Anchored=true;
- rayPart.CanCollide=false;
- rayPart.Shape='Cylinder';
- rayPart.Size=Vector3.new(dis+400,8,8);
- rayPart.CFrame=rayCFrame;
- gast:Destroy();
- end);
- end;
- largegasterBlast=function(tCFrame,aimPos)
- local aimTarget;
- if aimPos then
- aimTarget=CFrame.new(tCFrame,aimPos);
- else
- aimTarget=tCFrame;
- end;
- local gast=Instance.new('Part',c);
- gast.Size=Vector3.new(25,.2,25);
- gast.CanCollide=false;
- gast.Anchored=true;
- gast.Transparency=1;
- playSound(400523331,gast,math.random(85,97)/100);
- wait();
- for i=1,2 do
- local decal=Instance.new('Decal',gast);
- decal.Texture='rbxassetid://323497117';
- if i==1 then
- decal.Face=Enum.NormalId.Top;
- else
- decal.Face=Enum.NormalId.Bottom;
- end;
- end;
- gast.CFrame=CFrame.new(aimTarget.p-Vector3.new(math.sin(tick()*10)*10,20,math.cos(tick()*10)*10));
- spawn(function()
- local tarCFrame=gast.CFrame;
- local isLooping=true;
- spawn(function()
- while rs.RenderStepped:wait()and isLooping do
- gast.CFrame=gast.CFrame:lerp(tarCFrame,.6/(Debounces.FPS/60));
- end;
- end);
- for i=1,40 do
- wait();
- tarCFrame=gast.CFrame:lerp(aimTarget,.18);
- end;
- playSound(340722848,gast,math.random(80,95)/100);
- isLooping=false;
- wait(.08);
- local ray=Ray.new(aimTarget.p,aimTarget.lookVector.unit*999);
- local _,pos=workspace:FindPartOnRay(ray,c);
- local dis=(aimTarget.p-pos).magnitude;
- local rayCFrame=CFrame.new(gast.CFrame.p+(pos-gast.CFrame.p).unit*(dis/2+200),gast.CFrame.p+(pos-gast.CFrame.p).unit*dis*2)*CFrame.Angles(0,math.pi/2,0);
- local rayPart=Instance.new('Part',rayModel);
- rayPart.Material='Neon';
- rayPart.FormFactor='Custom';
- rayPart.Color=a();
- rayPart.Anchored=true;
- rayPart.CanCollide=false;
- rayPart.Shape='Cylinder';
- rayPart.Size=Vector3.new(dis+400,17,17);
- rayPart.CFrame=rayCFrame;
- gast:Destroy();
- end);
- end;
- prepareCharacter();
- spawn(function()
- local sine=0;
- while wait()do
- if Debounces.isFlash then
- if(tick()*8)%2>1 then
- faceDecal.Texture='rbxassetid://400377503';
- else
- faceDecal.Texture='rbxassetid://400387868';
- end;
- else
- faceDecal.Texture='rbxassetid://400387868';
- end;
- if Debounces.isAttacking==false and Debounces.isMoving==false and Debounces.Debounce==false and Debounces.isJumping==false then
- setLerp(.8);
- local spasm=math.abs(math.sin(tick()*20))*1.1;
- local spasm2=math.abs(math.sin(tick()*20-2))*1.1;
- local spasm3=math.abs(math.sin(tick()*20-2.3))*1.1;
- setJointCFrames({
- CFrame.new(Vector3.new(0,0-spasm,0))*CFAngles(Vector3.new(0,0,0));
- CFrame.new(Vector3.new(0,1.5,0))*CFAngles(Vector3.new(-0.011,-0.502,-1.177));
- CFrame.new(Vector3.new(-1.5-spasm2^2/3,-0.001,0))*CFAngles(Vector3.new(-2.344,7.899,-2.82+spasm3^2*-60));
- CFrame.new(Vector3.new(1.569+spasm2^2/3,0,-0.1))*CFAngles(Vector3.new(4.822,1.123,6.383+spasm3^2*60));
- CFrame.new(Vector3.new(-0.61,-2+spasm/1.01,-.15))*CFAngles(Vector3.new(-2.206,0.767,-0.582));
- CFrame.new(Vector3.new(0.55,-2+spasm/1.01,-.1))*CFAngles(Vector3.new(-0.026,0.463,3.184));
- });
- elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==false and Debounces.isJumping==false then
- sine=tick()*18;
- human.WalkSpeed=120;
- setLerp(.35);
- setJointCFrames({
- CFrame.new(Vector3.new(0,math.sin(sine)/50-.3,0))*CFAngles(Vector3.new(-30-math.sin(sine*2)*3,math.sin(sine*2)*15,0));
- CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
- CFrame.new(Vector3.new(-1.5,-0.001,0.2+math.sin(sine*2+math.pi)*1.2))*CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90,0,-15));
- CFrame.new(Vector3.new(1.5,-0.001,0.2+math.sin(sine*2)*1.2))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-90,-0.001,14.999));
- CFrame.new(Vector3.new(-0.501,-2+math.cos(sine*2+math.pi)/3,.3+math.sin(sine*2)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-70,0,-0.001));
- CFrame.new(Vector3.new(0.499,-2+math.cos(sine*2)/3,.3+math.sin(sine*2+math.pi)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*70,0,0));
- });
- elseif Debounces.isAttacking==false and Debounces.isMoving==true and Debounces.Debounce==false and Debounces.isSprinting==true and Debounces.isJumping==false then
- sine=tick()*28;
- human.WalkSpeed=400;
- lerpBoom();
- setLerp(.65);
- setJointCFrames({
- CFrame.new(Vector3.new(0,math.sin(sine)/50-.3,0))*CFAngles(Vector3.new(-30-math.sin(sine*2)*3,math.sin(sine*2)*15,0));
- CFrame.new(Vector3.new(0,1.48,0.099))*CFAngles(Vector3.new(14.999,-0.001,0));
- CFrame.new(Vector3.new(-1.5,-0.001,0.2+math.sin(sine*2+math.pi)*1.2))*CFAngles(Vector3.new(-25.001+math.sin(sine*2+math.pi)*-90,0,-15));
- CFrame.new(Vector3.new(1.5,-0.001,0.2+math.sin(sine*2)*1.2))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-90,-0.001,14.999));
- CFrame.new(Vector3.new(-0.501,-2+math.cos(sine*2+math.pi)/3,.3+math.sin(sine*2)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*-70,0,-0.001));
- CFrame.new(Vector3.new(0.499,-2+math.cos(sine*2)/3,.3+math.sin(sine*2+math.pi)))*CFAngles(Vector3.new(-25+math.sin(sine*2)*70,0,0));
- });
- elseif Debounces.isJumping==true and Debounces.Debounce==false then
- setLerp(.14);
- human.WalkSpeed=45;
- setJointCFrames({
- CFrame.new(Vector3.new(0,0,0))*CFAngles(Vector3.new(-8,0,0));
- CFrame.new(Vector3.new(0,1.5,-0.15))*CFAngles(Vector3.new(-10.138,3.687,0.306));
- CFrame.new(Vector3.new(-1.23,0.069,-0.56))*CFAngles(Vector3.new(50.809,0.672,18.704));
- CFrame.new(Vector3.new(0.929,-0.031,-1.0912))*CFAngles(Vector3.new(63.00,13.85,-36.416));
- CFrame.new(Vector3.new(-0.63,-1.82,-0.74))*CFAngles(Vector3.new(31.324,3.424,-1.249));
- CFrame.new(Vector3.new(0.619,-1.331,0.82))*CFAngles(Vector3.new(-59.644,0.998,9.776));
- });
- end;
- end;
- end);
- human.Changed:connect(function(prop)
- if prop=='MoveDirection'then
- if human.MoveDirection.magnitude>.02 then
- Debounces.isMoving=true;
- else
- Debounces.isMoving=false;
- end;
- end;
- end);
- uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode==Enum.KeyCode.Slash then
- local finishEvent=nil;
- Debounces.isTyping=true
- finishEvent=uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode==Enum.KeyCode.Return or InputObj.UserInputType==Enum.UserInputType.MouseButton1 then
- Debounces.isTyping=false;
- finishEvent:disconnect();
- end;
- end);
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='0'then
- Debounces.isSprinting=true;
- playSound(160248522,c.Torso);
- for i=1,3 do
- spawn(function()
- local e=Instance.new('Part',c);
- e.Size=Vector3.new(1,1,1);
- e.Material='Neon';
- e.Color=a();
- e.Anchored=true;
- e.CFrame=c.HumanoidRootPart.CFrame*CFrame.Angles(0,0,-math.pi/2);
- e.CanCollide=false;
- local rm=Instance.new('SpecialMesh',e);
- rm.MeshType='FileMesh';
- rm.MeshId='rbxassetid://3270017';
- rm.Scale=Vector3.new(3.2,3.2,10);
- for x=1,30 do
- wait();
- rm.Scale=rm.Scale:lerp(Vector3.new(i*30,i*30,(4-i)*450),.1);
- e.Transparency=x/30+.5;
- end;
- end);
- end;
- c.HumanoidRootPart.Velocity=c.HumanoidRootPart.CFrame.lookVector*200;
- end;
- end);
- mouse.KeyUp:connect(function(key)
- if key=='0'then
- Debounces.isSprinting=false;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='v'then
- playSound(201858087,c.Torso,math.random(90,120)/100);
- local oldPos=c.HumanoidRootPart.CFrame.p;
- local mHit=mouse.Hit.p;
- for i=1,2 do
- spawn(function()
- local pos
- if i==1 then pos=oldPos else pos=mHit end
- local p=Instance.new('Part',workspace);
- p.Anchored=true;
- p.CanCollide=false;
- p.Color=a();
- p.FormFactor='Custom';
- p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
- p.Transparency=.4;
- p.Size=Vector3.new(20,1000,20);
- for i=1,20 do
- wait();
- p.Transparency=.4+(i/10)*.6;
- p.Size=Vector3.new(20-i*1.5,1000,20-i*1.5);
- p.CFrame=CFrame.new(pos+Vector3.new(0,500,0));
- end;
- p:Destroy();
- end);
- end;
- if Debounces.isMoving then
- c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(c.HumanoidRootPart.Velocity.x,mouse.Hit.p.y+4,c.HumanoidRootPart.Velocity.z));
- else
- c.HumanoidRootPart.CFrame=CFrame.new(mouse.Hit.p+Vector3.new(0,4,0),Vector3.new(oldPos.x,mouse.Hit.p.y+4,oldPos.z));
- end;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='r'then
- local pointTarget=mouse.Hit.p;
- for i=1,20 do
- wait();
- gasterBlast(CFrame.new(pointTarget+Vector3.new(math.sin(tick()*10)*20,5+math.abs(math.sin(tick()*5)*10),math.cos(tick()*10)*20),pointTarget));
- end;
- wait();
- largegasterBlast(CFrame.new(pointTarget+Vector3.new(0,35,0),pointTarget));
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='f'then
- local pointTarget=mouse.Hit.p;
- for i=1,20 do
- wait();
- gasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(math.sin(i/2)*(20-i),math.cos(i/2)*(20-i),-i)));
- end;
- largegasterBlast(CFrame.new(c.HumanoidRootPart.CFrame.p+Vector3.new(0,50,0),pointTarget):toWorldSpace(CFrame.new(0,0,-25)));
- end;
- end);
- mouse.Button1Down:connect(function()
- Debounces.isFlash=true;
- end);
- mouse.Button1Up:connect(function()
- Debounces.isFlash=false;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='k'then
- if music.isPlaying then music:Stop();else music:Play();end;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='j'then
- if music2.isPlaying then music2:Stop();else music2:Play();end;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='l'then
- if music3.isPlaying then music3:Stop();else music3:Play();end;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='p'then
- if music4.isPlaying then music4:Stop();else music4:Play();end;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='o'then
- if music5.isPlaying then music4:Stop();else music5:Play();end;
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='e'then
- gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p,true);
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='c'then
- largegasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='q'then
- for i=1,5 do
- wait();
- gasterBlast(c.Torso.CFrame.p+Vector3.new(math.sin(tick()*10)*10,12,math.cos(tick()*10)*10),mouse.Hit.p);
- end;
- largegasterBlast(c.Torso.CFrame.p+Vector3.new(0,25,0),mouse.Hit.p);
- end;
- end);
- mouse.KeyDown:connect(function(key)
- if key=='t'then
- local pointTarget=mouse.Hit.p;
- for i=1,20 do
- gasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/40)*i))*(20-i),5+i,math.cos(math.deg((360/40)*i))*(20-i)),pointTarget);
- end;
- wait(.2);
- for i=1,10 do
- largegasterBlast(pointTarget+Vector3.new(math.sin(math.deg((360/20)*i))*25,20,math.cos(math.deg((360/20)*i))*25),pointTarget);
- end;
- end;
- end);
- human.StateChanged:connect(function(os,ns)
- if c.HumanoidRootPart.Velocity.Y<.1 and Debounces.isJumping==true and ns==Enum.HumanoidStateType.Landed then
- Debounces.isJumping=false;
- end;
- end);
- for i=1,#Joints do
- Joints[i].C1=CFrameZero();
- end;
- rs.RenderStepped:connect(function()
- Debounces.FPS=1/rs.RenderStepped:wait();
- if Debounces.FPS<30 then
- Debounces.FPS=30;
- end;
- if Debounces.isSprinting then
- lerpBoom();
- else
- noBoom();
- end;
- for _,v in pairs(rayModel:children())do
- v.Transparency=v.Transparency+.06/(Debounces.FPS/60);
- if v.Transparency>.99 then v:Destroy();return;end;
- v.CanCollide=true;
- local tParts=v:GetTouchingParts();
- v.CanCollide=false;
- local vCFrame=v.CFrame;
- v.Size=v.Size+Vector3.new(0,1,1)/(Debounces.FPS/60);
- v.CFrame=vCFrame;
- for _,x in pairs(tParts)do
- if x and x.Parent and x.Parent:FindFirstChild'Humanoid'and x.Parent.Humanoid:isA'Humanoid'and x.Parent~=c then
- x.Parent.Humanoid:TakeDamage(1,2);
- end;
- end;
- end;
- local FPSLerp=AnimStat.lerpSpeed/(Debounces.FPS/60);
- for i=1,#Joints do
- Joints[i].C0=Joints[i].C0:lerp(JointTargets[i],FPSLerp);
- end;
- end);
- end)
- Sans.Name = "Sans"
- Sans.Parent = Frame
- Sans.BackgroundColor3 = Color3.new(1, 1, 1)
- Sans.Position = UDim2.new(0, 0, 0.470851988, 0)
- Sans.Size = UDim2.new(0, 55, 0, 50)
- Sans.Font = Enum.Font.SourceSans
- Sans.Text = "Sans"
- Sans.TextColor3 = Color3.new(0, 0, 0)
- Sans.TextSize = 14
- BUTTONNAMEHERE!.MouseButton1Down:connect(function()
- -- BurnLegion strikes again!
- -- wongxd, this is why you DON'T goto Voidacity's
- -- SLPM has been absent, so I've taken it upon myself to make something
- --------------------------------------------------------
- pls = game:GetService'Players'
- rs = game:GetService'RunService'
- uinps = game:GetService'UserInputService'
- lp = pls.LocalPlayer
- mouse = lp:GetMouse()
- c = lp.Character
- human = c.Humanoid
- human.MaxHealth = 50
- wait()
- human.Health = 50
- c.Health:Destroy()
- --------------------------------------------------------
- Debounces = {
- AnimationCycles = 0;
- FPS = 0;
- scalingDamage = false;
- damageLevel = 0;
- attackNumber = 0;
- isAttacking = false;
- isMoving = false;
- isSprinting = false;
- isBoosting = false;
- isPassive = false;
- isTyping = false;
- }
- --------------------------------------------------------
- numLerp = function(start, goal, alpha)
- return(((goal - start) * alpha) + start)
- end
- CFrameZero = function()
- return CFrame.new(Vector3.new())
- end
- rad = function(value)
- return math.rad(value)
- end
- CFAngles = function(Vector)
- return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
- end
- --------------------------------------------------------
- AnimStat = {
- lerpSpeed = .2;
- lerpSpeed2 = .35;
- lerpTween = 0;
- }
- Joints = {
- c.HumanoidRootPart.RootJoint;
- c.Torso.Neck;
- c.Torso['Left Shoulder'];
- c.Torso['Right Shoulder'];
- c.Torso['Left Hip'];
- c.Torso['Right Hip'];
- }
- JointTargets = {
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- CFrameZero();
- }
- --------------------------------------------------------
- BodyColors = {
- HeadColor = BrickColor.new("Institutional white");
- LeftArmColor = BrickColor.new("Institutional white");
- RightArmColor = BrickColor.new("Institutional white");
- LeftLegColor = BrickColor.new("Institutional white");
- RightLegColor = BrickColor.new("Institutional white");
- TorsoColor = BrickColor.new("Mid gray");
- }
- Customs = {
- Face = "http://www.roblox.com/asset/?id=8560915";
- Shirt = "http://www.roblox.com/asset/?id=334781688";
- Pants = "http://www.roblox.com/asset/?id=335237283";
- }
- --------------------------------------------------------
- prepareCharacter = function()
- local transPoints = {
- NumberSequenceKeypoint.new(0,.819,.0375),
- NumberSequenceKeypoint.new(.207,.594,.0187),
- NumberSequenceKeypoint.new(.4,.55,.031),
- NumberSequenceKeypoint.new(.57,.619,.05),
- NumberSequenceKeypoint.new(.76,.8,.0375),
- NumberSequenceKeypoint.new(1,1,0),
- }
- local sizePoints = {
- NumberSequenceKeypoint.new(0,.687,0),
- NumberSequenceKeypoint.new(.111,.875,0),
- NumberSequenceKeypoint.new(.327,1.19,0),
- NumberSequenceKeypoint.new(.646,1.56,0),
- NumberSequenceKeypoint.new(.805,1.37,0),
- NumberSequenceKeypoint.new(.905,1.06,0),
- NumberSequenceKeypoint.new(.968,.938,0),
- NumberSequenceKeypoint.new(.984,1.13,0),
- NumberSequenceKeypoint.new(1,1.62,0),
- }
- local Size = NumberSequence.new(sizePoints)
- local Transparency = NumberSequence.new(transPoints)
- rayModel = Instance.new("Model",c)
- efxBlock = Instance.new("Part",c)
- efxBlock.BrickColor = BrickColor.new("Cyan")
- efxBlock.Material = "Neon"
- efxBlock.FormFactor = "Custom"
- efxBlock.Transparency = .3
- efxBlock.Size = Vector3.new(.3,.3,.3)
- local mesh = Instance.new("SpecialMesh",efxBlock)
- mesh.MeshType = Enum.MeshType.Sphere
- mesh.Scale = Vector3.new(1,1,1)
- light = Instance.new("PointLight",c.Head)
- light.Range = 10
- light.Color = Color3.new(0,200/255,1)
- light.Shadows = false
- local particles = Instance.new("ParticleEmitter",efxBlock)
- particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
- particles.LightEmission = .95
- particles.Size = Size
- particles.Name = "Fire"
- particles.Transparency = Transparency
- particles.LockedToPart = true
- particles.VelocityInheritance = .5
- particles.LockedToPart = true
- particles.Rate = 70
- particles.Texture = "rbxassetid://56561915"
- particles.Lifetime = NumberRange.new(2,2)
- particles.RotSpeed = NumberRange.new(100,100)
- particles.Speed = NumberRange.new(7,7)
- script.Parent = efxBlock
- fire = particles
- local offset = Vector3.new(-0.11, .23, -0.5)
- local weld = Instance.new("Weld",c.Head)
- weld.Part0 = c.Head
- weld.Part1 = efxBlock
- weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
- efxBlock.Parent = c
- local music = Instance.new("Sound",c)
- music.SoundId = "rbxassetid://316012176"
- music.Looped = true
- music.Volume = 0
- fight = music
- local music2 = Instance.new("Sound",c)
- music2.SoundId = "rbxassetid://316014309"
- music2.Looped = true
- music2.Volume = 0
- sans = music2
- pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
- pointGyro.P = 1e7
- pointGyro.D = 1e3
- pointGyro.MaxTorque = Vector3.new(0,1e7,0)
- animator = c.Humanoid:FindFirstChild("Animator")
- if animator then
- animator:Destroy()
- end
- c.Torso.roblox:Destroy()
- for i,v in pairs (c.Head:children()) do
- if v.ClassName == "Sound" then
- v:Destroy()
- end
- end
- for i = 1,#Joints do
- Joints[i].C1 = CFrame.new(Vector3.new())
- end
- human.WalkSpeed = 0
- human.JumpPower = 0
- end
- uinps.InputBegan:connect(function(InputObject)
- if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
- Debounces.isPassive = not Debounces.isPassive
- end
- end)
- setJointCFrames = function(table)
- for i = 1,#table do
- JointTargets[i] = table[i]
- end
- AnimationCycles = 0
- end
- setLerp = function(speed)
- AnimStat.lerpSpeed = speed
- end
- setTween = function(tween)
- AnimStat.lerpTween = tween
- end
- takeDamage = function(position,damage,distance,platformStand)
- for i,v in pairs (pls:children()) do
- if v.ClassName == "Player" and v:FindFirstChild("Character") then
- local torso = v.Character:FindFirstChild("Torso")
- if torso and (torso.Position - position).magnitude < distance then
- v.Character.Humanoid:TakeDamage(damage)
- if platformStand == true then
- v.Character.PlatformStand = platformStand
- end
- end
- end
- end
- end
- --------------------------------------------------------
- prepareCharacter()
- --------------------------------------------------------
- spawn(function()
- local sine = 0
- while wait() do
- pointGyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p - c.HumanoidRootPart.CFrame.p).unit * 100)
- if Debounces.isAttacking == false and Debounces.isMoving == false and Debounces.isBoosting == false then
- setLerp(.1)
- if Debounces.isPassive == true then
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901 + math.sin(tick() * 1.5)/45, 0)) * CFAngles(Vector3.new(-22.001, 0, 0));
- CFrame.new(Vector3.new(-0.001, 1.52 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(-10.861 + math.sin((-tick() + 2) * 1.5) * 5, 13.765, -1.658));
- CFrame.new(Vector3.new(-1.5, -0.1 + math.sin(tick() * 1.5)/15, -0.801)) * CFAngles(Vector3.new(44.999, 0, 0));
- CFrame.new(Vector3.new(1.7, 0.2 + math.sin(tick() * 1.5)/15, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 15));
- CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.511, 3.84, 0.489));
- CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, -0.001));
- })
- else
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0 + math.sin(tick() * 1.5)/25, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 1.5 + math.sin(tick() * -1.5)/35, math.sin(tick() * 1.5)/35)) * CFAngles(Vector3.new(1.554 + math.sin((-tick() + 2) * 1.5) * 5, -0.001, -0.001));
- CFrame.new(Vector3.new(-1.06, -0.03 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, 0, 29.51));
- CFrame.new(Vector3.new(1.059, -0.031 + math.sin(tick() * 1.5)/25, 0.449)) * CFAngles(Vector3.new(-29.511, -3.842, -29.511));
- CFrame.new(Vector3.new(-0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(0, 8.885, 0));
- CFrame.new(Vector3.new(0.49, -2, -0.05/1.5)) * CFAngles(Vector3.new(-0.001, -8.886, 0));
- })
- end
- elseif Debounces.isAttacking == false and Debounces.isMoving == true and Debounces.isBoosting == false then
- sine = sine + math.rad(12)
- human.WalkSpeed = 15
- setLerp(.15)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, math.sin(sine) * -2.5, 0));
- CFrame.new(Vector3.new(0, 1.499, -0.04)) * CFAngles(Vector3.new(-5.676, -0.001 - math.sin(sine) * 3, -0.001));
- CFrame.new(Vector3.new(-1.97, 0 + math.sin(sine + .5)/20, 0.1 + math.sin(-sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(sine) * 23, 0, 0));
- CFrame.new(Vector3.new(1.97, 0 - math.sin(sine + .5)/20, 0.1 + math.sin(sine)/2)/1.3) * CFAngles(Vector3.new(-5 + math.sin(-sine) * 23, 0, 0));
- CFrame.new(Vector3.new(-0.5, -1.93 - math.cos(sine)/8.7, 0.2 + math.sin(sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(-sine) * 30, 0, 0));
- CFrame.new(Vector3.new(0.5, -1.93 + math.cos(sine)/8.7, 0.2 + math.sin(-sine)/2)) * CFAngles(Vector3.new(-15 + math.sin(sine) * 30, 0, 0));
- })
- end
- if Debounces.scalingDamage == true then
- takeDamage(c.HumanoidRootPart.Position,Debounces.damageLevel,8,true)
- end
- end
- end)
- human.Changed:connect(function(prop)
- if prop == "MoveDirection" then
- if human.MoveDirection.magnitude > .02 then
- Debounces.isMoving = true
- else
- Debounces.isMoving = false
- end
- end
- end)
- uinps.InputBegan:connect(function(InputObject)
- if InputObject.KeyCode == Enum.KeyCode.A and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
- Debounces.isBoosting = true
- Debounces.damageLevel = 10
- Debounces.scalingDamage = true
- local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
- setLerp(.15)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 20));
- CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-10.372, 28.758, -1.837));
- CFrame.new(Vector3.new(-0.7, -0.2, -0.801)) * CFAngles(Vector3.new(45, 0, 45));
- CFrame.new(Vector3.new(1.7, 0.2, 0.199)) * CFAngles(Vector3.new(-15.001, -15.001, 45));
- CFrame.new(Vector3.new(-0.3, -2, 0.2)) * CFAngles(Vector3.new(-11.283, -17.801, 19.495));
- CFrame.new(Vector3.new(0.9, -2, -0.201)) * CFAngles(Vector3.new(15, -15, 29.999));
- })
- local boostSpeed = 250
- local efx = Instance.new("Sound",c.Head)
- efx.SoundId = "rbxassetid://200632875"
- efx.Pitch = math.random(1100,1300)/1000
- efx.Volume = .5
- efx:Play()
- spawn(function()
- wait(5)
- efx:Destroy()
- end)
- vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(1,0,0)).p).unit * boostSpeed
- vel.P = 1e3
- vel.MaxForce = Vector3.new(math.huge,0,math.huge)
- wait(.15)
- vel.P = 1000
- vel.MaxForce = Vector3.new(3000,0,3000)
- vel.Velocity = Vector3.new()
- wait(.3)
- setLerp(.3)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, 13));
- CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-30.239, 42.47, 11.879));
- CFrame.new(Vector3.new(-1.9, -0.2, -0.401)) * CFAngles(Vector3.new(44.999, 0, -45));
- CFrame.new(Vector3.new(1.5, 0.4, 0.599)) * CFAngles(Vector3.new(-62.058, -21.088, -15.383));
- CFrame.new(Vector3.new(-0.7, -1.8, 0.6)) * CFAngles(Vector3.new(-59.239, -26.158, -14.457));
- CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(-0.505, -14.478, -18.968));
- })
- wait(.2)
- vel:Destroy()
- Debounces.damageLevel = 0
- Debounces.scalingDamage = false
- Debounces.isBoosting = false
- end
- end)
- uinps.InputBegan:connect(function(InputObject)
- if InputObject.KeyCode == Enum.KeyCode.D and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
- Debounces.isBoosting = true
- Debounces.damageLevel = 10
- Debounces.scalingDamage = true
- local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
- setLerp(.15)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -15));
- CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-13.603, -45.662, -6.645));
- CFrame.new(Vector3.new(-1.9, 0, -0.201)) * CFAngles(Vector3.new(31.935, -7.436, -60.853));
- CFrame.new(Vector3.new(1.9, 0, 0.399)) * CFAngles(Vector3.new(-3.644, -23.448, 59.102));
- CFrame.new(Vector3.new(-1.1, -1.8, 0)) * CFAngles(Vector3.new(-3.616, -11.936, -29.566));
- CFrame.new(Vector3.new(0.1, -1.6, -0.601)) * CFAngles(Vector3.new(1.943, -7.181, -32.528));
- })
- local boostSpeed = 250
- local efx = Instance.new("Sound",c.Head)
- efx.SoundId = "rbxassetid://200632875"
- efx.Pitch = math.random(1100,1300)/1000
- efx.Volume = .5
- efx:Play()
- spawn(function()
- wait(5)
- efx:Destroy()
- end)
- vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(-1,0,0)).p).unit * boostSpeed
- vel.P = 1e3
- vel.MaxForce = Vector3.new(math.huge,0,math.huge)
- wait(.15)
- vel.P = 1000
- vel.MaxForce = Vector3.new(3000,0,3000)
- vel.Velocity = Vector3.new()
- wait(.3)
- setLerp(.3)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 0, -13));
- CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
- CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
- CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
- CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
- CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
- })
- wait(.2)
- vel:Destroy()
- Debounces.damageLevel = 0
- Debounces.scalingDamage = false
- Debounces.isBoosting = false
- end
- end)
- uinps.InputBegan:connect(function(InputObject)
- if InputObject.KeyCode == Enum.KeyCode.W and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
- Debounces.isBoosting = true
- Debounces.damageLevel = 10
- Debounces.scalingDamage = true
- local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
- setLerp(.15)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-40.001, 0, 5));
- CFrame.new(Vector3.new(-0.001, 1.429, 0.2)) * CFAngles(Vector3.new(25.141, -8.347, 0.878));
- CFrame.new(Vector3.new(-1.5, 0, .101)) * CFAngles(Vector3.new(14.999, -0.001, 0));
- CFrame.new(Vector3.new(1.7, 0.199, -0.401)) * CFAngles(Vector3.new(28.08, -0.358, 21.087));
- CFrame.new(Vector3.new(-0.5, -1.8, 0.6)) * CFAngles(Vector3.new(-29.448, 3.57, -1.5));
- CFrame.new(Vector3.new(0.499, -1.6, -0.401)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
- })
- local boostSpeed = 250
- local efx = Instance.new("Sound",c.Head)
- efx.SoundId = "rbxassetid://200632875"
- efx.Pitch = math.random(1100,1300)/1000
- efx.Volume = .5
- efx:Play()
- spawn(function()
- wait(5)
- efx:Destroy()
- end)
- vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,1)).p).unit * boostSpeed
- vel.P = 1e3
- vel.MaxForce = Vector3.new(math.huge,0,math.huge)
- wait(.15)
- vel.P = 1000
- vel.MaxForce = Vector3.new(3000,0,3000)
- vel.Velocity = Vector3.new()
- wait(.3)
- setLerp(.3)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -0.901, 0)) * CFAngles(Vector3.new(-22.001, 40, -13));
- CFrame.new(Vector3.new(-0.001, 1.52, 0)) * CFAngles(Vector3.new(-12.936, -46.206, -2.327));
- CFrame.new(Vector3.new(-1.9, 0.2, -0.201)) * CFAngles(Vector3.new(45, 0, -60));
- CFrame.new(Vector3.new(1.7, 0, -0.401)) * CFAngles(Vector3.new(14.035, -5.69, 35.342));
- CFrame.new(Vector3.new(-0.3, -1.8, 0.6)) * CFAngles(Vector3.new(-55.479, -10.612, 15.729));
- CFrame.new(Vector3.new(0.5, -1, -0.801)) * CFAngles(Vector3.new(14.999, -15, 14.999));
- })
- wait(.2)
- vel:Destroy()
- Debounces.damageLevel = 0
- Debounces.scalingDamage = false
- Debounces.isBoosting = false
- end
- end)
- uinps.InputBegan:connect(function(InputObject)
- if InputObject.KeyCode == Enum.KeyCode.S and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isBoosting == false and Debounces.isPassive == true and Debounces.isTyping == false then
- Debounces.isBoosting = true
- Debounces.damageLevel = 10
- Debounces.scalingDamage = true
- local vel = Instance.new("BodyVelocity",c.HumanoidRootPart)
- setLerp(.15)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -.3, 0)) * CFAngles(Vector3.new(15, 0, 0));
- CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-5.298, -1.305, -4.093));
- CFrame.new(Vector3.new(-1.7, 0, -0.201)) * CFAngles(Vector3.new(12.112, -6.562, -16.939));
- CFrame.new(Vector3.new(1.7, 0, -0.201)) * CFAngles(Vector3.new(8.817, 8.378, 20.465));
- CFrame.new(Vector3.new(-0.7, -1.8, 0.2)) * CFAngles(Vector3.new(-14.432, 3.06, -2.373));
- CFrame.new(Vector3.new(0.5, -1.8, -0.201)) * CFAngles(Vector3.new(-0.505, -14.478, -3.968));
- })
- local boostSpeed = 150
- local boostSpeed = 250
- local efx = Instance.new("Sound",c.Head)
- efx.SoundId = "rbxassetid://200632875"
- efx.Pitch = math.random(1100,1300)/1000
- efx.Volume = .5
- efx:Play()
- spawn(function()
- wait(5)
- efx:Destroy()
- end)
- vel.Velocity = (c.HumanoidRootPart.Position - c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-1)).p).unit * boostSpeed
- vel.P = 1e3
- vel.MaxForce = Vector3.new(math.huge,0,math.huge)
- wait(.15)
- vel.P = 1000
- vel.MaxForce = Vector3.new(3000,0,3000)
- vel.Velocity = Vector3.new()
- wait(.3)
- setLerp(.3)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(4, 0, 0));
- CFrame.new(Vector3.new(-0.001, 1.52, -0.03)) * CFAngles(Vector3.new(-20.081, 28.752, 3.598));
- CFrame.new(Vector3.new(-1.7, 0.2, -0.601)) * CFAngles(Vector3.new(59.51, -3.841, -14.511));
- CFrame.new(Vector3.new(1.7, 0.2, 0.399)) * CFAngles(Vector3.new(-47.597, -13.104, 17.887));
- CFrame.new(Vector3.new(-0.7, -1.4, 0.2)) * CFAngles(Vector3.new(-44.477, 3.836, -0.524));
- CFrame.new(Vector3.new(0.5, -1.4, -0.601)) * CFAngles(Vector3.new(-15.868, -12.953, -7.631));
- })
- wait(.2)
- vel:Destroy()
- Debounces.damageLevel = 0
- Debounces.scalingDamage = false
- Debounces.isBoosting = false
- end
- end)
- uinps.InputBegan:connect(function(InputObject)
- if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
- local isLooping = true
- uinps.InputEnded:connect(function(InputObject2)
- if InputObject2.KeyCode == Enum.KeyCode.Q then
- isLooping = false
- end
- end)
- while true do
- if isLooping == false then
- break
- end
- Debounces.attackNumber = Debounces.attackNumber + 1
- local aimPos = mouse.Hit.p
- local head = Instance.new("Part",c)
- head.Size = Vector3.new(12,.2,12)
- head.CanCollide = false
- head.Anchored = true
- head.Transparency = 1
- for i = 1,2 do
- local decal = Instance.new("Decal",head)
- decal.Texture = "rbxassetid://323497117"
- if i == 1 then
- decal.Face = Enum.NormalId.Top
- else
- decal.Face = Enum.NormalId.Bottom
- end
- end
- if Debounces.attackNumber%2 == 1 then
- head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
- else
- head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
- end
- spawn(function()
- local timer = 0
- while rs.RenderStepped:wait() do
- if timer >= 1.55 then
- break
- end
- head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
- timer = timer + 1/30/(Debounces.FPS/60)
- end
- head.CFrame = CFrame.new(head.CFrame.p,aimPos)
- local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
- local hit, pos = workspace:FindPartOnRay(ray,c)
- local dis = (head.CFrame.p - pos).magnitude
- local rayPart = Instance.new("Part",rayModel)
- rayPart.Material = "Neon"
- rayPart.FormFactor = "Custom"
- rayPart.BrickColor = BrickColor.new(1,1,1)
- rayPart.Anchored = true
- rayPart.CanCollide = false
- rayPart.Size = Vector3.new(7,7,dis + 400)
- local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
- rayPart.CFrame = rayCFrame
- head:Destroy()
- end)
- wait()
- local s = Instance.new("Sound",head)
- s.Volume = 1
- s.SoundId = "rbxassetid://332223043"
- s:Play()
- wait(.04)
- end
- end
- end)
- uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == false and Debounces.isPassive == true and Debounces.isTyping == false then
- Debounces.isAttacking = true
- local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
- local head = Instance.new("Part",c)
- head.Size = Vector3.new(18,.2,18)
- head.CanCollide = false
- head.Anchored = true
- head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
- head.Transparency = 1
- for i = 1,2 do
- local decal = Instance.new("Decal",head)
- decal.Texture = "rbxassetid://323497117"
- if i == 1 then
- decal.Face = Enum.NormalId.Top
- else
- decal.Face = Enum.NormalId.Bottom
- end
- end
- setLerp(.1)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
- CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
- CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
- CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
- CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
- })
- spawn(function()
- local timer = 0
- while rs.RenderStepped:wait() do
- if timer >= 1.55/.8 then
- break
- end
- head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
- timer = timer + 1/30/(Debounces.FPS/60)
- end
- head.CFrame = CFrame.new(head.CFrame.p,aimPos)
- local ray = Ray.new(head.CFrame.p,(aimPos - head.CFrame.p).unit * 999)
- local hit, pos = workspace:FindPartOnRay(ray,c)
- local dis = (head.CFrame.p - pos).magnitude
- local rayPart = Instance.new("Part",rayModel)
- rayPart.Material = "Neon"
- rayPart.FormFactor = "Custom"
- rayPart.Name = "Punch"
- rayPart.BrickColor = BrickColor.new(1,1,1)
- rayPart.Anchored = true
- rayPart.CanCollide = false
- rayPart.Size = Vector3.new(28,28,dis + 400)
- local rayCFrame = CFrame.new(head.CFrame.p + (aimPos - head.CFrame.p).unit * (dis/2 + 200),head.CFrame.p + (aimPos - head.CFrame.p).unit * dis * 2)
- rayPart.CFrame = rayCFrame
- head:Destroy()
- end)
- wait()
- local s = Instance.new("Sound",head)
- s.Volume = 1
- s.SoundId = "rbxassetid://332223043"
- s.Pitch = .8
- s:Play()
- wait(.75)
- setLerp(.17)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
- CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
- CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
- CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
- CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
- CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
- })
- wait(.5)
- Debounces.isAttacking = false
- end
- end)
- reflect = function(d,n)
- local i, n = -1 * d.unit, n.unit
- local dot = n:Dot(i)
- return 2*dot*n - i
- end
- makeReflectionBeam = function(pos,look,isCrit)
- local ray = Ray.new(pos,look)
- local hit,hitpos,norm = workspace:FindPartOnRay(ray,c)
- local e = Instance.new("Part",rayModel)
- e.Anchored = true
- e.CanCollide = false
- e.BrickColor = BrickColor.new("White")
- e.Material = "Neon"
- e.FormFactor = "Custom"
- e.Size = Vector3.new(6,6,(pos - hitpos).magnitude)
- if isCrit == true then
- e.Size = Vector3.new(16,16,(pos - hitpos).magnitude)
- e.Name = "Punch"
- end
- e.CFrame = CFrame.new(pos + (hitpos - pos)/2, pos)
- local e = Instance.new("Sound",c)
- if isCrit == true then
- e.Volume = .5
- else
- e.Volume = .3
- e.Pitch = 1.5
- end
- e.SoundId = "rbxassetid://200632875"
- e:Play()
- spawn(function()
- wait(6)
- e:Destroy()
- end)
- wait(.05)
- if hit ~= nil then
- newDir = reflect(look.unit,norm,isCrit)
- makeReflectionBeam(hitpos,newDir * 999,isCrit)
- end
- end
- uinps.InputBegan:connect(function(InputObject)
- if InputObject.KeyCode == Enum.KeyCode.Q and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
- local isLooping = true
- uinps.InputEnded:connect(function(InputObject2)
- if InputObject2.KeyCode == Enum.KeyCode.Q then
- isLooping = false
- end
- end)
- while true do
- if isLooping == false then
- break
- end
- Debounces.attackNumber = Debounces.attackNumber + 1
- local aimPos = mouse.Hit.p
- local head = Instance.new("Part",c)
- head.Size = Vector3.new(12,.2,12)
- head.CanCollide = false
- head.Anchored = true
- head.Transparency = 1
- for i = 1,2 do
- local decal = Instance.new("Decal",head)
- decal.Texture = "rbxassetid://323497117"
- if i == 1 then
- decal.Face = Enum.NormalId.Top
- else
- decal.Face = Enum.NormalId.Bottom
- end
- end
- if Debounces.attackNumber%2 == 1 then
- head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(8,8,.5)).p,aimPos)
- else
- head.CFrame = CFrame.new(c.Torso.CFrame:toWorldSpace(CFrame.new(-8,8,.5)).p,aimPos)
- end
- spawn(function()
- local timer = 0
- while rs.RenderStepped:wait() do
- if timer >= 1.55 then
- break
- end
- head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
- timer = timer + 1/30/(Debounces.FPS/60)
- end
- head.CFrame = CFrame.new(head.CFrame.p,aimPos)
- head:Destroy()
- makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,false)
- end)
- wait()
- local s = Instance.new("Sound",head)
- s.Volume = 1
- s.SoundId = "rbxassetid://332223043"
- s.Pitch = 1.02
- s:Play()
- wait(.2)
- end
- end
- end)
- uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.E and Debounces.isAttacking == false and Debounces.isSprinting == true and Debounces.isPassive == true and Debounces.isTyping == false then
- Debounces.isAttacking = true
- local aimPos = c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-999)).p
- local head = Instance.new("Part",c)
- head.Size = Vector3.new(18,.2,18)
- head.CanCollide = false
- head.Anchored = true
- head.CFrame = CFrame.new(c.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,-9)).p,aimPos)
- head.Transparency = 1
- for i = 1,2 do
- local decal = Instance.new("Decal",head)
- decal.Texture = "rbxassetid://323497117"
- if i == 1 then
- decal.Face = Enum.NormalId.Top
- else
- decal.Face = Enum.NormalId.Bottom
- end
- end
- setLerp(.1)
- setJointCFrames({
- CFrame.new(Vector3.new(0, 0, 0)) * CFAngles(Vector3.new(0, 0, 0));
- CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, -0.001, -0.001));
- CFrame.new(Vector3.new(-1.7, 0, 0)) * CFAngles(Vector3.new(-12.808, -28.88, -21.502));
- CFrame.new(Vector3.new(1.699, 1.2, 0.599)) * CFAngles(Vector3.new(-146.606, 16.571, 13.928));
- CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-60, 0, -0.001));
- CFrame.new(Vector3.new(0.5, -1.4, -0.4)) * CFAngles(Vector3.new(-15.001, -15.001, 0));
- })
- spawn(function()
- local timer = 0
- while rs.RenderStepped:wait() do
- if timer >= 1.55/.8 then
- break
- end
- head.CFrame = head.CFrame * CFrame.Angles(0,0,math.rad(timer * 25/(Debounces.FPS/60)))
- timer = timer + 1/30/(Debounces.FPS/60)
- end
- head.CFrame = CFrame.new(head.CFrame.p,aimPos)
- head:Destroy()
- makeReflectionBeam(head.CFrame.p,(head.CFrame.p - aimPos).unit * -999,true)
- end)
- wait()
- local s = Instance.new("Sound",head)
- s.Volume = 2
- s.SoundId = "rbxassetid://332223043"
- s.Pitch = .8
- s:Play()
- wait(.75)
- setLerp(.17)
- setJointCFrames({
- CFrame.new(Vector3.new(0, -.5, 0)) * CFAngles(Vector3.new(-20, 15, 0));
- CFrame.new(Vector3.new(0, 1.499, -0.09)) * CFAngles(Vector3.new(-11.676, 14.999, -0.001));
- CFrame.new(Vector3.new(-1.7, 0, 0.2)) * CFAngles(Vector3.new(-33.928, -4.374, -38.76));
- CFrame.new(Vector3.new(1.499, 0.4, -0.601)) * CFAngles(Vector3.new(74.335, 25.091, -6.155));
- CFrame.new(Vector3.new(-0.501, -1.601, 0.6)) * CFAngles(Vector3.new(-45, 0, -0.001));
- CFrame.new(Vector3.new(0.5, -1.8, -0.4)) * CFAngles(Vector3.new(-15, -15, 0));
- })
- wait(.5)
- Debounces.isAttacking = false
- end
- end)
- uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.Slash then
- local finishEvent = nil
- Debounces.isTyping = true
- finishEvent = uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.Return or InputObj.UserInputType == Enum.UserInputType.MouseButton1 then
- Debounces.isTyping = false
- finishEvent:disconnect()
- end
- end)
- end
- end)
- uinps.InputBegan:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.LeftShift then
- Debounces.isSprinting = true
- end
- end)
- uinps.InputEnded:connect(function(InputObj)
- if InputObj.KeyCode == Enum.KeyCode.LeftShift then
- Debounces.isSprinting = false
- end
- end)
- rs.RenderStepped:connect(function()
- Debounces.FPS = 1/rs.RenderStepped:wait()
- local FPSLerp = AnimStat.lerpSpeed/(Debounces.FPS/60)
- if Debounces.isPassive == false then
- fire.Enabled = false
- light.Range = 0
- fight:Pause()
- sans:Resume()
- efxBlock.Transparency = 1
- else
- fire.Enabled = true
- light.Range = 10
- fight:Resume()
- sans:Pause()
- efxBlock.Transparency = 0
- end
- for i,v in pairs (rayModel:children()) do
- if v.Transparency >= 1 then
- v:Destroy()
- else
- v.CanCollide = true
- local parts = v:GetTouchingParts()
- v.CanCollide = false
- for i = 1,#parts do
- if parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name ~= "Punch" then
- parts[i].Parent.Humanoid:TakeDamage(.5/(Debounces.FPS/60))
- elseif parts[i].Parent:FindFirstChild("Humanoid") and parts[i].Parent ~= c and v.Name == "Punch" then
- parts[i].Parent.Humanoid:TakeDamage(3.1/(Debounces.FPS/60))
- end
- end
- v.Size = v.Size + Vector3.new(1/(Debounces.FPS/60),1/(Debounces.FPS/60),0)
- v.Transparency = v.Transparency + .05/(Debounces.FPS/60)
- end
- end
- for i = 1,#Joints do
- Joints[i].C0 = Joints[i].C0:lerp(JointTargets[i], FPSLerp)
- end
- local sineval = math.sin(tick() * 2) * 3
- fire.Acceleration = Vector3.new(sineval,1,sineval)
- light.Brightness = math.sin(math.cos(tick() * 2) * 1.5)
- end)
- print(NOTE: I did this print, If the buttons wont work, add me! If the "Toriel" button will not work, there will be one that will work until i will add.)
- end)
- Gaster.Name = "Gaster"
- Gaster.Parent = Frame
- Gaster.BackgroundColor3 = Color3.new(1, 1, 1)
- Gaster.Position = UDim2.new(0.143426299, 0, 0.470851988, 0)
- Gaster.Size = UDim2.new(0, 55, 0, 50)
- Gaster.Font = Enum.Font.SourceSans
- Gaster.Text = "GaStEr"
- Gaster.TextColor3 = Color3.new(0, 0, 0)
- Gaster.TextSize = 14
- BUTTONNAMEHERE!.MouseButton1Down:connect(function()
- function clerp(c1,c2,al)
- local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
- local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
- for i,v in pairs(com1) do
- com1[i] = v+(com2[i]-v)*al
- end
- return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1)))
- end
- function weld(p0,p1,c0,c1,par)
- local w = Instance.new("Weld", par)
- w.Part0 = p0
- w.Part1 = p1
- w.C0 = c0 or CFrame.new()
- w.C1 = c1 or CFrame.new()
- return w
- end
- xmathrandom = math.random(-10,10)
- ymathrandom = math.random(2,10)
- zmathrandom = math.random(-10,10)
- player = game:service("Players").LocalPlayer
- char = player.Character
- local beat = true
- local beattime = 0.6
- suit = Instance.new("Model", char)
- suit.Name = "Gaster"
- local vDebounce = false
- Torso = char.Torso
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- local SHOT_SPEED = 100
- local SHOT_TIME = 1
- local NOZZLE_OFFSET = Vector3.new(0, 0, 0)
- mouse = player:GetMouse()
- shieldparent1 = nil
- shieldparent2 = nil
- shieldparent3 = nil
- shieldparent4 = nil
- shieldparent5 = nil
- shieldparent6 = nil
- switchvalue = 0
- RandomGasterRotaion = 0
- RandomPerseverance = 0
- ShieldValueToGaster = false
- ShieldValueToGasterDebounce = false
- RW, LW = Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- RSH, LSH = nil, nil
- LS = Torso["Left Shoulder"]
- LH = Torso["Left Hip"]
- RS = Torso["Right Shoulder"]
- RH = Torso["Right Hip"]
- RSH = char.Torso["Right Shoulder"]
- LSH = char.Torso["Left Shoulder"]
- function startup()
- RW.Part0 = char.Torso
- RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1 = CFrame.new(0, 0.5, 0)
- RW.Part1 = char["Right Arm"]
- RW.Parent = char.Torso
- LW.Part0 = char.Torso
- LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- LW.C1 = CFrame.new(0, 0.5, 0)
- LW.Part1 = char["Left Arm"]
- LW.Parent = char.Torso
- for i = 1,5 do wait()
- RW.C1= clerp(RW.C1*CFrame.new(-.1, -0, .1)*CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(-8),0),RW.C0,0.1)
- LW.C1= clerp(LW.C1*CFrame.new(.1, -0, .1)*CFrame.fromEulerAnglesXYZ(math.rad(-30),math.rad(8),0),LW.C0,0.1)
- end
- coroutine.resume(coroutine.create(function()
- wait(1)
- for i = 1,20 do wait()
- RW.C1= clerp(RW.C1*CFrame.new(-.15, -.05, 0.01)*CFrame.fromEulerAnglesXYZ(-math.rad(-.1),-math.rad(-.1),-math.rad(3)),RW.C0,0.1)
- LW.C1= clerp(LW.C1*CFrame.new(.15, -.05, 0.01)*CFrame.fromEulerAnglesXYZ(math.rad(.1),math.rad(.1),-math.rad(-3)),LW.C0,0.1)
- end
- for i = 1,20 do wait()
- RW.C1= clerp(RW.C1*CFrame.new(-.12, .05, -0.1)*CFrame.fromEulerAnglesXYZ(-math.rad(-4),-math.rad(-4),-math.rad(-4)),RW.C0,0.1)
- LW.C1= clerp(LW.C1*CFrame.new(.12, .05, -0.1)*CFrame.fromEulerAnglesXYZ(math.rad(4),math.rad(-4),-math.rad(4)),LW.C0,0.1)
- end
- end))
- end
- local Sounds = {
- Gaster = Instance.new("Sound"),
- Gun = Instance.new("Sound"),
- Switch = Instance.new("Sound"),
- Explode = Instance.new("Sound"),
- GasterTheme = Instance.new("Sound")
- }
- Sounds["Gaster"].SoundId = "rbxassetid://345052019"
- Sounds["Gaster"].Volume = 1
- Sounds["Gun"].SoundId = "http://www.roblox.com/asset?id=406913243"
- Sounds["Gun"].Volume = 1
- Sounds["Switch"].SoundId = "http://www.roblox.com/asset?id=388205678"
- Sounds["Switch"].Volume = 1
- Sounds["Explode"].SoundId = "rbxasset://sounds/collide.wav"
- Sounds["Explode"].Volume = .1
- Sounds["GasterTheme"].SoundId = "rbxassetid://323177357"
- Sounds["GasterTheme"].Volume = 99
- function PlaySound(soundname, pitch, where, looped)
- Sounds[soundname].Parent = where
- Sounds[soundname].Pitch = pitch
- Sounds[soundname].Looped= looped
- Sounds[soundname]:Play()
- local oldsound = Sounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- for i = 1,1 do
- if oldsound.Looped == true then return end
- oldsound:Destroy()
- end
- end))
- Sounds[soundname] = Sounds[soundname]:clone()
- end
- firstuse = true
- InUse = false
- JusticeAttack = false
- JusticeAttackDebounce = false
- IntegrityAttack = false
- IntegrityAttackDebounce = false
- PerseveranceAttack = false
- PerseveranceAttackDebounce = false
- KindnessAttack = false
- KindnessAttackDebounce = false
- DeterminationAttack = false
- DetermiantionAttackDebounce = false
- PatienceAttack = false
- PatienceAttackDebounce = false
- BraveryAttack = false
- BraveryAttackDebounce = false
- hand1DeterminationhealthDown = false
- hand2PerseverancehealthDown = false
- hand3PatiencehealthDown = false
- hand4IntegrityhealthDown = false
- hand5BraveryhealthDown = false
- hand6JusticehealthDown = false
- hand7KindnesshealthDown = false
- hand1Determination = Instance.new("Model", char)
- hand1Determination.Name ="Red"
- hand2Perseverance = Instance.new("Model", char)
- hand2Perseverance.Name ="Purple"
- hand3Patience = Instance.new("Model", char)
- hand3Patience.Name = "Cyan"
- hand4Integrity = Instance.new("Model", char)
- hand4Integrity.Name = "Blue"
- hand5Bravery = Instance.new("Model", char)
- hand5Bravery.Name = "Orange"
- hand6Justice = Instance.new("Model", char)
- hand6Justice.Name = "Yellow"
- hand7Kindness = Instance.new("Model", char)
- hand7Kindness.Name = "Green"
- function teleportPlayer(pos)
- if player == nil or player.Character == nil then return end
- char["Left Leg"].CFrame = CFrame.new(Vector3.new(pos.x, pos.y , pos.z))
- coroutine.resume(coroutine.create(function()
- TeleportPart = Instance.new("Part",workspace)
- TeleportPart.FormFactor="Custom"
- TeleportPart.Size=Vector3.new(0.8,0.8,0.8)
- TeleportPart.TopSurface = 0
- TeleportPart.BottomSurface = 0
- local colorc = {"Black"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- TeleportPart.BrickColor = Fire
- TeleportPart.CanCollide=false
- TeleportPart.Anchored=true
- TeleportPart.CFrame =(Torso.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- TeleportPartmesh = Instance.new("BlockMesh",TeleportPart)
- game.Debris:AddItem(TeleportPart,1.5)
- for i = 1,5 do wait()
- Torso.Transparency = Torso.Transparency - 0.2
- char["Left Arm"].Transparency = char["Left Arm"].Transparency - 0.2
- char["Left Leg"].Transparency = char["Left Leg"].Transparency - 0.2
- char["Right Arm"].Transparency = char["Right Arm"].Transparency - 0.2
- char["Right Leg"].Transparency = char["Right Leg"].Transparency - 0.2
- char.Head.Transparency = char.Head.Transparency - 0.2
- Crack1.Transparency = Crack1.Transparency - 0.2
- Crack2.Transparency = Crack2.Transparency - 0.2
- mouth.Transparency = mouth.Transparency - 0.2
- Eye1.Transparency = Eye1.Transparency - 0.2
- Eye2.Transparency = Eye2.Transparency - 0.2
- MEye1.Transparency = MEye1.Transparency - 0.2
- MEye2.Transparency = MEye2.Transparency - 0.2
- end
- Torso.Transparency = 0
- char["Left Arm"].Transparency = 0
- char["Left Leg"].Transparency = 0
- char["Right Arm"].Transparency = 0
- char["Right Leg"].Transparency = 0
- char.Head.Transparency = 0
- Crack1.Transparency = 0
- Crack2.Transparency = 0
- mouth.Transparency = 0
- Eye1.Transparency = 0
- Eye2.Transparency = 0
- MEye1.Transparency = 0
- MEye2.Transparency = 0
- end))
- for i = 1,7 do
- local parti = Instance.new("Part",Torso)
- parti.Anchored = true
- parti.TopSurface = 0
- parti.BottomSurface = 0
- parti.CanCollide = false
- parti.Size = Vector3.new(math.random(1,1),math.random(1,1),math.random(1,1))
- parti.CFrame = Torso.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- parti.Transparency = 0
- parti.BrickColor = BrickColor.new("Black")
- game.Debris:AddItem(parti,1.5)
- local pad = Vector3.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
- game:service("RunService").Stepped:connect(function()
- parti.Transparency = parti.Transparency + 0.05
- parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad
- end)
- end
- for i = 1,10 do wait()
- TeleportPartmesh.Scale=Vector3.new(2*i,2*i,2*i)
- TeleportPart.CFrame = clerp(TeleportPart.CFrame*CFrame.Angles(math.rad(10),math.rad(10),math.rad(10)),TeleportPart.CFrame,0.1)
- TeleportPart.Transparency = TeleportPart.Transparency + 0.1
- end
- end
- for _,v in pairs(char.Head:GetChildren()) do if v.ClassName=="Decal" then v:remove() end end
- for _,v in pairs(char:GetChildren()) do if v.ClassName=="Hat" then v:remove() end end
- for _,v in pairs(char:GetChildren()) do if v.ClassName=="Shirt" or v.ClassName=="Pants" or v.ClassName=="T-Shirt" or v.ClassName=="ShirtGraphic" or v.ClassName=="CharacterMesh" then v:remove() end end
- shirt=Instance.new("Shirt", char)
- pants=Instance.new("Pants", char)
- char.Head.BrickColor = BrickColor.new("Institutional white")
- shirt.ShirtTemplate="rbxassetid://535199088"
- pants.PantsTemplate="rbxassetid://532840011"
- --------Gaster's head
- mouth = Instance.new("Part",suit)
- mouth.Size = Vector3.new(0.2,.7,0.4)
- mouth.Transparency = 0
- mouth.BrickColor = BrickColor.new("Really black")
- mouth.CanCollide = false
- mouthMesh = Instance.new("SpecialMesh",mouth)
- mouthMesh.MeshType = "Sphere"
- mouthMesh.Scale = Vector3.new(2.5,0.1,0.8)
- weld(char.Head,mouth,CFrame.new(0,0,0),CFrame.new(0, .3, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- Crack2 = Instance.new("Part",suit)
- Crack2.Size = Vector3.new(0.2,.7,0.4)
- Crack2.Transparency = 0
- Crack2.BrickColor = BrickColor.new("Really black")
- Crack2.CanCollide = false
- Crack2Mesh = Instance.new("SpecialMesh",Crack2)
- Crack2Mesh.MeshType = "Sphere"
- Crack2Mesh.Scale = Vector3.new(0.3,0.7,0.8)
- weld(char.Head,Crack2,CFrame.new(0,0,0),CFrame.new(.2, .15, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, -.2),char)
- Crack1 = Instance.new("Part",suit)
- Crack1.Size = Vector3.new(0.2,.7,0.4)
- Crack1.Transparency = 0
- Crack1.BrickColor = BrickColor.new("Really black")
- Crack1.CanCollide = false
- Crack1Mesh = Instance.new("SpecialMesh",Crack1)
- Crack1Mesh.MeshType = "Sphere"
- Crack1Mesh.Scale = Vector3.new(0.3,0.7,0.65)
- weld(char.Head,Crack1,CFrame.new(0,0,0),CFrame.new(-.2, -.3, 0.45)*CFrame.fromEulerAnglesXYZ(0, 0, .2),char)
- Eye1 = Instance.new("Part",suit)
- Eye1.Size = Vector3.new(0.4,0.4,0.4)
- Eye1.Transparency = 0
- Eye1.BrickColor = BrickColor.new("Really black")
- Eye1.CanCollide = false
- Eye1Mesh = Instance.new("SpecialMesh",Eye1)
- Eye1Mesh.MeshType = "Sphere"
- Eye1Mesh.Scale = Vector3.new(1,1,0.6)
- weld(char.Head,Eye1,CFrame.new(0,0,0),CFrame.new(-.2, -.1, 0.5)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- Eye2 = Instance.new("Part",suit)
- Eye2.Size = Vector3.new(0.4,0.4,0.4)
- Eye2.Transparency = 0
- Eye2.CanCollide = false
- Eye2.BrickColor = BrickColor.new("Really black")
- Eye2Mesh = Instance.new("SpecialMesh",Eye2)
- Eye2Mesh.MeshType = "Sphere"
- Eye2Mesh.Scale = Vector3.new(1,1,0.6)
- weld(char.Head,Eye2,CFrame.new(0,0,0),CFrame.new(.2, -.1, 0.5)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- MEye1 = Instance.new("Part",suit)
- MEye1.Size = Vector3.new(0.3,0.3,0.3)
- MEye1.Transparency = 0
- MEye1.Material= "Neon"
- MEye1.BrickColor = BrickColor.new("Institutional white")
- MEye1.CanCollide = false
- MEye1Mesh = Instance.new("SpecialMesh",MEye1)
- MEye1Mesh.MeshType = "Sphere"
- MEye1Mesh.Scale = Vector3.new(.2,.5,.2)
- weld(Eye1,MEye1,CFrame.new(0,0,0),CFrame.new(-.02,0,0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- MEye2 = Instance.new("Part",suit)
- MEye2.Size = Vector3.new(0.3,0.3,0.3)
- MEye2.Transparency = 0
- MEye2.Material= "Neon"
- MEye2.BrickColor = BrickColor.new("Institutional white")
- MEye2.CanCollide = false
- MEye2Mesh = Instance.new("SpecialMesh",MEye2)
- MEye2Mesh.MeshType = "Sphere"
- MEye2Mesh.Scale = Vector3.new(.2,.5,.2)
- weld(Eye2,MEye2,CFrame.new(0,0,0),CFrame.new(.02,0,0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- --------Gaster's hand
- startup()
- hand1DeterminationPosition = Instance.new("Part",suit)
- hand1DeterminationPosition.Size = Vector3.new(1,1,1)
- hand1DeterminationPosition.Transparency = 1
- hand1DeterminationPosition.CanCollide = false
- weld(Torso,hand1DeterminationPosition,CFrame.new(0,0,0),CFrame.new(-2, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- hand2PerseverancePosition = Instance.new("Part",suit)
- hand2PerseverancePosition.Size = Vector3.new(1,1,1)
- hand2PerseverancePosition.Transparency = 1
- hand2PerseverancePosition.CanCollide = false
- weld(Torso,hand2PerseverancePosition,CFrame.new(0,0,0),CFrame.new(2, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- hand3PatiencePosition = Instance.new("Part",suit)
- hand3PatiencePosition.Size = Vector3.new(1,1,1)
- hand3PatiencePosition.Transparency = 1
- hand3PatiencePosition.CanCollide = false
- weld(Torso,hand3PatiencePosition,CFrame.new(0,0,0),CFrame.new(-4, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- hand4IntegrityPosition = Instance.new("Part",suit)
- hand4IntegrityPosition.Size = Vector3.new(1,1,1)
- hand4IntegrityPosition.Transparency = 1
- hand4IntegrityPosition.CanCollide = false
- weld(Torso,hand4IntegrityPosition,CFrame.new(0,0,0),CFrame.new(4, -5, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- hand5BraveryPosition = Instance.new("Part",suit)
- hand5BraveryPosition.Size = Vector3.new(1,1,1)
- hand5BraveryPosition.Transparency = 1
- hand5BraveryPosition.CanCollide = false
- weld(Torso,hand5BraveryPosition,CFrame.new(0,0,0),CFrame.new(-6, -7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- hand6JusticePosition = Instance.new("Part",suit)
- hand6JusticePosition.Size = Vector3.new(1,1,1)
- hand6JusticePosition.Transparency = 1
- hand6JusticePosition.CanCollide = false
- weld(Torso,hand6JusticePosition,CFrame.new(0,0,0),CFrame.new(6, -7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- hand7KindnessPosition = Instance.new("Part",suit)
- hand7KindnessPosition.Size = Vector3.new(1,1,1)
- hand7KindnessPosition.Transparency = 1
- hand7KindnessPosition.CanCollide = false
- weld(Torso,hand7KindnessPosition,CFrame.new(0,0,0),CFrame.new(0, -7, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- AttackPosition = Instance.new("Part",suit)
- AttackPosition.Size = Vector3.new(1,1,1)
- AttackPosition.Transparency = 1
- AttackPosition.CanCollide = false
- weld(Torso,AttackPosition,CFrame.new(0,0,0),CFrame.new(0, 0, 4)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- --------Gaster's Health of hands and hands
- hand1Determinationhealth = Instance.new("Humanoid",hand1Determination)
- hand1Determinationhealth.DisplayDistanceType = "None"
- hand1Determinationhealth.Health = 100
- hand1Determinationhealth.MaxHealth = 100
- Determination = Instance.new("Part",hand1Determination)
- Determination.Size = Vector3.new(1,1.5,0.2)
- Determination.Name = "Head"
- Determination.Position = hand1DeterminationPosition.Position
- DeterminationMesh = Instance.new("SpecialMesh",Determination)
- DeterminationMesh.MeshId = "rbxassetid://430045961"
- DeterminationMesh.Offset = Vector3.new(0.09,0.1,0)
- Determination.BrickColor = BrickColor.new("Institutional white")
- DeterminationOrb = Instance.new("Part",Determination)
- DeterminationOrb.Size = Vector3.new(0.3,0.3,0.2)
- DeterminationOrb.BrickColor = BrickColor.new("Really red")
- weld(Determination,DeterminationOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand1DeterminationPosition,Determination,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Really red"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- --2--
- hand2Perseverancehealth = Instance.new("Humanoid",hand2Perseverance)
- hand2Perseverancehealth.DisplayDistanceType = "None"
- hand2Perseverancehealth.Health = 100
- hand2Perseverancehealth.MaxHealth = 100
- Perseverance = Instance.new("Part",hand2Perseverance)
- Perseverance.Size = Vector3.new(1,1.5,0.2)
- Perseverance.Name = "Head"
- Perseverance.Position = hand2PerseverancePosition.Position
- PerseveranceMesh = Instance.new("SpecialMesh",Perseverance)
- PerseveranceMesh.MeshId = "rbxassetid://430045961"
- PerseveranceMesh.Offset = Vector3.new(0.09,0.1,0)
- Perseverance.BrickColor = BrickColor.new("Institutional white")
- PerseveranceOrb = Instance.new("Part",Perseverance)
- PerseveranceOrb.Size = Vector3.new(0.3,0.3,0.2)
- PerseveranceOrb.BrickColor = BrickColor.new("Magenta")
- weld(Perseverance,PerseveranceOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand2PerseverancePosition,Perseverance,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Magenta"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- --3--
- hand3Patiencehealth = Instance.new("Humanoid",hand3Patience)
- hand3Patiencehealth.DisplayDistanceType = "None"
- hand3Patiencehealth.Health = 100
- hand3Patiencehealth.MaxHealth = 100
- Patience = Instance.new("Part",hand3Patience)
- Patience.Size = Vector3.new(1,1.5,0.2)
- Patience.Name = "Head"
- PatienceMesh = Instance.new("SpecialMesh",Patience)
- PatienceMesh.MeshId = "rbxassetid://430045961"
- PatienceMesh.Offset = Vector3.new(0.09,0.1,0)
- Patience.BrickColor = BrickColor.new("Institutional white")
- PatienceOrb = Instance.new("Part",Patience)
- PatienceOrb.Size = Vector3.new(0.3,0.3,0.2)
- PatienceOrb.BrickColor = BrickColor.new("Cyan")
- weld(Patience,PatienceOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand3PatiencePosition,Patience,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Cyan"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- --4--
- hand4Integrityhealth = Instance.new("Humanoid",hand4Integrity)
- hand4Integrityhealth.DisplayDistanceType = "None"
- hand4Integrityhealth.Health = 100
- hand4Integrityhealth.MaxHealth = 100
- Integrity = Instance.new("Part",hand4Integrity)
- Integrity.Size = Vector3.new(1,1.5,0.2)
- Integrity.Name = "Head"
- Integrity.Position = hand1DeterminationPosition.Position
- IntegrityMesh = Instance.new("SpecialMesh",Integrity)
- IntegrityMesh.MeshId = "rbxassetid://430045961"
- IntegrityMesh.Offset = Vector3.new(0.09,0.1,0)
- Integrity.BrickColor = BrickColor.new("Institutional white")
- IntegrityOrb = Instance.new("Part",Integrity)
- IntegrityOrb.Size = Vector3.new(0.3,0.3,0.2)
- IntegrityOrb.BrickColor = BrickColor.new("Deep blue")
- weld(Integrity,IntegrityOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand4IntegrityPosition,Integrity,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Deep blue"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- --5--
- hand5Braveryhealth = Instance.new("Humanoid",hand5Bravery)
- hand5Braveryhealth.DisplayDistanceType = "None"
- hand5Braveryhealth.Health = 100
- hand5Braveryhealth.MaxHealth = 100
- Bravery = Instance.new("Part",hand5Bravery)
- Bravery .Size = Vector3.new(1,1.5,0.2)
- Bravery .Name = "Head"
- Bravery.Position = hand1DeterminationPosition.Position
- BraveryMesh = Instance.new("SpecialMesh",Bravery)
- BraveryMesh.MeshId = "rbxassetid://430045961"
- BraveryMesh.Offset = Vector3.new(0.09,0.1,0)
- Bravery.BrickColor = BrickColor.new("Institutional white")
- BraveryOrb = Instance.new("Part",Bravery)
- BraveryOrb.Size = Vector3.new(0.3,0.3,0.2)
- BraveryOrb.BrickColor = BrickColor.new("Deep orange")
- weld(Bravery,BraveryOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand5BraveryPosition,Bravery,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Deep orange"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- --6--
- hand6Justicehealth = Instance.new("Humanoid",hand6Justice)
- hand6Justicehealth.DisplayDistanceType = "None"
- hand6Justicehealth.Health = 100
- hand6Justicehealth.MaxHealth = 100
- Justice = Instance.new("Part",hand6Justice)
- Justice .Size = Vector3.new(1,1.5,0.2)
- Justice.Name = "Head"
- Justice.Position = hand1DeterminationPosition.Position
- JusticeMesh = Instance.new("SpecialMesh",Justice)
- JusticeMesh.MeshId = "rbxassetid://430045961"
- JusticeMesh.Offset = Vector3.new(0.09,0.1,0)
- Justice.BrickColor = BrickColor.new("Institutional white")
- JusticeOrb = Instance.new("Part",Justice)
- JusticeOrb.Size = Vector3.new(0.3,0.3,0.2)
- JusticeOrb.BrickColor = BrickColor.new("New Yeller")
- weld(Justice,JusticeOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand6JusticePosition,Justice,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"New Yeller"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- --7--
- hand7Kindnesshealth = Instance.new("Humanoid",hand7Kindness)
- hand7Kindnesshealth.DisplayDistanceType = "None"
- hand7Kindnesshealth.Health = 100
- hand7Kindnesshealth.MaxHealth = 100
- Kindness = Instance.new("Part",hand7Kindness)
- Kindness .Size = Vector3.new(1,1.5,0.2)
- Kindness.Name = "Head"
- Kindness.Position = hand1DeterminationPosition.Position
- KindnessMesh = Instance.new("SpecialMesh",Kindness)
- KindnessMesh.MeshId = "rbxassetid://430045961"
- KindnessMesh.Offset = Vector3.new(0.09,0.1,0)
- Kindness.BrickColor = BrickColor.new("Institutional white")
- KindnessOrb = Instance.new("Part",Kindness)
- KindnessOrb.Size = Vector3.new(0.3,0.3,0.2)
- KindnessOrb.BrickColor = BrickColor.new("Lime green")
- weld(Kindness,KindnessOrb,CFrame.new(0,0,0),CFrame.new(0, 0.2, 0.1)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- weld(hand7KindnessPosition,Kindness,CFrame.new(0,0,0),CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0),char)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Lime green"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- PlaySound("GasterTheme", 1, char.Torso, true)
- ---functions and attacks
- function BravAttack()
- if hand5BraveryhealthDown == true then return end
- if switchvalue == 7 then
- BraveryAttack = true
- WeldBravery = Instance.new("Weld",Bravery)
- WeldBravery.Part0 = AttackPosition
- WeldBravery.Part1 = Bravery
- WeldBravery.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Deep orange"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function BravRest()
- if hand5BraveryhealthDown == true then return end
- if switchvalue == 6 then
- if BraveryAttack == true then
- WeldBravery:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Deep orange"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- BraveryAttack = false
- end
- end
- end
- function PatAttack()
- if hand3PatiencehealthDown == true then return end
- if switchvalue == 6 then
- PatienceAttack = true
- WeldPatience = Instance.new("Weld",Patience)
- WeldPatience.Part0 = AttackPosition
- WeldPatience.Part1 = Patience
- WeldPatience.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Cyan"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function PatRest()
- if hand3PatiencehealthDown == true then return end
- if switchvalue == 7 or switchvalue == 5 then
- if PatienceAttack == true then
- WeldPatience:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Cyan"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Patience.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- PatienceAttack = false
- end
- end
- end
- function DetAttack()
- if hand1DeterminationhealthDown == true then return end
- if switchvalue == 5 then
- DeterminationAttack = true
- WeldDet = Instance.new("Weld",Determination)
- WeldDet.Part0 = AttackPosition
- WeldDet.Part1 = Determination
- WeldDet.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Really red"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function DetRest()
- if hand1DeterminationhealthDown == true then return end
- if switchvalue == 6 or switchvalue == 4 then
- if DeterminationAttack == true then
- WeldDet:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Really red"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Determination.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- DeterminationAttack = false
- end
- end
- end
- function KinAttack()
- if hand7KindnesshealthDown == true then return end
- if switchvalue == 4 then
- KindAttack = true
- WeldKind = Instance.new("Weld",Kindness)
- WeldKind.Part0 = AttackPosition
- WeldKind.Part1 = Kindness
- WeldKind.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Lime green"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function KinRest()
- if hand7KindnesshealthDown == true then return end
- if switchvalue == 5 or switchvalue == 3 then
- if KindAttack == true then
- WeldKind:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Lime green"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- KindAttack = false
- end
- end
- end
- function PerAttack()
- if hand2PerseverancehealthDown == true then return end
- if switchvalue == 3 then
- PerseveranceAttack = true
- WeldPer = Instance.new("Weld",Perseverance)
- WeldPer.Part0 = AttackPosition
- WeldPer.Part1 = Perseverance
- WeldPer.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Magenta"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function PerRest()
- if hand2PerseverancehealthDown == true then return end
- if switchvalue == 4 or switchvalue == 2 then
- if PerseveranceAttack == true then
- WeldPer:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Magenta"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- PerseveranceAttack = false
- end
- end
- end
- function IntAttack()
- if hand4IntegrityhealthDown == true then return end
- if switchvalue == 2 then
- IntegrityAttack = true
- WeldInt = Instance.new("Weld",Integrity)
- WeldInt.Part0 = AttackPosition
- WeldInt.Part1 = Integrity
- WeldInt.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Dark blue"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function IntRest()
- if hand4IntegrityhealthDown == true then return end
- if switchvalue == 3 or switchvalue == 1 then
- if IntegrityAttack == true then
- WeldInt:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Dark blue"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- IntegrityAttack = false
- end
- end
- end
- function JusAttack()
- if switchvalue == 1 then
- if hand6JusticehealthDown == true then return end
- JusticeAttack = true
- Weldjus = Instance.new("Weld",Justice)
- Weldjus.Part0 = AttackPosition
- Weldjus.Part1 = Justice
- Weldjus.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"New Yeller"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- end
- end
- function JusRest()
- if hand6JusticehealthDown == true then return end
- if switchvalue == 2 then
- if JusticeAttack == true then
- Weldjus:remove()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"New Yeller"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- JusticeAttack = false
- end
- end
- end
- --Key Presses
- mouse.Button1Up:connect(function()
- InUse = false
- end)
- mouse.Button1Down:connect(function()
- InUse = true
- end)
- mouse.KeyDown:connect(function(key)
- if key =="r" then
- if hand7KindnesshealthDown == true then return end
- if ShieldValueToGasterDebounce == true then return end
- if ShieldValueToGaster == false then
- ShieldValueToGaster = true
- if ShieldValueToGasterDebounce == false then
- ShieldValueToGasterDebounce = true
- local ShieldOfGaster6= Instance.new("Part",hand7Kindness)
- ShieldOfGaster6.TopSurface = "Smooth"
- ShieldOfGaster6.BottomSurface = "Smooth"
- ShieldOfGaster6.Size = Vector3.new(18, 3, 18)
- ShieldOfGaster6.CanCollide = true
- ShieldOfGaster6.Anchored =true
- ShieldOfGaster6.BrickColor = BrickColor.new("Lime green")
- ShieldOfGaster6 .FormFactor = "Custom"
- ShieldOfGaster6.Transparency = 0.7
- ShieldOfGaster6.CFrame= Torso.CFrame*CFrame.new(0,10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- shieldparent6 = ShieldOfGaster6
- local ShieldOfGaster5= Instance.new("Part",hand7Kindness)
- ShieldOfGaster5.TopSurface = "Smooth"
- ShieldOfGaster5.BottomSurface = "Smooth"
- ShieldOfGaster5.Size = Vector3.new(18, 3, 18)
- ShieldOfGaster5.CanCollide = true
- ShieldOfGaster5.Anchored =true
- ShieldOfGaster5.BrickColor = BrickColor.new("Lime green")
- ShieldOfGaster5 .FormFactor = "Custom"
- ShieldOfGaster5.Transparency = 0.7
- ShieldOfGaster5.CFrame= Torso.CFrame*CFrame.new(0,-10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- shieldparent5 = ShieldOfGaster5
- local ShieldOfGaster4= Instance.new("Part",hand7Kindness)
- ShieldOfGaster4.TopSurface = "Smooth"
- ShieldOfGaster4.BottomSurface = "Smooth"
- ShieldOfGaster4.Size = Vector3.new(3, 18, 18)
- ShieldOfGaster4.CanCollide = true
- ShieldOfGaster4.Anchored =true
- ShieldOfGaster4.BrickColor = BrickColor.new("Lime green")
- ShieldOfGaster4 .FormFactor = "Custom"
- ShieldOfGaster4.Transparency = 0.7
- ShieldOfGaster4.CFrame= Torso.CFrame*CFrame.new(-10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- shieldparent4 = ShieldOfGaster4
- local ShieldOfGaster3= Instance.new("Part",hand7Kindness)
- ShieldOfGaster3.TopSurface = "Smooth"
- ShieldOfGaster3.BottomSurface = "Smooth"
- ShieldOfGaster3.Size = Vector3.new(3, 18, 18)
- ShieldOfGaster3.CanCollide = true
- ShieldOfGaster3.Anchored =true
- ShieldOfGaster3.BrickColor = BrickColor.new("Lime green")
- ShieldOfGaster3 .FormFactor = "Custom"
- ShieldOfGaster3.Transparency = 0.7
- ShieldOfGaster3.CFrame= Torso.CFrame*CFrame.new(10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- shieldparent3 = ShieldOfGaster3
- local ShieldOfGaster2= Instance.new("Part",hand7Kindness)
- ShieldOfGaster2.TopSurface = "Smooth"
- ShieldOfGaster2.BottomSurface = "Smooth"
- ShieldOfGaster2.Size = Vector3.new(18, 18, 3)
- ShieldOfGaster2.CanCollide = true
- ShieldOfGaster2.Anchored =true
- ShieldOfGaster2.BrickColor = BrickColor.new("Lime green")
- ShieldOfGaster2 .FormFactor = "Custom"
- ShieldOfGaster2.Transparency = 0.7
- ShieldOfGaster2.CFrame= Torso.CFrame*CFrame.new(0,0,-10)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- shieldparent2 = ShieldOfGaster2
- local ShieldOfGaster1= Instance.new("Part",hand7Kindness)
- ShieldOfGaster1.TopSurface = "Smooth"
- ShieldOfGaster1.BottomSurface = "Smooth"
- ShieldOfGaster1.Size = Vector3.new(18, 18, 3)
- ShieldOfGaster1.CanCollide = true
- ShieldOfGaster1.Anchored =true
- ShieldOfGaster1.BrickColor = BrickColor.new("Lime green")
- ShieldOfGaster1 .FormFactor = "Custom"
- ShieldOfGaster1.Transparency = 0.7
- ShieldOfGaster1.CFrame= Torso.CFrame*CFrame.new(0,0,10)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- shieldparent1 = ShieldOfGaster1
- for i = 1,7 do
- local parti = Instance.new("Part",Torso)
- parti.Anchored = true
- parti.TopSurface = 0
- parti.BottomSurface = 0
- parti.CanCollide = false
- parti.Size = Vector3.new(math.random(1,1),math.random(1,1),math.random(1,1))
- parti.CFrame = Torso.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- parti.Transparency = 0
- parti.BrickColor = BrickColor.new("Lime green")
- game.Debris:AddItem(parti,1.5)
- local pad = Vector3.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
- game:service("RunService").Stepped:connect(function()
- parti.Transparency = parti.Transparency + 0.05
- parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad
- end)
- end
- ShieldValueToGasterDebounce = false
- ShieldValueToGaster = true
- end
- elseif ShieldValueToGaster == true then
- ShieldValueToGaster = false
- if ShieldValueToGasterDebounce == false then
- ShieldValueToGasterDebounce = true
- for i = 1,3 do wait()
- shieldparent6.Transparency =shieldparent6.Transparency + 0.1
- shieldparent5.Transparency =shieldparent5.Transparency + 0.1
- shieldparent4.Transparency =shieldparent4.Transparency + 0.1
- shieldparent3.Transparency =shieldparent3.Transparency + 0.1
- shieldparent2.Transparency =shieldparent2.Transparency + 0.1
- shieldparent1.Transparency =shieldparent1.Transparency + 0.1
- end
- shieldparent6:remove()
- shieldparent5:remove()
- shieldparent4:remove()
- shieldparent3:remove()
- shieldparent2:remove()
- shieldparent1:remove()
- shieldparent1=nil
- shieldparent2=nil
- shieldparent3=nil
- shieldparent4=nil
- shieldparent5=nil
- shieldparent6=nil
- ShieldValueToGasterDebounce = false
- ShieldValueToGaster = false
- end
- end
- end
- if key =="x" then
- if (not vDebounce) then
- vDebounce = true
- for i = 1,5 do wait()
- Torso.Transparency = Torso.Transparency + 0.2
- char["Left Arm"].Transparency = char["Left Arm"].Transparency + 0.2
- char["Left Leg"].Transparency = char["Left Leg"].Transparency + 0.2
- char["Right Arm"].Transparency = char["Right Arm"].Transparency + 0.2
- char["Right Leg"].Transparency = char["Right Leg"].Transparency + 0.2
- char.Head.Transparency = char.Head.Transparency + 0.2
- Crack1.Transparency = Crack1.Transparency + 0.2
- Crack2.Transparency = Crack2.Transparency + 0.2
- mouth.Transparency = mouth.Transparency + 0.2
- Eye1.Transparency = Eye1.Transparency + 0.2
- Eye2.Transparency = Eye2.Transparency + 0.2
- MEye1.Transparency = MEye1.Transparency + 0.2
- MEye2.Transparency = MEye2.Transparency + 0.2
- end
- teleportPlayer(mouse.hit.p)
- char.Humanoid.PlatformStand = false
- vDebounce = false
- end
- end
- if key == "q" then
- if switchvalue == 1 then return end
- switchvalue = switchvalue - 1
- print (switchvalue)
- JusAttack()
- JusRest()
- IntAttack()
- IntRest()
- PerAttack()
- PerRest()
- KinAttack()
- KinRest()
- DetAttack()
- DetRest()
- PatAttack()
- PatRest()
- BravAttack()
- BravRest()
- end
- if key == "e" then
- if switchvalue == 7 then return end
- switchvalue = switchvalue + 1
- print (switchvalue)
- JusAttack()
- JusRest()
- IntAttack()
- IntRest()
- PerAttack()
- PerRest()
- KinAttack()
- KinRest()
- DetAttack()
- DetRest()
- PatAttack()
- PatRest()
- BravAttack()
- BravRest()
- end
- end)
- ---runservices
- game:service("RunService").Stepped:connect(function() wait(.5)
- if hand1DeterminationhealthDown == true and hand2PerseverancehealthDown == true and hand3PatiencehealthDown == true and hand4IntegrityhealthDown == true and hand5BraveryhealthDown == true and hand6JusticehealthDown == true and hand7KindnesshealthDown == true then
- char.Humanoid.Health = 0
- end
- if InUse == false then return end
- if JusticeAttack == true then
- if InUse == false then return end
- if InUse == true then
- if JusticeAttackDebounce == true then return end
- if JusticeAttackDebounce == false then
- JusticeAttackDebounce = true
- wait(.2)
- local PewJustice = Instance.new("Part",suit)
- PewJustice.Size = Vector3.new(2,1,4)
- PewJustice.BrickColor = BrickColor.new("New Yeller")
- PewJustice.Position = Justice.Position
- PewJustice.CanCollide = false
- for i = 1,7 do
- local parti = Instance.new("Part",Torso)
- parti.Anchored = true
- parti.TopSurface = 0
- parti.BottomSurface = 0
- parti.CanCollide = false
- parti.Size = Vector3.new(math.random(.5,.5),math.random(.5,.5),math.random(.5,.5))
- parti.CFrame = Justice.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
- parti.Transparency = 0
- parti.BrickColor = BrickColor.new("New Yeller")
- game.Debris:AddItem(parti,1.5)
- local pad = Vector3.new(math.random(-2,2)/100,math.random(-2,2)/100,math.random(-2,2)/100)
- game:service("RunService").Stepped:connect(function()
- parti.Transparency = parti.Transparency + 0.05
- parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad
- end)
- end
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Justice.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- local handleCFrame = PewJustice.CFrame
- local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
- local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p)
- local laserShotClone = PewJustice:Clone()
- PewJustice:remove()
- laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (PewJustice.Size.Z / 2))
- local bodyVelocity = Instance.new('BodyVelocity')
- bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
- bodyVelocity.Parent = laserShotClone
- bodyVelocity.Name = "Magic"
- bodyVelocity.MaxForce = Vector3.new(1000000,1000000,1000000)
- laserShotClone.Parent = suit
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-3
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- HitSounds["Hurt"].Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- coroutine.resume(coroutine.create(function()
- laserShotClone.Magic:remove()
- wait(3)
- laserShotClone:remove()
- end))
- end end laserShotClone.Touched:connect(touch)
- game.Debris:AddItem(laserShotClone,10)
- JusticeAttackDebounce = false
- end
- end
- end
- ----2nd Attack
- if IntegrityAttack == true then
- if InUse == false then return end
- if InUse == true then
- if IntegrityAttackDebounce == true then return end
- if IntegrityAttackDebounce == false then
- IntegrityAttackDebounce = true
- wait(.5)
- for i = 1,2 do wait(1)
- local PewIntegrity = Instance.new("Part",suit)
- PewIntegrity.Size = Vector3.new(5,1,5)
- PewIntegrity.BrickColor = BrickColor.new("Dark blue")
- PewIntegrity.Position = Integrity.Position
- PewIntegrity.CanCollide = false
- PewIntegrity.Transparency = 0.4
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Dark blue"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Integrity.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- local handleCFrame = PewIntegrity.CFrame
- local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
- local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p)
- local laserShotClone = PewIntegrity:Clone()
- PewIntegrity:remove()
- laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (PewIntegrity.Size.Z / 2))
- local bodyVelocity = Instance.new('BodyVelocity')
- bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
- negativevelocity = bodyVelocity.velocity*-1
- bodyVelocity.Parent = laserShotClone
- bodyVelocity.Name = "Magic"
- bodyVelocity.MaxForce = Vector3.new(1000000,1000000,1000000)
- laserShotClone.Parent = suit
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-7
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- HitSounds["Hurt"].Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end end laserShotClone.Touched:connect(touch)
- game.Debris:AddItem(laserShotClone,10)
- coroutine.resume(coroutine.create(function()
- for i = 1,25 do wait()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(5,1,5)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Dark blue"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.Transparency = 0.7
- p.CFrame =(laserShotClone.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0.3*i,0))
- game.Debris:AddItem(p,.2)
- end
- bodyVelocity.velocity = negativevelocity
- for i = 1,25 do wait()
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(5,1,5)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Dark blue"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.Transparency = 0.7
- game.Debris:AddItem(p,.2)
- p.CFrame =(laserShotClone.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0,0.3*i,0))
- end
- end))
- end
- wait(1)
- IntegrityAttackDebounce = false
- end
- end
- end
- --3rd AttackPosition
- if PerseveranceAttack == true then
- if InUse == false then return end
- if InUse == true then
- if PerseveranceAttackDebounce == true then return end
- if PerseveranceAttackDebounce == false then
- PerseveranceAttackDebounce = true
- RandomPerseverance = math.random(1,2)
- if RandomPerseverance == 2 then
- local randomnumber = math.random(1,2)
- wait(.3)
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Magenta"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,5 do wait()
- p.Size=Vector3.new(0.5*i,0.5*i,0.5*i)
- p.CFrame =(Perseverance.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- local throwbone1 = Instance.new("Part",suit)
- throwbone1.TopSurface = "Smooth"
- throwbone1.BottomSurface = "Smooth"
- throwbone1.Size = Vector3.new(0.2, 0.2, 3)
- throwbone1.CanCollide = true
- throwbone1.BrickColor = BrickColor.new("Magenta")
- throwbone1 .FormFactor = "Custom"
- local Weldbonepart2 = Instance.new("Weld",throwbone1)
- Weldbonepart2.Part0 = throwbone1
- Weldbonepart2.Part1 = Perseverance
- Weldbonepart2.Name = "WBP22"
- local throwbone1weld2 = Instance.new("Part",throwbone1)
- throwbone1weld2.TopSurface = "Smooth"
- throwbone1weld2.BottomSurface = "Smooth"
- throwbone1weld2.Size = Vector3.new(0.4, 0.4, 0.4)
- throwbone1weld2.CanCollide = true
- throwbone1weld2.BrickColor = BrickColor.new("Magenta")
- throwbone1weld2 .FormFactor = "Custom"
- local Weldbonepart2weld2 = Instance.new("Weld",throwbone1)
- Weldbonepart2weld2.Part0 = throwbone1weld2
- Weldbonepart2weld2.Part1 = throwbone1
- Weldbonepart2weld2.Name = "WBP2W2"
- Weldbonepart2weld2.C1 = CFrame.new(0, 0, -1.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local throwbone1weld1 = Instance.new("Part",throwbone1)
- throwbone1weld1.TopSurface = "Smooth"
- throwbone1weld1.BottomSurface = "Smooth"
- throwbone1weld1.Size = Vector3.new(0.4, 0.4, 0.4)
- throwbone1weld1.CanCollide = true
- throwbone1weld1.BrickColor = BrickColor.new("Magenta")
- throwbone1weld1 .FormFactor = "Custom"
- local Weldbonepart2weld1 = Instance.new("Weld",throwbone1)
- Weldbonepart2weld1.Part0 = throwbone1weld1
- Weldbonepart2weld1.Part1 = throwbone1
- Weldbonepart2weld1.Name = "WBP2W1"
- Weldbonepart2weld1.C1 = CFrame.new(0, 0, 1.3)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- if randomnumber == 1 then
- for i = 1,10 do wait()
- Weldbonepart2.C1 = CFrame.new(-3, 0, 0)*CFrame.fromEulerAnglesXYZ(0.7*i, 0, 0)
- end
- end
- if randomnumber == 2 then
- for i = 1,10 do wait()
- Weldbonepart2.C1 = CFrame.new(3, 0, 0)*CFrame.fromEulerAnglesXYZ(0.7*i, 0, 0)
- end
- end
- local handleCFrame = throwbone1.CFrame
- local firingPoint = handleCFrame.p + handleCFrame:vectorToWorldSpace(NOZZLE_OFFSET)
- local shotCFrame = CFrame.new(firingPoint, mouse.Hit.p)
- local laserShotClone = throwbone1:Clone()
- laserShotClone.WBP22:remove()
- laserShotClone.CFrame = shotCFrame + (shotCFrame.lookVector * (throwbone1.Size.Z / 2))
- local bodyVelocity = Instance.new('BodyVelocity')
- bodyVelocity.velocity = shotCFrame.lookVector * SHOT_SPEED
- bodyVelocity.Parent = laserShotClone
- bodyVelocity.Name = "Magic"
- bodyVelocity.MaxForce = Vector3.new(1000000,1000000,1000000)
- laserShotClone.Parent = suit
- throwbone1:remove()
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-5
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- HitSounds["Hurt"].Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- coroutine.resume(coroutine.create(function()
- laserShotClone.Magic:remove()
- wait(3)
- laserShotClone:remove()
- end))
- end end laserShotClone.Touched:connect(touch)
- game.Debris:AddItem(laserShotClone,10)
- elseif RandomPerseverance == 1 then
- PlaySound("Gaster", 1, PerseveranceOrb,false)
- wait(1)
- local ray = Ray.new(PerseveranceOrb.CFrame.p, (mouse.Hit.p - PerseveranceOrb.CFrame.p).unit*1000)
- local hit, position = game.Workspace:FindPartOnRay(ray, char)
- local ray = Ray.new(PerseveranceOrb.CFrame.p, (mouse.Hit.p -PerseveranceOrb.CFrame.p).unit*300)
- local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
- local distance = (position - PerseveranceOrb.CFrame.p).magnitude
- local rp=Instance.new("Part",workspace)
- rp.Anchored=true
- rp.TopSurface="Smooth"
- rp.BottomSurface="Smooth"
- rp.Transparency=0
- rp.BrickColor=BrickColor.new("Bright purple")
- rp.FormFactor="Custom"
- rp.CanCollide=false
- rp.Size=Vector3.new(0.8,0.1,distance)
- rp.Material = "Neon"
- rp.CFrame=CFrame.new(position, PerseveranceOrb.CFrame.p) * CFrame.new(0, 0, -distance/2)
- local cy=Instance.new("BlockMesh",rp)
- coroutine.resume(coroutine.create(function()
- wait(1)
- for i=1,10 do
- wait()
- rp.Transparency=rp.Transparency + 0.1
- end
- rp:remove()
- end))
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-20
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- HitSounds["Hurt"].Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end end rp.Touched:connect(touch)
- end
- RandomPerseverance = 0
- PerseveranceAttackDebounce = false
- end
- end
- end
- if KindAttack == true then
- if InUse == false then return end
- if InUse == true then
- if KindnessAttackDebounce == true then return end
- if KindnessAttackDebounce == false then
- KindnessAttackDebounce = true
- local ray = Ray.new(Kindness.CFrame.p, (mouse.Hit.p -Kindness.CFrame.p).unit*300)
- local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
- local distance = (position - Kindness.CFrame.p).magnitude
- local rp=Instance.new("Part",workspace)
- rp.Anchored=true
- rp.TopSurface="Smooth"
- rp.BottomSurface="Smooth"
- rp.Transparency=1
- rp.BrickColor=BrickColor.new("Deep orange")
- rp.FormFactor="Custom"
- rp.CanCollide=false
- rp.Size=Vector3.new(0.6,0.6,distance)
- rp.Material = "Neon"
- rp.CFrame=CFrame.new(position, Kindness.CFrame.p) * CFrame.new(0, 0, -distance/2)
- local cy=Instance.new("BlockMesh",rp)
- rp:Destroy()
- local ps = Instance.new("Part", suit)
- ps.Name = "MagicPart"
- ps.TopSurface = "Smooth"
- ps.BottomSurface = "Smooth"
- ps.BrickColor = BrickColor.new("Toothpaste")
- ps.FormFactor = "Custom"
- ps.Transparency = 1
- ps.Size = Vector3.new(.2, 3, 3)
- ps.Anchored = true
- ps.CanCollide = false
- ps.CFrame = CFrame.new(position)*CFrame.new(0,3,0)
- local cy=Instance.new("SpecialMesh",ps)
- cy.MeshType = "Cylinder"
- coroutine.resume(coroutine.create(function()
- local SpawnSounds = {
- Spike = Instance.new("Sound")
- }
- SpawnSounds["Spike"].SoundId = "http://www.roblox.com/asset?id=486286230"
- SpawnSounds["Spike"].Volume = 0.5
- function PlaySpawnSound(soundname, pitch)
- SpawnSounds[soundname].Parent = ps
- SpawnSounds[soundname].Pitch = pitch
- SpawnSounds[soundname]:Play()
- local oldsound = SpawnSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- SpawnSounds[soundname] = SpawnSounds[soundname]:clone()
- end
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.8,0.8,0.8)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Lime green"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.8*i,0.8*i,0.8*i)
- p.CFrame =(Kindness.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- PlaySpawnSound("Spike", 1)
- wait(0.5)
- end))
- local Shield6= Instance.new("Part",hand7Kindness)
- Shield6.TopSurface = "Smooth"
- Shield6.BottomSurface = "Smooth"
- Shield6.Size = Vector3.new(18, 3, 18)
- Shield6.CanCollide = true
- Shield6.Anchored =true
- Shield6.BrickColor = BrickColor.new("Lime green")
- Shield6 .FormFactor = "Custom"
- Shield6.Transparency = 0.7
- Shield6.CFrame= ps.CFrame*CFrame.new(0,10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local Shield5= Instance.new("Part",hand7Kindness)
- Shield5.TopSurface = "Smooth"
- Shield5.BottomSurface = "Smooth"
- Shield5.Size = Vector3.new(18, 3, 18)
- Shield5.CanCollide = true
- Shield5.Anchored =true
- Shield5.BrickColor = BrickColor.new("Lime green")
- Shield5 .FormFactor = "Custom"
- Shield5.Transparency = 0.7
- Shield5.CFrame= ps.CFrame*CFrame.new(0,-10,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local Shield4= Instance.new("Part",hand7Kindness)
- Shield4.TopSurface = "Smooth"
- Shield4.BottomSurface = "Smooth"
- Shield4.Size = Vector3.new(3, 18, 18)
- Shield4.CanCollide = true
- Shield4.Anchored =true
- Shield4.BrickColor = BrickColor.new("Lime green")
- Shield4 .FormFactor = "Custom"
- Shield4.Transparency = 0.7
- Shield4.CFrame= ps.CFrame*CFrame.new(-10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local Shield3= Instance.new("Part",hand7Kindness)
- Shield3.TopSurface = "Smooth"
- Shield3.BottomSurface = "Smooth"
- Shield3.Size = Vector3.new(3, 18, 18)
- Shield3.CanCollide = true
- Shield3.Anchored =true
- Shield3.BrickColor = BrickColor.new("Lime green")
- Shield3 .FormFactor = "Custom"
- Shield3.Transparency = 0.7
- Shield3.CFrame= ps.CFrame*CFrame.new(10,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local Shield2= Instance.new("Part",hand7Kindness)
- Shield2.TopSurface = "Smooth"
- Shield2.BottomSurface = "Smooth"
- Shield2.Size = Vector3.new(18, 18, 3)
- Shield2.CanCollide = true
- Shield2.Anchored =true
- Shield2.BrickColor = BrickColor.new("Lime green")
- Shield2 .FormFactor = "Custom"
- Shield2.Transparency = 0.7
- Shield2.CFrame= ps.CFrame*CFrame.new(0,0,-10)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local Shield1= Instance.new("Part",hand7Kindness)
- Shield1.TopSurface = "Smooth"
- Shield1.BottomSurface = "Smooth"
- Shield1.Size = Vector3.new(18, 18, 3)
- Shield1.CanCollide = true
- Shield1.Anchored =true
- Shield1.BrickColor = BrickColor.new("Lime green")
- Shield1 .FormFactor = "Custom"
- Shield1.Transparency = 0.7
- Shield1.CFrame= ps.CFrame*CFrame.new(0,0,10)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- for i = 1,7 do
- local parti = Instance.new("Part",Torso)
- parti.Anchored = true
- parti.TopSurface = 0
- parti.BottomSurface = 0
- parti.CanCollide = false
- parti.Size = Vector3.new(math.random(1,1),math.random(1,1),math.random(1,1))
- parti.CFrame = ps.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- parti.Transparency = 0
- parti.BrickColor = BrickColor.new("Lime green")
- game.Debris:AddItem(parti,1.5)
- local pad = Vector3.new(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
- game:service("RunService").Stepped:connect(function()
- parti.Transparency = parti.Transparency + 0.05
- parti.CFrame = (parti.CFrame*CFrame.Angles(math.rad(20),math.rad(20),math.rad(20)))+pad
- end)
- end
- wait(3)
- function squeeze(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-50
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- HitSounds["Hurt"].Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end end
- Shield6.Touched:connect(squeeze)
- Shield5.Touched:connect(squeeze)
- Shield4.Touched:connect(squeeze)
- Shield3.Touched:connect(squeeze)
- Shield2.Touched:connect(squeeze)
- Shield1.Touched:connect(squeeze)
- for i = 1,30 do wait()
- Shield6.CFrame= clerp(Shield6.CFrame*CFrame.new(0,-.01*i,0),ps.CFrame,.1)
- Shield5.CFrame= clerp(Shield5.CFrame*CFrame.new(0,.01*i,0),ps.CFrame,.1)
- Shield4.CFrame= clerp(Shield4.CFrame*CFrame.new(.01*i,0,0),ps.CFrame,.1)
- Shield3.CFrame= clerp(Shield3.CFrame*CFrame.new(-.01*i,0,0),ps.CFrame,.1)
- Shield2.CFrame= clerp(Shield2.CFrame*CFrame.new(0,0,.01*i),ps.CFrame,.1)
- Shield1.CFrame= clerp(Shield1.CFrame*CFrame.new(0,0,-.01*i),ps.CFrame,.1)
- end
- for i = 1,30 do wait()
- Shield6.CFrame= clerp(Shield6.CFrame*CFrame.new(0,-.01*i,0),ps.CFrame,.1)
- Shield5.CFrame= clerp(Shield5.CFrame*CFrame.new(0,.01*i,0),ps.CFrame,.1)
- Shield4.CFrame= clerp(Shield4.CFrame*CFrame.new(.01*i,0,0),ps.CFrame,.1)
- Shield3.CFrame= clerp(Shield3.CFrame*CFrame.new(-.01*i,0,0),ps.CFrame,.1)
- Shield2.CFrame= clerp(Shield2.CFrame*CFrame.new(0,0,.01*i),ps.CFrame,.1)
- Shield1.CFrame= clerp(Shield1.CFrame*CFrame.new(0,0,-.01*i),ps.CFrame,.1)
- end
- ps:remove()
- wait(3)
- Shield1:Remove()
- Shield2:Remove()
- Shield3:Remove()
- Shield4:Remove()
- Shield5:Remove()
- Shield6:Remove()
- KindnessAttackDebounce = false
- end
- end
- end
- ---5th attack---
- if DeterminationAttack == true then
- if InUse == false then return end
- if InUse == true then
- if DetermiantionAttackDebounce == true then return end
- if DetermiantionAttackDebounce == false then
- DetermiantionAttackDebounce = true
- for i = 1,3 do
- local head = Instance.new("Part",char)
- head.Size = Vector3.new(18,.2,18)
- head.CanCollide = false
- head.Anchored = true
- head.CFrame = CFrame.new(char.HumanoidRootPart.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p)
- head.Transparency = 1
- for i = 1,2 do
- decal = Instance.new("Decal",head)
- decal.Texture = "rbxassetid://333659534"
- if i == 1 then
- decal.Face = Enum.NormalId.Top
- else
- decal.Face = Enum.NormalId.Bottom
- end
- end
- local bg = Instance.new("BodyGyro")
- bg.Parent = head
- bg.maxTorque = Vector3.new(0,0,0)
- bg.maxTorque = Vector3.new(0,0,0)
- RandomGasterRotaion = math.random(-10,10)
- for i = 1,5 do wait()
- print ' test'
- head.CFrame = clerp(head.CFrame*CFrame.new(RandomGasterRotaion,1*i,1*i),head.CFrame,.1)
- end
- RandomGasterRotaion = 0
- local ray = Ray.new(head.CFrame.p, (mouse.Hit.p - head.CFrame.p).unit*1000)
- local hit, position = game.Workspace:FindPartOnRay(ray, char)
- local ray = Ray.new(head.CFrame.p, (mouse.Hit.p -head.CFrame.p).unit*300)
- local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
- local distance = (position - head.CFrame.p).magnitude
- local rp=Instance.new("Part",workspace)
- rp.Anchored=true
- rp.TopSurface="Smooth"
- rp.BottomSurface="Smooth"
- rp.Transparency=0
- rp.BrickColor=BrickColor.new("Institutional white")
- rp.FormFactor="Custom"
- rp.CanCollide=false
- rp.Size=Vector3.new(10,0,distance)
- rp.Material = "Neon"
- rp.CFrame=CFrame.new(position, head.CFrame.p) * CFrame.new(0, 0, -distance/2)
- local cy=Instance.new("BlockMesh",rp)
- head.CFrame = CFrame.new(head.CFrame:toWorldSpace(CFrame.new(0,0,0)).p,mouse.hit.p)
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-7
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- HitSounds["Hurt"].Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end end rp.Touched:connect(touch)
- coroutine.resume(coroutine.create(function()
- PlaySound("Gaster", 1, head,false)
- for i=1,10 do
- wait()
- cy.Scale=cy.Scale+Vector3.new(0,0,.01*i)
- head.CFrame = head.CFrame*CFrame.new(0,0,1*i)*CFrame.Angles(0,0,0)
- end
- for i=1,10 do wait()
- decal.Transparency = decal.Transparency + 0.1
- rp.Transparency = rp.Transparency + 0.1
- end
- wait(1)
- head:Destroy()
- rp:Destroy()
- end))
- end
- wait(0.1)
- DetermiantionAttackDebounce = false
- end
- end
- end
- if PatienceAttack == true then
- if InUse == false then return end
- if InUse == true then
- if PatienceAttackDebounce == true then return end
- if PatienceAttackDebounce == false then
- PatienceAttackDebounce = true
- local ray = Ray.new(PatienceOrb.CFrame.p, (mouse.Hit.p - PatienceOrb.CFrame.p).unit*1000)
- local hit, position = game.Workspace:FindPartOnRay(ray, char)
- local ray = Ray.new(PatienceOrb.CFrame.p, (mouse.Hit.p -PatienceOrb.CFrame.p).unit*300)
- local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
- local distance = (position - PatienceOrb.CFrame.p).magnitude
- local rp=Instance.new("Part",workspace)
- rp.Anchored=true
- rp.TopSurface="Smooth"
- rp.BottomSurface="Smooth"
- rp.Transparency=0
- rp.BrickColor=BrickColor.new("Cyan")
- rp.FormFactor="Custom"
- rp.CanCollide=false
- rp.Size=Vector3.new(0.5,0.5,distance)
- rp.Material = "Neon"
- rp.CFrame=CFrame.new(position, PatienceOrb.CFrame.p) * CFrame.new(0, 0, -distance/2)
- local cy=Instance.new("BlockMesh",rp)
- coroutine.resume(coroutine.create(function()
- for i=1,13 do
- wait()
- cy.Scale=cy.Scale-Vector3.new(.01*i,.01*i,0)
- end
- end))
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-7
- local hittorso = hit.Parent.Torso
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- HitSounds["Hurt"].Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- local Tied = Instance.new("Part",hittorso)
- Tied.Size = Vector3.new(4,2,1.5)
- Tied.Name = "Rope"
- Tied.CanCollide = false
- Tied.Transparency = 0.1
- Tied.BrickColor = BrickColor.new("Cyan")
- Tied.CFrame = hittorso.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- local Weld = Instance.new("Weld",hittorso)
- Weld.Part0 = hittorso
- Weld.Part1 = Tied
- Weld.C1 = hittorso.CFrame*CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- hit.Parent.Torso.Anchored = true
- hit.Parent["Left Arm"].Anchored = true
- hit.Parent["Right Arm"].Anchored = true
- wait(3)
- for i = 1,10 do wait(.1)
- Tied.Transparency = Tied.Transparency + 0.1
- end
- hit.Parent.Torso.Anchored = false
- hit.Parent["Left Arm"].Anchored = false
- hit.Parent["Right Arm"].Anchored = false
- end end rp.Touched:connect(touch)
- coroutine.resume(coroutine.create(function()
- wait(1)
- rp:Destroy()
- end))
- end
- wait(1)
- PatienceAttackDebounce = false
- end
- end
- if BraveryAttack == true then
- if InUse == false then return end
- if InUse == true then
- if BraveryAttackDebounce == true then return end
- if BraveryAttackDebounce == false then
- BraveryAttackDebounce = true
- local ray = Ray.new(Bravery.CFrame.p, (mouse.Hit.p -Bravery.CFrame.p).unit*300)
- local position = mouse.Hit.p--game.Workspace:FindPartOnRay(ray, walrus)
- local distance = (position - Bravery.CFrame.p).magnitude
- local rp=Instance.new("Part",workspace)
- rp.Anchored=true
- rp.TopSurface="Smooth"
- rp.BottomSurface="Smooth"
- rp.Transparency=1
- rp.BrickColor=BrickColor.new("Deep orange")
- rp.FormFactor="Custom"
- rp.CanCollide=false
- rp.Size=Vector3.new(0.6,0.6,distance)
- rp.Material = "Neon"
- rp.CFrame=CFrame.new(position, Kindness.CFrame.p) * CFrame.new(0, 0, -distance/2)
- local cy=Instance.new("BlockMesh",rp)
- rp:Destroy()
- local ps = Instance.new("Part", suit)
- ps.Name = "MagicPart"
- ps.TopSurface = "Smooth"
- ps.BottomSurface = "Smooth"
- ps.BrickColor = BrickColor.new("Toothpaste")
- ps.FormFactor = "Custom"
- ps.Transparency = 1
- ps.Size = Vector3.new(.5, .5, .5)
- ps.Anchored = true
- ps.CanCollide = false
- ps.CFrame = CFrame.new(position)*CFrame.new(0,3,0)
- local cy=Instance.new("SpecialMesh",ps)
- cy.MeshType = "Cylinder"
- for i =1,5 do
- coroutine.resume(coroutine.create(function()
- coroutine.resume(coroutine.create(function()
- local SpawnSounds = {
- Spike = Instance.new("Sound")
- }
- SpawnSounds["Spike"].SoundId = "http://www.roblox.com/asset?id=486286230"
- SpawnSounds["Spike"].Volume = 0.1
- function PlaySpawnSound(soundname, pitch)
- SpawnSounds[soundname].Parent = ps
- SpawnSounds[soundname].Pitch = pitch
- SpawnSounds[soundname]:Play()
- local oldsound = SpawnSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- SpawnSounds[soundname] = SpawnSounds[soundname]:clone()
- end
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.3,0.3,0.3)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Deep orange"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,8 do wait()
- p.Size=Vector3.new(0.3*i,0.3*i,0.3*i)
- p.CFrame =(Bravery.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- PlaySpawnSound("Spike", 1)
- wait(0.5)
- end))
- xmathrandom = math.random(-10,10)
- ymathrandom = math.random(2,10)
- zmathrandom = math.random(-10,10)
- local Bomb= Instance.new("Part",hand5Bravery)
- Bomb.TopSurface = "Smooth"
- Bomb.BottomSurface = "Smooth"
- Bomb.Size = Vector3.new(0.1,0.1,0.1)
- Bomb.CanCollide = true
- Bomb.Anchored =true
- Bomb.BrickColor = BrickColor.new("Mid gray")
- Bomb .Shape = "Ball"
- Bomb .Material= "Neon"
- Bomb.Transparency = 0
- Bomb.CFrame= ps.CFrame*CFrame.new(xmathrandom,ymathrandom ,zmathrandom )*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- xmathrandom = 0
- ymathrandom = 0
- zmathrandom = 0
- wait(1)
- Bomb.BrickColor = BrickColor.new("Deep orange")
- local p = Instance.new("Part",workspace)
- p.FormFactor="Custom"
- p.Size=Vector3.new(0.1,0.1,0.1)
- p.TopSurface = 0
- p.BottomSurface = 0
- local colorc = {"Deep orange"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- p.BrickColor = Fire
- p.CanCollide=false
- p.Anchored=true
- p.CFrame =(Bomb.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- coroutine.resume(coroutine.create(function()
- for i = 1,2 do wait()
- p.Size=Vector3.new(0.1*i,0.1*i,0.1*i)
- p.CFrame =(Bomb.CFrame*CFrame.new(0,0,0))
- end
- p:remove()
- end))
- wait(1)
- local explosion = Instance.new("Part",workspace)
- explosion.FormFactor="Custom"
- explosion.Size=Vector3.new(0.8,0.8,0.8)
- explosion.TopSurface = 0
- explosion.BottomSurface = 0
- local colorc = {"Deep orange"}
- local Fire = BrickColor.new(colorc[math.random(1, #colorc)])
- explosion.BrickColor = Fire
- explosion.CanCollide=false
- explosion.Anchored=true
- explosion.CFrame =(Bomb.CFrame*CFrame.new(0,0,0))*CFrame.Angles(math.random(-3,3),math.random(-3,3),math.random(-3,3))
- PlaySound("Explode", 1, explosion, false)
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- if hit.Parent.Name == char.Name then return end
- if hit.Parent.Name == hand1Determination.Name then return end
- if hit.Parent.Name == hand2Perseverance.Name then return end
- if hit.Parent.Name == hand3Patience.Name then return end
- if hit.Parent.Name == hand4Integrity.Name then return end
- if hit.Parent.Name == hand5Bravery.Name then return end
- if hit.Parent.Name == hand6Justice.Name then return end
- if hit.Parent.Name == hand7Kindness.Name then return end
- hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-50
- local HitSounds = {
- Hurt = Instance.new("Sound")
- }
- HitSounds["Hurt"].SoundId = "http://www.roblox.com/asset?id=410625063"
- HitSounds["Hurt"].Volume = 1
- function PlayHitSound(soundname, pitch)
- HitSounds[soundname].Parent = hit.Parent.Torso
- HitSounds[soundname].Pitch = pitch
- HitSounds[soundname]:Play()
- local oldsound = HitSounds[soundname]
- coroutine.resume(coroutine.create(function()
- wait(4)
- oldsound:Destroy()
- end))
- HitSounds[soundname] = HitSounds[soundname]:clone()
- end
- PlayHitSound("Hurt", 1)
- end end
- explosion.Touched:connect(touch)
- coroutine.resume(coroutine.create(function()
- for i = 1,10 do wait()
- explosion.Position =Bomb.Position
- explosion.CFrame =Bomb.CFrame
- explosion.Size=Vector3.new(3*i,3*i,3*i)
- explosion.Position =Bomb.Position
- explosion.CFrame =Bomb.CFrame
- explosion.Transparency=explosion.Transparency + 0.1
- explosion.Position =Bomb.Position
- explosion.CFrame =Bomb.CFrame
- end
- explosion:remove()
- Bomb:remove()
- end))
- ps:remove()
- end))
- end
- wait(2)
- BraveryAttackDebounce = false
- end
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand1Determinationhealth.Health == 0 then
- if hand1DeterminationhealthDown == false then
- hand1DeterminationhealthDown = true
- Determination:remove()
- DeterminationAttack = false
- DetermiantionAttackDebounce = false
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand2Perseverancehealth.Health == 0 then
- if hand2PerseverancehealthDown == false then
- hand2PerseverancehealthDown = true
- Perseverance:remove()
- PerseveranceAttack = false
- PerseveranceAttackDebounce = false
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand3Patiencehealth.Health == 0 then
- if hand3PatiencehealthDown == false then
- hand3PatiencehealthDown = true
- Patience:remove()
- PatienceAttack = false
- PatienceAttackDebounce = false
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand4Integrityhealth.Health == 0 then
- if hand4IntegrityhealthDown == false then
- hand4IntegrityhealthDown = true
- Integrity:remove()
- IntegrityAttack = false
- IntegrityAttackDebounce = false
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand5Braveryhealth.Health == 0 then
- if hand5BraveryhealthDown == false then
- hand5BraveryhealthDown = true
- Bravery:remove()
- BraveryAttack = false
- BraveryAttackDebounce = false
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand6Justicehealth.Health == 0 then
- if hand6JusticehealthDown == false then
- hand6JusticehealthDown = true
- Justice:remove()
- JusticeAttack = false
- JusticeAttackDebounce = false
- end
- end
- end)
- game:service("RunService").Stepped:connect(function()
- if hand7Kindnesshealth.Health == 0 then
- if hand7KindnesshealthDown == false then
- hand7KindnesshealthDown = true
- Kindness:remove()
- KindnessAttack = false
- KindnessAttackDebounce = false
- if ShieldValueToGasterDebounce == false then
- ShieldValueToGasterDebounce = true
- for i = 1,3 do wait()
- shieldparent6.Transparency =shieldparent6.Transparency + 0.1
- shieldparent5.Transparency =shieldparent5.Transparency + 0.1
- shieldparent4.Transparency =shieldparent4.Transparency + 0.1
- shieldparent3.Transparency =shieldparent3.Transparency + 0.1
- shieldparent2.Transparency =shieldparent2.Transparency + 0.1
- shieldparent1.Transparency =shieldparent1.Transparency + 0.1
- end
- shieldparent6:remove()
- shieldparent5:remove()
- shieldparent4:remove()
- shieldparent3:remove()
- shieldparent2:remove()
- shieldparent1:remove()
- shieldparent1=nil
- shieldparent2=nil
- shieldparent3=nil
- shieldparent4=nil
- shieldparent5=nil
- shieldparent6=nil
- end
- end
- end
- end)
- char.Humanoid.MaxHealth = 666666666
- wait()
- char.Humanoid.Health = 666666666
- end)
- SRY.Name = "SRY"
- SRY.Parent = Frame
- SRY.BackgroundColor3 = Color3.new(1, 1, 1)
- SRY.Position = UDim2.new(0.444223106, 0, 0.470852017, 0)
- SRY.Size = UDim2.new(0, 203, 0, 50)
- SRY.Font = Enum.Font.SourceSans
- SRY.Text = "Sorry, gonna continue soon."
- SRY.TextColor3 = Color3.new(0, 0, 0)
- SRY.TextSize = 14
- -- Scripts:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement