SHOW:
|
|
- or go back to the newest paste.
| 1 | - | -- a tattoo shaped like a moon |
| 1 | + | -- Synapse Decompiler |
| 2 | - | -- written by yeox769, for everyman |
| 2 | + | -- Purchase Here: https://brack4712.xyz/synapse/purchase/ |
| 3 | ||
| 4 | - | clr = "Bright orange" -- set this to whatever you want |
| 4 | + | wait(0.2) |
| 5 | Player = game:GetService("Players").LocalPlayer
| |
| 6 | - | wait(0.5) |
| 6 | + | PlayerGui = Player.PlayerGui |
| 7 | - | Player=game:GetService("Players").beastengamer3
|
| 7 | + | Cam = workspace.CurrentCamera |
| 8 | - | Character=Player.Character |
| 8 | + | Backpack = Player.Backpack |
| 9 | - | PlayerGui=Player.PlayerGui |
| 9 | + | Character = Player.Character |
| 10 | - | Backpack=Player.Backpack |
| 10 | + | Humanoid = Character.Humanoid |
| 11 | - | Torso=Character.Torso |
| 11 | + | Mouse = Player:GetMouse() |
| 12 | - | Head=Character.Head |
| 12 | + | RootPart = Character.HumanoidRootPart |
| 13 | - | Humanoid=Character.Humanoid |
| 13 | + | Torso = Character.Torso |
| 14 | - | m=Instance.new('Model',Character)
|
| 14 | + | Head = Character.Head |
| 15 | - | LeftArm=Character["Left Arm"] |
| 15 | + | RightArm = Character["Right Arm"] |
| 16 | - | LeftLeg=Character["Left Leg"] |
| 16 | + | LeftArm = Character["Left Arm"] |
| 17 | - | RightArm=Character["Right Arm"] |
| 17 | + | RightLeg = Character["Right Leg"] |
| 18 | - | RightLeg=Character["Right Leg"] |
| 18 | + | LeftLeg = Character["Left Leg"] |
| 19 | - | LS=Torso["Left Shoulder"] |
| 19 | + | RootJoint = RootPart.RootJoint |
| 20 | - | LH=Torso["Left Hip"] |
| 20 | + | Neck = Torso.Neck |
| 21 | - | RS=Torso["Right Shoulder"] |
| 21 | + | RightShoulder = Torso["Right Shoulder"] |
| 22 | - | RH=Torso["Right Hip"] |
| 22 | + | LeftShoulder = Torso["Left Shoulder"] |
| 23 | - | Face = Head.face |
| 23 | + | RightHip = Torso["Right Hip"] |
| 24 | - | Neck=Torso.Neck |
| 24 | + | LeftHip = Torso["Left Hip"] |
| 25 | - | it=Instance.new |
| 25 | + | local sick = Instance.new("Sound", Character)
|
| 26 | - | attacktype=1 |
| 26 | + | sick.SoundId = "rbxassetid://563882687" |
| 27 | - | vt=Vector3.new |
| 27 | + | sick.Name = "BGM" |
| 28 | - | cf=CFrame.new |
| 28 | + | sick.Looped = true |
| 29 | - | euler=CFrame.fromEulerAnglesXYZ |
| 29 | + | sick.Pitch = 1 |
| 30 | - | angles=CFrame.Angles |
| 30 | + | sick.Volume = 2 |
| 31 | - | cloaked=false |
| 31 | + | sick:Play() |
| 32 | - | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
| 32 | + | IT = Instance.new |
| 33 | - | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
| 33 | + | CF = CFrame.new |
| 34 | - | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) |
| 34 | + | VT = Vector3.new |
| 35 | - | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) |
| 35 | + | RAD = math.rad |
| 36 | - | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) |
| 36 | + | C3 = Color3.new |
| 37 | - | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) |
| 37 | + | UD2 = UDim2.new |
| 38 | - | RootPart=Character.HumanoidRootPart |
| 38 | + | BRICKC = BrickColor.new |
| 39 | - | RootJoint=RootPart.RootJoint |
| 39 | + | ANGLES = CFrame.Angles |
| 40 | - | RootCF=euler(-1.57,0,3.14) |
| 40 | + | EULER = CFrame.fromEulerAnglesXYZ |
| 41 | - | attack = false |
| 41 | + | COS = math.cos |
| 42 | - | attackdebounce = false |
| 42 | + | ACOS = math.acos |
| 43 | - | deb=false |
| 43 | + | SIN = math.sin |
| 44 | - | equipped=true |
| 44 | + | ASIN = math.asin |
| 45 | - | hand=false |
| 45 | + | ABS = math.abs |
| 46 | - | MMouse=nil |
| 46 | + | MRANDOM = math.random |
| 47 | - | combo=0 |
| 47 | + | FLOOR = math.floor |
| 48 | - | trispeed=.2 |
| 48 | + | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) |
| 49 | - | attackmode='none' |
| 49 | + | local NEWMESH = IT(MESH) |
| 50 | - | local idle=0 |
| 50 | + | if MESH == "SpecialMesh" then |
| 51 | - | local Anim="Idle" |
| 51 | + | NEWMESH.MeshType = MESHTYPE |
| 52 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 53 | - | it = Instance.new |
| 53 | + | NEWMESH.MeshId = "http://www.roblox.com/asset/?id=" .. MESHID |
| 54 | end | |
| 55 | - | local part = function(name,parent,brkclr,mtrl,rfl,trns,sz) |
| 55 | + | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then |
| 56 | - | local prt = it("Part",parent)
|
| 56 | + | NEWMESH.TextureId = "http://www.roblox.com/asset/?id=" .. TEXTUREID |
| 57 | - | prt.Name = name |
| 57 | + | |
| 58 | - | prt.CanCollide = false |
| 58 | + | |
| 59 | - | prt.BrickColor = BrickColor.new(brkclr) |
| 59 | + | NEWMESH.Offset = OFFSET or VT(0, 0, 0) |
| 60 | - | if brkclr == "Really black" and mtrl == "Neon" then prt.Color = Color3.new(0,0,0) end |
| 60 | + | NEWMESH.Scale = SCALE |
| 61 | - | prt.Material = mtrl |
| 61 | + | NEWMESH.Parent = PARENT |
| 62 | - | prt.Reflectance = rfl |
| 62 | + | return NEWMESH |
| 63 | - | prt.Transparency = trns |
| 63 | + | |
| 64 | - | prt.Size = sz |
| 64 | + | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) |
| 65 | - | prt.Anchored = true |
| 65 | + | local NEWPART = IT("Part")
|
| 66 | - | return prt |
| 66 | + | NEWPART.formFactor = FORMFACTOR |
| 67 | NEWPART.Reflectance = REFLECTANCE | |
| 68 | - | local mesh = function(meshtype,parent,meshid,textureid,scale) |
| 68 | + | NEWPART.Transparency = TRANSPARENCY |
| 69 | - | local msh = it("SpecialMesh",parent)
|
| 69 | + | NEWPART.CanCollide = false |
| 70 | - | if meshtype == "FileMesh" then |
| 70 | + | NEWPART.Locked = true |
| 71 | - | msh.MeshId = meshid |
| 71 | + | NEWPART.Anchored = true |
| 72 | - | msh.TextureId = textureid |
| 72 | + | if ANCHOR == false then |
| 73 | NEWPART.Anchored = false | |
| 74 | - | msh.MeshType = meshtype |
| 74 | + | |
| 75 | - | msh.Scale = scale |
| 75 | + | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) |
| 76 | - | return(msh) |
| 76 | + | NEWPART.Name = NAME |
| 77 | NEWPART.Size = SIZE | |
| 78 | - | local weld = function(part1,part2,x1,y1,z1,x2,y2,z2) |
| 78 | + | NEWPART.Position = Torso.Position |
| 79 | - | local w = it("Weld",part1)
|
| 79 | + | NEWPART.Material = MATERIAL |
| 80 | - | w.Part0 = part1 |
| 80 | + | NEWPART:BreakJoints() |
| 81 | - | w.Part1 = part2 |
| 81 | + | NEWPART.Parent = PARENT |
| 82 | - | if part1.Anchored or part2.Anchored then |
| 82 | + | return NEWPART |
| 83 | - | part1.Anchored = false |
| 83 | + | |
| 84 | - | part2.Anchored = false |
| 84 | + | Player_Size = 1 |
| 85 | Animation_Speed = 3 | |
| 86 | - | w.C0 = (CFrame.new(x1,y1,z1)*CFrame.Angles(math.rad(z2),math.rad(y2),math.rad(x2))) |
| 86 | + | Frame_Speed = 0.016666666666666666 |
| 87 | - | return(w) |
| 87 | + | local Speed = 16 |
| 88 | local Effects2 = {}
| |
| 89 | - | local emit = function(parent,tex,startcolor, endcolor, startsize,endsize,lightem,emdir,lif,rate,speed,rotspeed,sprdang) |
| 89 | + | local weldBetween = function(a, b) |
| 90 | - | local emm = it("ParticleEmitter",parent)
|
| 90 | + | local weldd = Instance.new("ManualWeld")
|
| 91 | - | emm.Texture = tex |
| 91 | + | weldd.Part0 = a |
| 92 | - | emm.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,startcolor),ColorSequenceKeypoint.new(1,endcolor)})
|
| 92 | + | weldd.Part1 = b |
| 93 | - | emm.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,startsize),NumberSequenceKeypoint.new(1,endsize)})
|
| 93 | + | weldd.C0 = CFrame.new() |
| 94 | - | emm.LightEmission = lightem |
| 94 | + | weldd.C1 = b.CFrame:inverse() * a.CFrame |
| 95 | - | emm.EmissionDirection = emdir |
| 95 | + | weldd.Parent = a |
| 96 | - | emm.Lifetime = NumberRange.new(lif) |
| 96 | + | return weldd |
| 97 | - | emm.Rate = rate |
| 97 | + | |
| 98 | - | emm.Speed = NumberRange.new(speed) |
| 98 | + | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
| 99 | - | emm.RotSpeed = NumberRange.new(rotspeed) |
| 99 | + | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) |
| 100 | - | emm.SpreadAngle = Vector2.new(sprdang,sprdang) |
| 100 | + | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) |
| 101 | - | return(emm) |
| 101 | + | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) |
| 102 | local CHANGEDEFENSE = 0 | |
| 103 | local CHANGEDAMAGE = 0 | |
| 104 | - | p = part("Part",m,clr,"Neon",0,0,Vector3.new(0.05, 0.1, 0.1))
|
| 104 | + | local CHANGEMOVEMENT = 0 |
| 105 | - | mesh("Cylinder",p,"","",Vector3.new(1,1,1))
|
| 105 | + | local ANIM = "Idle" |
| 106 | - | weld(Head,p,0,0.325,-0.575,0,90,0) |
| 106 | + | local ATTACK = false |
| 107 | - | p = part("Part",m,Head.BrickColor.Name,"SmoothPlastic",0,0,Vector3.new(0.05, 0.1, 0.1))
|
| 107 | + | local EQUIPPED = false |
| 108 | - | mesh("Cylinder",p,"","",Vector3.new(1,1,1))
|
| 108 | + | local HOLD = false |
| 109 | - | weld(Head,p,-0.04,0.325,-0.58,0,90,0) |
| 109 | + | local COMBO = 1 |
| 110 | - | --NoobyGames12 |
| 110 | + | local Rooted = false |
| 111 | local SINE = 0 | |
| 112 | - | print'lets do this' |
| 112 | + | local KEYHOLD = false |
| 113 | local CHANGE = 2 / Animation_Speed | |
| 114 | - | plr = game.Players.LocalPlayer |
| 114 | + | local WALKINGANIM = false |
| 115 | - | char = plr.Character |
| 115 | + | local WALK = 0 |
| 116 | - | hum = char.Humanoid |
| 116 | + | local VALUE1 = false |
| 117 | - | local cam = game.Workspace.CurrentCamera |
| 117 | + | local VALUE2 = false |
| 118 | - | t = char.Torso |
| 118 | + | local ROBLOXIDLEANIMATION = IT("Animation")
|
| 119 | - | h = char.Head |
| 119 | + | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" |
| 120 | - | ra = char["Right Arm"] |
| 120 | + | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" |
| 121 | - | la = char["Left Arm"] |
| 121 | + | local WEAPONGUI = IT("ScreenGui", PlayerGui)
|
| 122 | - | rl = char["Right Leg"] |
| 122 | + | WEAPONGUI.Name = "Weapon GUI" |
| 123 | - | ll = char["Left Leg"] |
| 123 | + | local Effects = IT("Folder", Character)
|
| 124 | - | tors = char.Torso |
| 124 | + | Effects.Name = "Effects" |
| 125 | - | lleg = char["Left Leg"] |
| 125 | + | local ANIMATOR = Humanoid.Animator |
| 126 | - | root = char.HumanoidRootPart |
| 126 | + | local ANIMATE = Character.Animate |
| 127 | - | hed = char.Head |
| 127 | + | local ATTACKEDTAUNTS = {
|
| 128 | - | rleg = char["Right Leg"] |
| 128 | + | "907332040", |
| 129 | - | rarm = char["Right Arm"] |
| 129 | + | "907332525", |
| 130 | - | larm = char["Left Arm"] |
| 130 | + | "907330011" |
| 131 | - | vt = Vector3.new |
| 131 | + | } |
| 132 | - | bc = BrickColor.new |
| 132 | + | local ATTACKTAUNTS = {
|
| 133 | - | br = BrickColor.random |
| 133 | + | "907329893", |
| 134 | - | it = Instance.new |
| 134 | + | "907329532", |
| 135 | - | cf = CFrame.new |
| 135 | + | "907333294", |
| 136 | "907332856" | |
| 137 | - | local m = Instance.new("Model",char)
|
| 137 | + | } |
| 138 | - | m.Name = "GaunletModel" |
| 138 | + | local ULTTAUNTS = {
|
| 139 | "907332997", | |
| 140 | - | local maincolor = t.BrickColor |
| 140 | + | "907332670", |
| 141 | - | local maincolor2 = BrickColor.new("Really black")
|
| 141 | + | "907330103" |
| 142 | } | |
| 143 | - | function CreatePart(parent,transparency,reflectance,material,brickcolor) |
| 143 | + | local UNANCHOR = true |
| 144 | - | local p = Instance.new("Part")
|
| 144 | + | local SKILLTEXTCOLOR = C3(1, 0, 0) |
| 145 | - | p.Parent = parent |
| 145 | + | ArtificialHB = Instance.new("BindableEvent", script)
|
| 146 | - | p.Size = Vector3.new(1,1,1) |
| 146 | + | ArtificialHB.Name = "ArtificialHB" |
| 147 | - | p.Transparency = transparency |
| 147 | + | script:WaitForChild("ArtificialHB")
|
| 148 | - | p.Reflectance = reflectance |
| 148 | + | frame = Frame_Speed |
| 149 | - | p.CanCollide = false |
| 149 | + | tf = 0 |
| 150 | - | p.BrickColor = brickcolor |
| 150 | + | allowframeloss = false |
| 151 | - | p.Material = material |
| 151 | + | tossremainder = false |
| 152 | - | return p |
| 152 | + | lastframe = tick() |
| 153 | script.ArtificialHB:Fire() | |
| 154 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 155 | - | function CreateMesh(parent,meshtype,x1,y1,z1) |
| 155 | + | tf = tf + s |
| 156 | - | local mesh = Instance.new("SpecialMesh",parent)
|
| 156 | + | if tf >= frame then |
| 157 | - | mesh.MeshType = meshtype |
| 157 | + | if allowframeloss then |
| 158 | - | mesh.Scale = Vector3.new(x1,y1,z1) |
| 158 | + | script.ArtificialHB:Fire() |
| 159 | - | return mesh |
| 159 | + | lastframe = tick() |
| 160 | else | |
| 161 | for i = 1, math.floor(tf / frame) do | |
| 162 | - | function CreateSpecialMesh(parent,meshid,x1,y1,z1) |
| 162 | + | script.ArtificialHB:Fire() |
| 163 | - | local mesh = Instance.new("SpecialMesh",parent)
|
| 163 | + | |
| 164 | - | mesh.MeshType = "SpecialMesh" |
| 164 | + | lastframe = tick() |
| 165 | - | mesh.MeshId = meshid |
| 165 | + | |
| 166 | - | mesh.Scale = Vector3.new(x1,y1,z1) |
| 166 | + | if tossremainder then |
| 167 | - | return mesh |
| 167 | + | tf = 0 |
| 168 | else | |
| 169 | tf = tf - frame * math.floor(tf / frame) | |
| 170 | - | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) |
| 170 | + | |
| 171 | - | local mesh = Instance.new("SpecialMesh",parent)
|
| 171 | + | |
| 172 | - | mesh.MeshType = "FileMesh" |
| 172 | + | |
| 173 | - | mesh.MeshId = meshid |
| 173 | + | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) |
| 174 | - | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" |
| 174 | + | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) |
| 175 | - | mesh.Scale = Vector3.new(x1,y1,z1) |
| 175 | + | |
| 176 | - | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) |
| 176 | + | function PositiveAngle(NUMBER) |
| 177 | - | return mesh |
| 177 | + | if NUMBER >= 0 then |
| 178 | NUMBER = 0 | |
| 179 | end | |
| 180 | - | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) |
| 180 | + | return NUMBER |
| 181 | - | local weld = Instance.new("Weld")
|
| 181 | + | |
| 182 | - | weld.Parent = parent |
| 182 | + | function NegativeAngle(NUMBER) |
| 183 | - | weld.Part0 = part0 |
| 183 | + | if NUMBER <= 0 then |
| 184 | - | weld.Part1 = part1 |
| 184 | + | NUMBER = 0 |
| 185 | - | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) |
| 185 | + | |
| 186 | - | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) |
| 186 | + | return NUMBER |
| 187 | - | return weld |
| 187 | + | |
| 188 | function Swait(NUMBER) | |
| 189 | if NUMBER == 0 or NUMBER == nil then | |
| 190 | - | local llegw = CreatePart(m,1,1,"Glass",maincolor2) |
| 190 | + | ArtificialHB.Event:wait() |
| 191 | - | CreateWeld(llegw,lleg,llegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 191 | + | else |
| 192 | - | local rlegw = CreatePart(m,1,1,"Glass",maincolor2) |
| 192 | + | for i = 1, NUMBER do |
| 193 | - | CreateWeld(rlegw,rleg,rlegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 193 | + | ArtificialHB.Event:wait() |
| 194 | end | |
| 195 | - | local sorb = CreatePart(m,1,1,"Glass",maincolor2) |
| 195 | + | |
| 196 | - | CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 196 | + | |
| 197 | - | local sorb2 = CreatePart(m,1,1,"Glass",maincolor2) |
| 197 | + | function QuaternionFromCFrame(cf) |
| 198 | - | CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 198 | + | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
| 199 | local trace = m00 + m11 + m22 | |
| 200 | - | ---- Right arm |
| 200 | + | if trace > 0 then |
| 201 | - | local handle = CreatePart(m,0,0,"Glass",maincolor2) |
| 201 | + | local s = math.sqrt(1 + trace) |
| 202 | - | CreateMesh(handle,"Brick",1.05,1.5,1.05) |
| 202 | + | local recip = 0.5 / s |
| 203 | - | CreateWeld(handle,rarm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 203 | + | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 |
| 204 | - | local lowhandle = CreatePart(m,0,0,"Glass",maincolor2) |
| 204 | + | else |
| 205 | - | CreateMesh(lowhandle,"Brick",1.025,0.3,1.025) |
| 205 | + | local i = 0 |
| 206 | - | CreateWeld(lowhandle,rarm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 206 | + | if m00 < m11 then |
| 207 | - | local lowhandleo = CreatePart(m,0,0,"Neon",maincolor) |
| 207 | + | i = 1 |
| 208 | - | CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02) |
| 208 | + | |
| 209 | - | CreateWeld(lowhandleo,rarm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 209 | + | if m22 > (i == 0 and m00 or m11) then |
| 210 | - | local handleg = CreatePart(m,0,0,"Neon",maincolor) |
| 210 | + | i = 2 |
| 211 | - | CreateMesh(handleg,"Brick",1.025,1.5,1.025) |
| 211 | + | |
| 212 | - | CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 212 | + | if i == 0 then |
| 213 | - | local handleo = CreatePart(m,0,0,"Neon",maincolor) |
| 213 | + | local s = math.sqrt(m00 - m11 - m22 + 1) |
| 214 | - | CreateMesh(handleo,"Brick",0.5,0.85,1.085) |
| 214 | + | local recip = 0.5 / s |
| 215 | - | CreateWeld(handleo,handle,handleo,-0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 215 | + | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip |
| 216 | - | local handleo2 = CreatePart(m,0,0,"Glass",maincolor2) |
| 216 | + | elseif i == 1 then |
| 217 | - | CreateMesh(handleo2,"Brick",0.5,0.8,1.09) |
| 217 | + | local s = math.sqrt(m11 - m22 - m00 + 1) |
| 218 | - | CreateWeld(handleo2,handle,handleo2,-0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 218 | + | local recip = 0.5 / s |
| 219 | - | local zi = CreatePart(m,0,0,"Neon",maincolor) |
| 219 | + | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip |
| 220 | - | CreateMesh(zi,"Brick",0.025,1.525,1.1) |
| 220 | + | elseif i == 2 then |
| 221 | - | CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 221 | + | local s = math.sqrt(m22 - m00 - m11 + 1) |
| 222 | local recip = 0.5 / s | |
| 223 | - | local to = CreatePart(m,0,0,"Glass",maincolor2) |
| 223 | + | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip |
| 224 | - | CreateMesh(to,"Brick",0.5,1.5,0.5) |
| 224 | + | |
| 225 | - | CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 225 | + | |
| 226 | - | local tl = CreatePart(m,0,0,"Neon",maincolor) |
| 226 | + | |
| 227 | - | CreateMesh(tl,"Brick",0.6,1.45,0.6) |
| 227 | + | function QuaternionToCFrame(px, py, pz, x, y, z, w) |
| 228 | - | CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 228 | + | local xs, ys, zs = x + x, y + y, z + z |
| 229 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 230 | - | local zo = CreatePart(m,0,0,"Neon",maincolor) |
| 230 | + | local xx = x * xs |
| 231 | - | CreateMesh(zo,"Brick",0.565,0.025,1.1) |
| 231 | + | local xy = x * ys |
| 232 | - | CreateWeld(zo,handle,zo,-0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 232 | + | local xz = x * zs |
| 233 | - | local zoa = CreatePart(m,0,0,"Neon",maincolor) |
| 233 | + | local yy = y * ys |
| 234 | - | CreateMesh(zoa,"Brick",0.565,0.025,1.1) |
| 234 | + | local yz = y * zs |
| 235 | - | CreateWeld(zoa,handle,zoa,-0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 235 | + | local zz = z * zs |
| 236 | - | local zob = CreatePart(m,0,0,"Neon",maincolor) |
| 236 | + | 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)) |
| 237 | - | CreateMesh(zob,"Brick",0.565,0.025,1.1) |
| 237 | + | |
| 238 | - | CreateWeld(zob,handle,zob,-0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 238 | + | function QuaternionSlerp(a, b, t) |
| 239 | - | local zz = CreatePart(m,0,0,"Neon",maincolor) |
| 239 | + | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] |
| 240 | - | CreateMesh(zz,"Brick",0.3,0.3,0.3) |
| 240 | + | local startInterp, finishInterp |
| 241 | - | CreateWeld(zz,zoa,zz,-0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 241 | + | if cosTheta >= 1.0E-4 then |
| 242 | - | local zzo = CreatePart(m,0,0,"Glass",maincolor2) |
| 242 | + | if 1 - cosTheta > 1.0E-4 then |
| 243 | - | CreateMesh(zzo,"Brick",0.315,0.275,0.275) |
| 243 | + | local theta = ACOS(cosTheta) |
| 244 | - | CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 244 | + | local invSinTheta = 1 / SIN(theta) |
| 245 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 246 | - | local li = CreatePart(m,0,0,"Neon",maincolor) |
| 246 | + | finishInterp = SIN(t * theta) * invSinTheta |
| 247 | - | CreateMesh(li,"Brick",0.275,0.825,0.025) |
| 247 | + | else |
| 248 | - | CreateWeld(li,handleo,li,-0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 248 | + | startInterp = 1 - t |
| 249 | finishInterp = t | |
| 250 | - | local li1 = CreatePart(m,0,0,"Neon",maincolor) |
| 250 | + | |
| 251 | - | CreateMesh(li1,"Brick",0.275,0.825,0.025) |
| 251 | + | elseif 1 + cosTheta > 1.0E-4 then |
| 252 | - | CreateWeld(li1,handleo,li1,-0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 252 | + | local theta = ACOS(-cosTheta) |
| 253 | - | local li2 = CreatePart(m,0,0,"Neon",maincolor) |
| 253 | + | local invSinTheta = 1 / SIN(theta) |
| 254 | - | CreateMesh(li2,"Brick",0.275,0.825,0.025) |
| 254 | + | startInterp = SIN((t - 1) * theta) * invSinTheta |
| 255 | - | CreateWeld(li2,handleo,li2,-0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 255 | + | finishInterp = SIN(t * theta) * invSinTheta |
| 256 | else | |
| 257 | - | local di = CreatePart(m,0,0,"Neon",maincolor) |
| 257 | + | startInterp = t - 1 |
| 258 | - | CreateMesh(di,"Brick",0.3,0.3,0.3) |
| 258 | + | finishInterp = t |
| 259 | - | CreateWeld(di,handleo,di,-0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 259 | + | |
| 260 | 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 | |
| 261 | - | local di1 = CreatePart(m,0,0,"Neon",maincolor) |
| 261 | + | |
| 262 | - | CreateMesh(di1,"Brick",0.3,0.15,0.15) |
| 262 | + | function Clerp(a, b, t) |
| 263 | - | CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 263 | + | local qa = {
|
| 264 | - | local di2 = CreatePart(m,0,0,"Neon",maincolor) |
| 264 | + | QuaternionFromCFrame(a) |
| 265 | - | CreateMesh(di2,"Brick",0.3,0.15,0.15) |
| 265 | + | } |
| 266 | - | CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 266 | + | local qb = {
|
| 267 | - | local di3 = CreatePart(m,0,0,"Neon",maincolor) |
| 267 | + | QuaternionFromCFrame(b) |
| 268 | - | CreateMesh(di3,"Brick",0.3,0.15,0.15) |
| 268 | + | } |
| 269 | - | CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 269 | + | local ax, ay, az = a.x, a.y, a.z |
| 270 | - | local di4 = CreatePart(m,0,0,"Neon",maincolor) |
| 270 | + | local bx, by, bz = b.x, b.y, b.z |
| 271 | - | CreateMesh(di4,"Brick",0.3,0.15,0.15) |
| 271 | + | local _t = 1 - t |
| 272 | - | CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 272 | + | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) |
| 273 | - | local dio = CreatePart(m,0,0,"Glass",maincolor2) |
| 273 | + | |
| 274 | - | CreateMesh(dio,"Brick",0.325,0.275,0.275) |
| 274 | + | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) |
| 275 | - | CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 275 | + | local frame = IT("Frame")
|
| 276 | - | local dio1 = CreatePart(m,0,0,"Glass",maincolor2) |
| 276 | + | frame.BackgroundTransparency = TRANSPARENCY |
| 277 | - | CreateMesh(dio1,"Brick",0.325,0.125,0.125) |
| 277 | + | frame.BorderSizePixel = BORDERSIZEPIXEL |
| 278 | - | CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 278 | + | frame.Position = POSITION |
| 279 | - | local dio2 = CreatePart(m,0,0,"Glass",maincolor2) |
| 279 | + | frame.Size = SIZE |
| 280 | - | CreateMesh(dio2,"Brick",0.325,0.125,0.125) |
| 280 | + | frame.BackgroundColor3 = COLOR |
| 281 | - | CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 281 | + | frame.BorderColor3 = BORDERCOLOR |
| 282 | - | local dio3 = CreatePart(m,0,0,"Glass",maincolor2) |
| 282 | + | frame.Name = NAME |
| 283 | - | CreateMesh(dio3,"Brick",0.325,0.125,0.125) |
| 283 | + | frame.Parent = PARENT |
| 284 | - | CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 284 | + | return frame |
| 285 | - | local dio4 = CreatePart(m,0,0,"Glass",maincolor2) |
| 285 | + | |
| 286 | - | CreateMesh(dio4,"Brick",0.325,0.125,0.125) |
| 286 | + | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) |
| 287 | - | CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 287 | + | local label = IT("TextLabel")
|
| 288 | label.BackgroundTransparency = 1 | |
| 289 | - | local sq1 = CreatePart(m,0,0,"Neon",maincolor) |
| 289 | + | label.Size = UD2(1, 0, 1, 0) |
| 290 | - | CreateMesh(sq1,"Brick",0.3,0.125,0.125) |
| 290 | + | label.Position = UD2(0, 0, 0, 0) |
| 291 | - | CreateWeld(sq1,handleo,sq1,-0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 291 | + | label.TextColor3 = TEXTCOLOR |
| 292 | - | local sq2 = CreatePart(m,0,0,"Neon",maincolor) |
| 292 | + | label.TextStrokeTransparency = STROKETRANSPARENCY |
| 293 | - | CreateMesh(sq2,"Brick",0.3,0.125,0.125) |
| 293 | + | label.TextTransparency = TRANSPARENCY |
| 294 | - | CreateWeld(sq2,handleo,sq2,-0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 294 | + | label.FontSize = TEXTFONTSIZE |
| 295 | - | local sq3 = CreatePart(m,0,0,"Neon",maincolor) |
| 295 | + | label.Font = TEXTFONT |
| 296 | - | CreateMesh(sq3,"Brick",0.3,0.125,0.125) |
| 296 | + | label.BorderSizePixel = BORDERSIZEPIXEL |
| 297 | - | CreateWeld(sq3,handleo,sq3,-0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 297 | + | label.TextScaled = false |
| 298 | - | local sq4 = CreatePart(m,0,0,"Neon",maincolor) |
| 298 | + | label.Text = TEXT |
| 299 | - | CreateMesh(sq4,"Brick",0.3,0.125,0.125) |
| 299 | + | label.Name = NAME |
| 300 | - | CreateWeld(sq4,handleo,sq4,-0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 300 | + | label.Parent = PARENT |
| 301 | return label | |
| 302 | - | local sqo1 = CreatePart(m,0,0,"Glass",maincolor2) |
| 302 | + | |
| 303 | - | CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115) |
| 303 | + | function NoOutlines(PART) |
| 304 | - | CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 304 | + | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 |
| 305 | - | local sqo2 = CreatePart(m,0,0,"Glass",maincolor2) |
| 305 | + | |
| 306 | - | CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115) |
| 306 | + | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) |
| 307 | - | CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 307 | + | local NEWWELD = IT(TYPE) |
| 308 | - | local sqo3 = CreatePart(m,0,0,"Glass",maincolor2) |
| 308 | + | NEWWELD.Part0 = PART0 |
| 309 | - | CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115) |
| 309 | + | NEWWELD.Part1 = PART1 |
| 310 | - | CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 310 | + | NEWWELD.C0 = C0 |
| 311 | - | local sqo4 = CreatePart(m,0,0,"Glass",maincolor2) |
| 311 | + | NEWWELD.C1 = C1 |
| 312 | - | CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115) |
| 312 | + | NEWWELD.Parent = PARENT |
| 313 | - | CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 313 | + | return NEWWELD |
| 314 | end | |
| 315 | - | local locl = CreatePart(m,0,0,"Neon",maincolor) |
| 315 | + | local S = IT("Sound")
|
| 316 | - | CreateMesh(locl,"Brick",0.1,0.1,0.1) |
| 316 | + | function CreateSound(ID, PARENT, VOLUME, PITCH) |
| 317 | - | CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 317 | + | local NEWSOUND |
| 318 | coroutine.resume(coroutine.create(function() | |
| 319 | - | local dil = CreatePart(m,0,0,"Neon",maincolor) |
| 319 | + | NEWSOUND = S:Clone() |
| 320 | - | CreateMesh(dil,"Brick",0.45,0.45,0.3) |
| 320 | + | NEWSOUND.Parent = PARENT |
| 321 | - | CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 321 | + | NEWSOUND.Volume = VOLUME |
| 322 | NEWSOUND.Pitch = PITCH | |
| 323 | - | local dil1 = CreatePart(m,0,0,"Neon",maincolor) |
| 323 | + | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id=" .. ID |
| 324 | - | CreateMesh(dil1,"Brick",0.225,0.225,0.3) |
| 324 | + | Swait() |
| 325 | - | CreateWeld(dil1,dil,dil1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 325 | + | NEWSOUND:play() |
| 326 | - | local dil2 = CreatePart(m,0,0,"Neon",maincolor) |
| 326 | + | game:GetService("Debris"):AddItem(NEWSOUND, 10)
|
| 327 | - | CreateMesh(dil2,"Brick",0.225,0.225,0.3) |
| 327 | + | end)) |
| 328 | - | CreateWeld(dil2,dil,dil2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 328 | + | return NEWSOUND |
| 329 | end | |
| 330 | - | local dilo = CreatePart(m,0,0,"Glass",maincolor2) |
| 330 | + | function CFrameFromTopBack(at, top, back) |
| 331 | - | CreateMesh(dilo,"Brick",0.375,0.375,0.315) |
| 331 | + | local right = top:Cross(back) |
| 332 | - | CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 332 | + | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) |
| 333 | - | local dilo1 = CreatePart(m,0,0,"Glass",maincolor2) |
| 333 | + | |
| 334 | - | CreateMesh(dilo1,"Brick",0.175,0.175,0.315) |
| 334 | + | function CreateWave(SIZE, WAIT, CFRAME, DOESROT, ROT, COLOR, GROW) |
| 335 | - | CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 335 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) |
| 336 | - | local dilo2 = CreatePart(m,0,0,"Glass",maincolor2) |
| 336 | + | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "20329976", "", SIZE, VT(0, 0, -SIZE.X / 8))
|
| 337 | - | CreateMesh(dilo2,"Brick",0.175,0.175,0.315) |
| 337 | + | wave.CFrame = CFRAME |
| 338 | - | CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 338 | + | coroutine.resume(coroutine.create(function(PART) |
| 339 | for i = 1, WAIT do | |
| 340 | - | local locr = CreatePart(m,0,0,"Neon",maincolor) |
| 340 | + | Swait() |
| 341 | - | CreateMesh(locr,"Brick",0.1,0.1,0.1) |
| 341 | + | mesh.Scale = mesh.Scale + GROW |
| 342 | - | CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 342 | + | mesh.Offset = VT(0, 0, -(mesh.Scale.X / 8)) |
| 343 | if DOESROT == true then | |
| 344 | - | local dir = CreatePart(m,0,0,"Neon",maincolor) |
| 344 | + | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) |
| 345 | - | CreateMesh(dir,"Brick",0.45,0.45,0.3) |
| 345 | + | |
| 346 | - | CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 346 | + | wave.Transparency = wave.Transparency + 0.5 / WAIT |
| 347 | if wave.Transparency > 0.99 then | |
| 348 | - | local dir1 = CreatePart(m,0,0,"Neon",maincolor) |
| 348 | + | wave:remove() |
| 349 | - | CreateMesh(dir1,"Brick",0.225,0.225,0.3) |
| 349 | + | |
| 350 | - | CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 350 | + | |
| 351 | - | local dir2 = CreatePart(m,0,0,"Neon",maincolor) |
| 351 | + | end)) |
| 352 | - | CreateMesh(dir2,"Brick",0.225,0.225,0.3) |
| 352 | + | |
| 353 | - | CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 353 | + | function CreateRing(SIZE, DOESROT, ROT, WAIT, CFRAME, COLOR, GROW) |
| 354 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0, 0, 0)) | |
| 355 | - | local diro = CreatePart(m,0,0,"Glass",maincolor2) |
| 355 | + | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "559831844", "", SIZE, VT(0, 0, 0))
|
| 356 | - | CreateMesh(diro,"Brick",0.375,0.375,0.315) |
| 356 | + | wave.CFrame = CFRAME |
| 357 | - | CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 357 | + | coroutine.resume(coroutine.create(function(PART) |
| 358 | - | local diro1 = CreatePart(m,0,0,"Glass",maincolor2) |
| 358 | + | for i = 1, WAIT do |
| 359 | - | CreateMesh(diro1,"Brick",0.175,0.175,0.315) |
| 359 | + | Swait() |
| 360 | - | CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 360 | + | mesh.Scale = mesh.Scale + GROW |
| 361 | - | local diro2 = CreatePart(m,0,0,"Glass",maincolor2) |
| 361 | + | if DOESROT == true then |
| 362 | - | CreateMesh(diro2,"Brick",0.175,0.175,0.315) |
| 362 | + | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, ROT, 0) |
| 363 | - | CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 363 | + | |
| 364 | wave.Transparency = wave.Transparency + 0.5 / WAIT | |
| 365 | - | ---- Left arm |
| 365 | + | if wave.Transparency > 0.99 then |
| 366 | - | local handle = CreatePart(m,0,0,"Glass",maincolor2) |
| 366 | + | wave:remove() |
| 367 | - | CreateMesh(handle,"Brick",1.05,1.5,1.05) |
| 367 | + | |
| 368 | - | CreateWeld(handle,larm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 368 | + | |
| 369 | - | local lowhandle = CreatePart(m,0,0,"Glass",maincolor2) |
| 369 | + | end)) |
| 370 | - | CreateMesh(lowhandle,"Brick",1.025,0.3,1.025) |
| 370 | + | |
| 371 | - | CreateWeld(lowhandle,larm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 371 | + | function MagicSphere(SIZE, WAIT, CFRAME, COLOR, GROW) |
| 372 | - | local lowhandleo = CreatePart(m,0,0,"Neon",maincolor) |
| 372 | + | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) |
| 373 | - | CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02) |
| 373 | + | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0, 0, 0))
|
| 374 | - | CreateWeld(lowhandleo,larm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 374 | + | wave.CFrame = CFRAME |
| 375 | - | local handleg = CreatePart(m,0,0,"Neon",maincolor) |
| 375 | + | coroutine.resume(coroutine.create(function(PART) |
| 376 | - | CreateMesh(handleg,"Brick",1.025,1.5,1.025) |
| 376 | + | for i = 1, WAIT do |
| 377 | - | CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 377 | + | Swait() |
| 378 | - | local handleo = CreatePart(m,0,0,"Neon",maincolor) |
| 378 | + | mesh.Scale = mesh.Scale + GROW |
| 379 | - | CreateMesh(handleo,"Brick",0.5,0.85,1.085) |
| 379 | + | wave.Transparency = wave.Transparency + 1 / WAIT |
| 380 | - | CreateWeld(handleo,handle,handleo,0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 380 | + | if wave.Transparency > 0.99 then |
| 381 | - | local handleo2 = CreatePart(m,0,0,"Glass",maincolor2) |
| 381 | + | wave:remove() |
| 382 | - | CreateMesh(handleo2,"Brick",0.5,0.8,1.09) |
| 382 | + | |
| 383 | - | CreateWeld(handleo2,handle,handleo2,0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 383 | + | |
| 384 | - | local zi = CreatePart(m,0,0,"Neon",maincolor) |
| 384 | + | end)) |
| 385 | - | CreateMesh(zi,"Brick",0.025,1.525,1.1) |
| 385 | + | |
| 386 | - | CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 386 | + | function Slice(KIND, SIZE, WAIT, CFRAME, COLOR, GROW) |
| 387 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1, 1, 1), true) | |
| 388 | - | local to = CreatePart(m,0,0,"Glass",maincolor2) |
| 388 | + | local mesh |
| 389 | - | CreateMesh(to,"Brick",0.5,1.5,0.5) |
| 389 | + | if KIND == "Base" then |
| 390 | - | CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 390 | + | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0, SIZE / 10, SIZE / 10), VT(0, 0, 0))
|
| 391 | - | local tl = CreatePart(m,0,0,"Neon",maincolor) |
| 391 | + | elseif KIND == "Thin" then |
| 392 | - | CreateMesh(tl,"Brick",0.6,1.45,0.6) |
| 392 | + | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
|
| 393 | - | CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 393 | + | elseif KIND == "Round" then |
| 394 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE / 10, 0, SIZE / 10), VT(0, 0, 0))
| |
| 395 | - | local zo = CreatePart(m,0,0,"Neon",maincolor) |
| 395 | + | |
| 396 | - | CreateMesh(zo,"Brick",0.565,0.025,1.1) |
| 396 | + | wave.CFrame = CFRAME |
| 397 | - | CreateWeld(zo,handle,zo,0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 397 | + | coroutine.resume(coroutine.create(function(PART) |
| 398 | - | local zoa = CreatePart(m,0,0,"Neon",maincolor) |
| 398 | + | for i = 1, WAIT do |
| 399 | - | CreateMesh(zoa,"Brick",0.565,0.025,1.1) |
| 399 | + | Swait() |
| 400 | - | CreateWeld(zoa,handle,zoa,0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 400 | + | mesh.Scale = mesh.Scale + GROW / 10 |
| 401 | - | local zob = CreatePart(m,0,0,"Neon",maincolor) |
| 401 | + | wave.Transparency = wave.Transparency + 0.5 / WAIT |
| 402 | - | CreateMesh(zob,"Brick",0.565,0.025,1.1) |
| 402 | + | if wave.Transparency > 0.99 then |
| 403 | - | CreateWeld(zob,handle,zob,0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 403 | + | wave:remove() |
| 404 | - | local zz = CreatePart(m,0,0,"Neon",maincolor) |
| 404 | + | |
| 405 | - | CreateMesh(zz,"Brick",0.3,0.3,0.3) |
| 405 | + | |
| 406 | - | CreateWeld(zz,zoa,zz,0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 406 | + | end)) |
| 407 | - | local zzo = CreatePart(m,0,0,"Glass",maincolor2) |
| 407 | + | |
| 408 | - | CreateMesh(zzo,"Brick",0.315,0.275,0.275) |
| 408 | + | function AddChildrenToTable(FROM, PARENT, DIST, TABLE) |
| 409 | - | CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 409 | + | for _, c in pairs(PARENT:GetChildren()) do |
| 410 | if c.ClassName == "Model" then | |
| 411 | - | local li = CreatePart(m,0,0,"Neon",maincolor) |
| 411 | + | if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
|
| 412 | - | CreateMesh(li,"Brick",0.275,0.825,0.025) |
| 412 | + | local HUMANOID = c:FindFirstChildOfClass("Humanoid")
|
| 413 | - | CreateWeld(li,handleo,li,0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 413 | + | local TORSO = c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")
|
| 414 | if DIST > (TORSO.Position - FROM).Magnitude then | |
| 415 | - | local li1 = CreatePart(m,0,0,"Neon",maincolor) |
| 415 | + | table.insert(TABLE, c) |
| 416 | - | CreateMesh(li1,"Brick",0.275,0.825,0.025) |
| 416 | + | end |
| 417 | - | CreateWeld(li1,handleo,li1,0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 417 | + | AddChildrenToTable(FROM, c, DIST, TABLE) |
| 418 | - | local li2 = CreatePart(m,0,0,"Neon",maincolor) |
| 418 | + | elseif c.ClassName == "Folder" then |
| 419 | - | CreateMesh(li2,"Brick",0.275,0.825,0.025) |
| 419 | + | AddChildrenToTable(FROM, c, DIST, TABLE) |
| 420 | - | CreateWeld(li2,handleo,li2,0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 420 | + | |
| 421 | end | |
| 422 | - | local di = CreatePart(m,0,0,"Neon",maincolor) |
| 422 | + | |
| 423 | - | CreateMesh(di,"Brick",0.3,0.3,0.3) |
| 423 | + | |
| 424 | - | CreateWeld(di,handleo,di,0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 424 | + | function MakeForm(PART, TYPE) |
| 425 | if TYPE == "Cyl" then | |
| 426 | - | local di1 = CreatePart(m,0,0,"Neon",maincolor) |
| 426 | + | local MSH = IT("CylinderMesh", PART)
|
| 427 | - | CreateMesh(di1,"Brick",0.3,0.15,0.15) |
| 427 | + | elseif TYPE == "Ball" then |
| 428 | - | CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 428 | + | local MSH = IT("SpecialMesh", PART)
|
| 429 | - | local di2 = CreatePart(m,0,0,"Neon",maincolor) |
| 429 | + | MSH.MeshType = "Sphere" |
| 430 | - | CreateMesh(di2,"Brick",0.3,0.15,0.15) |
| 430 | + | elseif TYPE == "Wedge" then |
| 431 | - | CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 431 | + | local MSH = IT("SpecialMesh", PART)
|
| 432 | - | local di3 = CreatePart(m,0,0,"Neon",maincolor) |
| 432 | + | MSH.MeshType = "Wedge" |
| 433 | - | CreateMesh(di3,"Brick",0.3,0.15,0.15) |
| 433 | + | |
| 434 | - | CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 434 | + | |
| 435 | - | local di4 = CreatePart(m,0,0,"Neon",maincolor) |
| 435 | + | function FireArc(Part, ToLocation, AmountOfTime, Height, DoesCourontine) |
| 436 | - | CreateMesh(di4,"Brick",0.3,0.15,0.15) |
| 436 | + | if DoesCourontine == false then |
| 437 | - | CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 437 | + | local Direction = CF(Part.Position, ToLocation) |
| 438 | - | local dio = CreatePart(m,0,0,"Glass",maincolor2) |
| 438 | + | local Distance = (Part.Position - ToLocation).magnitude |
| 439 | - | CreateMesh(dio,"Brick",0.325,0.275,0.275) |
| 439 | + | for i = 1, AmountOfTime do |
| 440 | - | CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 440 | + | Swait() |
| 441 | - | local dio1 = CreatePart(m,0,0,"Glass",maincolor2) |
| 441 | + | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) |
| 442 | - | CreateMesh(dio1,"Brick",0.325,0.125,0.125) |
| 442 | + | Direction = Part.CFrame |
| 443 | - | CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 443 | + | |
| 444 | - | local dio2 = CreatePart(m,0,0,"Glass",maincolor2) |
| 444 | + | Part:remove() |
| 445 | - | CreateMesh(dio2,"Brick",0.325,0.125,0.125) |
| 445 | + | elseif DoesCourontine == true then |
| 446 | - | CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 446 | + | coroutine.resume(coroutine.create(function() |
| 447 | - | local dio3 = CreatePart(m,0,0,"Glass",maincolor2) |
| 447 | + | local Direction = CF(Part.Position, ToLocation) |
| 448 | - | CreateMesh(dio3,"Brick",0.325,0.125,0.125) |
| 448 | + | local Distance = (Part.Position - ToLocation).magnitude |
| 449 | - | CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 449 | + | for i = 1, AmountOfTime do |
| 450 | - | local dio4 = CreatePart(m,0,0,"Glass",maincolor2) |
| 450 | + | Swait() |
| 451 | - | CreateMesh(dio4,"Brick",0.325,0.125,0.125) |
| 451 | + | Part.CFrame = Direction * CF(0, AmountOfTime / 200 + (AmountOfTime / Height - i * 2 / Height), -Distance / AmountOfTime) |
| 452 | - | CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 452 | + | Direction = Part.CFrame |
| 453 | end | |
| 454 | - | local sq1 = CreatePart(m,0,0,"Neon",maincolor) |
| 454 | + | Part:remove() |
| 455 | - | CreateMesh(sq1,"Brick",0.3,0.125,0.125) |
| 455 | + | end)) |
| 456 | - | CreateWeld(sq1,handleo,sq1,0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 456 | + | |
| 457 | - | local sq2 = CreatePart(m,0,0,"Neon",maincolor) |
| 457 | + | |
| 458 | - | CreateMesh(sq2,"Brick",0.3,0.125,0.125) |
| 458 | + | function CheckTableForString(Table, String) |
| 459 | - | CreateWeld(sq2,handleo,sq2,0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 459 | + | for i, v in pairs(Table) do |
| 460 | - | local sq3 = CreatePart(m,0,0,"Neon",maincolor) |
| 460 | + | if string.find(string.lower(String), string.lower(v)) then |
| 461 | - | CreateMesh(sq3,"Brick",0.3,0.125,0.125) |
| 461 | + | return true |
| 462 | - | CreateWeld(sq3,handleo,sq3,0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 462 | + | |
| 463 | - | local sq4 = CreatePart(m,0,0,"Neon",maincolor) |
| 463 | + | |
| 464 | - | CreateMesh(sq4,"Brick",0.3,0.125,0.125) |
| 464 | + | return false |
| 465 | - | CreateWeld(sq4,handleo,sq4,0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 465 | + | |
| 466 | function CheckIntangible(Hit) | |
| 467 | - | local sqo1 = CreatePart(m,0,0,"Glass",maincolor2) |
| 467 | + | local ProjectileNames = {
|
| 468 | - | CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115) |
| 468 | + | "Water", |
| 469 | - | CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 469 | + | "Arrow", |
| 470 | - | local sqo2 = CreatePart(m,0,0,"Glass",maincolor2) |
| 470 | + | "Projectile", |
| 471 | - | CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115) |
| 471 | + | "Effect", |
| 472 | - | CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 472 | + | "Rail", |
| 473 | - | local sqo3 = CreatePart(m,0,0,"Glass",maincolor2) |
| 473 | + | "Lightning", |
| 474 | - | CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115) |
| 474 | + | "Bullet" |
| 475 | - | CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 475 | + | } |
| 476 | - | local sqo4 = CreatePart(m,0,0,"Glass",maincolor2) |
| 476 | + | if Hit and Hit.Parent and (not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid") then
|
| 477 | - | CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115) |
| 477 | + | return true |
| 478 | - | CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 478 | + | |
| 479 | return false | |
| 480 | - | local locl = CreatePart(m,0,0,"Neon",maincolor) |
| 480 | + | |
| 481 | - | CreateMesh(locl,"Brick",0.1,0.1,0.1) |
| 481 | + | Debris = game:GetService("Debris")
|
| 482 | - | CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 482 | + | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) |
| 483 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
| 484 | - | local dil = CreatePart(m,0,0,"Neon",maincolor) |
| 484 | + | local Ignore = type(Ignore) == "table" and Ignore or {Ignore}
|
| 485 | - | CreateMesh(dil,"Brick",0.45,0.45,0.3) |
| 485 | + | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
|
| 486 | - | CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 486 | + | if RayHit and CheckIntangible(RayHit) then |
| 487 | if DelayIfHit then | |
| 488 | - | local dil1 = CreatePart(m,0,0,"Neon",maincolor) |
| 488 | + | wait() |
| 489 | - | CreateMesh(dil1,"Brick",0.225,0.225,0.3) |
| 489 | + | |
| 490 | - | CreateWeld(dil1,dil,dil1,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 490 | + | RayHit, RayPos, RayNormal = CastZapRay(RayPos + Vec * 0.01, Vec, Length - (StartPos - RayPos).magnitude, Ignore, DelayIfHit) |
| 491 | - | local dil2 = CreatePart(m,0,0,"Neon",maincolor) |
| 491 | + | |
| 492 | - | CreateMesh(dil2,"Brick",0.225,0.225,0.3) |
| 492 | + | return RayHit, RayPos, RayNormal |
| 493 | - | CreateWeld(dil2,dil,dil2,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 493 | + | |
| 494 | function turnto(position) | |
| 495 | - | local dilo = CreatePart(m,0,0,"Glass",maincolor2) |
| 495 | + | RootPart.CFrame = CFrame.new(RootPart.CFrame.p, VT(position.X, RootPart.Position.Y, position.Z)) * CFrame.new(0, 0, 0) |
| 496 | - | CreateMesh(dilo,"Brick",0.375,0.375,0.315) |
| 496 | + | |
| 497 | - | CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 497 | + | local naeeym2 = Instance.new("BillboardGui", Character)
|
| 498 | - | local dilo1 = CreatePart(m,0,0,"Glass",maincolor2) |
| 498 | + | naeeym2.AlwaysOnTop = true |
| 499 | - | CreateMesh(dilo1,"Brick",0.175,0.175,0.315) |
| 499 | + | naeeym2.Size = UDim2.new(15, 35, 2, 15) |
| 500 | - | CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 500 | + | naeeym2.StudsOffset = Vector3.new(0, 3, 0) |
| 501 | - | local dilo2 = CreatePart(m,0,0,"Glass",maincolor2) |
| 501 | + | naeeym2.Adornee = Character.Head |
| 502 | - | CreateMesh(dilo2,"Brick",0.175,0.175,0.315) |
| 502 | + | naeeym2.Name = "Name" |
| 503 | - | CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 503 | + | naeeym2.PlayerToHideFrom = Player |
| 504 | local tecks2 = Instance.new("TextLabel", naeeym2)
| |
| 505 | - | local locr = CreatePart(m,0,0,"Neon",maincolor) |
| 505 | + | tecks2.BackgroundTransparency = 1 |
| 506 | - | CreateMesh(locr,"Brick",0.1,0.1,0.1) |
| 506 | + | tecks2.TextScaled = true |
| 507 | - | CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 507 | + | tecks2.BorderSizePixel = 0 |
| 508 | tecks2.Text = "Deadly Dark Dominus, the Ultimate Dominus" | |
| 509 | - | local dir = CreatePart(m,0,0,"Neon",maincolor) |
| 509 | + | tecks2.Font = "Antique" |
| 510 | - | CreateMesh(dir,"Brick",0.45,0.45,0.3) |
| 510 | + | tecks2.TextSize = 30 |
| 511 | - | CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 511 | + | tecks2.TextStrokeTransparency = 0 |
| 512 | tecks2.TextColor3 = Color3.new(1, 0, 0) | |
| 513 | - | local dir1 = CreatePart(m,0,0,"Neon",maincolor) |
| 513 | + | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) |
| 514 | - | CreateMesh(dir1,"Brick",0.225,0.225,0.3) |
| 514 | + | tecks2.Size = UDim2.new(1, 0, 0.5, 0) |
| 515 | - | CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 515 | + | tecks2.Parent = naeeym2 |
| 516 | - | local dir2 = CreatePart(m,0,0,"Neon",maincolor) |
| 516 | + | Humanoid.Died:connect(function() |
| 517 | - | CreateMesh(dir2,"Brick",0.225,0.225,0.3) |
| 517 | + | Humanoid.Parent = nil |
| 518 | - | CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 518 | + | Humanoid.MaxHealth = "inf" |
| 519 | Humanoid.Health = "inf" | |
| 520 | - | local diro = CreatePart(m,0,0,"Glass",maincolor2) |
| 520 | + | refit() |
| 521 | - | CreateMesh(diro,"Brick",0.375,0.375,0.315) |
| 521 | + | Humanoid.Parent = Character |
| 522 | - | CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 522 | + | CreateSound(ATTACKEDTAUNTS[MRANDOM(1, #ATTACKEDTAUNTS)], Head, 10, 0.9) |
| 523 | - | local diro1 = CreatePart(m,0,0,"Glass",maincolor2) |
| 523 | + | for i = 1, 5 do |
| 524 | - | CreateMesh(diro1,"Brick",0.175,0.175,0.315) |
| 524 | + | Slice("Round", 0.6, 35, CF(Torso.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(0.1, 0, 0.1))
|
| 525 | - | CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 525 | + | |
| 526 | - | local diro2 = CreatePart(m,0,0,"Glass",maincolor2) |
| 526 | + | killnearest(Torso.Position, 25, 180) |
| 527 | - | CreateMesh(diro2,"Brick",0.175,0.175,0.315) |
| 527 | + | |
| 528 | - | CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) |
| 528 | + | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 1 Frame") |
| 529 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.8, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 2 Frame") | |
| 530 | - | Player=game:GetService("Players").LocalPlayer
|
| 530 | + | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 3 Frame") |
| 531 | - | Character=Player.Character |
| 531 | + | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.5, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 4 Frame") |
| 532 | - | PlayerGui=Player.PlayerGui |
| 532 | + | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill 5 Frame") |
| 533 | - | Backpack=Player.Backpack |
| 533 | + | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Orbital Devastor", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 1") |
| 534 | - | Torso=Character.Torso |
| 534 | + | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Savage Fire", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 2") |
| 535 | - | Head=Character.Head |
| 535 | + | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Grave Encounter", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 3") |
| 536 | - | Humanoid=Character.Humanoid |
| 536 | + | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Endless Pain", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0.5, "Text 4") |
| 537 | - | m=Instance.new('Model',Character)
|
| 537 | + | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Absoluteum", SKILLTEXTCOLOR, 12, "Antique", 0, 2, 0.5, "Text 5") |
| 538 | - | LeftArm=Character["Left Arm"] |
| 538 | + | local SKILLEFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.2, 0), UD2(0.26, 0, 0.07, 0), C3(0, 0, 0), C3(0, 0, 0), "Skill Warp Frame") |
| 539 | - | LeftLeg=Character["Left Leg"] |
| 539 | + | local SKILLETEXT = CreateLabel(SKILLEFRAME, "[Q] Monarch Hop", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0, "Text Warp") |
| 540 | - | RightArm=Character["Right Arm"] |
| 540 | + | function killnearest(position, range, maxstrength) |
| 541 | - | RightLeg=Character["Right Leg"] |
| 541 | + | for i, v in ipairs(workspace:GetChildren()) do |
| 542 | - | LS=Torso["Left Shoulder"] |
| 542 | + | local body = v:GetChildren() |
| 543 | - | LH=Torso["Left Hip"] |
| 543 | + | for part = 1, #body do |
| 544 | - | RS=Torso["Right Shoulder"] |
| 544 | + | if (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character and range > (body[part].Position - position).Magnitude then |
| 545 | - | RH=Torso["Right Hip"] |
| 545 | + | if v.ClassName == "Model" then |
| 546 | - | Face = Head.face |
| 546 | + | v:BreakJoints() |
| 547 | - | Neck=Torso.Neck |
| 547 | + | end |
| 548 | - | it=Instance.new |
| 548 | + | local bv = Instance.new("BodyVelocity")
|
| 549 | - | attacktype=1 |
| 549 | + | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) |
| 550 | - | vt=Vector3.new |
| 550 | + | bv.velocity = CF(position, body[part].Position).lookVector * maxstrength |
| 551 | - | cf=CFrame.new |
| 551 | + | bv.Parent = body[part] |
| 552 | - | euler=CFrame.fromEulerAnglesXYZ |
| 552 | + | Debris:AddItem(bv, 0.2) |
| 553 | - | angles=CFrame.Angles |
| 553 | + | |
| 554 | - | cloaked=false |
| 554 | + | |
| 555 | - | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
| 555 | + | if v.ClassName == "Part" and v.Anchored == false and range > (v.Position - position).Magnitude then |
| 556 | - | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
| 556 | + | v.Velocity = CFrame.new(position, v.Position).lookVector * 5 * maxstrength |
| 557 | - | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) |
| 557 | + | |
| 558 | - | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) |
| 558 | + | |
| 559 | - | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) |
| 559 | + | |
| 560 | - | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) |
| 560 | + | function Transparency(TRANS) |
| 561 | - | RootPart=Character.HumanoidRootPart |
| 561 | + | tecks2.TextTransparency = TRANS |
| 562 | - | RootJoint=RootPart.RootJoint |
| 562 | + | tecks2.TextStrokeTransparency = TRANS |
| 563 | - | RootCF=euler(-1.57,0,3.14) |
| 563 | + | for _, c in pairs(Character:GetChildren()) do |
| 564 | - | attack = false |
| 564 | + | if c.ClassName == "Part" and c ~= RootPart then |
| 565 | - | attackdebounce = false |
| 565 | + | c.Transparency = TRANS |
| 566 | - | deb=false |
| 566 | + | if c:FindFirstChildOfClass("Decal") then
|
| 567 | - | equipped=true |
| 567 | + | c:FindFirstChildOfClass("Decal").Transparency = TRANS
|
| 568 | - | hand=false |
| 568 | + | |
| 569 | - | MMouse=nil |
| 569 | + | elseif c.ClassName == "Accessory" then |
| 570 | - | combo=0 |
| 570 | + | c.Handle.Transparency = TRANS |
| 571 | - | mana=0 |
| 571 | + | elseif c.ClassName == "Model" then |
| 572 | - | trispeed=.2 |
| 572 | + | for _, q in pairs(c:GetChildren()) do |
| 573 | - | attackmode='none' |
| 573 | + | if q.ClassName == "Part" then |
| 574 | - | local idle=0 |
| 574 | + | q.Transparency = TRANS |
| 575 | - | local Anim="Idle" |
| 575 | + | if q:FindFirstChildOfClass("Decal") then
|
| 576 | - | local Effects={}
|
| 576 | + | q:FindFirstChildOfClass("Decal").Transparency = TRANS
|
| 577 | - | local gun=false |
| 577 | + | end |
| 578 | - | local shoot=false |
| 578 | + | end |
| 579 | - | local sine = 0 |
| 579 | + | |
| 580 | - | local change = 1 |
| 580 | + | |
| 581 | - | player=nil |
| 581 | + | |
| 582 | end | |
| 583 | - | mouse=Player:GetMouse() |
| 583 | + | function Orbital_Devastor() |
| 584 | - | --save shoulders |
| 584 | + | local HITBODIES = {}
|
| 585 | - | RSH, LSH=nil, nil |
| 585 | + | local CENTER = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Pearl", "CenterPart", VT(0, 0, 0)) |
| 586 | - | --welds |
| 586 | + | local HITFLOOR, ECH, NORMAL = Raycast(Mouse.Hit.p + VT(0, 2, 0), CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0)).lookVector, 10000000, Character) |
| 587 | - | RW, LW=Instance.new("Weld"), Instance.new("Weld")
|
| 587 | + | CENTER.CFrame = CF(ECH) |
| 588 | - | RW.Name="Right Shoulder" LW.Name="Left Shoulder" |
| 588 | + | local RAY = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Laser01", VT(25, 99999, 25)) |
| 589 | - | LH=Torso["Left Hip"] |
| 589 | + | MakeForm(RAY, "Cyl") |
| 590 | - | RH=Torso["Right Hip"] |
| 590 | + | local RAY2 = CreatePart(3, Effects, "Neon", 0, 1, "Really black", "Laser01", VT(28, 99999, 28)) |
| 591 | - | TorsoColor=Torso.BrickColor |
| 591 | + | MakeForm(RAY2, "Cyl") |
| 592 | - | function NoOutline(Part) |
| 592 | + | RAY.CFrame = CF(ECH) |
| 593 | - | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 |
| 593 | + | RAY2.CFrame = CF(ECH) |
| 594 | CreateSound("1368573150", CENTER, 10, 0.8)
| |
| 595 | - | player=Player |
| 595 | + | for i = 1, 100 do |
| 596 | - | ch=Character |
| 596 | + | Swait() |
| 597 | - | RSH=ch.Torso["Right Shoulder"] |
| 597 | + | RAY.Transparency = RAY.Transparency - 0.01 |
| 598 | - | LSH=ch.Torso["Left Shoulder"] |
| 598 | + | RAY.Size = RAY.Size - VT(0.25, 0, 0.25) |
| 599 | - | -- |
| 599 | + | RAY2.Transparency = RAY2.Transparency - 0.012 |
| 600 | - | RSH.Parent=nil |
| 600 | + | RAY2.Size = RAY2.Size - VT(0.28, 0, 0.28) |
| 601 | - | LSH.Parent=nil |
| 601 | + | |
| 602 | - | -- |
| 602 | + | for i = 1, 5 do |
| 603 | - | RW.Name="Right Shoulder" |
| 603 | + | CreateRing(VT(i / 10, i / 10, 0), false, 0, 25, CF(ECH) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(MRANDOM(0, 10) / 10, 0, 0), VT(i / 5, i / 5, 0)) |
| 604 | - | RW.Part0=ch.Torso |
| 604 | + | |
| 605 | - | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) |
| 605 | + | RAY:remove() |
| 606 | - | RW.C1=cf(0, 0.5, 0) |
| 606 | + | RAY2:remove() |
| 607 | - | RW.Part1=ch["Right Arm"] |
| 607 | + | CreateSound("1368637781", CENTER, 10, 0.8)
|
| 608 | - | RW.Parent=ch.Torso |
| 608 | + | MagicSphere(VT(0, 0, 0), 15, CF(ECH), "Really red", VT(8, 8, 8)) |
| 609 | - | -- |
| 609 | + | MagicSphere(VT(1, 1, 1), 25, CF(ECH), "Really black", VT(8, 8, 8)) |
| 610 | - | LW.Name="Left Shoulder" |
| 610 | + | AddChildrenToTable(ECH, workspace, 80, HITBODIES) |
| 611 | - | LW.Part0=ch.Torso |
| 611 | + | Debris:AddItem(CENTER, 5) |
| 612 | - | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) |
| 612 | + | CreateSound("414517163", CENTER, 10, 0.8)
|
| 613 | - | LW.C1=cf(0, 0.5, 0) |
| 613 | + | for i = 1, 5 do |
| 614 | - | LW.Part1=ch["Left Arm"] |
| 614 | + | Slice("Round", 0, 35, CF(ECH) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(0.5, 0, 0.5))
|
| 615 | - | LW.Parent=ch.Torso |
| 615 | + | |
| 616 | for e = 1, #HITBODIES do | |
| 617 | - | local Stats=Instance.new("BoolValue")
|
| 617 | + | if HITBODIES[e] ~= nil then |
| 618 | - | Stats.Name="Stats" |
| 618 | + | local BOD = HITBODIES[e] |
| 619 | - | Stats.Parent=Character |
| 619 | + | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
|
| 620 | - | local Atk=Instance.new("NumberValue")
|
| 620 | + | if TORS then |
| 621 | - | Atk.Name="Damage" |
| 621 | + | BOD:BreakJoints() |
| 622 | - | Atk.Parent=Stats |
| 622 | + | for _, c in pairs(BOD:GetChildren()) do |
| 623 | - | Atk.Value=1 |
| 623 | + | if c.ClassName == "Part" or c.ClassName == "MeshPart" then |
| 624 | - | local Def=Instance.new("NumberValue")
|
| 624 | + | local bv = Instance.new("BodyVelocity")
|
| 625 | - | Def.Name="Defense" |
| 625 | + | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) |
| 626 | - | Def.Parent=Stats |
| 626 | + | bv.velocity = CF(ECH, c.Position).lookVector * 250 |
| 627 | - | Def.Value=1 |
| 627 | + | bv.Parent = c |
| 628 | - | local Speed=Instance.new("NumberValue")
|
| 628 | + | Debris:AddItem(bv, 0.2) |
| 629 | - | Speed.Name="Speed" |
| 629 | + | end |
| 630 | - | Speed.Parent=Stats |
| 630 | + | end |
| 631 | - | Speed.Value=1 |
| 631 | + | |
| 632 | - | local Mvmt=Instance.new("NumberValue")
|
| 632 | + | |
| 633 | - | Mvmt.Name="Movement" |
| 633 | + | |
| 634 | - | Mvmt.Parent=Stats |
| 634 | + | |
| 635 | - | Mvmt.Value=1 |
| 635 | + | function Savage_Fire() |
| 636 | ATTACK = true | |
| 637 | - | local donum=0 |
| 637 | + | Rooted = true |
| 638 | - | |
| 638 | + | VALUE1 = true |
| 639 | local HITBODIES = {}
| |
| 640 | - | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) |
| 640 | + | local VISUAL = CreatePart(3, Effects, "Glass", 0, 0.99, "Maroon", "Vibrations", VT(4, 4, 4)) |
| 641 | - | local fp=it("Part")
|
| 641 | + | MakeForm(VISUAL, "Ball") |
| 642 | - | fp.formFactor=formfactor |
| 642 | + | VISUAL.CFrame = RootPart.CFrame |
| 643 | - | fp.Parent=parent |
| 643 | + | for i = 0, 1.2, 0.1 / Animation_Speed do |
| 644 | - | fp.Reflectance=reflectance |
| 644 | + | Swait() |
| 645 | - | fp.Transparency=transparency |
| 645 | + | VISUAL.Size = VISUAL.Size + VT(0.1, 0.1, 0.1) |
| 646 | - | fp.CanCollide=false |
| 646 | + | VISUAL.Transparency = VISUAL.Transparency - 0.005 |
| 647 | - | fp.Locked=true |
| 647 | + | if MRANDOM(1, 2) == 1 then |
| 648 | - | fp.BrickColor=brickcolor |
| 648 | + | do |
| 649 | - | fp.Name=name |
| 649 | + | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Magic", VT(1, 1, 1) * MRANDOM(2, 35) / 10) |
| 650 | - | fp.Size=size |
| 650 | + | SPHERE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -15, MRANDOM(-15, 15)) |
| 651 | - | fp.Position=Torso.Position |
| 651 | + | MakeForm(SPHERE, "Ball") |
| 652 | - | NoOutline(fp) |
| 652 | + | coroutine.resume(coroutine.create(function() |
| 653 | - | fp.Material="Glass" |
| 653 | + | for i = 1, 100 do |
| 654 | - | fp:BreakJoints() |
| 654 | + | Swait() |
| 655 | - | return fp |
| 655 | + | SPHERE.CFrame = SPHERE.CFrame * CF(0, 0.3, 0) |
| 656 | - | end |
| 656 | + | SPHERE.Transparency = i / 100 |
| 657 | - | |
| 657 | + | end |
| 658 | - | function mesh(Mesh,part,meshtype,meshid,offset,scale) |
| 658 | + | SPHERE:remove() |
| 659 | - | local mesh=it(Mesh) |
| 659 | + | end)) |
| 660 | - | mesh.Parent=part |
| 660 | + | |
| 661 | - | if Mesh=="SpecialMesh" then |
| 661 | + | |
| 662 | - | mesh.MeshType=meshtype |
| 662 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 663 | - | if meshid~="nil" then |
| 663 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 664 | - | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid |
| 664 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 665 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 666 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 667 | - | mesh.Offset=offset |
| 667 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 668 | - | mesh.Scale=scale |
| 668 | + | |
| 669 | - | return mesh |
| 669 | + | Character.Archivable = true |
| 670 | local CLONE = Character:Clone() | |
| 671 | - | |
| 671 | + | CLONE.BGM:remove() |
| 672 | - | function weld(parent,part0,part1,c0) |
| 672 | + | CLONE.Effects:remove() |
| 673 | - | local weld=it("Weld")
|
| 673 | + | CLONE.Parent = Effects |
| 674 | - | weld.Parent=parent |
| 674 | + | local X = 1 - VISUAL.Transparency |
| 675 | - | weld.Part0=part0 |
| 675 | + | local ORIGINPOS = RootPart.Position |
| 676 | - | weld.Part1=part1 |
| 676 | + | Transparency(1) |
| 677 | - | weld.C0=c0 |
| 677 | + | VALUE2 = true |
| 678 | - | return weld |
| 678 | + | RootPart.CFrame = CF(Mouse.Hit.p + VT(0, 5, 0), ORIGINPOS) |
| 679 | for i = 1, 50 do | |
| 680 | - | |
| 680 | + | Swait() |
| 681 | - | local Color1=Torso.BrickColor |
| 681 | + | VISUAL.Transparency = VISUAL.Transparency + X / 50 |
| 682 | VISUAL.Size = VISUAL.Size + VT(0.05, 0.05, 0.05) | |
| 683 | - | local bodvel=Instance.new("BodyVelocity")
|
| 683 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 684 | - | local bg=Instance.new("BodyGyro")
|
| 684 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 685 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 686 | - | function swait(num) |
| 686 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.25 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 687 | - | if num==0 or num==nil then |
| 687 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 688 | - | game:service'RunService'.Stepped:wait(0) |
| 688 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 689 | - | else |
| 689 | + | |
| 690 | - | for i=0,num do |
| 690 | + | VISUAL:remove() |
| 691 | - | game:service'RunService'.Stepped:wait(0) |
| 691 | + | coroutine.resume(coroutine.create(function() |
| 692 | local PITS = {}
| |
| 693 | local HITFLOOR, HITPOS, NORMAL = Raycast(CLONE.Torso.Position, CF(CLONE.Torso.Position, CLONE.Torso.Position + VT(0, -1, 0)).lookVector, 25 * Player_Size, Character) | |
| 694 | MagicSphere(VT(0, 0, 0), 25, CF(CLONE.Torso.Position), "Really red", VT(2, 2, 2)) | |
| 695 | - | |
| 695 | + | MagicSphere(VT(1, 1, 1), 55, CF(CLONE.Torso.Position), "Really black", VT(2, 2, 2)) |
| 696 | - | |
| 696 | + | if HITFLOOR ~= nil then |
| 697 | - | so = function(id,par,vol,pit) |
| 697 | + | local POS = CLONE.Torso.Position |
| 698 | - | coroutine.resume(coroutine.create(function() |
| 698 | + | CLONE:remove() |
| 699 | - | local sou = Instance.new("Sound",par or workspace)
|
| 699 | + | for i = 1, 150 do |
| 700 | - | sou.Volume=vol |
| 700 | + | Swait() |
| 701 | - | sou.Pitch=pit or 1 |
| 701 | + | local PEWSOUND = {
|
| 702 | - | sou.SoundId=id |
| 702 | + | "907527750", |
| 703 | - | swait() |
| 703 | + | "907527912", |
| 704 | - | sou:play() |
| 704 | + | "907528019", |
| 705 | - | game:GetService("Debris"):AddItem(sou,6)
|
| 705 | + | "907530553" |
| 706 | - | end)) |
| 706 | + | } |
| 707 | AddChildrenToTable(HITPOS, workspace, i, HITBODIES) | |
| 708 | - | |
| 708 | + | if MRANDOM(1, 2) == 1 then |
| 709 | - | function clerp(a,b,t) |
| 709 | + | local ICICLE = IT("CornerWedgePart", Effects)
|
| 710 | - | local qa = {QuaternionFromCFrame(a)}
|
| 710 | + | ICICLE.Locked = true |
| 711 | - | local qb = {QuaternionFromCFrame(b)}
|
| 711 | + | ICICLE.CanCollide = false |
| 712 | - | local ax, ay, az = a.x, a.y, a.z |
| 712 | + | ICICLE.Anchored = true |
| 713 | - | local bx, by, bz = b.x, b.y, b.z |
| 713 | + | ICICLE.BrickColor = BRICKC("Really red")
|
| 714 | - | local _t = 1-t |
| 714 | + | ICICLE.Material = "Neon" |
| 715 | - | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) |
| 715 | + | ICICLE.Size = VT(i / 10, i / 2, i / 10) |
| 716 | - | end |
| 716 | + | CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ICICLE, 10, 0.8) |
| 717 | - | |
| 717 | + | ICICLE.CFrame = CF(HITPOS) * CF(MRANDOM(-i / 2, i / 2), 0, MRANDOM(-i / 2, i / 2)) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-25, 25))) |
| 718 | - | function QuaternionFromCFrame(cf) |
| 718 | + | table.insert(PITS, ICICLE) |
| 719 | - | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
| 719 | + | for e = 1, #HITBODIES do |
| 720 | - | local trace = m00 + m11 + m22 |
| 720 | + | if HITBODIES[e] ~= nil then |
| 721 | - | if trace > 0 then |
| 721 | + | local BOD = HITBODIES[e] |
| 722 | - | local s = math.sqrt(1 + trace) |
| 722 | + | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
|
| 723 | - | local recip = 0.5/s |
| 723 | + | if TORS then |
| 724 | - | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 |
| 724 | + | BOD:BreakJoints() |
| 725 | - | else |
| 725 | + | for _, c in pairs(BOD:GetChildren()) do |
| 726 | - | local i = 0 |
| 726 | + | if c.ClassName == "Part" or c.ClassName == "MeshPart" then |
| 727 | - | if m11 > m00 then |
| 727 | + | local bv = Instance.new("BodyVelocity")
|
| 728 | - | i = 1 |
| 728 | + | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) |
| 729 | bv.velocity = CF(POS, c.Position).lookVector * 250 | |
| 730 | - | if m22 > (i == 0 and m00 or m11) then |
| 730 | + | bv.Parent = c |
| 731 | - | i = 2 |
| 731 | + | Debris:AddItem(bv, 0.2) |
| 732 | - | end |
| 732 | + | end |
| 733 | - | if i == 0 then |
| 733 | + | end |
| 734 | - | local s = math.sqrt(m00-m11-m22+1) |
| 734 | + | end |
| 735 | - | local recip = 0.5/s |
| 735 | + | end |
| 736 | - | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip |
| 736 | + | end |
| 737 | - | elseif i == 1 then |
| 737 | + | HITBODIES = {}
|
| 738 | - | local s = math.sqrt(m11-m22-m00+1) |
| 738 | + | end |
| 739 | - | local recip = 0.5/s |
| 739 | + | |
| 740 | - | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip |
| 740 | + | coroutine.resume(coroutine.create(function() |
| 741 | - | elseif i == 2 then |
| 741 | + | for i = 1, 10 do |
| 742 | - | local s = math.sqrt(m22-m00-m11+1) |
| 742 | + | Swait() |
| 743 | - | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip |
| 743 | + | for e = 1, #PITS do |
| 744 | - | end |
| 744 | + | if PITS[e] ~= nil then |
| 745 | - | end |
| 745 | + | local E = PITS[e] |
| 746 | E.Transparency = E.Transparency + 0.1 | |
| 747 | - | |
| 747 | + | end |
| 748 | - | function QuaternionToCFrame(px, py, pz, x, y, z, w) |
| 748 | + | end |
| 749 | - | local xs, ys, zs = x + x, y + y, z + z |
| 749 | + | end |
| 750 | - | local wx, wy, wz = w*xs, w*ys, w*zs |
| 750 | + | for e = 1, #PITS do |
| 751 | - | local xx = x*xs |
| 751 | + | if PITS[e] ~= nil then |
| 752 | - | local xy = x*ys |
| 752 | + | local E = PITS[e] |
| 753 | - | local xz = x*zs |
| 753 | + | E:remove() |
| 754 | - | local yy = y*ys |
| 754 | + | end |
| 755 | - | local yz = y*zs |
| 755 | + | end |
| 756 | - | local zz = z*zs |
| 756 | + | end)) |
| 757 | - | 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)) |
| 757 | + | |
| 758 | end)) | |
| 759 | - | |
| 759 | + | VALUE2 = false |
| 760 | - | function QuaternionSlerp(a, b, t) |
| 760 | + | VALUE1 = false |
| 761 | - | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] |
| 761 | + | ATTACK = false |
| 762 | - | local startInterp, finishInterp; |
| 762 | + | Rooted = false |
| 763 | - | if cosTheta >= 0.0001 then |
| 763 | + | for i = 1, 10 do |
| 764 | - | if (1 - cosTheta) > 0.0001 then |
| 764 | + | Swait() |
| 765 | - | local theta = math.acos(cosTheta) |
| 765 | + | Transparency(1 - i / 10) |
| 766 | - | local invSinTheta = 1/math.sin(theta) |
| 766 | + | |
| 767 | - | startInterp = math.sin((1-t)*theta)*invSinTheta |
| 767 | + | |
| 768 | - | finishInterp = math.sin(t*theta)*invSinTheta |
| 768 | + | function Grave_Encounter() |
| 769 | - | else |
| 769 | + | local HITBODIES = {}
|
| 770 | - | startInterp = 1-t |
| 770 | + | local PEWSOUND = {
|
| 771 | - | finishInterp = t |
| 771 | + | "907527750", |
| 772 | - | end |
| 772 | + | "907527912", |
| 773 | - | else |
| 773 | + | "907528019", |
| 774 | - | if (1+cosTheta) > 0.0001 then |
| 774 | + | "907530553" |
| 775 | - | local theta = math.acos(-cosTheta) |
| 775 | + | } |
| 776 | - | local invSinTheta = 1/math.sin(theta) |
| 776 | + | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) |
| 777 | - | startInterp = math.sin((t-1)*theta)*invSinTheta |
| 777 | + | if HITFLOOR ~= nil then |
| 778 | - | finishInterp = math.sin(t*theta)*invSinTheta |
| 778 | + | CreateSound(ATTACKTAUNTS[MRANDOM(1, #ATTACKTAUNTS)], Head, 10, 0.9) |
| 779 | - | else |
| 779 | + | ATTACK = true |
| 780 | - | startInterp = t-1 |
| 780 | + | Rooted = false |
| 781 | - | finishInterp = t |
| 781 | + | local GYRO = IT("BodyGyro", RootPart)
|
| 782 | - | end |
| 782 | + | GYRO.D = 100 |
| 783 | - | end |
| 783 | + | GYRO.P = 2000 |
| 784 | - | 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 |
| 784 | + | GYRO.MaxTorque = VT(0, 4000000, 0) |
| 785 | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) | |
| 786 | for i = 0, 3.5, 0.1 / Animation_Speed do | |
| 787 | - | local function CFrameFromTopBack(at, top, back) |
| 787 | + | Swait() |
| 788 | - | local right = top:Cross(back) |
| 788 | + | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) |
| 789 | - | return CFrame.new(at.x, at.y, at.z, |
| 789 | + | Slice("Thin", 1, 5, RightArm.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(1, 0, 0), VT(-0.01, 0, -0.01))
|
| 790 | - | right.x, top.x, back.x, |
| 790 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 791 | - | right.y, top.y, back.y, |
| 791 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 792 | - | right.z, top.z, back.z) |
| 792 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 793 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 794 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 795 | - | function Triangle(a, b, c) |
| 795 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 796 | - | local edg1 = (c-a):Dot((b-a).unit) |
| 796 | + | |
| 797 | - | local edg2 = (a-b):Dot((c-b).unit) |
| 797 | + | for i = 0, 0.15, 0.1 / Animation_Speed do |
| 798 | - | local edg3 = (b-c):Dot((a-c).unit) |
| 798 | + | Swait() |
| 799 | - | if edg1 <= (b-a).magnitude and edg1 >= 0 then |
| 799 | + | GYRO.cframe = CF(RootPart.Position, Mouse.Hit.p) |
| 800 | - | a, b, c = a, b, c |
| 800 | + | Slice("Thin", 1, 5, RightArm.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(1, 0, 0), VT(-0.01, 0, -0.01))
|
| 801 | - | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then |
| 801 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 802 | - | a, b, c = b, c, a |
| 802 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 803 | - | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then |
| 803 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 804 | - | a, b, c = c, a, b |
| 804 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 805 | - | else |
| 805 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 806 | - | assert(false, "unreachable") |
| 806 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 807 | end | |
| 808 | - | |
| 808 | + | Rooted = true |
| 809 | - | local len1 = (c-a):Dot((b-a).unit) |
| 809 | + | GYRO:remove() |
| 810 | - | local len2 = (b-a).magnitude - len1 |
| 810 | + | coroutine.resume(coroutine.create(function() |
| 811 | - | local width = (a + (b-a).unit*len1 - c).magnitude |
| 811 | + | local PITS = {}
|
| 812 | - | |
| 812 | + | local FRAME = RootPart.CFrame |
| 813 | - | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) |
| 813 | + | for i = 1, 200 do |
| 814 | - | |
| 814 | + | Swait() |
| 815 | - | local list = {}
|
| 815 | + | for e = 1, #HITBODIES do |
| 816 | - | |
| 816 | + | if HITBODIES[e] ~= nil then |
| 817 | - | if len1 > 0.01 then |
| 817 | + | local BOD = HITBODIES[e] |
| 818 | - | local w1 = Instance.new('WedgePart', m)
|
| 818 | + | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
|
| 819 | - | game:GetService("Debris"):AddItem(w1,5)
|
| 819 | + | if TORS then |
| 820 | - | w1.Material = "Glass" |
| 820 | + | BOD:BreakJoints() |
| 821 | - | w1.FormFactor = 'Custom' |
| 821 | + | table.remove(HITBODIES, e) |
| 822 | - | w1.BrickColor = BrickColor.new("Really red")
|
| 822 | + | end |
| 823 | - | w1.Transparency = 0 |
| 823 | + | end |
| 824 | - | w1.Reflectance = 0 |
| 824 | + | end |
| 825 | - | w1.Material = "Glass" |
| 825 | + | local GLITCH = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Puddle", VT(2 + i / 2, 0, 2 + i / 2)) |
| 826 | - | w1.CanCollide = false |
| 826 | + | MakeForm(GLITCH, "Cyl") |
| 827 | - | local l1 = Instance.new("PointLight",w1)
|
| 827 | + | GLITCH.CFrame = FRAME * CF(MRANDOM(-5, 5), 0, 5 - i * 3) |
| 828 | - | l1.Color = Color3.new(170,0,0) |
| 828 | + | local HITFLOOR, HITPOS, NORMAL = Raycast(GLITCH.Position, CF(GLITCH.Position, GLITCH.Position + VT(0, -1, 0)).lookVector, 25 * Player_Size, Character) |
| 829 | - | NoOutline(w1) |
| 829 | + | if HITFLOOR ~= nil then |
| 830 | - | local sz = Vector3.new(0.2, width, len1) |
| 830 | + | table.insert(PITS, GLITCH) |
| 831 | - | w1.Size = sz |
| 831 | + | GLITCH.CFrame = CF(HITPOS, HITPOS + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)) |
| 832 | - | local sp = Instance.new("SpecialMesh",w1)
|
| 832 | + | AddChildrenToTable(HITPOS, workspace, i / 2, HITBODIES) |
| 833 | - | sp.MeshType = "Wedge" |
| 833 | + | if MRANDOM(1, 2) == 1 then |
| 834 | - | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size |
| 834 | + | local ICICLE = IT("CornerWedgePart", Effects)
|
| 835 | - | w1:BreakJoints() |
| 835 | + | ICICLE.Locked = true |
| 836 | - | w1.Anchored = true |
| 836 | + | ICICLE.CanCollide = false |
| 837 | - | w1.Parent = workspace |
| 837 | + | ICICLE.Anchored = true |
| 838 | - | w1.Transparency = 0.7 |
| 838 | + | ICICLE.BrickColor = BRICKC("Really red")
|
| 839 | - | table.insert(Effects,{w1,"Disappear",.01})
|
| 839 | + | ICICLE.Material = "Neon" |
| 840 | - | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) |
| 840 | + | ICICLE.Size = VT(i / 10, i / 2, i / 10) |
| 841 | - | table.insert(list,w1) |
| 841 | + | CreateSound(PEWSOUND[MRANDOM(1, #PEWSOUND)], ICICLE, 10, 0.8) |
| 842 | ICICLE.CFrame = CF(HITPOS) * CF(MRANDOM(-i / 10, i / 10), 0, MRANDOM(-i / 10, i / 10)) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-25, 25))) | |
| 843 | - | |
| 843 | + | table.insert(PITS, ICICLE) |
| 844 | - | if len2 > 0.01 then |
| 844 | + | end |
| 845 | - | local w2 = Instance.new('WedgePart', m)
|
| 845 | + | else |
| 846 | - | game:GetService("Debris"):AddItem(w2,5)
|
| 846 | + | GLITCH:remove() |
| 847 | - | w2.Material = "Glass" |
| 847 | + | break |
| 848 | - | w2.FormFactor = 'Custom' |
| 848 | + | end |
| 849 | - | w2.BrickColor = BrickColor.new("Really red")
|
| 849 | + | |
| 850 | - | w2.Transparency = 0 |
| 850 | + | coroutine.resume(coroutine.create(function() |
| 851 | - | w2.Reflectance = 0 |
| 851 | + | for i = 1, 10 do |
| 852 | - | w2.Material = "Glass" |
| 852 | + | Swait() |
| 853 | - | w2.CanCollide = false |
| 853 | + | for e = 1, #PITS do |
| 854 | - | local l2 = Instance.new("PointLight",w2)
|
| 854 | + | if PITS[e] ~= nil then |
| 855 | - | l2.Color = Color3.new(170,0,0) |
| 855 | + | local E = PITS[e] |
| 856 | - | NoOutline(w2) |
| 856 | + | E.Transparency = E.Transparency + 0.1 |
| 857 | - | local sz = Vector3.new(0.2, width, len2) |
| 857 | + | end |
| 858 | - | w2.Size = sz |
| 858 | + | end |
| 859 | - | local sp = Instance.new("SpecialMesh",w2)
|
| 859 | + | end |
| 860 | - | sp.MeshType = "Wedge" |
| 860 | + | for e = 1, #PITS do |
| 861 | - | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size |
| 861 | + | if PITS[e] ~= nil then |
| 862 | - | w2:BreakJoints() |
| 862 | + | local E = PITS[e] |
| 863 | - | w2.Anchored = true |
| 863 | + | E:remove() |
| 864 | - | w2.Parent = workspace |
| 864 | + | end |
| 865 | - | w2.Transparency = 0.7 |
| 865 | + | end |
| 866 | - | table.insert(Effects,{w2,"Disappear",.01})
|
| 866 | + | end)) |
| 867 | - | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) |
| 867 | + | end)) |
| 868 | - | table.insert(list,w2) |
| 868 | + | for i = 0, 1, 0.1 / Animation_Speed do |
| 869 | Swait() | |
| 870 | - | return unpack(list) |
| 870 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 871 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 872 | - | |
| 872 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 873 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 874 | - | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) |
| 874 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 875 | - | if hit.Parent==nil then |
| 875 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 876 | - | return |
| 876 | + | |
| 877 | - | end |
| 877 | + | ATTACK = false |
| 878 | - | h=hit.Parent:FindFirstChild("Humanoid")
|
| 878 | + | Rooted = false |
| 879 | - | for _,v in pairs(hit.Parent:children()) do |
| 879 | + | |
| 880 | - | if v:IsA("Humanoid") then
|
| 880 | + | |
| 881 | - | h=v |
| 881 | + | function Endless_Pain() |
| 882 | - | end |
| 882 | + | local HITBODIES = {}
|
| 883 | - | end |
| 883 | + | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) |
| 884 | - | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
|
| 884 | + | if HITFLOOR ~= nil then |
| 885 | - | h=hit.Parent.Parent:FindFirstChild("Humanoid")
|
| 885 | + | CreateSound("463598785", RootPart, 10, 0.8)
|
| 886 | - | end |
| 886 | + | ATTACK = true |
| 887 | - | if hit.Parent.className=="Hat" then |
| 887 | + | Rooted = true |
| 888 | - | hit=hit.Parent.Parent:findFirstChild("Head")
|
| 888 | + | VALUE1 = true |
| 889 | - | end |
| 889 | + | for i = 1, 500 do |
| 890 | - | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
|
| 890 | + | Swait() |
| 891 | - | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
|
| 891 | + | AddChildrenToTable(HITPOS, workspace, i / 3, HITBODIES) |
| 892 | - | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then |
| 892 | + | Slice("Round", 0.5 + i / 50, 35, CF(HITPOS + VT(0, 0.1, 0), HITPOS + VT(0, 0.1, 0) + NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(0.001, 0, 0.001))
|
| 893 | - | return |
| 893 | + | Slice("Round", 0.5 + i / 50, 45, CF(HITPOS + VT(0, 0.1, 0), HITPOS + VT(0, 0.1, 0) + NORMAL) * ANGLES(RAD(90), RAD(MRANDOM(-180, 180)), RAD(0)), "Really red", VT(0, 0, 0))
|
| 894 | - | end]] |
| 894 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 895 | - | -- hs(hit,1.2) |
| 895 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 896 | - | c=Instance.new("ObjectValue")
|
| 896 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-40), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 897 | - | c.Name="creator" |
| 897 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-40), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 898 | - | c.Value=game:service("Players").LocalPlayer
|
| 898 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 899 | - | c.Parent=h |
| 899 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 900 | - | game:GetService("Debris"):AddItem(c,.5)
|
| 900 | + | for e = 1, #HITBODIES do |
| 901 | - | Damage=math.random(minim,maxim) |
| 901 | + | if HITBODIES[e] ~= nil then |
| 902 | - | -- h:TakeDamage(Damage) |
| 902 | + | local BOD = HITBODIES[e] |
| 903 | - | blocked=false |
| 903 | + | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
|
| 904 | - | block=hit.Parent:findFirstChild("Block")
|
| 904 | + | if TORS and TORS:FindFirstChild("BV") == nil then
|
| 905 | - | if block~=nil then |
| 905 | + | local bv = Instance.new("BodyVelocity")
|
| 906 | - | print(block.className) |
| 906 | + | bv.Name = "BV" |
| 907 | - | if block.className=="NumberValue" then |
| 907 | + | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) |
| 908 | - | if block.Value>0 then |
| 908 | + | bv.velocity = CF(TORS.Position, TORS.Position + VT(0, 1, 0)).lookVector * 20 |
| 909 | - | blocked=true |
| 909 | + | bv.Parent = TORS |
| 910 | - | if decreaseblock==nil then |
| 910 | + | Debris:AddItem(bv, 0.1) |
| 911 | - | block.Value=block.Value-1 |
| 911 | + | end |
| 912 | - | end |
| 912 | + | end |
| 913 | - | end |
| 913 | + | |
| 914 | - | end |
| 914 | + | |
| 915 | - | if block.className=="IntValue" then |
| 915 | + | coroutine.resume(coroutine.create(function() |
| 916 | - | if block.Value>0 then |
| 916 | + | for e = 1, #HITBODIES do |
| 917 | - | blocked=true |
| 917 | + | Swait() |
| 918 | - | if decreaseblock~=nil then |
| 918 | + | if HITBODIES[e] ~= nil then |
| 919 | - | block.Value=block.Value-1 |
| 919 | + | local BOD = HITBODIES[e] |
| 920 | - | end |
| 920 | + | for i = 1, #HITBODIES do |
| 921 | - | end |
| 921 | + | if HITBODIES[i] == BOD and i ~= e then |
| 922 | - | end |
| 922 | + | table.remove(HITBODIES, i) |
| 923 | - | end |
| 923 | + | end |
| 924 | - | if blocked==false then |
| 924 | + | end |
| 925 | - | -- h:TakeDamage(Damage) |
| 925 | + | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
|
| 926 | - | h.Health=h.Health-Damage |
| 926 | + | if TORS then |
| 927 | - | showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
|
| 927 | + | TORS.Anchored = false |
| 928 | - | else |
| 928 | + | CreateSound("92597369", TORS, 10, 0.8)
|
| 929 | - | h.Health=h.Health-(Damage/2) |
| 929 | + | Slice("Thin", 1, 35, CF(TORS.Position, HITPOS) * ANGLES(RAD(0), RAD(-90), RAD(0)), "Really red", VT(0.01, 0, 0.01))
|
| 930 | - | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
|
| 930 | + | BOD:BreakJoints() |
| 931 | - | end |
| 931 | + | for _, c in pairs(BOD:GetChildren()) do |
| 932 | - | if Type=="Knockdown" then |
| 932 | + | if c.ClassName == "Part" or c.ClassName == "MeshPart" then |
| 933 | - | hum=hit.Parent.Humanoid |
| 933 | + | local bv = Instance.new("BodyVelocity")
|
| 934 | - | hum.PlatformStand=true |
| 934 | + | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) |
| 935 | - | coroutine.resume(coroutine.create(function(HHumanoid) |
| 935 | + | bv.velocity = CF(HITPOS, c.Position).lookVector * 250 |
| 936 | - | swait(1) |
| 936 | + | bv.Parent = c |
| 937 | - | HHumanoid.PlatformStand=false |
| 937 | + | Debris:AddItem(bv, 0.2) |
| 938 | - | end),hum) |
| 938 | + | end |
| 939 | - | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit |
| 939 | + | end |
| 940 | - | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) |
| 940 | + | end |
| 941 | - | local bodvol=Instance.new("BodyVelocity")
|
| 941 | + | end |
| 942 | - | bodvol.velocity=angle*knockback |
| 942 | + | |
| 943 | - | bodvol.P=5000 |
| 943 | + | end)) |
| 944 | - | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) |
| 944 | + | VALUE1 = false |
| 945 | - | bodvol.Parent=hit |
| 945 | + | ATTACK = false |
| 946 | - | rl=Instance.new("BodyAngularVelocity")
|
| 946 | + | Rooted = false |
| 947 | - | rl.P=3000 |
| 947 | + | |
| 948 | - | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 |
| 948 | + | |
| 949 | - | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) |
| 949 | + | function Absoluteum() |
| 950 | - | rl.Parent=hit |
| 950 | + | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) |
| 951 | - | game:GetService("Debris"):AddItem(bodvol,.5)
|
| 951 | + | if HITFLOOR ~= nil then |
| 952 | - | game:GetService("Debris"):AddItem(rl,.5)
|
| 952 | + | do |
| 953 | - | elseif Type=="Normal" then |
| 953 | + | local HITBODIES = {}
|
| 954 | - | vp=Instance.new("BodyVelocity")
|
| 954 | + | ATTACK = true |
| 955 | - | vp.P=500 |
| 955 | + | Rooted = true |
| 956 | - | vp.maxForce=Vector3.new(math.huge,0,math.huge) |
| 956 | + | local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "ABSOLUTEUM", VT(0, 0, 0)) |
| 957 | - | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback |
| 957 | + | MakeForm(ABSOLUTE, "Ball") |
| 958 | - | if KnockbackType==1 then |
| 958 | + | CreateSound("416200578", RootPart, 10, 1)
|
| 959 | - | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 |
| 959 | + | for i = 0, 8, 0.1 / Animation_Speed do |
| 960 | - | elseif KnockbackType==2 then |
| 960 | + | Swait() |
| 961 | - | vp.velocity=Property.CFrame.lookVector*knockback |
| 961 | + | ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2, 0.2, 0.2) |
| 962 | - | end |
| 962 | + | ABSOLUTE.CFrame = RootPart.CFrame * CF(0, 5 + ABSOLUTE.Size.Y / 2, 0) |
| 963 | - | if knockback>0 then |
| 963 | + | ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01 |
| 964 | - | vp.Parent=hit.Parent.Torso |
| 964 | + | local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "ABSOLUTEUM", VT(2, 2, 2)) |
| 965 | - | end |
| 965 | + | MakeForm(CHARGE, "Ball") |
| 966 | - | game:GetService("Debris"):AddItem(vp,.5)
|
| 966 | + | CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15, 15), -15, MRANDOM(-15, 15)) |
| 967 | - | elseif Type=="Up" then |
| 967 | + | FireArc(CHARGE, ABSOLUTE.Position, 45, 45, true) |
| 968 | - | local bodyVelocity=Instance.new("BodyVelocity")
|
| 968 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 969 | - | bodyVelocity.velocity=vt(0,60,0) |
| 969 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 970 | - | bodyVelocity.P=5000 |
| 970 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 971 | - | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) |
| 971 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 972 | - | bodyVelocity.Parent=hit |
| 972 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 973 | - | game:GetService("Debris"):AddItem(bodyVelocity,1)
|
| 973 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 974 | - | rl=Instance.new("BodyAngularVelocity")
|
| 974 | + | |
| 975 | - | rl.P=3000 |
| 975 | + | CreateSound(ULTTAUNTS[MRANDOM(1, #ULTTAUNTS)], Head, 10, 0.9) |
| 976 | - | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 |
| 976 | + | CreateSound("160772554", ABSOLUTE, 10, MRANDOM(5, 7) / 10)
|
| 977 | - | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) |
| 977 | + | for i = 1, 45 do |
| 978 | - | rl.Parent=hit |
| 978 | + | Swait() |
| 979 | - | game:GetService("Debris"):AddItem(rl,.5)
|
| 979 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 980 | - | elseif Type=="Snare" then |
| 980 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 981 | - | bp=Instance.new("BodyPosition")
|
| 981 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 982 | - | bp.P=2000 |
| 982 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 983 | - | bp.D=100 |
| 983 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 984 | - | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) |
| 984 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 985 | - | bp.position=hit.Parent.Torso.Position |
| 985 | + | |
| 986 | - | bp.Parent=hit.Parent.Torso |
| 986 | + | coroutine.resume(coroutine.create(function() |
| 987 | - | game:GetService("Debris"):AddItem(bp,1)
|
| 987 | + | local IMPACT = false |
| 988 | - | elseif Type=="Target" then |
| 988 | + | local BULLET = ABSOLUTE |
| 989 | - | if Targetting==false then |
| 989 | + | MakeForm(BULLET, "Ball") |
| 990 | - | ZTarget=hit.Parent.Torso |
| 990 | + | BULLET.CFrame = CF(BULLET.Position, Mouse.Hit.p) |
| 991 | - | coroutine.resume(coroutine.create(function(Part) |
| 991 | + | for i = 1, 500 do |
| 992 | - | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
|
| 992 | + | Swait() |
| 993 | - | swait(5) |
| 993 | + | BULLET.CFrame = BULLET.CFrame * CF(0, 0, -2) |
| 994 | - | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
|
| 994 | + | local HIT = Raycast(BULLET.Position, BULLET.CFrame.lookVector, BULLET.Size.X / 2, Character) |
| 995 | - | end),ZTarget) |
| 995 | + | MagicSphere(VT(10, 10, 10), 55, CF(BULLET.CFrame * CF(MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5), MRANDOM(-BULLET.Size.X / 2.5, BULLET.Size.X / 2.5)).p), "Really red", VT(-10, -10, -10) / 55) |
| 996 | - | TargHum=ZTarget.Parent:findFirstChild("Humanoid")
|
| 996 | + | if HIT ~= nil then |
| 997 | - | targetgui=Instance.new("BillboardGui")
|
| 997 | + | IMPACT = true |
| 998 | - | targetgui.Parent=ZTarget |
| 998 | + | break |
| 999 | - | targetgui.Size=UDim2.new(10,100,10,100) |
| 999 | + | end |
| 1000 | - | targ=Instance.new("ImageLabel")
|
| 1000 | + | end |
| 1001 | - | targ.Parent=targetgui |
| 1001 | + | if IMPACT == false then |
| 1002 | - | targ.BackgroundTransparency=1 |
| 1002 | + | for i = 1, 40 do |
| 1003 | - | targ.Image="rbxassetid://4834067" |
| 1003 | + | Swait() |
| 1004 | - | targ.Size=UDim2.new(1,0,1,0) |
| 1004 | + | BULLET.Size = BULLET.Size * 0.9 |
| 1005 | - | cam.CameraType="Scriptable" |
| 1005 | + | end |
| 1006 | - | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) |
| 1006 | + | BULLET:remove() |
| 1007 | - | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) |
| 1007 | + | else |
| 1008 | - | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) |
| 1008 | + | CreateSound("1127492102", BULLET, 10, MRANDOM(8, 13) / 10)
|
| 1009 | - | Targetting=true |
| 1009 | + | for i = 1, 175 do |
| 1010 | - | RocketTarget=ZTarget |
| 1010 | + | Swait() |
| 1011 | - | for i=1,Property do |
| 1011 | + | BULLET.Size = BULLET.Size * 0.99 |
| 1012 | - | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do |
| 1012 | + | Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(i, 0, i) / 85)
|
| 1013 | - | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then |
| 1013 | + | end |
| 1014 | - | swait() |
| 1014 | + | CreateSound("438666001", BULLET, 10, 3)
|
| 1015 | - | end |
| 1015 | + | Swait(35) |
| 1016 | - | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) |
| 1016 | + | BULLET.Transparency = 1 |
| 1017 | - | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) |
| 1017 | + | for i = 1, 20 do |
| 1018 | - | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) |
| 1018 | + | for e = 1, 5 do |
| 1019 | - | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) |
| 1019 | + | MagicSphere(VT(0.2, 0.2, 0.2), 50, CF(BULLET.CFrame * CF(MRANDOM(-5, 5), MRANDOM(-5, 5), MRANDOM(-5, 5)).p, BULLET.Position), "Really black", VT(1, 1, i * 4), 0) |
| 1020 | - | end |
| 1020 | + | Slice("Round", 0, 35, CF(BULLET.Position) * ANGLES(RAD(MRANDOM(-18, 18)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-18, 18))), "Really red", VT(i, 0, i) / 3)
|
| 1021 | - | Targetting=false |
| 1021 | + | end |
| 1022 | - | RocketTarget=nil |
| 1022 | + | AddChildrenToTable(BULLET.Position, workspace, i * 25, HITBODIES) |
| 1023 | - | targetgui.Parent=nil |
| 1023 | + | CreateSound("178452241", BULLET, 10, MRANDOM(8, 13) / 10)
|
| 1024 | - | cam.CameraType="Custom" |
| 1024 | + | CreateSound("178452243", BULLET, 10, MRANDOM(8, 13) / 10)
|
| 1025 | - | end |
| 1025 | + | MagicSphere(BULLET.Size, 35, BULLET.CFrame, C3(MRANDOM(0, 10) / 10, 0, 0), VT(i, i, i) * 2) |
| 1026 | - | end |
| 1026 | + | Swait(5) |
| 1027 | - | debounce=Instance.new("BoolValue")
|
| 1027 | + | for e = 1, #HITBODIES do |
| 1028 | - | debounce.Name="DebounceHit" |
| 1028 | + | if HITBODIES[e] ~= nil then |
| 1029 | - | debounce.Parent=hit.Parent |
| 1029 | + | local BOD = HITBODIES[e] |
| 1030 | - | debounce.Value=true |
| 1030 | + | local TORS = BOD:FindFirstChild("Torso") or BOD:FindFirstChild("UpperTorso")
|
| 1031 | - | game:GetService("Debris"):AddItem(debounce,Delay)
|
| 1031 | + | if TORS then |
| 1032 | - | c=Instance.new("ObjectValue")
|
| 1032 | + | BOD:BreakJoints() |
| 1033 | - | c.Name="creator" |
| 1033 | + | for _, c in pairs(BOD:GetChildren()) do |
| 1034 | - | c.Value=Player |
| 1034 | + | if c.ClassName == "Part" or c.ClassName == "MeshPart" then |
| 1035 | - | c.Parent=h |
| 1035 | + | local bv = Instance.new("BodyVelocity")
|
| 1036 | - | game:GetService("Debris"):AddItem(c,.5)
|
| 1036 | + | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) |
| 1037 | - | CRIT=false |
| 1037 | + | bv.velocity = CF(BULLET.Position, c.Position).lookVector * 250 |
| 1038 | - | hitDeb=true |
| 1038 | + | bv.Parent = c |
| 1039 | - | AttackPos=6 |
| 1039 | + | Debris:AddItem(bv, 0.2) |
| 1040 | - | end |
| 1040 | + | end |
| 1041 | end | |
| 1042 | - | |
| 1042 | + | end |
| 1043 | - | showDamage=function(Char,Dealt,du,Color) |
| 1043 | + | end |
| 1044 | - | m=Instance.new("Model")
|
| 1044 | + | end |
| 1045 | - | m.Name=tostring(Dealt) |
| 1045 | + | CreateWave(VT(0, 2, 0), 75, CF(BULLET.Position), true, -15, "Really red", VT(i, 0, i) * 2) |
| 1046 | - | h=Instance.new("Humanoid")
|
| 1046 | + | end |
| 1047 | - | h.Health=0 |
| 1047 | + | MagicSphere(BULLET.Size, 100, BULLET.CFrame, C3(1, 0, 0), VT(12, 12, 12)) |
| 1048 | - | h.MaxHealth=0 |
| 1048 | + | Debris:AddItem(BULLET, 10) |
| 1049 | - | h.Parent=m |
| 1049 | + | end |
| 1050 | - | c=Instance.new("Part")
|
| 1050 | + | end)) |
| 1051 | - | c.Transparency=0 |
| 1051 | + | ATTACK = false |
| 1052 | - | c.BrickColor=Color |
| 1052 | + | Rooted = false |
| 1053 | - | c.Transparency = 1 |
| 1053 | + | |
| 1054 | - | c.Name="Head" |
| 1054 | + | |
| 1055 | - | c.TopSurface=0 |
| 1055 | + | |
| 1056 | - | c.BottomSurface=0 |
| 1056 | + | local Decal = IT("Decal")
|
| 1057 | - | c.formFactor="Plate" |
| 1057 | + | function Unwilling_Hop() |
| 1058 | - | c.Size=Vector3.new(1,.4,1) |
| 1058 | + | ATTACK = true |
| 1059 | Rooted = false | |
| 1060 | - | local txt = Instance.new("BillboardGui", c)
|
| 1060 | + | local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0)) |
| 1061 | - | txt.Adornee = c |
| 1061 | + | O1.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(90), RAD(0), RAD(0)) |
| 1062 | - | txt.Name = "_status" |
| 1062 | + | local decal = Decal:Clone() |
| 1063 | - | txt.Size = UDim2.new(2, 0, 1.2, 0) |
| 1063 | + | decal.Parent = O1 |
| 1064 | - | txt.StudsOffset = Vector3.new(-9, 8, 0) |
| 1064 | + | decal.Face = "Top" |
| 1065 | - | local text = Instance.new("TextLabel", txt)
|
| 1065 | + | decal.Texture = "http://www.roblox.com/asset/?id=1346259742" |
| 1066 | - | text.Size = UDim2.new(10, 0, 7, 0) |
| 1066 | + | local decal2 = Decal:Clone() |
| 1067 | - | text.FontSize = "Size12" |
| 1067 | + | decal2.Parent = O1 |
| 1068 | - | text.TextScaled = true |
| 1068 | + | decal2.Face = "Bottom" |
| 1069 | - | text.TextTransparency = 0.5 |
| 1069 | + | decal2.Texture = "http://www.roblox.com/asset/?id=1346259742" |
| 1070 | - | text.BackgroundTransparency = 1 |
| 1070 | + | local O2 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0)) |
| 1071 | - | text.TextTransparency = 0.5 |
| 1071 | + | local POS = VT(RootPart.Position.X, Mouse.Hit.p.Y + 6, RootPart.Position.Z) |
| 1072 | - | text.TextStrokeTransparency = 0.5 |
| 1072 | + | O2.CFrame = CF(Mouse.Hit.p + VT(0, 6, 0), POS) * ANGLES(RAD(90), RAD(0), RAD(0)) |
| 1073 | - | text.Font = "SciFi" |
| 1073 | + | local ROOT = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Warphole", VT(0, 0, 0)) |
| 1074 | - | text.TextStrokeColor3 = Color3.new(0,0,0) |
| 1074 | + | ROOT.CFrame = CF(O2.Position, RootPart.Position) |
| 1075 | - | v=Instance.new("Part")
|
| 1075 | + | local decal = Decal:Clone() |
| 1076 | - | v.Name = "ColorBrick" |
| 1076 | + | decal.Parent = O2 |
| 1077 | - | v.Parent=c |
| 1077 | + | decal.Face = "Top" |
| 1078 | - | v.FormFactor="Symmetric" |
| 1078 | + | decal.Texture = "http://www.roblox.com/asset/?id=1346259742" |
| 1079 | - | v.Anchored=true |
| 1079 | + | local decal2 = Decal:Clone() |
| 1080 | - | v.CanCollide=false |
| 1080 | + | decal2.Parent = O2 |
| 1081 | - | v.BottomSurface="Smooth" |
| 1081 | + | decal2.Face = "Bottom" |
| 1082 | - | v.TopSurface="Smooth" |
| 1082 | + | decal2.Texture = "http://www.roblox.com/asset/?id=1346259742" |
| 1083 | - | v.Size=Vector3.new(10,5,3) |
| 1083 | + | CreateSound("1127492102", O1, 10, 0.7)
|
| 1084 | - | v.Transparency=1 |
| 1084 | + | CreateSound("1127492102", O2, 10, 0.7)
|
| 1085 | - | v.CFrame=c.CFrame |
| 1085 | + | for i = 1, 75 do |
| 1086 | - | v.BrickColor=BrickColor.random() |
| 1086 | + | Swait() |
| 1087 | - | v.Transparency=1 |
| 1087 | + | O1.Size = O1.Size + VT(0.12, 0, 0.12) |
| 1088 | - | text.TextColor3 = maincolor.Color |
| 1088 | + | O1.CFrame = RootPart.CFrame * CF(0, 0, -3) * ANGLES(RAD(90), RAD(i), RAD(0)) |
| 1089 | - | v.Shape="Block" |
| 1089 | + | O2.Size = O2.Size + VT(0.12, 0, 0.12) |
| 1090 | - | text.Text = tostring(Dealt) |
| 1090 | + | O2.CFrame = O2.CFrame * ANGLES(RAD(0), RAD(i), RAD(0)) |
| 1091 | - | ms=Instance.new("CylinderMesh")
|
| 1091 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 1092 | - | ms.Scale=Vector3.new(.8,.8,.8) |
| 1092 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 1093 | - | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
|
| 1093 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 1094 | - | local dam = Instance.new("Sound",c)
|
| 1094 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 1095 | - | local rndm=math.random(1,#hitsounds) |
| 1095 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1096 | - | local r=rndm |
| 1096 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1097 | - | dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r] |
| 1097 | + | |
| 1098 | - | dam.Volume = 1.25 |
| 1098 | + | Rooted = true |
| 1099 | - | dam.Pitch = 1 |
| 1099 | + | UNANCHOR = false |
| 1100 | - | dam:Play() |
| 1100 | + | RootPart.Anchored = true |
| 1101 | - | if CRIT==true then |
| 1101 | + | VALUE1 = true |
| 1102 | - | ms.Scale=Vector3.new(1,1.25,1) |
| 1102 | + | for i = 1, 15 do |
| 1103 | - | end |
| 1103 | + | Transparency(i / 15) |
| 1104 | - | ms.Parent=c |
| 1104 | + | Swait() |
| 1105 | - | c.Reflectance=0 |
| 1105 | + | RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.13) |
| 1106 | - | Instance.new("BodyGyro").Parent=c
|
| 1106 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 1107 | - | c.Parent=m |
| 1107 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 1108 | - | if Char:findFirstChild("Head")~=nil then
|
| 1108 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 1109 | - | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) |
| 1109 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 1110 | - | elseif Char.Parent:findFirstChild("Head")~=nil then
|
| 1110 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1111 | - | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) |
| 1111 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1112 | - | end |
| 1112 | + | |
| 1113 | - | f=Instance.new("BodyPosition")
|
| 1113 | + | RootPart.CFrame = ROOT.CFrame |
| 1114 | - | f.P=2000 |
| 1114 | + | ROOT:remove() |
| 1115 | - | f.D=100 |
| 1115 | + | for i = 1, 15 do |
| 1116 | - | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) |
| 1116 | + | Transparency(1 - i / 15) |
| 1117 | - | f.position=c.Position+Vector3.new(0,3,0) |
| 1117 | + | Swait() |
| 1118 | - | f.Parent=c |
| 1118 | + | RootPart.CFrame = RootPart.CFrame * CF(0, 0, -0.5) |
| 1119 | - | game:GetService("Debris"):AddItem(m,.5+du)
|
| 1119 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 1120 | - | c.CanCollide=false |
| 1120 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 1121 | - | m.Parent=workspace |
| 1121 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 1122 | - | c.CanCollide=false |
| 1122 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 1123 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1124 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1125 | - | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants |
| 1125 | + | |
| 1126 | - | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
|
| 1126 | + | VALUE1 = false |
| 1127 | - | end |
| 1127 | + | coroutine.resume(coroutine.create(function() |
| 1128 | for i = 1, 75 do | |
| 1129 | - | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) |
| 1129 | + | Swait() |
| 1130 | - | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
| 1130 | + | O1.Size = O1.Size - VT(0.12, 0, 0.12) |
| 1131 | - | prt.Anchored=true |
| 1131 | + | O1.CFrame = O1.CFrame * ANGLES(RAD(0), RAD(i), RAD(0)) |
| 1132 | - | prt.CFrame=cframe |
| 1132 | + | O2.Size = O2.Size - VT(0.12, 0, 0.12) |
| 1133 | - | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
|
| 1133 | + | O2.CFrame = O2.CFrame * ANGLES(RAD(0), RAD(i), RAD(0)) |
| 1134 | - | --http://www.roblox.com/asset/?id=4770560 |
| 1134 | + | |
| 1135 | - | game:GetService("Debris"):AddItem(prt,2)
|
| 1135 | + | O1:remove() |
| 1136 | - | CF=prt.CFrame |
| 1136 | + | O2:remove() |
| 1137 | - | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) |
| 1137 | + | end)) |
| 1138 | - | for i=0,1,0.2 do |
| 1138 | + | UNANCHOR = true |
| 1139 | - | wait() |
| 1139 | + | RootPart.Anchored = false |
| 1140 | - | Part.CFrame=CF*cf(0,0,-0.4) |
| 1140 | + | ATTACK = false |
| 1141 | Rooted = false | |
| 1142 | - | for i=0,1,delay do |
| 1142 | + | |
| 1143 | - | wait() |
| 1143 | + | function Taunt() |
| 1144 | - | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) |
| 1144 | + | ATTACK = true |
| 1145 | - | Mesh.Scale=Mesh.Scale |
| 1145 | + | Rooted = true |
| 1146 | local ROAR = CreateSound("907329293", Head, 10, 0.9)
| |
| 1147 | - | for i=0,1,0.1 do |
| 1147 | + | Swait() |
| 1148 | - | wait() |
| 1148 | + | repeat |
| 1149 | - | Part.Transparency=i |
| 1149 | + | Swait() |
| 1150 | ROAR.Parent = Head | |
| 1151 | - | Part.Parent=nil |
| 1151 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1152 | - | end),prt,msh,CF) |
| 1152 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 1153 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
| 1154 | - | |
| 1154 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 1155 | - | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) |
| 1155 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1156 | - | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
| 1156 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1157 | - | prt.Anchored=true |
| 1157 | + | until ROAR.Playing == false |
| 1158 | - | prt.Material = "Neon" |
| 1158 | + | ATTACK = false |
| 1159 | - | prt.CFrame=cframe |
| 1159 | + | Rooted = false |
| 1160 | - | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) |
| 1160 | + | |
| 1161 | - | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
|
| 1161 | + | function Roar() |
| 1162 | - | game:GetService("Debris"):AddItem(prt,5)
|
| 1162 | + | ATTACK = true |
| 1163 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
| 1163 | + | Rooted = true |
| 1164 | - | for i=0,1,delay do |
| 1164 | + | local ROAR = CreateSound("544159394", Head, 10, 0.8)
|
| 1165 | - | swait() |
| 1165 | + | Swait() |
| 1166 | - | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) |
| 1166 | + | repeat |
| 1167 | - | Part.Transparency=i |
| 1167 | + | Swait() |
| 1168 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) |
| 1168 | + | ROAR.Parent = Head |
| 1169 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1170 | - | Part.Parent=nil |
| 1170 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1171 | - | end),prt,msh) |
| 1171 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 1172 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
| 1173 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1174 | - | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) |
| 1174 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-15 - 7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1175 | - | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
| 1175 | + | until ROAR.Playing == false |
| 1176 | - | prt.Anchored=true |
| 1176 | + | ATTACK = false |
| 1177 | - | prt.Material = "Neon" |
| 1177 | + | Rooted = false |
| 1178 | - | prt.CFrame=cframe |
| 1178 | + | |
| 1179 | - | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
|
| 1179 | + | function MouseDown(Mouse) |
| 1180 | - | game:GetService("Debris"):AddItem(prt,5)
|
| 1180 | + | if ATTACK == false then |
| 1181 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
| 1181 | + | |
| 1182 | - | local rtype = rottype |
| 1182 | + | |
| 1183 | - | for i=0,1,delay do |
| 1183 | + | function MouseUp(Mouse) |
| 1184 | - | swait() |
| 1184 | + | HOLD = false |
| 1185 | - | if rtype == 1 then |
| 1185 | + | |
| 1186 | - | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) |
| 1186 | + | function KeyDown(Key) |
| 1187 | - | elseif rtype == 2 then |
| 1187 | + | KEYHOLD = true |
| 1188 | - | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) |
| 1188 | + | if Key == "z" and ATTACK == false then |
| 1189 | Orbital_Devastor() | |
| 1190 | - | Part.Transparency=i |
| 1190 | + | |
| 1191 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) |
| 1191 | + | if Key == "b" and ATTACK == false then |
| 1192 | Savage_Fire() | |
| 1193 | - | Part.Parent=nil |
| 1193 | + | |
| 1194 | - | end),prt,msh) |
| 1194 | + | if Key == "c" and ATTACK == false then |
| 1195 | Grave_Encounter() | |
| 1196 | end | |
| 1197 | - | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) |
| 1197 | + | if Key == "v" and ATTACK == false then |
| 1198 | - | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
| 1198 | + | Endless_Pain() |
| 1199 | - | prt.Anchored=true |
| 1199 | + | |
| 1200 | - | prt.CFrame=cframe |
| 1200 | + | if Key == "x" and ATTACK == false then |
| 1201 | - | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) |
| 1201 | + | Absoluteum() |
| 1202 | - | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
|
| 1202 | + | |
| 1203 | - | game:GetService("Debris"):AddItem(prt,5)
|
| 1203 | + | if Key == "q" and ATTACK == false then |
| 1204 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
| 1204 | + | Unwilling_Hop() |
| 1205 | - | for i=0,1,delay do |
| 1205 | + | |
| 1206 | - | wait() |
| 1206 | + | if Key == "t" and ATTACK == false then |
| 1207 | - | Part.Transparency=i |
| 1207 | + | Taunt() |
| 1208 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) |
| 1208 | + | |
| 1209 | if Key == "9" and ATTACK == false then | |
| 1210 | - | Part.Parent=nil |
| 1210 | + | Roar() |
| 1211 | - | end),prt,msh) |
| 1211 | + | |
| 1212 | end | |
| 1213 | - | |
| 1213 | + | function KeyUp(Key) |
| 1214 | - | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) |
| 1214 | + | KEYHOLD = false |
| 1215 | - | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
| 1215 | + | |
| 1216 | - | prt.Anchored=false |
| 1216 | + | Mouse.Button1Down:connect(function(NEWKEY) |
| 1217 | - | prt.CFrame=cframe |
| 1217 | + | MouseDown(NEWKEY) |
| 1218 | - | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
|
| 1218 | + | |
| 1219 | - | local wld=weld(prt,prt,Parent,cframe) |
| 1219 | + | Mouse.Button1Up:connect(function(NEWKEY) |
| 1220 | - | game:GetService("Debris"):AddItem(prt,5)
|
| 1220 | + | MouseUp(NEWKEY) |
| 1221 | - | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) |
| 1221 | + | |
| 1222 | - | for i=0,1,delay do |
| 1222 | + | Mouse.KeyDown:connect(function(NEWKEY) |
| 1223 | - | wait() |
| 1223 | + | KeyDown(NEWKEY) |
| 1224 | - | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe |
| 1224 | + | |
| 1225 | - | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) |
| 1225 | + | Mouse.KeyUp:connect(function(NEWKEY) |
| 1226 | - | Part.Transparency=i |
| 1226 | + | KeyUp(NEWKEY) |
| 1227 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) |
| 1227 | + | |
| 1228 | function unanchor() | |
| 1229 | - | Part.Parent=nil |
| 1229 | + | if UNANCHOR == true then |
| 1230 | - | end),prt,msh,wld) |
| 1230 | + | g = Character:GetChildren() |
| 1231 | for i = 1, #g do | |
| 1232 | - | |
| 1232 | + | if g[i].ClassName == "Part" then |
| 1233 | - | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) |
| 1233 | + | g[i].Anchored = false |
| 1234 | - | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
| 1234 | + | |
| 1235 | - | prt.Anchored=false |
| 1235 | + | |
| 1236 | - | prt.CFrame=cframe |
| 1236 | + | |
| 1237 | - | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
|
| 1237 | + | |
| 1238 | - | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) |
| 1238 | + | function refit() |
| 1239 | - | game:GetService("Debris"):AddItem(prt,5)
|
| 1239 | + | RootJoint.Parent = RootPart |
| 1240 | - | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) |
| 1240 | + | Neck.Parent = Torso |
| 1241 | - | for i=0,1,delay do |
| 1241 | + | RightShoulder.Parent = Torso |
| 1242 | - | wait() |
| 1242 | + | LeftShoulder.Parent = Torso |
| 1243 | - | Weld.C0=euler(i*20,0,0) |
| 1243 | + | RightHip.Parent = Torso |
| 1244 | - | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) |
| 1244 | + | LeftHip.Parent = Torso |
| 1245 | - | Part.Transparency=i |
| 1245 | + | RootPart.Parent = Character |
| 1246 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) |
| 1246 | + | LeftArm.Parent = Character |
| 1247 | RightArm.Parent = Character | |
| 1248 | - | Part.Parent=nil |
| 1248 | + | RightLeg.Parent = Character |
| 1249 | - | end),prt,msh,wld) |
| 1249 | + | LeftLeg.Parent = Character |
| 1250 | Torso.Parent = Character | |
| 1251 | - | |
| 1251 | + | Head.Parent = Character |
| 1252 | - | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) |
| 1252 | + | |
| 1253 | - | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
| 1253 | + | Humanoid.Changed:connect(function(Jump) |
| 1254 | - | prt.Anchored=true |
| 1254 | + | if Jump == "Jump" and Disable_Jump == true then |
| 1255 | - | prt.CFrame=cframe |
| 1255 | + | Humanoid.Jump = false |
| 1256 | - | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
|
| 1256 | + | |
| 1257 | - | game:GetService("Debris"):AddItem(prt,2)
|
| 1257 | + | |
| 1258 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
| 1258 | + | Humanoid.HipHeight = 2 |
| 1259 | - | for i=0,1,delay do |
| 1259 | + | Head:ClearAllChildren() |
| 1260 | - | wait() |
| 1260 | + | local FF = IT("ForceField", Character)
|
| 1261 | - | Part.CFrame=Part.CFrame |
| 1261 | + | FF.Visible = false |
| 1262 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) |
| 1262 | + | Speed = 45 |
| 1263 | - | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
| 1263 | + | CreateSound("907332997", Head, 10, 0.9)
|
| 1264 | - | prt2.Anchored=true |
| 1264 | + | |
| 1265 | - | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) |
| 1265 | + | Swait() |
| 1266 | - | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
|
| 1266 | + | ANIMATE.Parent = nil |
| 1267 | - | game:GetService("Debris"):AddItem(prt2,2)
|
| 1267 | + | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) |
| 1268 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
| 1268 | + | IDLEANIMATION:Play() |
| 1269 | - | for i=0,1,0.1 do |
| 1269 | + | SINE = SINE + CHANGE |
| 1270 | - | wait() |
| 1270 | + | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude |
| 1271 | - | Part.CFrame=Part.CFrame*cf(0,0.5,0) |
| 1271 | + | local TORSOVERTICALVELOCITY = RootPart.Velocity.y |
| 1272 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
| 1273 | - | Part.Parent=nil |
| 1273 | + | local HITFLOOR, HITPOS, NORMAL = Raycast(RootPart.Position, CF(RootPart.Position, RootPart.Position + VT(0, -1, 0)).lookVector, 7 * Player_Size, Character) |
| 1274 | - | end),prt2,msh2) |
| 1274 | + | if ATTACK == false then |
| 1275 | if TORSOVELOCITY < 1 then | |
| 1276 | - | for i=0,1,delay*2 do |
| 1276 | + | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.45 * COS(SINE / 12)) * ANGLES(RAD(7 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 1 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 1277 | - | wait() |
| 1277 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 1278 | - | Part.CFrame=Part.CFrame |
| 1278 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 1279 | - | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) |
| 1279 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0 - 7.5 * SIN(SINE / 12)), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 1280 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 + 0.15 * COS(SINE / 12), -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
| 1281 | - | Part.Parent=nil |
| 1281 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 + 0.25 * COS(SINE / 12), -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1282 | - | end),prt,msh) |
| 1282 | + | elseif TORSOVELOCITY > 1 then |
| 1283 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
| 1284 | - | |
| 1284 | + | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) |
| 1285 | - | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) |
| 1285 | + | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(25 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) |
| 1286 | - | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
| 1286 | + | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-25 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) |
| 1287 | - | prt.Anchored=true |
| 1287 | + | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25 - 7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1288 | - | prt.CFrame=cframe |
| 1288 | + | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) |
| 1289 | - | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
|
| 1289 | + | |
| 1290 | - | game:GetService("Debris"):AddItem(prt,2)
|
| 1290 | + | |
| 1291 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
| 1291 | + | if VALUE2 == false then |
| 1292 | - | for i=0,1,delay do |
| 1292 | + | Slice("Thin", 0.1, 5, RightArm.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(1, 0, 0), VT(-0.01, 0, -0.01))
|
| 1293 | - | wait() |
| 1293 | + | Slice("Thin", 0.1, 5, LeftArm.CFrame * CF(0, -1.1, 0) * ANGLES(RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180)), RAD(MRANDOM(-180, 180))), C3(1, 0, 0), VT(-0.01, 0, -0.01))
|
| 1294 | - | Part.CFrame=Part.CFrame |
| 1294 | + | |
| 1295 | - | Part.Transparency=i |
| 1295 | + | unanchor() |
| 1296 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) |
| 1296 | + | Humanoid.MaxHealth = "inf" |
| 1297 | Humanoid.Health = "inf" | |
| 1298 | - | Part.Parent=nil |
| 1298 | + | if Rooted == false then |
| 1299 | - | end),prt,msh) |
| 1299 | + | Disable_Jump = false |
| 1300 | Humanoid.WalkSpeed = Speed | |
| 1301 | - | |
| 1301 | + | elseif Rooted == true then |
| 1302 | - | function BreakEffect(brickcolor,cframe,x1,y1,z1) |
| 1302 | + | Disable_Jump = true |
| 1303 | - | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
| 1303 | + | Humanoid.WalkSpeed = 0 |
| 1304 | - | prt.Anchored=true |
| 1304 | + | |
| 1305 | - | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) |
| 1305 | + | for _, c in pairs(Character:GetChildren()) do |
| 1306 | - | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
|
| 1306 | + | if c.ClassName == "Part" then |
| 1307 | - | game:GetService("Debris"):AddItem(prt,2)
|
| 1307 | + | c.Material = "Neon" |
| 1308 | - | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) |
| 1308 | + | if c:FindFirstChildOfClass("ParticleEmitter") then
|
| 1309 | - | CF=Part.CFrame |
| 1309 | + | c:FindFirstChildOfClass("ParticleEmitter"):remove()
|
| 1310 | - | Numbb=0 |
| 1310 | + | |
| 1311 | - | randnumb=math.random()/10 |
| 1311 | + | if c == Torso then |
| 1312 | - | rand1=math.random()/10 |
| 1312 | + | c.Color = C3(0, 0, 0) |
| 1313 | - | for i=0,1,rand1 do |
| 1313 | + | elseif c == RightArm then |
| 1314 | - | wait() |
| 1314 | + | c.Color = C3(0.1, 0, 0) |
| 1315 | - | CF=CF*cf(0,math.random()/2,0) |
| 1315 | + | elseif c == LeftArm then |
| 1316 | - | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) |
| 1316 | + | c.Color = C3(0.1, 0, 0) |
| 1317 | - | Part.CFrame=CF*euler(Numbb,0,0) |
| 1317 | + | elseif c == RightLeg then |
| 1318 | - | Part.Transparency=i |
| 1318 | + | c.Color = C3(0.05, 0, 0) |
| 1319 | - | Numbb=Numbb+randnumb |
| 1319 | + | elseif c == LeftLeg then |
| 1320 | c.Color = C3(0.05, 0, 0) | |
| 1321 | - | Part.Parent=nil |
| 1321 | + | elseif c == Head then |
| 1322 | - | end),prt,CF,Numbb,randnumb) |
| 1322 | + | if c:FindFirstChild("Dominus") == nil then
|
| 1323 | local M = CreateMesh("SpecialMesh", c, "FileMesh", "96102993", "114455897", VT(1, 1, 1) * 1.1, VT(0, 0, 0))
| |
| 1324 | - | |
| 1324 | + | M.Name = "Dominus" |
| 1325 | - | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) |
| 1325 | + | end |
| 1326 | - | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
| 1326 | + | if c:FindFirstChild("face") then
|
| 1327 | - | prt.Anchored=true |
| 1327 | + | c.face:remove() |
| 1328 | - | prt.CFrame=cframe |
| 1328 | + | end |
| 1329 | - | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
|
| 1329 | + | |
| 1330 | - | game:GetService("Debris"):AddItem(prt,5)
|
| 1330 | + | elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then |
| 1331 | - | coroutine.resume(coroutine.create(function(Part,Mesh) |
| 1331 | + | c:remove() |
| 1332 | - | for i=0,1,delay do |
| 1332 | + | |
| 1333 | - | wait() |
| 1333 | + | |
| 1334 | - | Part.CFrame=Part.CFrame*euler(0,0.7,0) |
| 1334 | + | FF.Parent = Character |
| 1335 | - | Part.Transparency=i |
| 1335 | + | sick.Parent = Character |
| 1336 | - | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) |
| 1336 | + | refit() |
| 1337 | script.Parent = WEAPONGUI | |
| 1338 | - | Part.Parent=nil |
| 1338 | + | Character.Parent = workspace |
| 1339 | - | end),prt,msh) |
| 1339 | + | Humanoid.PlatformStand = false |
| 1340 | Humanoid.Name = "Ultimate Dominus" | |
| 1341 | - | |
| 1341 | + | for _, c in pairs(game.Players:GetChildren()) do |
| 1342 | - | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) |
| 1342 | + | if c.Character ~= nil and c.Character.Parent ~= workspace and c.Character.Parent ~= nil then |
| 1343 | - | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) |
| 1343 | + | c.Character:BreakJoints() |
| 1344 | - | prt.Anchored=true |
| 1344 | + | |
| 1345 | - | prt.CFrame=cframe |
| 1345 | + | |
| 1346 | - | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
|
| 1346 | + | Humanoid.DisplayDistanceType = "None" |
| 1347 | - | game:GetService("Debris"):AddItem(prt,2)
|
| 1347 | + |