SHOW:
|
|
- or go back to the newest paste.
| 1 | local Player = game:GetService("Players").TameDoNotClick
| |
| 2 | ||
| 3 | ||
| 4 | local Mouse,mouse,UserInputService,ContextActionService | |
| 5 | do | |
| 6 | script.Parent = Player.Character | |
| 7 | local CAS = {Actions={}}
| |
| 8 | local Event = Instance.new("RemoteEvent")
| |
| 9 | Event.Name = "UserInput_Event" | |
| 10 | Event.Parent = Player.Character | |
| 11 | local fakeEvent = function() | |
| 12 | local t = {_fakeEvent=true}
| |
| 13 | t.Connect = function(self,f)self.Function=f end | |
| 14 | t.connect = t.Connect | |
| 15 | return t | |
| 16 | end | |
| 17 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 18 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 19 | function CAS:BindAction(name,fun,touch,...) | |
| 20 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}}
| |
| 21 | end | |
| 22 | function CAS:UnbindAction(name) | |
| 23 | CAS.Actions[name] = nil | |
| 24 | end | |
| 25 | local function te(self,ev,...) | |
| 26 | local t = m[ev] | |
| 27 | if t and t._fakeEvent and t.Function then | |
| 28 | t.Function(...) | |
| 29 | end | |
| 30 | end | |
| 31 | m.TrigEvent = te | |
| 32 | UIS.TrigEvent = te | |
| 33 | Event.OnServerEvent:Connect(function(plr,io) | |
| 34 | if plr~=Player then return end | |
| 35 | if io.isMouse then | |
| 36 | m.Target = io.Target | |
| 37 | m.Hit = io.Hit | |
| 38 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 39 | if io.UserInputState == Enum.UserInputState.Begin then | |
| 40 | m:TrigEvent("Button1Down")
| |
| 41 | else | |
| 42 | m:TrigEvent("Button1Up")
| |
| 43 | end | |
| 44 | else | |
| 45 | for n,t in pairs(CAS.Actions) do | |
| 46 | for _,k in pairs(t.Keys) do | |
| 47 | if k==io.KeyCode then | |
| 48 | t.Function(t.Name,io.UserInputState,io) | |
| 49 | end | |
| 50 | end | |
| 51 | end | |
| 52 | if io.UserInputState == Enum.UserInputState.Begin then | |
| 53 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower())
| |
| 54 | UIS:TrigEvent("InputBegan",io,false)
| |
| 55 | else | |
| 56 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower())
| |
| 57 | UIS:TrigEvent("InputEnded",io,false)
| |
| 58 | end | |
| 59 | end | |
| 60 | end) | |
| 61 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 62 | end | |
| 63 | ||
| 64 | wait(1/100) | |
| 65 | --for studio testing | |
| 66 | --burbolizer/turbolizer idfk | |
| 67 | --sans made this spaghetti coding | |
| 68 | --salvo basically made the gui and wan reanimated some stuff along with adding effects to attacks kthx | |
| 69 | ---------------- | |
| 70 | --Salvo is trying to tweak | |
| 71 | --also made gui | |
| 72 | ---------------------------- | |
| 73 | --ae sans works on this again why the f- | |
| 74 | --bugetti spaghetti for some reason Godz is here | |
| 75 | local player = game:service'Players'.TameDoNotClick | |
| 76 | local char = player.Character | |
| 77 | Character = player.Character | |
| 78 | Humanoid = Character.Humanoid | |
| 79 | RootPart = Character.HumanoidRootPart | |
| 80 | Torso = Character.Torso | |
| 81 | Head = Character.Head | |
| 82 | RightArm = Character['Right Arm'] | |
| 83 | LeftArm = Character['Left Arm'] | |
| 84 | RightLeg = Character['Right Leg'] | |
| 85 | LeftLeg = Character['Left Leg'] | |
| 86 | RightS = Torso['Right Shoulder'] | |
| 87 | RootJ = RootPart['RootJoint'] | |
| 88 | RootJoint = RootJ | |
| 89 | LeftS = Torso['Left Shoulder'] | |
| 90 | RightH = Torso['Right Hip'] | |
| 91 | LeftH = Torso['Left Hip'] | |
| 92 | it=Instance.new | |
| 93 | local attacking = false | |
| 94 | vt=Vector3.new | |
| 95 | cf=CFrame.new | |
| 96 | local sne = 0 | |
| 97 | local chaeng = 1 | |
| 98 | euler=CFrame.fromEulerAnglesXYZ | |
| 99 | angles=CFrame.Angles | |
| 100 | ---im good at shack's coding so stop blaming me you dumbfucks | |
| 101 | rarm = RightArm | |
| 102 | larm = LeftArm | |
| 103 | IT = Instance.new | |
| 104 | CF = CFrame.new | |
| 105 | VT = Vector3.new | |
| 106 | RAD = math.rad | |
| 107 | C3 = Color3.new | |
| 108 | UD2 = UDim2.new | |
| 109 | BRICKC = BrickColor.new | |
| 110 | ANGLES = CFrame.Angles | |
| 111 | EULER = CFrame.fromEulerAnglesXYZ | |
| 112 | COS = math.cos | |
| 113 | ACOS = math.acos | |
| 114 | SIN = math.sin | |
| 115 | ASIN = math.asin | |
| 116 | ABS = math.abs | |
| 117 | MRANDOM = math.random | |
| 118 | FLOOR = math.floor | |
| 119 | local hum = char.Humanoid | |
| 120 | local ra = char["Right Arm"] | |
| 121 | local la= char["Left Arm"] | |
| 122 | local rl= char["Right Leg"] | |
| 123 | local ll = char["Left Leg"] | |
| 124 | local hed = char.Head | |
| 125 | local root = char.HumanoidRootPart | |
| 126 | local rootj = root.RootJoint | |
| 127 | local tors = char.Torso | |
| 128 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 129 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 130 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 131 | ------------------ | |
| 132 | local Chill = false | |
| 133 | local sine = sne | |
| 134 | ------------------------------------------------------- | |
| 135 | --Start Cret's variables stuff-- | |
| 136 | ------------------------------------------------------- | |
| 137 | cam = game.Workspace.CurrentCamera | |
| 138 | CF = CFrame.new | |
| 139 | angles = CFrame.Angles | |
| 140 | attack = false | |
| 141 | Euler = CFrame.fromEulerAnglesXYZ | |
| 142 | Rad = math.rad | |
| 143 | IT = Instance.new | |
| 144 | BrickC = BrickColor.new | |
| 145 | Cos = math.cos | |
| 146 | Acos = math.acos | |
| 147 | Sin = math.sin | |
| 148 | Asin = math.asin | |
| 149 | Abs = math.abs | |
| 150 | Mrandom = math.random | |
| 151 | Floor = math.floor | |
| 152 | ------------------------------------------------------- | |
| 153 | --End Cret's variables stuff-- | |
| 154 | ------------------------------------------------------- | |
| 155 | - | local MoonEffect = script.Lunar |
| 155 | + | local MoonEffect = script.Effect |
| 156 | Player = player | |
| 157 | MoonEffect.Parent = Player.PlayerGui | |
| 158 | local MoonEffect2 = script.Effect2 | |
| 159 | MoonEffect2.Parent = Player.PlayerGui | |
| 160 | local PyramidEffect = script.Pyramid | |
| 161 | PyramidEffect.Parent = Player.PlayerGui | |
| 162 | local Triangle1 = script.Triangle | |
| 163 | Triangle1.Parent = Player.PlayerGui | |
| 164 | local Triangle2 = script.Triangle2 | |
| 165 | Triangle2.Parent = Player.PlayerGui | |
| 166 | local CrystalEff = script.Crystal | |
| 167 | CrystalEff.Parent = Player.PlayerGui | |
| 168 | local MAINCOLOR = BrickColor.new("Deep orange")
| |
| 169 | neckcf=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 170 | neckcf2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 171 | LeftHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 172 | LeftHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 173 | RightHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 174 | RightHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 175 | RootCF=euler(-1.57,0,3.14) | |
| 176 | necko=neckcf | |
| 177 | root = Character.HumanoidRootPart | |
| 178 | RH,LH = RightH,LeftH | |
| 179 | local NewInstance = function(instance,parent,properties) | |
| 180 | local inst = Instance.new(instance,parent) | |
| 181 | if(properties)then | |
| 182 | for i,v in next, properties do | |
| 183 | pcall(function() inst[i] = v end) | |
| 184 | end | |
| 185 | end | |
| 186 | return inst; | |
| 187 | end | |
| 188 | local SONG = 570332815 | |
| 189 | local gauntlet = script.Gauntlet2 | |
| 190 | local gauntlet2 = script.Gauntlet | |
| 191 | gauntlet.Parent = char | |
| 192 | gauntlet2.Parent = char | |
| 193 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 194 | v.Anchored = false | |
| 195 | end | |
| 196 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 197 | v.Anchored = false | |
| 198 | end | |
| 199 | local music = Instance.new("Sound",char.HumanoidRootPart)
| |
| 200 | music.SoundId = "rbxassetid://570332815" | |
| 201 | music.Looped = true | |
| 202 | music.Pitch = 1 | |
| 203 | music.Volume = 2 | |
| 204 | music.TimePosition = 0 | |
| 205 | music:Play() | |
| 206 | local HW = NewInstance('Weld',char,{Part0 = char["Right Arm"], Part1 = gauntlet2.Handle, C0 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)})
| |
| 207 | local HWx = NewInstance('Weld',char,{Part0 = char["Left Arm"], Part1 = gauntlet.Handle, C0 = CFrame.new(0,0,0) * CFrame.Angles(0,0,0)})
| |
| 208 | local TurboCore = script.Core.Core | |
| 209 | for i,v in pairs(script.Core.Core:GetChildren()) do | |
| 210 | v.Anchored = false | |
| 211 | end | |
| 212 | Weld = Instance.new("Weld",script.Core.Core)
| |
| 213 | Weld.Part0 = script.Core.Core.Handle | |
| 214 | Weld.Part1 = Player.Character.Torso | |
| 215 | Weld.C0 = Weld.C0*CFrame.new(0,-0.25,0) | |
| 216 | script.Core.Parent = Player.Character | |
| 217 | local Speed = 18 | |
| 218 | local storedspeed = 18 | |
| 219 | ||
| 220 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
| 221 | local p = Instance.new("Part")
| |
| 222 | p.TopSurface = 0 | |
| 223 | p.BottomSurface = 0 | |
| 224 | p.Parent = parent | |
| 225 | p.Size = Vector3.new(0.1,0.1,0.1) | |
| 226 | p.Transparency = transparency | |
| 227 | p.Reflectance = reflectance | |
| 228 | p.CanCollide = false | |
| 229 | p.Locked = true | |
| 230 | p.BrickColor = brickcolor | |
| 231 | p.Material = material | |
| 232 | return p | |
| 233 | end | |
| 234 | ||
| 235 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
| 236 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 237 | mesh.MeshType = meshtype | |
| 238 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
| 239 | return mesh | |
| 240 | end | |
| 241 | ||
| 242 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
| 243 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 244 | mesh.MeshType = "FileMesh" | |
| 245 | mesh.MeshId = meshid | |
| 246 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 247 | return mesh | |
| 248 | end | |
| 249 | ||
| 250 | ||
| 251 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
| 252 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 253 | mesh.MeshType = "FileMesh" | |
| 254 | mesh.MeshId = meshid | |
| 255 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
| 256 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 257 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
| 258 | return mesh | |
| 259 | end | |
| 260 | ||
| 261 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
| 262 | local weld = Instance.new("Weld")
| |
| 263 | weld.Parent = parent | |
| 264 | weld.Part0 = part0 | |
| 265 | weld.Part1 = part1 | |
| 266 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
| 267 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
| 268 | return weld | |
| 269 | end | |
| 270 | ||
| 271 | ||
| 272 | Debris = game:GetService("Debris")
| |
| 273 | ||
| 274 | ||
| 275 | -------------- | |
| 276 | local m = Instance.new("Model",char)
| |
| 277 | m.Name = MRANDOM(10,403583950) | |
| 278 | -------------- | |
| 279 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 280 | CreateWeld(sorb,RightArm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 281 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 282 | CreateWeld(sorb2,LeftArm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 283 | ||
| 284 | local luna = MoonEffect2:Clone() | |
| 285 | luna.Anchored = true | |
| 286 | luna.Parent = nil | |
| 287 | luna.CanCollide = false | |
| 288 | luna.Name = "LunaticEffect" | |
| 289 | ||
| 290 | local basketball = script.Helkern | |
| 291 | basketball.Parent = player.PlayerGui | |
| 292 | ||
| 293 | function clerp(a,b,t) | |
| 294 | local qa = {QuaternionFromCFrame(a)}
| |
| 295 | local qb = {QuaternionFromCFrame(b)}
| |
| 296 | local ax, ay, az = a.x, a.y, a.z | |
| 297 | local bx, by, bz = b.x, b.y, b.z | |
| 298 | local _t = 1-t | |
| 299 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 300 | end | |
| 301 | ||
| 302 | function QuaternionFromCFrame(cf) | |
| 303 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 304 | local trace = m00 + m11 + m22 | |
| 305 | if trace > 0 then | |
| 306 | local s = math.sqrt(1 + trace) | |
| 307 | local recip = 0.5/s | |
| 308 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 309 | else | |
| 310 | local i = 0 | |
| 311 | if m11 > m00 then | |
| 312 | i = 1 | |
| 313 | end | |
| 314 | if m22 > (i == 0 and m00 or m11) then | |
| 315 | i = 2 | |
| 316 | end | |
| 317 | if i == 0 then | |
| 318 | local s = math.sqrt(m00-m11-m22+1) | |
| 319 | local recip = 0.5/s | |
| 320 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 321 | elseif i == 1 then | |
| 322 | local s = math.sqrt(m11-m22-m00+1) | |
| 323 | local recip = 0.5/s | |
| 324 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 325 | elseif i == 2 then | |
| 326 | local s = math.sqrt(m22-m00-m11+1) | |
| 327 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 328 | end | |
| 329 | end | |
| 330 | end | |
| 331 | ||
| 332 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 333 | local xs, ys, zs = x + x, y + y, z + z | |
| 334 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 335 | local xx = x*xs | |
| 336 | local xy = x*ys | |
| 337 | local xz = x*zs | |
| 338 | local yy = y*ys | |
| 339 | local yz = y*zs | |
| 340 | local zz = z*zs | |
| 341 | 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)) | |
| 342 | end | |
| 343 | ||
| 344 | function QuaternionSlerp(a, b, t) | |
| 345 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 346 | local startInterp, finishInterp; | |
| 347 | if cosTheta >= 0.0001 then | |
| 348 | if (1 - cosTheta) > 0.0001 then | |
| 349 | local theta = math.acos(cosTheta) | |
| 350 | local invSinTheta = 1/math.sin(theta) | |
| 351 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 352 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 353 | else | |
| 354 | startInterp = 1-t | |
| 355 | finishInterp = t | |
| 356 | end | |
| 357 | else | |
| 358 | if (1+cosTheta) > 0.0001 then | |
| 359 | local theta = math.acos(-cosTheta) | |
| 360 | local invSinTheta = 1/math.sin(theta) | |
| 361 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 362 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 363 | else | |
| 364 | startInterp = t-1 | |
| 365 | finishInterp = t | |
| 366 | end | |
| 367 | end | |
| 368 | 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 | |
| 369 | end | |
| 370 | ||
| 371 | local function CFrameFromTopBack(at, top, back) | |
| 372 | local right = top:Cross(back) | |
| 373 | return CFrame.new(at.x, at.y, at.z, | |
| 374 | right.x, top.x, back.x, | |
| 375 | right.y, top.y, back.y, | |
| 376 | right.z, top.z, back.z) | |
| 377 | end | |
| 378 | ||
| 379 | ||
| 380 | function QuaternionFromCFrame2(cf) | |
| 381 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 382 | local trace = m00 + m11 + m22 | |
| 383 | if trace > 0 then | |
| 384 | local s = math.sqrt(1 + trace) | |
| 385 | local recip = 0.5 / s | |
| 386 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
| 387 | else | |
| 388 | local i = 0 | |
| 389 | if m11 > m00 then | |
| 390 | i = 1 | |
| 391 | end | |
| 392 | if m22 > (i == 0 and m00 or m11) then | |
| 393 | i = 2 | |
| 394 | end | |
| 395 | if i == 0 then | |
| 396 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
| 397 | local recip = 0.5 / s | |
| 398 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
| 399 | elseif i == 1 then | |
| 400 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
| 401 | local recip = 0.5 / s | |
| 402 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
| 403 | elseif i == 2 then | |
| 404 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
| 405 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
| 406 | end | |
| 407 | end | |
| 408 | end | |
| 409 | ||
| 410 | function QuaternionToCFrame2(px, py, pz, x, y, z, w) | |
| 411 | local xs, ys, zs = x + x, y + y, z + z | |
| 412 | local wx, wy, wz = w * xs, w * ys, w * zs | |
| 413 | local xx = x * xs | |
| 414 | local xy = x * ys | |
| 415 | local xz = x * zs | |
| 416 | local yy = y * ys | |
| 417 | local yz = y * zs | |
| 418 | local zz = z * zs | |
| 419 | 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)) | |
| 420 | end | |
| 421 | ||
| 422 | function QuaternionSlerp2(a, b, t) | |
| 423 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
| 424 | local startInterp, finishInterp; | |
| 425 | if cosTheta >= 0.0001 then | |
| 426 | if (1 - cosTheta) > 0.0001 then | |
| 427 | local theta = ACOS(cosTheta) | |
| 428 | local invSinTheta = 1 / SIN(theta) | |
| 429 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
| 430 | finishInterp = SIN(t * theta) * invSinTheta | |
| 431 | else | |
| 432 | startInterp = 1 - t | |
| 433 | finishInterp = t | |
| 434 | end | |
| 435 | else | |
| 436 | if (1 + cosTheta) > 0.0001 then | |
| 437 | local theta = ACOS(-cosTheta) | |
| 438 | local invSinTheta = 1 / SIN(theta) | |
| 439 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
| 440 | finishInterp = SIN(t * theta) * invSinTheta | |
| 441 | else | |
| 442 | startInterp = t - 1 | |
| 443 | finishInterp = t | |
| 444 | end | |
| 445 | end | |
| 446 | 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 | |
| 447 | end | |
| 448 | ||
| 449 | function clerp2(a, b, t) | |
| 450 | local qa = {QuaternionFromCFrame2(a)}
| |
| 451 | local qb = {QuaternionFromCFrame2(b)}
| |
| 452 | local ax, ay, az = a.x, a.y, a.z | |
| 453 | local bx, by, bz = b.x, b.y, b.z | |
| 454 | local _t = 1 - t | |
| 455 | return QuaternionToCFrame2(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp2(qa, qb, t)) | |
| 456 | end | |
| 457 | ||
| 458 | ||
| 459 | local TextUI = script.TextUi | |
| 460 | TextUI.Enabled = true | |
| 461 | TextUI.Parent = char.Head | |
| 462 | TextUI.Text.Image = "rbxassetid://2863687732" | |
| 463 | ||
| 464 | local MainGui = script.Main | |
| 465 | MainGui.Enabled = true | |
| 466 | MainGui.Parent = player.PlayerGui | |
| 467 | local SideFrame_0 = Instance.new("Frame",MainGui)
| |
| 468 | SideFrame_0.Position = UDim2.new(0,0,0.671,0) | |
| 469 | SideFrame_0.Size = UDim2.new(0,457,0,216) | |
| 470 | SideFrame_0.BorderSizePixel = 4 | |
| 471 | SideFrame_0.BorderColor3 = BrickColor.new"White".Color | |
| 472 | SideFrame_0.BackgroundColor3 = BrickColor.new"Really black".Color | |
| 473 | SideFrame_0.Rotation = 0 | |
| 474 | --[[ | |
| 475 | local SideFrame_1 = Instance.new("Frame",basgui)
| |
| 476 | SideFrame_1.Position = UDim2.new(0.75,0,0.801,0) | |
| 477 | SideFrame_1.Size = UDim2.new(0,457,0,216) | |
| 478 | SideFrame_1.BorderSizePixel = 4 | |
| 479 | SideFrame_1.BorderColor3 = BrickColor.new"White".Color | |
| 480 | SideFrame_1.BackgroundColor3 = BrickColor.new"Really black".Color | |
| 481 | SideFrame_1.Rotation = 0]]-- | |
| 482 | local SideFrame0 = Instance.new("Frame",MainGui)
| |
| 483 | SideFrame0.Position = UDim2.new(0,0,0.731,0) | |
| 484 | SideFrame0.Size = UDim2.new(0,457,0,216) | |
| 485 | SideFrame0.BorderSizePixel = 4 | |
| 486 | SideFrame0.BorderColor3 = BrickColor.new"White".Color | |
| 487 | SideFrame0.BackgroundColor3 = BrickColor.new"Really black".Color | |
| 488 | SideFrame0.Rotation = 0 | |
| 489 | local SideFrame1 = Instance.new("Frame",MainGui)
| |
| 490 | SideFrame1.Position = UDim2.new(0,0,0.781,0) | |
| 491 | SideFrame1.Size = UDim2.new(0,457,0,216) | |
| 492 | SideFrame1.BorderSizePixel = 4 | |
| 493 | SideFrame1.BorderColor3 = BrickColor.new"White".Color | |
| 494 | SideFrame1.BackgroundColor3 = BrickColor.new"Really black".Color | |
| 495 | SideFrame1.Rotation = 0 | |
| 496 | local SideFrame2 = Instance.new("Frame",MainGui)
| |
| 497 | SideFrame2.Position = UDim2.new(0,0,0.831,0) | |
| 498 | SideFrame2.Size = UDim2.new(0,457,0,216) | |
| 499 | SideFrame2.BorderSizePixel = 4 | |
| 500 | SideFrame2.BorderColor3 = BrickColor.new"White".Color | |
| 501 | SideFrame2.BackgroundColor3 = BrickColor.new"Really black".Color | |
| 502 | SideFrame2.Rotation = 0 | |
| 503 | local SideFrame3 = Instance.new("Frame",MainGui) --0.75
| |
| 504 | SideFrame3.Position = UDim2.new(0,0,0.876,0) | |
| 505 | SideFrame3.Size = UDim2.new(0,457,0,216) | |
| 506 | SideFrame3.BorderSizePixel = 4 | |
| 507 | SideFrame3.BorderColor3 = BrickColor.new"White".Color | |
| 508 | SideFrame3.BackgroundColor3 = BrickColor.new"Really black".Color | |
| 509 | SideFrame3.Rotation = -180 | |
| 510 | local SideFrame4 = Instance.new("Frame",MainGui) --0.75
| |
| 511 | SideFrame4.Position = UDim2.new(0,0,0.921,0) | |
| 512 | SideFrame4.Size = UDim2.new(0,457,0,216) | |
| 513 | SideFrame4.BorderSizePixel = 4 | |
| 514 | SideFrame4.BorderColor3 = BrickColor.new"White".Color | |
| 515 | SideFrame4.BackgroundColor3 = BrickColor.new"Really black".Color | |
| 516 | SideFrame4.Rotation = -180 | |
| 517 | local SideFrame5 = Instance.new("Frame",MainGui) --0.75
| |
| 518 | SideFrame5.Position = UDim2.new(0,0,0.971,0) | |
| 519 | SideFrame5.Size = UDim2.new(0,457,0,216) | |
| 520 | SideFrame5.BorderSizePixel = 4 | |
| 521 | SideFrame5.BorderColor3 = BrickColor.new"White".Color | |
| 522 | SideFrame5.BackgroundColor3 = BrickColor.new"Really black".Color | |
| 523 | SideFrame5.Rotation = -180 | |
| 524 | local MainFrame = MainGui.MainFrame | |
| 525 | local MainFrame2 = MainFrame.AAaa | |
| 526 | ||
| 527 | if char:findFirstChild("Animate")then
| |
| 528 | char:findFirstChild("Animate"):Remove()
| |
| 529 | end | |
| 530 | ||
| 531 | if Humanoid:findFirstChild("Animator")then
| |
| 532 | Humanoid:findFirstChild("Animator"):Remove()
| |
| 533 | end | |
| 534 | ||
| 535 | ArtificiaLeftHB = Instance.new("BindableEvent", script)
| |
| 536 | ArtificiaLeftHB.Name = "Heartbeat" | |
| 537 | script:WaitForChild("Heartbeat")
| |
| 538 | ||
| 539 | frame = 1 / 60 | |
| 540 | tf = 0 | |
| 541 | allowframeloss = false | |
| 542 | tossremainder = false | |
| 543 | ||
| 544 | ||
| 545 | lastframe = tick() | |
| 546 | script.Heartbeat:Fire() | |
| 547 | ||
| 548 | ||
| 549 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 550 | tf = tf + s | |
| 551 | if tf >= frame then | |
| 552 | if allowframeloss then | |
| 553 | script.Heartbeat:Fire() | |
| 554 | lastframe = tick() | |
| 555 | else | |
| 556 | for i = 1, math.floor(tf / frame) do | |
| 557 | script.Heartbeat:Fire() | |
| 558 | end | |
| 559 | lastframe = tick() | |
| 560 | end | |
| 561 | if tossremainder then | |
| 562 | tf = 0 | |
| 563 | else | |
| 564 | tf = tf - frame * math.floor(tf / frame) | |
| 565 | end | |
| 566 | end | |
| 567 | end) | |
| 568 | function swait(num) | |
| 569 | if num == 0 or num == nil then | |
| 570 | game:service("RunService").Stepped:wait(0)
| |
| 571 | else | |
| 572 | for i = 0, num do | |
| 573 | game:service("RunService").Stepped:wait(0)
| |
| 574 | end | |
| 575 | end | |
| 576 | end | |
| 577 | ||
| 578 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
| 579 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 580 | end | |
| 581 | local Mode = "T" | |
| 582 | LW=Torso["Left Shoulder"] | |
| 583 | LH=Torso["Left Hip"] | |
| 584 | RW=Torso["Right Shoulder"] | |
| 585 | RH=Torso["Right Hip"] | |
| 586 | RW.Name="Right Shoulder" | |
| 587 | RW.Part0=char.Torso | |
| 588 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 589 | RW.C1=cf(0, 0.5, 0) | |
| 590 | RW.Part1=char["Right Arm"] | |
| 591 | RW.Parent=char.Torso | |
| 592 | -- | |
| 593 | LW.Name="Left Shoulder" | |
| 594 | LW.Part0=char.Torso | |
| 595 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 596 | LW.C1=cf(0, 0.5, 0) | |
| 597 | LW.Part1=char["Left Arm"] | |
| 598 | LW.Parent=char.Torso | |
| 599 | function NoOutline(Part) | |
| 600 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 601 | end | |
| 602 | -- | |
| 603 | local r = 255 | |
| 604 | local g = 0 | |
| 605 | local b = 0 | |
| 606 | coroutine.resume(coroutine.create(function() | |
| 607 | while wait() do | |
| 608 | for i = 0, 254/5 do | |
| 609 | swait() | |
| 610 | g = g + 5 | |
| 611 | end | |
| 612 | for i = 0, 254/5 do | |
| 613 | swait() | |
| 614 | r = r - 5 | |
| 615 | end | |
| 616 | for i = 0, 254/5 do | |
| 617 | swait() | |
| 618 | b = b + 5 | |
| 619 | end | |
| 620 | for i = 0, 254/5 do | |
| 621 | swait() | |
| 622 | g = g - 5 | |
| 623 | end | |
| 624 | for i = 0, 254/5 do | |
| 625 | swait() | |
| 626 | r = r + 5 | |
| 627 | end | |
| 628 | for i = 0, 254/5 do | |
| 629 | swait() | |
| 630 | b = b - 5 | |
| 631 | end | |
| 632 | end | |
| 633 | end)) | |
| 634 | TurboArrow = script.SpeedArrow1 | |
| 635 | ToothpasteArrow = script.SpeedArrow2 | |
| 636 | ToothpasteArrow.Parent = Player.PlayerGui | |
| 637 | TurboArrow.Parent = Player.PlayerGui | |
| 638 | ||
| 639 | ||
| 640 | ||
| 641 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 642 | local fp=it("Part")
| |
| 643 | fp.formFactor=formfactor | |
| 644 | fp.Parent=parent | |
| 645 | fp.Reflectance=reflectance | |
| 646 | fp.Transparency=transparency | |
| 647 | fp.CanCollide=false | |
| 648 | fp.Locked=true | |
| 649 | fp.BrickColor=brickcolor | |
| 650 | fp.Name=name | |
| 651 | fp.Size=size | |
| 652 | fp.Position=Torso.Position | |
| 653 | NoOutline(fp) | |
| 654 | fp.Material="SmoothPlastic" | |
| 655 | fp:BreakJoints() | |
| 656 | return fp | |
| 657 | end | |
| 658 | ||
| 659 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 660 | local mesh=it(Mesh) | |
| 661 | mesh.Parent=part | |
| 662 | if Mesh=="SpecialMesh" then | |
| 663 | mesh.MeshType=meshtype | |
| 664 | if meshid~="nil" then | |
| 665 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
| 666 | end | |
| 667 | end | |
| 668 | mesh.Offset=offset | |
| 669 | mesh.Scale=scale | |
| 670 | return mesh | |
| 671 | end | |
| 672 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 673 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 674 | prt.Anchored=true | |
| 675 | prt.Material = "Neon" | |
| 676 | prt.CFrame=cframe | |
| 677 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 678 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 679 | game:GetService("Debris"):AddItem(prt,5)
| |
| 680 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 681 | for i=0,1,delay do | |
| 682 | swait() | |
| 683 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 684 | Part.Transparency=i | |
| 685 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 686 | end | |
| 687 | Part.Parent=nil | |
| 688 | end),prt,msh) | |
| 689 | end | |
| 690 | function wind(type,pos,scale,value,speed,ahy) | |
| 691 | local type = type | |
| 692 | local rng = Instance.new("Part", char)
| |
| 693 | rng.Anchored = true | |
| 694 | rng.BrickColor = BrickColor.new("Institutional white")
| |
| 695 | rng.CanCollide = false | |
| 696 | rng.FormFactor = 3 | |
| 697 | rng.Name = "Ring" | |
| 698 | rng.Size = Vector3.new(1, 1, 1) | |
| 699 | rng.Transparency = 0 | |
| 700 | rng.TopSurface = 0 | |
| 701 | rng.BottomSurface = 0 | |
| 702 | rng.CFrame = pos | |
| 703 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 704 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 705 | rngm.Scale = scale | |
| 706 | local scaler2 = 1 | |
| 707 | if type == "Add" then | |
| 708 | scaler2 = 1*value | |
| 709 | elseif type == "Divide" then | |
| 710 | scaler2 = 1/value | |
| 711 | end | |
| 712 | coroutine.resume(coroutine.create(function() | |
| 713 | if ahy == false then | |
| 714 | for i = 0,8,0.1 do | |
| 715 | swait() | |
| 716 | if type == "Add" then | |
| 717 | scaler2 = scaler2 - 0.01*value | |
| 718 | elseif type == "Divide" then | |
| 719 | scaler2 = scaler2 - 0.01/value | |
| 720 | end | |
| 721 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
| 722 | rng.Transparency = rng.Transparency + 0.05 | |
| 723 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 724 | end | |
| 725 | else | |
| 726 | for i = 0,10,0.1 do | |
| 727 | swait() | |
| 728 | if type == "Add" then | |
| 729 | scaler2 = scaler2 - 0.01*value | |
| 730 | elseif type == "Divide" then | |
| 731 | scaler2 = scaler2 - 0.01/value | |
| 732 | end | |
| 733 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
| 734 | rng.Transparency = rng.Transparency + 0.01 | |
| 735 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 736 | end | |
| 737 | end | |
| 738 | rng:Destroy() | |
| 739 | end)) | |
| 740 | end | |
| 741 | ||
| 742 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
| 743 | local type = type | |
| 744 | local rng = Instance.new("Part", char)
| |
| 745 | rng.Anchored = true | |
| 746 | rng.BrickColor = color | |
| 747 | rng.CanCollide = false | |
| 748 | rng.FormFactor = 3 | |
| 749 | rng.Name = "Ring" | |
| 750 | rng.Material = "Neon" | |
| 751 | rng.Size = Vector3.new(1, 1, 1) | |
| 752 | rng.Transparency = 0 | |
| 753 | rng.TopSurface = 0 | |
| 754 | rng.BottomSurface = 0 | |
| 755 | rng.CFrame = pos | |
| 756 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 757 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 758 | rngm.MeshType = "Sphere" | |
| 759 | rngm.Scale = vt(x1,y1,z1) | |
| 760 | local glitchval = math.random(1,255) | |
| 761 | if Mode == "R" then | |
| 762 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 763 | end | |
| 764 | if Mode == "G" then | |
| 765 | rng.Color = Color3.new(glitchval,glitchval,glitchval) | |
| 766 | end | |
| 767 | local scaler2 = 1 | |
| 768 | local speeder = FastSpeed | |
| 769 | if type == "Add" then | |
| 770 | scaler2 = 1*value | |
| 771 | elseif type == "Divide" then | |
| 772 | scaler2 = 1/value | |
| 773 | end | |
| 774 | coroutine.resume(coroutine.create(function() | |
| 775 | for i = 0,10/bonuspeed,0.1 do | |
| 776 | swait() | |
| 777 | if Mode == "R" then | |
| 778 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 779 | end | |
| 780 | if Mode == "G" then | |
| 781 | rng.Color = Color3.new(glitchval,glitchval,glitchval) | |
| 782 | end | |
| 783 | if type == "Add" then | |
| 784 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 785 | elseif type == "Divide" then | |
| 786 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 787 | end | |
| 788 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
| 789 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 790 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 791 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
| 792 | end | |
| 793 | rng:Destroy() | |
| 794 | end)) | |
| 795 | end | |
| 796 | ||
| 797 | -- | |
| 798 | RW.Name="Right Shoulder" | |
| 799 | RW.Part0=char.Torso | |
| 800 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 801 | RW.C1=cf(0, 0.5, 0) | |
| 802 | RW.Part1=char["Right Arm"] | |
| 803 | RW.Parent=char.Torso | |
| 804 | -- | |
| 805 | LW.Name="Left Shoulder" | |
| 806 | LW.Part0=char.Torso | |
| 807 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 808 | LW.C1=cf(0, 0.5, 0) | |
| 809 | LW.Part1=char["Left Arm"] | |
| 810 | LW.Parent=char.Torso | |
| 811 | ||
| 812 | turboli = 0 | |
| 813 | turboli2 = 0 | |
| 814 | function sphere(bonuspeed, type, pos, scale, value, color) | |
| 815 | local type = type | |
| 816 | local rng = Instance.new("Part", char)
| |
| 817 | rng.Anchored = true | |
| 818 | rng.BrickColor = color | |
| 819 | rng.CanCollide = false | |
| 820 | rng.FormFactor = 3 | |
| 821 | rng.Name = "Ring" | |
| 822 | rng.Material = "Neon" | |
| 823 | rng.Size = Vector3.new(1, 1, 1) | |
| 824 | rng.Transparency = 0 | |
| 825 | rng.TopSurface = 0 | |
| 826 | rng.BottomSurface = 0 | |
| 827 | rng.CFrame = pos | |
| 828 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 829 | rngm.MeshType = "Sphere" | |
| 830 | rngm.Scale = scale | |
| 831 | if rainbowmode == true then | |
| 832 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 833 | end | |
| 834 | local scaler2 = 1 | |
| 835 | if type == "Add" then | |
| 836 | scaler2 = 1 * value | |
| 837 | elseif type == "Divide" then | |
| 838 | scaler2 = 1 / value | |
| 839 | end | |
| 840 | coroutine.resume(coroutine.create(function() | |
| 841 | for i = 0, 10 / bonuspeed, 0.1 do | |
| 842 | swait() | |
| 843 | if rainbowmode == true then | |
| 844 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 845 | end | |
| 846 | if type == "Add" then | |
| 847 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
| 848 | elseif type == "Divide" then | |
| 849 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
| 850 | end | |
| 851 | if chaosmode == true then | |
| 852 | rng.BrickColor = BrickColor.random() | |
| 853 | end | |
| 854 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
| 855 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
| 856 | end | |
| 857 | rng:Destroy() | |
| 858 | end)) | |
| 859 | end | |
| 860 | function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color) | |
| 861 | local type = type | |
| 862 | local rng = Instance.new("Part", char)
| |
| 863 | rng.Anchored = true | |
| 864 | if ModeOfGlitch ~= 9 then | |
| 865 | rng.BrickColor = color | |
| 866 | elseif ModeOfGlitch == 9 then | |
| 867 | rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000) | |
| 868 | end | |
| 869 | rng.CanCollide = false | |
| 870 | rng.FormFactor = 3 | |
| 871 | rng.Name = "Ring" | |
| 872 | rng.Material = "Neon" | |
| 873 | rng.Size = Vector3.new(1, 1, 1) | |
| 874 | rng.Transparency = 0 | |
| 875 | rng.TopSurface = 0 | |
| 876 | rng.BottomSurface = 0 | |
| 877 | rng.CFrame = pos | |
| 878 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 879 | rngm.MeshType = "Sphere" | |
| 880 | rngm.Scale = scale | |
| 881 | if rainbowmode == true then | |
| 882 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 883 | end | |
| 884 | local scaler2 = 1 | |
| 885 | local scaler2b = 1 | |
| 886 | local scaler2c = 1 | |
| 887 | if type == "Add" then | |
| 888 | scaler2 = 1*value | |
| 889 | scaler2b = 1*value2 | |
| 890 | scaler2c = 1*value3 | |
| 891 | elseif type == "Divide" then | |
| 892 | scaler2 = 1/value | |
| 893 | scaler2b = 1/value2 | |
| 894 | scaler2c = 1/value3 | |
| 895 | end | |
| 896 | if ModeOfGlitch == 9 then | |
| 897 | coroutine.resume(coroutine.create(function() | |
| 898 | while true do | |
| 899 | swait() | |
| 900 | if rng.Parent ~= nil then | |
| 901 | rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000) | |
| 902 | else | |
| 903 | break | |
| 904 | end | |
| 905 | end | |
| 906 | end)) | |
| 907 | end | |
| 908 | coroutine.resume(coroutine.create(function() | |
| 909 | for i = 0,10/bonuspeed,0.1 do | |
| 910 | swait() | |
| 911 | if type == "Add" then | |
| 912 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 913 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
| 914 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
| 915 | elseif type == "Divide" then | |
| 916 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 917 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
| 918 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
| 919 | end | |
| 920 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 921 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
| 922 | end | |
| 923 | rng:Destroy() | |
| 924 | end)) | |
| 925 | end | |
| 926 | ||
| 927 | function Wedge2(bonuspeed,type,pos,scale,value,value2,value3,color) | |
| 928 | local type = type | |
| 929 | local rng = Instance.new("Part", char)
| |
| 930 | rng.Anchored = true | |
| 931 | if ModeOfGlitch ~= 9 then | |
| 932 | rng.BrickColor = color | |
| 933 | elseif ModeOfGlitch == 9 then | |
| 934 | rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000) | |
| 935 | end | |
| 936 | rng.CanCollide = false | |
| 937 | rng.FormFactor = 3 | |
| 938 | rng.Name = "Ring" | |
| 939 | rng.Material = "Neon" | |
| 940 | rng.Size = Vector3.new(1, 1, 1) | |
| 941 | rng.Transparency = 0 | |
| 942 | rng.TopSurface = 0 | |
| 943 | rng.BottomSurface = 0 | |
| 944 | rng.CFrame = pos | |
| 945 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 946 | rngm.MeshType = "Wedge" | |
| 947 | rngm.Scale = scale | |
| 948 | if rainbowmode == true then | |
| 949 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 950 | end | |
| 951 | local scaler2 = 1 | |
| 952 | local scaler2b = 1 | |
| 953 | local scaler2c = 1 | |
| 954 | if type == "Add" then | |
| 955 | scaler2 = 1*value | |
| 956 | scaler2b = 1*value2 | |
| 957 | scaler2c = 1*value3 | |
| 958 | elseif type == "Divide" then | |
| 959 | scaler2 = 1/value | |
| 960 | scaler2b = 1/value2 | |
| 961 | scaler2c = 1/value3 | |
| 962 | end | |
| 963 | if ModeOfGlitch == 9 then | |
| 964 | coroutine.resume(coroutine.create(function() | |
| 965 | while true do | |
| 966 | swait() | |
| 967 | if rng.Parent ~= nil then | |
| 968 | rng.Color = Color3.new(GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000,GetClientProperty(kan,'PlaybackLoudness')/1000) | |
| 969 | else | |
| 970 | break | |
| 971 | end | |
| 972 | end | |
| 973 | end)) | |
| 974 | end | |
| 975 | coroutine.resume(coroutine.create(function() | |
| 976 | for i = 0,10/bonuspeed,0.1 do | |
| 977 | swait() | |
| 978 | if type == "Add" then | |
| 979 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 980 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
| 981 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
| 982 | elseif type == "Divide" then | |
| 983 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 984 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
| 985 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
| 986 | end | |
| 987 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 988 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
| 989 | end | |
| 990 | rng:Destroy() | |
| 991 | end)) | |
| 992 | end | |
| 993 | ||
| 994 | function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color) | |
| 995 | local type = type | |
| 996 | local rotenable = rotatingop | |
| 997 | local rng = Instance.new("Part", char)
| |
| 998 | rng.Anchored = true | |
| 999 | rng.BrickColor = color | |
| 1000 | rng.CanCollide = false | |
| 1001 | rng.FormFactor = 3 | |
| 1002 | rng.Name = "Ring" | |
| 1003 | rng.Material = "Neon" | |
| 1004 | rng.Size = Vector3.new(1, 1, 1) | |
| 1005 | rng.Transparency = 0 | |
| 1006 | if typeoftrans == "In" then | |
| 1007 | rng.Transparency = 1 | |
| 1008 | end | |
| 1009 | rng.TopSurface = 0 | |
| 1010 | rng.BottomSurface = 0 | |
| 1011 | rng.CFrame = pos | |
| 1012 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1013 | rngm.MeshType = "FileMesh" | |
| 1014 | if typeofshape == "Normal" then | |
| 1015 | rngm.MeshId = "rbxassetid://662586858" | |
| 1016 | elseif typeofshape == "Round" then | |
| 1017 | rngm.MeshId = "rbxassetid://662585058" | |
| 1018 | end | |
| 1019 | rngm.Scale = scale | |
| 1020 | local scaler2 = 1/10 | |
| 1021 | if type == "Add" then | |
| 1022 | scaler2 = 1*value/10 | |
| 1023 | elseif type == "Divide" then | |
| 1024 | scaler2 = 1/value/10 | |
| 1025 | end | |
| 1026 | local randomrot = math.random(1,2) | |
| 1027 | coroutine.resume(coroutine.create(function() | |
| 1028 | for i = 0,10/bonuspeed,0.1 do | |
| 1029 | swait() | |
| 1030 | if type == "Add" then | |
| 1031 | scaler2 = scaler2 - 0.01*value/bonuspeed/10 | |
| 1032 | elseif type == "Divide" then | |
| 1033 | scaler2 = scaler2 - 0.01/value*bonuspeed/10 | |
| 1034 | end | |
| 1035 | if rotenable == true then | |
| 1036 | if randomrot == 1 then | |
| 1037 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0) | |
| 1038 | elseif randomrot == 2 then | |
| 1039 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0) | |
| 1040 | end | |
| 1041 | end | |
| 1042 | if typeoftrans == "Out" then | |
| 1043 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 1044 | elseif typeoftrans == "In" then | |
| 1045 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
| 1046 | end | |
| 1047 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10) | |
| 1048 | end | |
| 1049 | rng:Destroy() | |
| 1050 | end)) | |
| 1051 | end | |
| 1052 | ||
| 1053 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
| 1054 | local type = type | |
| 1055 | local rng = Instance.new("Part", char)
| |
| 1056 | rng.Anchored = true | |
| 1057 | rng.BrickColor = color | |
| 1058 | rng.CanCollide = false | |
| 1059 | rng.FormFactor = 3 | |
| 1060 | rng.Name = "Ring" | |
| 1061 | rng.Material = "Neon" | |
| 1062 | rng.Size = Vector3.new(1, 1, 1) | |
| 1063 | rng.Transparency = 0 | |
| 1064 | rng.TopSurface = 0 | |
| 1065 | rng.BottomSurface = 0 | |
| 1066 | rng.CFrame = pos | |
| 1067 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 1068 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1069 | rngm.MeshType = "Brick" | |
| 1070 | rngm.Scale = vt(x1,y1,z1) | |
| 1071 | if rainbowmode == true then | |
| 1072 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 1073 | end | |
| 1074 | local scaler2 = 1 | |
| 1075 | local speeder = FastSpeed/10 | |
| 1076 | if type == "Add" then | |
| 1077 | scaler2 = 1*value | |
| 1078 | elseif type == "Divide" then | |
| 1079 | scaler2 = 1/value | |
| 1080 | end | |
| 1081 | coroutine.resume(coroutine.create(function() | |
| 1082 | for i = 0,10/bonuspeed,0.1 do | |
| 1083 | swait() | |
| 1084 | if rainbowmode == true then | |
| 1085 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 1086 | end | |
| 1087 | if type == "Add" then | |
| 1088 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 1089 | elseif type == "Divide" then | |
| 1090 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 1091 | end | |
| 1092 | if chaosmode == true then | |
| 1093 | rng.BrickColor = BrickColor.random() | |
| 1094 | end | |
| 1095 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
| 1096 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 1097 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 1098 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
| 1099 | end | |
| 1100 | rng:Destroy() | |
| 1101 | end)) | |
| 1102 | end | |
| 1103 | ||
| 1104 | function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
| 1105 | local type = type | |
| 1106 | local rng = Instance.new("Part", char)
| |
| 1107 | rng.Anchored = true | |
| 1108 | rng.BrickColor = color | |
| 1109 | rng.CanCollide = false | |
| 1110 | rng.FormFactor = 3 | |
| 1111 | rng.Name = "Ring" | |
| 1112 | rng.Material = "Neon" | |
| 1113 | rng.Size = Vector3.new(1, 1, 1) | |
| 1114 | rng.Transparency = 0 | |
| 1115 | rng.TopSurface = 0 | |
| 1116 | rng.BottomSurface = 0 | |
| 1117 | rng.CFrame = pos | |
| 1118 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 1119 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1120 | rngm.MeshType = "Brick" | |
| 1121 | rngm.Scale = vt(x1,y1,z1) | |
| 1122 | if rainbowmode == true then | |
| 1123 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 1124 | end | |
| 1125 | local scaler2 = 1 | |
| 1126 | local speeder = FastSpeed/10 | |
| 1127 | if type == "Add" then | |
| 1128 | scaler2 = 1*value | |
| 1129 | elseif type == "Divide" then | |
| 1130 | scaler2 = 1/value | |
| 1131 | end | |
| 1132 | coroutine.resume(coroutine.create(function() | |
| 1133 | for i = 0,10/bonuspeed,0.1 do | |
| 1134 | swait() | |
| 1135 | if rainbowmode == true then | |
| 1136 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 1137 | end | |
| 1138 | if type == "Add" then | |
| 1139 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 1140 | elseif type == "Divide" then | |
| 1141 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 1142 | end | |
| 1143 | if chaosmode == true then | |
| 1144 | rng.BrickColor = BrickColor.random() | |
| 1145 | end | |
| 1146 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
| 1147 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 1148 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 1149 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
| 1150 | end | |
| 1151 | rng:Destroy() | |
| 1152 | end)) | |
| 1153 | end | |
| 1154 | ||
| 1155 | function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
| 1156 | local type = type | |
| 1157 | local rng = Instance.new("Part", char)
| |
| 1158 | rng.Anchored = true | |
| 1159 | rng.BrickColor = color | |
| 1160 | rng.CanCollide = false | |
| 1161 | rng.FormFactor = 3 | |
| 1162 | rng.Name = "Ring" | |
| 1163 | rng.Material = "Neon" | |
| 1164 | rng.Size = Vector3.new(1, 1, 1) | |
| 1165 | rng.Transparency = 0 | |
| 1166 | rng.TopSurface = 0 | |
| 1167 | rng.BottomSurface = 0 | |
| 1168 | rng.CFrame = pos | |
| 1169 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 1170 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1171 | rngm.MeshType = "Brick" | |
| 1172 | rngm.Scale = vt(x1,y1,z1) | |
| 1173 | if Mode == "G" then | |
| 1174 | rng.Color = Color3.new(glitchval,glitchval,glitchval) | |
| 1175 | end | |
| 1176 | --[[ | |
| 1177 | coroutine.resume(coroutine.create(function() | |
| 1178 | while true do | |
| 1179 | swait() | |
| 1180 | glitchval = math.random(1,255) | |
| 1181 | end | |
| 1182 | end))]]-- | |
| 1183 | local scaler2 = 0 | |
| 1184 | local speeder = FastSpeed/10 | |
| 1185 | if type == "Add" then | |
| 1186 | scaler2 = 1*value | |
| 1187 | elseif type == "Divide" then | |
| 1188 | scaler2 = 1/value | |
| 1189 | end | |
| 1190 | coroutine.resume(coroutine.create(function() | |
| 1191 | for i = 0,10/bonuspeed,0.1 do | |
| 1192 | swait() | |
| 1193 | if Mode == "G" then | |
| 1194 | rng.Color = Color3.new(glitchval,glitchval,glitchval) | |
| 1195 | end | |
| 1196 | if type == "Add" then | |
| 1197 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 1198 | elseif type == "Divide" then | |
| 1199 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 1200 | end | |
| 1201 | speeder = speeder + 0.01*FastSpeed*bonuspeed/10 | |
| 1202 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 1203 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 1204 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
| 1205 | end | |
| 1206 | rng:Destroy() | |
| 1207 | end)) | |
| 1208 | end | |
| 1209 | ||
| 1210 | function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3) | |
| 1211 | local type = type | |
| 1212 | local rng = Instance.new("Part", char)
| |
| 1213 | rng.Anchored = true | |
| 1214 | rng.BrickColor = color | |
| 1215 | rng.Color = color3 | |
| 1216 | rng.CanCollide = false | |
| 1217 | rng.FormFactor = 3 | |
| 1218 | rng.Name = "Ring" | |
| 1219 | rng.Material = "Neon" | |
| 1220 | rng.Size = Vector3.new(1, 1, 1) | |
| 1221 | rng.Transparency = 0 | |
| 1222 | rng.TopSurface = 0 | |
| 1223 | rng.BottomSurface = 0 | |
| 1224 | rng.CFrame = pos | |
| 1225 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1226 | rngm.MeshType = "Brick" | |
| 1227 | rngm.Scale = scale | |
| 1228 | local scaler2 = 1 | |
| 1229 | local scaler2b = 1 | |
| 1230 | local scaler2c = 1 | |
| 1231 | if type == "Add" then | |
| 1232 | scaler2 = 1*value | |
| 1233 | scaler2b = 1*value2 | |
| 1234 | scaler2c = 1*value3 | |
| 1235 | elseif type == "Divide" then | |
| 1236 | scaler2 = 1/value | |
| 1237 | scaler2b = 1/value2 | |
| 1238 | scaler2c = 1/value3 | |
| 1239 | end | |
| 1240 | coroutine.resume(coroutine.create(function() | |
| 1241 | for i = 0,10/bonuspeed,0.1 do | |
| 1242 | swait() | |
| 1243 | if type == "Add" then | |
| 1244 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 1245 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
| 1246 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
| 1247 | elseif type == "Divide" then | |
| 1248 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 1249 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
| 1250 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
| 1251 | end | |
| 1252 | rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 1253 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 1254 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
| 1255 | end | |
| 1256 | rng:Destroy() | |
| 1257 | end)) | |
| 1258 | end | |
| 1259 | local Create = LoadLibrary("RbxUtility").Create
| |
| 1260 | CFuncs = {
| |
| 1261 | Part = {
| |
| 1262 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1263 | local Part = Create("Part")({
| |
| 1264 | Parent = Parent, | |
| 1265 | Reflectance = Reflectance, | |
| 1266 | Transparency = Transparency, | |
| 1267 | CanCollide = false, | |
| 1268 | Locked = true, | |
| 1269 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1270 | Name = Name, | |
| 1271 | Size = Size, | |
| 1272 | Material = Material | |
| 1273 | }) | |
| 1274 | RemoveOutlines(Part) | |
| 1275 | return Part | |
| 1276 | end | |
| 1277 | }, | |
| 1278 | Mesh = {
| |
| 1279 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1280 | local Msh = Create(Mesh)({
| |
| 1281 | Parent = Part, | |
| 1282 | Offset = OffSet, | |
| 1283 | Scale = Scale | |
| 1284 | }) | |
| 1285 | if Mesh == "SpecialMesh" then | |
| 1286 | Msh.MeshType = MeshType | |
| 1287 | Msh.MeshId = MeshId | |
| 1288 | end | |
| 1289 | return Msh | |
| 1290 | end | |
| 1291 | }, | |
| 1292 | Mesh = {
| |
| 1293 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1294 | local Msh = Create(Mesh)({
| |
| 1295 | Parent = Part, | |
| 1296 | Offset = OffSet, | |
| 1297 | Scale = Scale | |
| 1298 | }) | |
| 1299 | if Mesh == "SpecialMesh" then | |
| 1300 | Msh.MeshType = MeshType | |
| 1301 | Msh.MeshId = MeshId | |
| 1302 | end | |
| 1303 | return Msh | |
| 1304 | end | |
| 1305 | }, | |
| 1306 | Weld = {
| |
| 1307 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 1308 | local Weld = Create("Weld")({
| |
| 1309 | Parent = Parent, | |
| 1310 | Part0 = Part0, | |
| 1311 | Part1 = Part1, | |
| 1312 | C0 = C0, | |
| 1313 | C1 = C1 | |
| 1314 | }) | |
| 1315 | return Weld | |
| 1316 | end | |
| 1317 | }, | |
| 1318 | Sound = {
| |
| 1319 | Create = function(id, par, vol, pit) | |
| 1320 | coroutine.resume(coroutine.create(function() | |
| 1321 | local S = Create("Sound")({
| |
| 1322 | Volume = vol, | |
| 1323 | Pitch = pit or 1, | |
| 1324 | SoundId = id, | |
| 1325 | Parent = par or workspace | |
| 1326 | }) | |
| 1327 | wait() | |
| 1328 | S:play() | |
| 1329 | game:GetService("Debris"):AddItem(S, 10)
| |
| 1330 | end)) | |
| 1331 | end | |
| 1332 | }, | |
| 1333 | ||
| 1334 | ["TimeSound"] = {
| |
| 1335 | Create = function(id, par, vol, pit, timepos) | |
| 1336 | coroutine.resume(coroutine.create(function() | |
| 1337 | local S = Create("Sound"){
| |
| 1338 | Volume = vol, | |
| 1339 | Name = "EffectSoundo", | |
| 1340 | Pitch = pit or 1, | |
| 1341 | SoundId = id, | |
| 1342 | TimePosition = timepos, | |
| 1343 | Parent = par or workspace, | |
| 1344 | } | |
| 1345 | wait() | |
| 1346 | S:play() | |
| 1347 | game:GetService("Debris"):AddItem(S, 10)
| |
| 1348 | end)) | |
| 1349 | end; | |
| 1350 | }; | |
| 1351 | ["EchoSound"] = {
| |
| 1352 | Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl) | |
| 1353 | coroutine.resume(coroutine.create(function() | |
| 1354 | local Sas = Create("Sound"){
| |
| 1355 | Volume = vol, | |
| 1356 | Name = "EffectSoundo", | |
| 1357 | Pitch = pit or 1, | |
| 1358 | SoundId = id, | |
| 1359 | TimePosition = timepos, | |
| 1360 | Parent = par or workspace, | |
| 1361 | } | |
| 1362 | local E = Create("EchoSoundEffect"){
| |
| 1363 | Delay = echodelay, | |
| 1364 | Name = "Echo", | |
| 1365 | Feedback = fedb, | |
| 1366 | DryLevel = dryl, | |
| 1367 | Parent = Sas, | |
| 1368 | } | |
| 1369 | wait() | |
| 1370 | Sas:play() | |
| 1371 | game:GetService("Debris"):AddItem(Sas, delays)
| |
| 1372 | end)) | |
| 1373 | end; | |
| 1374 | }; | |
| 1375 | LongSound = {
| |
| 1376 | Create = function(id, par, vol, pit) | |
| 1377 | coroutine.resume(coroutine.create(function() | |
| 1378 | local S = Create("Sound")({
| |
| 1379 | Volume = vol, | |
| 1380 | Pitch = pit or 1, | |
| 1381 | SoundId = id, | |
| 1382 | Parent = par or workspace | |
| 1383 | }) | |
| 1384 | wait() | |
| 1385 | S:play() | |
| 1386 | game:GetService("Debris"):AddItem(S, 30)
| |
| 1387 | end)) | |
| 1388 | end | |
| 1389 | }, | |
| 1390 | ParticleEmitter = {
| |
| 1391 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 1392 | local fp = Create("ParticleEmitter")({
| |
| 1393 | Parent = Parent, | |
| 1394 | Color = ColorSequence.new(Color1, Color2), | |
| 1395 | LightEmission = LightEmission, | |
| 1396 | Size = Size, | |
| 1397 | Texture = Texture, | |
| 1398 | Transparency = Transparency, | |
| 1399 | ZOffset = ZOffset, | |
| 1400 | Acceleration = Accel, | |
| 1401 | Drag = Drag, | |
| 1402 | LockedToPart = LockedToPart, | |
| 1403 | VelocityInheritance = VelocityInheritance, | |
| 1404 | EmissionDirection = EmissionDirection, | |
| 1405 | Enabled = Enabled, | |
| 1406 | Lifetime = LifeTime, | |
| 1407 | Rate = Rate, | |
| 1408 | Rotation = Rotation, | |
| 1409 | RotSpeed = RotSpeed, | |
| 1410 | Speed = Speed, | |
| 1411 | VelocitySpread = VelocitySpread | |
| 1412 | }) | |
| 1413 | return fp | |
| 1414 | end | |
| 1415 | }, | |
| 1416 | CreateTemplate = {}
| |
| 1417 | } | |
| 1418 | function waveEff(bonuspeed,type,typeoftrans,pos,scale,value,value2,color) | |
| 1419 | local type = type | |
| 1420 | local rng = Instance.new("Part", char)
| |
| 1421 | rng.Anchored = true | |
| 1422 | rng.BrickColor = color | |
| 1423 | rng.CanCollide = false | |
| 1424 | rng.FormFactor = 3 | |
| 1425 | rng.Name = "Ring" | |
| 1426 | rng.Material = "Neon" | |
| 1427 | rng.Size = Vector3.new(1, 1, 1) | |
| 1428 | rng.Transparency = 0 | |
| 1429 | if typeoftrans == "In" then | |
| 1430 | rng.Transparency = 1 | |
| 1431 | end | |
| 1432 | rng.TopSurface = 0 | |
| 1433 | rng.BottomSurface = 0 | |
| 1434 | rng.CFrame = pos | |
| 1435 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 1436 | rngm.MeshType = "FileMesh" | |
| 1437 | rngm.MeshId = "rbxassetid://20329976" | |
| 1438 | rngm.Scale = scale | |
| 1439 | local scaler2 = 1 | |
| 1440 | local scaler2b = 1 | |
| 1441 | if type == "Add" then | |
| 1442 | scaler2 = 1*value | |
| 1443 | scaler2b = 1*value2 | |
| 1444 | elseif type == "Divide" then | |
| 1445 | scaler2 = 1/value | |
| 1446 | scaler2b = 1/value2 | |
| 1447 | end | |
| 1448 | local randomrot = math.random(1,2) | |
| 1449 | coroutine.resume(coroutine.create(function() | |
| 1450 | for i = 0,10/bonuspeed,0.1 do | |
| 1451 | swait() | |
| 1452 | if type == "Add" then | |
| 1453 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 1454 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
| 1455 | elseif type == "Divide" then | |
| 1456 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 1457 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
| 1458 | end | |
| 1459 | if randomrot == 1 then | |
| 1460 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(5*bonuspeed/2),0) | |
| 1461 | elseif randomrot == 2 then | |
| 1462 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-5*bonuspeed/2),0) | |
| 1463 | end | |
| 1464 | if typeoftrans == "Out" then | |
| 1465 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 1466 | elseif typeoftrans == "In" then | |
| 1467 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
| 1468 | end | |
| 1469 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2*bonuspeed) | |
| 1470 | end | |
| 1471 | rng:Destroy() | |
| 1472 | end)) | |
| 1473 | end | |
| 1474 | ||
| 1475 | function dmg(dude) | |
| 1476 | local keptcolor = MAINCOLOR | |
| 1477 | if dude.Name ~= Character then | |
| 1478 | local bgf = Instance.new("BodyGyro",dude.Head)
| |
| 1479 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
| 1480 | --[[local val = Instance.new("BoolValue",dude)
| |
| 1481 | val.Name = "IsHit"]]-- | |
| 1482 | local ds = coroutine.wrap(function() | |
| 1483 | dude:WaitForChild("Head"):BreakJoints()
| |
| 1484 | for i, v in pairs(dude:GetChildren()) do | |
| 1485 | if v:IsA("BasePart") or v:IsA("MeshPart") then
| |
| 1486 | v.Name = "DEMINISHED" | |
| 1487 | CFuncs["Sound"].Create("rbxassetid://763718160", v, 0.75, 1.1)
| |
| 1488 | CFuncs["Sound"].Create("rbxassetid://782353443", v, 1, 1)
| |
| 1489 | --[[for i = 0, 1 do | |
| 1490 | sphere2(1,"Add",v.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,10,-0.01,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
| |
| 1491 | end]]-- | |
| 1492 | end | |
| 1493 | end | |
| 1494 | wait(0.5) | |
| 1495 | targetted = nil | |
| 1496 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.25, 0.285)
| |
| 1497 | coroutine.resume(coroutine.create(function() | |
| 1498 | for i, v in pairs(dude:GetChildren()) do | |
| 1499 | if v:IsA("Accessory") then
| |
| 1500 | v:Destroy() | |
| 1501 | end | |
| 1502 | if v:IsA("Humanoid") then
| |
| 1503 | v:Destroy() | |
| 1504 | end | |
| 1505 | if v:IsA("CharacterMesh") then
| |
| 1506 | v:Destroy() | |
| 1507 | end | |
| 1508 | if v:IsA("Model") then
| |
| 1509 | v:Destroy() | |
| 1510 | end | |
| 1511 | if v:IsA("BasePart") or v:IsA("MeshPart") then
| |
| 1512 | for x, o in pairs(v:GetChildren()) do | |
| 1513 | if o:IsA("Decal") then
| |
| 1514 | o:Destroy() | |
| 1515 | end | |
| 1516 | end | |
| 1517 | coroutine.resume(coroutine.create(function() | |
| 1518 | v.Material = "Neon" | |
| 1519 | v.CanCollide = false | |
| 1520 | v.Anchored = false | |
| 1521 | local bld = Instance.new("ParticleEmitter",v)
| |
| 1522 | bld.LightEmission = 0.75 | |
| 1523 | bld.Texture = "rbxassetid://2273224484" ---284205403 | |
| 1524 | bld.Color = ColorSequence.new(keptcolor.Color) | |
| 1525 | bld.Rate = 15 | |
| 1526 | bld.Lifetime = NumberRange.new(1) | |
| 1527 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 1528 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 1529 | bld.Speed = NumberRange.new(2,5) | |
| 1530 | bld.VelocitySpread = 50000 | |
| 1531 | bld.Rotation = NumberRange.new(-500,500) | |
| 1532 | bld.RotSpeed = NumberRange.new(-500,500) | |
| 1533 | local sbs = Instance.new("BodyPosition", v)
| |
| 1534 | sbs.P = 3000 | |
| 1535 | sbs.D = 1000 | |
| 1536 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 1537 | sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2)) | |
| 1538 | v.Color = keptcolor.Color | |
| 1539 | coroutine.resume(coroutine.create(function() | |
| 1540 | for i = 0, 49 do | |
| 1541 | swait(1) | |
| 1542 | v:BreakJoints() | |
| 1543 | v.Transparency = v.Transparency + 0.02 | |
| 1544 | end | |
| 1545 | v:BreakJoints() | |
| 1546 | for i = 0, 4 do | |
| 1547 | slash(math.random(10,50)/10,3,true,"Round","Add","Out",v.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.0025,0.01),math.random(10,100)/2500,BrickColor.new("White"))
| |
| 1548 | end | |
| 1549 | block(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor,keptcolor.Color) | |
| 1550 | CFuncs["Sound"].Create("rbxassetid://782353117", v, 0.25, 1.2)
| |
| 1551 | CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
| |
| 1552 | bld.Speed = NumberRange.new(10,25) | |
| 1553 | bld.Drag = 5 | |
| 1554 | bld.Acceleration = vt(0,2,0) | |
| 1555 | wait(0.5) | |
| 1556 | bld.Enabled = false | |
| 1557 | wait(4) | |
| 1558 | coroutine.resume(coroutine.create(function() | |
| 1559 | for i = 0, 99 do | |
| 1560 | swait() | |
| 1561 | v:Destroy() | |
| 1562 | dude:Destroy() | |
| 1563 | end | |
| 1564 | end)) | |
| 1565 | end)) | |
| 1566 | end)) | |
| 1567 | end | |
| 1568 | end | |
| 1569 | end)) | |
| 1570 | end) | |
| 1571 | ds() | |
| 1572 | end | |
| 1573 | end | |
| 1574 | ||
| 1575 | function FindNearestHead(Position, Distance, SinglePlayer) | |
| 1576 | if SinglePlayer then | |
| 1577 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
| 1578 | end | |
| 1579 | local List = {}
| |
| 1580 | for i, v in pairs(workspace:GetChildren()) do | |
| 1581 | if v:IsA("Model") then
| |
| 1582 | if v:findFirstChild("Head") then
| |
| 1583 | if v ~= Character then | |
| 1584 | if (v.Head.Position - Position).magnitude <= Distance then | |
| 1585 | table.insert(List, v) | |
| 1586 | end | |
| 1587 | end | |
| 1588 | end | |
| 1589 | end | |
| 1590 | end | |
| 1591 | return List | |
| 1592 | end | |
| 1593 | ||
| 1594 | ||
| 1595 | ||
| 1596 | -- RAGDOLL STUFF | |
| 1597 | ||
| 1598 | ||
| 1599 | function recurse(root,callback,i) | |
| 1600 | i= i or 0 | |
| 1601 | for _,v in pairs(root:GetChildren()) do | |
| 1602 | i = i + 1 | |
| 1603 | callback(i,v) | |
| 1604 | ||
| 1605 | if #v:GetChildren() > 0 then | |
| 1606 | i = recurse(v,callback,i) | |
| 1607 | end | |
| 1608 | end | |
| 1609 | ||
| 1610 | return i | |
| 1611 | end | |
| 1612 | ||
| 1613 | function ragdollJoint(character, part0, part1, attachmentName, className, properties) | |
| 1614 | attachmentName = attachmentName.."RigAttachment" | |
| 1615 | local constraint = Instance.new(className.."Constraint") | |
| 1616 | constraint.Attachment0 = part0:FindFirstChild(attachmentName) | |
| 1617 | constraint.Attachment1 = part1:FindFirstChild(attachmentName) | |
| 1618 | constraint.Name = "RagdollConstraint"..part1.Name | |
| 1619 | ||
| 1620 | for _,propertyData in next,properties or {} do
| |
| 1621 | constraint[propertyData[1]] = propertyData[2] | |
| 1622 | end | |
| 1623 | ||
| 1624 | constraint.Parent = character | |
| 1625 | end | |
| 1626 | ||
| 1627 | function getAttachment0(character, attachmentName) | |
| 1628 | for _,child in next,character:GetChildren() do | |
| 1629 | local attachment = child:FindFirstChild(attachmentName) | |
| 1630 | if attachment then | |
| 1631 | return attachment | |
| 1632 | end | |
| 1633 | end | |
| 1634 | end | |
| 1635 | ||
| 1636 | function ArtificialHitbox(Part) | |
| 1637 | local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false) | |
| 1638 | HITBOX.CanCollide = true | |
| 1639 | HITBOX.CFrame = Part.CFrame | |
| 1640 | weldBetween(Part,HITBOX) | |
| 1641 | end | |
| 1642 | ||
| 1643 | function R15Ragdoll(character,KeepArms) | |
| 1644 | character:BreakJoints() | |
| 1645 | coroutine.resume(coroutine.create(function() | |
| 1646 | recurse(character, function(_,v) | |
| 1647 | if v:IsA("Attachment") then
| |
| 1648 | v.Axis = Vector3.new(0, 1, 0) | |
| 1649 | v.SecondaryAxis = Vector3.new(0, 0, 1) | |
| 1650 | v.Rotation = Vector3.new(0, 0, 0) | |
| 1651 | end | |
| 1652 | end) | |
| 1653 | for _,child in next,character:GetChildren() do | |
| 1654 | if child:IsA("Accoutrement") then
| |
| 1655 | for _,part in next,child:GetChildren() do | |
| 1656 | if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
| |
| 1657 | local attachment1 = part:FindFirstChildOfClass("Attachment")
| |
| 1658 | local attachment0 = getAttachment0(character,attachment1.Name) | |
| 1659 | if attachment0 and attachment1 then | |
| 1660 | local constraint = Instance.new("HingeConstraint")
| |
| 1661 | constraint.Attachment0 = attachment0 | |
| 1662 | constraint.Attachment1 = attachment1 | |
| 1663 | constraint.LimitsEnabled = true | |
| 1664 | constraint.UpperAngle = 0 | |
| 1665 | constraint.LowerAngle = 0 | |
| 1666 | constraint.Parent = character | |
| 1667 | end | |
| 1668 | ArtificialHitbox(part) | |
| 1669 | elseif part.Name == "HumanoidRootPart" then | |
| 1670 | part:remove() | |
| 1671 | end | |
| 1672 | end | |
| 1673 | end | |
| 1674 | end | |
| 1675 | ||
| 1676 | ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
| |
| 1677 | {"LimitsEnabled",true};
| |
| 1678 | {"UpperAngle",5};
| |
| 1679 | }) | |
| 1680 | if character:FindFirstChild("Head") then
| |
| 1681 | ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
| |
| 1682 | {"LimitsEnabled",true};
| |
| 1683 | {"UpperAngle",15};
| |
| 1684 | }) | |
| 1685 | end | |
| 1686 | ||
| 1687 | local handProperties = {
| |
| 1688 | {"LimitsEnabled", true};
| |
| 1689 | {"UpperAngle",0};
| |
| 1690 | {"LowerAngle",0};
| |
| 1691 | } | |
| 1692 | ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties) | |
| 1693 | ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties) | |
| 1694 | ||
| 1695 | local shinProperties = {
| |
| 1696 | {"LimitsEnabled", true};
| |
| 1697 | {"UpperAngle", 0};
| |
| 1698 | {"LowerAngle", -75};
| |
| 1699 | } | |
| 1700 | ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties) | |
| 1701 | ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties) | |
| 1702 | ||
| 1703 | local footProperties = {
| |
| 1704 | {"LimitsEnabled", true};
| |
| 1705 | {"UpperAngle", 15};
| |
| 1706 | {"LowerAngle", -45};
| |
| 1707 | } | |
| 1708 | ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties) | |
| 1709 | ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties) | |
| 1710 | if KeepArms == true then | |
| 1711 | ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket") | |
| 1712 | ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket") | |
| 1713 | ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket") | |
| 1714 | ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket") | |
| 1715 | end | |
| 1716 | ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket") | |
| 1717 | ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket") | |
| 1718 | Debris:AddItem(character,50) | |
| 1719 | end)) | |
| 1720 | end | |
| 1721 | ||
| 1722 | function Ragdoll(Character2,CharTorso,KeepArms) | |
| 1723 | coroutine.resume(coroutine.create(function() | |
| 1724 | Character2:BreakJoints() | |
| 1725 | local hum = Character2:findFirstChild("Humanoid")
| |
| 1726 | hum:remove() | |
| 1727 | local function Scan(ch) | |
| 1728 | local e | |
| 1729 | for e = 1,#ch do | |
| 1730 | Scan(ch[e]:GetChildren()) | |
| 1731 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
| 1732 | ch[e]:remove() | |
| 1733 | end | |
| 1734 | end | |
| 1735 | end | |
| 1736 | local NEWHUM = IT("Humanoid")
| |
| 1737 | NEWHUM.Name = "Corpse" | |
| 1738 | NEWHUM.Health = 0 | |
| 1739 | NEWHUM.MaxHealth = 0 | |
| 1740 | NEWHUM.PlatformStand = true | |
| 1741 | NEWHUM.Parent = Character2 | |
| 1742 | NEWHUM.DisplayDistanceType = "None" | |
| 1743 | ||
| 1744 | local ch = Character2:GetChildren() | |
| 1745 | local i | |
| 1746 | for i = 1,#ch do | |
| 1747 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
| 1748 | ch[i]:remove() | |
| 1749 | end | |
| 1750 | end | |
| 1751 | ||
| 1752 | local Torso2 = Character2.Torso | |
| 1753 | local movevector = Vector3.new() | |
| 1754 | ||
| 1755 | if Torso2 then | |
| 1756 | movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector | |
| 1757 | local Head = Character2:FindFirstChild("Head")
| |
| 1758 | if Head then | |
| 1759 | local Neck = Instance.new("Weld")
| |
| 1760 | Neck.Name = "Neck" | |
| 1761 | Neck.Part0 = Torso2 | |
| 1762 | Neck.Part1 = Head | |
| 1763 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 1764 | Neck.C1 = CFrame.new() | |
| 1765 | Neck.Parent = Torso2 | |
| 1766 | ||
| 1767 | end | |
| 1768 | local Limb = Character2:FindFirstChild("Right Arm")
| |
| 1769 | if Limb and KeepArms == true then | |
| 1770 | ||
| 1771 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
| 1772 | local Joint = Instance.new("Glue")
| |
| 1773 | Joint.Name = "RightShoulder" | |
| 1774 | Joint.Part0 = Torso2 | |
| 1775 | Joint.Part1 = Limb | |
| 1776 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 1777 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 1778 | Joint.Parent = Torso2 | |
| 1779 | ||
| 1780 | local B = Instance.new("Part")
| |
| 1781 | B.TopSurface = 0 | |
| 1782 | B.BottomSurface = 0 | |
| 1783 | B.formFactor = "Symmetric" | |
| 1784 | B.Size = Vector3.new(1, 1, 1) | |
| 1785 | B.Transparency = 1 | |
| 1786 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 1787 | B.Parent = Character2 | |
| 1788 | local W = Instance.new("Weld")
| |
| 1789 | W.Part0 = Limb | |
| 1790 | W.Part1 = B | |
| 1791 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 1792 | W.Parent = Limb | |
| 1793 | ||
| 1794 | end | |
| 1795 | local Limb = Character2:FindFirstChild("Left Arm")
| |
| 1796 | if Limb and KeepArms == true then | |
| 1797 | ||
| 1798 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
| 1799 | local Joint = Instance.new("Glue")
| |
| 1800 | Joint.Name = "LeftShoulder" | |
| 1801 | Joint.Part0 = Torso2 | |
| 1802 | Joint.Part1 = Limb | |
| 1803 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 1804 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 1805 | Joint.Parent = Torso2 | |
| 1806 | ||
| 1807 | local B = Instance.new("Part")
| |
| 1808 | B.TopSurface = 0 | |
| 1809 | B.BottomSurface = 0 | |
| 1810 | B.formFactor = "Symmetric" | |
| 1811 | B.Size = Vector3.new(1, 1, 1) | |
| 1812 | B.Transparency = 1 | |
| 1813 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 1814 | B.Parent = Character2 | |
| 1815 | local W = Instance.new("Weld")
| |
| 1816 | W.Part0 = Limb | |
| 1817 | W.Part1 = B | |
| 1818 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 1819 | W.Parent = Limb | |
| 1820 | ||
| 1821 | end | |
| 1822 | local Limb = Character2:FindFirstChild("Right Leg")
| |
| 1823 | if Limb then | |
| 1824 | ||
| 1825 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
| 1826 | local Joint = Instance.new("Glue")
| |
| 1827 | Joint.Name = "RightHip" | |
| 1828 | Joint.Part0 = Torso2 | |
| 1829 | Joint.Part1 = Limb | |
| 1830 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 1831 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 1832 | Joint.Parent = Torso2 | |
| 1833 | ||
| 1834 | local B = Instance.new("Part")
| |
| 1835 | B.TopSurface = 0 | |
| 1836 | B.BottomSurface = 0 | |
| 1837 | B.formFactor = "Symmetric" | |
| 1838 | B.Size = Vector3.new(1, 1, 1) | |
| 1839 | B.Transparency = 1 | |
| 1840 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 1841 | B.Parent = Character2 | |
| 1842 | local W = Instance.new("Weld")
| |
| 1843 | W.Part0 = Limb | |
| 1844 | W.Part1 = B | |
| 1845 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 1846 | W.Parent = Limb | |
| 1847 | ||
| 1848 | end | |
| 1849 | local Limb = Character2:FindFirstChild("Left Leg")
| |
| 1850 | if Limb then | |
| 1851 | ||
| 1852 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
| 1853 | local Joint = Instance.new("Glue")
| |
| 1854 | Joint.Name = "LeftHip" | |
| 1855 | Joint.Part0 = Torso2 | |
| 1856 | Joint.Part1 = Limb | |
| 1857 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 1858 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 1859 | Joint.Parent = Torso2 | |
| 1860 | ||
| 1861 | local B = Instance.new("Part")
| |
| 1862 | B.TopSurface = 0 | |
| 1863 | B.BottomSurface = 0 | |
| 1864 | B.formFactor = "Symmetric" | |
| 1865 | B.Size = Vector3.new(1, 1, 1) | |
| 1866 | B.Transparency = 1 | |
| 1867 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
| 1868 | B.Parent = Character2 | |
| 1869 | local W = Instance.new("Weld")
| |
| 1870 | W.Part0 = Limb | |
| 1871 | W.Part1 = B | |
| 1872 | W.C0 = CFrame.new(0, -0.5, 0) | |
| 1873 | W.Parent = Limb | |
| 1874 | ||
| 1875 | end | |
| 1876 | --[ | |
| 1877 | local Bar = Instance.new("Part")
| |
| 1878 | Bar.TopSurface = 0 | |
| 1879 | Bar.BottomSurface = 0 | |
| 1880 | Bar.formFactor = "Symmetric" | |
| 1881 | Bar.Size = Vector3.new(1, 1, 1) | |
| 1882 | Bar.Transparency = 1 | |
| 1883 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
| 1884 | Bar.Parent = Character2 | |
| 1885 | local Weld = Instance.new("Weld")
| |
| 1886 | Weld.Part0 = Torso2 | |
| 1887 | Weld.Part1 = Bar | |
| 1888 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
| 1889 | Weld.Parent = Torso2 | |
| 1890 | --]] | |
| 1891 | end | |
| 1892 | Character2.Parent = workspace | |
| 1893 | Debris:AddItem(Character2,50) | |
| 1894 | ||
| 1895 | return Character2,Torso2 | |
| 1896 | end)) | |
| 1897 | end | |
| 1898 | ||
| 1899 | ||
| 1900 | function Freeze(CHARACTER,LAST) | |
| 1901 | local q = CHARACTER:GetChildren() | |
| 1902 | for i = 1, #q do | |
| 1903 | local bob = q[i] | |
| 1904 | if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then | |
| 1905 | if bob.Transparency < 1 then | |
| 1906 | bob.Anchored = true | |
| 1907 | if bob:FindFirstChild("Ice") == nil then
| |
| 1908 | local icelayer = bob:Clone() | |
| 1909 | icelayer.Parent = bob | |
| 1910 | icelayer.Material = "Ice" | |
| 1911 | icelayer.CanCollide = false | |
| 1912 | icelayer.BrickColor = BRICKC"Steel blue" | |
| 1913 | icelayer.Transparency = 0.5 | |
| 1914 | icelayer.CFrame = bob.CFrame | |
| 1915 | icelayer.Name = "Ice" | |
| 1916 | icelayer.Size = icelayer.Size + VT(0.1,0.1,0.1) | |
| 1917 | if icelayer:FindFirstChildOfClass("Decal") then
| |
| 1918 | icelayer:FindFirstChildOfClass("Decal"):remove()
| |
| 1919 | end | |
| 1920 | end | |
| 1921 | end | |
| 1922 | end | |
| 1923 | end | |
| 1924 | coroutine.resume(coroutine.create(function() | |
| 1925 | swait(LAST*100) | |
| 1926 | local q = CHARACTER:GetChildren() | |
| 1927 | for i = 1, #q do | |
| 1928 | local bob = q[i] | |
| 1929 | if bob.ClassName == "Part" or bob.ClassName == "MeshPart" then | |
| 1930 | if bob.Transparency < 1 then | |
| 1931 | bob.Anchored = false | |
| 1932 | bob.Ice:remove() | |
| 1933 | end | |
| 1934 | end | |
| 1935 | end | |
| 1936 | end)) | |
| 1937 | end | |
| 1938 | ||
| 1939 | ||
| 1940 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 1941 | if hit.Parent == nil then | |
| 1942 | return | |
| 1943 | end | |
| 1944 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1945 | for _, v in pairs(hit.Parent:children()) do | |
| 1946 | if v:IsA("Humanoid") then
| |
| 1947 | h = v | |
| 1948 | end | |
| 1949 | end | |
| 1950 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
| |
| 1951 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 1952 | return | |
| 1953 | end | |
| 1954 | local c = Create("ObjectValue")({
| |
| 1955 | Name = "creator", | |
| 1956 | Value = Player, | |
| 1957 | Parent = h | |
| 1958 | }) | |
| 1959 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1960 | if HitSound ~= nil and HitPitch ~= nil then | |
| 1961 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 1962 | end | |
| 1963 | local Damage = math.random(minim, maxim) | |
| 1964 | local blocked = false | |
| 1965 | local block = hit.Parent:findFirstChild("Block")
| |
| 1966 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
| 1967 | blocked = true | |
| 1968 | block.Value = block.Value - 1 | |
| 1969 | print(block.Value) | |
| 1970 | end | |
| 1971 | if blocked == false then | |
| 1972 | HitHealth = h.Health | |
| 1973 | h.MaxHealth = 100 | |
| 1974 | h.Health = h.Health - Damage | |
| 1975 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
| 1976 | print("gained kill")
| |
| 1977 | if h.Parent:FindFirstChild("Torso") then
| |
| 1978 | -- h.Parent:FindFirstChild("Torso").CFrame = h.Parent:FindFirstChild("Torso").CFrame * ANGLES(RAD(2), RAD(0), RAD(0))
| |
| 1979 | Ragdoll(h.Parent,Torso,true) | |
| 1980 | elseif h.Parent:FindFirstChild("UpperTorso") then
| |
| 1981 | R15Ragdoll(h.Parent,true) | |
| 1982 | end | |
| 1983 | end | |
| 1984 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1985 | else | |
| 1986 | h.Health = h.Health - Damage / 2 | |
| 1987 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1988 | end | |
| 1989 | if Type == "Knockdown" then | |
| 1990 | local hum = hit.Parent.Humanoid | |
| 1991 | hum.PlatformStand = true | |
| 1992 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1993 | swait(1) | |
| 1994 | HHumanoid.PlatformStand = false | |
| 1995 | end), hum) | |
| 1996 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 1997 | local bodvol = Create("BodyVelocity")({
| |
| 1998 | velocity = angle * knockback, | |
| 1999 | P = 5000, | |
| 2000 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 2001 | Parent = hit | |
| 2002 | }) | |
| 2003 | local rl = Create("BodyAngularVelocity")({
| |
| 2004 | P = 3000, | |
| 2005 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 2006 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 2007 | Parent = hit | |
| 2008 | }) | |
| 2009 | game:GetService("Debris"):AddItem(bodvol, 0.5)
| |
| 2010 | game:GetService("Debris"):AddItem(rl, 0.5)
| |
| 2011 | elseif Type == "Freeze" then | |
| 2012 | local vp = Create("BodyVelocity")({
| |
| 2013 | P = 500, | |
| 2014 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 2015 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 2016 | }) | |
| 2017 | if knockback > 0 then | |
| 2018 | vp.Parent = hit.Parent.Head | |
| 2019 | end | |
| 2020 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 2021 | if h.Parent then | |
| 2022 | Freeze(h.Parent,3) | |
| 2023 | end | |
| 2024 | elseif Type == "Normal" then | |
| 2025 | local vp = Create("BodyVelocity")({
| |
| 2026 | P = 500, | |
| 2027 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 2028 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 2029 | }) | |
| 2030 | if knockback > 0 then | |
| 2031 | vp.Parent = hit.Parent.Head | |
| 2032 | end | |
| 2033 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 2034 | elseif Type == "Up" then | |
| 2035 | local bodyVelocity = Create("BodyVelocity")({
| |
| 2036 | velocity = Vector3.new(0, 20, 0), | |
| 2037 | P = 5000, | |
| 2038 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 2039 | Parent = hit | |
| 2040 | }) | |
| 2041 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 2042 | local bodyVelocity = Create("BodyVelocity")({
| |
| 2043 | velocity = Vector3.new(0, 20, 0), | |
| 2044 | P = 5000, | |
| 2045 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 2046 | Parent = hit | |
| 2047 | }) | |
| 2048 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 2049 | elseif Type == "Leech" then | |
| 2050 | local hum = hit.Parent.Humanoid | |
| 2051 | if hum ~= nil then | |
| 2052 | for i = 0, 2 do | |
| 2053 | -- Effects.Sphere.Create(BrickColor.new("Bright red"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
| |
| 2054 | end | |
| 2055 | Humanoid.Health = Humanoid.Health + 10 | |
| 2056 | end | |
| 2057 | elseif Type == "UpKnock" then | |
| 2058 | local hum = hit.Parent.Humanoid | |
| 2059 | hum.PlatformStand = true | |
| 2060 | if hum ~= nil then | |
| 2061 | hitr = true | |
| 2062 | end | |
| 2063 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 2064 | swait(5) | |
| 2065 | HHumanoid.PlatformStand = false | |
| 2066 | hitr = false | |
| 2067 | end), hum) | |
| 2068 | local bodyVelocity = Create("BodyVelocity")({
| |
| 2069 | velocity = Vector3.new(0, 20, 0), | |
| 2070 | P = 5000, | |
| 2071 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 2072 | Parent = hit | |
| 2073 | }) | |
| 2074 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 2075 | local bodyVelocity = Create("BodyVelocity")({
| |
| 2076 | velocity = Vector3.new(0, 20, 0), | |
| 2077 | P = 5000, | |
| 2078 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 2079 | Parent = hit | |
| 2080 | }) | |
| 2081 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 2082 | elseif Type == "Snare" then | |
| 2083 | local bp = Create("BodyPosition")({
| |
| 2084 | P = 2000, | |
| 2085 | D = 100, | |
| 2086 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 2087 | position = hit.Parent.Torso.Position, | |
| 2088 | Parent = hit.Parent.Torso | |
| 2089 | }) | |
| 2090 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 2091 | elseif Type == "Slashnare" then | |
| 2092 | -- Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
| |
| 2093 | for i = 1, math.random(4, 5) do | |
| 2094 | -- Effects.Sphere.Create(BrickColor.new("Teal"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
| |
| 2095 | end | |
| 2096 | local bp = Create("BodyPosition")({
| |
| 2097 | P = 2000, | |
| 2098 | D = 100, | |
| 2099 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 2100 | position = hit.Parent.Torso.Position, | |
| 2101 | Parent = hit.Parent.Torso | |
| 2102 | }) | |
| 2103 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 2104 | elseif Type == "Spike" then | |
| 2105 | -- CreateBigIceSword(hit.Parent.Torso.CFrame) | |
| 2106 | local bp = Create("BodyPosition")({
| |
| 2107 | P = 2000, | |
| 2108 | D = 100, | |
| 2109 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 2110 | position = hit.Parent.Torso.Position, | |
| 2111 | Parent = hit.Parent.Torso | |
| 2112 | }) | |
| 2113 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 2114 | elseif Type == "Freeze" then | |
| 2115 | local BodPos = Create("BodyPosition")({
| |
| 2116 | P = 50000, | |
| 2117 | D = 1000, | |
| 2118 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 2119 | position = hit.Parent.Torso.Position, | |
| 2120 | Parent = hit.Parent.Torso | |
| 2121 | }) | |
| 2122 | local BodGy = Create("BodyGyro")({
| |
| 2123 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
| 2124 | P = 20000, | |
| 2125 | Parent = hit.Parent.Torso, | |
| 2126 | cframe = hit.Parent.Torso.CFrame | |
| 2127 | }) | |
| 2128 | hit.Parent.Torso.Anchored = true | |
| 2129 | coroutine.resume(coroutine.create(function(Part) | |
| 2130 | swait(1.5) | |
| 2131 | Part.Anchored = false | |
| 2132 | end), hit.Parent.Torso) | |
| 2133 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 2134 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 2135 | end | |
| 2136 | local debounce = Create("BoolValue")({
| |
| 2137 | Name = "DebounceHit", | |
| 2138 | Parent = hit.Parent, | |
| 2139 | Value = true | |
| 2140 | }) | |
| 2141 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 2142 | c = Instance.new("ObjectValue")
| |
| 2143 | c.Name = "creator" | |
| 2144 | c.Value = Player | |
| 2145 | c.Parent = h | |
| 2146 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 2147 | end | |
| 2148 | end | |
| 2149 | function RemoveOutlines(part) | |
| 2150 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 2151 | end | |
| 2152 | ||
| 2153 | function CrystalEffect(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,outerpos) | |
| 2154 | local type = type | |
| 2155 | local rng = CrystalEff:Clone() | |
| 2156 | rng.Parent = char | |
| 2157 | rng.Anchored = true | |
| 2158 | rng.CanCollide = false | |
| 2159 | rng.Name = "Ring" | |
| 2160 | rng.Material = "Neon" | |
| 2161 | rng.Size = Vector3.new(x1, y1, z1) | |
| 2162 | rng.Transparency = 0.25 | |
| 2163 | rng.TopSurface = 0 | |
| 2164 | rng.BottomSurface = 0 | |
| 2165 | rng.CFrame = pos | |
| 2166 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 2167 | local scaler2 = 1 | |
| 2168 | local speeder = FastSpeed | |
| 2169 | if type == "Add" then | |
| 2170 | scaler2 = 1*value | |
| 2171 | elseif type == "Divide" then | |
| 2172 | scaler2 = 1/value | |
| 2173 | end | |
| 2174 | coroutine.resume(coroutine.create(function() | |
| 2175 | for i = 0,10/bonuspeed,0.1 do | |
| 2176 | swait() | |
| 2177 | if type == "Add" then | |
| 2178 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 2179 | elseif type == "Divide" then | |
| 2180 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 2181 | end | |
| 2182 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
| 2183 | rng.CFrame = rng.CFrame + Vector3.new(0,0.05,0) | |
| 2184 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 2185 | end | |
| 2186 | rng:Destroy() | |
| 2187 | end)) | |
| 2188 | end | |
| 2189 | ||
| 2190 | ||
| 2191 | ||
| 2192 | function TriangleEffect(bonuspeed,FastSpeed,type,pos,value,outerpos) | |
| 2193 | local type = type | |
| 2194 | local rng = Triangle2:Clone() | |
| 2195 | rng.Parent = char | |
| 2196 | rng.Anchored = true | |
| 2197 | rng.CanCollide = false | |
| 2198 | rng.Name = "Ring" | |
| 2199 | rng.Material = "Neon" | |
| 2200 | rng.Transparency = 0.32 | |
| 2201 | rng.TopSurface = 0 | |
| 2202 | rng.BottomSurface = 0 | |
| 2203 | rng.CFrame = pos | |
| 2204 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 2205 | local scaler2 = 1 | |
| 2206 | local speeder = FastSpeed | |
| 2207 | if type == "Add" then | |
| 2208 | scaler2 = 1*value | |
| 2209 | elseif type == "Divide" then | |
| 2210 | scaler2 = 1/value | |
| 2211 | end | |
| 2212 | coroutine.resume(coroutine.create(function() | |
| 2213 | for i = 0,10/bonuspeed,0.1 do | |
| 2214 | swait() | |
| 2215 | if type == "Add" then | |
| 2216 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 2217 | elseif type == "Divide" then | |
| 2218 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 2219 | end | |
| 2220 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
| 2221 | rng.CFrame = rng.CFrame + Vector3.new(0,0.05,0) | |
| 2222 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 2223 | end | |
| 2224 | rng:Destroy() | |
| 2225 | end)) | |
| 2226 | end | |
| 2227 | ||
| 2228 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 2229 | local Part = Create("Part")({
| |
| 2230 | Parent = Parent, | |
| 2231 | Reflectance = Reflectance, | |
| 2232 | Transparency = Transparency, | |
| 2233 | CanCollide = false, | |
| 2234 | Locked = true, | |
| 2235 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 2236 | Name = Name, | |
| 2237 | Size = Size, | |
| 2238 | Material = Material | |
| 2239 | }) | |
| 2240 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 2241 | RemoveOutlines(Part) | |
| 2242 | return Part | |
| 2243 | end | |
| 2244 | function ShowDamage(Pos, Text, Time, Color) | |
| 2245 | coroutine.resume(coroutine.create(function() | |
| 2246 | local Rate = 0.03333333333333333 | |
| 2247 | local Pos = Pos or Vector3.new(0, 0, 0) | |
| 2248 | local Text = Text or "" | |
| 2249 | local Color = Color or Color3.new(1, 0, 1) | |
| 2250 | local EffectPart = CreatePart(Character, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 2251 | EffectPart.Anchored = true | |
| 2252 | EffectPart.CFrame = CFrame.new(Pos) | |
| 2253 | local BillboardGui = Create("BillboardGui")({
| |
| 2254 | Size = UDim2.new(6, 0, 6, 0), | |
| 2255 | Adornee = EffectPart, | |
| 2256 | Parent = EffectPart, | |
| 2257 | AlwaysOnTop=true, | |
| 2258 | Active=true | |
| 2259 | }) | |
| 2260 | local TextLabel = Create("TextLabel")({
| |
| 2261 | BackgroundTransparency = 1, | |
| 2262 | AnchorPoint=Vector2.new(.5,.5), | |
| 2263 | Position = UDim2.new(.5, 0, .5, 0), | |
| 2264 | Size = UDim2.new(1, 0, 1, 0), | |
| 2265 | Text = Text, | |
| 2266 | TextColor3 = MAINCOLOR.Color, | |
| 2267 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 2268 | TextStrokeTransparency=0, | |
| 2269 | TextScaled = true, | |
| 2270 | Font = "Arcade", | |
| 2271 | Parent = BillboardGui, | |
| 2272 | ZIndex=4, | |
| 2273 | }) | |
| 2274 | local raise=.2 | |
| 2275 | local rot=math.random(-10,10)/15 | |
| 2276 | local aaa=math.random(-360,360) | |
| 2277 | local bbb=math.random(-360,360) | |
| 2278 | for aaa=0,2,.01 do | |
| 2279 | swait() | |
| 2280 | raise=raise-.008 | |
| 2281 | if Mode == "R" then | |
| 2282 | TextLabel.TextColor3 = C3(r/255,g/255,b/255) | |
| 2283 | end | |
| 2284 | TextLabel.Rotation = TextLabel.Rotation+rot | |
| 2285 | TextLabel.TextTransparency=aaa | |
| 2286 | TextLabel.TextStrokeTransparency=aaa | |
| 2287 | EffectPart.Position=EffectPart.Position+Vector3.new(0,raise,0) | |
| 2288 | end | |
| 2289 | wait(3) | |
| 2290 | BillboardGui:Remove() | |
| 2291 | EffectPart:Remove() | |
| 2292 | end)) | |
| 2293 | end | |
| 2294 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 2295 | for _, c in pairs(workspace:children()) do | |
| 2296 | local hum = c:findFirstChildOfClass("Humanoid")
| |
| 2297 | if hum ~= nil then | |
| 2298 | local head = c:findFirstChild("Head")
| |
| 2299 | if head ~= nil then | |
| 2300 | local targ = head.Position - Part.Position | |
| 2301 | local mag = targ.magnitude | |
| 2302 | if magni >= mag and c.Name ~= Player.Name then | |
| 2303 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 2304 | end | |
| 2305 | end | |
| 2306 | end | |
| 2307 | end | |
| 2308 | end | |
| 2309 | ||
| 2310 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
| 2311 | for _, c in pairs(workspace:children()) do | |
| 2312 | local hum = c:findFirstChild("Humanoid")
| |
| 2313 | if hum ~= nil then | |
| 2314 | local head = c:findFirstChild("Torso")
| |
| 2315 | if head ~= nil then | |
| 2316 | local targ = head.Position - Part.Position | |
| 2317 | local mag = targ.magnitude | |
| 2318 | if magni >= mag and c.Name ~= Player.Name then | |
| 2319 | --MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
| |
| 2320 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 2321 | end | |
| 2322 | end | |
| 2323 | end | |
| 2324 | end | |
| 2325 | end | |
| 2326 | function FindNearestTorso(pos,distance) | |
| 2327 | local list=(workspace:children()) | |
| 2328 | local torso=nil | |
| 2329 | local dist=distance | |
| 2330 | local temp,human,temp2=nil,nil,nil | |
| 2331 | for x=1,#list do | |
| 2332 | temp2=list[x] | |
| 2333 | if temp2.className=="Model"and temp2.Name~=char.Name then | |
| 2334 | temp=temp2:findFirstChild("Torso")
| |
| 2335 | human=temp2:findFirstChildOfClass("Humanoid")
| |
| 2336 | if temp~=nil and human~=nil and human.Health>=0 and (temp.Position-pos).magnitude<dist then | |
| 2337 | local dohit=true | |
| 2338 | if dohit==true then | |
| 2339 | torso=temp | |
| 2340 | dist=(temp.Position-pos).magnitude | |
| 2341 | end | |
| 2342 | end | |
| 2343 | end | |
| 2344 | end | |
| 2345 | return torso,dist | |
| 2346 | end | |
| 2347 | ||
| 2348 | function LunarAttack() | |
| 2349 | attacking = true | |
| 2350 | Speed = 0 | |
| 2351 | CFuncs["Sound"].Create("rbxassetid://1368583274", larm, 4.5, 1.625)
| |
| 2352 | local OverCut = false | |
| 2353 | for i = 0, 4, 0.1 do | |
| 2354 | swait() | |
| 2355 | MagniDamage(Torso, 13, 2,6, 0, "Normal",153092213) | |
| 2356 | --slash(math.random(10,30)/10,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.001,0.1),math.random(50,400)/420,BrickColor.new("White"))
| |
| 2357 | slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
| |
| 2358 | slash(math.random(20,40)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.025,0.001,0.025),-0.025,BrickColor.new("White"))
| |
| 2359 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3) | |
| 2360 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(30),math.rad(3)),.3) | |
| 2361 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3) | |
| 2362 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(5),math.rad(-50)),.3) | |
| 2363 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-170),math.rad(-10),math.rad(0)),.3) | |
| 2364 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(20),math.rad(40),math.rad(-20)),.3) | |
| 2365 | end | |
| 2366 | local orb = basketball:Clone() | |
| 2367 | orb.Parent = Character | |
| 2368 | orb.Name = "basketball" | |
| 2369 | orb.Torso.CFrame = root.CFrame*CFrame.new(0,7,0)--50,0) | |
| 2370 | local x = orb.Torso | |
| 2371 | local keptcolor = MAINCOLOR | |
| 2372 | local poste = 0 | |
| 2373 | local rotation = 0 | |
| 2374 | local upperpos = 0 | |
| 2375 | local rate = 0 | |
| 2376 | for i,v in pairs(orb:GetChildren()) do | |
| 2377 | if v:IsA("BasePart") then
| |
| 2378 | v.Anchored = true | |
| 2379 | v.CanCollide = false | |
| 2380 | v.Transparency = 0 | |
| 2381 | end | |
| 2382 | end | |
| 2383 | OverCut = true | |
| 2384 | for i = 0, 6 do | |
| 2385 | --slash(math.random(10,30)/10,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.001,0.1),math.random(50,400)/420,BrickColor.new("White"))
| |
| 2386 | end | |
| 2387 | --sphere2(2,"Add",x.CFrame,vt(10,10,10),0.5,0.5,0.5,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
| |
| 2388 | --sphere2(3,"Add",x.CFrame,vt(10,10,10),0.75,0.75,0.75,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
| |
| 2389 | --sphere2(4,"Add",x.CFrame,vt(10,10,10),1,1,1,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
| |
| 2390 | CFuncs["Sound"].Create("rbxassetid://1368637781", orb, 7.5, 1)
| |
| 2391 | local a = Instance.new("Part",workspace)
| |
| 2392 | a.Name = "Direction" | |
| 2393 | a.Anchored = true | |
| 2394 | a.Transparency = 1 | |
| 2395 | a.CanCollide = false | |
| 2396 | local ray = Ray.new( | |
| 2397 | x.CFrame.p, -- origin | |
| 2398 | (mouse.Hit.p - x.CFrame.p).unit * 500 -- direction | |
| 2399 | ) | |
| 2400 | local ignore = x | |
| 2401 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 2402 | a.BottomSurface = 10 | |
| 2403 | a.TopSurface = 10 | |
| 2404 | local distance = (x.CFrame.p - position).magnitude | |
| 2405 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 2406 | a.CFrame = CFrame.new(x.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 2407 | x.CFrame = a.CFrame | |
| 2408 | for i = 0, 2, 0.1 do | |
| 2409 | swait() | |
| 2410 | --sphere2(5,"Add",x.CFrame*CFrame.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
| |
| 2411 | ray = Ray.new( | |
| 2412 | x.CFrame.p, -- origin | |
| 2413 | (mouse.Hit.p - x.CFrame.p).unit * 500 -- direction | |
| 2414 | ) | |
| 2415 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 2416 | distance = (x.CFrame.p - position).magnitude | |
| 2417 | a.CFrame = CFrame.new(x.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 2418 | x.CFrame = a.CFrame | |
| 2419 | --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
| |
| 2420 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3) | |
| 2421 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(40),math.rad(3)),.3) | |
| 2422 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
| 2423 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-60)),.3) | |
| 2424 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-100),math.rad(-0),math.rad(110)),.3) | |
| 2425 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(1),math.rad(11),math.rad(12)),.3) | |
| 2426 | end | |
| 2427 | swait(30) | |
| 2428 | x.CFrame = a.CFrame | |
| 2429 | for i,v in pairs(orb:GetChildren()) do | |
| 2430 | if v:IsA("BasePart") then
| |
| 2431 | v.Anchored = false | |
| 2432 | end | |
| 2433 | end | |
| 2434 | a:Destroy() | |
| 2435 | local bv = Instance.new("BodyVelocity")
| |
| 2436 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 2437 | bv.velocity = x.CFrame.lookVector*100 | |
| 2438 | bv.Parent = x | |
| 2439 | local hitted = false | |
| 2440 | CFuncs["Sound"].Create("rbxassetid://466493476", orb, 7.5, 0.7)
| |
| 2441 | x.CFrame = x.CFrame * CFrame.Angles(0,math.rad(360*math.cos(sne/6)),0) | |
| 2442 | --waveEff(2,"Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.1,BrickColor.new("Bright yellow"))
| |
| 2443 | --waveEff(4,"Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.05,BrickColor.new("Bright blue"))
| |
| 2444 | coroutine.resume(coroutine.create(function() | |
| 2445 | while true do | |
| 2446 | swait(2) | |
| 2447 | if hitted == false and x.Parent ~= nil then | |
| 2448 | MagniDamage(x, 5, 3,6, 0, "Normal",153092213) | |
| 2449 | --orb.CFrame = orb.CFrame * CFrame.Angles(math.rad(360*math.cos(sne/6)),0,0) | |
| 2450 | --slash(3,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.075,0.005,0.075),-0.05,BrickColor.new("White"))
| |
| 2451 | elseif hitted == true and x.Parent == nil then | |
| 2452 | break | |
| 2453 | end | |
| 2454 | end | |
| 2455 | end)) | |
| 2456 | --[[x.Touched:connect(function(hit) | |
| 2457 | if hitted == false and hit.Parent ~= char then | |
| 2458 | hitted = true | |
| 2459 | MagniDamage(x, 67, 23,32, 0, "Normal",153092213) | |
| 2460 | CFuncs["Sound"].Create("rbxassetid://763717897", x, 10, 1)
| |
| 2461 | CFuncs["Sound"].Create("rbxassetid://1295446488", x, 9, 0.75)
| |
| 2462 | for i = 0, 24 do | |
| 2463 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.001,0.01),math.random(125,250)/350,BrickColor.new("White"))
| |
| 2464 | end | |
| 2465 | slash(1,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.015,0.01),2.5,BrickColor.new("White"))
| |
| 2466 | slash(1,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.01,0.01),3,BrickColor.new("White"))
| |
| 2467 | sphere2(1,"Add",x.CFrame,vt(15,15,15),2,2,2,BrickColor.new("New Yeller"),BrickColor.new("New Yeller").Color)
| |
| 2468 | sphere2(1.5,"Add",x.CFrame,vt(15,10,15),2.1,2.1,2.1,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
| |
| 2469 | sphere2(2,"Add",x.CFrame,vt(15,15,15),2.2,2.2,2.2,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
| |
| 2470 | for i,v in pairs(orb:GetChildren()) do | |
| 2471 | if v:IsA("BasePart") then
| |
| 2472 | v.Anchored = true | |
| 2473 | v.Transparency = 1 | |
| 2474 | end | |
| 2475 | end | |
| 2476 | coroutine.resume(coroutine.create(function() | |
| 2477 | for i = 0, 4, 0.1 do | |
| 2478 | swait() | |
| 2479 | --slash(math.random(10,50)/10,5,true,"Round","Add","Out",x.CFrame*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.015,0.01),1.5,BrickColor.new("Bright blue"))
| |
| 2480 | end | |
| 2481 | end)) | |
| 2482 | wait(10) | |
| 2483 | orb:Remove()() | |
| 2484 | end | |
| 2485 | end)]]-- | |
| 2486 | game:GetService("Debris"):AddItem(orb, 20)
| |
| 2487 | for i = 0, 1, 0.1 do | |
| 2488 | swait() | |
| 2489 | slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
| |
| 2490 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3) | |
| 2491 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(30),math.rad(3)),.3) | |
| 2492 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.4,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
| 2493 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(70)),.3) | |
| 2494 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-40),math.rad(20)),.3) | |
| 2495 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-80)),.3) | |
| 2496 | end | |
| 2497 | attacking = false | |
| 2498 | Speed = 43 | |
| 2499 | end | |
| 2500 | ||
| 2501 | function LunarAttackA() | |
| 2502 | attacking = true | |
| 2503 | Speed = 0 | |
| 2504 | CFuncs["Sound"].Create("rbxassetid://1368583274", larm, 4.5, 1.2)
| |
| 2505 | local OverCut = false | |
| 2506 | for i = 0, 10, 0.1 do | |
| 2507 | swait() | |
| 2508 | MagniDamage(Torso, 12, 2,5, 0, "Normal",153092213) | |
| 2509 | slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
| |
| 2510 | slash(math.random(20,40)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.025,0.001,0.025),-0.025,BrickColor.new("White"))
| |
| 2511 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3) | |
| 2512 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(30),math.rad(3)),.3) | |
| 2513 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(50)),.3) | |
| 2514 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(5),math.rad(-50)),.3) | |
| 2515 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-170),math.rad(-10),math.rad(0)),.3) | |
| 2516 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(20),math.rad(40),math.rad(-20)),.3) | |
| 2517 | end | |
| 2518 | OverCut = true | |
| 2519 | local orb = MoonEffect:Clone() | |
| 2520 | orb.Anchored = true | |
| 2521 | orb.Parent = Character | |
| 2522 | orb.CanCollide = false | |
| 2523 | orb.Name = "Orbieee" | |
| 2524 | orb.CFrame = root.CFrame*CFrame.new(0,50,0) | |
| 2525 | for i = 0, 24 do | |
| 2526 | slash(math.random(10,30)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.001,0.1),math.random(50,400)/420,BrickColor.new("White"))
| |
| 2527 | end | |
| 2528 | sphere2(2,"Add",orb.CFrame,vt(10,10,10),0.5,0.5,0.5,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
| |
| 2529 | sphere2(3,"Add",orb.CFrame,vt(10,10,10),0.75,0.75,0.75,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
| |
| 2530 | sphere2(4,"Add",orb.CFrame,vt(10,10,10),1,1,1,BrickColor.new("Bright yellow"),BrickColor.new("Bright yellow").Color)
| |
| 2531 | CFuncs["Sound"].Create("rbxassetid://1368637781", orb, 7.5, 1)
| |
| 2532 | local a = Instance.new("Part",workspace)
| |
| 2533 | a.Name = "Direction" | |
| 2534 | a.Anchored = true | |
| 2535 | a.Transparency = 1 | |
| 2536 | a.CanCollide = false | |
| 2537 | local ray = Ray.new( | |
| 2538 | orb.CFrame.p, -- origin | |
| 2539 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
| 2540 | ) | |
| 2541 | local ignore = orb | |
| 2542 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 2543 | a.BottomSurface = 10 | |
| 2544 | a.TopSurface = 10 | |
| 2545 | local distance = (orb.CFrame.p - position).magnitude | |
| 2546 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 2547 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 2548 | orb.CFrame = a.CFrame | |
| 2549 | for i = 0, 8, 0.1 do | |
| 2550 | swait() | |
| 2551 | sphere2(5,"Add",orb.CFrame*CFrame.new(math.random(-20,20),math.random(-20,20),math.random(-20,20)),vt(1,1,1),0.01,0.01,0.01,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
| |
| 2552 | ray = Ray.new( | |
| 2553 | orb.CFrame.p, -- origin | |
| 2554 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
| 2555 | ) | |
| 2556 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 2557 | distance = (orb.CFrame.p - position).magnitude | |
| 2558 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 2559 | orb.CFrame = a.CFrame | |
| 2560 | slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
| |
| 2561 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3) | |
| 2562 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(40),math.rad(3)),.3) | |
| 2563 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
| 2564 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(-60)),.3) | |
| 2565 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-100),math.rad(-0),math.rad(110)),.3) | |
| 2566 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(1),math.rad(11),math.rad(12)),.3) | |
| 2567 | end | |
| 2568 | orb.Anchored = false | |
| 2569 | a:Destroy() | |
| 2570 | local bv = Instance.new("BodyVelocity")
| |
| 2571 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 2572 | bv.velocity = orb.CFrame.lookVector*150 | |
| 2573 | bv.Parent = orb | |
| 2574 | local hitted = false | |
| 2575 | CFuncs["Sound"].Create("rbxassetid://466493476", orb, 7.5, 0.7)
| |
| 2576 | orb.CFrame = orb.CFrame * CFrame.Angles(0,math.rad(360*math.cos(sne/6)),0) | |
| 2577 | waveEff(2,"Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.1,BrickColor.new("Bright yellow"))
| |
| 2578 | waveEff(4,"Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(5,1,5),0.5,0.05,BrickColor.new("Bright blue"))
| |
| 2579 | coroutine.resume(coroutine.create(function() | |
| 2580 | while true do | |
| 2581 | swait(2) | |
| 2582 | if hitted == false and orb.Parent ~= nil then | |
| 2583 | --orb.CFrame = orb.CFrame * CFrame.Angles(math.rad(360*math.cos(sne/6)),0,0) | |
| 2584 | slash(3,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.075,0.005,0.075),-0.05,BrickColor.new("White"))
| |
| 2585 | elseif hitted == true and orb.Parent == nil then | |
| 2586 | break | |
| 2587 | end | |
| 2588 | end | |
| 2589 | end)) | |
| 2590 | orb.Touched:connect(function(hit) | |
| 2591 | if hitted == false and hit.Parent ~= char then | |
| 2592 | hitted = true | |
| 2593 | MagniDamage(orb, 67, 72,115, 0, "Normal",153092213) | |
| 2594 | CFuncs["Sound"].Create("rbxassetid://763717897", orb, 10, 1)
| |
| 2595 | CFuncs["Sound"].Create("rbxassetid://1295446488", orb, 9, 0.75)
| |
| 2596 | for i = 0, 24 do | |
| 2597 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.001,0.01),math.random(125,250)/350,BrickColor.new("White"))
| |
| 2598 | end | |
| 2599 | slash(1,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.015,0.01),2.5,BrickColor.new("White"))
| |
| 2600 | slash(1,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),0),vt(0.01,0.01,0.01),3,BrickColor.new("White"))
| |
| 2601 | sphere2(1,"Add",orb.CFrame,vt(15,15,15),2,2,2,BrickColor.new("New Yeller"),BrickColor.new("New Yeller").Color)
| |
| 2602 | sphere2(1.5,"Add",orb.CFrame,vt(15,10,15),2.1,2.1,2.1,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
| |
| 2603 | sphere2(2,"Add",orb.CFrame,vt(15,15,15),2.2,2.2,2.2,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
| |
| 2604 | orb.Anchored = true | |
| 2605 | orb.Transparency = 1 | |
| 2606 | coroutine.resume(coroutine.create(function() | |
| 2607 | for i = 0, 4, 0.1 do | |
| 2608 | swait() | |
| 2609 | --slash(math.random(10,50)/10,5,true,"Round","Add","Out",orb.CFrame*CFrame.Angles(math.rad(90 + math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.01,0.015,0.01),1.5,BrickColor.new("Bright blue"))
| |
| 2610 | end | |
| 2611 | end)) | |
| 2612 | wait(10) | |
| 2613 | orb:Destroy() | |
| 2614 | end | |
| 2615 | end) | |
| 2616 | game:GetService("Debris"):AddItem(orb, 10)
| |
| 2617 | for i = 0, 2, 0.1 do | |
| 2618 | swait() | |
| 2619 | slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,50)/250,BrickColor.new("White"))
| |
| 2620 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0),math.rad(-6)),.3) | |
| 2621 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(30),math.rad(3)),.3) | |
| 2622 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.4,0)*angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
| 2623 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5),math.rad(0),math.rad(70)),.3) | |
| 2624 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-13),math.rad(-40),math.rad(20)),.3) | |
| 2625 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0.1)*angles(math.rad(90),math.rad(0),math.rad(-80)),.3) | |
| 2626 | end | |
| 2627 | attacking = false | |
| 2628 | Speed = 43 | |
| 2629 | end | |
| 2630 | ||
| 2631 | function glitchattack() | |
| 2632 | attacking = true | |
| 2633 | local brickglitch = {BrickColor.new("Institutional white"),BrickColor.new("Really black")}
| |
| 2634 | local keptcolor = brickglitch[MRANDOM(1,2)] | |
| 2635 | local glitchvalA = math.random(0,255) | |
| 2636 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
| |
| 2637 | for i = 0, 8, 0.1 do | |
| 2638 | swait() | |
| 2639 | sphereMK(3.5,-1,"Add",sorb.CFrame* CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)
| |
| 2640 | RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 2 * math.cos(sne / 32))),.1) | |
| 2641 | LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 2 * math.cos(sne / 32))),.1) | |
| 2642 | RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.02 * math.cos(sne / 32),-0.1 + 0.05 * math.cos(sne / 32))*angles(math.rad(0 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-11)),.1) | |
| 2643 | Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(-2 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sne / 28)),math.rad(0),math.rad(-31 + 6.5 * math.cos(sne / 32.5))),.1) | |
| 2644 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(161,176)),math.rad(-5),math.rad(15 + 7.5 * math.cos(sne / 32.5))),.1) | |
| 2645 | LW.C0=clerp(LW.C0,cf(-1.5+0.05*math.cos(sne/32),0.65-.05*math.cos(sne/32),0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(136,159)),math.rad(5),math.rad(29 - 8.5 * math.cos(sne / 32.5))),.1) | |
| 2646 | end | |
| 2647 | for i = 0, 3.1, 0.1 do | |
| 2648 | swait() | |
| 2649 | sphereMK(3.5,-1,"Add",sorb.CFrame* CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)
| |
| 2650 | RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 2 * math.cos(sne / 32))),.1) | |
| 2651 | LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 2 * math.cos(sne / 32))),.1) | |
| 2652 | RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.02 * math.cos(sne / 32),-0.1 + 0.05 * math.cos(sne / 32))*angles(math.rad(0 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-51)),.1) | |
| 2653 | Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(-2 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sne / 28)),math.rad(0),math.rad(-71 + 6.5 * math.cos(sne / 32.5))),.1) | |
| 2654 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(81,108)),math.rad(-5),math.rad(89 + 7.5 * math.cos(sne / 32.5))),.1) | |
| 2655 | LW.C0=clerp(LW.C0,cf(-1.5+0.05*math.cos(sne/32),0.65-.05*math.cos(sne/32),0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(136,159)),math.rad(5),math.rad(29 - 8.5 * math.cos(sne / 32.5))),.1) | |
| 2656 | end | |
| 2657 | for i = 0, MRANDOM(18,23) do | |
| 2658 | PixelBlockNeg(1,math.random(1,3),"Add",mouse.Hit*CFrame.new(math.random(-26,26),0,math.random(-26,26))*CFrame.Angles(math.rad(90 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),5,5,5,0.1,keptcolor,-10) | |
| 2659 | end | |
| 2660 | for i, v in pairs(FindNearestHead(mouse.Hit.p, 36)) do | |
| 2661 | if v:FindFirstChild('Head') then
| |
| 2662 | coroutine.resume(coroutine.create(function() | |
| 2663 | CFuncs["Sound"].Create("rbxassetid://1042716828", v.Head, 5, 0.5)
| |
| 2664 | local vel = Instance.new("BodyPosition", v.Head)
| |
| 2665 | vel.P = 12500 | |
| 2666 | vel.D = 1000 | |
| 2667 | vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000) | |
| 2668 | vel.position = v.Head.CFrame.p + vt(0,10,0) | |
| 2669 | for i,v in pairs(v:GetChildren()) do | |
| 2670 | if v:IsA("BasePart") or v:IsA("MeshPart") then
| |
| 2671 | coroutine.resume(coroutine.create(function() | |
| 2672 | local bld = Instance.new("ParticleEmitter",v)
| |
| 2673 | bld.LightEmission = 0.75 | |
| 2674 | bld.Texture = "rbxassetid://363275192" ---284205403 | |
| 2675 | bld.Color = ColorSequence.new(Color3.new(glitchvalA,glitchvalA,glitchvalA)) | |
| 2676 | bld.Rate = 1 | |
| 2677 | bld.Lifetime = NumberRange.new(1) | |
| 2678 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2679 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 2680 | bld.Speed = NumberRange.new(2,5) | |
| 2681 | bld.VelocitySpread = 50000 | |
| 2682 | bld.Rotation = NumberRange.new(-500,500) | |
| 2683 | bld.RotSpeed = NumberRange.new(-500,500) | |
| 2684 | end)) | |
| 2685 | end | |
| 2686 | end | |
| 2687 | local BasePlate = game.Workspace:FindFirstChild("Baseplate") or game.Workspace:FindFirstChild("Base")
| |
| 2688 | local A1 = Instance.new("Attachment",BasePlate)
| |
| 2689 | local A2 = Instance.new("Attachment",v.Head)
| |
| 2690 | local Beem = Instance.new("Beam",v.Head)
| |
| 2691 | Beem.Attachment0 = A1 | |
| 2692 | Beem.Attachment1 = A2 | |
| 2693 | Beem.LightEmission = 1 | |
| 2694 | Beem.FaceCamera = true | |
| 2695 | Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 0)})
| |
| 2696 | Beem.Width0 = 1 | |
| 2697 | Beem.Width1 = 1 | |
| 2698 | Beem.Texture = "rbxassetid://1134824633" | |
| 2699 | Beem.TextureMode = "Wrap" | |
| 2700 | Beem.TextureLength = 2 | |
| 2701 | Beem.TextureSpeed = 5 | |
| 2702 | Beem.Color = ColorSequence.new(keptcolor.Color) | |
| 2703 | wait(5) | |
| 2704 | coroutine.resume(coroutine.create(function() | |
| 2705 | local ref = Instance.new("Part", char)
| |
| 2706 | ref.Anchored = true | |
| 2707 | ref.CanCollide = false | |
| 2708 | ref.Transparency = 1 | |
| 2709 | ref.CFrame = v.Head.CFrame | |
| 2710 | for i = 0, 9 do | |
| 2711 | slash(math.random(10,25)/10,5,true,"Round","Add","Out",v.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.001,0.5),-1,BrickColor.new("Really black"))
| |
| 2712 | end | |
| 2713 | v.Head.Parent:Destroy() | |
| 2714 | CFuncs["Sound"].Create("rbxassetid://763718160", ref, 2, 1.1)
| |
| 2715 | CFuncs["Sound"].Create("rbxassetid://782353443", ref, 2, 1)
| |
| 2716 | CFuncs["Sound"].Create("rbxassetid://335657174", ref, 2, 1)
| |
| 2717 | swait(120) | |
| 2718 | Beem:Remove() | |
| 2719 | ref:Destroy() | |
| 2720 | ref:Remove() | |
| 2721 | end)) | |
| 2722 | end)) | |
| 2723 | end | |
| 2724 | end | |
| 2725 | CFuncs["Sound"].Create("rbxassetid://1664711478", char, 2, 1)
| |
| 2726 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
| |
| 2727 | CFuncs["Sound"].Create("rbxassetid://167115397", char, 1, 0.6)
| |
| 2728 | CFuncs["Sound"].Create("rbxassetid://782353443", char, 1, 0.9)
| |
| 2729 | CFuncs["Sound"].Create("rbxassetid://782353443", char, 2, 0.8)
| |
| 2730 | CFuncs["Sound"].Create("rbxassetid://782353443", char, 2, 0.7)
| |
| 2731 | attacking = false | |
| 2732 | end | |
| 2733 | ||
| 2734 | ||
| 2735 | function Daash() | |
| 2736 | attacking = true | |
| 2737 | Speed = 0 | |
| 2738 | for i = 0,1,0.1 do | |
| 2739 | swait() | |
| 2740 | RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5) | |
| 2741 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.5) | |
| 2742 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5) | |
| 2743 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5) | |
| 2744 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5) | |
| 2745 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5) | |
| 2746 | end | |
| 2747 | CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1)
| |
| 2748 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.5)
| |
| 2749 | CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.8)
| |
| 2750 | CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9)
| |
| 2751 | for i = 0,6,0.1 do | |
| 2752 | swait() | |
| 2753 | root.CFrame = root.CFrame + root.CFrame.lookVector*6 | |
| 2754 | coroutine.resume(coroutine.create(function() | |
| 2755 | local turbo4 = ToothpasteArrow:Clone() | |
| 2756 | turbo4.Material = Enum.Material.Glass | |
| 2757 | turbo4.Parent = char | |
| 2758 | turbo4.Anchored = true | |
| 2759 | turbo4.CanCollide = false | |
| 2760 | turbo4.CFrame = RootPart.CFrame*cf(0,1.5,2.65)*angles(math.rad(146),math.rad(-180),math.rad(90)) | |
| 2761 | turbo4.Transparency = 0 | |
| 2762 | swait(120) | |
| 2763 | repeat | |
| 2764 | turbo4.Transparency = turbo4.Transparency + 0.01 | |
| 2765 | swait() | |
| 2766 | until turbo4.Transparency == 0 or turbo4.Transparency > 0.99 | |
| 2767 | game:GetService("Debris"):AddItem(turbo4, 4)
| |
| 2768 | end)) | |
| 2769 | local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Toothpaste"))
| |
| 2770 | CreateMesh(dis2,"Sphere",1,1,1) | |
| 2771 | dis2.Anchored = true | |
| 2772 | dis2.CFrame = RightArm.CFrame*CFrame.new(0,-3,0) | |
| 2773 | sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color) | |
| 2774 | coroutine.resume(coroutine.create(function() | |
| 2775 | dis2.Transparency = 1 | |
| 2776 | swait(5) | |
| 2777 | dis2.Transparency = 1 | |
| 2778 | coroutine.resume(coroutine.create(function() | |
| 2779 | local eff = Instance.new("ParticleEmitter",dis2)
| |
| 2780 | eff.Texture = "rbxassetid://2273224484" | |
| 2781 | eff.LightEmission = 1 | |
| 2782 | eff.Color = ColorSequence.new(dis2.Color) | |
| 2783 | eff.Rate = 4 | |
| 2784 | eff.Lifetime = NumberRange.new(0.5,2) | |
| 2785 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2786 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 2787 | eff.Speed = NumberRange.new(50,450) | |
| 2788 | eff.Drag = 2 | |
| 2789 | eff.Rotation = NumberRange.new(-500,500) | |
| 2790 | eff.VelocitySpread = 9000 | |
| 2791 | eff.RotSpeed = NumberRange.new(-50,50) | |
| 2792 | local eff2 = eff:Clone() | |
| 2793 | eff2.Parent = dis2 | |
| 2794 | eff2.LightEmission = 0 | |
| 2795 | eff2.Color = ColorSequence.new(dis2.Color) | |
| 2796 | wait(0.25) | |
| 2797 | eff.Enabled = false | |
| 2798 | eff2.Enabled = false | |
| 2799 | end)) | |
| 2800 | -- CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75)
| |
| 2801 | -- CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25)
| |
| 2802 | -- CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15)
| |
| 2803 | end)) | |
| 2804 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 5)) do | |
| 2805 | if v:FindFirstChild('Head') then
| |
| 2806 | dmg(v) | |
| 2807 | end | |
| 2808 | end | |
| 2809 | game:GetService("Debris"):AddItem(dis2, 4.5)
| |
| 2810 | waveEff(5,"Add","In",RightLeg.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),vt(5,0.25,1),-0.075,0.05,BrickColor.new("White"))
| |
| 2811 | waveEff(5,"Add","In",LeftLeg.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),vt(5,0.25,1),-0.075,0.05,BrickColor.new("White"))
| |
| 2812 | RH.C0=clerp(RH.C0,cf(1,-0.28,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(40)),.5) | |
| 2813 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.5) | |
| 2814 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.8)*angles(math.rad(40),math.rad(0),math.rad(70)),.5) | |
| 2815 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-70)),.5) | |
| 2816 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(20),math.rad(-1),math.rad(30)),.5) | |
| 2817 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-60)),.5) | |
| 2818 | end | |
| 2819 | Speed = 67 | |
| 2820 | attacking = false | |
| 2821 | end | |
| 2822 | ||
| 2823 | function SolarAttack() | |
| 2824 | attacking = true | |
| 2825 | Speed = 0 | |
| 2826 | local keptcolor = MAINCOLOR | |
| 2827 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.8)
| |
| 2828 | CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.76)
| |
| 2829 | for i = 0,10.6,0.1 do | |
| 2830 | swait() | |
| 2831 | PixelBlockX(5,0.5,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.01,MAINCOLOR,0) | |
| 2832 | sphere2(5,"Add",larm.CFrame*CFrame.new(math.random(-0.5,0.5),-0.9 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,BrickColor.new("Deep orange"),BrickColor.new("Deep orange").Color)
| |
| 2833 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
| 2834 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
| 2835 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sne / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
| 2836 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
| 2837 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.2) | |
| 2838 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.2) | |
| 2839 | end | |
| 2840 | for i = 0, 4 do | |
| 2841 | slash(math.random(10,50)/10,3,true,"Round","Add","Out",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.0025,0.01),math.random(15,50)/3000,BrickColor.new("White"))
| |
| 2842 | end | |
| 2843 | block(1,"Add",larm.CFrame*CFrame.new(0,-1,0),vt(0,0,0),0.05,0.05,0.05,keptcolor,keptcolor.Color) | |
| 2844 | CFuncs["EchoSound"].Create("rbxassetid://675172759", root, 10, 0.8,0,10,0.15,0.5,1)
| |
| 2845 | CFuncs["EchoSound"].Create("rbxassetid://763717897", root, 7.5, 1.1,0,10,0.15,0.5,1)
| |
| 2846 | CFuncs["EchoSound"].Create("rbxassetid://675172759", root, 5, 0.7,0,10,0.15,0.5,1)
| |
| 2847 | sphere(1,"Add",mouse.Hit*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(3,100000,3),0.6,BrickColor.new("Deep orange"))
| |
| 2848 | sphere(1,"Add",mouse.Hit,vt(2,2,2),1.6,BrickColor.new("Deep orange"))
| |
| 2849 | for i = 0, 49 do | |
| 2850 | --PixelBlockX(1,math.random(1,20),"Add",mouse.Hit*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),8,8,8,0.16,BrickColor.new("Deep orange"),0)
| |
| 2851 | sphereMK(2.5,-1,"Add",mouse.Hit*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,BrickColor.new("Deep orange"),0)
| |
| 2852 | --slash(math.random(10,20)/10,5,true,"Round","Add","Out",mouse.Hit*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-30, 30)), math.rad(math.random(-30, 30)), math.rad(math.random(-40, 40))),vt(0.05,0.01,0.05),math.random(50,60)/250,BrickColor.new("Deep orange"))
| |
| 2853 | end | |
| 2854 | for i, v in pairs(FindNearestHead(mouse.Hit.p, 25)) do | |
| 2855 | if v:FindFirstChild('Head') then
| |
| 2856 | dmg(v) | |
| 2857 | end | |
| 2858 | end | |
| 2859 | Speed = 36 | |
| 2860 | attacking = false | |
| 2861 | end | |
| 2862 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
| 2863 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
| 2864 | end | |
| 2865 | ||
| 2866 | ||
| 2867 | ||
| 2868 | ||
| 2869 | function NuclearExtended() | |
| 2870 | attacking = true | |
| 2871 | Speed = 0 | |
| 2872 | CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
| |
| 2873 | CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
| |
| 2874 | local keptcolor = MAINCOLOR | |
| 2875 | for i = 0,4.3,0.1 do | |
| 2876 | swait() | |
| 2877 | sphere2(6,"Add",RightLeg.CFrame*CFrame.new(math.random(-0.5,0.5),-1.3 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,MAINCOLOR,MAINCOLOR.Color) | |
| 2878 | RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1) | |
| 2879 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1) | |
| 2880 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1) | |
| 2881 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1) | |
| 2882 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1) | |
| 2883 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1) | |
| 2884 | end | |
| 2885 | CFuncs["Sound"].Create("rbxassetid://763717897", char, 2, 1)
| |
| 2886 | CFuncs["Sound"].Create("rbxassetid://763717897", char, 2, 0.75)
| |
| 2887 | CFuncs["Sound"].Create("rbxassetid://763717897", char, 2, 0.5)
| |
| 2888 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1,0.5)
| |
| 2889 | CFuncs["Sound"].Create("rbxassetid://1664711478", char, 1.5,1)
| |
| 2890 | CFuncs["Sound"].Create("rbxassetid://763718160", char, 2, 0.75)
| |
| 2891 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 7)) do | |
| 2892 | if v:FindFirstChild('Head') then
| |
| 2893 | dmg(v) | |
| 2894 | end | |
| 2895 | end | |
| 2896 | ||
| 2897 | for i = 0,5.5,0.1 do | |
| 2898 | swait() | |
| 2899 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 56)) do | |
| 2900 | if v:FindFirstChild('Head') then
| |
| 2901 | dmg(v) | |
| 2902 | end | |
| 2903 | end | |
| 2904 | sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(32,0.061111111,32),0.8,-0.000000000000002,0.8,BrickColor.new("Lime green"),Color3.new(0,1,0))
| |
| 2905 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8) | |
| 2906 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8) | |
| 2907 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8) | |
| 2908 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8) | |
| 2909 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8) | |
| 2910 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8) | |
| 2911 | end | |
| 2912 | attacking = false | |
| 2913 | Speed = 32 | |
| 2914 | end | |
| 2915 | ||
| 2916 | ||
| 2917 | function negromancingnigrafyer9000(bitchasslilnigga) | |
| 2918 | bitchasslilnigga:BreakJoints() | |
| 2919 | for _, c in pairs(bitchasslilnigga:GetDescendants()) do | |
| 2920 | if c:IsA("BasePart") and c.Transparency == 0 then
| |
| 2921 | c:BreakJoints() | |
| 2922 | c.Material = "Neon" | |
| 2923 | c.Color = BRICKC("Lime green").Color
| |
| 2924 | c.CanCollide = true | |
| 2925 | c.Transparency = 0 | |
| 2926 | if c:FindFirstChildOfClass("SpecialMesh") then
| |
| 2927 | c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
| |
| 2928 | end | |
| 2929 | if c.Name == "Head" then | |
| 2930 | c:ClearAllChildren() | |
| 2931 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
| 2932 | end | |
| 2933 | if c.ClassName == "MeshPart" then | |
| 2934 | c.TextureID = "" | |
| 2935 | end | |
| 2936 | if c:FindFirstChildOfClass("BodyPosition") then
| |
| 2937 | c:FindFirstChildOfClass("BodyPosition"):remove()
| |
| 2938 | end | |
| 2939 | if c:FindFirstChildOfClass("ParticleEmitter") then
| |
| 2940 | c:FindFirstChildOfClass("ParticleEmitter"):remove()
| |
| 2941 | end | |
| 2942 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
| 2943 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
| 2944 | end | |
| 2945 | end | |
| 2946 | end | |
| 2947 | ||
| 2948 | function NuclearGrab() | |
| 2949 | attacking = true | |
| 2950 | Speed = 16 | |
| 2951 | local yourdeadnoob=nil | |
| 2952 | for i = 0,1.15,0.1 do | |
| 2953 | swait() | |
| 2954 | if math.random(1,3) == 1 then | |
| 2955 | PixelBlockX(7,0.5,"Add",rarm.CFrame*CFrame.new(0,-1.35,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.01,MAINCOLOR,0) | |
| 2956 | end | |
| 2957 | sphere2(6,"Add",rarm.CFrame*CFrame.new(math.random(-0.5,0.5),-1.35 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,MAINCOLOR,MAINCOLOR.Color) | |
| 2958 | RH.C0=clerp(RH.C0,cf(1,-1,-0.15)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(1)),.8) | |
| 2959 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(1)),.8) | |
| 2960 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(-52)),.8) | |
| 2961 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(52)),.8) | |
| 2962 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(87),math.rad(-2),math.rad(12)),.8) | |
| 2963 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-5),math.rad(2),math.rad(-8)),.8) | |
| 2964 | end | |
| 2965 | for i = 0,1.35,0.1 do | |
| 2966 | swait() | |
| 2967 | local BOI = FindNearestTorso(RightArm.Position,6) | |
| 2968 | if BOI ~= nil and yourdeadnoob == nil then | |
| 2969 | yourdeadnoob = BOI | |
| 2970 | CFuncs["Sound"].Create("rbxassetid://200632875", BOI, 3, 1)
| |
| 2971 | end | |
| 2972 | if yourdeadnoob ~=nil then | |
| 2973 | yourdeadnoob.CFrame=RightArm.CFrame*CFrame.new(0,-1.3,0)*CFrame.Angles(-math.rad(90),math.rad(0),math.rad(0)) | |
| 2974 | end | |
| 2975 | if math.random(1,3) == 1 then | |
| 2976 | PixelBlockX(7,0.5,"Add",rarm.CFrame*CFrame.new(0,-1.35,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.01,MAINCOLOR,0) | |
| 2977 | end | |
| 2978 | sphere2(6,"Add",rarm.CFrame*CFrame.new(math.random(-0.5,0.5),-1.35 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,MAINCOLOR,MAINCOLOR.Color) | |
| 2979 | RH.C0=clerp(RH.C0,cf(1,-1,-0.15)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(1)),.8) | |
| 2980 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(1)),.8) | |
| 2981 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(32)),.8) | |
| 2982 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-32)),.8) | |
| 2983 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(87),math.rad(-2),math.rad(-2)),.8) | |
| 2984 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-5),math.rad(2),math.rad(-8)),.8) | |
| 2985 | end | |
| 2986 | if yourdeadnoob~=nil and yourdeadnoob.Parent~=nil then | |
| 2987 | CFuncs["Sound"].Create("rbxassetid://199145534", yourdeadnoob, 8.21, 1.3)
| |
| 2988 | CFuncs["Sound"].Create("rbxassetid://206082327", yourdeadnoob, 7.12, .9)
| |
| 2989 | for i = 0, math.random(18,32) do | |
| 2990 | sphereMK(2.5,-1,"Add",yourdeadnoob.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.9,1.9,25,-0.025,BrickColor.new("Lime green"),0)
| |
| 2991 | end | |
| 2992 | negromancingnigrafyer9000(yourdeadnoob.Parent) | |
| 2993 | end | |
| 2994 | attacking = false | |
| 2995 | Speed = 32 | |
| 2996 | end | |
| 2997 | ||
| 2998 | function NuclearTeleport() | |
| 2999 | attacking = true | |
| 3000 | Speed = 0 | |
| 3001 | local yourdeadnoob=nil | |
| 3002 | for i = 0,5,0.1 do | |
| 3003 | swait() | |
| 3004 | sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
| |
| 3005 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
| 3006 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
| 3007 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
| 3008 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(35 - 2 * math.cos(sine / 37)),math.rad(0),math.rad(0)),.3) | |
| 3009 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-80 + 2 * math.cos(sine / 45))),.3) | |
| 3010 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(80 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(71 - 4 * math.cos(sine / 45))),.3) | |
| 3011 | end | |
| 3012 | RootPart.Anchored = true | |
| 3013 | for i = 0, 32 do | |
| 3014 | sphere2(1.5,"Add",mouse.Hit*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
| |
| 3015 | end | |
| 3016 | for i = 0,3,0.1 do | |
| 3017 | swait() | |
| 3018 | sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
| |
| 3019 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
| 3020 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
| 3021 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-30 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
| 3022 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(35 - 2 * math.cos(sine / 37)),math.rad(0),math.rad(0)),.3) | |
| 3023 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-80 + 2 * math.cos(sine / 45))),.3) | |
| 3024 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(80 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(71 - 4 * math.cos(sine / 45))),.3) | |
| 3025 | end | |
| 3026 | for i = 0, 32 do | |
| 3027 | sphere2(1.5,"Add",mouse.Hit*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
| |
| 3028 | end | |
| 3029 | local AEEEEEEEEE = RootPart.Position | |
| 3030 | RootPart.CFrame = CF(CF(mouse.Hit.p) * CF(0, 2.8, 0).p, AEEEEEEEEE) | |
| 3031 | for i = 0,5,0.1 do | |
| 3032 | swait() | |
| 3033 | sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
| |
| 3034 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
| 3035 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
| 3036 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
| 3037 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(35 - 2 * math.cos(sine / 37)),math.rad(0),math.rad(0)),.3) | |
| 3038 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-80 + 2 * math.cos(sine / 45))),.3) | |
| 3039 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(80 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(71 - 4 * math.cos(sine / 45))),.3) | |
| 3040 | end | |
| 3041 | RootPart.Anchored = false | |
| 3042 | attacking = false | |
| 3043 | Speed = 32 | |
| 3044 | end | |
| 3045 | ||
| 3046 | ||
| 3047 | ||
| 3048 | ||
| 3049 | function kaboom() | |
| 3050 | attacking = true | |
| 3051 | --gale's typhoon move bootleg lol | |
| 3052 | for i = 0,2,0.1 do | |
| 3053 | MagicBlock(BrickColor.new("Institutional white"),sorb2.CFrame,1,1,1,0.1,0.1,0.1,0.25)
| |
| 3054 | swait() | |
| 3055 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.2) | |
| 3056 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.2) | |
| 3057 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 3058 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
| 3059 | end | |
| 3060 | ||
| 3061 | local a = Instance.new("Part",Character)
| |
| 3062 | a.Name = "Direction" | |
| 3063 | a.Anchored = true | |
| 3064 | a.BrickColor = BRICKC("Bright red")
| |
| 3065 | a.Material = "Neon" | |
| 3066 | a.Transparency = 1 | |
| 3067 | a.CanCollide = false | |
| 3068 | local ray = Ray.new( | |
| 3069 | sorb2.CFrame.p, -- origin | |
| 3070 | (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction | |
| 3071 | ) | |
| 3072 | local ignore = Character | |
| 3073 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3074 | a.BottomSurface = 10 | |
| 3075 | a.TopSurface = 10 | |
| 3076 | local distance = (root.CFrame.p - position).magnitude | |
| 3077 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 3078 | a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 3079 | local lb = Instance.new("Part")
| |
| 3080 | CFuncs["Sound"].Create("rbxassetid://260433721", lb, 1, 1)
| |
| 3081 | lb.Parent = char | |
| 3082 | lb.BrickColor = BrickColor.new("Pastel green")
| |
| 3083 | lb.CanCollide = false | |
| 3084 | lb.Material = "Neon" | |
| 3085 | lb.Anchored = true | |
| 3086 | lb.TopSurface = 0 | |
| 3087 | lb.BottomSurface = 0 | |
| 3088 | lb.Transparency = 1 | |
| 3089 | lb.Size = vt(8,8,8) | |
| 3090 | lb.CFrame = a.CFrame | |
| 3091 | lb.Anchored = false | |
| 3092 | --game:GetService("Debris"):AddItem(lb, 6)
| |
| 3093 | local bv = Instance.new("BodyVelocity")
| |
| 3094 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3095 | bv.velocity = a.CFrame.lookVector*46 | |
| 3096 | bv.Parent = lb | |
| 3097 | local hitted = false | |
| 3098 | game:GetService("Debris"):AddItem(a, 0.1)
| |
| 3099 | coroutine.resume(coroutine.create(function() | |
| 3100 | while wait(0.025) do | |
| 3101 | if hitted == false or lb.Parent ~= nil then | |
| 3102 | MagicBlock(BrickColor.new("Institutional white"),lb.CFrame,4,4,4,1.9,1.9,1.9,0.25)
| |
| 3103 | MagicBlock(BrickColor.new("White"),lb.CFrame,2,2,2,1.45,1.45,1.45,0.25)
| |
| 3104 | wind("Divide",lb.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(1,1,1),math.random(1,2),5,true)
| |
| 3105 | if hitted == true or lb.Parent == nil then | |
| 3106 | break | |
| 3107 | end | |
| 3108 | end | |
| 3109 | end | |
| 3110 | end)) | |
| 3111 | wait(0.01) | |
| 3112 | --game:GetService("Debris"):AddItem(lb, 7)
| |
| 3113 | lb.Touched:connect(function(hit) | |
| 3114 | MagniDamage(lb, 31, 12,32, 0, "Normal") | |
| 3115 | end) | |
| 3116 | ||
| 3117 | attacking = false | |
| 3118 | wait(7) | |
| 3119 | lb:Remove() | |
| 3120 | end | |
| 3121 | ||
| 3122 | ||
| 3123 | function spinnyboi() | |
| 3124 | attacking = true | |
| 3125 | for i = 0,1,0.1 do | |
| 3126 | swait() | |
| 3127 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1) | |
| 3128 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3129 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.1) | |
| 3130 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.1) | |
| 3131 | end | |
| 3132 | CFuncs["Sound"].Create("rbxassetid://138079095", root, 0.5, 0.4)
| |
| 3133 | CFuncs["Sound"].Create("rbxassetid://154723542", root, 1.5, 1.15)
| |
| 3134 | coroutine.resume(coroutine.create(function() | |
| 3135 | CFuncs["Sound"].Create("rbxassetid://588698460", root, 4.4, 1.5)
| |
| 3136 | CFuncs["Sound"].Create("rbxassetid://588694531", root,4.4, 1.3)
| |
| 3137 | sphere2(18.5,"Add",LeftArm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,2,2),1,1,1,BrickColor.new("Pastel green"),BrickColor.new("Pastel green").Color)
| |
| 3138 | sphere2(18.5,"Add",RightArm.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,2,2),1,1,1,BrickColor.new("Pastel green"),BrickColor.new("Pastel green").Color)
| |
| 3139 | for i = 0, 2 do | |
| 3140 | wait(0.05) | |
| 3141 | MagniDamage(root, 32, 12,42, 0, "Normal") | |
| 3142 | wind("Divide",root.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(2,2,2),0.8,26,false)
| |
| 3143 | end | |
| 3144 | MagniDamage(root, 32, 12,42, 0, "Normal") | |
| 3145 | end)) | |
| 3146 | for i = 0,1.9,0.5 do | |
| 3147 | swait() | |
| 3148 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5) | |
| 3149 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
| 3150 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 3151 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 3152 | end | |
| 3153 | for i = 0,1.9,0.5 do | |
| 3154 | swait() | |
| 3155 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),0.5) | |
| 3156 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
| 3157 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 3158 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 3159 | end | |
| 3160 | for i = 0,1.9,0.5 do | |
| 3161 | swait() | |
| 3162 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(270)),0.5) | |
| 3163 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
| 3164 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 3165 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 3166 | end | |
| 3167 | for i = 0,1.9,0.5 do | |
| 3168 | swait() | |
| 3169 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),0.5) | |
| 3170 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5) | |
| 3171 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
| 3172 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
| 3173 | end | |
| 3174 | attacking = false | |
| 3175 | end | |
| 3176 | ||
| 3177 | function AAAA() | |
| 3178 | attacking=true | |
| 3179 | for i = 0,3,0.1 do | |
| 3180 | swait() | |
| 3181 | RH.C0=clerp(RH.C0,cf(1,-.5,-.5)*angles(math.rad(-35),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),.2) | |
| 3182 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),.2) | |
| 3183 | RootJoint.C0=clerp(RootJoint.C0,RootCF*angles(math.rad(-15),0,math.rad(0)),.2) | |
| 3184 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-12),0,math.rad(-0)),.2) | |
| 3185 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(115),0,math.rad(-25)),.2) | |
| 3186 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(115),0,math.rad(25)),.2) | |
| 3187 | end | |
| 3188 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
| |
| 3189 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
| |
| 3190 | for i = 0,.5,0.1 do | |
| 3191 | swait() | |
| 3192 | RH.C0=clerp(RH.C0,cf(1,-1,-.5)*angles(math.rad(25),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),.6) | |
| 3193 | LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(-5),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),.4) | |
| 3194 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-.2,0)*angles(math.rad(25),0,0),.6) | |
| 3195 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko,.4) | |
| 3196 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-45),0,math.rad(25)),.4) | |
| 3197 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-45),0,math.rad(-25)),.4) | |
| 3198 | end | |
| 3199 | local out=5 | |
| 3200 | local start=root.CFrame | |
| 3201 | coroutine.wrap(function() | |
| 3202 | for rad = 0, 180,5 do | |
| 3203 | out = out + 5 | |
| 3204 | local A = PyramidEffect:Clone() | |
| 3205 | A.Parent = char | |
| 3206 | A.CanCollide = true | |
| 3207 | A.Anchored = true | |
| 3208 | A.CFrame=start*cf(0,-15,-out) | |
| 3209 | MagniDamage(A, 20, 65,187, 0, "Normal") | |
| 3210 | coroutine.wrap(function() | |
| 3211 | for i = -15, 0 do | |
| 3212 | A.CFrame=A.CFrame*cf(0,1,0) | |
| 3213 | swait() | |
| 3214 | end | |
| 3215 | delay(0.8,function() | |
| 3216 | for i = -8, 0 do | |
| 3217 | swait() | |
| 3218 | A.CFrame=A.CFrame*cf(0,-1,0) | |
| 3219 | end | |
| 3220 | A:destroy() | |
| 3221 | end) | |
| 3222 | end)() | |
| 3223 | swait() | |
| 3224 | end | |
| 3225 | end)() | |
| 3226 | ||
| 3227 | for i = 0,2.5,0.1 do | |
| 3228 | swait() | |
| 3229 | RH.C0=clerp(RH.C0,cf(1,-1,-.5)*angles(math.rad(25),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(0)),.6) | |
| 3230 | LH.C0=clerp(LH.C0,cf(-1,-1.1,0)*angles(math.rad(-5),math.rad(0),math.rad(0))*angles(math.rad(0),math.rad(-90),math.rad(0)),.4) | |
| 3231 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-.2,0)*angles(math.rad(25),0,0),.6) | |
| 3232 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko,.4) | |
| 3233 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-45),0,math.rad(25)),.4) | |
| 3234 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-45),0,math.rad(-25)),.4) | |
| 3235 | end | |
| 3236 | attacking=false | |
| 3237 | end | |
| 3238 | ||
| 3239 | ||
| 3240 | function CrystalizedFields() | |
| 3241 | attacking = true | |
| 3242 | Speed = 2 | |
| 3243 | local keptcolor = MAINCOLOR | |
| 3244 | local obj1 = Instance.new("Part")
| |
| 3245 | obj1.Parent = char | |
| 3246 | obj1.Transparency = 1 | |
| 3247 | obj1.CanCollide = false | |
| 3248 | local rval = 0 | |
| 3249 | local eval = 1 | |
| 3250 | local tval = 0 | |
| 3251 | CFuncs["Sound"].Create("rbxassetid://199145761", obj1, 3,1)
| |
| 3252 | local eff = Instance.new("ParticleEmitter",obj1)
| |
| 3253 | eff.Texture = "rbxassetid://2344870656" | |
| 3254 | eff.LightEmission = 1 | |
| 3255 | eff.Color = ColorSequence.new(obj1.Color) | |
| 3256 | eff.Rate = 10000000 | |
| 3257 | eff.Enabled = true | |
| 3258 | eff.EmissionDirection = "Left" | |
| 3259 | eff.Lifetime = NumberRange.new(0.5) | |
| 3260 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 3261 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 3262 | eff.Speed = NumberRange.new(5,50) | |
| 3263 | eff.Drag = 5 | |
| 3264 | eff.Rotation = NumberRange.new(-500,500) | |
| 3265 | eff.RotSpeed = NumberRange.new(-500,500) | |
| 3266 | sphere2(5,"Add",root.CFrame*CFrame.new(0,5,0),vt(1,1,1),0.5,0.005,0.5,MAINCOLOR,MAINCOLOR.Color) | |
| 3267 | local eff2 = Instance.new("ParticleEmitter",obj1)
| |
| 3268 | eff2.Texture = "rbxassetid://695499847" | |
| 3269 | eff2.LightEmission = 1 | |
| 3270 | eff2.Color = ColorSequence.new(obj1.Color) | |
| 3271 | eff2.Rate = 12500 | |
| 3272 | eff2.Lifetime = NumberRange.new(0.5,2) | |
| 3273 | eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 3274 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 3275 | eff2.Speed = NumberRange.new(20,150) | |
| 3276 | eff2.Drag = 5 | |
| 3277 | eff2.Rotation = NumberRange.new(-500,500) | |
| 3278 | eff2.VelocitySpread = 9000 | |
| 3279 | eff2.RotSpeed = NumberRange.new(-150,150) | |
| 3280 | for i = 0,11,0.1 do | |
| 3281 | swait() | |
| 3282 | rval = rval + 10 | |
| 3283 | eval = eval + 1.5 | |
| 3284 | obj1.Transparency = 1 | |
| 3285 | tval = tval + 1 | |
| 3286 | if tval == 24 then | |
| 3287 | tval = 0 | |
| 3288 | MagniDamage(Torso, 38, 12,21, 0, "Freeze",153092213) | |
| 3289 | end | |
| 3290 | obj1.Size = obj1.Size + vt(0,0.2,0.2) | |
| 3291 | obj1.CFrame = root.CFrame*CFrame.new(0,5,0)*CFrame.Angles(math.rad(0),math.rad(rval),math.rad(-90)) | |
| 3292 | RH.C0=clerp(RH.C0,cf(1,-1 + 0.15 * math.cos(sine / 32),-0.15)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.3) | |
| 3293 | LH.C0=clerp(LH.C0,cf(-1,-1 + 0.15* math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.3) | |
| 3294 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(2)),.3) | |
| 3295 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-2 + 1 * math.cos(sine / 58)),math.rad(-2 + 2 * math.cos(sine / 53))),.3) | |
| 3296 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(1760 + 6 * math.cos(sine / 72)),math.rad(1 - 1 * math.cos(sine / 58)),math.rad(90 + 2 * math.cos(sine / 45))),.3) | |
| 3297 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(176 - 7 * math.cos(sine / 66)),math.rad(1 - 1 * math.cos(sine / 59)),math.rad(-90 - 4 * math.cos(sine / 45))),.3) | |
| 3298 | end | |
| 3299 | eff.Enabled = false | |
| 3300 | coroutine.resume(coroutine.create(function() | |
| 3301 | for i = 0,49 do | |
| 3302 | swait() | |
| 3303 | rval = rval + 100 | |
| 3304 | obj1.Transparency = obj1.Transparency + 0.02 | |
| 3305 | obj1.Size = obj1.Size + vt(0,-0.5,-0.5) | |
| 3306 | end | |
| 3307 | obj1:Destroy() | |
| 3308 | end)) | |
| 3309 | attacking = false | |
| 3310 | Speed = 14 | |
| 3311 | end | |
| 3312 | ||
| 3313 | function modeswitchgui() | |
| 3314 | local oawkwodkwad=math.random(0,100)/100 | |
| 3315 | local okaofwakf=math.random(60,100)/100 | |
| 3316 | local framiee=Instance.new("Frame",MainFrame2.Cube1)
| |
| 3317 | framiee.AnchorPoint=Vector2.new(.5,.5) | |
| 3318 | framiee.Position=UDim2.new(.5,0,.5,0) | |
| 3319 | framiee.BorderSizePixel=0 | |
| 3320 | framiee.BackgroundColor3=MainFrame2.Cube1.BackgroundColor3 | |
| 3321 | framiee.Size=UDim2.new(0,0,0,0) | |
| 3322 | framiee.ZIndex=13 | |
| 3323 | CFuncs["Sound"].Create("rbxassetid://557322397", MainGui, 3, 2.6)
| |
| 3324 | for zi=1,3 do | |
| 3325 | local imfhg=Instance.new("ImageLabel",MainFrame2)
| |
| 3326 | imfhg.AnchorPoint=Vector2.new(.5,.5) | |
| 3327 | imfhg.Position=UDim2.new(.6,0,.6,0) | |
| 3328 | imfhg.BorderSizePixel=0 | |
| 3329 | imfhg.ImageColor3=MainFrame2.Cube1.BackgroundColor3 | |
| 3330 | imfhg.Size=UDim2.new(.4,0,.7,0) | |
| 3331 | imfhg.ZIndex=10 | |
| 3332 | imfhg.BackgroundTransparency=1 | |
| 3333 | imfhg.Image="rbxassetid://2809225827" | |
| 3334 | coroutine.resume(coroutine.create(function(imag) | |
| 3335 | if zi==1 then | |
| 3336 | imag:TweenPosition(UDim2.new(.6,0,-1.5,0),"Out","Quint",1.2,true) | |
| 3337 | elseif zi==2 then | |
| 3338 | imag.Rotation=-45 | |
| 3339 | imag:TweenPosition(UDim2.new(-.5,0,-1.2,0),"Out","Quint",1.2,true) | |
| 3340 | else | |
| 3341 | imag.Rotation=-90 | |
| 3342 | imag:TweenPosition(UDim2.new(-.8,0,.6,0),"Out","Quint",1.2,true) | |
| 3343 | end | |
| 3344 | game:GetService("Debris"):AddItem(imag,3)
| |
| 3345 | for i=0,1.02,.02 do | |
| 3346 | swait() | |
| 3347 | imag.ImageTransparency=i | |
| 3348 | end | |
| 3349 | imag:Remove() | |
| 3350 | end),imfhg) | |
| 3351 | ||
| 3352 | end | |
| 3353 | ||
| 3354 | ||
| 3355 | coroutine.resume(coroutine.create(function(ff) | |
| 3356 | ff:TweenSize(UDim2.new(12,0,12,0),"Out","Quint",.8,true) | |
| 3357 | game:GetService("Debris"):AddItem(ff,3)
| |
| 3358 | for i=0,1.02,.04 do | |
| 3359 | swait() | |
| 3360 | ff.BackgroundTransparency=i | |
| 3361 | ff.Rotation=ff.Rotation+3.5 | |
| 3362 | end | |
| 3363 | ff:Remove() | |
| 3364 | end),framiee) | |
| 3365 | ||
| 3366 | end | |
| 3367 | ||
| 3368 | ||
| 3369 | mouse.KeyDown:connect(function(Button) | |
| 3370 | if Button == "m" and attacking == false and Mode == "FL" then | |
| 3371 | Mode = "DM" | |
| 3372 | if math.random(1,2) == 1 then | |
| 3373 | SONG = 705302406 | |
| 3374 | else | |
| 3375 | SONG = 580367180 | |
| 3376 | end | |
| 3377 | MAINCOLOR = BrickColor.new("Persimmon")
| |
| 3378 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Pink").Color
| |
| 3379 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Persimmon").Color
| |
| 3380 | modeswitchgui() | |
| 3381 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3382 | if v:IsA("BasePart") then
| |
| 3383 | if v.Name == "NeonArmor" then | |
| 3384 | v.Color = BrickColor.new("Persimmon").Color
| |
| 3385 | end | |
| 3386 | end | |
| 3387 | end | |
| 3388 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3389 | if v:IsA("BasePart") then
| |
| 3390 | if v.Name == "NeonArmor" then | |
| 3391 | v.Color = BrickColor.new("Persimmon").Color
| |
| 3392 | end | |
| 3393 | end | |
| 3394 | end | |
| 3395 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3396 | if v:IsA("BasePart") then
| |
| 3397 | if v.Name == "NeonArmor" then | |
| 3398 | v.Color = BrickColor.new("Persimmon").Color
| |
| 3399 | end | |
| 3400 | end | |
| 3401 | end | |
| 3402 | TextUI.Text.Image = "rbxassetid://2969037917" | |
| 3403 | Speed = 20 | |
| 3404 | elseif Mode == "DM" and Button == "m" and attacking == false then | |
| 3405 | Mode = "FL" | |
| 3406 | SONG = 1886156023 | |
| 3407 | MAINCOLOR = BrickColor.new("Dark blue")
| |
| 3408 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Dark blue").Color
| |
| 3409 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Dark blue").Color
| |
| 3410 | modeswitchgui() | |
| 3411 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3412 | if v:IsA("BasePart") then
| |
| 3413 | if v.Name == "NeonArmor" then | |
| 3414 | v.Color = BrickColor.new("Dark blue").Color
| |
| 3415 | end | |
| 3416 | end | |
| 3417 | end | |
| 3418 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3419 | if v:IsA("BasePart") then
| |
| 3420 | if v.Name == "NeonArmor" then | |
| 3421 | v.Color = BrickColor.new("Dark blue").Color
| |
| 3422 | end | |
| 3423 | end | |
| 3424 | end | |
| 3425 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3426 | if v:IsA("BasePart") then
| |
| 3427 | if v.Name == "NeonArmor" then | |
| 3428 | v.Color = BrickColor.new("Dark blue").Color
| |
| 3429 | end | |
| 3430 | end | |
| 3431 | end | |
| 3432 | TextUI.Text.Image = "rbxassetid://2968625581" | |
| 3433 | Speed = 46 | |
| 3434 | end | |
| 3435 | ||
| 3436 | if Button == "m" and attacking == false then | |
| 3437 | if Mode == "T" then | |
| 3438 | Mode = "LS" | |
| 3439 | SONG = 2170417538 | |
| 3440 | MAINCOLOR = BrickColor.new("Toothpaste")
| |
| 3441 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Toothpaste").Color
| |
| 3442 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Toothpaste").Color
| |
| 3443 | modeswitchgui() | |
| 3444 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3445 | if v:IsA("BasePart") then
| |
| 3446 | if v.Name == "NeonArmor" then | |
| 3447 | v.Color = BrickColor.new("Toothpaste").Color
| |
| 3448 | end | |
| 3449 | end | |
| 3450 | end | |
| 3451 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3452 | if v:IsA("BasePart") then
| |
| 3453 | if v.Name == "NeonArmor" then | |
| 3454 | v.Color = BrickColor.new("Toothpaste").Color
| |
| 3455 | end | |
| 3456 | end | |
| 3457 | end | |
| 3458 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3459 | if v:IsA("BasePart") then
| |
| 3460 | if v.Name == "NeonArmor" then | |
| 3461 | v.Color = BrickColor.new("Toothpaste").Color
| |
| 3462 | end | |
| 3463 | end | |
| 3464 | end | |
| 3465 | TextUI.Text.Image = "rbxassetid://2866248691" | |
| 3466 | Speed = 67 | |
| 3467 | elseif Mode == "LS" then | |
| 3468 | SONG = 570332815 | |
| 3469 | Mode = "T" | |
| 3470 | Speed = 18 | |
| 3471 | MAINCOLOR = BrickColor.new("Deep orange")
| |
| 3472 | TextUI.Text.Image = "rbxassetid://2863687732" | |
| 3473 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3474 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3475 | modeswitchgui() | |
| 3476 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3477 | if v:IsA("BasePart") then
| |
| 3478 | if v.Name == "NeonArmor" then | |
| 3479 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3480 | end | |
| 3481 | end | |
| 3482 | end | |
| 3483 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3484 | if v:IsA("BasePart") then
| |
| 3485 | if v.Name == "NeonArmor" then | |
| 3486 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3487 | end | |
| 3488 | end | |
| 3489 | end | |
| 3490 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3491 | if v:IsA("BasePart") then
| |
| 3492 | if v.Name == "NeonArmor" then | |
| 3493 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3494 | end | |
| 3495 | end | |
| 3496 | end | |
| 3497 | end | |
| 3498 | end | |
| 3499 | ----------------------------------------------------------------- | |
| 3500 | if Button == "g" and attacking == false then | |
| 3501 | if Mode == "T" then | |
| 3502 | Mode = "ICE" | |
| 3503 | SONG = 1843801674 | |
| 3504 | MAINCOLOR = BrickColor.new("Pastel light blue")
| |
| 3505 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Pastel light blue").Color
| |
| 3506 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Pastel light blue").Color
| |
| 3507 | modeswitchgui() | |
| 3508 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3509 | if v:IsA("BasePart") then
| |
| 3510 | if v.Name == "NeonArmor" then | |
| 3511 | v.Color = BrickColor.new("Pastel light blue").Color
| |
| 3512 | end | |
| 3513 | end | |
| 3514 | end | |
| 3515 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3516 | if v:IsA("BasePart") then
| |
| 3517 | if v.Name == "NeonArmor" then | |
| 3518 | v.Color = BrickColor.new("Pastel light blue").Color
| |
| 3519 | end | |
| 3520 | end | |
| 3521 | end | |
| 3522 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3523 | if v:IsA("BasePart") then
| |
| 3524 | if v.Name == "NeonArmor" then | |
| 3525 | v.Color = BrickColor.new("Pastel light blue").Color
| |
| 3526 | end | |
| 3527 | end | |
| 3528 | end | |
| 3529 | TextUI.Text.Image = "rbxassetid://2967532910" | |
| 3530 | Speed = 14 | |
| 3531 | elseif Mode == "ICE" then | |
| 3532 | SONG = 570332815 | |
| 3533 | Mode = "T" | |
| 3534 | Speed = 18 | |
| 3535 | MAINCOLOR = BrickColor.new("Deep orange")
| |
| 3536 | TextUI.Text.Image = "rbxassetid://2863687732" | |
| 3537 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3538 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3539 | modeswitchgui() | |
| 3540 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3541 | if v:IsA("BasePart") then
| |
| 3542 | if v.Name == "NeonArmor" then | |
| 3543 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3544 | end | |
| 3545 | end | |
| 3546 | end | |
| 3547 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3548 | if v:IsA("BasePart") then
| |
| 3549 | if v.Name == "NeonArmor" then | |
| 3550 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3551 | end | |
| 3552 | end | |
| 3553 | end | |
| 3554 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3555 | if v:IsA("BasePart") then
| |
| 3556 | if v.Name == "NeonArmor" then | |
| 3557 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3558 | end | |
| 3559 | end | |
| 3560 | end | |
| 3561 | end | |
| 3562 | end | |
| 3563 | ----------------------------------------------------------------- | |
| 3564 | if Button == "f" and attacking == false then | |
| 3565 | if Mode == "T" then | |
| 3566 | Mode = "FL" | |
| 3567 | SONG = 1886156023 | |
| 3568 | MAINCOLOR = BrickColor.new("Dark blue")
| |
| 3569 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Dark blue").Color
| |
| 3570 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Dark blue").Color
| |
| 3571 | modeswitchgui() | |
| 3572 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3573 | if v:IsA("BasePart") then
| |
| 3574 | if v.Name == "NeonArmor" then | |
| 3575 | v.Color = BrickColor.new("Dark blue").Color
| |
| 3576 | end | |
| 3577 | end | |
| 3578 | end | |
| 3579 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3580 | if v:IsA("BasePart") then
| |
| 3581 | if v.Name == "NeonArmor" then | |
| 3582 | v.Color = BrickColor.new("Dark blue").Color
| |
| 3583 | end | |
| 3584 | end | |
| 3585 | end | |
| 3586 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3587 | if v:IsA("BasePart") then
| |
| 3588 | if v.Name == "NeonArmor" then | |
| 3589 | v.Color = BrickColor.new("Dark blue").Color
| |
| 3590 | end | |
| 3591 | end | |
| 3592 | end | |
| 3593 | TextUI.Text.Image = "rbxassetid://2968625581" | |
| 3594 | Speed = 46 | |
| 3595 | elseif Mode == "FL" then | |
| 3596 | SONG = 570332815 | |
| 3597 | Mode = "T" | |
| 3598 | Speed = 18 | |
| 3599 | MAINCOLOR = BrickColor.new("Deep orange")
| |
| 3600 | TextUI.Text.Image = "rbxassetid://2863687732" | |
| 3601 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3602 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3603 | modeswitchgui() | |
| 3604 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3605 | if v:IsA("BasePart") then
| |
| 3606 | if v.Name == "NeonArmor" then | |
| 3607 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3608 | end | |
| 3609 | end | |
| 3610 | end | |
| 3611 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3612 | if v:IsA("BasePart") then
| |
| 3613 | if v.Name == "NeonArmor" then | |
| 3614 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3615 | end | |
| 3616 | end | |
| 3617 | end | |
| 3618 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3619 | if v:IsA("BasePart") then
| |
| 3620 | if v.Name == "NeonArmor" then | |
| 3621 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3622 | end | |
| 3623 | end | |
| 3624 | end | |
| 3625 | end | |
| 3626 | end | |
| 3627 | ||
| 3628 | ----------------------------------------------------------------- | |
| 3629 | if Button == "n" and attacking == false then | |
| 3630 | if Mode == "T" then | |
| 3631 | Mode = "G" | |
| 3632 | SONG = 930541401 | |
| 3633 | swait(1) | |
| 3634 | modeswitchgui() | |
| 3635 | elseif Mode == "G" then | |
| 3636 | SONG = 570332815 | |
| 3637 | Mode = "T" | |
| 3638 | modeswitchgui() | |
| 3639 | end | |
| 3640 | end | |
| 3641 | ----------------------------------------------------------------- | |
| 3642 | if Button == "b" and attacking == false then | |
| 3643 | ||
| 3644 | if Mode == "T" then | |
| 3645 | Mode = "R" | |
| 3646 | Speed = 47 | |
| 3647 | SONG = 1988896150 | |
| 3648 | swait(1) | |
| 3649 | modeswitchgui() | |
| 3650 | elseif Mode == "R" then | |
| 3651 | SONG = 570332815 | |
| 3652 | Speed = 18 | |
| 3653 | Mode = "T" | |
| 3654 | modeswitchgui() | |
| 3655 | end | |
| 3656 | end | |
| 3657 | ----------------------------------------------------------------- | |
| 3658 | if Button == "j" and attacking == false then | |
| 3659 | if Mode == "T" then | |
| 3660 | Mode = "N" | |
| 3661 | MAINCOLOR = BRICKC'Lime green' | |
| 3662 | Speed = 32 | |
| 3663 | SONG = 566809627 | |
| 3664 | swait(1) | |
| 3665 | modeswitchgui() | |
| 3666 | elseif Mode == "N" then | |
| 3667 | SONG = 570332815 | |
| 3668 | Speed = 18 | |
| 3669 | Mode = "T" | |
| 3670 | MAINCOLOR = BRICKC'Lime green' | |
| 3671 | modeswitchgui() | |
| 3672 | end | |
| 3673 | end | |
| 3674 | ----------------------------------------------------------- | |
| 3675 | if Button == "h" and attacking == false then | |
| 3676 | if Mode == "T" then | |
| 3677 | Mode = "TP" | |
| 3678 | SONG = 631314940 | |
| 3679 | MAINCOLOR = BrickColor.new("Institutional white")
| |
| 3680 | MainFrame2.Cube1.BackgroundColor3=C3(1,1,1) | |
| 3681 | MainFrame2.Cube2.BackgroundColor3=C3(1,1,1) | |
| 3682 | modeswitchgui() | |
| 3683 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3684 | if v:IsA("BasePart") then
| |
| 3685 | if v.Name == "NeonArmor" then | |
| 3686 | v.Color = C3(1,1,1) | |
| 3687 | end | |
| 3688 | end | |
| 3689 | end | |
| 3690 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3691 | if v:IsA("BasePart") then
| |
| 3692 | if v.Name == "NeonArmor" then | |
| 3693 | v.Color = C3(1,1,1) | |
| 3694 | end | |
| 3695 | end | |
| 3696 | end | |
| 3697 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3698 | if v:IsA("BasePart") then
| |
| 3699 | if v.Name == "NeonArmor" then | |
| 3700 | v.Color = C3(1,1,1) | |
| 3701 | end | |
| 3702 | end | |
| 3703 | end | |
| 3704 | TextUI.Text.Image = "rbxassetid://2878494513" | |
| 3705 | Speed = 89 | |
| 3706 | elseif Mode == "TP" then | |
| 3707 | SONG = 570332815 | |
| 3708 | Mode = "T" | |
| 3709 | Speed = 18 | |
| 3710 | MAINCOLOR = BrickColor.new("Deep orange")
| |
| 3711 | TextUI.Text.Image = "rbxassetid://2863687732" | |
| 3712 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3713 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3714 | modeswitchgui() | |
| 3715 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3716 | if v:IsA("BasePart") then
| |
| 3717 | if v.Name == "NeonArmor" then | |
| 3718 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3719 | end | |
| 3720 | end | |
| 3721 | end | |
| 3722 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3723 | if v:IsA("BasePart") then
| |
| 3724 | if v.Name == "NeonArmor" then | |
| 3725 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3726 | end | |
| 3727 | end | |
| 3728 | end | |
| 3729 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3730 | if v:IsA("BasePart") then
| |
| 3731 | if v.Name == "NeonArmor" then | |
| 3732 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3733 | end | |
| 3734 | end | |
| 3735 | end | |
| 3736 | end | |
| 3737 | end | |
| 3738 | ----------------------------------------------------------- | |
| 3739 | if Button == "q" and attacking == false then | |
| 3740 | if Mode == "T" then | |
| 3741 | Mode = "MH" | |
| 3742 | SONG = 1356751414 | |
| 3743 | MAINCOLOR = BrickColor.new("Really red")
| |
| 3744 | MainFrame2.Cube1.BackgroundColor3=C3(1,0,0) | |
| 3745 | MainFrame2.Cube2.BackgroundColor3=C3(1,0,0) | |
| 3746 | modeswitchgui() | |
| 3747 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3748 | if v:IsA("BasePart") then
| |
| 3749 | if v.Name == "NeonArmor" then | |
| 3750 | v.Color = C3(1,0,0) | |
| 3751 | end | |
| 3752 | end | |
| 3753 | end | |
| 3754 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3755 | if v:IsA("BasePart") then
| |
| 3756 | if v.Name == "NeonArmor" then | |
| 3757 | v.Color = C3(1,0,0) | |
| 3758 | end | |
| 3759 | end | |
| 3760 | end | |
| 3761 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3762 | if v:IsA("BasePart") then
| |
| 3763 | if v.Name == "NeonArmor" then | |
| 3764 | v.Color = C3(1,0,0) | |
| 3765 | end | |
| 3766 | end | |
| 3767 | end | |
| 3768 | TextUI.Text.Image = "rbxassetid://2970613902" | |
| 3769 | Speed = 32 | |
| 3770 | elseif Mode == "MH" then | |
| 3771 | SONG = 570332815 | |
| 3772 | Mode = "T" | |
| 3773 | Speed = 18 | |
| 3774 | MAINCOLOR = BrickColor.new("Deep orange")
| |
| 3775 | TextUI.Text.Image = "rbxassetid://2863687732" | |
| 3776 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3777 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3778 | modeswitchgui() | |
| 3779 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3780 | if v:IsA("BasePart") then
| |
| 3781 | if v.Name == "NeonArmor" then | |
| 3782 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3783 | end | |
| 3784 | end | |
| 3785 | end | |
| 3786 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3787 | if v:IsA("BasePart") then
| |
| 3788 | if v.Name == "NeonArmor" then | |
| 3789 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3790 | end | |
| 3791 | end | |
| 3792 | end | |
| 3793 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3794 | if v:IsA("BasePart") then
| |
| 3795 | if v.Name == "NeonArmor" then | |
| 3796 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3797 | end | |
| 3798 | end | |
| 3799 | end | |
| 3800 | end | |
| 3801 | end | |
| 3802 | ----------------------------------------------------------- | |
| 3803 | if Button == "v" and attacking == false then | |
| 3804 | if Mode == "T" then | |
| 3805 | Mode = "MN" | |
| 3806 | SONG = 901719740 | |
| 3807 | MAINCOLOR = BrickColor.new("Really blue")
| |
| 3808 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Really blue").Color
| |
| 3809 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Really blue").Color
| |
| 3810 | modeswitchgui() | |
| 3811 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3812 | if v:IsA("BasePart") then
| |
| 3813 | if v.Name == "NeonArmor" then | |
| 3814 | v.Color = BrickColor.new("Really blue").Color
| |
| 3815 | end | |
| 3816 | end | |
| 3817 | end | |
| 3818 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3819 | if v:IsA("BasePart") then
| |
| 3820 | if v.Name == "NeonArmor" then | |
| 3821 | v.Color = BrickColor.new("Really blue").Color
| |
| 3822 | end | |
| 3823 | end | |
| 3824 | end | |
| 3825 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3826 | if v:IsA("BasePart") then
| |
| 3827 | if v.Name == "NeonArmor" then | |
| 3828 | v.Color = BrickColor.new("Really blue").Color
| |
| 3829 | end | |
| 3830 | end | |
| 3831 | end | |
| 3832 | TextUI.Text.Image = "rbxassetid://2867768707" | |
| 3833 | Speed = 43 | |
| 3834 | elseif Mode == "MN" then | |
| 3835 | SONG = 570332815 | |
| 3836 | Mode = "T" | |
| 3837 | Speed = 18 | |
| 3838 | MAINCOLOR = BrickColor.new("Deep orange")
| |
| 3839 | TextUI.Text.Image = "rbxassetid://2863687732" | |
| 3840 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3841 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3842 | modeswitchgui() | |
| 3843 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3844 | if v:IsA("BasePart") then
| |
| 3845 | if v.Name == "NeonArmor" then | |
| 3846 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3847 | end | |
| 3848 | end | |
| 3849 | end | |
| 3850 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3851 | if v:IsA("BasePart") then
| |
| 3852 | if v.Name == "NeonArmor" then | |
| 3853 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3854 | end | |
| 3855 | end | |
| 3856 | end | |
| 3857 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3858 | if v:IsA("BasePart") then
| |
| 3859 | if v.Name == "NeonArmor" then | |
| 3860 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3861 | end | |
| 3862 | end | |
| 3863 | end | |
| 3864 | end | |
| 3865 | end | |
| 3866 | --------------------------------------------------------- | |
| 3867 | if Button == "l" and attacking == false then | |
| 3868 | if Mode == "T" then | |
| 3869 | Mode = "H" | |
| 3870 | SONG = 2781731664 | |
| 3871 | MAINCOLOR = BrickColor.new("Deep orange")
| |
| 3872 | MainFrame2.Cube1.BackgroundColor3=C3(225/255, 146/255, 0/255) | |
| 3873 | MainFrame2.Cube2.BackgroundColor3=C3(225/255, 146/255, 0/255) | |
| 3874 | modeswitchgui() | |
| 3875 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3876 | if v:IsA("BasePart") then
| |
| 3877 | if v.Name == "NeonArmor" then | |
| 3878 | v.Color = C3(225/255, 146/255, 0/255) | |
| 3879 | end | |
| 3880 | end | |
| 3881 | end | |
| 3882 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3883 | if v:IsA("BasePart") then
| |
| 3884 | if v.Name == "NeonArmor" then | |
| 3885 | v.Color = C3(225/255, 146/255, 0/255) | |
| 3886 | end | |
| 3887 | end | |
| 3888 | end | |
| 3889 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3890 | if v:IsA("BasePart") then
| |
| 3891 | if v.Name == "NeonArmor" then | |
| 3892 | v.Color = C3(225/255, 146/255, 0/255) | |
| 3893 | end | |
| 3894 | end | |
| 3895 | end | |
| 3896 | TextUI.Text.Image = "rbxassetid://2871051104" | |
| 3897 | Speed = 36 | |
| 3898 | elseif Mode == "H" then | |
| 3899 | SONG = 570332815 | |
| 3900 | Mode = "T" | |
| 3901 | Speed = 18 | |
| 3902 | MAINCOLOR = BrickColor.new("Deep orange")
| |
| 3903 | TextUI.Text.Image = "rbxassetid://2863687732" | |
| 3904 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3905 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3906 | modeswitchgui() | |
| 3907 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3908 | if v:IsA("BasePart") then
| |
| 3909 | if v.Name == "NeonArmor" then | |
| 3910 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3911 | end | |
| 3912 | end | |
| 3913 | end | |
| 3914 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3915 | if v:IsA("BasePart") then
| |
| 3916 | if v.Name == "NeonArmor" then | |
| 3917 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3918 | end | |
| 3919 | end | |
| 3920 | end | |
| 3921 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3922 | if v:IsA("BasePart") then
| |
| 3923 | if v.Name == "NeonArmor" then | |
| 3924 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3925 | end | |
| 3926 | end | |
| 3927 | end | |
| 3928 | end | |
| 3929 | end | |
| 3930 | --------------------------------------------------------- | |
| 3931 | if Button == "k" and attacking == false then | |
| 3932 | if Mode == "T" then | |
| 3933 | Mode = "A" | |
| 3934 | SONG = 2834885098 | |
| 3935 | MAINCOLOR = BrickColor.new("New Yeller")
| |
| 3936 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("New Yeller").Color
| |
| 3937 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("New Yeller").Color
| |
| 3938 | modeswitchgui() | |
| 3939 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3940 | if v:IsA("BasePart") then
| |
| 3941 | if v.Name == "NeonArmor" then | |
| 3942 | v.Color = BrickColor.new("New Yeller").Color
| |
| 3943 | end | |
| 3944 | end | |
| 3945 | end | |
| 3946 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3947 | if v:IsA("BasePart") then
| |
| 3948 | if v.Name == "NeonArmor" then | |
| 3949 | v.Color = BrickColor.new("New Yeller").Color
| |
| 3950 | end | |
| 3951 | end | |
| 3952 | end | |
| 3953 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3954 | if v:IsA("BasePart") then
| |
| 3955 | if v.Name == "NeonArmor" then | |
| 3956 | v.Color = BrickColor.new("New Yeller").Color
| |
| 3957 | end | |
| 3958 | end | |
| 3959 | end | |
| 3960 | TextUI.Text.Image = "rbxassetid://2871442888" | |
| 3961 | Speed = 23 | |
| 3962 | elseif Mode == "A" then | |
| 3963 | SONG = 570332815 | |
| 3964 | Mode = "T" | |
| 3965 | Speed = 18 | |
| 3966 | MAINCOLOR = BrickColor.new("Deep orange")
| |
| 3967 | TextUI.Text.Image = "rbxassetid://2863687732" | |
| 3968 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3969 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 3970 | modeswitchgui() | |
| 3971 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 3972 | if v:IsA("BasePart") then
| |
| 3973 | if v.Name == "NeonArmor" then | |
| 3974 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3975 | end | |
| 3976 | end | |
| 3977 | end | |
| 3978 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 3979 | if v:IsA("BasePart") then
| |
| 3980 | if v.Name == "NeonArmor" then | |
| 3981 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3982 | end | |
| 3983 | end | |
| 3984 | end | |
| 3985 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 3986 | if v:IsA("BasePart") then
| |
| 3987 | if v.Name == "NeonArmor" then | |
| 3988 | v.Color = BrickColor.new("Deep orange").Color
| |
| 3989 | end | |
| 3990 | end | |
| 3991 | end | |
| 3992 | end | |
| 3993 | end | |
| 3994 | ---------------------ATTACKS-------------------------- | |
| 3995 | if Button == "z" and attacking == false and Mode == "G" then | |
| 3996 | glitchattack() | |
| 3997 | end | |
| 3998 | ||
| 3999 | if Button == "z" and attacking == false and Mode == "LS" then | |
| 4000 | Daash() | |
| 4001 | end | |
| 4002 | ||
| 4003 | if Button == "x" and attacking == false and Mode == "MN" then | |
| 4004 | LunarAttack() | |
| 4005 | end | |
| 4006 | ||
| 4007 | if Button == "z" and attacking == false and Mode == "MN" then | |
| 4008 | LunarAttackA() | |
| 4009 | end | |
| 4010 | ||
| 4011 | if Button == "z" and attacking == false and Mode == "H" then | |
| 4012 | SolarAttack() | |
| 4013 | end | |
| 4014 | ||
| 4015 | if Button == "z" and attacking == false and Mode == "N" then | |
| 4016 | NuclearExtended() | |
| 4017 | end | |
| 4018 | if Button == "x" and attacking == false and Mode == "N" then | |
| 4019 | NuclearGrab() | |
| 4020 | end | |
| 4021 | if Button == "c" and attacking == false and Mode == "N" then | |
| 4022 | NuclearTeleport() | |
| 4023 | end | |
| 4024 | if Button == "z" and attacking == false and Mode == "ICE" then | |
| 4025 | CrystalizedFields() | |
| 4026 | end | |
| 4027 | if Button == "z" and attacking == false and Mode == "TP" then | |
| 4028 | kaboom() | |
| 4029 | end | |
| 4030 | if Button == "x" and attacking == false and Mode == "TP" then | |
| 4031 | spinnyboi() | |
| 4032 | end | |
| 4033 | if Button == "z" and attacking == false and Mode == "A" then | |
| 4034 | AAAA() | |
| 4035 | end | |
| 4036 | if Button == "z" and attacking == false and Mode == "FL" then | |
| 4037 | --FL is meant to make lots of combos | |
| 4038 | --so yeah | |
| 4039 | --also make techno effects for the attacks | |
| 4040 | --its kinda related to slush invaders | |
| 4041 | --x5 | |
| 4042 | end | |
| 4043 | ----------------TAUNTS----------------------------------------- | |
| 4044 | if Button == "p" and attacking == false then | |
| 4045 | if Chill == false then | |
| 4046 | Chill = true | |
| 4047 | elseif Chill == true then | |
| 4048 | Chill = false | |
| 4049 | end | |
| 4050 | end | |
| 4051 | end) | |
| 4052 | ||
| 4053 | local owakdoa=0 | |
| 4054 | function gagok() | |
| 4055 | local oawkwodkwad=math.random(0,100)/100 | |
| 4056 | local okaofwakf=math.random(60,100)/100 | |
| 4057 | local framiee=Instance.new("Frame",MainFrame2)
| |
| 4058 | framiee.AnchorPoint=Vector2.new(.5,.5) | |
| 4059 | framiee.Position=UDim2.new(oawkwodkwad,0,2,0) | |
| 4060 | framiee.BorderSizePixel=0 | |
| 4061 | framiee.BackgroundColor3=MainFrame2.Cube1.BackgroundColor3 | |
| 4062 | framiee.Size=UDim2.new(math.random(1,15)/100,0,okaofwakf,0) | |
| 4063 | coroutine.resume(coroutine.create(function(ff) | |
| 4064 | ff:TweenSize(UDim2.new(0,0,okaofwakf,0),"InOut","Quad",1,true) | |
| 4065 | ff:TweenPosition(UDim2.new(oawkwodkwad,0,-math.random(20,66)/100,0),"InOut","Quart",1.1,true) | |
| 4066 | game:GetService("Debris"):AddItem(ff,5)
| |
| 4067 | end),framiee) | |
| 4068 | ||
| 4069 | end | |
| 4070 | ||
| 4071 | local BOIE = 0 | |
| 4072 | ||
| 4073 | while true do | |
| 4074 | swait() | |
| 4075 | if Mode ~= "ICE" then | |
| 4076 | sne = sne + chaeng | |
| 4077 | else | |
| 4078 | sne = sne + 0.625 | |
| 4079 | end | |
| 4080 | timepoz = music.TimePosition | |
| 4081 | music.SoundId = "rbxassetid://"..SONG | |
| 4082 | if luna.Parent ~= nil then | |
| 4083 | sphere2(5,"Add",luna.CFrame,vt(0.525,0.525,0.525),0.001,0.001,0.001,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
| |
| 4084 | --sphere2(5,"Add",luna.CFrame*CFrame.new(math.random(-0.555,0.555),math.random(-0.555,0.555),math.random(-0.555,0.555)),vt(0.125,0.125,0.125),0.001,0.001,0.001,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
| |
| 4085 | end | |
| 4086 | --sphere2(5,"Add",luna.CFrame*CFrame.new(math.random(-0.5,0.5),math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.25,0.25,0.25),0.01,0.01,0.01,BrickColor.new("Bright blue"),BrickColor.new("Bright blue").Color)
| |
| 4087 | luna.CFrame = sorb.CFrame*CF(0,-0.75,0)*ANGLES(RAD(360*math.cos(sne/168)),math.rad(360*math.cos(sne/168)),math.rad(360*math.cos(sne/168))) | |
| 4088 | if Mode ~= "MN" then | |
| 4089 | luna.Parent = nil | |
| 4090 | elseif Mode == "MN" then | |
| 4091 | luna.Parent = char | |
| 4092 | end | |
| 4093 | if Mode == "T" then | |
| 4094 | music.Volume = 2 | |
| 4095 | elseif Mode == "LS" then | |
| 4096 | music.Volume = 5 | |
| 4097 | elseif Mode ~= "LS" and Mode ~= "T" then | |
| 4098 | music.Volume = 3.5 | |
| 4099 | end | |
| 4100 | if music.Parent ~= char.HumanoidRootPart then | |
| 4101 | music = Instance.new("Sound",char.HumanoidRootPart)
| |
| 4102 | music.SoundId = "rbxassetid://"..SONG | |
| 4103 | music.Looped = true | |
| 4104 | music.Pitch = 1 | |
| 4105 | if Mode == "T" then | |
| 4106 | music.Volume = 2 | |
| 4107 | elseif Mode == "LS" then | |
| 4108 | music.Volume = 5 | |
| 4109 | elseif Mode ~= "LS" and Mode ~= "T" then | |
| 4110 | music.Volume = 3.5 | |
| 4111 | end | |
| 4112 | music.TimePosition = timepoz | |
| 4113 | music:Resume() | |
| 4114 | end | |
| 4115 | if Mode ~= "G" then | |
| 4116 | TextUI.Text.Rotation = 2 *math.cos(sne/32) | |
| 4117 | else | |
| 4118 | TextUI.Text.Rotation = math.random(-2,2) | |
| 4119 | end | |
| 4120 | if Mode == "G" then | |
| 4121 | glitchval = math.random(1,255)/255 | |
| 4122 | if math.random(1,3) == 1 then | |
| 4123 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 4124 | if v:IsA("BasePart") then
| |
| 4125 | if v.Name == "NeonArmor" then | |
| 4126 | v.Material = "Slate" | |
| 4127 | v.Transparency = math.random(0.1,1.0) | |
| 4128 | v.Color = Color3.new(glitchval,glitchval,glitchval) | |
| 4129 | end | |
| 4130 | end | |
| 4131 | end | |
| 4132 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 4133 | if v:IsA("BasePart") then
| |
| 4134 | if v.Name == "NeonArmor" then | |
| 4135 | v.Material = "Slate" | |
| 4136 | v.Transparency = math.random(0.1,1.0) | |
| 4137 | v.Color = Color3.new(glitchval,glitchval,glitchval) | |
| 4138 | end | |
| 4139 | end | |
| 4140 | end | |
| 4141 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 4142 | if v:IsA("BasePart") then
| |
| 4143 | if v.Name == "NeonArmor" then | |
| 4144 | v.Material = "Slate" | |
| 4145 | v.Transparency = math.random(0.1,1.0) | |
| 4146 | v.Color = Color3.new(glitchval,glitchval,glitchval) | |
| 4147 | end | |
| 4148 | end | |
| 4149 | end | |
| 4150 | TextUI.Text.Image = "rbxassetid://2866315054" | |
| 4151 | else | |
| 4152 | if math.random(1,25) == 1 then | |
| 4153 | PixelBlockNeg(1,math.random(1,2),"Add",RootPart.CFrame*CFrame.new(math.random(-15,15),0,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),5,5,5,0.1,BrickColor.new("Institutional white"),-10)
| |
| 4154 | end | |
| 4155 | TextUI.Text.Image = "rbxassetid://2866314462" | |
| 4156 | MainFrame2.Cube1.BackgroundColor3= Color3.new(glitchval,glitchval,glitchval) | |
| 4157 | MainFrame2.Cube2.BackgroundColor3= Color3.new(glitchval,glitchval,glitchval) | |
| 4158 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 4159 | if v:IsA("BasePart") then
| |
| 4160 | if v.Name == "NeonArmor" then | |
| 4161 | v.Material = "Neon" | |
| 4162 | v.Transparency = 0 | |
| 4163 | v.Color = Color3.new(glitchval,glitchval,glitchval) | |
| 4164 | end | |
| 4165 | end | |
| 4166 | end | |
| 4167 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 4168 | if v:IsA("BasePart") then
| |
| 4169 | if v.Name == "NeonArmor" then | |
| 4170 | v.Material = "Neon" | |
| 4171 | v.Transparency = 0 | |
| 4172 | v.Color = Color3.new(glitchval,glitchval,glitchval) | |
| 4173 | end | |
| 4174 | end | |
| 4175 | end | |
| 4176 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 4177 | if v:IsA("BasePart") then
| |
| 4178 | if v.Name == "NeonArmor" then | |
| 4179 | v.Material = "Neon" | |
| 4180 | v.Transparency = 0 | |
| 4181 | v.Color = Color3.new(glitchval,glitchval,glitchval) | |
| 4182 | end | |
| 4183 | end | |
| 4184 | end | |
| 4185 | end | |
| 4186 | elseif Mode ~= "G" then | |
| 4187 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 4188 | if v:IsA("BasePart") then
| |
| 4189 | if v.Name == "NeonArmor" then | |
| 4190 | v.Material = "Neon" | |
| 4191 | v.Transparency = 0 | |
| 4192 | end | |
| 4193 | end | |
| 4194 | end | |
| 4195 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 4196 | if v:IsA("BasePart") then
| |
| 4197 | if v.Name == "NeonArmor" then | |
| 4198 | v.Material = "Neon" | |
| 4199 | v.Transparency = 0 | |
| 4200 | end | |
| 4201 | end | |
| 4202 | end | |
| 4203 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 4204 | if v:IsA("BasePart") then
| |
| 4205 | if v.Name == "NeonArmor" then | |
| 4206 | v.Material = "Neon" | |
| 4207 | v.Transparency = 0 | |
| 4208 | end | |
| 4209 | end | |
| 4210 | end | |
| 4211 | if Mode == "T" then | |
| 4212 | TextUI.Text.Image = "rbxassetid://2863687732" | |
| 4213 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 4214 | if v:IsA("BasePart") then
| |
| 4215 | if v.Name == "NeonArmor" then | |
| 4216 | v.Color = BrickColor.new("Deep orange").Color
| |
| 4217 | end | |
| 4218 | end | |
| 4219 | end | |
| 4220 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 4221 | if v:IsA("BasePart") then
| |
| 4222 | if v.Name == "NeonArmor" then | |
| 4223 | v.Color = BrickColor.new("Deep orange").Color
| |
| 4224 | end | |
| 4225 | end | |
| 4226 | end | |
| 4227 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 4228 | if v:IsA("BasePart") then
| |
| 4229 | if v.Name == "NeonArmor" then | |
| 4230 | v.Color = BrickColor.new("Deep orange").Color
| |
| 4231 | end | |
| 4232 | end | |
| 4233 | end | |
| 4234 | end | |
| 4235 | ||
| 4236 | if Mode == "N" then | |
| 4237 | if hitfloor ~= nil then | |
| 4238 | sphere2(1.5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,0.5,1),0.1,0.01,0.1,BrickColor.new("Lime green"),Color3.new(0,1,0))
| |
| 4239 | end | |
| 4240 | if math.random(1,2) == 1 then | |
| 4241 | TextUI.Text.Image = "rbxassetid://2874580999" | |
| 4242 | else | |
| 4243 | TextUI.Text.Image = "rbxassetid://2874633415" | |
| 4244 | end | |
| 4245 | MainFrame2.Cube1.BackgroundColor3=Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15)) | |
| 4246 | MainFrame2.Cube2.BackgroundColor3=Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15)) | |
| 4247 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 4248 | if v:IsA("BasePart") then
| |
| 4249 | if v.Name == "NeonArmor" then | |
| 4250 | v.Color = Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15)) | |
| 4251 | end | |
| 4252 | end | |
| 4253 | end | |
| 4254 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 4255 | if v:IsA("BasePart") then
| |
| 4256 | if v.Name == "NeonArmor" then | |
| 4257 | v.Color = Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15)) | |
| 4258 | end | |
| 4259 | end | |
| 4260 | end | |
| 4261 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 4262 | if v:IsA("BasePart") then
| |
| 4263 | if v.Name == "NeonArmor" then | |
| 4264 | v.Color = Color3.fromRGB(15 + math.random(-15,15), 158 + math.random(-30,30), 15 + math.random(-15,15)) | |
| 4265 | end | |
| 4266 | end | |
| 4267 | end | |
| 4268 | end | |
| 4269 | end | |
| 4270 | if Mode == "R" then | |
| 4271 | TextUI.Text.Image = "rbxassetid://2866469300" | |
| 4272 | TextUI.Text.ImageColor3 = Color3.new(r/255,g/255,b/255) | |
| 4273 | MainFrame2.Cube1.BackgroundColor3=Color3.new(r/255,g/255,b/255) | |
| 4274 | MainFrame2.Cube2.BackgroundColor3=Color3.new(r/255,g/255,b/255) | |
| 4275 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 4276 | if v:IsA("BasePart") then
| |
| 4277 | if v.Name == "NeonArmor" then | |
| 4278 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4279 | end | |
| 4280 | end | |
| 4281 | end | |
| 4282 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 4283 | if v:IsA("BasePart") then
| |
| 4284 | if v.Name == "NeonArmor" then | |
| 4285 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4286 | end | |
| 4287 | end | |
| 4288 | end | |
| 4289 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 4290 | if v:IsA("BasePart") then
| |
| 4291 | if v.Name == "NeonArmor" then | |
| 4292 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
| 4293 | end | |
| 4294 | end | |
| 4295 | end | |
| 4296 | elseif Mode ~= "R" then | |
| 4297 | TextUI.Text.ImageColor3 = Color3.new(255/255,255/255,255/255) | |
| 4298 | if Mode == "T" then | |
| 4299 | MainFrame2.Cube1.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 4300 | MainFrame2.Cube2.BackgroundColor3=BrickColor.new("Deep orange").Color
| |
| 4301 | TextUI.Text.Image = "rbxassetid://2863687732" | |
| 4302 | for i,v in pairs(TurboCore:GetChildren()) do | |
| 4303 | if v:IsA("BasePart") then
| |
| 4304 | if v.Name == "NeonArmor" then | |
| 4305 | v.Color = BrickColor.new("Deep orange").Color
| |
| 4306 | end | |
| 4307 | end | |
| 4308 | end | |
| 4309 | for i,v in pairs(gauntlet:GetChildren()) do | |
| 4310 | if v:IsA("BasePart") then
| |
| 4311 | if v.Name == "NeonArmor" then | |
| 4312 | v.Color = BrickColor.new("Deep orange").Color
| |
| 4313 | end | |
| 4314 | end | |
| 4315 | end | |
| 4316 | for i,v in pairs(gauntlet2:GetChildren()) do | |
| 4317 | if v:IsA("BasePart") then
| |
| 4318 | if v.Name == "NeonArmor" then | |
| 4319 | v.Color = BrickColor.new("Deep orange").Color
| |
| 4320 | end | |
| 4321 | end | |
| 4322 | end | |
| 4323 | end | |
| 4324 | end | |
| 4325 | sine = sne | |
| 4326 | if Mode == "ICE" then | |
| 4327 | BOIE = BOIE + 1 | |
| 4328 | if BOIE == 32 then | |
| 4329 | BOIE = 0 | |
| 4330 | CrystalEffect(2.2,math.random(-6,6),"Add",root.CFrame*CFrame.new(math.random(-125,125),25,math.random(-125,125))*CFrame.Angles(math.rad(math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),50,50,50,-0.03,0) | |
| 4331 | if math.random(1,4) == 1 then | |
| 4332 | CrystalEffect(2.2,math.random(-6,6),"Add",root.CFrame*CFrame.new(math.random(-125,125),25,math.random(-125,125))*CFrame.Angles(math.rad(math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),50,50,50,-0.03,0) | |
| 4333 | end | |
| 4334 | end | |
| 4335 | end | |
| 4336 | ||
| 4337 | ||
| 4338 | ||
| 4339 | --TriangleEffect(7.5,0,"Add",root.CFrame*CFrame.Angles(math.rad(sne),math.rad(sne),math.rad(sne)),0.03,0) | |
| 4340 | ||
| 4341 | ----------SALVO'S GUI--------- | |
| 4342 | MainFrame2.ImageLabel.Image = TextUI.Text.Image | |
| 4343 | MainFrame2.ImageLabel.Rotation = 5 * math.cos(sine/31) | |
| 4344 | MainFrame2.ImageLabel.ImageColor3 = TextUI.Text.ImageColor3 | |
| 4345 | MainFrame2.Cube1.Rotation = MainFrame2.Cube1.Rotation + (1+.9*math.sin(sine / 31) + music.PlaybackLoudness/123) | |
| 4346 | MainFrame2.Cube2.Rotation = MainFrame2.Cube2.Rotation + (2-.9*math.cos(sine / 31) + music.PlaybackLoudness/88) | |
| 4347 | MainFrame2.Cube1.Size = UDim2.new(0,200 + music.PlaybackLoudness/14,0,200 + music.PlaybackLoudness/14) | |
| 4348 | MainFrame2.Cube2.Size = UDim2.new(0,160 + music.PlaybackLoudness/21,0,160 + music.PlaybackLoudness/21) | |
| 4349 | ||
| 4350 | local bruh1=MainFrame2.Cube1.BackgroundColor3.r | |
| 4351 | local bruh2=MainFrame2.Cube1.BackgroundColor3.g | |
| 4352 | local bruh3=MainFrame2.Cube1.BackgroundColor3.b | |
| 4353 | ||
| 4354 | MainFrame2.Cube1.mg1.ImageColor3=Color3.new(bruh1-(.15+.2*math.sin(sine/19)),bruh2-(.15+.2*math.sin(sine/19)),bruh3-(.15+.2*math.sin(sine/19))) | |
| 4355 | MainFrame2.Cube1.mg2.ImageColor3=Color3.new(bruh1-(.15+.2*math.sin(sine/19)),bruh2-(.15+.2*math.sin(sine/19)),bruh3-(.15+.2*math.sin(sine/19))) | |
| 4356 | MainFrame2.Cube1.mg3.ImageColor3=Color3.new(bruh1-(.15+.2*math.sin(sine/19)),bruh2-(.15+.2*math.sin(sine/19)),bruh3-(.15+.2*math.sin(sine/19))) | |
| 4357 | MainFrame2.Cube1.mg4.ImageColor3=Color3.new(bruh1-(.15+.2*math.sin(sine/19)),bruh2-(.15+.2*math.sin(sine/19)),bruh3-(.15+.2*math.sin(sine/19))) | |
| 4358 | MainFrame2.Cube2.mg1.ImageColor3=Color3.new(bruh1-(.15+.22*math.cos(sine/18)),bruh2-(.15+.22*math.cos(sine/18)),bruh3-(.15+.22*math.cos(sine/18))) | |
| 4359 | MainFrame2.Cube2.mg2.ImageColor3=Color3.new(bruh1-(.15+.22*math.cos(sine/18)),bruh2-(.15+.22*math.cos(sine/18)),bruh3-(.15+.22*math.cos(sine/18))) | |
| 4360 | MainFrame2.Cube2.mg3.ImageColor3=Color3.new(bruh1-(.15+.22*math.cos(sine/18)),bruh2-(.15+.22*math.cos(sine/18)),bruh3-(.15+.22*math.cos(sine/18))) | |
| 4361 | MainFrame2.Cube2.mg4.ImageColor3=Color3.new(bruh1-(.15+.22*math.cos(sine/18)),bruh2-(.15+.22*math.cos(sine/18)),bruh3-(.15+.22*math.cos(sine/18))) | |
| 4362 | ||
| 4363 | SideFrame2.BorderColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4364 | SideFrame2.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4365 | SideFrame3.BorderColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4366 | SideFrame3.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4367 | SideFrame4.BorderColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4368 | SideFrame4.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4369 | SideFrame5.BorderColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4370 | SideFrame5.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4371 | SideFrame0.BorderColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4372 | SideFrame0.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4373 | SideFrame_0.BorderColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4374 | SideFrame_0.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4375 | SideFrame1.BorderColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4376 | SideFrame1.BackgroundColor3 = MainFrame2.Cube1.BackgroundColor3 | |
| 4377 | SideFrame_0.Size = UDim2.new(0,35+music.PlaybackLoudness/16,0,15) | |
| 4378 | SideFrame0.Size = UDim2.new(0,45+music.PlaybackLoudness/14,0,15) | |
| 4379 | SideFrame1.Size = UDim2.new(0,55+music.PlaybackLoudness/12,0,15) | |
| 4380 | SideFrame2.Size = UDim2.new(0,65+music.PlaybackLoudness/10,0,15) | |
| 4381 | SideFrame3.Size = UDim2.new(0,75+music.PlaybackLoudness/8,0,15) | |
| 4382 | SideFrame4.Size = UDim2.new(0,85+music.PlaybackLoudness/6,0,15) | |
| 4383 | SideFrame5.Size = UDim2.new(0,95+music.PlaybackLoudness/4,0,15) | |
| 4384 | ||
| 4385 | owakdoa=owakdoa+1 | |
| 4386 | if owakdoa>=4 then | |
| 4387 | owakdoa=0 | |
| 4388 | gagok() | |
| 4389 | end | |
| 4390 | --------------------------------------------------------------------- | |
| 4391 | if char:FindFirstChild("CharacterMesh") then
| |
| 4392 | char.CharacterMesh:Remove() | |
| 4393 | end | |
| 4394 | if char:FindFirstChild("Animate") then
| |
| 4395 | char.Animate:Remove() | |
| 4396 | end | |
| 4397 | if char:FindFirstChild("Animator") then
| |
| 4398 | char.Animate:Remove() | |
| 4399 | end | |
| 4400 | if char:FindFirstChild("ForceField") then
| |
| 4401 | char.ForceField:Remove() | |
| 4402 | end | |
| 4403 | if char.Humanoid:FindFirstChild("Animate") then
| |
| 4404 | char.Humanoid.Animate:Remove() | |
| 4405 | end | |
| 4406 | if char.Humanoid:FindFirstChild("Animator") then
| |
| 4407 | char.Humanoid.Animator:Remove() | |
| 4408 | end | |
| 4409 | char.Humanoid.WalkSpeed = Speed | |
| 4410 | char.Humanoid.JumpPower = 90 | |
| 4411 | local TorsoVelocity=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 4412 | local velderp=RootPart.Velocity.y | |
| 4413 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
| 4414 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
| 4415 | ANIMATION="Jump" | |
| 4416 | if attacking==false then | |
| 4417 | RightH.C0=clerp(RightH.C0,cf(1,-0.35 - 0.05 * math.cos(sne / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
| 4418 | LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
| 4419 | RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sne / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
| 4420 | Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
| 4421 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sne / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1) | |
| 4422 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sne / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1) | |
| 4423 | end | |
| 4424 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
| 4425 | ANIMATION="Fall" | |
| 4426 | if attacking==false then | |
| 4427 | RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
| 4428 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1) | |
| 4429 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10),math.rad(0),math.rad(0)),.1) | |
| 4430 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1) | |
| 4431 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1) | |
| 4432 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1) | |
| 4433 | end | |
| 4434 | elseif TorsoVelocity<1 and hitfloor~=nil then | |
| 4435 | ANIMATION="Idle" | |
| 4436 | if attacking==false then | |
| 4437 | if Chill == false then | |
| 4438 | if Mode == "T" then | |
| 4439 | --RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.08 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 4440 | --LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.08 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 4441 | --RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.085 * math.cos(sne / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 4442 | --Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 4443 | RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 3 * math.cos(sne / 32))),.1) | |
| 4444 | LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 3 * math.cos(sne / 32))),.1) | |
| 4445 | RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sne / 32))*angles(math.rad(0 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-1)),.1) | |
| 4446 | Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(5 - 2 * math.cos(sne / 37)),math.rad(0 + 1 * math.cos(sne / 58)),math.rad(1 + 2 * math.cos(sne / 53))),.1) | |
| 4447 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(2 + 5 * math.cos(sne / 74)),math.rad(1 - 3 * math.cos(sne / 53)),math.rad(14 + 3 * math.cos(sne / 45))),.1) | |
| 4448 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(5 - 3 * math.cos(sne / 73)),math.rad(2 - 1 * math.cos(sne / 55)),math.rad(-18 - 3 * math.cos(sne / 45))),.1) | |
| 4449 | --RightS.C0 = clerp2(RightS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12+3*math.cos(sne/32))) * CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.15 / 3) | |
| 4450 | --LeftS.C0 = clerp2(LeftS.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12-3*math.cos(sne/32))) * CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.15 / 3) | |
| 4451 | elseif Mode == "LS" then | |
| 4452 | RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5 + 0.5 * math.cos(sne / 34)),math.rad(6 + 3 * math.cos(sne / 34)),math.rad(0 - 1 * math.cos(sne / 34))),.1) | |
| 4453 | LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 + 0.25 * math.cos(sne / 34)),math.rad(8 - 2 * math.cos(sne / 34)),math.rad(0 + 1 * math.cos(sne / 34))),.1) | |
| 4454 | RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.01 * math.cos(sne / 34),0 + 0.05 * math.cos(sne / 28))*angles(math.rad(0 - 1 * math.cos(sne / 34)),math.rad(0),math.rad(18 + 3 * math.cos(sne / 65))),.1) | |
| 4455 | Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(12 - 3.5 * math.cos(sne / 28)),math.rad(3 * math.cos(sne / 32) + 0.5 * math.cos(sne / 28)),math.rad(-18 - 3 * math.cos(sne / 65))),.1) | |
| 4456 | RW.C0=clerp(RW.C0,cf(0.85,0.4 + 0.06 * math.cos(sne / 28),-0.65)*angles(math.rad(36 - 3 * math.cos(sne / 34)),math.rad(-2 + 2 * math.cos(sne / 45)),math.rad(-88 + 2 * math.cos(sne / 28))),.1) | |
| 4457 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.06 * math.cos(sne / 28),-0.65)*angles(math.rad(46 + 3 * math.cos(sne / 49)),math.rad(2 - 2 * math.cos(sne / 52)),math.rad(88 - 3 * math.cos(sne / 39))),.1) | |
| 4458 | elseif Mode == "DM" then -- GodzPlaysRB's Floppy doppy animation | |
| 4459 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 15 * math.cos(sine / 28)),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
| 4460 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 15 * math.cos(sine / 28)),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
| 4461 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 + 15 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
| 4462 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 7 * math.cos(sine / 28)),math.rad(0 + 10 * math.cos(sine / 28)),math.rad(0)),.1) | |
| 4463 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 1 * math.cos(sine / 28)),math.rad(0 + 25 * math.cos(sine / 28)),math.rad(20 - 5 * math.sin(sine / 28))),.1) | |
| 4464 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 2 * math.cos(sine / 28)),math.rad(0 - 27 * math.cos(sine / 28)),math.rad(-20 + 5 * math.sin(sine / 28))),.1) | |
| 4465 | elseif Mode == "G" then | |
| 4466 | RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 2 * math.cos(sne / 32))),.1) | |
| 4467 | LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 2 * math.cos(sne / 32))),.1) | |
| 4468 | RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.02 * math.cos(sne / 32),-0.1 + 0.05 * math.cos(sne / 32))*angles(math.rad(0 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-11)),.1) | |
| 4469 | Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(11 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sne / 28)),math.rad(0),math.rad(31 + 6.5 * math.cos(sne / 32.5))),.1) | |
| 4470 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(1,3)),math.rad(-5),math.rad(15 + 7.5 * math.cos(sne / 32.5))),.1) | |
| 4471 | LW.C0=clerp(LW.C0,cf(-1.5+0.05*math.cos(sne/32),0.65-.05*math.cos(sne/32),0)*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(math.random(136,159)),math.rad(5),math.rad(29 - 8.5 * math.cos(sne / 32.5))),.1) | |
| 4472 | elseif Mode == "MH" then | |
| 4473 | RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(24 - 2 * math.cos(sne / 32))),.1) | |
| 4474 | LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(-24 + 2 * math.cos(sne / 32))),.1) | |
| 4475 | RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0 + 0.02 * math.cos(sne / 32),-0.1 + 0.05 * math.cos(sne / 32))*angles(math.rad(24 - 2 * math.cos(sne / 32)),math.rad(0),math.rad(-6)),.1) | |
| 4476 | Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 15 * math.cos(sne / 0.5265)),math.rad(11 - 15 * math.cos(sne / 0.25)),math.rad(0 - 15 * math.cos(sne / 0.465)))*angles(math.rad(21 - 2.5 * math.cos(sne / 28)),math.rad(0),math.rad(4 + 6.5 * math.cos(sne / 1.5))),.1) | |
| 4477 | RW.C0=clerp(RW.C0,cf(1,0.695,-0.5)*angles(math.rad(150 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.5265)),math.rad(-42 - 1.5 * math.cos(sine / 25) + 15 * math.cos(sne / 0.5265))),.1) | |
| 4478 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(23 - 15 * math.cos(sne / 0.5265)),math.rad(0 - 15 * math.cos(sne / 0.5265)),math.rad(-25 - 15 * math.cos(sne / 0.5265))),.1) | |
| 4479 | elseif Mode == "MN" then | |
| 4480 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),-0.15)*angles(math.rad(0),math.rad(82.5),math.rad(0))*angles(math.rad(-7),math.rad(-1 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.2) | |
| 4481 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-82.5),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(3 + 2 * math.cos(sine / 32))),.2) | |
| 4482 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(11-3*math.cos(sne/32))),.2) | |
| 4483 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(11 - 2 * math.cos(sine / 37)),math.rad(-2 + 2 * math.cos(sine / 58)),math.rad(-3+3*math.cos(sine/24))),.2) | |
| 4484 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-6 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(15 + 6 * math.cos(sine / 45))),.2) | |
| 4485 | LW.C0=clerp(LW.C0,cf(-1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(67 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.2) | |
| 4486 | elseif Mode == "H" then | |
| 4487 | RH.C0 = clerp(RH.C0, CF(1, -1 - 0.07 * math.cos(sine / 22), 0) * angles(math.rad(0), math.rad(85), math.rad(0)) * angles(math.rad(-2.5 - 0.5 * math.sin(sine / 22)), math.rad(0), math.rad(-2)), 0.1) | |
| 4488 | LH.C0 = clerp(LH.C0, CF(-1, -1 - 0.07 * math.cos(sine / 22), 0) * angles(math.rad(0), math.rad(-78), math.rad(0)) * angles(math.rad(-2.5 - 0.5 * math.sin(sine / 22)), math.rad(0), math.rad(-5)), 0.1) | |
| 4489 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.07 * math.cos(sine / 22))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-35)),.1) | |
| 4490 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 3 * math.cos(sine / 31)),math.rad(0),math.rad(34)),.1) | |
| 4491 | RW.C0 = clerp(RW.C0, CF(1.5, 0.5 + 0.1 * math.sin(sine / 28), 0) * angles(math.rad(0), math.rad(-8.5 + 8.5 * math.sin(sine / 28)), math.rad(25 + 8.5 * math.sin(sine / 28))), 0.1) | |
| 4492 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.05 * math.cos(sine / 32),-0.5)*angles(math.rad(84 - 3 * math.cos(sine / 32)),math.rad(8 - 5 * math.cos(sine / 32)),math.rad(80 - 3 * math.cos(sine / 32))),.1) | |
| 4493 | elseif Mode == "FL" then | |
| 4494 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
| 4495 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
| 4496 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(20)),.1) | |
| 4497 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-20)),.1) | |
| 4498 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(105),math.rad(0),math.rad(-56)),.1) | |
| 4499 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.05 * math.cos(sine / 28),-0.2)*angles(math.rad(81),math.rad(0),math.rad(67)),.1) | |
| 4500 | elseif Mode == "TP" then | |
| 4501 | RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.15 * math.cos(sne / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 + 1 * math.cos(sne / 32))),.1) | |
| 4502 | LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.15 * math.cos(sne / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(0 - 1 * math.cos(sne / 32))),.1) | |
| 4503 | RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.15 * math.cos(sne / 25))*angles(math.rad(-3 + 1 * math.cos(sne / 32)),math.rad(0),math.rad(-1)),.1) | |
| 4504 | Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(5 - 2 * math.cos(sne / 37)),math.rad(0 + 1 * math.cos(sne / 58)),math.rad(1 + 2 * math.cos(sne / 53))),.1) | |
| 4505 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(2 + 5 * math.cos(sne / 74)),math.rad(1 - 3 * math.cos(sne / 53)),math.rad(14 - 9 * math.cos(sne / 25))),.1) | |
| 4506 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(5 - 3 * math.cos(sne / 73)),math.rad(2 - 1 * math.cos(sne / 55)),math.rad(-18 + 9 * math.cos(sne / 25))),.1) | |
| 4507 | elseif Mode == "ICE" then | |
| 4508 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.074 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
| 4509 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.074 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
| 4510 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.074 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 4511 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
| 4512 | RW.C0=clerp(RW.C0,cf(1 + 0.085 * math.cos(sine/28),0.5 + 0.05 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 4 * math.cos(sine/28))),.1) | |
| 4513 | LW.C0=clerp(LW.C0,cf(-1 - 0.085 * math.cos(sine/28),0.5 + 0.05 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30 + 4 * math.cos(sine/28))),.1) | |
| 4514 | elseif Mode == "N" then | |
| 4515 | if math.random(1,3) == 1 then | |
| 4516 | PixelBlockX(7,0.5,"Add",rarm.CFrame*CFrame.new(0,-1.35,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,0.5,0.01,MAINCOLOR,0) | |
| 4517 | end | |
| 4518 | sphere2(6,"Add",rarm.CFrame*CFrame.new(math.random(-0.5,0.5),-1.35 + math.random(-0.5,0.5),math.random(-0.5,0.5)),vt(0.45,0.45,0.45),0.01,0.01,0.01,MAINCOLOR,MAINCOLOR.Color) | |
| 4519 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1 + 1 * math.cos(sine / 50)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1) | |
| 4520 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5 - 1 * math.cos(sine / 50)),math.rad(7),math.rad(0 + 2 * math.cos(sine / 34))),.1) | |
| 4521 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.04 * math.cos(sine / 50),0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 + 1 * math.cos(sine / 50)),math.rad(18-4*COS(sne/42))),.1) | |
| 4522 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 28)),math.rad(-2 + 3.5 * math.cos(sine / 57)),math.rad(18-4*math.cos(sne/42))),.1) | |
| 4523 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 11 * math.cos(sine / 73)),math.rad(18 - 6 * math.cos(sine / 57)),math.rad(17 + 5 * math.cos(sine / 28))),.1) | |
| 4524 | --RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 - 1 * math.cos(sine / 43)),math.rad(-2 + 2 * math.cos(sine / 45)),math.rad(12 + 7 * math.cos(sine / 28))),.1) | |
| 4525 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(0 + 1 * math.cos(sine / 49)),math.rad(2 - 2 * math.cos(sine / 52)),math.rad(-12 - 7 * math.cos(sine / 39))),.1) | |
| 4526 | elseif Mode == "A" then | |
| 4527 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1) | |
| 4528 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1) | |
| 4529 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 1 * math.cos(sine / 42))),.1) | |
| 4530 | --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 8.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(20 + 10 * math.cos(sine / 47))),.1) | |
| 4531 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(8 - 3 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-2 + 2 * math.cos(sine / 53))),.1) | |
| 4532 | ----RH.C0 = clerp(RH.C0, CF(1, -0.4 - 0.1 * Cos(sine / 32), -0.6) * angles(Rad(0), Rad(75 + 8.5 * Sin(sine / 32)), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(0)), 0.1) | |
| 4533 | ---- LH.C0 = clerp(LH.C0, CF(-1, -0.9 - 0.1 * Cos(sine / 32), 0) * angles(Rad(0), Rad(-75 - 8.5 * Sin(sine / 32)), Rad(0)) * angles(Rad(-8.5), Rad(0), Rad(0)), 0.1) | |
| 4534 | ---- RootJoint.C0=clerp(RootJoint.C0,CF(0+.2*SIN(sne/32),1.3-.5*COS(sne/32),0+.2*COS(sne/24))*ANGLES(RAD(270+1.5*SIN(sne/32)),RAD(0+5*SIN(sne/36)),RAD(-180)),.1) | |
| 4535 | -- RootJoint.C0=clerp(RootJoint.C0,CF(0+.2*SIN(sne/32),1.3-.5*COS(sne/32),0+.2*COS(sne/24))*ANGLES(RAD(90+1.5*SIN(sne/32)),RAD(0+5*SIN(sne/36)),RAD(180)),.1) | |
| 4536 | --Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(4 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-2 + 2 * math.cos(sine / 53))),.1) | |
| 4537 | RW.C0=clerp(RW.C0,cf(1,0.45 + 0.1 * math.cos(sine / 56),-0.5)*angles(math.rad(25+5*math.cos(sine/56)),math.rad(-15),math.rad(-85-5*math.cos(sine/56))),.1) | |
| 4538 | LW.C0=clerp(LW.C0,cf(-0.75,0.45 + 0.1 * math.cos(sine /56),-0.5)*angles(math.rad(-25-5*math.cos(sine/56)),math.rad(15),math.rad(80+10*math.cos(sine/56))),.1) | |
| 4539 | elseif Mode == "R" then | |
| 4540 | RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.05 * math.cos(sne / 18),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sne / 56)),math.rad(1 - 2 * math.cos(sne / 18))),.1) | |
| 4541 | LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.05 * math.cos(sne / 18),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(10 - 1 * math.cos(sne / 56)),math.rad(-1 + 2 * math.cos(sne / 18))),.1) | |
| 4542 | RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sne / 18),0 + 0.05 * math.cos(sne / 18))*angles(math.rad(1 - 2 * math.cos(sne / 18)),math.rad(0),math.rad(-3 + 3 * math.cos(sne / 42))),.1) | |
| 4543 | Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(15 - 2 * math.cos(sne / 37)),math.rad(0 + 2 * math.cos(sne / 58)),math.rad(-1 + 1 * math.cos(sne / 53))),.1) | |
| 4544 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(1 + 1 * math.cos(sne / 72)),math.rad(3 - 2 * math.cos(sne / 58)),math.rad(12 + 3 * math.cos(sne / 45))),.1) | |
| 4545 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sne / 45),0)*angles(math.rad(1 - 2 * math.cos(sne / 66)),math.rad(2 - 1 * math.cos(sne / 56)),math.rad(-12 + 3 * math.cos(sne / 45))),.1) | |
| 4546 | end | |
| 4547 | elseif Chill == true then | |
| 4548 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1) | |
| 4549 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
| 4550 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),0.123 + 0.15 * math.cos(sine / 32))*angles(math.rad(-87 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
| 4551 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
| 4552 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(183 + 3 * math.cos(sine / 74)),math.rad(2 - 1 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1) | |
| 4553 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(183 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1) | |
| 4554 | end | |
| 4555 | end | |
| 4556 | elseif TorsoVelocity>2 and TorsoVelocity<22 and hitfloor~=nil then | |
| 4557 | ANIMATIONATION="Walk" | |
| 4558 | if attacking==false then | |
| 4559 | if Chill ~= true then | |
| 4560 | --[[ | |
| 4561 | RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.08 * math.cos(sne / 23),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-4),math.rad(0),math.rad(0+35*math.cos(sne/16))),.3) | |
| 4562 | LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.08 * math.cos(sne / 23),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-4),math.rad(0),math.rad(0+35*math.cos(sne/16))),.3) | |
| 4563 | RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,0,0 + 0.085 * math.cos(sne / 23))*angles(math.rad(8),math.rad(0),math.rad(0)),.3) | |
| 4564 | Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
| 4565 | ]]-- | |
| 4566 | if turboli == 20 then | |
| 4567 | turboli = 0 | |
| 4568 | if Mode ~= "LS" then | |
| 4569 | coroutine.resume(coroutine.create(function() | |
| 4570 | if Mode == "T" then | |
| 4571 | local turbo = TurboArrow:Clone() | |
| 4572 | turbo.Parent = Character | |
| 4573 | turbo.Anchored = true | |
| 4574 | turbo.CanCollide = false | |
| 4575 | turbo.CFrame = root.CFrame*cf(0,1.5,3)*angles(math.rad(131),math.rad(-180),math.rad(90)) | |
| 4576 | turbo.Transparency = 0.3 | |
| 4577 | swait(120) | |
| 4578 | repeat | |
| 4579 | turbo.Transparency = turbo.Transparency + 0.01 | |
| 4580 | swait() | |
| 4581 | until turbo.Transparency == 0 or turbo.Transparency > 0.99 | |
| 4582 | game:GetService("Debris"):AddItem(turbo, 4)
| |
| 4583 | end | |
| 4584 | end)) | |
| 4585 | end | |
| 4586 | end | |
| 4587 | turboli = turboli + 1 | |
| 4588 | if Mode == "G" then | |
| 4589 | if math.random(1,5) == 1 then | |
| 4590 | sphereMK(0.5,-1,"Add",RootPart.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),-8)*CFrame.Angles(math.rad(math.random(-25,25)),math.rad(math.random(-25,25)),math.rad(math.random(-25,25))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)
| |
| 4591 | end | |
| 4592 | --sphereMK(3.5,-1,"Add",LeftLeg.CFrame* CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)
| |
| 4593 | --sphereMK(3.5,-1,"Add",RightLeg.CFrame* CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)
| |
| 4594 | end | |
| 4595 | RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.15 * math.cos(sne / 17),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 45 * math.cos(sne / 17))),.1) | |
| 4596 | LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.15 * math.cos(sne / 17),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 45 * math.cos(sne / 17))),.1) | |
| 4597 | RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sne / 8.5))*angles(math.rad(11 - 6 * math.sin(sne / 8.5)),math.rad(0 + RootPart.RotVelocity.Y*1.5),math.rad(0 - RootPart.RotVelocity.Y - 1 * math.cos(sne / 17))),.1) | |
| 4598 | Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(-6 + 2 * math.cos(sne / 17)),math.rad(0 + RootPart.RotVelocity.Y*1.5),math.rad(0 - Head.RotVelocity.Y*1.5 + 1 * math.cos(sne / 17))),.1) | |
| 4599 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(50 * math.cos(sne / 17)),math.rad(-1),math.rad(7 + 4 * math.cos(sne / 17))),.1) | |
| 4600 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50 * math.cos(sne / 17)),math.rad(1),math.rad(-7 - 4 * math.cos(sne / 17))),.1) | |
| 4601 | -- RightS.C0 = clerp2(RightS.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0 - 50 * math.cos(sne / 16)), RAD(0), RAD(12 + 3 *math.cos(sne /16))) * CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)), 0.15 / 3) | |
| 4602 | -- LeftS.C0 = clerp2(LeftS.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0 + 50 * math.cos(sne / 16)), RAD(0), RAD(-12 - 3 * math.cos(sne / 16))) * CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)), 0.15 / 3) | |
| 4603 | elseif Chill == true then | |
| 4604 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),-0.2)*angles(math.rad(-40),math.rad(90),math.rad(0)),.1) | |
| 4605 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),-0.3)*angles(math.rad(-40),math.rad(-90),math.rad(0)),.1) | |
| 4606 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 29),0 + 0.125 * math.cos(sine / 34),0.123 + 0.25 * math.cos(sine / 28))*angles(math.rad(60),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.05) | |
| 4607 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35 + 2.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(0)),.1) | |
| 4608 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-50 - 0.3 * math.cos(sine / 43)),math.rad(-15 - 2 * math.cos(sine / 52)),math.rad(19 + 0.9 * math.cos(sine / 45))),.1) | |
| 4609 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-50 - 0.2 * math.cos(sine / 51)),math.rad(15 - 4 * math.cos(sine / 64)),math.rad(-19 - 0.2 * math.cos(sine / 45))),.1) | |
| 4610 | end | |
| 4611 | end | |
| 4612 | elseif TorsoVelocity>=22 and hitfloor~=nil then | |
| 4613 | ANIMATIONATION="Run" | |
| 4614 | if attacking==false then | |
| 4615 | if Chill ~= true then | |
| 4616 | if turboli2 == 12 then | |
| 4617 | turboli2 = 0 | |
| 4618 | coroutine.resume(coroutine.create(function() | |
| 4619 | if Mode == "LS" then | |
| 4620 | local turbo2 = ToothpasteArrow:Clone() | |
| 4621 | turbo2.Parent = char | |
| 4622 | turbo2.Anchored = true | |
| 4623 | turbo2.CanCollide = false | |
| 4624 | turbo2.CFrame = root.CFrame*cf(0,1.5,2.65)*angles(math.rad(146),math.rad(-180),math.rad(90)) | |
| 4625 | turbo2.Transparency = 0.3 | |
| 4626 | swait(120) | |
| 4627 | repeat | |
| 4628 | turbo2.Transparency = turbo2.Transparency + 0.01 | |
| 4629 | swait() | |
| 4630 | until turbo2.Transparency == 0 or turbo2.Transparency > 0.99 | |
| 4631 | game:GetService("Debris"):AddItem(turbo2, 4)
| |
| 4632 | end | |
| 4633 | end)) | |
| 4634 | end | |
| 4635 | if Mode == "R" then | |
| 4636 | sphereMK(2.5,-1,"Add",RootPart.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),-8)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),0.5,0.5,10,-0.005,BrickColor.new("Institutional white"),0)
| |
| 4637 | end | |
| 4638 | turboli2 = turboli2 + 2 | |
| 4639 | RightH.C0=clerp(RightH.C0,cf(1,-1 - 0.15 * math.cos(sne / 6),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 76 * math.cos(sne / 6))),.1) | |
| 4640 | LeftH.C0=clerp(LeftH.C0,cf(-1,-1 - 0.15 * math.cos(sne / 6),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 - 76 * math.cos(sne / 6))),.1) | |
| 4641 | RootJ.C0=clerp(RootJ.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.sin(sne / 3))*angles(math.rad(26 - 6 * math.cos(sne / 3)),math.rad(0 + RootPart.RotVelocity.Y*1.5),math.rad(0 - RootPart.RotVelocity.Y - 1 * math.cos(sne / 23))),.1) | |
| 4642 | Torso.Neck.C0=clerp(Torso.Neck.C0,neckcf*angles(math.rad(-6 + 2 * math.cos(sne / 6)),math.rad(0 + RootPart.RotVelocity.Y*1.5),math.rad(0 - Head.RotVelocity.Y*1.5 + 1 * math.cos(sne / 6))),.1) | |
| 4643 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10+90 * math.cos(sne / 6)),math.rad(-1),math.rad(7 + 4 * math.cos(sne / 6))),.1) | |
| 4644 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10-90 * math.cos(sne / 6)),math.rad(1),math.rad(-7 - 4 * math.cos(sne / 6))),.1) | |
| 4645 | elseif Chill == true then--Mode == "A" then --originally was solar mode | |
| 4646 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),-0.2)*angles(math.rad(-40),math.rad(90),math.rad(0)),.1) | |
| 4647 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),-0.3)*angles(math.rad(-40),math.rad(-90),math.rad(0)),.1) | |
| 4648 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 29),0 + 0.125 * math.cos(sine / 34),0.115 + 0.25 * math.cos(sine / 28))*angles(math.rad(60),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.05) | |
| 4649 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-35 + 2.5 * math.cos(sine / 41)),math.rad(0 + 1 * math.cos(sine / 57)),math.rad(0)),.1) | |
| 4650 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-50 - 0.3 * math.cos(sine / 43)),math.rad(-15 - 2 * math.cos(sine / 52)),math.rad(19 + 0.9 * math.cos(sine / 45))),.1) | |
| 4651 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-50 - 0.2 * math.cos(sine / 51)),math.rad(15 - 4 * math.cos(sine / 64)),math.rad(-19 - 0.2 * math.cos(sine / 45))),.1) | |
| 4652 | end | |
| 4653 | end | |
| 4654 | end | |
| 4655 | end |