SHOW:
|
|
- or go back to the newest paste.
| 1 | warn([[Star Glitcher Loaded. | |
| 2 | All purpose switcher... -- wat | |
| 3 | ||
| 4 | It's not over yet. | |
| 5 | The faith is among us. | |
| 6 | And yet you still haven't defeated me. | |
| 7 | Now is my chance to destroy you. | |
| 8 | Then you're out of the world. | |
| 9 | With the elemental being struggling to gain power. | |
| 10 | This is the result. | |
| 11 | Very unstable and powerful. | |
| 12 | A insanely chaotic being. | |
| 13 | Who haven't ever known that one could hold this power. | |
| 14 | It's the one that has been created by an unknown being. | |
| 15 | You'll know this name already. | |
| 16 | Till now. | |
| 17 | The power is inside your body. | |
| 18 | You will decide things with this. | |
| 19 | And the future changes within the power. | |
| 20 | For now, you'll decide your own. | |
| 21 | You're one of them who holds this power. | |
| 22 | And so on, you would get chaotic to everyone else. | |
| 23 | You seem to dont trust everyone else, but one. | |
| 24 | That one... you can't know. | |
| 25 | It's only your decision. | |
| 26 | At yourself. | |
| 27 | No mercy, or spare. | |
| 28 | ||
| 29 | ||
| 30 | Created by NoobyGames12 ye... soryy i remake it: 1x1x1x1IAMbck | |
| 31 | ]]) | |
| 32 | print([[Icons: | |
| 33 | ! = New | |
| 34 | ? = Spoilers | |
| 35 | * = Exclusivity | |
| 36 | ]]) | |
| 37 | warn([[V 3.3 (ON PROGRESS) Update Log: | |
| 38 | ! - Calamity's "Z" has changed | |
| 39 | ! - Starfall EX added. | |
| 40 | ! - Mayhem has DESTRUCTION mode, which is new. | |
| 41 | * - Destruction will be an ultimate exclusivity. | |
| 42 | ! - Corruption now has teleportation move "X" | |
| 43 | ? - Divinity has a move named Judgement, which is made by danny19990. | |
| 44 | ! - Exclusive secrets :v | |
| 45 | ! - Chaos theme has been changed | |
| 46 | ! - Purity's theme has been extended | |
| 47 | ? - Corruption's "Z" will have animation sooner | |
| 48 | ! - Calamity's "X" is added, named Starfall | |
| 49 | * - Mayhem now has MAJOR exclusivity, so far its still wip and yet to be done. | |
| 50 | * - Catastrophe's "Z" coming soon, same as Calamity's "Z" but more powerful.]]) | |
| 51 | --- its obs smooth af do not touch | |
| 52 | ---- Sources and functions might be taken from others | |
| 53 | plr = game:GetService("Players").LocalPlayer
| |
| 54 | char = plr.Character | |
| 55 | hum = char.Humanoid | |
| 56 | local cam = game.Workspace.CurrentCamera | |
| 57 | local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
| |
| 58 | Camera = cam | |
| 59 | local CamInterrupt = false | |
| 60 | local TwoD = false | |
| 61 | local TargetInfo = {nil, nil}
| |
| 62 | cam.CameraType = "Custom" | |
| 63 | t = char.Torso | |
| 64 | h = char.Head | |
| 65 | ra = char["Right Arm"] | |
| 66 | la = char["Left Arm"] | |
| 67 | rl = char["Right Leg"] | |
| 68 | ll = char["Left Leg"] | |
| 69 | tors = char.Torso | |
| 70 | lleg = char["Left Leg"] | |
| 71 | root = char.HumanoidRootPart | |
| 72 | hed = char.Head | |
| 73 | rleg = char["Right Leg"] | |
| 74 | rarm = char["Right Arm"] | |
| 75 | larm = char["Left Arm"] | |
| 76 | radian = math.rad | |
| 77 | random = math.random | |
| 78 | Vec3 = Vector3.new | |
| 79 | Inst = Instance.new | |
| 80 | cFrame = CFrame.new | |
| 81 | Euler = CFrame.fromEulerAnglesXYZ | |
| 82 | vt = Vector3.new | |
| 83 | bc = BrickColor.new | |
| 84 | br = BrickColor.random | |
| 85 | it = Instance.new | |
| 86 | cf = CFrame.new | |
| 87 | local eff = true | |
| 88 | local shielding = false | |
| 89 | ||
| 90 | local Booleans = {
| |
| 91 | CamFollow = true, | |
| 92 | GyroUse = true | |
| 93 | } | |
| 94 | ||
| 95 | function lerp(object, newCFrame, alpha) | |
| 96 | return object:lerp(newCFrame, alpha) | |
| 97 | end | |
| 98 | ||
| 99 | local Directer = Inst("BodyGyro", root)
| |
| 100 | Directer.MaxTorque = Vec3(0, 0, 0) | |
| 101 | Directer.P = 600000 | |
| 102 | local CPart = Inst("Part")
| |
| 103 | CPart.Anchored = true | |
| 104 | CPart.CanCollide = false | |
| 105 | CPart.Locked = true | |
| 106 | CPart.Transparency = 1 | |
| 107 | ||
| 108 | local rainbowmode = false | |
| 109 | local chaosmode = false | |
| 110 | ||
| 111 | kan = Instance.new("Sound",char)
| |
| 112 | kan.Volume = 1.25 | |
| 113 | kan.TimePosition = 0 | |
| 114 | kan.PlaybackSpeed = 1 | |
| 115 | kan.Pitch = 1 | |
| 116 | kan.SoundId = "rbxassetid://180324932" | |
| 117 | kan.Name = "wrecked" | |
| 118 | kan.Looped = true | |
| 119 | kan:Play() | |
| 120 | ||
| 121 | function newTheme(ID,timepos,pitch,vol) | |
| 122 | local kanz = kan | |
| 123 | --kanz:Stop() | |
| 124 | --kanz.Volume = vol | |
| 125 | --kanz.TimePosition = timepos | |
| 126 | kanz.PlaybackSpeed = pitch | |
| 127 | kanz.Pitch = pitch | |
| 128 | kanz.SoundId = ID | |
| 129 | kanz.Name = "wrecked" | |
| 130 | kanz.Looped = true | |
| 131 | kanz.Volume = 0.3 | |
| 132 | --kanz:Play() | |
| 133 | --coroutine.resume(coroutine.create(function() | |
| 134 | --wait(0.05) | |
| 135 | --end)) | |
| 136 | end | |
| 137 | ||
| 138 | function newThemeCust(ID,timepos,pitch,vol) | |
| 139 | local kanz = kan | |
| 140 | kanz:Stop() | |
| 141 | kanz.Volume = vol | |
| 142 | kanz.TimePosition = timepos | |
| 143 | kanz.PlaybackSpeed = pitch | |
| 144 | kanz.Pitch = pitch | |
| 145 | kanz.SoundId = ID | |
| 146 | kanz.Name = "wrecked" | |
| 147 | kanz.Looped = true | |
| 148 | kanz:Play() | |
| 149 | coroutine.resume(coroutine.create(function() | |
| 150 | wait(0.05) | |
| 151 | end)) | |
| 152 | end | |
| 153 | ||
| 154 | ||
| 155 | ||
| 156 | function CameraShake(Times, Power, PlayerTarget) | |
| 157 | coroutine.resume(coroutine.create(function() | |
| 158 | FV = Instance.new("BoolValue", PlayerTarget)
| |
| 159 | FV.Name = "CameraShake" | |
| 160 | for ShakeNum=1,Times do | |
| 161 | swait() | |
| 162 | local ef=Power | |
| 163 | if ef>=1 then | |
| 164 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
| 165 | else | |
| 166 | ef=Power*10 | |
| 167 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
| 168 | end | |
| 169 | end | |
| 170 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 171 | FV:Destroy() | |
| 172 | end)) | |
| 173 | end | |
| 174 | ||
| 175 | function CameraEnshaking(Length,Intensity) | |
| 176 | coroutine.resume(coroutine.create(function() | |
| 177 | local intensity = 1*Intensity | |
| 178 | local rotM = 0.01*Intensity | |
| 179 | for i = 0, Length, 0.1 do | |
| 180 | swait() | |
| 181 | intensity = intensity - 0.05*Intensity/Length | |
| 182 | rotM = rotM - 0.0005*Intensity/Length | |
| 183 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
| 184 | cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM) | |
| 185 | end | |
| 186 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
| 187 | end)) | |
| 188 | end | |
| 189 | CamShake=function(Part,Distan,Power,Times) | |
| 190 | local de=Part.Position | |
| 191 | for i,v in pairs(workspace:children()) do | |
| 192 | if v:IsA("Model") and v:findFirstChild("Humanoid") then
| |
| 193 | for _,c in pairs(v:children()) do | |
| 194 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
| 195 | local Noob=v.Humanoid | |
| 196 | if Noob~=nil then | |
| 197 | coroutine.resume(coroutine.create(function() | |
| 198 | FV = Instance.new("BoolValue", Noob)
| |
| 199 | FV.Name = "CameraShake" | |
| 200 | for ShakeNum=1,Times do | |
| 201 | swait() | |
| 202 | local ef=Power | |
| 203 | if ef>=1 then | |
| 204 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
| 205 | else | |
| 206 | ef=Power*10 | |
| 207 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
| 208 | end | |
| 209 | end | |
| 210 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 211 | FV:Destroy() | |
| 212 | end)) | |
| 213 | CameraShake(Times, Power, Noob) | |
| 214 | end | |
| 215 | end | |
| 216 | end | |
| 217 | end | |
| 218 | end | |
| 219 | end | |
| 220 | ||
| 221 | function chatfunc(text,color) | |
| 222 | local chat = coroutine.wrap(function() | |
| 223 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 224 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 225 | end | |
| 226 | local naeeym2 = Instance.new("BillboardGui",Character)
| |
| 227 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 228 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 229 | naeeym2.Adornee = Character.Head | |
| 230 | naeeym2.Name = "TalkingBillBoard" | |
| 231 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 232 | tecks2.BackgroundTransparency = 1 | |
| 233 | tecks2.BorderSizePixel = 0 | |
| 234 | tecks2.Text = "" | |
| 235 | tecks2.Font = "SciFi" | |
| 236 | tecks2.TextSize = 30 | |
| 237 | tecks2.TextStrokeTransparency = 0 | |
| 238 | tecks2.TextColor3 = color | |
| 239 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 240 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 241 | local tecks3 = Instance.new("TextLabel",naeeym2)
| |
| 242 | tecks3.BackgroundTransparency = 1 | |
| 243 | tecks3.BorderSizePixel = 0 | |
| 244 | tecks3.Text = "" | |
| 245 | tecks3.Font = "SciFi" | |
| 246 | tecks3.TextSize = 30 | |
| 247 | tecks3.TextStrokeTransparency = 0 | |
| 248 | tecks3.TextColor3 = Color3.new(0,0,0) | |
| 249 | tecks3.TextStrokeColor3 = color | |
| 250 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
| 251 | coroutine.resume(coroutine.create(function() | |
| 252 | while true do | |
| 253 | swait(1) | |
| 254 | plr.Character.wrecked.Volume = 0.3 | |
| 255 | if chaosmode == true then | |
| 256 | tecks2.TextColor3 = BrickColor.random().Color | |
| 257 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
| 258 | end | |
| 259 | tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
| 260 | tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
| 261 | tecks2.Rotation = math.random(-5,5) | |
| 262 | tecks3.Rotation = math.random(-5,5) | |
| 263 | end | |
| 264 | end)) | |
| 265 | for i = 1,string.len(text),1 do | |
| 266 | CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
| |
| 267 | tecks2.Text = string.sub(text,1,i) | |
| 268 | tecks3.Text = string.sub(text,1,i) | |
| 269 | swait(1) | |
| 270 | end | |
| 271 | wait(1) | |
| 272 | local randomrot = math.random(1,2) | |
| 273 | if randomrot == 1 then | |
| 274 | for i = 1, 50 do | |
| 275 | swait() | |
| 276 | tecks2.Rotation = tecks2.Rotation - .75 | |
| 277 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 278 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
| 279 | tecks3.Rotation = tecks2.Rotation + .75 | |
| 280 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 281 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
| 282 | end | |
| 283 | elseif randomrot == 2 then | |
| 284 | for i = 1, 50 do | |
| 285 | swait() | |
| 286 | tecks2.Rotation = tecks2.Rotation + .75 | |
| 287 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 288 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
| 289 | tecks3.Rotation = tecks2.Rotation - .75 | |
| 290 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 291 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
| 292 | end | |
| 293 | end | |
| 294 | naeeym2:Destroy() | |
| 295 | end) | |
| 296 | chat() | |
| 297 | end | |
| 298 | ||
| 299 | ||
| 300 | local Create = LoadLibrary("RbxUtility").Create
| |
| 301 | ||
| 302 | CFuncs = {
| |
| 303 | ["Part"] = {
| |
| 304 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 305 | local Part = Create("Part"){
| |
| 306 | Parent = Parent, | |
| 307 | Reflectance = Reflectance, | |
| 308 | Transparency = Transparency, | |
| 309 | CanCollide = false, | |
| 310 | Locked = true, | |
| 311 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 312 | Name = Name, | |
| 313 | Size = Size, | |
| 314 | Material = Material, | |
| 315 | } | |
| 316 | RemoveOutlines(Part) | |
| 317 | return Part | |
| 318 | end; | |
| 319 | }; | |
| 320 | ||
| 321 | ["Mesh"] = {
| |
| 322 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 323 | local Msh = Create(Mesh){
| |
| 324 | Parent = Part, | |
| 325 | Offset = OffSet, | |
| 326 | Scale = Scale, | |
| 327 | } | |
| 328 | if Mesh == "SpecialMesh" then | |
| 329 | Msh.MeshType = MeshType | |
| 330 | Msh.MeshId = MeshId | |
| 331 | end | |
| 332 | return Msh | |
| 333 | end; | |
| 334 | }; | |
| 335 | ||
| 336 | ["Mesh"] = {
| |
| 337 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 338 | local Msh = Create(Mesh){
| |
| 339 | Parent = Part, | |
| 340 | Offset = OffSet, | |
| 341 | Scale = Scale, | |
| 342 | } | |
| 343 | if Mesh == "SpecialMesh" then | |
| 344 | Msh.MeshType = MeshType | |
| 345 | Msh.MeshId = MeshId | |
| 346 | end | |
| 347 | return Msh | |
| 348 | end; | |
| 349 | }; | |
| 350 | ||
| 351 | ["Weld"] = {
| |
| 352 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 353 | local Weld = Create("Weld"){
| |
| 354 | Parent = Parent, | |
| 355 | Part0 = Part0, | |
| 356 | Part1 = Part1, | |
| 357 | C0 = C0, | |
| 358 | C1 = C1, | |
| 359 | } | |
| 360 | return Weld | |
| 361 | end; | |
| 362 | }; | |
| 363 | ||
| 364 | ["Sound"] = {
| |
| 365 | Create = function(id, par, vol, pit) | |
| 366 | coroutine.resume(coroutine.create(function() | |
| 367 | local S = Create("Sound"){
| |
| 368 | Volume = vol, | |
| 369 | Name = "EffectSoundo", | |
| 370 | Pitch = pit or 1, | |
| 371 | SoundId = id, | |
| 372 | Parent = par or workspace, | |
| 373 | } | |
| 374 | wait() | |
| 375 | S:play() | |
| 376 | game:GetService("Debris"):AddItem(S, 10)
| |
| 377 | end)) | |
| 378 | end; | |
| 379 | }; | |
| 380 | ||
| 381 | ["LongSound"] = {
| |
| 382 | Create = function(id, par, vol, pit) | |
| 383 | coroutine.resume(coroutine.create(function() | |
| 384 | local S = Create("Sound"){
| |
| 385 | Volume = vol, | |
| 386 | Pitch = pit or 1, | |
| 387 | SoundId = id, | |
| 388 | Parent = par or workspace, | |
| 389 | } | |
| 390 | wait() | |
| 391 | S:play() | |
| 392 | game:GetService("Debris"):AddItem(S, 30)
| |
| 393 | end)) | |
| 394 | end; | |
| 395 | }; | |
| 396 | ||
| 397 | ["ParticleEmitter"] = {
| |
| 398 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 399 | local fp = Create("ParticleEmitter"){
| |
| 400 | Parent = Parent, | |
| 401 | Color = ColorSequence.new(Color1, Color2), | |
| 402 | LightEmission = LightEmission, | |
| 403 | Size = Size, | |
| 404 | Texture = Texture, | |
| 405 | Transparency = Transparency, | |
| 406 | ZOffset = ZOffset, | |
| 407 | Acceleration = Accel, | |
| 408 | Drag = Drag, | |
| 409 | LockedToPart = LockedToPart, | |
| 410 | VelocityInheritance = VelocityInheritance, | |
| 411 | EmissionDirection = EmissionDirection, | |
| 412 | Enabled = Enabled, | |
| 413 | Lifetime = LifeTime, | |
| 414 | Rate = Rate, | |
| 415 | Rotation = Rotation, | |
| 416 | RotSpeed = RotSpeed, | |
| 417 | Speed = Speed, | |
| 418 | VelocitySpread = VelocitySpread, | |
| 419 | } | |
| 420 | return fp | |
| 421 | end; | |
| 422 | }; | |
| 423 | ||
| 424 | CreateTemplate = {
| |
| 425 | ||
| 426 | }; | |
| 427 | } | |
| 428 | ||
| 429 | ||
| 430 | ||
| 431 | New = function(Object, Parent, Name, Data) | |
| 432 | local Object = Instance.new(Object) | |
| 433 | for Index, Value in pairs(Data or {}) do
| |
| 434 | Object[Index] = Value | |
| 435 | end | |
| 436 | Object.Parent = Parent | |
| 437 | Object.Name = Name | |
| 438 | return Object | |
| 439 | end | |
| 440 | local halocolor = BrickColor.new("Pastel light blue")
| |
| 441 | local halocolor2 = BrickColor.new("Cool yellow")
| |
| 442 | local starcolor = BrickColor.new("Bright yellow")
| |
| 443 | local lunacolor = BrickColor.new("Navy blue")
| |
| 444 | local lunacolor2 = BrickColor.new("Bright blue")
| |
| 445 | local wepcolor = BrickColor.new("Really black")
| |
| 446 | local maincolor = BrickColor.new("Really black")
| |
| 447 | local m = Instance.new("Model",char)
| |
| 448 | local m2 = Instance.new("Model",char)
| |
| 449 | local m3 = Instance.new("Model",char)
| |
| 450 | local mw1 = Instance.new("Model",char)
| |
| 451 | local mw2 = Instance.new("Model",char)
| |
| 452 | ||
| 453 | local extrawingmod1 = Instance.new("Model",char)
| |
| 454 | local extrawingmod2 = Instance.new("Model",char)
| |
| 455 | ||
| 456 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
| 457 | local p = Instance.new("Part")
| |
| 458 | p.TopSurface = 0 | |
| 459 | p.BottomSurface = 0 | |
| 460 | p.Parent = parent | |
| 461 | p.Size = Vector3.new(0.1,0.1,0.1) | |
| 462 | p.Transparency = transparency | |
| 463 | p.Reflectance = reflectance | |
| 464 | p.CanCollide = false | |
| 465 | p.Locked = true | |
| 466 | p.BrickColor = brickcolor | |
| 467 | p.Material = material | |
| 468 | return p | |
| 469 | end | |
| 470 | ||
| 471 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
| 472 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 473 | mesh.MeshType = meshtype | |
| 474 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
| 475 | return mesh | |
| 476 | end | |
| 477 | ||
| 478 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
| 479 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 480 | mesh.MeshType = "FileMesh" | |
| 481 | mesh.MeshId = meshid | |
| 482 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 483 | return mesh | |
| 484 | end | |
| 485 | ||
| 486 | ||
| 487 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
| 488 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 489 | mesh.MeshType = "FileMesh" | |
| 490 | mesh.MeshId = meshid | |
| 491 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
| 492 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 493 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
| 494 | return mesh | |
| 495 | end | |
| 496 | ||
| 497 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
| 498 | local weld = Instance.new("Weld")
| |
| 499 | weld.Parent = parent | |
| 500 | weld.Part0 = part0 | |
| 501 | weld.Part1 = part1 | |
| 502 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
| 503 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
| 504 | return weld | |
| 505 | end | |
| 506 | ||
| 507 | ||
| 508 | -------------- | |
| 509 | local secondchar = Instance.new("Model",char)
| |
| 510 | local GhostCol = BrickColor.new("Really red")
| |
| 511 | local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
| 512 | CreateMesh(sectors,"Brick",2*8,2*8,1*8) | |
| 513 | local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 514 | ||
| 515 | local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
| 516 | CreateMesh(seclarm,"Brick",1*8,2*8,1*8) | |
| 517 | local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 518 | ||
| 519 | local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
| 520 | CreateMesh(secrarm,"Brick",1*8,2*8,1*8) | |
| 521 | local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 522 | ||
| 523 | local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
| 524 | CreateMesh(seclleg,"Brick",1*8,2*8,1*8) | |
| 525 | local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 526 | ||
| 527 | local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
| 528 | CreateMesh(secrleg,"Brick",1*8,2*8,1*8) | |
| 529 | local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 530 | ||
| 531 | local seched = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
| 532 | CreateMesh(seched,"Brick",1*8,1*8,1*8) | |
| 533 | local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 534 | -------------- | |
| 535 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 536 | CreateWeld(sorb,rarm,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)) | |
| 537 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 538 | CreateWeld(sorb2,larm,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)) | |
| 539 | ||
| 540 | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
| 541 | CreateMesh(handle,"Brick",0,0,0) | |
| 542 | local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 543 | local valuaring = 10 | |
| 544 | for i = 0, 49 do | |
| 545 | valuaring = valuaring + 10 | |
| 546 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 547 | CreateMesh(rn,"Brick",0.25,0.1,0.1) | |
| 548 | CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 549 | end | |
| 550 | ||
| 551 | handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
| 552 | CreateMesh(handle,"Brick",0,0,0) | |
| 553 | CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 554 | local valuaring = 10 | |
| 555 | for i = 0, 49 do | |
| 556 | valuaring = valuaring + 10 | |
| 557 | rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 558 | CreateMesh(rn,"Brick",0.5,0.2,0.2) | |
| 559 | CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 560 | end | |
| 561 | ||
| 562 | ||
| 563 | local handle = CreateParta(m,1,1,"Neon",maincolor) | |
| 564 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 565 | local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 566 | ||
| 567 | --- Left wing. | |
| 568 | ||
| 569 | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
| 570 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 571 | local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 572 | ||
| 573 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 574 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 575 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 576 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 577 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 578 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 579 | A0 = Instance.new('Attachment',wed)
| |
| 580 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 581 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 582 | CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 583 | A1 = Instance.new('Attachment',wed)
| |
| 584 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 585 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 586 | CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 587 | ||
| 588 | tl1 = Instance.new('Trail',wed)
| |
| 589 | tl1.Attachment0 = A0 | |
| 590 | tl1.Attachment1 = A1 | |
| 591 | --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
| 592 | tl1.LightEmission = 1 | |
| 593 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 594 | tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
| |
| 595 | tl1.Lifetime = 0.6 | |
| 596 | ||
| 597 | ||
| 598 | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
| 599 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 600 | local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 601 | ||
| 602 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 603 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 604 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 605 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 606 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 607 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 608 | A0 = Instance.new('Attachment',wed)
| |
| 609 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 610 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 611 | CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 612 | A1 = Instance.new('Attachment',wed)
| |
| 613 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 614 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 615 | CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 616 | ||
| 617 | tl2 = Instance.new('Trail',wed)
| |
| 618 | tl2.Attachment0 = A0 | |
| 619 | tl2.Attachment1 = A1 | |
| 620 | --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
| 621 | tl2.LightEmission = 1 | |
| 622 | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 623 | tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
| |
| 624 | tl2.Lifetime = 0.6 | |
| 625 | ||
| 626 | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
| 627 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 628 | local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 629 | ||
| 630 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 631 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 632 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 633 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 634 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 635 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 636 | A0 = Instance.new('Attachment',wed)
| |
| 637 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 638 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 639 | CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 640 | A1 = Instance.new('Attachment',wed)
| |
| 641 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 642 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 643 | CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 644 | ||
| 645 | tl3 = Instance.new('Trail',wed)
| |
| 646 | tl3.Attachment0 = A0 | |
| 647 | tl3.Attachment1 = A1 | |
| 648 | --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
| 649 | tl3.LightEmission = 1 | |
| 650 | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 651 | tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
| |
| 652 | tl3.Lifetime = 0.6 | |
| 653 | ||
| 654 | tl1.Enabled = false | |
| 655 | tl2.Enabled = false | |
| 656 | tl3.Enabled = false | |
| 657 | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
| 658 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 659 | local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 660 | ||
| 661 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 662 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 663 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 664 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 665 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 666 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 667 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 668 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 669 | CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 670 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 671 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 672 | CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 673 | ||
| 674 | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
| 675 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 676 | local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 677 | ||
| 678 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 679 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 680 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 681 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 682 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 683 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 684 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 685 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 686 | CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 687 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 688 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 689 | CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 690 | ||
| 691 | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
| 692 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 693 | local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 694 | ||
| 695 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 696 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 697 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 698 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 699 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 700 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 701 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 702 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 703 | CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 704 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 705 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 706 | CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 707 | ||
| 708 | -- Right wing. | |
| 709 | ||
| 710 | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
| 711 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 712 | local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 713 | ||
| 714 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 715 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 716 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 717 | A0 = Instance.new('Attachment',wed)
| |
| 718 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 719 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 720 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 721 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 722 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 723 | CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 724 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 725 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 726 | CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 727 | A1 = Instance.new('Attachment',wed)
| |
| 728 | ||
| 729 | tr1 = Instance.new('Trail',wed)
| |
| 730 | tr1.Attachment0 = A0 | |
| 731 | tr1.Attachment1 = A1 | |
| 732 | --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
| 733 | tr1.LightEmission = 1 | |
| 734 | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 735 | tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
| |
| 736 | tr1.Lifetime = 0.6 | |
| 737 | ||
| 738 | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
| 739 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 740 | local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 741 | ||
| 742 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 743 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 744 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 745 | A0 = Instance.new('Attachment',wed)
| |
| 746 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 747 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 748 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 749 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 750 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 751 | CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 752 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 753 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 754 | CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 755 | A1 = Instance.new('Attachment',wed)
| |
| 756 | ||
| 757 | tr2 = Instance.new('Trail',wed)
| |
| 758 | tr2.Attachment0 = A0 | |
| 759 | tr2.Attachment1 = A1 | |
| 760 | --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
| 761 | tr2.LightEmission = 1 | |
| 762 | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 763 | tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
| |
| 764 | tr2.Lifetime = 0.6 | |
| 765 | ||
| 766 | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
| 767 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 768 | local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 769 | ||
| 770 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 771 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 772 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 773 | A0 = Instance.new('Attachment',wed)
| |
| 774 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 775 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 776 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 777 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 778 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 779 | CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 780 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 781 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 782 | CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 783 | A1 = Instance.new('Attachment',wed)
| |
| 784 | ||
| 785 | tr3 = Instance.new('Trail',wed)
| |
| 786 | tr3.Attachment0 = A0 | |
| 787 | tr3.Attachment1 = A1 | |
| 788 | --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
| 789 | tr3.LightEmission = 1 | |
| 790 | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 791 | tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
| |
| 792 | tr3.Lifetime = 0.6 | |
| 793 | ||
| 794 | ||
| 795 | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
| 796 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 797 | local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 798 | ||
| 799 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 800 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 801 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 802 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 803 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 804 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 805 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 806 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 807 | CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 808 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 809 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 810 | CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 811 | ||
| 812 | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
| 813 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 814 | local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 815 | ||
| 816 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 817 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 818 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 819 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 820 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 821 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 822 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 823 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 824 | CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 825 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 826 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 827 | CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 828 | ||
| 829 | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
| 830 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 831 | local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 832 | ||
| 833 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 834 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 835 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 836 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 837 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 838 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 839 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 840 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 841 | CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 842 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 843 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 844 | CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 845 | ||
| 846 | ---- HERES THE RING | |
| 847 | ||
| 848 | ||
| 849 | --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
| 850 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
| 851 | CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 852 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 853 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
| 854 | CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 855 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 856 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
| 857 | CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 858 | ||
| 859 | ||
| 860 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 861 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
| 862 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 863 | ||
| 864 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 865 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
| 866 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 867 | ||
| 868 | ||
| 869 | ||
| 870 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
| 871 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
| 872 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 873 | ||
| 874 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
| 875 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
| 876 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 877 | ||
| 878 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
| 879 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
| 880 | CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 881 | ||
| 882 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 883 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
| 884 | CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 885 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
| 886 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
| 887 | CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 888 | ||
| 889 | --- second ring | |
| 890 | ||
| 891 | ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
| 892 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
| 893 | CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 894 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 895 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
| 896 | CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 897 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 898 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
| 899 | CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 900 | ||
| 901 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 902 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
| 903 | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 904 | ||
| 905 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 906 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
| 907 | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 908 | ||
| 909 | ||
| 910 | ||
| 911 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
| 912 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
| 913 | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 914 | ||
| 915 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
| 916 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
| 917 | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 918 | ||
| 919 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
| 920 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
| 921 | CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 922 | ||
| 923 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 924 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
| 925 | CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 926 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
| 927 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
| 928 | CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]-- | |
| 929 | ||
| 930 | ||
| 931 | ||
| 932 | for i, v in pairs(m:GetChildren()) do | |
| 933 | if v:IsA("Part") then
| |
| 934 | v.BrickColor = BrickColor.new("Really black")
| |
| 935 | v.Material = "Glass" | |
| 936 | end | |
| 937 | end | |
| 938 | for i, v in pairs(m2:GetChildren()) do | |
| 939 | if v:IsA("Part") then
| |
| 940 | v.BrickColor = BrickColor.new("Crimson")
| |
| 941 | v.Material = "Granite" | |
| 942 | end | |
| 943 | end | |
| 944 | for i, v in pairs(m3:GetChildren()) do | |
| 945 | if v:IsA("Part") then
| |
| 946 | v.BrickColor = BrickColor.new("Really red")
| |
| 947 | v.Material = "Neon" | |
| 948 | end | |
| 949 | end | |
| 950 | for i, v in pairs(mw2:GetChildren()) do | |
| 951 | if v:IsA("Part") then
| |
| 952 | v.BrickColor = BrickColor.new("Really red")
| |
| 953 | v.Material = "Neon" | |
| 954 | end | |
| 955 | end | |
| 956 | for i, v in pairs(mw1:GetChildren()) do | |
| 957 | if v:IsA("Part") then
| |
| 958 | v.Transparency = 1 | |
| 959 | v.BrickColor = BrickColor.new("Really red")
| |
| 960 | v.Material = "Neon" | |
| 961 | end | |
| 962 | end | |
| 963 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 964 | if v:IsA("Part") then
| |
| 965 | v.Transparency = 1 | |
| 966 | v.BrickColor = BrickColor.new("White")
| |
| 967 | v.Material = "Neon" | |
| 968 | end | |
| 969 | end | |
| 970 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 971 | if v:IsA("Part") then
| |
| 972 | v.Transparency = 1 | |
| 973 | v.BrickColor = BrickColor.new("White")
| |
| 974 | v.Material = "Neon" | |
| 975 | end | |
| 976 | end | |
| 977 | local MAINRUINCOLOR = BrickColor.new("Really red")
| |
| 978 | ------ | |
| 979 | ||
| 980 | ||
| 981 | function RemoveOutlines(part) | |
| 982 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 983 | end | |
| 984 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 985 | local Part = Create("Part")({
| |
| 986 | Parent = Parent, | |
| 987 | Reflectance = Reflectance, | |
| 988 | Transparency = Transparency, | |
| 989 | CanCollide = false, | |
| 990 | Locked = true, | |
| 991 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 992 | Name = Name, | |
| 993 | Size = Size, | |
| 994 | Material = Material | |
| 995 | }) | |
| 996 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 997 | RemoveOutlines(Part) | |
| 998 | return Part | |
| 999 | end | |
| 1000 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1001 | local Msh = Create(Mesh)({
| |
| 1002 | Parent = Part, | |
| 1003 | Offset = OffSet, | |
| 1004 | Scale = Scale | |
| 1005 | }) | |
| 1006 | if Mesh == "SpecialMesh" then | |
| 1007 | Msh.MeshType = MeshType | |
| 1008 | Msh.MeshId = MeshId | |
| 1009 | end | |
| 1010 | return Msh | |
| 1011 | end | |
| 1012 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 1013 | local Weld = Create("Weld")({
| |
| 1014 | Parent = Parent, | |
| 1015 | Part0 = Part0, | |
| 1016 | Part1 = Part1, | |
| 1017 | C0 = C0, | |
| 1018 | C1 = C1 | |
| 1019 | }) | |
| 1020 | return Weld | |
| 1021 | end | |
| 1022 | ||
| 1023 | Player=game:GetService("Players").LocalPlayer
| |
| 1024 | Character=Player.Character | |
| 1025 | PlayerGui=Player.PlayerGui | |
| 1026 | Backpack=Player.Backpack | |
| 1027 | Torso=Character.Torso | |
| 1028 | Head=Character.Head | |
| 1029 | Humanoid=Character.Humanoid | |
| 1030 | m=Instance.new('Model',Character)
| |
| 1031 | LeftArm=Character["Left Arm"] | |
| 1032 | LeftLeg=Character["Left Leg"] | |
| 1033 | RightArm=Character["Right Arm"] | |
| 1034 | RightLeg=Character["Right Leg"] | |
| 1035 | LS=Torso["Left Shoulder"] | |
| 1036 | LH=Torso["Left Hip"] | |
| 1037 | RS=Torso["Right Shoulder"] | |
| 1038 | RH=Torso["Right Hip"] | |
| 1039 | Face = Head.face | |
| 1040 | Neck=Torso.Neck | |
| 1041 | it=Instance.new | |
| 1042 | attacktype=1 | |
| 1043 | vt=Vector3.new | |
| 1044 | cf=CFrame.new | |
| 1045 | euler=CFrame.fromEulerAnglesXYZ | |
| 1046 | angles=CFrame.Angles | |
| 1047 | cloaked=false | |
| 1048 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 1049 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 1050 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 1051 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 1052 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 1053 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 1054 | RootPart=Character.HumanoidRootPart | |
| 1055 | RootJoint=RootPart.RootJoint | |
| 1056 | RootCF=euler(-1.57,0,3.14) | |
| 1057 | attack = false | |
| 1058 | attackdebounce = false | |
| 1059 | deb=false | |
| 1060 | equipped=true | |
| 1061 | hand=false | |
| 1062 | MMouse=nil | |
| 1063 | combo=0 | |
| 1064 | mana=0 | |
| 1065 | trispeed=.2 | |
| 1066 | attackmode='none' | |
| 1067 | local idle=0 | |
| 1068 | local Anim="Idle" | |
| 1069 | local Effects={}
| |
| 1070 | local gun=false | |
| 1071 | local shoot=false | |
| 1072 | local sine = 0 | |
| 1073 | local change = 1 | |
| 1074 | player=nil | |
| 1075 | ||
| 1076 | ||
| 1077 | local toggleTag = true | |
| 1078 | local txt = Instance.new("BillboardGui", Head)
| |
| 1079 | txt.Adornee = nil | |
| 1080 | txt.Name = "NameDetect" | |
| 1081 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
| 1082 | txt.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
| 1083 | local text = Instance.new("TextLabel", txt)
| |
| 1084 | text.Size = UDim2.new(10/2, 0, 7/2, 0) | |
| 1085 | text.FontSize = "Size8" | |
| 1086 | text.TextScaled = true | |
| 1087 | text.TextTransparency = 0 | |
| 1088 | text.BackgroundTransparency = 1 | |
| 1089 | text.TextTransparency = 0 | |
| 1090 | text.TextStrokeTransparency = 0 | |
| 1091 | text.Font = "Fantasy" | |
| 1092 | text.TextStrokeColor3 = Color3.new(1,0,0) | |
| 1093 | text.TextColor3 = Color3.new(0,0,0) | |
| 1094 | text.Text = "Mayhem" | |
| 1095 | ||
| 1096 | function RecolorTextAndRename(name,col1,col2) | |
| 1097 | text.TextStrokeColor3 = col2 | |
| 1098 | text.TextColor3 = col1 | |
| 1099 | text.Text = name | |
| 1100 | end | |
| 1101 | mouse=Player:GetMouse() | |
| 1102 | --save shoulders | |
| 1103 | RSH, LSH=nil, nil | |
| 1104 | --welds | |
| 1105 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 1106 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 1107 | LH=Torso["Left Hip"] | |
| 1108 | RH=Torso["Right Hip"] | |
| 1109 | TorsoColor=Torso.BrickColor | |
| 1110 | function NoOutline(Part) | |
| 1111 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 1112 | end | |
| 1113 | player=Player | |
| 1114 | ch=Character | |
| 1115 | RSH=ch.Torso["Right Shoulder"] | |
| 1116 | LSH=ch.Torso["Left Shoulder"] | |
| 1117 | -- | |
| 1118 | RSH.Parent=nil | |
| 1119 | LSH.Parent=nil | |
| 1120 | -- | |
| 1121 | RW.Name="Right Shoulder" | |
| 1122 | RW.Part0=ch.Torso | |
| 1123 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 1124 | RW.C1=cf(0, 0.5, 0) | |
| 1125 | RW.Part1=ch["Right Arm"] | |
| 1126 | RW.Parent=ch.Torso | |
| 1127 | -- | |
| 1128 | LW.Name="Left Shoulder" | |
| 1129 | LW.Part0=ch.Torso | |
| 1130 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 1131 | LW.C1=cf(0, 0.5, 0) | |
| 1132 | LW.Part1=ch["Left Arm"] | |
| 1133 | LW.Parent=ch.Torso | |
| 1134 | ||
| 1135 | local Stats=Instance.new("BoolValue")
| |
| 1136 | Stats.Name="Stats" | |
| 1137 | Stats.Parent=Character | |
| 1138 | local Atk=Instance.new("NumberValue")
| |
| 1139 | Atk.Name="Damage" | |
| 1140 | Atk.Parent=Stats | |
| 1141 | Atk.Value=1 | |
| 1142 | local Def=Instance.new("NumberValue")
| |
| 1143 | Def.Name="Defense" | |
| 1144 | Def.Parent=Stats | |
| 1145 | Def.Value=1 | |
| 1146 | local Speed=Instance.new("NumberValue")
| |
| 1147 | Speed.Name="Speed" | |
| 1148 | Speed.Parent=Stats | |
| 1149 | Speed.Value=1 | |
| 1150 | local Mvmt=Instance.new("NumberValue")
| |
| 1151 | Mvmt.Name="Movement" | |
| 1152 | Mvmt.Parent=Stats | |
| 1153 | Mvmt.Value=1 | |
| 1154 | ||
| 1155 | local donum=0 | |
| 1156 | ||
| 1157 | ||
| 1158 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 1159 | local fp=it("Part")
| |
| 1160 | fp.formFactor=formfactor | |
| 1161 | fp.Parent=parent | |
| 1162 | fp.Reflectance=reflectance | |
| 1163 | fp.Transparency=transparency | |
| 1164 | fp.CanCollide=false | |
| 1165 | fp.Locked=true | |
| 1166 | fp.BrickColor=brickcolor | |
| 1167 | fp.Name=name | |
| 1168 | fp.Size=size | |
| 1169 | fp.Position=Torso.Position | |
| 1170 | NoOutline(fp) | |
| 1171 | fp.Material="SmoothPlastic" | |
| 1172 | fp:BreakJoints() | |
| 1173 | return fp | |
| 1174 | end | |
| 1175 | ||
| 1176 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 1177 | local mesh=it(Mesh) | |
| 1178 | mesh.Parent=part | |
| 1179 | if Mesh=="SpecialMesh" then | |
| 1180 | mesh.MeshType=meshtype | |
| 1181 | if meshid~="nil" then | |
| 1182 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
| 1183 | end | |
| 1184 | end | |
| 1185 | mesh.Offset=offset | |
| 1186 | mesh.Scale=scale | |
| 1187 | return mesh | |
| 1188 | end | |
| 1189 | ||
| 1190 | function weld(parent,part0,part1,c0) | |
| 1191 | local weld=it("Weld")
| |
| 1192 | weld.Parent=parent | |
| 1193 | weld.Part0=part0 | |
| 1194 | weld.Part1=part1 | |
| 1195 | weld.C0=c0 | |
| 1196 | return weld | |
| 1197 | end | |
| 1198 | ||
| 1199 | local Color1=Torso.BrickColor | |
| 1200 | ||
| 1201 | local bodvel=Instance.new("BodyVelocity")
| |
| 1202 | local bg=Instance.new("BodyGyro")
| |
| 1203 | ||
| 1204 | function swait(num) | |
| 1205 | if num==0 or num==nil then | |
| 1206 | game:service'RunService'.Stepped:wait(0) | |
| 1207 | else | |
| 1208 | for i=0,num do | |
| 1209 | game:service'RunService'.Stepped:wait(0) | |
| 1210 | end | |
| 1211 | end | |
| 1212 | end | |
| 1213 | ||
| 1214 | -------- RAINBOW LEAVE IT TO ME | |
| 1215 | local r = 255 | |
| 1216 | local g = 0 | |
| 1217 | local b = 0 | |
| 1218 | coroutine.resume(coroutine.create(function() | |
| 1219 | while wait() do | |
| 1220 | for i = 0, 254/5 do | |
| 1221 | swait() | |
| 1222 | g = g + 5 | |
| 1223 | end | |
| 1224 | for i = 0, 254/5 do | |
| 1225 | swait() | |
| 1226 | r = r - 5 | |
| 1227 | end | |
| 1228 | for i = 0, 254/5 do | |
| 1229 | swait() | |
| 1230 | b = b + 5 | |
| 1231 | end | |
| 1232 | for i = 0, 254/5 do | |
| 1233 | swait() | |
| 1234 | g = g - 5 | |
| 1235 | end | |
| 1236 | for i = 0, 254/5 do | |
| 1237 | swait() | |
| 1238 | r = r + 5 | |
| 1239 | end | |
| 1240 | for i = 0, 254/5 do | |
| 1241 | swait() | |
| 1242 | b = b - 5 | |
| 1243 | end | |
| 1244 | end | |
| 1245 | end)) | |
| 1246 | ||
| 1247 | ||
| 1248 | so = function(id,par,vol,pit) | |
| 1249 | coroutine.resume(coroutine.create(function() | |
| 1250 | local sou = Instance.new("Sound",par or workspace)
| |
| 1251 | sou.Volume=vol | |
| 1252 | sou.Pitch=pit or 1 | |
| 1253 | sou.SoundId=id | |
| 1254 | swait() | |
| 1255 | sou:play() | |
| 1256 | game:GetService("Debris"):AddItem(sou,6)
| |
| 1257 | end)) | |
| 1258 | end | |
| 1259 | ||
| 1260 | function clerp(a,b,t) | |
| 1261 | local qa = {QuaternionFromCFrame(a)}
| |
| 1262 | local qb = {QuaternionFromCFrame(b)}
| |
| 1263 | local ax, ay, az = a.x, a.y, a.z | |
| 1264 | local bx, by, bz = b.x, b.y, b.z | |
| 1265 | local _t = 1-t | |
| 1266 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 1267 | end | |
| 1268 | ||
| 1269 | function QuaternionFromCFrame(cf) | |
| 1270 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 1271 | local trace = m00 + m11 + m22 | |
| 1272 | if trace > 0 then | |
| 1273 | local s = math.sqrt(1 + trace) | |
| 1274 | local recip = 0.5/s | |
| 1275 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 1276 | else | |
| 1277 | local i = 0 | |
| 1278 | if m11 > m00 then | |
| 1279 | i = 1 | |
| 1280 | end | |
| 1281 | if m22 > (i == 0 and m00 or m11) then | |
| 1282 | i = 2 | |
| 1283 | end | |
| 1284 | if i == 0 then | |
| 1285 | local s = math.sqrt(m00-m11-m22+1) | |
| 1286 | local recip = 0.5/s | |
| 1287 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 1288 | elseif i == 1 then | |
| 1289 | local s = math.sqrt(m11-m22-m00+1) | |
| 1290 | local recip = 0.5/s | |
| 1291 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 1292 | elseif i == 2 then | |
| 1293 | local s = math.sqrt(m22-m00-m11+1) | |
| 1294 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 1295 | end | |
| 1296 | end | |
| 1297 | end | |
| 1298 | ||
| 1299 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 1300 | local xs, ys, zs = x + x, y + y, z + z | |
| 1301 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 1302 | local xx = x*xs | |
| 1303 | local xy = x*ys | |
| 1304 | local xz = x*zs | |
| 1305 | local yy = y*ys | |
| 1306 | local yz = y*zs | |
| 1307 | local zz = z*zs | |
| 1308 | 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)) | |
| 1309 | end | |
| 1310 | ||
| 1311 | function QuaternionSlerp(a, b, t) | |
| 1312 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 1313 | local startInterp, finishInterp; | |
| 1314 | if cosTheta >= 0.0001 then | |
| 1315 | if (1 - cosTheta) > 0.0001 then | |
| 1316 | local theta = math.acos(cosTheta) | |
| 1317 | local invSinTheta = 1/math.sin(theta) | |
| 1318 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 1319 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 1320 | else | |
| 1321 | startInterp = 1-t | |
| 1322 | finishInterp = t | |
| 1323 | end | |
| 1324 | else | |
| 1325 | if (1+cosTheta) > 0.0001 then | |
| 1326 | local theta = math.acos(-cosTheta) | |
| 1327 | local invSinTheta = 1/math.sin(theta) | |
| 1328 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 1329 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 1330 | else | |
| 1331 | startInterp = t-1 | |
| 1332 | finishInterp = t | |
| 1333 | end | |
| 1334 | end | |
| 1335 | 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 | |
| 1336 | end | |
| 1337 | ||
| 1338 | local function CFrameFromTopBack(at, top, back) | |
| 1339 | local right = top:Cross(back) | |
| 1340 | return CFrame.new(at.x, at.y, at.z, | |
| 1341 | right.x, top.x, back.x, | |
| 1342 | right.y, top.y, back.y, | |
| 1343 | right.z, top.z, back.z) | |
| 1344 | end | |
| 1345 | ||
| 1346 | function Triangle(a, b, c) | |
| 1347 | local edg1 = (c-a):Dot((b-a).unit) | |
| 1348 | local edg2 = (a-b):Dot((c-b).unit) | |
| 1349 | local edg3 = (b-c):Dot((a-c).unit) | |
| 1350 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
| 1351 | a, b, c = a, b, c | |
| 1352 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
| 1353 | a, b, c = b, c, a | |
| 1354 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
| 1355 | a, b, c = c, a, b | |
| 1356 | else | |
| 1357 | assert(false, "unreachable") | |
| 1358 | end | |
| 1359 | ||
| 1360 | local len1 = (c-a):Dot((b-a).unit) | |
| 1361 | local len2 = (b-a).magnitude - len1 | |
| 1362 | local width = (a + (b-a).unit*len1 - c).magnitude | |
| 1363 | ||
| 1364 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
| 1365 | ||
| 1366 | local list = {}
| |
| 1367 | ||
| 1368 | if len1 > 0.01 then | |
| 1369 | local w1 = Instance.new('WedgePart', m)
| |
| 1370 | game:GetService("Debris"):AddItem(w1,5)
| |
| 1371 | w1.Material = "SmoothPlastic" | |
| 1372 | w1.FormFactor = 'Custom' | |
| 1373 | w1.BrickColor = BrickColor.new("Really red")
| |
| 1374 | w1.Transparency = 0 | |
| 1375 | w1.Reflectance = 0 | |
| 1376 | w1.Material = "SmoothPlastic" | |
| 1377 | w1.CanCollide = false | |
| 1378 | local l1 = Instance.new("PointLight",w1)
| |
| 1379 | l1.Color = Color3.new(170,0,0) | |
| 1380 | NoOutline(w1) | |
| 1381 | local sz = Vector3.new(0.2, width, len1) | |
| 1382 | w1.Size = sz | |
| 1383 | local sp = Instance.new("SpecialMesh",w1)
| |
| 1384 | sp.MeshType = "Wedge" | |
| 1385 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
| 1386 | w1:BreakJoints() | |
| 1387 | w1.Anchored = true | |
| 1388 | w1.Parent = workspace | |
| 1389 | w1.Transparency = 0.7 | |
| 1390 | table.insert(Effects,{w1,"Disappear",.01})
| |
| 1391 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
| 1392 | table.insert(list,w1) | |
| 1393 | end | |
| 1394 | ||
| 1395 | if len2 > 0.01 then | |
| 1396 | local w2 = Instance.new('WedgePart', m)
| |
| 1397 | game:GetService("Debris"):AddItem(w2,5)
| |
| 1398 | w2.Material = "SmoothPlastic" | |
| 1399 | w2.FormFactor = 'Custom' | |
| 1400 | w2.BrickColor = BrickColor.new("Really red")
| |
| 1401 | w2.Transparency = 0 | |
| 1402 | w2.Reflectance = 0 | |
| 1403 | w2.Material = "SmoothPlastic" | |
| 1404 | w2.CanCollide = false | |
| 1405 | local l2 = Instance.new("PointLight",w2)
| |
| 1406 | l2.Color = Color3.new(170,0,0) | |
| 1407 | NoOutline(w2) | |
| 1408 | local sz = Vector3.new(0.2, width, len2) | |
| 1409 | w2.Size = sz | |
| 1410 | local sp = Instance.new("SpecialMesh",w2)
| |
| 1411 | sp.MeshType = "Wedge" | |
| 1412 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
| 1413 | w2:BreakJoints() | |
| 1414 | w2.Anchored = true | |
| 1415 | w2.Parent = workspace | |
| 1416 | w2.Transparency = 0.7 | |
| 1417 | table.insert(Effects,{w2,"Disappear",.01})
| |
| 1418 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
| 1419 | table.insert(list,w2) | |
| 1420 | end | |
| 1421 | return unpack(list) | |
| 1422 | end | |
| 1423 | ||
| 1424 | ||
| 1425 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 1426 | if hit.Parent == nil then | |
| 1427 | return | |
| 1428 | end | |
| 1429 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1430 | for _, v in pairs(hit.Parent:children()) do | |
| 1431 | if v:IsA("Humanoid") then
| |
| 1432 | h = v | |
| 1433 | end | |
| 1434 | end | |
| 1435 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
| |
| 1436 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 1437 | return | |
| 1438 | end | |
| 1439 | local c = Create("ObjectValue")({
| |
| 1440 | Name = "creator", | |
| 1441 | Value = game:service("Players").LocalPlayer,
| |
| 1442 | Parent = h | |
| 1443 | }) | |
| 1444 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1445 | if HitSound ~= nil and HitPitch ~= nil then | |
| 1446 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 1447 | end | |
| 1448 | local Damage = math.random(minim, maxim) | |
| 1449 | local blocked = false | |
| 1450 | local block = hit.Parent:findFirstChild("Block")
| |
| 1451 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
| 1452 | blocked = true | |
| 1453 | block.Value = block.Value - 1 | |
| 1454 | print(block.Value) | |
| 1455 | end | |
| 1456 | if blocked == false then | |
| 1457 | HitHealth = h.Health | |
| 1458 | h.Health = h.Health - Damage | |
| 1459 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
| 1460 | print("gained kill")
| |
| 1461 | end | |
| 1462 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1463 | else | |
| 1464 | h.Health = h.Health - Damage / 2 | |
| 1465 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1466 | end | |
| 1467 | if Type == "Knockdown" then | |
| 1468 | local hum = hit.Parent.Humanoid | |
| 1469 | hum.PlatformStand = true | |
| 1470 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1471 | swait(1) | |
| 1472 | HHumanoid.PlatformStand = false | |
| 1473 | end), hum) | |
| 1474 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 1475 | local bodvol = Create("BodyVelocity")({
| |
| 1476 | velocity = angle * knockback, | |
| 1477 | P = 5000, | |
| 1478 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1479 | Parent = hit | |
| 1480 | }) | |
| 1481 | local rl = Create("BodyAngularVelocity")({
| |
| 1482 | P = 3000, | |
| 1483 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 1484 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 1485 | Parent = hit | |
| 1486 | }) | |
| 1487 | game:GetService("Debris"):AddItem(bodvol, 0.5)
| |
| 1488 | game:GetService("Debris"):AddItem(rl, 0.5)
| |
| 1489 | elseif Type == "Normal" then | |
| 1490 | local vp = Create("BodyVelocity")({
| |
| 1491 | P = 500, | |
| 1492 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 1493 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 1494 | }) | |
| 1495 | if knockback > 0 then | |
| 1496 | vp.Parent = hit.Parent.Head | |
| 1497 | end | |
| 1498 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 1499 | elseif Type == "Up" then | |
| 1500 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1501 | velocity = Vector3.new(0, 20, 0), | |
| 1502 | P = 5000, | |
| 1503 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1504 | Parent = hit | |
| 1505 | }) | |
| 1506 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 1507 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1508 | velocity = Vector3.new(0, 20, 0), | |
| 1509 | P = 5000, | |
| 1510 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1511 | Parent = hit | |
| 1512 | }) | |
| 1513 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 1514 | elseif Type == "Leech" then | |
| 1515 | local hum = hit.Parent.Humanoid | |
| 1516 | if hum ~= nil then | |
| 1517 | for i = 0, 2 do | |
| 1518 | 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)
| |
| 1519 | end | |
| 1520 | Humanoid.Health = Humanoid.Health + 10 | |
| 1521 | end | |
| 1522 | elseif Type == "UpKnock" then | |
| 1523 | local hum = hit.Parent.Humanoid | |
| 1524 | hum.PlatformStand = true | |
| 1525 | if hum ~= nil then | |
| 1526 | hitr = true | |
| 1527 | end | |
| 1528 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1529 | swait(5) | |
| 1530 | HHumanoid.PlatformStand = false | |
| 1531 | hitr = false | |
| 1532 | end), hum) | |
| 1533 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1534 | velocity = Vector3.new(0, 20, 0), | |
| 1535 | P = 5000, | |
| 1536 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1537 | Parent = hit | |
| 1538 | }) | |
| 1539 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 1540 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1541 | velocity = Vector3.new(0, 20, 0), | |
| 1542 | P = 5000, | |
| 1543 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1544 | Parent = hit | |
| 1545 | }) | |
| 1546 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 1547 | elseif Type == "Snare" then | |
| 1548 | local bp = Create("BodyPosition")({
| |
| 1549 | P = 2000, | |
| 1550 | D = 100, | |
| 1551 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1552 | position = hit.Parent.Torso.Position, | |
| 1553 | Parent = hit.Parent.Torso | |
| 1554 | }) | |
| 1555 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1556 | elseif Type == "Slashnare" then | |
| 1557 | 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)
| |
| 1558 | for i = 1, math.random(4, 5) do | |
| 1559 | 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)
| |
| 1560 | end | |
| 1561 | local bp = Create("BodyPosition")({
| |
| 1562 | P = 2000, | |
| 1563 | D = 100, | |
| 1564 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1565 | position = hit.Parent.Torso.Position, | |
| 1566 | Parent = hit.Parent.Torso | |
| 1567 | }) | |
| 1568 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1569 | elseif Type == "Spike" then | |
| 1570 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
| 1571 | local bp = Create("BodyPosition")({
| |
| 1572 | P = 2000, | |
| 1573 | D = 100, | |
| 1574 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1575 | position = hit.Parent.Torso.Position, | |
| 1576 | Parent = hit.Parent.Torso | |
| 1577 | }) | |
| 1578 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1579 | elseif Type == "Freeze" then | |
| 1580 | local BodPos = Create("BodyPosition")({
| |
| 1581 | P = 50000, | |
| 1582 | D = 1000, | |
| 1583 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1584 | position = hit.Parent.Torso.Position, | |
| 1585 | Parent = hit.Parent.Torso | |
| 1586 | }) | |
| 1587 | local BodGy = Create("BodyGyro")({
| |
| 1588 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
| 1589 | P = 20000, | |
| 1590 | Parent = hit.Parent.Torso, | |
| 1591 | cframe = hit.Parent.Torso.CFrame | |
| 1592 | }) | |
| 1593 | hit.Parent.Torso.Anchored = true | |
| 1594 | coroutine.resume(coroutine.create(function(Part) | |
| 1595 | swait(1.5) | |
| 1596 | Part.Anchored = false | |
| 1597 | end), hit.Parent.Torso) | |
| 1598 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 1599 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 1600 | end | |
| 1601 | local debounce = Create("BoolValue")({
| |
| 1602 | Name = "DebounceHit", | |
| 1603 | Parent = hit.Parent, | |
| 1604 | Value = true | |
| 1605 | }) | |
| 1606 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 1607 | c = Instance.new("ObjectValue")
| |
| 1608 | c.Name = "creator" | |
| 1609 | c.Value = Player | |
| 1610 | c.Parent = h | |
| 1611 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1612 | end | |
| 1613 | end | |
| 1614 | function ShowDamage(Pos, Text, Time, Color) | |
| 1615 | local Rate = 0.03333333333333333 | |
| 1616 | local Pos = Pos or Vector3.new(0, 0, 0) | |
| 1617 | local Text = Text or "" | |
| 1618 | local Time = Time or 2 | |
| 1619 | local Color = Color or Color3.new(1, 0, 1) | |
| 1620 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 1621 | EffectPart.Anchored = true | |
| 1622 | local BillboardGui = Create("BillboardGui")({
| |
| 1623 | Size = UDim2.new(3, 0, 3, 0), | |
| 1624 | Adornee = EffectPart, | |
| 1625 | Parent = EffectPart | |
| 1626 | }) | |
| 1627 | local TextLabel = Create("TextLabel")({
| |
| 1628 | BackgroundTransparency = 1, | |
| 1629 | Size = UDim2.new(1, 0, 1, 0), | |
| 1630 | Text = Text, | |
| 1631 | TextColor3 = Color, | |
| 1632 | TextScaled = true, | |
| 1633 | Font = Enum.Font.ArialBold, | |
| 1634 | Parent = BillboardGui | |
| 1635 | }) | |
| 1636 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
| 1637 | EffectPart.Parent = game:GetService("Workspace")
| |
| 1638 | delay(0, function() | |
| 1639 | local Frames = Time / Rate | |
| 1640 | for Frame = 1, Frames do | |
| 1641 | wait(Rate) | |
| 1642 | local Percent = Frame / Frames | |
| 1643 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 1644 | TextLabel.TextTransparency = Percent | |
| 1645 | end | |
| 1646 | if EffectPart and EffectPart.Parent then | |
| 1647 | EffectPart:Destroy() | |
| 1648 | end | |
| 1649 | end) | |
| 1650 | end | |
| 1651 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 1652 | for _, c in pairs(workspace:children()) do | |
| 1653 | local hum = c:findFirstChildOfClass("Humanoid")
| |
| 1654 | if hum ~= nil then | |
| 1655 | local head = c:findFirstChild("Head")
| |
| 1656 | if head ~= nil then | |
| 1657 | local targ = head.Position - Part.Position | |
| 1658 | local mag = targ.magnitude | |
| 1659 | if magni >= mag and c.Name ~= Player.Name then | |
| 1660 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 1661 | end | |
| 1662 | end | |
| 1663 | end | |
| 1664 | end | |
| 1665 | end | |
| 1666 | ||
| 1667 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
| 1668 | for _, c in pairs(workspace:children()) do | |
| 1669 | local hum = c:findFirstChild("Humanoid")
| |
| 1670 | if hum ~= nil then | |
| 1671 | local head = c:findFirstChild("Torso")
| |
| 1672 | if head ~= nil then | |
| 1673 | local targ = head.Position - Part.Position | |
| 1674 | local mag = targ.magnitude | |
| 1675 | if magni >= mag and c.Name ~= Player.Name then | |
| 1676 | MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
| |
| 1677 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 1678 | end | |
| 1679 | end | |
| 1680 | end | |
| 1681 | end | |
| 1682 | end | |
| 1683 | ||
| 1684 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
| 1685 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 1686 | end | |
| 1687 | ||
| 1688 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
| 1689 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1690 | prt.Anchored=true | |
| 1691 | prt.CFrame=cframe | |
| 1692 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
| |
| 1693 | --http://www.roblox.com/asset/?id=4770560 | |
| 1694 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1695 | CF=prt.CFrame | |
| 1696 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
| 1697 | for i=0,1,0.2 do | |
| 1698 | wait() | |
| 1699 | Part.CFrame=CF*cf(0,0,-0.4) | |
| 1700 | end | |
| 1701 | for i=0,1,delay do | |
| 1702 | wait() | |
| 1703 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
| 1704 | Mesh.Scale=Mesh.Scale | |
| 1705 | end | |
| 1706 | for i=0,1,0.1 do | |
| 1707 | wait() | |
| 1708 | Part.Transparency=i | |
| 1709 | end | |
| 1710 | Part.Parent=nil | |
| 1711 | end),prt,msh,CF) | |
| 1712 | end | |
| 1713 | ||
| 1714 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1715 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1716 | prt.Anchored=true | |
| 1717 | prt.Material = "Neon" | |
| 1718 | prt.CFrame=cframe | |
| 1719 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1720 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1721 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1722 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1723 | for i=0,1,delay do | |
| 1724 | swait() | |
| 1725 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1726 | Part.Transparency=i | |
| 1727 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1728 | end | |
| 1729 | Part.Parent=nil | |
| 1730 | end),prt,msh) | |
| 1731 | end | |
| 1732 | ||
| 1733 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 1734 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1735 | prt.Anchored=true | |
| 1736 | prt.Material = "Neon" | |
| 1737 | prt.CFrame=cframe | |
| 1738 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1739 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1740 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1741 | local rtype = rottype | |
| 1742 | for i=0,1,delay do | |
| 1743 | swait() | |
| 1744 | if rtype == 1 then | |
| 1745 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1746 | elseif rtype == 2 then | |
| 1747 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1748 | end | |
| 1749 | Part.Transparency=i | |
| 1750 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1751 | end | |
| 1752 | Part.Parent=nil | |
| 1753 | end),prt,msh) | |
| 1754 | end | |
| 1755 | ||
| 1756 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1757 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1758 | prt.Anchored=true | |
| 1759 | prt.CFrame=cframe | |
| 1760 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1761 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1762 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1763 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1764 | for i=0,1,delay do | |
| 1765 | wait() | |
| 1766 | Part.Transparency=i | |
| 1767 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1768 | end | |
| 1769 | Part.Parent=nil | |
| 1770 | end),prt,msh) | |
| 1771 | end | |
| 1772 | ||
| 1773 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 1774 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1775 | prt.Anchored=true | |
| 1776 | prt.Material = "Neon" | |
| 1777 | prt.CFrame=cframe | |
| 1778 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1779 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1780 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1781 | local rtype = rottype | |
| 1782 | for i=0,1,delay do | |
| 1783 | swait() | |
| 1784 | if rtype == 1 then | |
| 1785 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1786 | elseif rtype == 2 then | |
| 1787 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1788 | end | |
| 1789 | Part.Transparency=i | |
| 1790 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1791 | end | |
| 1792 | Part.Parent=nil | |
| 1793 | end),prt,msh) | |
| 1794 | end | |
| 1795 | ||
| 1796 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
| 1797 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1798 | prt.Anchored=true | |
| 1799 | prt.Material = "Neon" | |
| 1800 | prt.CFrame=cframe | |
| 1801 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
| 1802 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
| 1803 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
| |
| 1804 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1805 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1806 | local rtype = rottype | |
| 1807 | for i=0,1,delay do | |
| 1808 | swait() | |
| 1809 | if rtype == 1 then | |
| 1810 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1811 | elseif rtype == 2 then | |
| 1812 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1813 | end | |
| 1814 | dec.Transparency=i | |
| 1815 | dec2.Transparency=i | |
| 1816 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 1817 | end | |
| 1818 | Part.Parent=nil | |
| 1819 | end),prt,msh) | |
| 1820 | end | |
| 1821 | ||
| 1822 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
| 1823 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1824 | prt.Anchored=true | |
| 1825 | prt.Material = "Neon" | |
| 1826 | prt.CFrame=cframe | |
| 1827 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
| |
| 1828 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1829 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1830 | local rtype = rottype | |
| 1831 | for i=0,1,delay do | |
| 1832 | swait() | |
| 1833 | if rtype == 1 then | |
| 1834 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1835 | elseif rtype == 2 then | |
| 1836 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1837 | end | |
| 1838 | prt.Transparency=i | |
| 1839 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 1840 | end | |
| 1841 | Part.Parent=nil | |
| 1842 | end),prt,msh) | |
| 1843 | end | |
| 1844 | ||
| 1845 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
| 1846 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1847 | prt.Anchored=true | |
| 1848 | prt.Material = "Neon" | |
| 1849 | prt.CFrame=cframe | |
| 1850 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
| |
| 1851 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1852 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1853 | local rtype = rottype | |
| 1854 | for i=0,1,delay do | |
| 1855 | swait() | |
| 1856 | if rtype == 1 then | |
| 1857 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
| 1858 | elseif rtype == 2 then | |
| 1859 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
| 1860 | end | |
| 1861 | prt.Transparency=i | |
| 1862 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
| 1863 | end | |
| 1864 | Part.Parent=nil | |
| 1865 | end),prt,msh) | |
| 1866 | end | |
| 1867 | ||
| 1868 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
| 1869 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1870 | prt.Anchored=true | |
| 1871 | prt.Material = "Neon" | |
| 1872 | prt.CFrame=cframe | |
| 1873 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1874 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1875 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1876 | local rtype = rottype | |
| 1877 | for i=0,1,delay do | |
| 1878 | swait() | |
| 1879 | if rtype == 1 then | |
| 1880 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1881 | elseif rtype == 2 then | |
| 1882 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1883 | end | |
| 1884 | prt.Transparency=i | |
| 1885 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 1886 | end | |
| 1887 | Part.Parent=nil | |
| 1888 | end),prt,msh) | |
| 1889 | end | |
| 1890 | ||
| 1891 | function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 1892 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1893 | prt.Anchored=true | |
| 1894 | prt.Material = "Neon" | |
| 1895 | prt.CFrame=cframe | |
| 1896 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1897 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1898 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1899 | local rtype = rottype | |
| 1900 | for i=0,1,delay do | |
| 1901 | swait() | |
| 1902 | if rtype == 1 then | |
| 1903 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1904 | elseif rtype == 2 then | |
| 1905 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1906 | end | |
| 1907 | prt.Transparency=i | |
| 1908 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1909 | end | |
| 1910 | Part.Parent=nil | |
| 1911 | end),prt,msh) | |
| 1912 | end | |
| 1913 | ||
| 1914 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 1915 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1916 | prt.Anchored=false | |
| 1917 | prt.CFrame=cframe | |
| 1918 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1919 | local wld=weld(prt,prt,Parent,cframe) | |
| 1920 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1921 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 1922 | for i=0,1,delay do | |
| 1923 | wait() | |
| 1924 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
| 1925 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1926 | Part.Transparency=i | |
| 1927 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1928 | end | |
| 1929 | Part.Parent=nil | |
| 1930 | end),prt,msh,wld) | |
| 1931 | end | |
| 1932 | ||
| 1933 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 1934 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1935 | prt.Anchored=false | |
| 1936 | prt.CFrame=cframe | |
| 1937 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1938 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
| 1939 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1940 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 1941 | for i=0,1,delay do | |
| 1942 | wait() | |
| 1943 | Weld.C0=euler(i*20,0,0) | |
| 1944 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1945 | Part.Transparency=i | |
| 1946 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1947 | end | |
| 1948 | Part.Parent=nil | |
| 1949 | end),prt,msh,wld) | |
| 1950 | end | |
| 1951 | ||
| 1952 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1953 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1954 | prt.Anchored=true | |
| 1955 | prt.CFrame=cframe | |
| 1956 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1957 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1958 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1959 | for i=0,1,delay do | |
| 1960 | wait() | |
| 1961 | Part.CFrame=Part.CFrame | |
| 1962 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1963 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1964 | prt2.Anchored=true | |
| 1965 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1966 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
| |
| 1967 | game:GetService("Debris"):AddItem(prt2,2)
| |
| 1968 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1969 | for i=0,1,0.1 do | |
| 1970 | wait() | |
| 1971 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
| 1972 | end | |
| 1973 | Part.Parent=nil | |
| 1974 | end),prt2,msh2) | |
| 1975 | end | |
| 1976 | for i=0,1,delay*2 do | |
| 1977 | wait() | |
| 1978 | Part.CFrame=Part.CFrame | |
| 1979 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
| 1980 | end | |
| 1981 | Part.Parent=nil | |
| 1982 | end),prt,msh) | |
| 1983 | end | |
| 1984 | ||
| 1985 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1986 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1987 | prt.Anchored=true | |
| 1988 | prt.CFrame=cframe | |
| 1989 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1990 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1991 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1992 | for i=0,1,delay do | |
| 1993 | wait() | |
| 1994 | Part.CFrame=Part.CFrame | |
| 1995 | Part.Transparency=i | |
| 1996 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1997 | end | |
| 1998 | Part.Parent=nil | |
| 1999 | end),prt,msh) | |
| 2000 | end | |
| 2001 | ||
| 2002 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
| 2003 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2004 | prt.Anchored=true | |
| 2005 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 2006 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2007 | game:GetService("Debris"):AddItem(prt,2)
| |
| 2008 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
| 2009 | CF=Part.CFrame | |
| 2010 | Numbb=0 | |
| 2011 | randnumb=math.random()/10 | |
| 2012 | rand1=math.random()/10 | |
| 2013 | for i=0,1,rand1 do | |
| 2014 | wait() | |
| 2015 | CF=CF*cf(0,math.random()/2,0) | |
| 2016 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
| 2017 | Part.CFrame=CF*euler(Numbb,0,0) | |
| 2018 | Part.Transparency=i | |
| 2019 | Numbb=Numbb+randnumb | |
| 2020 | end | |
| 2021 | Part.Parent=nil | |
| 2022 | end),prt,CF,Numbb,randnumb) | |
| 2023 | end | |
| 2024 | ||
| 2025 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 2026 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2027 | prt.Anchored=true | |
| 2028 | prt.CFrame=cframe | |
| 2029 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
| |
| 2030 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2031 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2032 | for i=0,1,delay do | |
| 2033 | wait() | |
| 2034 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
| 2035 | Part.Transparency=i | |
| 2036 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2037 | end | |
| 2038 | Part.Parent=nil | |
| 2039 | end),prt,msh) | |
| 2040 | end | |
| 2041 | ||
| 2042 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 2043 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2044 | prt.Anchored=true | |
| 2045 | prt.CFrame=cframe | |
| 2046 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
| |
| 2047 | game:GetService("Debris"):AddItem(prt,2)
| |
| 2048 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2049 | for i=0,1,delay do | |
| 2050 | wait() | |
| 2051 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
| 2052 | Part.Transparency=i | |
| 2053 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2054 | end | |
| 2055 | Part.Parent=nil | |
| 2056 | end),prt,msh) | |
| 2057 | end | |
| 2058 | ||
| 2059 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
| 2060 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2061 | prt.Anchored=true | |
| 2062 | prt.CFrame=cframe*cf(x,y,z) | |
| 2063 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
| |
| 2064 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2065 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
| 2066 | local num=math.random() | |
| 2067 | local num2=math.random(-3,2)+math.random() | |
| 2068 | local numm=0 | |
| 2069 | for i=0,1,delay*2 do | |
| 2070 | swait() | |
| 2071 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
| 2072 | Part.Transparency=i | |
| 2073 | numm=numm+0.01 | |
| 2074 | end | |
| 2075 | Part.Parent=nil | |
| 2076 | Mesh.Parent=nil | |
| 2077 | end),prt,msh,x,y,z) | |
| 2078 | end | |
| 2079 | ||
| 2080 | function dmgstart(dmg,what) | |
| 2081 | hitcon = what.Touched:connect(function(hit) | |
| 2082 | local hum = hit.Parent:FindFirstChild("Humanoid")
| |
| 2083 | if hum and not hum:IsDescendantOf(Character) then | |
| 2084 | hum:TakeDamage(dmg) | |
| 2085 | end | |
| 2086 | end) | |
| 2087 | end | |
| 2088 | ||
| 2089 | function dmgstop() | |
| 2090 | hitcon:disconnect() | |
| 2091 | end | |
| 2092 | ||
| 2093 | function Cloak() | |
| 2094 | Face.Parent=nil | |
| 2095 | cloaked=true | |
| 2096 | for _,v in pairs(Torso.Parent:children()) do | |
| 2097 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
| 2098 | coroutine.resume(coroutine.create(function() | |
| 2099 | for i=0,1,0.2 do | |
| 2100 | wait() | |
| 2101 | v.Transparency=i | |
| 2102 | end | |
| 2103 | v.Transparency=1 | |
| 2104 | end)) | |
| 2105 | end | |
| 2106 | if v.className=="Hat" then | |
| 2107 | hatp=v.Handle | |
| 2108 | coroutine.resume(coroutine.create(function(derp) | |
| 2109 | for i=0,1,0.2 do | |
| 2110 | wait() | |
| 2111 | derp.Transparency=i | |
| 2112 | end | |
| 2113 | derp.Transparency=1 | |
| 2114 | end),hatp) | |
| 2115 | end | |
| 2116 | end | |
| 2117 | for _,v in pairs(m:children()) do | |
| 2118 | if v.className=="Part" then | |
| 2119 | coroutine.resume(coroutine.create(function() | |
| 2120 | for i=0,1,0.2 do | |
| 2121 | wait() | |
| 2122 | v.Transparency=i | |
| 2123 | end | |
| 2124 | v.Transparency=1 | |
| 2125 | end)) | |
| 2126 | end | |
| 2127 | end | |
| 2128 | end | |
| 2129 | ||
| 2130 | function UnCloak() | |
| 2131 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
| |
| 2132 | Face.Parent=Head | |
| 2133 | cloaked=false | |
| 2134 | for _,v in pairs(Torso.Parent:children()) do | |
| 2135 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
| 2136 | coroutine.resume(coroutine.create(function() | |
| 2137 | for i=0,1,0.1 do | |
| 2138 | wait() | |
| 2139 | v.Transparency=v.Transparency-0.1 | |
| 2140 | end | |
| 2141 | v.Transparency=0 | |
| 2142 | end)) | |
| 2143 | end | |
| 2144 | if v.className=="Hat" then | |
| 2145 | hatp=v.Handle | |
| 2146 | coroutine.resume(coroutine.create(function(derp) | |
| 2147 | for i=0,1,0.1 do | |
| 2148 | wait() | |
| 2149 | derp.Transparency=derp.Transparency-0.1 | |
| 2150 | end | |
| 2151 | derp.Transparency=0 | |
| 2152 | end),hatp) | |
| 2153 | end | |
| 2154 | end | |
| 2155 | for _,v in pairs(m:children()) do | |
| 2156 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
| 2157 | coroutine.resume(coroutine.create(function() | |
| 2158 | for i=0,1,0.1 do | |
| 2159 | wait() | |
| 2160 | v.Transparency=v.Transparency-0.1 | |
| 2161 | end | |
| 2162 | v.Transparency=0 | |
| 2163 | end)) | |
| 2164 | v.Transparency=0 | |
| 2165 | end | |
| 2166 | end | |
| 2167 | end | |
| 2168 | ||
| 2169 | local origcolor = BrickColor.new("Pastel light blue")
| |
| 2170 | ---- This section of explosions. | |
| 2171 | function Explode(rad,par,pitch,vol,mindam,maxdam) | |
| 2172 | local expart = Instance.new("Part",char)
| |
| 2173 | local expart2 = Instance.new("Part",char)
| |
| 2174 | local rin = Instance.new("Part",char)
| |
| 2175 | local rin2 = Instance.new("Part",char)
| |
| 2176 | local partMesh = Instance.new("SpecialMesh",expart)
| |
| 2177 | partMesh.MeshType = "Sphere" | |
| 2178 | local partMesh2 = Instance.new("SpecialMesh",expart2)
| |
| 2179 | partMesh2.MeshType = "Sphere" | |
| 2180 | local partMesh3 = Instance.new("SpecialMesh",rin)
| |
| 2181 | partMesh3.MeshType = "Brick" | |
| 2182 | local partMesh4 = Instance.new("SpecialMesh",rin2)
| |
| 2183 | partMesh4.MeshType = "Brick" | |
| 2184 | CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
| |
| 2185 | partMesh.Scale = vt(rad,rad,rad) | |
| 2186 | expart.Size = vt(1,1,1) | |
| 2187 | expart.Transparency = 0 | |
| 2188 | expart.Anchored = true | |
| 2189 | expart.Material = "Neon" | |
| 2190 | expart.BrickColor = bc("White")
| |
| 2191 | expart.CFrame = par.CFrame | |
| 2192 | partMesh2.Scale = vt(rad,rad,rad) | |
| 2193 | expart2.Size = vt(1.15,1.15,1.15) | |
| 2194 | expart2.Transparency = 0.5 | |
| 2195 | expart2.Anchored = true | |
| 2196 | expart2.Material = "Neon" | |
| 2197 | expart2.BrickColor = par.BrickColor | |
| 2198 | expart2.CFrame = par.CFrame | |
| 2199 | rin.Size = vt(1.15,1.15,1.15) | |
| 2200 | rin.Transparency = 1 | |
| 2201 | rin.Anchored = true | |
| 2202 | rin.Material = "Neon" | |
| 2203 | rin.BrickColor = par.BrickColor | |
| 2204 | rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 2205 | rin2.Size = vt(1.15,1.15,1.15) | |
| 2206 | rin2.Transparency = 1 | |
| 2207 | rin2.Anchored = true | |
| 2208 | rin2.Material = "Neon" | |
| 2209 | rin2.BrickColor = par.BrickColor | |
| 2210 | rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 2211 | partMesh3.Scale = vt(0,1,0) | |
| 2212 | partMesh4.Scale = vt(0,1,0) | |
| 2213 | local dec2 = Instance.new("Decal", rin)
| |
| 2214 | dec2.Face = "Top" | |
| 2215 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
| 2216 | dec2.Parent = rin | |
| 2217 | local dec2b = dec2:Clone() | |
| 2218 | dec2b.Face = "Bottom" | |
| 2219 | dec2b.Parent = rin | |
| 2220 | ||
| 2221 | local dec2a = Instance.new("Decal", rin2)
| |
| 2222 | dec2a.Face = "Top" | |
| 2223 | dec2a.Texture = "http://www.roblox.com/asset/?id=874580939" | |
| 2224 | dec2a.Parent = rin2 | |
| 2225 | local dec2ab = dec2a:Clone() | |
| 2226 | dec2ab.Face = "Bottom" | |
| 2227 | dec2ab.Parent = rin2 | |
| 2228 | expart.CanCollide = false | |
| 2229 | expart2.CanCollide = false | |
| 2230 | rin.CanCollide = false | |
| 2231 | rin2.CanCollide = false | |
| 2232 | MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal") | |
| 2233 | local value = 1*rad/6.5 | |
| 2234 | for i = 0, 199 do | |
| 2235 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 2236 | expart.CFrame = expart.CFrame | |
| 2237 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
| 2238 | expart2.CFrame = expart.CFrame | |
| 2239 | value = value - 0.035*rad/30 | |
| 2240 | if value < 7.5 then | |
| 2241 | partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5) | |
| 2242 | rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0) | |
| 2243 | partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5) | |
| 2244 | rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0) | |
| 2245 | end | |
| 2246 | if value < 0 then | |
| 2247 | dec2.Transparency = dec2.Transparency + 0.025 | |
| 2248 | dec2a.Transparency = dec2a.Transparency + 0.025 | |
| 2249 | dec2b.Transparency = dec2b.Transparency + 0.025 | |
| 2250 | dec2ab.Transparency = dec2ab.Transparency + 0.025 | |
| 2251 | expart.Transparency = expart.Transparency + 0.025 | |
| 2252 | expart2.Transparency = expart2.Transparency + 0.025 | |
| 2253 | rin.Transparency = rin.Transparency + 0.025 | |
| 2254 | rin2.Transparency = rin2.Transparency + 0.025 | |
| 2255 | end | |
| 2256 | swait() | |
| 2257 | end | |
| 2258 | game:GetService("Debris"):AddItem(expart, 1)
| |
| 2259 | game:GetService("Debris"):AddItem(expart2, 1)
| |
| 2260 | game:GetService("Debris"):AddItem(rin, 1)
| |
| 2261 | game:GetService("Debris"):AddItem(rin2, 1)
| |
| 2262 | end | |
| 2263 | ||
| 2264 | function ExplodeShort(rad,par,pitch,vol,mindam,maxdam) | |
| 2265 | local expart = Instance.new("Part",char)
| |
| 2266 | local expart2 = Instance.new("Part",char)
| |
| 2267 | local partMesh = Instance.new("SpecialMesh",expart)
| |
| 2268 | partMesh.MeshType = "Sphere" | |
| 2269 | local partMesh2 = Instance.new("SpecialMesh",expart2)
| |
| 2270 | partMesh2.MeshType = "Sphere" | |
| 2271 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
| |
| 2272 | partMesh.Scale = vt(rad,rad,rad) | |
| 2273 | expart.Size = vt(1,1,1) | |
| 2274 | expart.Transparency = 0 | |
| 2275 | expart.Anchored = true | |
| 2276 | expart.Material = "Neon" | |
| 2277 | expart.BrickColor = bc("White")
| |
| 2278 | expart.CFrame = par.CFrame | |
| 2279 | partMesh2.Scale = vt(rad,rad,rad) | |
| 2280 | expart2.Size = vt(1.15,1.15,1.15) | |
| 2281 | expart2.Transparency = 0.5 | |
| 2282 | expart2.Anchored = true | |
| 2283 | expart2.Material = "Neon" | |
| 2284 | expart2.BrickColor = par.BrickColor | |
| 2285 | expart2.CFrame = par.CFrame | |
| 2286 | expart.CanCollide = false | |
| 2287 | expart2.CanCollide = false | |
| 2288 | MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal") | |
| 2289 | local value = 1*rad/6.5 | |
| 2290 | for i = 0, 75 do | |
| 2291 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 2292 | expart.CFrame = expart.CFrame | |
| 2293 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
| 2294 | expart2.CFrame = expart.CFrame | |
| 2295 | value = value - 0.035*rad/5 | |
| 2296 | if value < 0 then | |
| 2297 | value = 0 | |
| 2298 | expart.Transparency = expart.Transparency + 0.05 | |
| 2299 | expart2.Transparency = expart2.Transparency + 0.05 | |
| 2300 | end | |
| 2301 | swait() | |
| 2302 | end | |
| 2303 | game:GetService("Debris"):AddItem(expart, 1)
| |
| 2304 | game:GetService("Debris"):AddItem(expart2, 1)
| |
| 2305 | end | |
| 2306 | ||
| 2307 | function AreaDanger(rad,par,mindam,maxdam) | |
| 2308 | local expart = Instance.new("Part",char)
| |
| 2309 | local partMesh = Instance.new("SpecialMesh",expart)
| |
| 2310 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
| |
| 2311 | partMesh.MeshType = "Sphere" | |
| 2312 | partMesh.Scale = vt(rad,rad,rad) | |
| 2313 | expart.Size = vt(1,1,1) | |
| 2314 | expart.Transparency = 0.5 | |
| 2315 | expart.Anchored = true | |
| 2316 | expart.Material = "Neon" | |
| 2317 | expart.CanCollide = false | |
| 2318 | expart.BrickColor = par.BrickColor | |
| 2319 | expart.CFrame = par.CFrame | |
| 2320 | local value = 1*rad/5 | |
| 2321 | MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1) | |
| 2322 | for i = 0, 14 do | |
| 2323 | wait() | |
| 2324 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 2325 | expart.CFrame = expart.CFrame | |
| 2326 | value = value - 0.035*rad | |
| 2327 | if value < 0 then | |
| 2328 | value = 0 | |
| 2329 | end | |
| 2330 | end | |
| 2331 | wait(0.25) | |
| 2332 | CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
| |
| 2333 | wait(0.5) | |
| 2334 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
| |
| 2335 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
| |
| 2336 | MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal") | |
| 2337 | MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025) | |
| 2338 | for i = 0, 14 do | |
| 2339 | wait() | |
| 2340 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
| 2341 | expart.CFrame = expart.CFrame | |
| 2342 | value = value - 0.035*rad/2 | |
| 2343 | end | |
| 2344 | expart.Transparency = 1 | |
| 2345 | game:GetService("Debris"):AddItem(expart, 5)
| |
| 2346 | end | |
| 2347 | ||
| 2348 | function Swarmsplosions(negrad,rad,par,mindam,maxdam) | |
| 2349 | CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
| |
| 2350 | CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
| |
| 2351 | CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
| |
| 2352 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
| |
| 2353 | MagniDamageWithEffect(par, 25, 5,10, 0, "Normal") | |
| 2354 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025) | |
| 2355 | for i = 0, 24 do | |
| 2356 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2)) | |
| 2357 | end | |
| 2358 | for i = 0, 24 do | |
| 2359 | local expart = Instance.new("Part",char)
| |
| 2360 | expart.Transparency = 1 | |
| 2361 | expart.Anchored = true | |
| 2362 | expart.CanCollide = false | |
| 2363 | expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad)) | |
| 2364 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
| |
| 2365 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
| |
| 2366 | MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal") | |
| 2367 | MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025) | |
| 2368 | for i = 0, 9 do | |
| 2369 | MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2)) | |
| 2370 | end | |
| 2371 | game:GetService("Debris"):AddItem(expart, 2)
| |
| 2372 | wait(0.1) | |
| 2373 | end | |
| 2374 | end | |
| 2375 | ||
| 2376 | function EXterPlosion(par) | |
| 2377 | CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
| |
| 2378 | CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
| |
| 2379 | CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
| |
| 2380 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
| |
| 2381 | MagniDamageWithEffect(par, 500, 80,99, 0, "Normal") | |
| 2382 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005) | |
| 2383 | MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1) | |
| 2384 | for i = 0, 24 do | |
| 2385 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2)) | |
| 2386 | end | |
| 2387 | for i = 0, 24 do | |
| 2388 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2)) | |
| 2389 | end | |
| 2390 | end | |
| 2391 | ---- | |
| 2392 | ||
| 2393 | ||
| 2394 | function ring(type,pos,scale,value) | |
| 2395 | local type = type | |
| 2396 | local rng = Instance.new("Part", char)
| |
| 2397 | rng.Anchored = true | |
| 2398 | rng.BrickColor = origcolor | |
| 2399 | rng.CanCollide = false | |
| 2400 | rng.FormFactor = 3 | |
| 2401 | rng.Name = "Ring" | |
| 2402 | rng.Size = Vector3.new(1, 1, 1) | |
| 2403 | rng.Transparency = 0 | |
| 2404 | rng.TopSurface = 0 | |
| 2405 | rng.BottomSurface = 0 | |
| 2406 | rng.CFrame = pos | |
| 2407 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2408 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2409 | rngm.Scale = scale | |
| 2410 | local scaler2 = 1 | |
| 2411 | if type == "Add" then | |
| 2412 | scaler2 = 1*value | |
| 2413 | elseif type == "Divide" then | |
| 2414 | scaler2 = 1/value | |
| 2415 | end | |
| 2416 | coroutine.resume(coroutine.create(function() | |
| 2417 | for i = 0,10,0.1 do | |
| 2418 | swait() | |
| 2419 | if type == "Add" then | |
| 2420 | scaler2 = scaler2 - 0.01*value | |
| 2421 | elseif type == "Divide" then | |
| 2422 | scaler2 = scaler2 - 0.01/value | |
| 2423 | end | |
| 2424 | rng.Transparency = rng.Transparency + 0.01 | |
| 2425 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 2426 | end | |
| 2427 | rng:Destroy() | |
| 2428 | end)) | |
| 2429 | end | |
| 2430 | ||
| 2431 | ||
| 2432 | function wave(type,pos,scale,value) | |
| 2433 | local type = type | |
| 2434 | local rng = Instance.new("Part", char)
| |
| 2435 | rng.Anchored = true | |
| 2436 | rng.BrickColor = origcolor | |
| 2437 | rng.CanCollide = false | |
| 2438 | rng.FormFactor = 3 | |
| 2439 | rng.Name = "Ring" | |
| 2440 | rng.Size = Vector3.new(1, 1, 1) | |
| 2441 | rng.Transparency = 0 | |
| 2442 | rng.TopSurface = 0 | |
| 2443 | rng.BottomSurface = 0 | |
| 2444 | rng.CFrame = pos | |
| 2445 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2446 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 2447 | rngm.Scale = scale | |
| 2448 | local scaler2 = 1 | |
| 2449 | if type == "Add" then | |
| 2450 | scaler2 = 1*value | |
| 2451 | elseif type == "Divide" then | |
| 2452 | scaler2 = 1/value | |
| 2453 | end | |
| 2454 | coroutine.resume(coroutine.create(function() | |
| 2455 | for i = 0,10,0.1 do | |
| 2456 | swait() | |
| 2457 | if type == "Add" then | |
| 2458 | scaler2 = scaler2 - 0.01*value | |
| 2459 | elseif type == "Divide" then | |
| 2460 | scaler2 = scaler2 - 0.01/value | |
| 2461 | end | |
| 2462 | rng.Transparency = rng.Transparency + 0.01 | |
| 2463 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 2464 | end | |
| 2465 | rng:Destroy() | |
| 2466 | end)) | |
| 2467 | end | |
| 2468 | ||
| 2469 | function wind(type,pos,scale,value,speed) | |
| 2470 | local type = type | |
| 2471 | local rng = Instance.new("Part", char)
| |
| 2472 | rng.Anchored = true | |
| 2473 | rng.BrickColor = origcolor | |
| 2474 | rng.CanCollide = false | |
| 2475 | rng.FormFactor = 3 | |
| 2476 | rng.Name = "Ring" | |
| 2477 | rng.Size = Vector3.new(1, 1, 1) | |
| 2478 | rng.Transparency = 0 | |
| 2479 | rng.TopSurface = 0 | |
| 2480 | rng.BottomSurface = 0 | |
| 2481 | rng.CFrame = pos | |
| 2482 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2483 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 2484 | rngm.Scale = scale | |
| 2485 | local scaler2 = 1 | |
| 2486 | if type == "Add" then | |
| 2487 | scaler2 = 1*value | |
| 2488 | elseif type == "Divide" then | |
| 2489 | scaler2 = 1/value | |
| 2490 | end | |
| 2491 | coroutine.resume(coroutine.create(function() | |
| 2492 | for i = 0,10,0.1 do | |
| 2493 | swait() | |
| 2494 | if type == "Add" then | |
| 2495 | scaler2 = scaler2 - 0.01*value | |
| 2496 | elseif type == "Divide" then | |
| 2497 | scaler2 = scaler2 - 0.01/value | |
| 2498 | end | |
| 2499 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
| 2500 | rng.Transparency = rng.Transparency + 0.01 | |
| 2501 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 2502 | end | |
| 2503 | rng:Destroy() | |
| 2504 | end)) | |
| 2505 | end | |
| 2506 | ||
| 2507 | function groundwind(type,pos,scale,value,speed) | |
| 2508 | local type = type | |
| 2509 | local rng = Instance.new("Part", char)
| |
| 2510 | rng.Anchored = true | |
| 2511 | rng.BrickColor = origcolor | |
| 2512 | rng.CanCollide = false | |
| 2513 | rng.FormFactor = 3 | |
| 2514 | rng.Name = "Ring" | |
| 2515 | rng.Size = Vector3.new(1, 1, 1) | |
| 2516 | rng.Transparency = 0 | |
| 2517 | rng.TopSurface = 0 | |
| 2518 | rng.BottomSurface = 0 | |
| 2519 | rng.CFrame = pos | |
| 2520 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2521 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 2522 | rngm.Scale = scale | |
| 2523 | local scaler2 = 1 | |
| 2524 | if type == "Add" then | |
| 2525 | scaler2 = 1*value | |
| 2526 | elseif type == "Divide" then | |
| 2527 | scaler2 = 1/value | |
| 2528 | end | |
| 2529 | coroutine.resume(coroutine.create(function() | |
| 2530 | for i = 0,10,0.1 do | |
| 2531 | swait() | |
| 2532 | if type == "Add" then | |
| 2533 | scaler2 = scaler2 - 0.01*value | |
| 2534 | elseif type == "Divide" then | |
| 2535 | scaler2 = scaler2 - 0.01/value | |
| 2536 | end | |
| 2537 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
| 2538 | rng.Transparency = rng.Transparency + 0.01 | |
| 2539 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2) | |
| 2540 | end | |
| 2541 | rng:Destroy() | |
| 2542 | end)) | |
| 2543 | end | |
| 2544 | ||
| 2545 | function CameraManager() | |
| 2546 | if TwoD and not CamInterrupt then | |
| 2547 | if Humanoid.Health > 0 then | |
| 2548 | Camera.CameraSubject = Humanoid | |
| 2549 | Camera.CameraType = "Scriptable" | |
| 2550 | Humanoid.AutoRotate = false | |
| 2551 | if Booleans.GyroUse then | |
| 2552 | Directer.MaxTorque = Vec3(0, huge, 0) | |
| 2553 | else | |
| 2554 | Directer.MaxTorque = Vec3(0, 0, 0) | |
| 2555 | end | |
| 2556 | if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then | |
| 2557 | if Booleans.CamFollow then | |
| 2558 | CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z)) | |
| 2559 | Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position) | |
| 2560 | else | |
| 2561 | CPart.Position = RootPart.Position | |
| 2562 | end | |
| 2563 | else | |
| 2564 | local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p | |
| 2565 | CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z)) | |
| 2566 | end | |
| 2567 | Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2) | |
| 2568 | else | |
| 2569 | Camera.CameraSubject = Humanoid | |
| 2570 | Camera.CameraType = "Custom" | |
| 2571 | Controller.Disabled = false | |
| 2572 | end | |
| 2573 | end | |
| 2574 | end | |
| 2575 | ||
| 2576 | function sphere(bonuspeed,type,pos,scale,value,color) | |
| 2577 | local type = type | |
| 2578 | local rng = Instance.new("Part", workspace)
| |
| 2579 | rng.Anchored = true | |
| 2580 | rng.BrickColor = color | |
| 2581 | rng.CanCollide = false | |
| 2582 | rng.FormFactor = 3 | |
| 2583 | rng.Name = "Ring" | |
| 2584 | rng.Material = "Neon" | |
| 2585 | rng.Size = Vector3.new(1, 1, 1) | |
| 2586 | rng.Transparency = 0 | |
| 2587 | rng.TopSurface = 0 | |
| 2588 | rng.BottomSurface = 0 | |
| 2589 | rng.CFrame = pos | |
| 2590 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2591 | rngm.MeshType = "Sphere" | |
| 2592 | rngm.Scale = scale | |
| 2593 | if rainbowmode == true then | |
| 2594 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2595 | end | |
| 2596 | local scaler2 = 1 | |
| 2597 | if type == "Add" then | |
| 2598 | scaler2 = 1*value | |
| 2599 | elseif type == "Divide" then | |
| 2600 | scaler2 = 1/value | |
| 2601 | end | |
| 2602 | coroutine.resume(coroutine.create(function() | |
| 2603 | for i = 0,10/bonuspeed,0.1 do | |
| 2604 | swait() | |
| 2605 | if rainbowmode == true then | |
| 2606 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2607 | end | |
| 2608 | if type == "Add" then | |
| 2609 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 2610 | elseif type == "Divide" then | |
| 2611 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 2612 | end | |
| 2613 | if chaosmode == true then | |
| 2614 | rng.BrickColor = BrickColor.random() | |
| 2615 | end | |
| 2616 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 2617 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
| 2618 | end | |
| 2619 | rng:Destroy() | |
| 2620 | end)) | |
| 2621 | end | |
| 2622 | ||
| 2623 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
| 2624 | local type = type | |
| 2625 | local rng = Instance.new("Part", char)
| |
| 2626 | rng.Anchored = true | |
| 2627 | rng.BrickColor = color | |
| 2628 | rng.CanCollide = false | |
| 2629 | rng.FormFactor = 3 | |
| 2630 | rng.Name = "Ring" | |
| 2631 | rng.Material = "Neon" | |
| 2632 | rng.Size = Vector3.new(1, 1, 1) | |
| 2633 | rng.Transparency = 0 | |
| 2634 | rng.TopSurface = 0 | |
| 2635 | rng.BottomSurface = 0 | |
| 2636 | rng.CFrame = pos | |
| 2637 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 2638 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2639 | rngm.MeshType = "Brick" | |
| 2640 | rngm.Scale = vt(x1,y1,z1) | |
| 2641 | if rainbowmode == true then | |
| 2642 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2643 | end | |
| 2644 | local scaler2 = 1 | |
| 2645 | local speeder = FastSpeed/10 | |
| 2646 | if type == "Add" then | |
| 2647 | scaler2 = 1*value | |
| 2648 | elseif type == "Divide" then | |
| 2649 | scaler2 = 1/value | |
| 2650 | end | |
| 2651 | coroutine.resume(coroutine.create(function() | |
| 2652 | for i = 0,10/bonuspeed,0.1 do | |
| 2653 | swait() | |
| 2654 | if rainbowmode == true then | |
| 2655 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2656 | end | |
| 2657 | if type == "Add" then | |
| 2658 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 2659 | elseif type == "Divide" then | |
| 2660 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 2661 | end | |
| 2662 | if chaosmode == true then | |
| 2663 | rng.BrickColor = BrickColor.random() | |
| 2664 | end | |
| 2665 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
| 2666 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 2667 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 2668 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
| 2669 | end | |
| 2670 | rng:Destroy() | |
| 2671 | end)) | |
| 2672 | end | |
| 2673 | ||
| 2674 | function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
| 2675 | local type = type | |
| 2676 | local rng = Instance.new("Part", char)
| |
| 2677 | rng.Anchored = true | |
| 2678 | rng.BrickColor = color | |
| 2679 | rng.CanCollide = false | |
| 2680 | rng.FormFactor = 3 | |
| 2681 | rng.Name = "Ring" | |
| 2682 | rng.Material = "Neon" | |
| 2683 | rng.Size = Vector3.new(1, 1, 1) | |
| 2684 | rng.Transparency = 0 | |
| 2685 | rng.TopSurface = 0 | |
| 2686 | rng.BottomSurface = 0 | |
| 2687 | rng.CFrame = pos | |
| 2688 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 2689 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2690 | rngm.MeshType = "Brick" | |
| 2691 | rngm.Scale = vt(x1,y1,z1) | |
| 2692 | if rainbowmode == true then | |
| 2693 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2694 | end | |
| 2695 | local scaler2 = 0 | |
| 2696 | local speeder = FastSpeed/10 | |
| 2697 | if type == "Add" then | |
| 2698 | scaler2 = 1*value | |
| 2699 | elseif type == "Divide" then | |
| 2700 | scaler2 = 1/value | |
| 2701 | end | |
| 2702 | coroutine.resume(coroutine.create(function() | |
| 2703 | for i = 0,10/bonuspeed,0.1 do | |
| 2704 | swait() | |
| 2705 | if rainbowmode == true then | |
| 2706 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2707 | end | |
| 2708 | if type == "Add" then | |
| 2709 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 2710 | elseif type == "Divide" then | |
| 2711 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 2712 | end | |
| 2713 | if chaosmode == true then | |
| 2714 | rng.BrickColor = BrickColor.random() | |
| 2715 | end | |
| 2716 | speeder = speeder + 0.01*FastSpeed*bonuspeed/10 | |
| 2717 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 2718 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 2719 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
| 2720 | end | |
| 2721 | rng:Destroy() | |
| 2722 | end)) | |
| 2723 | end | |
| 2724 | ||
| 2725 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
| 2726 | local type = type | |
| 2727 | local rng = Instance.new("Part", workspace)
| |
| 2728 | rng.Anchored = true | |
| 2729 | rng.BrickColor = color | |
| 2730 | rng.CanCollide = false | |
| 2731 | rng.FormFactor = 3 | |
| 2732 | rng.Name = "Ring" | |
| 2733 | rng.Material = "Neon" | |
| 2734 | rng.Size = Vector3.new(1, 1, 1) | |
| 2735 | rng.Transparency = 0 | |
| 2736 | rng.TopSurface = 0 | |
| 2737 | rng.BottomSurface = 0 | |
| 2738 | rng.CFrame = pos | |
| 2739 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 2740 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2741 | rngm.MeshType = "Sphere" | |
| 2742 | rngm.Scale = vt(x1,y1,z1) | |
| 2743 | if rainbowmode == true then | |
| 2744 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2745 | end | |
| 2746 | local scaler2 = 1 | |
| 2747 | local speeder = FastSpeed | |
| 2748 | if type == "Add" then | |
| 2749 | scaler2 = 1*value | |
| 2750 | elseif type == "Divide" then | |
| 2751 | scaler2 = 1/value | |
| 2752 | end | |
| 2753 | coroutine.resume(coroutine.create(function() | |
| 2754 | for i = 0,10/bonuspeed,0.1 do | |
| 2755 | swait() | |
| 2756 | if rainbowmode == true then | |
| 2757 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2758 | end | |
| 2759 | if type == "Add" then | |
| 2760 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 2761 | elseif type == "Divide" then | |
| 2762 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 2763 | end | |
| 2764 | if chaosmode == true then | |
| 2765 | rng.BrickColor = BrickColor.random() | |
| 2766 | end | |
| 2767 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
| 2768 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 2769 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 2770 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
| 2771 | end | |
| 2772 | rng:Destroy() | |
| 2773 | end)) | |
| 2774 | end | |
| 2775 | ||
| 2776 | ||
| 2777 | function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
| 2778 | local type = type | |
| 2779 | local rng = Instance.new("Part", char)
| |
| 2780 | rng.Anchored = true | |
| 2781 | rng.BrickColor = color | |
| 2782 | rng.CanCollide = false | |
| 2783 | rng.FormFactor = 3 | |
| 2784 | rng.Name = "Ring" | |
| 2785 | rng.Material = "Neon" | |
| 2786 | rng.Size = Vector3.new(1, 1, 1) | |
| 2787 | rng.Transparency = 1 | |
| 2788 | rng.TopSurface = 0 | |
| 2789 | rng.BottomSurface = 0 | |
| 2790 | rng.CFrame = pos | |
| 2791 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 2792 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2793 | rngm.MeshType = "Sphere" | |
| 2794 | rngm.Scale = vt(x1,y1,z1) | |
| 2795 | if rainbowmode == true then | |
| 2796 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2797 | end | |
| 2798 | local scaler2 = 1 | |
| 2799 | local speeder = FastSpeed | |
| 2800 | if type == "Add" then | |
| 2801 | scaler2 = 1*value | |
| 2802 | elseif type == "Divide" then | |
| 2803 | scaler2 = 1/value | |
| 2804 | end | |
| 2805 | coroutine.resume(coroutine.create(function() | |
| 2806 | for i = 0,10/bonuspeed,0.1 do | |
| 2807 | swait() | |
| 2808 | if rainbowmode == true then | |
| 2809 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2810 | end | |
| 2811 | if type == "Add" then | |
| 2812 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 2813 | elseif type == "Divide" then | |
| 2814 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 2815 | end | |
| 2816 | if chaosmode == true then | |
| 2817 | rng.BrickColor = BrickColor.random() | |
| 2818 | end | |
| 2819 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
| 2820 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 2821 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
| 2822 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
| 2823 | end | |
| 2824 | rng:Destroy() | |
| 2825 | end)) | |
| 2826 | end | |
| 2827 | ||
| 2828 | function dmg(dude) | |
| 2829 | if dude.Name ~= Character then | |
| 2830 | local bgf = Instance.new("BodyGyro",dude.Head)
| |
| 2831 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
| 2832 | local val = Instance.new("BoolValue",dude)
| |
| 2833 | val.Name = "IsHit" | |
| 2834 | local ds = coroutine.wrap(function() | |
| 2835 | dude:WaitForChild("Head"):BreakJoints()
| |
| 2836 | wait(0.5) | |
| 2837 | targetted = nil | |
| 2838 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3)
| |
| 2839 | coroutine.resume(coroutine.create(function() | |
| 2840 | for i, v in pairs(dude:GetChildren()) do | |
| 2841 | if v:IsA("Accessory") then
| |
| 2842 | v:Destroy() | |
| 2843 | end | |
| 2844 | if v:IsA("Humanoid") then
| |
| 2845 | v:Destroy() | |
| 2846 | end | |
| 2847 | if v:IsA("CharacterMesh") then
| |
| 2848 | v:Destroy() | |
| 2849 | end | |
| 2850 | if v:IsA("Model") then
| |
| 2851 | v:Destroy() | |
| 2852 | end | |
| 2853 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 2854 | for x, o in pairs(v:GetChildren()) do | |
| 2855 | if o:IsA("Decal") then
| |
| 2856 | o:Destroy() | |
| 2857 | end | |
| 2858 | end | |
| 2859 | coroutine.resume(coroutine.create(function() | |
| 2860 | v.Material = "Neon" | |
| 2861 | v.CanCollide = false | |
| 2862 | local bld = Instance.new("ParticleEmitter",v)
| |
| 2863 | bld.LightEmission = 1 | |
| 2864 | bld.Texture = "rbxassetid://284205403" | |
| 2865 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
| 2866 | bld.Rate = 50 | |
| 2867 | bld.Lifetime = NumberRange.new(1) | |
| 2868 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 2869 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 2870 | bld.Speed = NumberRange.new(0,0) | |
| 2871 | bld.VelocitySpread = 50000 | |
| 2872 | bld.Rotation = NumberRange.new(-500,500) | |
| 2873 | bld.RotSpeed = NumberRange.new(-500,500) | |
| 2874 | local sbs = Instance.new("BodyPosition", v)
| |
| 2875 | sbs.P = 3000 | |
| 2876 | sbs.D = 1000 | |
| 2877 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 2878 | sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
| 2879 | v.Color = Color3.new(1,1,1) | |
| 2880 | coroutine.resume(coroutine.create(function() | |
| 2881 | for i = 0, 49 do | |
| 2882 | swait(1) | |
| 2883 | v.Transparency = v.Transparency + 0.02 | |
| 2884 | end | |
| 2885 | CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1)
| |
| 2886 | bld.Speed = NumberRange.new(1,5) | |
| 2887 | bld.Acceleration = vt(0,10,0) | |
| 2888 | wait(0.5) | |
| 2889 | bld.Enabled = false | |
| 2890 | wait(3) | |
| 2891 | v:Destroy() | |
| 2892 | dude:Destroy() | |
| 2893 | end)) | |
| 2894 | end)) | |
| 2895 | end | |
| 2896 | end | |
| 2897 | end)) | |
| 2898 | end) | |
| 2899 | ds() | |
| 2900 | end | |
| 2901 | end | |
| 2902 | ||
| 2903 | ||
| 2904 | function FindNearestHead(Position, Distance, SinglePlayer) | |
| 2905 | if SinglePlayer then | |
| 2906 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
| 2907 | end | |
| 2908 | local List = {}
| |
| 2909 | for i, v in pairs(workspace:GetChildren()) do | |
| 2910 | if v:IsA("Model") then
| |
| 2911 | if v:findFirstChild("Head") then
| |
| 2912 | if v ~= Character then | |
| 2913 | if (v.Head.Position - Position).magnitude <= Distance then | |
| 2914 | table.insert(List, v) | |
| 2915 | end | |
| 2916 | end | |
| 2917 | end | |
| 2918 | end | |
| 2919 | end | |
| 2920 | return List | |
| 2921 | end | |
| 2922 | ||
| 2923 | function FaceMouse() | |
| 2924 | Cam = workspace.CurrentCamera | |
| 2925 | return {
| |
| 2926 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
| 2927 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 2928 | } | |
| 2929 | end | |
| 2930 | ||
| 2931 | function FaceMouse2() | |
| 2932 | Cam = workspace.CurrentCamera | |
| 2933 | return {
| |
| 2934 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
| 2935 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 2936 | } | |
| 2937 | end | |
| 2938 | ||
| 2939 | local ModeOfGlitch = 1 | |
| 2940 | -- Functions are ready. | |
| 2941 | local storehumanoidWS = 16 | |
| 2942 | ||
| 2943 | function Blink() | |
| 2944 | for i = 0, 14 do | |
| 2945 | PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0) | |
| 2946 | end | |
| 2947 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 2948 | RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0) | |
| 2949 | CameraEnshaking(2,10) | |
| 2950 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do | |
| 2951 | if v:FindFirstChild('Head') then
| |
| 2952 | end | |
| 2953 | end | |
| 2954 | for i = 0, 14 do | |
| 2955 | PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0) | |
| 2956 | end | |
| 2957 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 2958 | end | |
| 2959 | ||
| 2960 | function ExtinctiveHeartbreak() | |
| 2961 | local targetted = nil | |
| 2962 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 2963 | targetted = mouse.Target.Parent | |
| 2964 | end | |
| 2965 | if targetted ~= nil then | |
| 2966 | attack = true | |
| 2967 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
| |
| 2968 | for i = 0, 9 do | |
| 2969 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
| |
| 2970 | end | |
| 2971 | for i = 0, 24 do | |
| 2972 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
| |
| 2973 | end | |
| 2974 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
| |
| 2975 | local originalpos = root.CFrame | |
| 2976 | RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2) | |
| 2977 | for i = 0, 9 do | |
| 2978 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
| |
| 2979 | end | |
| 2980 | for i = 0, 24 do | |
| 2981 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
| |
| 2982 | end | |
| 2983 | hum.WalkSpeed = 0 | |
| 2984 | targetted.Head.Anchored = true | |
| 2985 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
| |
| 2986 | for i = 0,2,0.1 do | |
| 2987 | swait() | |
| 2988 | 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)),.4) | |
| 2989 | 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)),.4) | |
| 2990 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4) | |
| 2991 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
| 2992 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
| 2993 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4) | |
| 2994 | end | |
| 2995 | coroutine.resume(coroutine.create(function() | |
| 2996 | bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso"))
| |
| 2997 | bld.LightEmission = 0.1 | |
| 2998 | bld.Texture = "rbxassetid://284205403" | |
| 2999 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
| 3000 | bld.Rate = 500 | |
| 3001 | bld.Lifetime = NumberRange.new(1) | |
| 3002 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 3003 | bld.Acceleration = vt(0,-25,0) | |
| 3004 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 3005 | bld.Speed = NumberRange.new(10,50) | |
| 3006 | bld.EmissionDirection = "Front" | |
| 3007 | bld.VelocitySpread = 25 | |
| 3008 | bld.Rotation = NumberRange.new(-500,500) | |
| 3009 | bld.RotSpeed = NumberRange.new(-500,500) | |
| 3010 | end)) | |
| 3011 | coroutine.resume(coroutine.create(function() | |
| 3012 | bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso"))
| |
| 3013 | bld.LightEmission = 0.1 | |
| 3014 | bld.Texture = "rbxassetid://284205403" | |
| 3015 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
| 3016 | bld.Rate = 500 | |
| 3017 | bld.Lifetime = NumberRange.new(1) | |
| 3018 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 3019 | bld.Acceleration = vt(0,-25,0) | |
| 3020 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 3021 | bld.Speed = NumberRange.new(10,50) | |
| 3022 | bld.EmissionDirection = "Front" | |
| 3023 | bld.VelocitySpread = 25 | |
| 3024 | bld.Rotation = NumberRange.new(-500,500) | |
| 3025 | bld.RotSpeed = NumberRange.new(-500,500) | |
| 3026 | end)) | |
| 3027 | CameraEnshaking(5,5) | |
| 3028 | game:GetService("Debris"):AddItem(bld,3)
| |
| 3029 | dmg(targetted) | |
| 3030 | CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1)
| |
| 3031 | for i = 0,1,0.1 do | |
| 3032 | swait() | |
| 3033 | 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)),.8) | |
| 3034 | 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)),.8) | |
| 3035 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
| 3036 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8) | |
| 3037 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
| 3038 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8) | |
| 3039 | end | |
| 3040 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
| |
| 3041 | for i = 0, 9 do | |
| 3042 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
| |
| 3043 | end | |
| 3044 | for i = 0, 24 do | |
| 3045 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
| |
| 3046 | end | |
| 3047 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
| |
| 3048 | root.CFrame = originalpos | |
| 3049 | for i = 0, 9 do | |
| 3050 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
| |
| 3051 | end | |
| 3052 | for i = 0, 24 do | |
| 3053 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
| |
| 3054 | end | |
| 3055 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
| |
| 3056 | bld.Enabled = false | |
| 3057 | attack = false | |
| 3058 | hum.WalkSpeed = storehumanoidWS | |
| 3059 | end | |
| 3060 | end | |
| 3061 | function test() | |
| 3062 | attack = true | |
| 3063 | for i = 0, 2, 0.1 do | |
| 3064 | swait() | |
| 3065 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
| 3066 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
| 3067 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4) | |
| 3068 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4) | |
| 3069 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1) | |
| 3070 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1) | |
| 3071 | end | |
| 3072 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2)
| |
| 3073 | for i=1,20 do | |
| 3074 | sphereMKCharge(5,-0.25,"Add",root.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,5,-0.005,MAINRUINCOLOR,10) | |
| 3075 | swait() | |
| 3076 | end | |
| 3077 | swait(30) | |
| 3078 | CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
| |
| 3079 | for i =1,20 do | |
| 3080 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0) | |
| 3081 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0) | |
| 3082 | end | |
| 3083 | for i = 0,2,0.1 do | |
| 3084 | swait() | |
| 3085 | 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(-30)),.5) | |
| 3086 | 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(30)),.5) | |
| 3087 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,30 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
| 3088 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5) | |
| 3089 | RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5) | |
| 3090 | LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5) | |
| 3091 | end | |
| 3092 | for i =1,20 do | |
| 3093 | sphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0) | |
| 3094 | end | |
| 3095 | text.TextTransparency = 1 | |
| 3096 | text.TextStrokeTransparency = 1 | |
| 3097 | tr2.Enabled = false | |
| 3098 | tr1.Enabled = false | |
| 3099 | tr3.Enabled = false | |
| 3100 | tl1.Enabled = false | |
| 3101 | tl2.Enabled = false | |
| 3102 | tl3.Enabled = false | |
| 3103 | sphere(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR) | |
| 3104 | eff = false | |
| 3105 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
| |
| 3106 | local invtab = {}
| |
| 3107 | local function search(targ) | |
| 3108 | if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
| |
| 3109 | table.insert(invtab,targ) | |
| 3110 | end | |
| 3111 | for i,v in pairs(targ:GetChildren()) do | |
| 3112 | search(v) | |
| 3113 | end | |
| 3114 | end | |
| 3115 | search(plr.Character) | |
| 3116 | local frm = 0 | |
| 3117 | local frmcon | |
| 3118 | frmcon = game:GetService("RunService").Heartbeat:connect(function()
| |
| 3119 | if frm < 10 then | |
| 3120 | for i,v in pairs(invtab) do | |
| 3121 | if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
| |
| 3122 | v.Transparency = v.Transparency + 0.1 | |
| 3123 | end | |
| 3124 | end | |
| 3125 | frm = frm + 1 | |
| 3126 | else | |
| 3127 | frmcon:disconnect() | |
| 3128 | end | |
| 3129 | end) | |
| 3130 | swait(200) | |
| 3131 | text.TextTransparency = 0 | |
| 3132 | text.TextStrokeTransparency = 0 | |
| 3133 | tr2.Enabled = false | |
| 3134 | tr1.Enabled = false | |
| 3135 | tr3.Enabled = false | |
| 3136 | tl1.Enabled = false | |
| 3137 | tl2.Enabled = false | |
| 3138 | tl3.Enabled = false | |
| 3139 | eff = true | |
| 3140 | for i =1,20 do | |
| 3141 | sphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0) | |
| 3142 | end | |
| 3143 | sphere(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR) | |
| 3144 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
| |
| 3145 | local invtab = {}
| |
| 3146 | local function search(targ) | |
| 3147 | if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then
| |
| 3148 | table.insert(invtab,targ) | |
| 3149 | end | |
| 3150 | for i,v in pairs(targ:GetChildren()) do | |
| 3151 | search(v) | |
| 3152 | end | |
| 3153 | end | |
| 3154 | search(plr.Character) | |
| 3155 | local frm = 0 | |
| 3156 | local frmcon | |
| 3157 | frmcon = game:GetService("RunService").Heartbeat:connect(function()
| |
| 3158 | if frm < 10 then | |
| 3159 | for i,v in pairs(invtab) do | |
| 3160 | if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then
| |
| 3161 | v.Transparency = v.Transparency - 0.1 | |
| 3162 | end | |
| 3163 | end | |
| 3164 | frm = frm + 1 | |
| 3165 | else | |
| 3166 | frmcon:disconnect() | |
| 3167 | end | |
| 3168 | end) | |
| 3169 | swait(5) | |
| 3170 | for i = 0, 2, 0.1 do | |
| 3171 | swait() | |
| 3172 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
| 3173 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
| 3174 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4) | |
| 3175 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4) | |
| 3176 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1) | |
| 3177 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1) | |
| 3178 | end | |
| 3179 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
| |
| 3180 | CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
| |
| 3181 | MagniDamage(root, 30, 65,90, 0, "Normal") | |
| 3182 | for i =1,20 do | |
| 3183 | sphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0) | |
| 3184 | end | |
| 3185 | sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR) | |
| 3186 | for i =1,20 do | |
| 3187 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0) | |
| 3188 | end | |
| 3189 | swait(20) | |
| 3190 | attack = false | |
| 3191 | tr2.Enabled = true | |
| 3192 | tr1.Enabled = true | |
| 3193 | tr3.Enabled = true | |
| 3194 | tl1.Enabled = true | |
| 3195 | tl2.Enabled = true | |
| 3196 | tl3.Enabled = true | |
| 3197 | end | |
| 3198 | function FinalCalam() | |
| 3199 | attack = true | |
| 3200 | ||
| 3201 | local orb = Instance.new("Part", char)
| |
| 3202 | orb.Anchored = true | |
| 3203 | orb.BrickColor = MAINRUINCOLOR | |
| 3204 | orb.CanCollide = false | |
| 3205 | orb.FormFactor = 3 | |
| 3206 | orb.Name = "Ring" | |
| 3207 | orb.Material = "Neon" | |
| 3208 | orb.Size = Vector3.new(1, 1, 1) | |
| 3209 | orb.Transparency = 0 | |
| 3210 | orb.TopSurface = 0 | |
| 3211 | orb.BottomSurface = 0 | |
| 3212 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 3213 | orbm.MeshType = "Sphere" | |
| 3214 | orbm.Name = "SizeMesh" | |
| 3215 | orbm.Scale = vt(0,0,0) | |
| 3216 | local scaled = 0.1 | |
| 3217 | local posid = 0 | |
| 3218 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
| |
| 3219 | for i = 0, 5, 0.1 do | |
| 3220 | swait() | |
| 3221 | scaled = scaled - 0.001 | |
| 3222 | posid = posid - scaled | |
| 3223 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
| 3224 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
| 3225 | sphereMKCharge(5,-0.25,"Add",orb.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,5,-0.005,MAINRUINCOLOR,10) | |
| 3226 | PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0) | |
| 3227 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 10))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3228 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3229 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
| 3230 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1) | |
| 3231 | end | |
| 3232 | swait(60) | |
| 3233 | for i =1,3 do | |
| 3234 | swait(30) | |
| 3235 | CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9)
| |
| 3236 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR) | |
| 3237 | end | |
| 3238 | swait(30) | |
| 3239 | for i = 0, 2, 0.1 do | |
| 3240 | swait() | |
| 3241 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
| 3242 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
| 3243 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
| 3244 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4) | |
| 3245 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
| 3246 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
| 3247 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
| 3248 | end | |
| 3249 | swait(60) | |
| 3250 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
| |
| 3251 | CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1)
| |
| 3252 | sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR) | |
| 3253 | sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR) | |
| 3254 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
| 3255 | if v:FindFirstChild('Head') then
| |
| 3256 | dmg(v) | |
| 3257 | end | |
| 3258 | end | |
| 3259 | for i = 1,20 do | |
| 3260 | sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,MAINRUINCOLOR,0) | |
| 3261 | for i = 0, 10 do | |
| 3262 | PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,MAINRUINCOLOR,0) | |
| 3263 | end | |
| 3264 | end | |
| 3265 | orb:Remove() | |
| 3266 | attack = false | |
| 3267 | end | |
| 3268 | function PureBomb() | |
| 3269 | attack = true | |
| 3270 | ||
| 3271 | local orb = Instance.new("Part", char)
| |
| 3272 | orb.Anchored = true | |
| 3273 | orb.BrickColor = BrickColor.new("Toothpaste")
| |
| 3274 | orb.CanCollide = false | |
| 3275 | orb.FormFactor = 3 | |
| 3276 | orb.Name = "Ring" | |
| 3277 | orb.Material = "Neon" | |
| 3278 | orb.Size = Vector3.new(1, 1, 1) | |
| 3279 | orb.Transparency = 0 | |
| 3280 | orb.TopSurface = 0 | |
| 3281 | orb.BottomSurface = 0 | |
| 3282 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 3283 | orbm.MeshType = "Sphere" | |
| 3284 | orbm.Name = "SizeMesh" | |
| 3285 | orbm.Scale = vt(0,0,0) | |
| 3286 | local scaled = 0.1 | |
| 3287 | local posid = 0 | |
| 3288 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
| |
| 3289 | for i = 0, 5, 0.1 do | |
| 3290 | swait() | |
| 3291 | scaled = scaled - 0.001 | |
| 3292 | posid = posid - scaled | |
| 3293 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
| 3294 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
| 3295 | sphereMKCharge(5,-0.25,"Add",orb.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,5,-0.005,BrickColor.new("Toothpaste"),10)
| |
| 3296 | PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
| |
| 3297 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1) | |
| 3298 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1) | |
| 3299 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3300 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3301 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
| 3302 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1) | |
| 3303 | end | |
| 3304 | for i = 0, 2, 0.1 do | |
| 3305 | swait() | |
| 3306 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
| 3307 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
| 3308 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
| 3309 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4) | |
| 3310 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
| 3311 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
| 3312 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
| 3313 | end | |
| 3314 | coroutine.resume(coroutine.create(function() | |
| 3315 | orb.Anchored = false | |
| 3316 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
| |
| 3317 | local a = Instance.new("Part",workspace)
| |
| 3318 | a.Name = "Direction" | |
| 3319 | a.Anchored = true | |
| 3320 | a.BrickColor = bc("Bright red")
| |
| 3321 | a.Material = "Neon" | |
| 3322 | a.Transparency = 1 | |
| 3323 | a.CanCollide = false | |
| 3324 | local ray = Ray.new( | |
| 3325 | orb.CFrame.p, -- origin | |
| 3326 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
| 3327 | ) | |
| 3328 | local ignore = orb | |
| 3329 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3330 | a.BottomSurface = 10 | |
| 3331 | a.TopSurface = 10 | |
| 3332 | local distance = (orb.CFrame.p - position).magnitude | |
| 3333 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 3334 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 3335 | orb.CFrame = a.CFrame | |
| 3336 | a:Destroy() | |
| 3337 | local bv = Instance.new("BodyVelocity")
| |
| 3338 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3339 | bv.velocity = orb.CFrame.lookVector*125 | |
| 3340 | bv.Parent = orb | |
| 3341 | local hitted = false | |
| 3342 | game:GetService("Debris"):AddItem(orb, 15)
| |
| 3343 | wait() | |
| 3344 | local hit =orb.Touched:connect(function(hit) | |
| 3345 | if hitted == false then | |
| 3346 | hitted = true | |
| 3347 | CameraEnshaking(10,2.5) | |
| 3348 | MagniDamage(orb, 65, 65,90, 0, "Normal") | |
| 3349 | sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
| |
| 3350 | sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
| |
| 3351 | for i = 0, 49 do | |
| 3352 | PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
| |
| 3353 | end | |
| 3354 | for i = 0, 9 do | |
| 3355 | sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
| |
| 3356 | sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
| |
| 3357 | end | |
| 3358 | orb.Anchored = true | |
| 3359 | orb.Transparency = 1 | |
| 3360 | wait(8) | |
| 3361 | orb:Destroy() | |
| 3362 | end | |
| 3363 | end) | |
| 3364 | end)) | |
| 3365 | for i = 0, 1, 0.1 do | |
| 3366 | swait() | |
| 3367 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
| 3368 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
| 3369 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4) | |
| 3370 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
| 3371 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
| 3372 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
| 3373 | end | |
| 3374 | attack = false | |
| 3375 | end | |
| 3376 | ||
| 3377 | function ChaosGroundStrike() | |
| 3378 | attack = true | |
| 3379 | for i = 0, 2, 0.1 do | |
| 3380 | swait() | |
| 3381 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
| 3382 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
| 3383 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 3384 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 3385 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
| 3386 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
| 3387 | end | |
| 3388 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
| |
| 3389 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
| |
| 3390 | CameraEnshaking(4,12) | |
| 3391 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
| 3392 | if v:FindFirstChild('Head') then
| |
| 3393 | dmg(v) | |
| 3394 | end | |
| 3395 | end | |
| 3396 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random()) | |
| 3397 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random()) | |
| 3398 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random()) | |
| 3399 | for i = 0, 2, 0.1 do | |
| 3400 | swait() | |
| 3401 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
| 3402 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
| 3403 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
| 3404 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
| 3405 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
| 3406 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
| 3407 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
| 3408 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
| 3409 | end | |
| 3410 | attack = false | |
| 3411 | end | |
| 3412 | ||
| 3413 | function Starfall() | |
| 3414 | attack = true | |
| 3415 | hum.WalkSpeed = 0 | |
| 3416 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
| |
| 3417 | for i = 0, 5, 0.1 do | |
| 3418 | swait() | |
| 3419 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 3420 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 3421 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
| 3422 | 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)),.1) | |
| 3423 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 3424 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
| 3425 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1) | |
| 3426 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1) | |
| 3427 | end | |
| 3428 | local Overed = false | |
| 3429 | CameraEnshaking(2,20) | |
| 3430 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
| 3431 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
| 3432 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
| 3433 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
| |
| 3434 | local orb = Instance.new("Part", char)
| |
| 3435 | orb.Anchored = true | |
| 3436 | orb.BrickColor = BrickColor.new("Toothpaste")
| |
| 3437 | orb.CanCollide = false | |
| 3438 | orb.FormFactor = 3 | |
| 3439 | orb.Name = "Remenant" | |
| 3440 | orb.Material = "Neon" | |
| 3441 | orb.CFrame = root.CFrame*CFrame.new(0,150,0) | |
| 3442 | orb.Size = Vector3.new(1, 1, 1) | |
| 3443 | orb.Transparency = 1 | |
| 3444 | orb.TopSurface = 0 | |
| 3445 | orb.BottomSurface = 0 | |
| 3446 | hum.WalkSpeed = storehumanoidWS | |
| 3447 | coroutine.resume(coroutine.create(function() | |
| 3448 | for i = 0, 9 do | |
| 3449 | swait(10) | |
| 3450 | local lb = Instance.new("Part")
| |
| 3451 | lb.Color = MAINRUINCOLOR.Color | |
| 3452 | lb.CanCollide = false | |
| 3453 | lb.Material = "Neon" | |
| 3454 | lb.Anchored = true | |
| 3455 | lb.TopSurface = 0 | |
| 3456 | lb.BottomSurface = 0 | |
| 3457 | lb.Transparency = 0 | |
| 3458 | lb.Size = vt(1,1,1) | |
| 3459 | lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15))) | |
| 3460 | lb.Anchored = false | |
| 3461 | lb.Parent = char | |
| 3462 | local thingery = Instance.new("SpecialMesh",lb)
| |
| 3463 | thingery.MeshType = "Sphere" | |
| 3464 | thingery.Scale = vt(20,20,20) | |
| 3465 | game:GetService("Debris"):AddItem(lb, 10)
| |
| 3466 | local bv = Instance.new("BodyVelocity")
| |
| 3467 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3468 | bv.velocity = lb.CFrame.lookVector*math.random(75,250) | |
| 3469 | bv.Parent = lb | |
| 3470 | sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR) | |
| 3471 | sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR) | |
| 3472 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
| |
| 3473 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
| |
| 3474 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
| |
| 3475 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
| |
| 3476 | local hitted = false | |
| 3477 | coroutine.resume(coroutine.create(function() | |
| 3478 | while true do | |
| 3479 | swait(1) | |
| 3480 | if lb.Parent ~= nil and hitted == false then | |
| 3481 | PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2) | |
| 3482 | elseif lb.Parent == nil then | |
| 3483 | break | |
| 3484 | end | |
| 3485 | end | |
| 3486 | end)) | |
| 3487 | ||
| 3488 | game:GetService("Debris"):AddItem(a, 0.1)
| |
| 3489 | ||
| 3490 | coroutine.resume(coroutine.create(function() | |
| 3491 | swait(1) | |
| 3492 | lb.Touched:connect(function(hit) | |
| 3493 | if hitted == false then | |
| 3494 | hitted = true | |
| 3495 | lb.Transparency = 1 | |
| 3496 | lb.Anchored = true | |
| 3497 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
| |
| 3498 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
| |
| 3499 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
| |
| 3500 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
| |
| 3501 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
| |
| 3502 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
| |
| 3503 | MagniDamage(lb, 45, 45,85, 0, "Normal") | |
| 3504 | CameraEnshaking(1,5) | |
| 3505 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
| 3506 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
| 3507 | for i = 0, 9 do | |
| 3508 | sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0) | |
| 3509 | end | |
| 3510 | for i = 0, 49 do | |
| 3511 | swait() | |
| 3512 | MagniDamage(lb, 30, 2,4, 0, "Normal") | |
| 3513 | PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0) | |
| 3514 | end | |
| 3515 | end | |
| 3516 | end) | |
| 3517 | end)) | |
| 3518 | end | |
| 3519 | Overed = true | |
| 3520 | orb:Destroy() | |
| 3521 | end)) | |
| 3522 | ||
| 3523 | attack = false | |
| 3524 | end | |
| 3525 | ||
| 3526 | function StarfallEX() | |
| 3527 | attack = true | |
| 3528 | hum.WalkSpeed = 0 | |
| 3529 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
| |
| 3530 | for i = 0, 5, 0.1 do | |
| 3531 | swait() | |
| 3532 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 3533 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 3534 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
| 3535 | 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)),.1) | |
| 3536 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 3537 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
| 3538 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1) | |
| 3539 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1) | |
| 3540 | end | |
| 3541 | local Overed = false | |
| 3542 | CameraEnshaking(2,20) | |
| 3543 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
| 3544 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
| 3545 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
| 3546 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
| 3547 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
| 3548 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
| 3549 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
| |
| 3550 | local orb = Instance.new("Part", char)
| |
| 3551 | orb.Anchored = true | |
| 3552 | orb.BrickColor = BrickColor.new("Toothpaste")
| |
| 3553 | orb.CanCollide = false | |
| 3554 | orb.FormFactor = 3 | |
| 3555 | orb.Name = "Remenant" | |
| 3556 | orb.Material = "Neon" | |
| 3557 | orb.CFrame = root.CFrame*CFrame.new(0,150,0) | |
| 3558 | orb.Size = Vector3.new(1, 1, 1) | |
| 3559 | orb.Transparency = 1 | |
| 3560 | orb.TopSurface = 0 | |
| 3561 | orb.BottomSurface = 0 | |
| 3562 | hum.WalkSpeed = storehumanoidWS | |
| 3563 | coroutine.resume(coroutine.create(function() | |
| 3564 | for i = 0, 9 do | |
| 3565 | swait(10) | |
| 3566 | local lb = Instance.new("Part")
| |
| 3567 | lb.Color = MAINRUINCOLOR.Color | |
| 3568 | lb.CanCollide = false | |
| 3569 | lb.Material = "Neon" | |
| 3570 | lb.Anchored = true | |
| 3571 | lb.TopSurface = 0 | |
| 3572 | lb.BottomSurface = 0 | |
| 3573 | lb.Transparency = 0 | |
| 3574 | lb.Size = vt(1,1,1) | |
| 3575 | lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15))) | |
| 3576 | lb.Anchored = false | |
| 3577 | lb.Parent = char | |
| 3578 | local thingery = Instance.new("SpecialMesh",lb)
| |
| 3579 | thingery.MeshType = "Sphere" | |
| 3580 | thingery.Scale = vt(20,20,20) | |
| 3581 | game:GetService("Debris"):AddItem(lb, 10)
| |
| 3582 | local bv = Instance.new("BodyVelocity")
| |
| 3583 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3584 | bv.velocity = lb.CFrame.lookVector*math.random(75,250) | |
| 3585 | bv.Parent = lb | |
| 3586 | sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR) | |
| 3587 | sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR) | |
| 3588 | sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR) | |
| 3589 | sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR) | |
| 3590 | sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR) | |
| 3591 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
| |
| 3592 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
| |
| 3593 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
| |
| 3594 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
| |
| 3595 | local hitted = false | |
| 3596 | coroutine.resume(coroutine.create(function() | |
| 3597 | while true do | |
| 3598 | swait(1) | |
| 3599 | if lb.Parent ~= nil and hitted == false then | |
| 3600 | PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2) | |
| 3601 | PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2) | |
| 3602 | elseif lb.Parent == nil then | |
| 3603 | break | |
| 3604 | end | |
| 3605 | end | |
| 3606 | end)) | |
| 3607 | ||
| 3608 | game:GetService("Debris"):AddItem(a, 0.1)
| |
| 3609 | ||
| 3610 | coroutine.resume(coroutine.create(function() | |
| 3611 | swait(1) | |
| 3612 | lb.Touched:connect(function(hit) | |
| 3613 | if hitted == false then | |
| 3614 | hitted = true | |
| 3615 | lb.Transparency = 1 | |
| 3616 | lb.Anchored = true | |
| 3617 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
| |
| 3618 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
| |
| 3619 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
| |
| 3620 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
| |
| 3621 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
| |
| 3622 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
| |
| 3623 | MagniDamage(lb, 45, 45,85, 0, "Normal") | |
| 3624 | CameraEnshaking(10,5) | |
| 3625 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
| 3626 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
| 3627 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
| 3628 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
| 3629 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
| 3630 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
| 3631 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
| 3632 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
| 3633 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
| 3634 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
| 3635 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
| 3636 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
| 3637 | for i = 0, 9 do | |
| 3638 | sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0) | |
| 3639 | sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0) | |
| 3640 | sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0) | |
| 3641 | sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0) | |
| 3642 | sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0) | |
| 3643 | sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0) | |
| 3644 | end | |
| 3645 | for i = 0, 49 do | |
| 3646 | swait() | |
| 3647 | MagniDamage(lb, 30, 30, 60, 0, "Normal") | |
| 3648 | PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0) | |
| 3649 | PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0) | |
| 3650 | PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0) | |
| 3651 | end | |
| 3652 | end | |
| 3653 | end) | |
| 3654 | end)) | |
| 3655 | end | |
| 3656 | Overed = true | |
| 3657 | orb:Destroy() | |
| 3658 | end)) | |
| 3659 | ||
| 3660 | attack = false | |
| 3661 | end | |
| 3662 | ||
| 3663 | function StarDivision() | |
| 3664 | attack = true | |
| 3665 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
| |
| 3666 | for i = 0, 2, 0.1 do | |
| 3667 | swait() | |
| 3668 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 3669 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6) | |
| 3670 | 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)),.6) | |
| 3671 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90)),.6) | |
| 3672 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6) | |
| 3673 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6) | |
| 3674 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6) | |
| 3675 | end | |
| 3676 | local orb = Instance.new("Part", char)
| |
| 3677 | orb.BrickColor = MAINRUINCOLOR | |
| 3678 | orb.CanCollide = false | |
| 3679 | orb.FormFactor = 3 | |
| 3680 | orb.Name = "Ring" | |
| 3681 | orb.Material = "Neon" | |
| 3682 | orb.Size = Vector3.new(1, 1, 1) | |
| 3683 | orb.Transparency = 0 | |
| 3684 | orb.TopSurface = 0 | |
| 3685 | orb.BottomSurface = 0 | |
| 3686 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 3687 | orbm.MeshType = "Sphere" | |
| 3688 | orbm.Name = "SizeMesh" | |
| 3689 | orbm.Scale = vt(2,2,2) | |
| 3690 | local a = Instance.new("Part",workspace)
| |
| 3691 | a.Name = "Direction" | |
| 3692 | a.Anchored = true | |
| 3693 | a.BrickColor = bc("Bright red")
| |
| 3694 | a.Material = "Neon" | |
| 3695 | a.Transparency = 1 | |
| 3696 | a.CanCollide = false | |
| 3697 | local ray = Ray.new( | |
| 3698 | sorb.CFrame.p, -- origin | |
| 3699 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
| 3700 | ) | |
| 3701 | local ignore = sorb | |
| 3702 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3703 | a.BottomSurface = 10 | |
| 3704 | a.TopSurface = 10 | |
| 3705 | local distance = (sorb.CFrame.p - position).magnitude | |
| 3706 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 3707 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 3708 | orb.CFrame = a.CFrame | |
| 3709 | a:Destroy() | |
| 3710 | local bv = Instance.new("BodyVelocity")
| |
| 3711 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3712 | bv.velocity = orb.CFrame.lookVector*100 | |
| 3713 | bv.Parent = orb | |
| 3714 | local hitted = false | |
| 3715 | game:GetService("Debris"):AddItem(orb, 10)
| |
| 3716 | CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
| |
| 3717 | CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
| |
| 3718 | CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
| |
| 3719 | CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
| |
| 3720 | CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
| |
| 3721 | coroutine.resume(coroutine.create(function() | |
| 3722 | while true do | |
| 3723 | swait(1) | |
| 3724 | if orb.Parent ~= nil and hitted == false then | |
| 3725 | PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2) | |
| 3726 | elseif orb.Parent == nil then | |
| 3727 | break | |
| 3728 | end | |
| 3729 | end | |
| 3730 | end)) | |
| 3731 | coroutine.resume(coroutine.create(function() | |
| 3732 | swait(1) | |
| 3733 | orb.Touched:connect(function(hit) | |
| 3734 | if hitted == false then | |
| 3735 | hitted = true | |
| 3736 | game:GetService("Debris"):AddItem(orb, 5)
| |
| 3737 | orb.Transparency = 1 | |
| 3738 | orb.Anchored = true | |
| 3739 | local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 3740 | elocacenter.Anchored = true | |
| 3741 | elocacenter.CFrame = orb.CFrame | |
| 3742 | elocacenter.Orientation = vt(0,0,0) | |
| 3743 | local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 3744 | eloca1.Anchored = true | |
| 3745 | eloca1.CFrame = elocacenter.CFrame | |
| 3746 | local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 3747 | eloca2.Anchored = true | |
| 3748 | eloca2.CFrame = elocacenter.CFrame | |
| 3749 | local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 3750 | eloca3.Anchored = true | |
| 3751 | eloca3.CFrame = elocacenter.CFrame | |
| 3752 | local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 3753 | eloca4.Anchored = true | |
| 3754 | eloca4.CFrame = elocacenter.CFrame | |
| 3755 | local lookavec = 0 | |
| 3756 | local speeds = 0 | |
| 3757 | CameraEnshaking(1,1) | |
| 3758 | CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
| |
| 3759 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 3760 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 3761 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 3762 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 3763 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 3764 | for i = 0, 99 do | |
| 3765 | swait() | |
| 3766 | lookavec = lookavec + 1 | |
| 3767 | speeds = speeds + 0.1 | |
| 3768 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 3769 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 3770 | PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 3771 | ||
| 3772 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 3773 | PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 3774 | ||
| 3775 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 3776 | PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 3777 | ||
| 3778 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 3779 | PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 3780 | end | |
| 3781 | ||
| 3782 | for i = 0, 149 do | |
| 3783 | swait() | |
| 3784 | speeds = speeds + 0.1 | |
| 3785 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 3786 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 3787 | PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 3788 | ||
| 3789 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 3790 | PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 3791 | ||
| 3792 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 3793 | PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 3794 | ||
| 3795 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 3796 | PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 3797 | end | |
| 3798 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do | |
| 3799 | if v:FindFirstChild('Head') then
| |
| 3800 | dmg(v) | |
| 3801 | end | |
| 3802 | end | |
| 3803 | CameraEnshaking(7,30) | |
| 3804 | MagniDamage(elocacenter, 225, 50,75, 0, "Normal") | |
| 3805 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
| |
| 3806 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
| |
| 3807 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
| |
| 3808 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
| |
| 3809 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR) | |
| 3810 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR) | |
| 3811 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 3812 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 3813 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 3814 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 3815 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 3816 | for i = 0, 24 do | |
| 3817 | sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0) | |
| 3818 | sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0) | |
| 3819 | sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0) | |
| 3820 | sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0) | |
| 3821 | end | |
| 3822 | coroutine.resume(coroutine.create(function() | |
| 3823 | for i = 0, 499 do | |
| 3824 | swait(1) | |
| 3825 | MagniDamage(elocacenter, 90, 1,5, 0, "Normal") | |
| 3826 | PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5) | |
| 3827 | end | |
| 3828 | elocacenter:Destroy() | |
| 3829 | eloca1:Destroy() | |
| 3830 | eloca2:Destroy() | |
| 3831 | eloca3:Destroy() | |
| 3832 | eloca4:Destroy() | |
| 3833 | end)) | |
| 3834 | end | |
| 3835 | end) | |
| 3836 | end)) | |
| 3837 | attack = false | |
| 3838 | end | |
| 3839 | ||
| 3840 | ||
| 3841 | function UniversalCollapse() | |
| 3842 | attack = true | |
| 3843 | local speedearn = 0 | |
| 3844 | hum.WalkSpeed = 0 | |
| 3845 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
| |
| 3846 | for i = 0, 10, 0.1 do | |
| 3847 | swait() | |
| 3848 | speedearn = speedearn + 0.1 | |
| 3849 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 3850 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 3851 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 3852 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 3853 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 3854 | RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1) | |
| 3855 | LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1) | |
| 3856 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 3857 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
| 3858 | RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1) | |
| 3859 | LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1) | |
| 3860 | end | |
| 3861 | CameraEnshaking(5,45) | |
| 3862 | sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR) | |
| 3863 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
| |
| 3864 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
| 3865 | if v:FindFirstChild('Head') then
| |
| 3866 | dmg(v) | |
| 3867 | end | |
| 3868 | end | |
| 3869 | hum.WalkSpeed = storehumanoidWS | |
| 3870 | attack = false | |
| 3871 | end | |
| 3872 | function ChaosBegone() | |
| 3873 | attack = true | |
| 3874 | local speedearn = 0 | |
| 3875 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75)
| |
| 3876 | for i = 0, 10, 0.1 do | |
| 3877 | swait() | |
| 3878 | speedearn = speedearn + 0.1 | |
| 3879 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 3880 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 3881 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 3882 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 3883 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 3884 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
| 3885 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
| 3886 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 3887 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 3888 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
| 3889 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
| 3890 | end | |
| 3891 | CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
| |
| 3892 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1)
| |
| 3893 | CameraEnshaking(5,25) | |
| 3894 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
| 3895 | if v:FindFirstChild('Head') then
| |
| 3896 | dmg(v) | |
| 3897 | end | |
| 3898 | end | |
| 3899 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random()) | |
| 3900 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random()) | |
| 3901 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random()) | |
| 3902 | for i = 0, 3, 0.1 do | |
| 3903 | swait() | |
| 3904 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
| 3905 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
| 3906 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
| 3907 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
| 3908 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
| 3909 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
| 3910 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
| 3911 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
| 3912 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
| 3913 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
| 3914 | end | |
| 3915 | attack = false | |
| 3916 | end | |
| 3917 | ||
| 3918 | function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon) | |
| 3919 | local orb = Instance.new("Part", char)
| |
| 3920 | orb.Anchored = true | |
| 3921 | orb.BrickColor = color | |
| 3922 | orb.CanCollide = false | |
| 3923 | orb.FormFactor = 3 | |
| 3924 | orb.Name = "Ring" | |
| 3925 | orb.Material = "Neon" | |
| 3926 | orb.Size = Vector3.new(1, 1, 1) | |
| 3927 | orb.Transparency = 0 | |
| 3928 | orb.TopSurface = 0 | |
| 3929 | orb.BottomSurface = 0 | |
| 3930 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 3931 | orbm.MeshType = "Sphere" | |
| 3932 | orb.CFrame = positted | |
| 3933 | orbm.Name = "SizeMesh" | |
| 3934 | orbm.Scale = vt(1,1,1) | |
| 3935 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
| |
| 3936 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor) | |
| 3937 | --[[for i = 0, 2 do | |
| 3938 | sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0) | |
| 3939 | end]]-- | |
| 3940 | coroutine.resume(coroutine.create(function() | |
| 3941 | wait(timer) | |
| 3942 | CameraEnshaking(3,ShakePower) | |
| 3943 | orb.Transparency = 1 | |
| 3944 | MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal") | |
| 3945 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor) | |
| 3946 | --[[for i = 0, 4 do | |
| 3947 | sphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0) | |
| 3948 | end]]-- | |
| 3949 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
| |
| 3950 | wait(3) | |
| 3951 | orb:Destroy() | |
| 3952 | end)) | |
| 3953 | end | |
| 3954 | ||
| 3955 | function orb_spawn(positted,timer) | |
| 3956 | local randomcol = math.random(1,2) | |
| 3957 | local orb = Instance.new("Part", char)
| |
| 3958 | orb.Anchored = true | |
| 3959 | if randomcol == 1 then | |
| 3960 | orb.BrickColor = BrickColor.new("White")
| |
| 3961 | elseif randomcol == 2 then | |
| 3962 | orb.BrickColor = BrickColor.new("Really black")
| |
| 3963 | end | |
| 3964 | orb.CanCollide = false | |
| 3965 | orb.FormFactor = 3 | |
| 3966 | orb.Name = "Ring" | |
| 3967 | orb.Material = "Neon" | |
| 3968 | orb.Size = Vector3.new(1, 1, 1) | |
| 3969 | orb.Transparency = 0 | |
| 3970 | orb.TopSurface = 0 | |
| 3971 | orb.BottomSurface = 0 | |
| 3972 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 3973 | orbm.MeshType = "Sphere" | |
| 3974 | orb.CFrame = positted | |
| 3975 | orbm.Name = "SizeMesh" | |
| 3976 | orbm.Scale = vt(1,1,1) | |
| 3977 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
| |
| 3978 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor) | |
| 3979 | for i = 0, 2 do | |
| 3980 | sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0) | |
| 3981 | end | |
| 3982 | coroutine.resume(coroutine.create(function() | |
| 3983 | wait(timer) | |
| 3984 | CameraEnshaking(3,2) | |
| 3985 | orb.Transparency = 1 | |
| 3986 | MagniDamage(orb, 17.5, 10,50, 0, "Normal") | |
| 3987 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor) | |
| 3988 | for i = 0, 4 do | |
| 3989 | sphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0) | |
| 3990 | end | |
| 3991 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
| |
| 3992 | wait(3) | |
| 3993 | orb:Destroy() | |
| 3994 | end)) | |
| 3995 | end | |
| 3996 | ||
| 3997 | function scattercorrupt() | |
| 3998 | attack = true | |
| 3999 | local rot = 0 | |
| 4000 | local randomrotations = math.random(1,2) | |
| 4001 | local lookv = 2.5 | |
| 4002 | local power = 5 | |
| 4003 | sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
| |
| 4004 | sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
| |
| 4005 | for i = 0, 9 do | |
| 4006 | sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
| |
| 4007 | end | |
| 4008 | CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
| |
| 4009 | CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
| |
| 4010 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
| |
| 4011 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
| |
| 4012 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
| |
| 4013 | local hite = Instance.new("Part", char)
| |
| 4014 | hite.Anchored = true | |
| 4015 | hite.CanCollide = false | |
| 4016 | hite.FormFactor = 3 | |
| 4017 | hite.Name = "Ring" | |
| 4018 | hite.Material = "Neon" | |
| 4019 | hite.Size = Vector3.new(1, 1, 1) | |
| 4020 | hite.Transparency = 1 | |
| 4021 | hite.TopSurface = 0 | |
| 4022 | hite.BottomSurface = 0 | |
| 4023 | hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0) | |
| 4024 | local rem = Instance.new("Part", char)
| |
| 4025 | rem.Anchored = true | |
| 4026 | rem.CanCollide = false | |
| 4027 | rem.FormFactor = 3 | |
| 4028 | rem.Name = "Ring" | |
| 4029 | rem.Material = "Neon" | |
| 4030 | rem.Size = Vector3.new(1, 1, 1) | |
| 4031 | rem.Transparency = 1 | |
| 4032 | rem.TopSurface = 0 | |
| 4033 | rem.BottomSurface = 0 | |
| 4034 | rem.CFrame = hite.CFrame | |
| 4035 | local rem2 = rem:Clone() | |
| 4036 | rem2.Parent = char | |
| 4037 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4038 | local rem3 = rem:Clone() | |
| 4039 | rem3.Parent = char | |
| 4040 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
| 4041 | local rem4 = rem:Clone() | |
| 4042 | rem4.Parent = char | |
| 4043 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
| 4044 | hite:Destroy() | |
| 4045 | coroutine.resume(coroutine.create(function() | |
| 4046 | for i = 0, 24 do | |
| 4047 | swait(1) | |
| 4048 | if randomrotations == 1 then | |
| 4049 | rot = rot + 1 | |
| 4050 | elseif randomrotations == 2 then | |
| 4051 | rot = rot - 1 | |
| 4052 | end | |
| 4053 | power = power + 0.5 | |
| 4054 | lookv = lookv + 7.5 | |
| 4055 | rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
| 4056 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4057 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
| 4058 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
| 4059 | orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
| |
| 4060 | orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
| |
| 4061 | orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
| |
| 4062 | orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
| |
| 4063 | end | |
| 4064 | end)) | |
| 4065 | attack = false | |
| 4066 | end | |
| 4067 | function yinyangi() | |
| 4068 | attack = true | |
| 4069 | for i = 0, 2, 0.1 do | |
| 4070 | swait() | |
| 4071 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2) | |
| 4072 | 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(20)),.2) | |
| 4073 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2) | |
| 4074 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 4075 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2) | |
| 4076 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
| 4077 | end | |
| 4078 | local bv = Instance.new("BodyVelocity")
| |
| 4079 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 4080 | bv.velocity = root.CFrame.lookVector*175 | |
| 4081 | bv.Parent = root | |
| 4082 | for Rotations = 0, 9 do | |
| 4083 | for i = 0, 1, 0.5 do | |
| 4084 | swait() | |
| 4085 | bv.velocity = root.CFrame.lookVector*175 | |
| 4086 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
| 4087 | 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(20)),.5) | |
| 4088 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5) | |
| 4089 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
| 4090 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
| 4091 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
| 4092 | end | |
| 4093 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
| 4094 | for i = 0, 1, 0.5 do | |
| 4095 | swait() | |
| 4096 | bv.velocity = root.CFrame.lookVector*175 | |
| 4097 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
| 4098 | 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(20)),.5) | |
| 4099 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5) | |
| 4100 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
| 4101 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
| 4102 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
| 4103 | end | |
| 4104 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
| 4105 | for i = 0, 1, 0.5 do | |
| 4106 | swait() | |
| 4107 | bv.velocity = root.CFrame.lookVector*175 | |
| 4108 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
| 4109 | 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(20)),.5) | |
| 4110 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5) | |
| 4111 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
| 4112 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
| 4113 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
| 4114 | end | |
| 4115 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
| 4116 | for i = 0, 1, 0.5 do | |
| 4117 | swait() | |
| 4118 | bv.velocity = root.CFrame.lookVector*175 | |
| 4119 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
| 4120 | 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(20)),.5) | |
| 4121 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5) | |
| 4122 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
| 4123 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
| 4124 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
| 4125 | end | |
| 4126 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
| 4127 | end | |
| 4128 | bv:Destroy() | |
| 4129 | attack = false | |
| 4130 | end | |
| 4131 | ||
| 4132 | function Wip() | |
| 4133 | attack = true | |
| 4134 | ||
| 4135 | local rngb = Instance.new("Part", char)
| |
| 4136 | rngb.Anchored = true | |
| 4137 | rngb.BrickColor = origcolor | |
| 4138 | rngb.CanCollide = false | |
| 4139 | rngb.FormFactor = 3 | |
| 4140 | rngb.Name = "Ring" | |
| 4141 | rngb.Material = "Neon" | |
| 4142 | rngb.Size = Vector3.new(1, 0.05, 1) | |
| 4143 | rngb.Transparency = 1 | |
| 4144 | rngb.TopSurface = 0 | |
| 4145 | rngb.BottomSurface = 0 | |
| 4146 | local rngmb = Instance.new("SpecialMesh", rngb)
| |
| 4147 | rngmb.MeshType = "Brick" | |
| 4148 | rngmb.Name = "SizeMesh" | |
| 4149 | rngmb.Scale = vt(0,1,0) | |
| 4150 | ||
| 4151 | local orb = rngb:Clone() | |
| 4152 | orb.Parent = char | |
| 4153 | orb.Transparency = 0 | |
| 4154 | orb.BrickColor = BrickColor.new("White")
| |
| 4155 | orb.Size = vt(1,1,1) | |
| 4156 | local orbmish = orb.SizeMesh | |
| 4157 | orbmish.Scale = vt(0,0,0) | |
| 4158 | orbmish.MeshType = "Sphere" | |
| 4159 | ||
| 4160 | local orbe = rngb:Clone() | |
| 4161 | orbe.Parent = char | |
| 4162 | orbe.Transparency = 0.5 | |
| 4163 | orbe.BrickColor = BrickColor.new("New Yeller")
| |
| 4164 | orbe.Size = vt(1,1,1) | |
| 4165 | local orbmish2 = orbe.SizeMesh | |
| 4166 | orbmish2.Scale = vt(0,0,0) | |
| 4167 | orbmish2.MeshType = "Sphere" | |
| 4168 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
| 4169 | ||
| 4170 | rngb:Destroy() | |
| 4171 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
| |
| 4172 | local scaled = 1 | |
| 4173 | for i = 0,5,0.1 do | |
| 4174 | swait() | |
| 4175 | scaled = scaled - 0.02 | |
| 4176 | if rainbowmode == true then | |
| 4177 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
| 4178 | end | |
| 4179 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
| 4180 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
| 4181 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
| 4182 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
| 4183 | sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25) | |
| 4184 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
| 4185 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 4186 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
| 4187 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
| 4188 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
| 4189 | 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(-2.5),math.rad(10),math.rad(0)),.3) | |
| 4190 | RootPart.CFrame = FaceMouse()[1] | |
| 4191 | end]]-- | |
| 4192 | for i = 0,5,0.1 do | |
| 4193 | swait() | |
| 4194 | if rainbowmode == true then | |
| 4195 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
| 4196 | end | |
| 4197 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
| 4198 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
| 4199 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
| 4200 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 4201 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
| 4202 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
| 4203 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
| 4204 | 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(-2.5),math.rad(10),math.rad(0)),.3) | |
| 4205 | RootPart.CFrame = FaceMouse()[1] | |
| 4206 | end | |
| 4207 | orbe.Transparency = 1 | |
| 4208 | orb.Transparency = 1 | |
| 4209 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
| 4210 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
| |
| 4211 | local a = Instance.new("Part",Character)
| |
| 4212 | a.Name = "Direction" | |
| 4213 | a.Anchored = true | |
| 4214 | a.BrickColor = bc("White")
| |
| 4215 | a.Material = "Neon" | |
| 4216 | a.Transparency = 0 | |
| 4217 | a.Shape = "Cylinder" | |
| 4218 | a.CanCollide = false | |
| 4219 | local a2 = Instance.new("Part",Character)
| |
| 4220 | a2.Name = "Direction" | |
| 4221 | a2.Anchored = true | |
| 4222 | a2.BrickColor = bc("New Yeller")
| |
| 4223 | a2.Color = Color3.new(r/255,g/255,b/255) | |
| 4224 | a2.Material = "Neon" | |
| 4225 | a2.Transparency = 0.5 | |
| 4226 | a2.Shape = "Cylinder" | |
| 4227 | a2.CanCollide = false | |
| 4228 | local ba = Instance.new("Part",Character)
| |
| 4229 | ba.Name = "HitDirect" | |
| 4230 | ba.Anchored = true | |
| 4231 | ba.BrickColor = bc("Cool yellow")
| |
| 4232 | ba.Material = "Neon" | |
| 4233 | ba.Transparency = 1 | |
| 4234 | ba.CanCollide = false | |
| 4235 | local ray = Ray.new( | |
| 4236 | orb.CFrame.p, -- origin | |
| 4237 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
| 4238 | ) | |
| 4239 | local ignore = Character | |
| 4240 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4241 | a.BottomSurface = 10 | |
| 4242 | a.TopSurface = 10 | |
| 4243 | a2.BottomSurface = 10 | |
| 4244 | a2.TopSurface = 10 | |
| 4245 | local distance = (orb.CFrame.p - position).magnitude | |
| 4246 | a.Size = Vector3.new(distance, 1, 1) | |
| 4247 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4248 | a2.Size = Vector3.new(distance, 1, 1) | |
| 4249 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4250 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4251 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4252 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4253 | game:GetService("Debris"):AddItem(a, 20)
| |
| 4254 | game:GetService("Debris"):AddItem(a2, 20)
| |
| 4255 | game:GetService("Debris"):AddItem(ba, 20)
| |
| 4256 | local msh = Instance.new("SpecialMesh",a)
| |
| 4257 | msh.MeshType = "Cylinder" | |
| 4258 | msh.Scale = vt(1,5*5,5*5) | |
| 4259 | local msh2 = Instance.new("SpecialMesh",a2)
| |
| 4260 | msh2.MeshType = "Cylinder" | |
| 4261 | msh2.Scale = vt(1,6*5,6*5) | |
| 4262 | ||
| 4263 | for i = 0,10,0.1 do | |
| 4264 | swait() | |
| 4265 | CameraEnshaking(1,5) | |
| 4266 | a2.Color = Color3.new(r/255,g/255,b/255) | |
| 4267 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
| 4268 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
| 4269 | ray = Ray.new( | |
| 4270 | orb.CFrame.p, -- origin | |
| 4271 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
| 4272 | ) | |
| 4273 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4274 | distance = (orb.CFrame.p - position).magnitude | |
| 4275 | if typrot == 1 then | |
| 4276 | rotation = rotation + 2.5 | |
| 4277 | elseif typrot == 2 then | |
| 4278 | rotation = rotation - 2.5 | |
| 4279 | end | |
| 4280 | RootPart.CFrame = FaceMouse()[1] | |
| 4281 | a.Size = Vector3.new(distance, 1, 1) | |
| 4282 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4283 | a2.Size = Vector3.new(distance, 1, 1) | |
| 4284 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4285 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4286 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4287 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4288 | msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5) | |
| 4289 | msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5) | |
| 4290 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
| 4291 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
| 4292 | MagniDamage(ba, 30, 500,60000, 0, "Normal") | |
| 4293 | end | |
| 4294 | a:Destroy() | |
| 4295 | a2:Destroy() | |
| 4296 | ba:Destroy() | |
| 4297 | orb:Destroy() | |
| 4298 | orbe:Destroy() | |
| 4299 | attack = false | |
| 4300 | end | |
| 4301 | function HolyBarrier() | |
| 4302 | attack = true | |
| 4303 | for i = 0, 2, 0.1 do | |
| 4304 | swait() | |
| 4305 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
| 4306 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
| 4307 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4) | |
| 4308 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4) | |
| 4309 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1) | |
| 4310 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1) | |
| 4311 | end | |
| 4312 | CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1)
| |
| 4313 | stash = Instance.new("Model",workspace)
| |
| 4314 | local barrier = Instance.new("Part",stash)
| |
| 4315 | barrier.Anchored = true | |
| 4316 | barrier.CanCollide = false | |
| 4317 | barrier.Size = Vector3.new(20,20,20) | |
| 4318 | barrier.CFrame = root.CFrame | |
| 4319 | barrier.Transparency = 0.6 | |
| 4320 | barrier.BrickColor = MAINRUINCOLOR | |
| 4321 | barrier.Material = Enum.Material.Neon | |
| 4322 | barrier.Shape = Enum.PartType.Ball | |
| 4323 | sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR) | |
| 4324 | Torso.Anchored = true | |
| 4325 | shielding = true | |
| 4326 | for i=1,50 do | |
| 4327 | local p = Instance.new("Part",stash)
| |
| 4328 | p.Anchored = true | |
| 4329 | p.Transparency = 1 | |
| 4330 | p.Size = Vector3.new(11,11,11) | |
| 4331 | p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)) | |
| 4332 | end | |
| 4333 | end | |
| 4334 | function Judgement() | |
| 4335 | attack = true | |
| 4336 | hum.WalkSpeed = 0 | |
| 4337 | local p = Instance.new("Part",root)
| |
| 4338 | p.Anchored = true | |
| 4339 | p.CanCollide = false | |
| 4340 | p.BrickColor = MAINRUINCOLOR | |
| 4341 | p.Material = Enum.Material.Neon | |
| 4342 | p.Size = Vector3.new(1,1,1) | |
| 4343 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
| 4344 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
| 4345 | local m = Instance.new("SpecialMesh",p)
| |
| 4346 | m.MeshType = "Cylinder" | |
| 4347 | m.Scale = Vector3.new(2000,2,2) | |
| 4348 | local targ = Instance.new("Part",root)
| |
| 4349 | targ.Transparency = 1 | |
| 4350 | targ.CanCollide = false | |
| 4351 | targ.Size = Vector3.new(1,1,1) | |
| 4352 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
| 4353 | CFuncs.Sound.Create("rbxassetid://164178927", targ, 5, 1)
| |
| 4354 | CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1)
| |
| 4355 | for i = 1,15 do | |
| 4356 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
| 4357 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2) | |
| 4358 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2) | |
| 4359 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2) | |
| 4360 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2) | |
| 4361 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2) | |
| 4362 | 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(-2.5),math.rad(10),math.rad(20)),.2) | |
| 4363 | sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR) | |
| 4364 | sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0) | |
| 4365 | m.Scale = m.Scale+Vector3.new(0,1,1) | |
| 4366 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
| 4367 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
| 4368 | swait() | |
| 4369 | end | |
| 4370 | sphereMK(3, 0.2, "Add", targ.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, 5, -0.005, MAINRUINCOLOR, 0) | |
| 4371 | for i = 1,200 do | |
| 4372 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
| 4373 | sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0) | |
| 4374 | sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR) | |
| 4375 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
| 4376 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
| 4377 | MagniDamage(targ, 25, 5, 8, 0, "Normal") | |
| 4378 | swait() | |
| 4379 | end | |
| 4380 | for i =1,15 do | |
| 4381 | m.Scale = m.Scale-Vector3.new(1,1,1) | |
| 4382 | p.Transparency = i / 15 | |
| 4383 | swait() | |
| 4384 | end | |
| 4385 | p:Destroy() | |
| 4386 | hum.WalkSpeed = storehumanoidWS | |
| 4387 | attack = false | |
| 4388 | end | |
| 4389 | ||
| 4390 | function UniversalSpark() | |
| 4391 | attack = true | |
| 4392 | ||
| 4393 | local rngb = Instance.new("Part", char)
| |
| 4394 | rngb.Anchored = true | |
| 4395 | rngb.BrickColor = origcolor | |
| 4396 | rngb.CanCollide = false | |
| 4397 | rngb.FormFactor = 3 | |
| 4398 | rngb.Name = "Ring" | |
| 4399 | rngb.Material = "Neon" | |
| 4400 | rngb.Size = Vector3.new(1, 0.05, 1) | |
| 4401 | rngb.Transparency = 1 | |
| 4402 | rngb.TopSurface = 0 | |
| 4403 | rngb.BottomSurface = 0 | |
| 4404 | local rngmb = Instance.new("SpecialMesh", rngb)
| |
| 4405 | rngmb.MeshType = "Brick" | |
| 4406 | rngmb.Name = "SizeMesh" | |
| 4407 | rngmb.Scale = vt(0,1,0) | |
| 4408 | ||
| 4409 | local orb = rngb:Clone() | |
| 4410 | orb.Parent = char | |
| 4411 | orb.Transparency = 0 | |
| 4412 | orb.BrickColor = BrickColor.new("White")
| |
| 4413 | orb.Size = vt(1,1,1) | |
| 4414 | local orbmish = orb.SizeMesh | |
| 4415 | orbmish.Scale = vt(0,0,0) | |
| 4416 | orbmish.MeshType = "Sphere" | |
| 4417 | ||
| 4418 | local orbe = rngb:Clone() | |
| 4419 | orbe.Parent = char | |
| 4420 | orbe.Transparency = 0.5 | |
| 4421 | orbe.BrickColor = BrickColor.new("New Yeller")
| |
| 4422 | orbe.Size = vt(1,1,1) | |
| 4423 | local orbmish2 = orbe.SizeMesh | |
| 4424 | orbmish2.Scale = vt(0,0,0) | |
| 4425 | orbmish2.MeshType = "Sphere" | |
| 4426 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
| 4427 | ||
| 4428 | rngb:Destroy() | |
| 4429 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1)
| |
| 4430 | local scaled = 1 | |
| 4431 | for i = 0,5,0.1 do | |
| 4432 | swait() | |
| 4433 | scaled = scaled - 0.02 | |
| 4434 | if rainbowmode == true then | |
| 4435 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
| 4436 | end | |
| 4437 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
| 4438 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
| 4439 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
| 4440 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
| 4441 | sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25) | |
| 4442 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
| 4443 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 4444 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
| 4445 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
| 4446 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
| 4447 | 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(-2.5),math.rad(10),math.rad(0)),.3) | |
| 4448 | RootPart.CFrame = FaceMouse()[1] | |
| 4449 | end]]-- | |
| 4450 | for i = 0,5,0.1 do | |
| 4451 | swait() | |
| 4452 | if rainbowmode == true then | |
| 4453 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
| 4454 | end | |
| 4455 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
| 4456 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
| 4457 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
| 4458 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 4459 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
| 4460 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
| 4461 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
| 4462 | 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(-2.5),math.rad(10),math.rad(0)),.3) | |
| 4463 | RootPart.CFrame = FaceMouse()[1] | |
| 4464 | end | |
| 4465 | orbe.Transparency = 1 | |
| 4466 | orb.Transparency = 1 | |
| 4467 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
| 4468 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
| |
| 4469 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
| |
| 4470 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
| |
| 4471 | ||
| 4472 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1)
| |
| 4473 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
| |
| 4474 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
| |
| 4475 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
| |
| 4476 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
| |
| 4477 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
| |
| 4478 | CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1)
| |
| 4479 | local xd= Instance.new("Sound",char)
| |
| 4480 | xd.SoundId = "rbxassetid://445796828" | |
| 4481 | xd.Pitch = 0.75 | |
| 4482 | xd.Looped = true | |
| 4483 | xd.Volume = 1.25 | |
| 4484 | xd:Play() | |
| 4485 | local a = Instance.new("Part",Character)
| |
| 4486 | a.Name = "Direction" | |
| 4487 | a.Anchored = true | |
| 4488 | a.BrickColor = bc("Alder")
| |
| 4489 | a.Color = MAINRUINCOLOR.Color | |
| 4490 | a.Material = "Neon" | |
| 4491 | a.Transparency = 0.5 | |
| 4492 | a.Shape = "Cylinder" | |
| 4493 | a.CanCollide = false | |
| 4494 | local a2 = Instance.new("Part",Character)
| |
| 4495 | a2.Name = "Direction" | |
| 4496 | a2.Anchored = true | |
| 4497 | a2.BrickColor = bc("New Yeller")
| |
| 4498 | a2.Color = MAINRUINCOLOR.Color | |
| 4499 | a2.Material = "Neon" | |
| 4500 | a2.Transparency = 0.5 | |
| 4501 | a2.Shape = "Cylinder" | |
| 4502 | a2.CanCollide = false | |
| 4503 | local ba = Instance.new("Part",Character)
| |
| 4504 | ba.Name = "HitDirect" | |
| 4505 | ba.Anchored = true | |
| 4506 | ba.BrickColor = bc("Cool yellow")
| |
| 4507 | ba.Material = "Neon" | |
| 4508 | ba.Transparency = 1 | |
| 4509 | ba.CanCollide = false | |
| 4510 | local ray = Ray.new( | |
| 4511 | orb.CFrame.p, -- origin | |
| 4512 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
| 4513 | ) | |
| 4514 | local ignore = Character | |
| 4515 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4516 | a.BottomSurface = 10 | |
| 4517 | a.TopSurface = 10 | |
| 4518 | a2.BottomSurface = 10 | |
| 4519 | a2.TopSurface = 10 | |
| 4520 | local distance = (orb.CFrame.p - position).magnitude | |
| 4521 | a.Size = Vector3.new(distance, 1, 1) | |
| 4522 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4523 | a2.Size = Vector3.new(distance, 1, 1) | |
| 4524 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4525 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4526 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4527 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4528 | game:GetService("Debris"):AddItem(a, 60)
| |
| 4529 | game:GetService("Debris"):AddItem(a2, 60)
| |
| 4530 | game:GetService("Debris"):AddItem(ba, 60)
| |
| 4531 | local outerscale = 0 | |
| 4532 | local msh = Instance.new("SpecialMesh",a)
| |
| 4533 | msh.MeshType = "Cylinder" | |
| 4534 | msh.Scale = vt(1,0,0) | |
| 4535 | local msh2 = Instance.new("SpecialMesh",a2)
| |
| 4536 | msh2.MeshType = "Cylinder" | |
| 4537 | msh2.Scale = vt(1,0,0) | |
| 4538 | for i = 0,2,0.1 do | |
| 4539 | swait() | |
| 4540 | CameraEnshaking(1,1) | |
| 4541 | msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20) | |
| 4542 | msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15) | |
| 4543 | outerscale = outerscale - 0.015 | |
| 4544 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
| 4545 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
| 4546 | ray = Ray.new( | |
| 4547 | orb.CFrame.p, -- origin | |
| 4548 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
| 4549 | ) | |
| 4550 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4551 | distance = (orb.CFrame.p - position).magnitude | |
| 4552 | if typrot == 1 then | |
| 4553 | rotation = rotation + 2.5 | |
| 4554 | elseif typrot == 2 then | |
| 4555 | rotation = rotation - 2.5 | |
| 4556 | end | |
| 4557 | RootPart.CFrame = FaceMouse()[1] | |
| 4558 | a.Size = Vector3.new(distance, 1, 1) | |
| 4559 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4560 | a2.Size = Vector3.new(distance, 1, 1) | |
| 4561 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4562 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4563 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4564 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4565 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
| 4566 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
| 4567 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
| 4568 | end | |
| 4569 | for z = 0, 2 do | |
| 4570 | for i = 0,4,0.1 do | |
| 4571 | swait() | |
| 4572 | CameraEnshaking(1,1) | |
| 4573 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
| 4574 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
| 4575 | outerscale = outerscale + 0.015 | |
| 4576 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
| 4577 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
| 4578 | ray = Ray.new( | |
| 4579 | orb.CFrame.p, -- origin | |
| 4580 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
| 4581 | ) | |
| 4582 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4583 | distance = (orb.CFrame.p - position).magnitude | |
| 4584 | if typrot == 1 then | |
| 4585 | rotation = rotation + 2.5 | |
| 4586 | elseif typrot == 2 then | |
| 4587 | rotation = rotation - 2.5 | |
| 4588 | end | |
| 4589 | RootPart.CFrame = FaceMouse()[1] | |
| 4590 | a.Size = Vector3.new(distance, 1, 1) | |
| 4591 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4592 | a2.Size = Vector3.new(distance, 1, 1) | |
| 4593 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4594 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4595 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4596 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4597 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
| 4598 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
| 4599 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
| 4600 | end | |
| 4601 | for i = 0,4,0.1 do | |
| 4602 | swait() | |
| 4603 | CameraEnshaking(1,1) | |
| 4604 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
| 4605 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
| 4606 | outerscale = outerscale - 0.015 | |
| 4607 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
| 4608 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
| 4609 | ray = Ray.new( | |
| 4610 | orb.CFrame.p, -- origin | |
| 4611 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
| 4612 | ) | |
| 4613 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4614 | distance = (orb.CFrame.p - position).magnitude | |
| 4615 | if typrot == 1 then | |
| 4616 | rotation = rotation + 2.5 | |
| 4617 | elseif typrot == 2 then | |
| 4618 | rotation = rotation - 2.5 | |
| 4619 | end | |
| 4620 | RootPart.CFrame = FaceMouse()[1] | |
| 4621 | a.Size = Vector3.new(distance, 1, 1) | |
| 4622 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4623 | a2.Size = Vector3.new(distance, 1, 1) | |
| 4624 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4625 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4626 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4627 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4628 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
| 4629 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
| 4630 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
| 4631 | end | |
| 4632 | end | |
| 4633 | for i = 0,4,0.1 do | |
| 4634 | swait() | |
| 4635 | CameraEnshaking(1,1) | |
| 4636 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
| 4637 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
| 4638 | xd.Volume = xd.Volume - 0.025 | |
| 4639 | a.Transparency = a.Transparency + 0.025 | |
| 4640 | a2.Transparency = a2.Transparency + 0.025 | |
| 4641 | outerscale = outerscale - 0.015 | |
| 4642 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
| 4643 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
| 4644 | ray = Ray.new( | |
| 4645 | orb.CFrame.p, -- origin | |
| 4646 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
| 4647 | ) | |
| 4648 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4649 | distance = (orb.CFrame.p - position).magnitude | |
| 4650 | if typrot == 1 then | |
| 4651 | rotation = rotation + 2.5 | |
| 4652 | elseif typrot == 2 then | |
| 4653 | rotation = rotation - 2.5 | |
| 4654 | end | |
| 4655 | RootPart.CFrame = FaceMouse()[1] | |
| 4656 | a.Size = Vector3.new(distance, 1, 1) | |
| 4657 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4658 | a2.Size = Vector3.new(distance, 1, 1) | |
| 4659 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4660 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4661 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4662 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4663 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
| 4664 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
| 4665 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
| 4666 | end | |
| 4667 | xd:Destroy() | |
| 4668 | a:Destroy() | |
| 4669 | a2:Destroy() | |
| 4670 | ba:Destroy() | |
| 4671 | orb:Destroy() | |
| 4672 | orbe:Destroy() | |
| 4673 | attack = false | |
| 4674 | end | |
| 4675 | ||
| 4676 | ||
| 4677 | function resetmode() | |
| 4678 | rainbowmode = false | |
| 4679 | chaosmode = false | |
| 4680 | tl1.Enabled = false | |
| 4681 | tl2.Enabled = false | |
| 4682 | tl3.Enabled = false | |
| 4683 | ModeOfGlitch = 1 | |
| 4684 | storehumanoidWS = 16 | |
| 4685 | coroutine.resume(coroutine.create(function() | |
| 4686 | attack = true | |
| 4687 | hum.WalkSpeed = 0 | |
| 4688 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25)
| |
| 4689 | for i = 0,4,0.1 do | |
| 4690 | swait() | |
| 4691 | sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100) | |
| 4692 | 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(30)),.5) | |
| 4693 | 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(-30)),.5) | |
| 4694 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.5) | |
| 4695 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.5) | |
| 4696 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5) | |
| 4697 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5) | |
| 4698 | end | |
| 4699 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1)
| |
| 4700 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1)
| |
| 4701 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1)
| |
| 4702 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75)
| |
| 4703 | RecolorTextAndRename("Mayhem",Color3.new(0,0,0),Color3.new(1,0,0))
| |
| 4704 | CameraEnshaking(5,2.5) | |
| 4705 | MAINRUINCOLOR = BrickColor.new("Really red")
| |
| 4706 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 4707 | for i = 0, 49 do | |
| 4708 | PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0) | |
| 4709 | end | |
| 4710 | for i = 0,3,0.1 do | |
| 4711 | sphereMK(2.5,-1,"Add",root.CFrame*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,MAINRUINCOLOR,0) | |
| 4712 | end | |
| 4713 | for i, v in pairs(mw2:GetChildren()) do | |
| 4714 | if v:IsA("Part") then
| |
| 4715 | v.BrickColor = BrickColor.new("Really red")
| |
| 4716 | v.Material = "Neon" | |
| 4717 | end | |
| 4718 | end | |
| 4719 | for i, v in pairs(mw1:GetChildren()) do | |
| 4720 | if v:IsA("Part") then
| |
| 4721 | v.Transparency = 1 | |
| 4722 | v.BrickColor = BrickColor.new("Really red")
| |
| 4723 | v.Material = "Neon" | |
| 4724 | end | |
| 4725 | end | |
| 4726 | for i, v in pairs(m:GetChildren()) do | |
| 4727 | if v:IsA("Part") then
| |
| 4728 | v.BrickColor = BrickColor.new("Really black")
| |
| 4729 | v.Material = "Glass" | |
| 4730 | end | |
| 4731 | end | |
| 4732 | for i, v in pairs(m2:GetChildren()) do | |
| 4733 | if v:IsA("Part") then
| |
| 4734 | v.BrickColor = BrickColor.new("Crimson")
| |
| 4735 | v.Material = "Granite" | |
| 4736 | end | |
| 4737 | end | |
| 4738 | for i, v in pairs(m3:GetChildren()) do | |
| 4739 | if v:IsA("Part") then
| |
| 4740 | v.BrickColor = BrickColor.new("Really red")
| |
| 4741 | v.Material = "Neon" | |
| 4742 | end | |
| 4743 | end | |
| 4744 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 4745 | if v:IsA("Part") then
| |
| 4746 | v.Transparency = 1 | |
| 4747 | v.BrickColor = BrickColor.new("White")
| |
| 4748 | v.Material = "Neon" | |
| 4749 | end | |
| 4750 | end | |
| 4751 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 4752 | if v:IsA("Part") then
| |
| 4753 | v.Transparency = 1 | |
| 4754 | v.BrickColor = BrickColor.new("White")
| |
| 4755 | v.Material = "Neon" | |
| 4756 | end | |
| 4757 | end | |
| 4758 | for i = 0,2,0.1 do | |
| 4759 | swait() | |
| 4760 | 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(-30)),.5) | |
| 4761 | 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(30)),.5) | |
| 4762 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
| 4763 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5) | |
| 4764 | RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5) | |
| 4765 | LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5) | |
| 4766 | end | |
| 4767 | hum.WalkSpeed = storehumanoidWS | |
| 4768 | attack = false | |
| 4769 | end)) | |
| 4770 | newTheme("rbxassetid://672003363",48.6,1,0.3)
| |
| 4771 | end | |
| 4772 | ||
| 4773 | function attackone() | |
| 4774 | attack = true | |
| 4775 | for i = 0,1,0.1 do | |
| 4776 | swait() | |
| 4777 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2) | |
| 4778 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2) | |
| 4779 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
| 4780 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
| 4781 | RH.C0=clerp(RH.C0,cf(1,-1 - 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)),.2) | |
| 4782 | 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(10)),.2) | |
| 4783 | end | |
| 4784 | CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1)
| |
| 4785 | ||
| 4786 | local hitb = Instance.new("Part", char)
| |
| 4787 | hitb.Anchored = true | |
| 4788 | hitb.CanCollide = false | |
| 4789 | hitb.FormFactor = 3 | |
| 4790 | hitb.Name = "Ring" | |
| 4791 | hitb.Material = "Neon" | |
| 4792 | hitb.Size = Vector3.new(1, 1, 1) | |
| 4793 | hitb.Transparency = 1 | |
| 4794 | hitb.TopSurface = 0 | |
| 4795 | hitb.BottomSurface = 0 | |
| 4796 | hitb.CFrame = root.CFrame + root.CFrame.lookVector*2 | |
| 4797 | MagniDamage(hitb, 3, 10,30, 0, "Normal") | |
| 4798 | hitb:Destroy() | |
| 4799 | for i = 0,1,0.1 do | |
| 4800 | swait() | |
| 4801 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4) | |
| 4802 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4) | |
| 4803 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4) | |
| 4804 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4) | |
| 4805 | RH.C0=clerp(RH.C0,cf(1,-1 - 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(-40)),.4) | |
| 4806 | 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(-10)),.4) | |
| 4807 | end | |
| 4808 | ||
| 4809 | attack = false | |
| 4810 | end | |
| 4811 | ||
| 4812 | function attacktwo() | |
| 4813 | attack = true | |
| 4814 | for i = 0,1,0.1 do | |
| 4815 | swait() | |
| 4816 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2) | |
| 4817 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2) | |
| 4818 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
| 4819 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
| 4820 | RH.C0=clerp(RH.C0,cf(1,-1 - 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)),.2) | |
| 4821 | 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(10)),.2) | |
| 4822 | end | |
| 4823 | CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1)
| |
| 4824 | local hitb = Instance.new("Part", char)
| |
| 4825 | hitb.Anchored = true | |
| 4826 | hitb.CanCollide = false | |
| 4827 | hitb.FormFactor = 3 | |
| 4828 | hitb.Name = "Ring" | |
| 4829 | hitb.Material = "Neon" | |
| 4830 | hitb.Size = Vector3.new(1, 1, 1) | |
| 4831 | hitb.Transparency = 1 | |
| 4832 | hitb.TopSurface = 0 | |
| 4833 | hitb.BottomSurface = 0 | |
| 4834 | hitb.CFrame = root.CFrame + root.CFrame.lookVector*2 | |
| 4835 | MagniDamage(hitb, 3, 10,30, 0, "Normal") | |
| 4836 | hitb:Destroy() | |
| 4837 | for i = 0,1,0.1 do | |
| 4838 | swait() | |
| 4839 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4) | |
| 4840 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4) | |
| 4841 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4) | |
| 4842 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4) | |
| 4843 | RH.C0=clerp(RH.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(-40)),.4) | |
| 4844 | 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(-10)),.4) | |
| 4845 | end | |
| 4846 | attack = false | |
| 4847 | end | |
| 4848 | ||
| 4849 | function attackthree() | |
| 4850 | attack = true | |
| 4851 | for i = 0,1,0.1 do | |
| 4852 | swait() | |
| 4853 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3) | |
| 4854 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3) | |
| 4855 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3) | |
| 4856 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
| 4857 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
| 4858 | 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(-2.5),math.rad(10),math.rad(0)),.3) | |
| 4859 | end | |
| 4860 | local distlook = 5 | |
| 4861 | for i = 0, 4 do | |
| 4862 | swait(2) | |
| 4863 | CameraEnshaking(2,3) | |
| 4864 | local hite = Instance.new("Part", char)
| |
| 4865 | hite.Anchored = true | |
| 4866 | hite.CanCollide = false | |
| 4867 | hite.FormFactor = 3 | |
| 4868 | hite.Name = "Ring" | |
| 4869 | hite.Material = "Neon" | |
| 4870 | hite.Size = Vector3.new(1, 1, 1) | |
| 4871 | hite.Transparency = 1 | |
| 4872 | hite.TopSurface = 0 | |
| 4873 | hite.BottomSurface = 0 | |
| 4874 | hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook | |
| 4875 | sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR) | |
| 4876 | sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR) | |
| 4877 | MagniDamage(hite, 10, 15,35, 0, "Normal") | |
| 4878 | for i = 0, 2 do | |
| 4879 | sphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0) | |
| 4880 | sphereMK(3,0.2,"Add",hite.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,5,-0.005,MAINRUINCOLOR,0) | |
| 4881 | sphereMK(6,0.35,"Add",hite.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,5,-0.005,MAINRUINCOLOR,0) | |
| 4882 | end | |
| 4883 | CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1)
| |
| 4884 | CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6)
| |
| 4885 | game:GetService("Debris"):AddItem(hite, 5)
| |
| 4886 | distlook = distlook + 10 | |
| 4887 | end | |
| 4888 | attack = false | |
| 4889 | end | |
| 4890 | ||
| 4891 | local ActiveGia = false | |
| 4892 | function THEHELLITSTHATBIG() | |
| 4893 | ActiveGia = true | |
| 4894 | attack = true | |
| 4895 | hum.WalkSpeed = 0 | |
| 4896 | for i = 0,2,0.1 do | |
| 4897 | swait() | |
| 4898 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2) | |
| 4899 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2) | |
| 4900 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2) | |
| 4901 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2) | |
| 4902 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2) | |
| 4903 | 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(-2.5),math.rad(10),math.rad(20)),.2) | |
| 4904 | end | |
| 4905 | for i = 0,1,0.1 do | |
| 4906 | torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
| 4907 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1) | |
| 4908 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1) | |
| 4909 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
| 4910 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
| 4911 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1) | |
| 4912 | end | |
| 4913 | CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1)
| |
| 4914 | secrleg.Transparency = 0.5 | |
| 4915 | seclleg.Transparency = 0.5 | |
| 4916 | secrarm.Transparency = 0.5 | |
| 4917 | seclarm.Transparency = 0.5 | |
| 4918 | seched.Transparency = 0.5 | |
| 4919 | sectors.Transparency = 0.5 | |
| 4920 | for i = 0,25,0.1 do | |
| 4921 | swait() | |
| 4922 | PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10) | |
| 4923 | torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025) | |
| 4924 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.025) | |
| 4925 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),0.025) | |
| 4926 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
| 4927 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
| 4928 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025) | |
| 4929 | end | |
| 4930 | --[[secrleg.Transparency = 1 | |
| 4931 | seclleg.Transparency = 1 | |
| 4932 | secrarm.Transparency = 1 | |
| 4933 | seclarm.Transparency = 1 | |
| 4934 | seched.Transparency = 1 | |
| 4935 | sectors.Transparency = 1]]-- | |
| 4936 | torsweld.Part0 = root | |
| 4937 | hum.WalkSpeed = storehumanoidWS | |
| 4938 | attack = false | |
| 4939 | end | |
| 4940 | ||
| 4941 | function removelol() | |
| 4942 | ActiveGia = false | |
| 4943 | attack = true | |
| 4944 | hum.WalkSpeed = 0 | |
| 4945 | for i = 0,2,0.1 do | |
| 4946 | swait() | |
| 4947 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2) | |
| 4948 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2) | |
| 4949 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2) | |
| 4950 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2) | |
| 4951 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2) | |
| 4952 | 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(-2.5),math.rad(10),math.rad(20)),.2) | |
| 4953 | end | |
| 4954 | CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1)
| |
| 4955 | for i = 0,25,0.1 do | |
| 4956 | swait() | |
| 4957 | secrleg.Transparency = secrleg.Transparency + 0.00225 | |
| 4958 | seclleg.Transparency = secrleg.Transparency | |
| 4959 | secrarm.Transparency = secrleg.Transparency | |
| 4960 | seclarm.Transparency = secrleg.Transparency | |
| 4961 | seched.Transparency = secrleg.Transparency | |
| 4962 | sectors.Transparency = secrleg.Transparency | |
| 4963 | PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10) | |
| 4964 | torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025) | |
| 4965 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(20)),0.025) | |
| 4966 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),0.025) | |
| 4967 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
| 4968 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
| 4969 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025) | |
| 4970 | end | |
| 4971 | CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1)
| |
| 4972 | sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 4973 | sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 4974 | sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 4975 | secrleg.Transparency = 1 | |
| 4976 | seclleg.Transparency = 1 | |
| 4977 | secrarm.Transparency = 1 | |
| 4978 | seclarm.Transparency = 1 | |
| 4979 | seched.Transparency = 1 | |
| 4980 | sectors.Transparency = 1 | |
| 4981 | torsweld.Part0 = root | |
| 4982 | hum.WalkSpeed = storehumanoidWS | |
| 4983 | attack = false | |
| 4984 | end | |
| 4985 | ||
| 4986 | function FinalCalamity() | |
| 4987 | end | |
| 4988 | ||
| 4989 | local attacktype = 1 | |
| 4990 | mouse.Button1Down:connect(function() | |
| 4991 | if attack == false and attacktype == 1 then | |
| 4992 | attacktype = 2 | |
| 4993 | attackone() | |
| 4994 | elseif attack == false and attacktype == 2 then | |
| 4995 | attacktype = 3 | |
| 4996 | attacktwo() | |
| 4997 | elseif attack == false and attacktype == 3 then | |
| 4998 | attacktype = 1 | |
| 4999 | attackthree() | |
| 5000 | elseif attack == false and attacktype == 4 then | |
| 5001 | attacktype = 1 | |
| 5002 | --attackfour() | |
| 5003 | end | |
| 5004 | end) | |
| 5005 | mouse.KeyDown:connect(function(k) | |
| 5006 | if k == "q" and attack == false and ModeOfGlitch ~= 2 then | |
| 5007 | ModeOfGlitch = 2 | |
| 5008 | storehumanoidWS = 16 | |
| 5009 | hum.WalkSpeed = 16 | |
| 5010 | rainbowmode = false | |
| 5011 | chaosmode = false | |
| 5012 | tl1.Enabled = false | |
| 5013 | tl2.Enabled = false | |
| 5014 | tl3.Enabled = false | |
| 5015 | RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1))
| |
| 5016 | newTheme("rbxassetid://1523462000",0,1,0.3)
| |
| 5017 | MAINRUINCOLOR = BrickColor.new("Toothpaste")
| |
| 5018 | for i, v in pairs(mw2:GetChildren()) do | |
| 5019 | if v:IsA("Part") then
| |
| 5020 | v.BrickColor = MAINRUINCOLOR | |
| 5021 | v.Material = "Neon" | |
| 5022 | end | |
| 5023 | end | |
| 5024 | for i, v in pairs(mw1:GetChildren()) do | |
| 5025 | if v:IsA("Part") then
| |
| 5026 | v.Transparency = 1 | |
| 5027 | v.BrickColor = MAINRUINCOLOR | |
| 5028 | v.Material = "Neon" | |
| 5029 | end | |
| 5030 | end | |
| 5031 | for i, v in pairs(m:GetChildren()) do | |
| 5032 | if v:IsA("Part") then
| |
| 5033 | v.BrickColor = BrickColor.new("White")
| |
| 5034 | v.Material = "Ice" | |
| 5035 | end | |
| 5036 | end | |
| 5037 | for i, v in pairs(m2:GetChildren()) do | |
| 5038 | if v:IsA("Part") then
| |
| 5039 | v.BrickColor = BrickColor.new("Pastel light blue")
| |
| 5040 | v.Material = "Glass" | |
| 5041 | end | |
| 5042 | end | |
| 5043 | for i, v in pairs(m3:GetChildren()) do | |
| 5044 | if v:IsA("Part") then
| |
| 5045 | v.BrickColor = BrickColor.new("Toothpaste")
| |
| 5046 | v.Material = "Neon" | |
| 5047 | end | |
| 5048 | end | |
| 5049 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 5050 | if v:IsA("Part") then
| |
| 5051 | v.Transparency = 1 | |
| 5052 | v.BrickColor = BrickColor.new("White")
| |
| 5053 | v.Material = "Neon" | |
| 5054 | end | |
| 5055 | end | |
| 5056 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 5057 | if v:IsA("Part") then
| |
| 5058 | v.Transparency = 1 | |
| 5059 | v.BrickColor = BrickColor.new("White")
| |
| 5060 | v.Material = "Neon" | |
| 5061 | end | |
| 5062 | end | |
| 5063 | elseif k == "q" and attack == false and ModeOfGlitch == 2 then | |
| 5064 | resetmode() | |
| 5065 | end | |
| 5066 | if k == "e" and attack == false and ModeOfGlitch ~= 3 then | |
| 5067 | ModeOfGlitch = 3 | |
| 5068 | storehumanoidWS = 16 | |
| 5069 | hum.WalkSpeed = 16 | |
| 5070 | rainbowmode = false | |
| 5071 | chaosmode = false | |
| 5072 | tl1.Enabled = false | |
| 5073 | tl2.Enabled = false | |
| 5074 | tl3.Enabled = false | |
| 5075 | RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1))
| |
| 5076 | newTheme("rbxassetid://261807692",58.15,0.98,1.25)
| |
| 5077 | MAINRUINCOLOR = BrickColor.new("Royal purple")
| |
| 5078 | for i, v in pairs(mw2:GetChildren()) do | |
| 5079 | if v:IsA("Part") then
| |
| 5080 | v.BrickColor = MAINRUINCOLOR | |
| 5081 | v.Material = "Neon" | |
| 5082 | end | |
| 5083 | end | |
| 5084 | for i, v in pairs(mw1:GetChildren()) do | |
| 5085 | if v:IsA("Part") then
| |
| 5086 | v.Transparency = 1 | |
| 5087 | v.BrickColor = MAINRUINCOLOR | |
| 5088 | v.Material = "Neon" | |
| 5089 | end | |
| 5090 | end | |
| 5091 | for i, v in pairs(m:GetChildren()) do | |
| 5092 | if v:IsA("Part") then
| |
| 5093 | v.BrickColor = BrickColor.new("Black")
| |
| 5094 | v.Material = "Ice" | |
| 5095 | end | |
| 5096 | end | |
| 5097 | for i, v in pairs(m2:GetChildren()) do | |
| 5098 | if v:IsA("Part") then
| |
| 5099 | v.BrickColor = BrickColor.new("Dark indigo")
| |
| 5100 | v.Material = "Glass" | |
| 5101 | end | |
| 5102 | end | |
| 5103 | for i, v in pairs(m3:GetChildren()) do | |
| 5104 | if v:IsA("Part") then
| |
| 5105 | v.BrickColor = BrickColor.new("Royal purple")
| |
| 5106 | v.Material = "Neon" | |
| 5107 | end | |
| 5108 | end | |
| 5109 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 5110 | if v:IsA("Part") then
| |
| 5111 | v.Transparency = 1 | |
| 5112 | v.BrickColor = BrickColor.new("White")
| |
| 5113 | v.Material = "Neon" | |
| 5114 | end | |
| 5115 | end | |
| 5116 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 5117 | if v:IsA("Part") then
| |
| 5118 | v.Transparency = 1 | |
| 5119 | v.BrickColor = BrickColor.new("White")
| |
| 5120 | v.Material = "Neon" | |
| 5121 | end | |
| 5122 | end | |
| 5123 | elseif k == "e" and attack == false and ModeOfGlitch == 3 then | |
| 5124 | resetmode() | |
| 5125 | end | |
| 5126 | if k == "r" and attack == false and ModeOfGlitch ~= 4 then | |
| 5127 | ModeOfGlitch = 4 | |
| 5128 | storehumanoidWS = 16 | |
| 5129 | hum.WalkSpeed = 16 | |
| 5130 | rainbowmode = false | |
| 5131 | chaosmode = true | |
| 5132 | tl1.Enabled = true | |
| 5133 | tl2.Enabled = true | |
| 5134 | tl3.Enabled = true | |
| 5135 | RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
| |
| 5136 | newTheme("rbxassetid://1117727239",0,1,1)
| |
| 5137 | MAINRUINCOLOR = BrickColor.new("Black")
| |
| 5138 | for i, v in pairs(mw2:GetChildren()) do | |
| 5139 | if v:IsA("Part") then
| |
| 5140 | v.BrickColor = MAINRUINCOLOR | |
| 5141 | v.Material = "Neon" | |
| 5142 | end | |
| 5143 | end | |
| 5144 | for i, v in pairs(mw1:GetChildren()) do | |
| 5145 | if v:IsA("Part") then
| |
| 5146 | v.Transparency = 0.75 | |
| 5147 | v.BrickColor = BrickColor.random() | |
| 5148 | v.Material = "Neon" | |
| 5149 | end | |
| 5150 | end | |
| 5151 | for i, v in pairs(m:GetChildren()) do | |
| 5152 | if v:IsA("Part") then
| |
| 5153 | v.BrickColor = BrickColor.new("Black")
| |
| 5154 | v.Material = "Neon" | |
| 5155 | end | |
| 5156 | end | |
| 5157 | for i, v in pairs(m2:GetChildren()) do | |
| 5158 | if v:IsA("Part") then
| |
| 5159 | v.BrickColor = BrickColor.random() | |
| 5160 | v.Material = "Neon" | |
| 5161 | end | |
| 5162 | end | |
| 5163 | for i, v in pairs(m3:GetChildren()) do | |
| 5164 | if v:IsA("Part") then
| |
| 5165 | v.BrickColor = BrickColor.new("Black")
| |
| 5166 | v.Material = "Neon" | |
| 5167 | end | |
| 5168 | end | |
| 5169 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 5170 | if v:IsA("Part") then
| |
| 5171 | v.Transparency = 1 | |
| 5172 | v.BrickColor = BrickColor.new("White")
| |
| 5173 | v.Material = "Neon" | |
| 5174 | end | |
| 5175 | end | |
| 5176 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 5177 | if v:IsA("Part") then
| |
| 5178 | v.Transparency = 1 | |
| 5179 | v.BrickColor = BrickColor.new("White")
| |
| 5180 | v.Material = "Neon" | |
| 5181 | end | |
| 5182 | end | |
| 5183 | elseif k == "r" and attack == false and ModeOfGlitch == 4 then | |
| 5184 | resetmode() | |
| 5185 | end | |
| 5186 | if k == "t" and attack == false and ModeOfGlitch ~= 5 then | |
| 5187 | ModeOfGlitch = 5 | |
| 5188 | storehumanoidWS = 16 | |
| 5189 | hum.WalkSpeed = 16 | |
| 5190 | rainbowmode = false | |
| 5191 | chaosmode = false | |
| 5192 | tl1.Enabled = true | |
| 5193 | tl2.Enabled = true | |
| 5194 | tl3.Enabled = true | |
| 5195 | RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5))
| |
| 5196 | newTheme("rbxassetid://196678198",0,1.02,1)
| |
| 5197 | MAINRUINCOLOR = BrickColor.new("Bright yellow")
| |
| 5198 | for i, v in pairs(mw2:GetChildren()) do | |
| 5199 | if v:IsA("Part") then
| |
| 5200 | v.BrickColor = MAINRUINCOLOR | |
| 5201 | v.Material = "Neon" | |
| 5202 | end | |
| 5203 | end | |
| 5204 | for i, v in pairs(mw1:GetChildren()) do | |
| 5205 | if v:IsA("Part") then
| |
| 5206 | v.Transparency = 0 | |
| 5207 | v.BrickColor = MAINRUINCOLOR | |
| 5208 | v.Material = "Neon" | |
| 5209 | end | |
| 5210 | end | |
| 5211 | for i, v in pairs(m:GetChildren()) do | |
| 5212 | if v:IsA("Part") then
| |
| 5213 | v.BrickColor = BrickColor.new("Cool yellow")
| |
| 5214 | v.Material = "Ice" | |
| 5215 | end | |
| 5216 | end | |
| 5217 | for i, v in pairs(m2:GetChildren()) do | |
| 5218 | if v:IsA("Part") then
| |
| 5219 | v.BrickColor = BrickColor.new("Bright yellow")
| |
| 5220 | v.Material = "Ice" | |
| 5221 | end | |
| 5222 | end | |
| 5223 | for i, v in pairs(m3:GetChildren()) do | |
| 5224 | if v:IsA("Part") then
| |
| 5225 | v.BrickColor = BrickColor.new("Bright yellow")
| |
| 5226 | v.Material = "Neon" | |
| 5227 | end | |
| 5228 | end | |
| 5229 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 5230 | if v:IsA("Part") then
| |
| 5231 | v.Transparency = 1 | |
| 5232 | v.BrickColor = BrickColor.new("White")
| |
| 5233 | v.Material = "Neon" | |
| 5234 | end | |
| 5235 | end | |
| 5236 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 5237 | if v:IsA("Part") then
| |
| 5238 | v.Transparency = 1 | |
| 5239 | v.BrickColor = BrickColor.new("White")
| |
| 5240 | v.Material = "Neon" | |
| 5241 | end | |
| 5242 | end | |
| 5243 | elseif k == "t" and attack == false and ModeOfGlitch == 5 then | |
| 5244 | resetmode() | |
| 5245 | end | |
| 5246 | if k == "y" and attack == false and ModeOfGlitch ~= 6 then | |
| 5247 | ModeOfGlitch = 6 | |
| 5248 | storehumanoidWS = 75 | |
| 5249 | hum.WalkSpeed = 75 | |
| 5250 | rainbowmode = false | |
| 5251 | chaosmode = false | |
| 5252 | tl1.Enabled = true | |
| 5253 | tl2.Enabled = true | |
| 5254 | tl3.Enabled = true | |
| 5255 | RecolorTextAndRename("Equinox",Color3.new(0,0,0),Color3.new(1,1,1))
| |
| 5256 | newTheme("rbxassetid://239618330",0,1,1)
| |
| 5257 | MAINRUINCOLOR = BrickColor.new("White")
| |
| 5258 | for i, v in pairs(mw2:GetChildren()) do | |
| 5259 | if v:IsA("Part") then
| |
| 5260 | v.BrickColor = MAINRUINCOLOR | |
| 5261 | v.Material = "Neon" | |
| 5262 | end | |
| 5263 | end | |
| 5264 | for i, v in pairs(mw1:GetChildren()) do | |
| 5265 | if v:IsA("Part") then
| |
| 5266 | v.Transparency = 0 | |
| 5267 | v.BrickColor = MAINRUINCOLOR | |
| 5268 | v.Material = "Neon" | |
| 5269 | end | |
| 5270 | end | |
| 5271 | for i, v in pairs(m:GetChildren()) do | |
| 5272 | if v:IsA("Part") then
| |
| 5273 | v.BrickColor = BrickColor.new("White")
| |
| 5274 | v.Material = "Ice" | |
| 5275 | end | |
| 5276 | end | |
| 5277 | for i, v in pairs(m2:GetChildren()) do | |
| 5278 | if v:IsA("Part") then
| |
| 5279 | v.BrickColor = BrickColor.new("Really black")
| |
| 5280 | v.Material = "Ice" | |
| 5281 | end | |
| 5282 | end | |
| 5283 | for i, v in pairs(m3:GetChildren()) do | |
| 5284 | if v:IsA("Part") then
| |
| 5285 | v.BrickColor = BrickColor.new("White")
| |
| 5286 | v.Material = "Neon" | |
| 5287 | end | |
| 5288 | end | |
| 5289 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 5290 | if v:IsA("Part") then
| |
| 5291 | v.Transparency = 1 | |
| 5292 | v.BrickColor = BrickColor.new("White")
| |
| 5293 | v.Material = "Neon" | |
| 5294 | end | |
| 5295 | end | |
| 5296 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 5297 | if v:IsA("Part") then
| |
| 5298 | v.Transparency = 1 | |
| 5299 | v.BrickColor = BrickColor.new("White")
| |
| 5300 | v.Material = "Neon" | |
| 5301 | end | |
| 5302 | end | |
| 5303 | elseif k == "y" and attack == false and ModeOfGlitch == 6 then | |
| 5304 | resetmode() | |
| 5305 | end | |
| 5306 | if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then | |
| 5307 | ModeOfGlitch = 6127843 | |
| 5308 | storehumanoidWS = 50 | |
| 5309 | hum.WalkSpeed = 50 | |
| 5310 | rainbowmode = true | |
| 5311 | chaosmode = false | |
| 5312 | tl1.Enabled = true | |
| 5313 | tl2.Enabled = true | |
| 5314 | tl3.Enabled = true | |
| 5315 | RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1))
| |
| 5316 | newTheme("rbxassetid://1563725999",0,1,1)
| |
| 5317 | MAINRUINCOLOR = BrickColor.new("White")
| |
| 5318 | for i, v in pairs(mw2:GetChildren()) do | |
| 5319 | if v:IsA("Part") then
| |
| 5320 | v.BrickColor = MAINRUINCOLOR | |
| 5321 | v.Material = "Neon" | |
| 5322 | end | |
| 5323 | end | |
| 5324 | for i, v in pairs(mw1:GetChildren()) do | |
| 5325 | if v:IsA("Part") then
| |
| 5326 | v.Transparency = 0 | |
| 5327 | v.BrickColor = MAINRUINCOLOR | |
| 5328 | v.Material = "Neon" | |
| 5329 | end | |
| 5330 | end | |
| 5331 | for i, v in pairs(m:GetChildren()) do | |
| 5332 | if v:IsA("Part") then
| |
| 5333 | v.BrickColor = BrickColor.new("White")
| |
| 5334 | v.Material = "Neon" | |
| 5335 | end | |
| 5336 | end | |
| 5337 | for i, v in pairs(m2:GetChildren()) do | |
| 5338 | if v:IsA("Part") then
| |
| 5339 | v.BrickColor = BrickColor.new("White")
| |
| 5340 | v.Material = "Neon" | |
| 5341 | end | |
| 5342 | end | |
| 5343 | for i, v in pairs(m3:GetChildren()) do | |
| 5344 | if v:IsA("Part") then
| |
| 5345 | v.BrickColor = BrickColor.new("White")
| |
| 5346 | v.Material = "Neon" | |
| 5347 | end | |
| 5348 | end | |
| 5349 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 5350 | if v:IsA("Part") then
| |
| 5351 | v.Transparency = 1 | |
| 5352 | v.BrickColor = BrickColor.new("White")
| |
| 5353 | v.Material = "Neon" | |
| 5354 | end | |
| 5355 | end | |
| 5356 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 5357 | if v:IsA("Part") then
| |
| 5358 | v.Transparency = 1 | |
| 5359 | v.BrickColor = BrickColor.new("White")
| |
| 5360 | v.Material = "Neon" | |
| 5361 | end | |
| 5362 | end | |
| 5363 | elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then | |
| 5364 | resetmode() | |
| 5365 | end | |
| 5366 | if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then | |
| 5367 | ModeOfGlitch = 1000000 | |
| 5368 | storehumanoidWS = 100 | |
| 5369 | hum.WalkSpeed = 100 | |
| 5370 | rainbowmode = false | |
| 5371 | chaosmode = false | |
| 5372 | tl1.Enabled = true | |
| 5373 | tl2.Enabled = true | |
| 5374 | tl3.Enabled = true | |
| 5375 | RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1))
| |
| 5376 | newTheme("rbxassetid://1568123157",0,1,1)
| |
| 5377 | MAINRUINCOLOR = BrickColor.new("Bright violet")
| |
| 5378 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5379 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5380 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5381 | for i, v in pairs(mw2:GetChildren()) do | |
| 5382 | if v:IsA("Part") then
| |
| 5383 | v.BrickColor = MAINRUINCOLOR | |
| 5384 | v.Material = "Neon" | |
| 5385 | end | |
| 5386 | end | |
| 5387 | for i, v in pairs(mw1:GetChildren()) do | |
| 5388 | if v:IsA("Part") then
| |
| 5389 | v.Transparency = 0 | |
| 5390 | v.BrickColor = MAINRUINCOLOR | |
| 5391 | v.Material = "Neon" | |
| 5392 | end | |
| 5393 | end | |
| 5394 | for i, v in pairs(m:GetChildren()) do | |
| 5395 | if v:IsA("Part") then
| |
| 5396 | v.Color = Color3.new(0.5,0,1) | |
| 5397 | v.Material = "Neon" | |
| 5398 | end | |
| 5399 | end | |
| 5400 | for i, v in pairs(m2:GetChildren()) do | |
| 5401 | if v:IsA("Part") then
| |
| 5402 | v.Color = Color3.new(0.25,0,1) | |
| 5403 | v.Material = "Neon" | |
| 5404 | end | |
| 5405 | end | |
| 5406 | for i, v in pairs(m3:GetChildren()) do | |
| 5407 | if v:IsA("Part") then
| |
| 5408 | v.Color = Color3.new(0.45,0,1) | |
| 5409 | v.Material = "Neon" | |
| 5410 | end | |
| 5411 | end | |
| 5412 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 5413 | if v:IsA("Part") then
| |
| 5414 | v.Transparency = 0.75 | |
| 5415 | v.Color = Color3.new(0.25,0,1) | |
| 5416 | v.Material = "Neon" | |
| 5417 | end | |
| 5418 | end | |
| 5419 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 5420 | if v:IsA("Part") then
| |
| 5421 | v.Transparency = 0.75 | |
| 5422 | v.Color = Color3.new(0.5,0,1) | |
| 5423 | v.Material = "Neon" | |
| 5424 | end | |
| 5425 | end | |
| 5426 | elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then | |
| 5427 | resetmode() | |
| 5428 | end | |
| 5429 | if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then | |
| 5430 | newThemeCust("rbxassetid://1614838208",0,1,1)
| |
| 5431 | attack = true | |
| 5432 | hum.WalkSpeed = 0 | |
| 5433 | MAINRUINCOLOR = BrickColor.new("Royal purple")
| |
| 5434 | for i = 0, 24, 0.1 do | |
| 5435 | swait() | |
| 5436 | sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100) | |
| 5437 | RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1) | |
| 5438 | LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1) | |
| 5439 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 5440 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
| 5441 | RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1) | |
| 5442 | LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1) | |
| 5443 | end | |
| 5444 | CameraEnshaking(1,1) | |
| 5445 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
| 5446 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
| |
| 5447 | wait(0.55) | |
| 5448 | CameraEnshaking(1,2) | |
| 5449 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
| 5450 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 5451 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
| 5452 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
| |
| 5453 | wait(0.55) | |
| 5454 | CameraEnshaking(1,3) | |
| 5455 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
| 5456 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5457 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
| 5458 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 5459 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
| 5460 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
| |
| 5461 | wait(0.55) | |
| 5462 | CameraEnshaking(10,5) | |
| 5463 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
| |
| 5464 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
| |
| 5465 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
| |
| 5466 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
| |
| 5467 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
| |
| 5468 | sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
| 5469 | sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR) | |
| 5470 | sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR) | |
| 5471 | sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR) | |
| 5472 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5473 | sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR) | |
| 5474 | sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR) | |
| 5475 | sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR) | |
| 5476 | sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR) | |
| 5477 | sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR) | |
| 5478 | for i = 0, 49 do | |
| 5479 | sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0) | |
| 5480 | sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0) | |
| 5481 | sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0) | |
| 5482 | sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0) | |
| 5483 | end | |
| 5484 | ModeOfGlitch = 12345678987654321 | |
| 5485 | storehumanoidWS = 200 | |
| 5486 | hum.WalkSpeed = 200 | |
| 5487 | rainbowmode = false | |
| 5488 | chaosmode = false | |
| 5489 | tl1.Enabled = true | |
| 5490 | tl2.Enabled = true | |
| 5491 | tl3.Enabled = true | |
| 5492 | RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1))
| |
| 5493 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5494 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5495 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5496 | for i, v in pairs(mw2:GetChildren()) do | |
| 5497 | if v:IsA("Part") then
| |
| 5498 | v.BrickColor = MAINRUINCOLOR | |
| 5499 | v.Material = "Neon" | |
| 5500 | end | |
| 5501 | end | |
| 5502 | for i, v in pairs(mw1:GetChildren()) do | |
| 5503 | if v:IsA("Part") then
| |
| 5504 | v.Transparency = 0 | |
| 5505 | v.BrickColor = MAINRUINCOLOR | |
| 5506 | v.Material = "Neon" | |
| 5507 | end | |
| 5508 | end | |
| 5509 | for i, v in pairs(m:GetChildren()) do | |
| 5510 | if v:IsA("Part") then
| |
| 5511 | v.Color = Color3.new(0.5,0,1) | |
| 5512 | v.Material = "Neon" | |
| 5513 | end | |
| 5514 | end | |
| 5515 | for i, v in pairs(m2:GetChildren()) do | |
| 5516 | if v:IsA("Part") then
| |
| 5517 | v.Color = Color3.new(0.5,0,1) | |
| 5518 | v.Material = "Neon" | |
| 5519 | end | |
| 5520 | end | |
| 5521 | for i, v in pairs(m3:GetChildren()) do | |
| 5522 | if v:IsA("Part") then
| |
| 5523 | v.Color = Color3.new(0.5,0,1) | |
| 5524 | v.Material = "Neon" | |
| 5525 | end | |
| 5526 | end | |
| 5527 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 5528 | if v:IsA("Part") then
| |
| 5529 | v.Transparency = 0 | |
| 5530 | v.Color = Color3.new(0.5,0,1) | |
| 5531 | v.Material = "Neon" | |
| 5532 | end | |
| 5533 | end | |
| 5534 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 5535 | if v:IsA("Part") then
| |
| 5536 | v.Transparency = 0 | |
| 5537 | v.Color = Color3.new(0.5,0,1) | |
| 5538 | v.Material = "Neon" | |
| 5539 | end | |
| 5540 | attack = false | |
| 5541 | end | |
| 5542 | elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then | |
| 5543 | resetmode() | |
| 5544 | end | |
| 5545 | if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then | |
| 5546 | newThemeCust("rbxassetid://1524659003",0,1,1)
| |
| 5547 | attack = true | |
| 5548 | hum.WalkSpeed = 0 | |
| 5549 | MAINRUINCOLOR = BrickColor.new("Crimson")
| |
| 5550 | for i = 0, 24, 0.1 do | |
| 5551 | swait() | |
| 5552 | sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100) | |
| 5553 | RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1) | |
| 5554 | LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1) | |
| 5555 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 5556 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
| 5557 | RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1) | |
| 5558 | LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1) | |
| 5559 | end | |
| 5560 | CameraEnshaking(1,1) | |
| 5561 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
| 5562 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1)
| |
| 5563 | wait(0.55) | |
| 5564 | CameraEnshaking(1,2) | |
| 5565 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
| 5566 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 5567 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
| 5568 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1)
| |
| 5569 | wait(0.55) | |
| 5570 | CameraEnshaking(1,3) | |
| 5571 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
| 5572 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5573 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
| 5574 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 5575 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
| 5576 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1)
| |
| 5577 | wait(0.55) | |
| 5578 | CameraEnshaking(10,5) | |
| 5579 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1)
| |
| 5580 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1)
| |
| 5581 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
| |
| 5582 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
| |
| 5583 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1)
| |
| 5584 | sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
| 5585 | sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR) | |
| 5586 | sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR) | |
| 5587 | sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR) | |
| 5588 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5589 | sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR) | |
| 5590 | sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR) | |
| 5591 | sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR) | |
| 5592 | sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR) | |
| 5593 | sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR) | |
| 5594 | for i = 0, 49 do | |
| 5595 | sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0) | |
| 5596 | sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0) | |
| 5597 | sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0) | |
| 5598 | sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0) | |
| 5599 | end | |
| 5600 | ModeOfGlitch = 666 | |
| 5601 | storehumanoidWS = 16 | |
| 5602 | hum.WalkSpeed = 16 | |
| 5603 | rainbowmode = false | |
| 5604 | chaosmode = false | |
| 5605 | tl1.Enabled = true | |
| 5606 | tl2.Enabled = true | |
| 5607 | tl3.Enabled = true | |
| 5608 | RecolorTextAndRename("DeStRuCtIoN",Color3.new(1,0,0),Color3.new(0.75,0,0))
| |
| 5609 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5610 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5611 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5612 | for i, v in pairs(mw2:GetChildren()) do | |
| 5613 | if v:IsA("Part") then
| |
| 5614 | v.BrickColor = MAINRUINCOLOR | |
| 5615 | v.Material = "Neon" | |
| 5616 | end | |
| 5617 | end | |
| 5618 | for i, v in pairs(mw1:GetChildren()) do | |
| 5619 | if v:IsA("Part") then
| |
| 5620 | v.Transparency = 0 | |
| 5621 | v.BrickColor = MAINRUINCOLOR | |
| 5622 | v.Material = "Neon" | |
| 5623 | end | |
| 5624 | end | |
| 5625 | for i, v in pairs(m:GetChildren()) do | |
| 5626 | if v:IsA("Part") then
| |
| 5627 | v.Color = Color3.new(1,0,0) | |
| 5628 | v.Material = "Neon" | |
| 5629 | end | |
| 5630 | end | |
| 5631 | for i, v in pairs(m2:GetChildren()) do | |
| 5632 | if v:IsA("Part") then
| |
| 5633 | v.Color = Color3.new(1,0,0) | |
| 5634 | v.Material = "Neon" | |
| 5635 | end | |
| 5636 | end | |
| 5637 | for i, v in pairs(m3:GetChildren()) do | |
| 5638 | if v:IsA("Part") then
| |
| 5639 | v.Color = Color3.new(1,0,0) | |
| 5640 | v.Material = "Neon" | |
| 5641 | end | |
| 5642 | end | |
| 5643 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 5644 | if v:IsA("Part") then
| |
| 5645 | v.Transparency = 0 | |
| 5646 | v.Color = Color3.new(1,0,0) | |
| 5647 | v.Material = "Neon" | |
| 5648 | end | |
| 5649 | end | |
| 5650 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 5651 | if v:IsA("Part") then
| |
| 5652 | v.Transparency = 0 | |
| 5653 | v.Color = Color3.new(1,0,0) | |
| 5654 | v.Material = "Neon" | |
| 5655 | end | |
| 5656 | attack = false | |
| 5657 | end | |
| 5658 | elseif k == "b" and attack == false and ModeOfGlitch == 666 then | |
| 5659 | resetmode() | |
| 5660 | end | |
| 5661 | if k == "l" and toggleTag == false then | |
| 5662 | toggleTag = true | |
| 5663 | text.TextTransparency = 0 | |
| 5664 | text.TextStrokeTransparency = 0 | |
| 5665 | elseif k == "l" and toggleTag == true then | |
| 5666 | toggleTag = false | |
| 5667 | text.TextTransparency = 1 | |
| 5668 | text.TextStrokeTransparency = 1 | |
| 5669 | end | |
| 5670 | if k == "z" and attack == false and ModeOfGlitch == 1 then | |
| 5671 | ExtinctiveHeartbreak() | |
| 5672 | elseif k == "z" and attack == false and ModeOfGlitch == 2 then | |
| 5673 | PureBomb() | |
| 5674 | elseif k == "z" and attack == false and ModeOfGlitch == 3 then | |
| 5675 | scattercorrupt() | |
| 5676 | elseif k == "z" and attack == false and ModeOfGlitch == 4 then | |
| 5677 | ChaosGroundStrike() | |
| 5678 | elseif k == "z" and attack == false and ModeOfGlitch == 5 then | |
| 5679 | Judgement() | |
| 5680 | elseif k == "f" and attack == false and ModeOfGlitch == 5 then | |
| 5681 | HolyBarrier() | |
| 5682 | elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then | |
| 5683 | Starfall() | |
| 5684 | elseif k == "z" and attack == false and ModeOfGlitch == 6 then | |
| 5685 | yinyangi() | |
| 5686 | elseif k == "x" and attack == false and ModeOfGlitch == 6 then | |
| 5687 | test() | |
| 5688 | elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then | |
| 5689 | Wip() | |
| 5690 | elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then | |
| 5691 | StarfallEX() | |
| 5692 | elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then | |
| 5693 | FinalCalam() | |
| 5694 | end | |
| 5695 | if k == "n" and attack == false then | |
| 5696 | Blink() | |
| 5697 | elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then | |
| 5698 | StarDivision() | |
| 5699 | end | |
| 5700 | if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then | |
| 5701 | UniversalCollapse() | |
| 5702 | end | |
| 5703 | if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then | |
| 5704 | hum.WalkSpeed = 16 + 184 | |
| 5705 | elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then | |
| 5706 | hum.WalkSpeed = 200 - 184 | |
| 5707 | end | |
| 5708 | if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then | |
| 5709 | UniversalSpark() | |
| 5710 | end | |
| 5711 | if k == "z" and attack == false and ModeOfGlitch == 666 then | |
| 5712 | StarDivision() | |
| 5713 | end | |
| 5714 | if k == "x" and attack == false and ModeOfGlitch == 666 then | |
| 5715 | Starfall() | |
| 5716 | end | |
| 5717 | if k == "m" and attack == false and ModeOfGlitch == 4 then | |
| 5718 | ChaosBegone() | |
| 5719 | elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then | |
| 5720 | THEHELLITSTHATBIG() | |
| 5721 | elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then | |
| 5722 | removelol() | |
| 5723 | end | |
| 5724 | end) | |
| 5725 | mouse.KeyUp:connect(function(k) | |
| 5726 | if k == "f" and ModeOfGlitch == 5 then | |
| 5727 | stash:Remove() | |
| 5728 | attack = false | |
| 5729 | Torso.Anchored = false | |
| 5730 | shielding = false | |
| 5731 | sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR) | |
| 5732 | end | |
| 5733 | end) | |
| 5734 | coroutine.resume(coroutine.create(function() | |
| 5735 | while true do | |
| 5736 | swait(2) | |
| 5737 | if rainbowmode == true or ModeOfGlitch == 6 then | |
| 5738 | if eff == true then | |
| 5739 | sphereMK(5,0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),-6,math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),1.5,1.5,10,-0.015,MAINRUINCOLOR,0) | |
| 5740 | end | |
| 5741 | end | |
| 5742 | end | |
| 5743 | end)) | |
| 5744 | coroutine.resume(coroutine.create(function() | |
| 5745 | while true do | |
| 5746 | swait(2) | |
| 5747 | if shielding == true then | |
| 5748 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("White"),0)
| |
| 5749 | end | |
| 5750 | end | |
| 5751 | end)) | |
| 5752 | ||
| 5753 | ||
| 5754 | coroutine.resume(coroutine.create(function() | |
| 5755 | while true do | |
| 5756 | if ModeOfGlitch == 1000000 then | |
| 5757 | swait(0.5) | |
| 5758 | end | |
| 5759 | swait() | |
| 5760 | if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then | |
| 5761 | sphereMK(5,0.5,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-15,15)),math.rad(math.random(-15,15)),0),1,1,15,-0.01,MAINRUINCOLOR,0) | |
| 5762 | end | |
| 5763 | if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then | |
| 5764 | sphereMK(5,math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-75,75),-25,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),0),1,1,50,-0.01,MAINRUINCOLOR,0) | |
| 5765 | end | |
| 5766 | end | |
| 5767 | end)) | |
| 5768 | ||
| 5769 | ||
| 5770 | coroutine.resume(coroutine.create(function() | |
| 5771 | while true do | |
| 5772 | swait(2) | |
| 5773 | if chaosmode == true then | |
| 5774 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
| 5775 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
| 5776 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
| 5777 | RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color)
| |
| 5778 | for i, v in pairs(mw1:GetChildren()) do | |
| 5779 | if v:IsA("Part") then
| |
| 5780 | v.Transparency = 0.75 | |
| 5781 | v.BrickColor = BrickColor.random() | |
| 5782 | v.Material = "Neon" | |
| 5783 | end | |
| 5784 | end | |
| 5785 | for i, v in pairs(m2:GetChildren()) do | |
| 5786 | if v:IsA("Part") then
| |
| 5787 | v.BrickColor = BrickColor.random() | |
| 5788 | v.Material = "Neon" | |
| 5789 | end | |
| 5790 | end | |
| 5791 | for i, v in pairs(secondchar:GetChildren()) do | |
| 5792 | if v:IsA("Part") then
| |
| 5793 | v.BrickColor = BrickColor.random() | |
| 5794 | v.Material = "Neon" | |
| 5795 | end | |
| 5796 | end | |
| 5797 | end | |
| 5798 | end | |
| 5799 | end)) | |
| 5800 | Humanoid.Name = "STARGLITCHER" | |
| 5801 | Humanoid.MaxHealth = math.huge | |
| 5802 | Humanoid.Health = math.huge | |
| 5803 | Instance.new("ForceField",char).Visible = false
| |
| 5804 | Humanoid.Animator.Parent = nil | |
| 5805 | idleanim=.4 | |
| 5806 | while true do | |
| 5807 | if rainbowmode == false then | |
| 5808 | tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5809 | tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5810 | tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5811 | for i, v in pairs(secondchar:GetChildren()) do | |
| 5812 | if v:IsA("Part") then
| |
| 5813 | v.BrickColor = MAINRUINCOLOR | |
| 5814 | v.Material = "Neon" | |
| 5815 | end | |
| 5816 | end | |
| 5817 | if chaosmode == false then | |
| 5818 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5819 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5820 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5821 | for i, v in pairs(secondchar:GetChildren()) do | |
| 5822 | if v:IsA("Part") then
| |
| 5823 | v.BrickColor = MAINRUINCOLOR | |
| 5824 | v.Material = "Neon" | |
| 5825 | end | |
| 5826 | end | |
| 5827 | end | |
| 5828 | end | |
| 5829 | if rainbowmode == true then | |
| 5830 | RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500))
| |
| 5831 | MAINRUINCOLOR = BrickColor.new("White")
| |
| 5832 | tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
| 5833 | tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
| 5834 | tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
| 5835 | tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
| 5836 | tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
| 5837 | tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
| 5838 | for i, v in pairs(m:GetChildren()) do | |
| 5839 | if v:IsA("Part") then
| |
| 5840 | v.Color = Color3.new(r/255,g/255,b/255) | |
| 5841 | end | |
| 5842 | end | |
| 5843 | for i, v in pairs(m2:GetChildren()) do | |
| 5844 | if v:IsA("Part") then
| |
| 5845 | v.Color = Color3.new(r/255,g/255,b/255) | |
| 5846 | end | |
| 5847 | end | |
| 5848 | for i, v in pairs(secondchar:GetChildren()) do | |
| 5849 | if v:IsA("Part") then
| |
| 5850 | v.Color = Color3.new(r/255,g/255,b/255) | |
| 5851 | v.Material = "Neon" | |
| 5852 | end | |
| 5853 | end | |
| 5854 | for i, v in pairs(m3:GetChildren()) do | |
| 5855 | if v:IsA("Part") then
| |
| 5856 | v.Color = Color3.new(r/255,g/255,b/255) | |
| 5857 | end | |
| 5858 | end | |
| 5859 | for i, v in pairs(mw1:GetChildren()) do | |
| 5860 | if v:IsA("Part") then
| |
| 5861 | v.Color = Color3.new(r/255,g/255,b/255) | |
| 5862 | v.Material = "Neon" | |
| 5863 | end | |
| 5864 | end | |
| 5865 | for i, v in pairs(mw2:GetChildren()) do | |
| 5866 | if v:IsA("Part") then
| |
| 5867 | v.Color = Color3.new(r/255,g/255,b/255) | |
| 5868 | v.Material = "Neon" | |
| 5869 | end | |
| 5870 | end | |
| 5871 | end | |
| 5872 | CameraManager() | |
| 5873 | swait() | |
| 5874 | lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3) | |
| 5875 | lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3) | |
| 5876 | lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3) | |
| 5877 | lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3) | |
| 5878 | lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3) | |
| 5879 | lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3) | |
| 5880 | ||
| 5881 | if attack == false and ActiveGia == false then | |
| 5882 | torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
| 5883 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1) | |
| 5884 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1) | |
| 5885 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
| 5886 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
| 5887 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1) | |
| 5888 | elseif attack == false and ActiveGia == true then | |
| 5889 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then | |
| 5890 | torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025) | |
| 5891 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025) | |
| 5892 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025) | |
| 5893 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
| 5894 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
| 5895 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025) | |
| 5896 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then | |
| 5897 | torsweld.C1=clerp(torsweld.C1,cf(0,-25 + 0.5 * math.cos(sine / 32) ,-8)*angles(math.rad(20),math.rad(0),math.rad(0)),.025) | |
| 5898 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025) | |
| 5899 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025) | |
| 5900 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,1.5*8,0.6*8)*angles(math.rad(20),math.rad(0),math.rad(0)),0.025) | |
| 5901 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0.11*8)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025) | |
| 5902 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025) | |
| 5903 | end | |
| 5904 | end | |
| 5905 | ||
| 5906 | rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3) | |
| 5907 | rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3) | |
| 5908 | rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3) | |
| 5909 | rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3) | |
| 5910 | rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3) | |
| 5911 | rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3) | |
| 5912 | sine = sine + change | |
| 5913 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 5914 | local velderp=RootPart.Velocity.y | |
| 5915 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
| 5916 | if equipped==true or equipped==false then | |
| 5917 | if attack==false then | |
| 5918 | idle=idle+1 | |
| 5919 | else | |
| 5920 | idle=0 | |
| 5921 | end | |
| 5922 | if idle>=500 then | |
| 5923 | if attack==false then | |
| 5924 | --Sheath() | |
| 5925 | end | |
| 5926 | end | |
| 5927 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
| 5928 | Anim="Jump" | |
| 5929 | if attack==false then | |
| 5930 | RH.C0=clerp(RH.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) | |
| 5931 | 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) | |
| 5932 | 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) | |
| 5933 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
| 5934 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1) | |
| 5935 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1) | |
| 5936 | end | |
| 5937 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
| 5938 | Anim="Fall" | |
| 5939 | if attack==false then | |
| 5940 | RH.C0=clerp(RH.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) | |
| 5941 | 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) | |
| 5942 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 5943 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 5944 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1) | |
| 5945 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1) | |
| 5946 | end | |
| 5947 | elseif torvel<1 and hitfloor~=nil then | |
| 5948 | Anim="Idle" | |
| 5949 | if attack==false then | |
| 5950 | if ModeOfGlitch == 1 then | |
| 5951 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1) | |
| 5952 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1) | |
| 5953 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1) | |
| 5954 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1) | |
| 5955 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1) | |
| 5956 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1) | |
| 5957 | ||
| 5958 | elseif ModeOfGlitch == 666 then | |
| 5959 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1) | |
| 5960 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1) | |
| 5961 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1) | |
| 5962 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
| 5963 | RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1) | |
| 5964 | LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1) | |
| 5965 | ||
| 5966 | elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then | |
| 5967 | 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(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
| 5968 | 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) | |
| 5969 | 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(0)),.1) | |
| 5970 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
| 5971 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1) | |
| 5972 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
| 5973 | ||
| 5974 | elseif ModeOfGlitch == 3 then | |
| 5975 | 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) | |
| 5976 | 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(20),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
| 5977 | 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) | |
| 5978 | 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) | |
| 5979 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1) | |
| 5980 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1) | |
| 5981 | ||
| 5982 | elseif ModeOfGlitch == 4 then | |
| 5983 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1) | |
| 5984 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1) | |
| 5985 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
| 5986 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1) | |
| 5987 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1) | |
| 5988 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1) | |
| 5989 | ||
| 5990 | elseif ModeOfGlitch == 5 then | |
| 5991 | 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) | |
| 5992 | 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) | |
| 5993 | 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(0)),.1) | |
| 5994 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
| 5995 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.1) | |
| 5996 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1) | |
| 5997 | ||
| 5998 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then | |
| 5999 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
| 6000 | 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)),.1) | |
| 6001 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 6002 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
| 6003 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1) | |
| 6004 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1) | |
| 6005 | ||
| 6006 | elseif ModeOfGlitch == 12345678987654321 then | |
| 6007 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
| 6008 | 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)),.1) | |
| 6009 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-40)),.1) | |
| 6010 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1) | |
| 6011 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1) | |
| 6012 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
| 6013 | end | |
| 6014 | end | |
| 6015 | elseif torvel>2 and torvel<50 and hitfloor~=nil then | |
| 6016 | Anim="Walk" | |
| 6017 | if attack==false then | |
| 6018 | if ModeOfGlitch == 1 then | |
| 6019 | RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1) | |
| 6020 | LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1) | |
| 6021 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1) | |
| 6022 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 0.325)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 + 5 * math.cos(sine / 8))),.1) | |
| 6023 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1) | |
| 6024 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1) | |
| 6025 | ||
| 6026 | elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then | |
| 6027 | RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(5 + 25 * math.cos(sine / 12))),.1) | |
| 6028 | LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(-5 + 25 * math.cos(sine / 12))),.1) | |
| 6029 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1) | |
| 6030 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1) | |
| 6031 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 - 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1) | |
| 6032 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1) | |
| 6033 | ||
| 6034 | elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then | |
| 6035 | RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1) | |
| 6036 | LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1) | |
| 6037 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1) | |
| 6038 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1) | |
| 6039 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1) | |
| 6040 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1) | |
| 6041 | end | |
| 6042 | end | |
| 6043 | elseif torvel>=22 and hitfloor~=nil then | |
| 6044 | Anim="Run" | |
| 6045 | if attack==false then | |
| 6046 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then | |
| 6047 | RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
| 6048 | LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
| 6049 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1) | |
| 6050 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1) | |
| 6051 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 155 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1) | |
| 6052 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 155 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1) | |
| 6053 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then | |
| 6054 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2) | |
| 6055 | 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(20)),.2) | |
| 6056 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2) | |
| 6057 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 6058 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2) | |
| 6059 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 2.5 * math.cos(sine / 28))),.2) | |
| 6060 | end | |
| 6061 | end | |
| 6062 | end | |
| 6063 | end | |
| 6064 | end |