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