SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
| |
| 2 | do | |
| 3 | script.Parent = owner.Character | |
| 4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
| |
| 5 | local function NewFakeEvent() | |
| 6 | local Bind = Instance.new("BindableEvent")
| |
| 7 | local Fake;Fake = {Connections = {},
| |
| 8 | fakeEvent=true; | |
| 9 | Connect=function(self,Func) | |
| 10 | Bind.Event:connect(Func) | |
| 11 | self.Connections[Bind] = true | |
| 12 | return setmetatable({Connected = true},{
| |
| 13 | __index = function (self,Index) | |
| 14 | if Index:lower() == "disconnect" then | |
| 15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
| 16 | end | |
| 17 | return Fake[Index] | |
| 18 | end; | |
| 19 | __tostring = function() return "Connection" end; | |
| 20 | }) | |
| 21 | end} | |
| 22 | Fake.connect = Fake.Connect;return Fake; | |
| 23 | end | |
| 24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 29 | local function TriggerEvent(self,Event,...) | |
| 30 | local Trigger = Mouse[Event] | |
| 31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
| 32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
| 33 | end | |
| 34 | end | |
| 35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
| 36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 37 | if FiredBy.Name ~= owner.Name then return end | |
| 38 | if Input.MouseEvent then | |
| 39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
| 40 | else | |
| 41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
| 43 | for _,Action in pairs(ContextActionService.Actions) do | |
| 44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
| 45 | end | |
| 46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 48 | end | |
| 49 | end) | |
| 50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
| 51 | Event.Parent = NLS([[ | |
| 52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
| |
| 53 | local Input = function(Input,gameProcessedEvent) | |
| 54 | if gameProcessedEvent then return end | |
| 55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 56 | end | |
| 57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
| 58 | local Hit,Target | |
| 59 | while wait(1/30) do | |
| 60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 62 | end | |
| 63 | end | |
| 64 | ]],owner.Character) | |
| 65 | end | |
| 66 | RealGame = game;game = setmetatable({},{
| |
| 67 | __index = function (self,Index) | |
| 68 | local Sandbox = function (Thing) | |
| 69 | if Thing:IsA("Player") then
| |
| 70 | local RealPlayer = Thing | |
| 71 | return setmetatable({},{
| |
| 72 | __index = function (self,Index) | |
| 73 | local Type = type(RealPlayer[Index]) | |
| 74 | if Type == "function" then | |
| 75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 76 | return function (self)return InternalData["Mouse"] end | |
| 77 | end | |
| 78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
| 79 | end | |
| 80 | return RealPlayer[Index] | |
| 81 | end; | |
| 82 | __tostring = function(self) return RealPlayer.Name end | |
| 83 | }) | |
| 84 | end | |
| 85 | end | |
| 86 | if RealGame[Index] then | |
| 87 | local Type = type(RealGame[Index]) | |
| 88 | if Type == "function" then | |
| 89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 90 | return function (self,Service) | |
| 91 | local FakeServices = {
| |
| 92 | ["players"] = function() | |
| 93 | return setmetatable({},{
| |
| 94 | __index = function (self2,Index2) | |
| 95 | local RealService = RealGame:GetService(Service) | |
| 96 | local Type2 = type(Index2) | |
| 97 | if Type2 == "function" then | |
| 98 | return function (self,...) return RealService[Index2](RealService,...)end | |
| 99 | else | |
| 100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
| 101 | return RealService[Index2] | |
| 102 | end | |
| 103 | end; | |
| 104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
| 105 | }) | |
| 106 | end; | |
| 107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
| 108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
| 109 | ["runservice"] = function() | |
| 110 | return setmetatable({},{
| |
| 111 | __index = function(self2,Index2) | |
| 112 | local RealService = RealGame:GetService(Service) | |
| 113 | local Type2 = type(Index2) | |
| 114 | if Type2 == "function" then | |
| 115 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 116 | else | |
| 117 | local RunServices = {
| |
| 118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
| |
| 119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
| 120 | } | |
| 121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
| 122 | return RealService[Index2] | |
| 123 | end | |
| 124 | end | |
| 125 | }) | |
| 126 | end | |
| 127 | } | |
| 128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
| 129 | return RealGame:GetService(Service) | |
| 130 | end | |
| 131 | end | |
| 132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
| 133 | else | |
| 134 | if game:GetService(Index) then return game:GetService(Index) end | |
| 135 | return RealGame[Index] | |
| 136 | end | |
| 137 | end | |
| 138 | return nil | |
| 139 | end | |
| 140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
| |
| 141 | ||
| 142 | wait(0.5) | |
| 143 | ||
| 144 | ||
| 145 | warn([[SG AWAKEN Loaded. | |
| 146 | The super switcher. | |
| 147 | Velnorum is one of the first wielders. | |
| 148 | ||
| 149 | Created, Reworked by MrGoo345 | |
| 150 | ]]) | |
| 151 | ||
| 152 | ||
| 153 | ------------- ORIGINAL WIELDER OC: Velnorum | |
| 154 | print([[Icons: | |
| 155 | ! = New | |
| 156 | ? = Spoilers | |
| 157 | * = Exclusivity | |
| 158 | C = Changes | |
| 159 | ||
| 160 | ]]) | |
| 161 | warn([[V 3 Update Log: | |
| 162 | !C? - Mostly about 7-8 main modes added. | |
| 163 | ! - Non-canon [N] modes are added from few modes: | |
| 164 | > Mayhem: NANODEATH | |
| 165 | > Purity: SHD | |
| 166 | > Divinity: FALLENX | |
| 167 | !C - Moves are added back, with severe change and difference.]]) | |
| 168 | --- its obs smooth af do not touch | |
| 169 | ---- Sources and functions might be taken from others | |
| 170 | plr = game:GetService("Players")
| |
| 171 | - | char = plr.RhiBel00351 |
| 171 | + | char = plr.Character |
| 172 | - | hum = char.RhiBel00351 |
| 172 | + | hum = char.Humanoid |
| 173 | local cam = game.Workspace.CurrentCamera | |
| 174 | Camera = cam | |
| 175 | local CamInterrupt = false | |
| 176 | local TwoD = false | |
| 177 | local TargetInfo = {nil, nil}
| |
| 178 | cam.CameraType = "Custom" | |
| 179 | t = char.Torso | |
| 180 | h = char.Head | |
| 181 | ra = char["Right Arm"] | |
| 182 | la = char["Left Arm"] | |
| 183 | rl = char["Right Leg"] | |
| 184 | ll = char["Left Leg"] | |
| 185 | tors = char.Torso | |
| 186 | lleg = char["Left Leg"] | |
| 187 | root = char.HumanoidRootPart | |
| 188 | hed = char.Head | |
| 189 | rleg = char["Right Leg"] | |
| 190 | rarm = char["Right Arm"] | |
| 191 | larm = char["Left Arm"] | |
| 192 | radian = math.rad | |
| 193 | random = math.random | |
| 194 | Vec3 = Vector3.new | |
| 195 | Inst = Instance.new | |
| 196 | cFrame = CFrame.new | |
| 197 | Euler = CFrame.fromEulerAnglesXYZ | |
| 198 | vt = Vector3.new | |
| 199 | bc = BrickColor.new | |
| 200 | br = BrickColor.random | |
| 201 | it = Instance.new | |
| 202 | cf = CFrame.new | |
| 203 | ||
| 204 | local Booleans = {
| |
| 205 | CamFollow = true, | |
| 206 | GyroUse = true | |
| 207 | } | |
| 208 | ||
| 209 | function lerp(object, newCFrame, alpha) | |
| 210 | return object:lerp(newCFrame, alpha) | |
| 211 | end | |
| 212 | ||
| 213 | local Directer = Inst("BodyGyro", root)
| |
| 214 | Directer.MaxTorque = Vec3(0, 0, 0) | |
| 215 | Directer.P = 600000 | |
| 216 | local CPart = Inst("Part")
| |
| 217 | CPart.Anchored = true | |
| 218 | CPart.CanCollide = false | |
| 219 | CPart.Locked = true | |
| 220 | CPart.Transparency = 1 | |
| 221 | ||
| 222 | local rainbowmode = false | |
| 223 | local chaosmode = false | |
| 224 | ||
| 225 | local kan = Instance.new("Sound",char)
| |
| 226 | kan.Volume = 1.25 | |
| 227 | kan.TimePosition = 0 | |
| 228 | kan.PlaybackSpeed = 1 | |
| 229 | kan.Pitch = 1 | |
| 230 | kan.SoundId = "rbxassetid://2291728006" | |
| 231 | kan.Name = "wrecked" | |
| 232 | kan.Looped = true | |
| 233 | kan:Play() | |
| 234 | ||
| 235 | local currentThemePlaying = kan.SoundId | |
| 236 | local currentPitch = kan.Pitch | |
| 237 | local currentVol = kan.Volume | |
| 238 | function newTheme(ID,timepos,pitch,vol) | |
| 239 | local kanz = kan | |
| 240 | --kanz:Stop() | |
| 241 | kanz.Volume = vol | |
| 242 | --kanz.TimePosition = timepos | |
| 243 | kanz.PlaybackSpeed = pitch | |
| 244 | kanz.Pitch = pitch | |
| 245 | kanz.SoundId = ID | |
| 246 | kanz.Name = "wrecked" | |
| 247 | kanz.Looped = true | |
| 248 | currentThemePlaying = kanz.SoundId | |
| 249 | currentVol = kanz.Volume | |
| 250 | currentPitch = kanz.Pitch | |
| 251 | --kanz:Play() | |
| 252 | --coroutine.resume(coroutine.create(function() | |
| 253 | --wait(0.05) | |
| 254 | --end)) | |
| 255 | end | |
| 256 | ||
| 257 | ||
| 258 | function newThemeCust(ID,timepos,pitch,vol) | |
| 259 | local kanz = kan | |
| 260 | kanz:Stop() | |
| 261 | kanz.Volume = vol | |
| 262 | kanz.TimePosition = timepos | |
| 263 | kanz.PlaybackSpeed = pitch | |
| 264 | kanz.Pitch = pitch | |
| 265 | kanz.SoundId = ID | |
| 266 | kanz.Name = "wrecked" | |
| 267 | kanz.Looped = true | |
| 268 | currentThemePlaying = kanz.SoundId | |
| 269 | currentVol = kanz.Volume | |
| 270 | currentPitch = kanz.Pitch | |
| 271 | kanz:Play() | |
| 272 | coroutine.resume(coroutine.create(function() | |
| 273 | wait(0.05) | |
| 274 | end)) | |
| 275 | end | |
| 276 | ||
| 277 | local mutedtog = false | |
| 278 | ||
| 279 | function CameraEnshaking(Length,Intensity) | |
| 280 | coroutine.resume(coroutine.create(function() | |
| 281 | local intensity = 1*Intensity | |
| 282 | local rotM = 0.01*Intensity | |
| 283 | for i = 0, Length, 0.1 do | |
| 284 | swait() | |
| 285 | intensity = intensity - 0.05*Intensity/Length | |
| 286 | rotM = rotM - 0.0005*Intensity/Length | |
| 287 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
| 288 | 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) | |
| 289 | end | |
| 290 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
| 291 | end)) | |
| 292 | end | |
| 293 | CamShake=function(Part,Distan,Power,Times) | |
| 294 | local de=Part.Position | |
| 295 | for i,v in pairs(workspace:children()) do | |
| 296 | if v:IsA("Model") and v:findFirstChild("Humanoid") then
| |
| 297 | for _,c in pairs(v:children()) do | |
| 298 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
| 299 | local Noob=v.Humanoid | |
| 300 | if Noob~=nil then | |
| 301 | coroutine.resume(coroutine.create(function() | |
| 302 | FV = Instance.new("BoolValue", Noob)
| |
| 303 | FV.Name = "CameraShake" | |
| 304 | for ShakeNum=1,Times do | |
| 305 | swait() | |
| 306 | local ef=Power | |
| 307 | if ef>=1 then | |
| 308 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
| 309 | else | |
| 310 | ef=Power*10 | |
| 311 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
| 312 | end | |
| 313 | end | |
| 314 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
| 315 | FV:Destroy() | |
| 316 | end)) | |
| 317 | CameraShake(Times, Power, Noob) | |
| 318 | end | |
| 319 | end | |
| 320 | end | |
| 321 | end | |
| 322 | end | |
| 323 | end | |
| 324 | ||
| 325 | local toggleTag = true | |
| 326 | local bilguit = Instance.new("BillboardGui", hed)
| |
| 327 | bilguit.Adornee = nil | |
| 328 | bilguit.Name = "ModeName" | |
| 329 | bilguit.Size = UDim2.new(4, 0, 1.2, 0) | |
| 330 | bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
| 331 | local modet = Instance.new("TextLabel", bilguit)
| |
| 332 | modet.Size = UDim2.new(10/2, 0, 7/2, 0) | |
| 333 | modet.FontSize = "Size8" | |
| 334 | modet.TextScaled = true | |
| 335 | modet.TextTransparency = 0 | |
| 336 | modet.BackgroundTransparency = 1 | |
| 337 | modet.TextTransparency = 0 | |
| 338 | modet.TextStrokeTransparency = 0 | |
| 339 | modet.Font = "Antique" | |
| 340 | modet.TextStrokeColor3 = Color3.new(1,0,0) | |
| 341 | modet.TextColor3 = Color3.new(0.25,0,0) | |
| 342 | modet.Text = "MAYHEM" | |
| 343 | ||
| 344 | ||
| 345 | function chatfunc(text,color,typet,font,timeex) | |
| 346 | local chat = coroutine.wrap(function() | |
| 347 | if Character:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 348 | Character:FindFirstChild("TalkingBillBoard"):destroy()
| |
| 349 | end | |
| 350 | local naeeym2 = Instance.new("BillboardGui",Character)
| |
| 351 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 352 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 353 | naeeym2.Adornee = Character.Head | |
| 354 | naeeym2.Name = "TalkingBillBoard" | |
| 355 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 356 | tecks2.BackgroundTransparency = 1 | |
| 357 | tecks2.BorderSizePixel = 0 | |
| 358 | tecks2.Text = "" | |
| 359 | tecks2.Font = font | |
| 360 | tecks2.TextSize = 30 | |
| 361 | tecks2.TextStrokeTransparency = 0 | |
| 362 | tecks2.TextColor3 = color | |
| 363 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 364 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 365 | local tecks3 = Instance.new("TextLabel",naeeym2)
| |
| 366 | tecks3.BackgroundTransparency = 1 | |
| 367 | tecks3.BorderSizePixel = 0 | |
| 368 | tecks3.Text = "" | |
| 369 | tecks3.Font = font | |
| 370 | tecks3.TextSize = 30 | |
| 371 | tecks3.TextStrokeTransparency = 0 | |
| 372 | if typet == "Inverted" then | |
| 373 | tecks3.TextColor3 = Color3.new(0,0,0) | |
| 374 | tecks3.TextStrokeColor3 = color | |
| 375 | elseif typet == "Normal" then | |
| 376 | tecks3.TextColor3 = color | |
| 377 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
| 378 | end | |
| 379 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
| 380 | coroutine.resume(coroutine.create(function() | |
| 381 | while true do | |
| 382 | swait(1) | |
| 383 | if chaosmode == true then | |
| 384 | tecks2.TextColor3 = BrickColor.random().Color | |
| 385 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
| 386 | end | |
| 387 | end | |
| 388 | end)) | |
| 389 | modet.TextTransparency = modet.TextTransparency + 1 | |
| 390 | modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1 | |
| 391 | for i = 0, 74*timeex do | |
| 392 | swait() | |
| 393 | modet.TextTransparency = 1 | |
| 394 | modet.TextStrokeTransparency = 1 | |
| 395 | tecks2.Text = text | |
| 396 | tecks3.Text = text | |
| 397 | end | |
| 398 | local randomrot = math.random(1,2) | |
| 399 | if randomrot == 1 then | |
| 400 | for i = 1, 50 do | |
| 401 | swait() | |
| 402 | tecks2.Text = text | |
| 403 | tecks3.Text = text | |
| 404 | modet.TextTransparency = modet.TextTransparency - .02 | |
| 405 | modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02 | |
| 406 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 407 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
| 408 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 409 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
| 410 | end | |
| 411 | elseif randomrot == 2 then | |
| 412 | for i = 1, 50 do | |
| 413 | swait() | |
| 414 | tecks2.Text = text | |
| 415 | tecks3.Text = text | |
| 416 | modet.TextTransparency = modet.TextTransparency - .02 | |
| 417 | modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02 | |
| 418 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 419 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
| 420 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 421 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
| 422 | end | |
| 423 | end | |
| 424 | modet.TextTransparency = 0 | |
| 425 | modet.TextStrokeTransparency = 0 | |
| 426 | if toggleTag == false then | |
| 427 | modet.TextTransparency = 1 | |
| 428 | modet.TextStrokeTransparency = 1 | |
| 429 | end | |
| 430 | naeeym2:Destroy() | |
| 431 | end) | |
| 432 | chat() | |
| 433 | end | |
| 434 | ||
| 435 | ||
| 436 | local Create = LoadLibrary("RbxUtility").Create
| |
| 437 | ||
| 438 | CFuncs = {
| |
| 439 | ["Part"] = {
| |
| 440 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 441 | local Part = Create("Part"){
| |
| 442 | Parent = Parent, | |
| 443 | Reflectance = Reflectance, | |
| 444 | Transparency = Transparency, | |
| 445 | CanCollide = false, | |
| 446 | Locked = true, | |
| 447 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 448 | Name = Name, | |
| 449 | Size = Size, | |
| 450 | Material = Material, | |
| 451 | } | |
| 452 | RemoveOutlines(Part) | |
| 453 | return Part | |
| 454 | end; | |
| 455 | }; | |
| 456 | ||
| 457 | ["Mesh"] = {
| |
| 458 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 459 | local Msh = Create(Mesh){
| |
| 460 | Parent = Part, | |
| 461 | Offset = OffSet, | |
| 462 | Scale = Scale, | |
| 463 | } | |
| 464 | if Mesh == "SpecialMesh" then | |
| 465 | Msh.MeshType = MeshType | |
| 466 | Msh.MeshId = MeshId | |
| 467 | end | |
| 468 | return Msh | |
| 469 | end; | |
| 470 | }; | |
| 471 | ||
| 472 | ["Mesh"] = {
| |
| 473 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 474 | local Msh = Create(Mesh){
| |
| 475 | Parent = Part, | |
| 476 | Offset = OffSet, | |
| 477 | Scale = Scale, | |
| 478 | } | |
| 479 | if Mesh == "SpecialMesh" then | |
| 480 | Msh.MeshType = MeshType | |
| 481 | Msh.MeshId = MeshId | |
| 482 | end | |
| 483 | return Msh | |
| 484 | end; | |
| 485 | }; | |
| 486 | ||
| 487 | ["Weld"] = {
| |
| 488 | Create = function(Parent, Part0, Part1, C0, C1) | |
| 489 | local Weld = Create("Weld"){
| |
| 490 | Parent = Parent, | |
| 491 | Part0 = Part0, | |
| 492 | Part1 = Part1, | |
| 493 | C0 = C0, | |
| 494 | C1 = C1, | |
| 495 | } | |
| 496 | return Weld | |
| 497 | end; | |
| 498 | }; | |
| 499 | ||
| 500 | ["Sound"] = {
| |
| 501 | Create = function(id, par, vol, pit) | |
| 502 | coroutine.resume(coroutine.create(function() | |
| 503 | local S = Create("Sound"){
| |
| 504 | Volume = vol, | |
| 505 | Name = "EffectSoundo", | |
| 506 | Pitch = pit or 1, | |
| 507 | SoundId = id, | |
| 508 | Parent = par or workspace, | |
| 509 | } | |
| 510 | wait() | |
| 511 | S:play() | |
| 512 | game:GetService("Debris"):AddItem(S, 10)
| |
| 513 | end)) | |
| 514 | end; | |
| 515 | }; | |
| 516 | ||
| 517 | ["TimeSound"] = {
| |
| 518 | Create = function(id, par, vol, pit, timepos) | |
| 519 | coroutine.resume(coroutine.create(function() | |
| 520 | local S = Create("Sound"){
| |
| 521 | Volume = vol, | |
| 522 | Name = "EffectSoundo", | |
| 523 | Pitch = pit or 1, | |
| 524 | SoundId = id, | |
| 525 | TimePosition = timepos, | |
| 526 | Parent = par or workspace, | |
| 527 | } | |
| 528 | wait() | |
| 529 | S:play() | |
| 530 | game:GetService("Debris"):AddItem(S, 10)
| |
| 531 | end)) | |
| 532 | end; | |
| 533 | }; | |
| 534 | ["EchoSound"] = {
| |
| 535 | Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl) | |
| 536 | coroutine.resume(coroutine.create(function() | |
| 537 | local Sas = Create("Sound"){
| |
| 538 | Volume = vol, | |
| 539 | Name = "EffectSoundo", | |
| 540 | Pitch = pit or 1, | |
| 541 | SoundId = id, | |
| 542 | TimePosition = timepos, | |
| 543 | Parent = par or workspace, | |
| 544 | } | |
| 545 | local E = Create("EchoSoundEffect"){
| |
| 546 | Delay = echodelay, | |
| 547 | Name = "Echo", | |
| 548 | Feedback = fedb, | |
| 549 | DryLevel = dryl, | |
| 550 | Parent = Sas, | |
| 551 | } | |
| 552 | wait() | |
| 553 | Sas:play() | |
| 554 | game:GetService("Debris"):AddItem(Sas, delays)
| |
| 555 | end)) | |
| 556 | end; | |
| 557 | }; | |
| 558 | ||
| 559 | ["LongSound"] = {
| |
| 560 | Create = function(id, par, vol, pit) | |
| 561 | coroutine.resume(coroutine.create(function() | |
| 562 | local S = Create("Sound"){
| |
| 563 | Volume = vol, | |
| 564 | Pitch = pit or 1, | |
| 565 | SoundId = id, | |
| 566 | Parent = par or workspace, | |
| 567 | } | |
| 568 | wait() | |
| 569 | S:play() | |
| 570 | game:GetService("Debris"):AddItem(S, 60)
| |
| 571 | end)) | |
| 572 | end; | |
| 573 | }; | |
| 574 | ||
| 575 | ["ParticleEmitter"] = {
| |
| 576 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
| 577 | local fp = Create("ParticleEmitter"){
| |
| 578 | Parent = Parent, | |
| 579 | Color = ColorSequence.new(Color1, Color2), | |
| 580 | LightEmission = LightEmission, | |
| 581 | Size = Size, | |
| 582 | Texture = Texture, | |
| 583 | Transparency = Transparency, | |
| 584 | ZOffset = ZOffset, | |
| 585 | Acceleration = Accel, | |
| 586 | Drag = Drag, | |
| 587 | LockedToPart = LockedToPart, | |
| 588 | VelocityInheritance = VelocityInheritance, | |
| 589 | EmissionDirection = EmissionDirection, | |
| 590 | Enabled = Enabled, | |
| 591 | Lifetime = LifeTime, | |
| 592 | Rate = Rate, | |
| 593 | Rotation = Rotation, | |
| 594 | RotSpeed = RotSpeed, | |
| 595 | Speed = Speed, | |
| 596 | VelocitySpread = VelocitySpread, | |
| 597 | } | |
| 598 | return fp | |
| 599 | end; | |
| 600 | }; | |
| 601 | ||
| 602 | CreateTemplate = {
| |
| 603 | ||
| 604 | }; | |
| 605 | } | |
| 606 | ||
| 607 | ||
| 608 | ||
| 609 | New = function(Object, Parent, Name, Data) | |
| 610 | local Object = Instance.new(Object) | |
| 611 | for Index, Value in pairs(Data or {}) do
| |
| 612 | Object[Index] = Value | |
| 613 | end | |
| 614 | Object.Parent = Parent | |
| 615 | Object.Name = Name | |
| 616 | return Object | |
| 617 | end | |
| 618 | local halocolor = BrickColor.new("Pastel light blue")
| |
| 619 | local halocolor2 = BrickColor.new("Cool yellow")
| |
| 620 | local starcolor = BrickColor.new("Bright yellow")
| |
| 621 | local lunacolor = BrickColor.new("Navy blue")
| |
| 622 | local lunacolor2 = BrickColor.new("Bright blue")
| |
| 623 | local wepcolor = BrickColor.new("Really black")
| |
| 624 | local maincolor = BrickColor.new("Really black")
| |
| 625 | local m = Instance.new("Model",char)
| |
| 626 | local m2 = Instance.new("Model",char)
| |
| 627 | local m3 = Instance.new("Model",char)
| |
| 628 | local mw1 = Instance.new("Model",char)
| |
| 629 | local mw2 = Instance.new("Model",char)
| |
| 630 | ||
| 631 | ||
| 632 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
| 633 | local gui = it(GuiType) | |
| 634 | gui.Parent = parent | |
| 635 | gui.Text = text | |
| 636 | gui.BackgroundTransparency = backtrans | |
| 637 | gui.BackgroundColor3 = backcol | |
| 638 | gui.SizeConstraint = "RelativeXY" | |
| 639 | gui.TextXAlignment = "Center" | |
| 640 | gui.TextYAlignment = "Center" | |
| 641 | gui.Position = pos | |
| 642 | gui.Size = size | |
| 643 | gui.Font = "SourceSans" | |
| 644 | gui.FontSize = "Size14" | |
| 645 | gui.TextWrapped = false | |
| 646 | gui.TextStrokeTransparency = 0 | |
| 647 | gui.TextColor = BrickColor.new("White")
| |
| 648 | return gui | |
| 649 | end | |
| 650 | --------------------------- GUI STUFF | |
| 651 | local basgui = it("GuiMain")
| |
| 652 | basgui.Parent = plr.PlayerGui | |
| 653 | basgui.Name = "VISgui" | |
| 654 | local fullscreenz = it("Frame")
| |
| 655 | fullscreenz.Parent = basgui | |
| 656 | fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255) | |
| 657 | fullscreenz.BackgroundTransparency = 1 | |
| 658 | fullscreenz.BorderColor3 = Color3.new(17, 17, 17) | |
| 659 | fullscreenz.Size = UDim2.new(1, 0, 1, 0) | |
| 660 | fullscreenz.Position = UDim2.new(0, 0, 0, 0) | |
| 661 | local imgl2 = Instance.new("ImageLabel",fullscreenz)
| |
| 662 | imgl2.BackgroundTransparency = 1 | |
| 663 | imgl2.BorderSizePixel = 0 | |
| 664 | imgl2.ImageTransparency = 0.5 | |
| 665 | imgl2.ImageColor3 = Color3.new(1,0,0) | |
| 666 | imgl2.Position = UDim2.new(0.75,-100,0.55,-100) | |
| 667 | imgl2.Size = UDim2.new(0,800,0,800) | |
| 668 | imgl2.Image = "rbxassetid://2076458450" | |
| 669 | local techc = imgl2:Clone() | |
| 670 | techc.Parent = fullscreenz | |
| 671 | techc.ImageTransparency = 0 | |
| 672 | techc.Size = UDim2.new(0,900,0,900) | |
| 673 | techc.Position = UDim2.new(0.75,-150,0.55,-150) | |
| 674 | techc.ImageColor3 = Color3.new(1,0,0) | |
| 675 | techc.Image = "rbxassetid://2273224484" | |
| 676 | local circl = imgl2:Clone() | |
| 677 | circl.Parent = fullscreenz | |
| 678 | circl.ImageTransparency = 0 | |
| 679 | circl.Size = UDim2.new(0,550,0,550) | |
| 680 | circl.Position = UDim2.new(0.75,25,0.55,25) | |
| 681 | circl.ImageColor3 = Color3.new(0,0,0) | |
| 682 | circl.Image = "rbxassetid://2312119891" | |
| 683 | local circl2 = imgl2:Clone() | |
| 684 | circl2.Parent = fullscreenz | |
| 685 | circl2.ImageTransparency = 0 | |
| 686 | circl2.Size = UDim2.new(0,700,0,700) | |
| 687 | circl2.Position = UDim2.new(0.75,-50,0.55,-50) | |
| 688 | circl2.ImageColor3 = Color3.new(1,0,0) | |
| 689 | circl2.Image = "rbxassetid://2312119891" | |
| 690 | local imgl2b = imgl2:Clone() | |
| 691 | imgl2b.Parent = fullscreenz | |
| 692 | imgl2b.ImageTransparency = 0 | |
| 693 | imgl2b.Size = UDim2.new(0,600,0,600) | |
| 694 | imgl2b.Position = UDim2.new(0.75,0,0.55,0) | |
| 695 | imgl2b.ImageColor3 = Color3.new(0,0,0) | |
| 696 | local ned = Instance.new("TextLabel",fullscreenz)
| |
| 697 | ned.ZIndex = 2 | |
| 698 | ned.Font = "Arcade" | |
| 699 | ned.BackgroundTransparency = 1 | |
| 700 | ned.BorderSizePixel = 0.65 | |
| 701 | ned.Size = UDim2.new(0.3,0,0.2,0) | |
| 702 | ned.Position = UDim2.new(0.7,0,0.8,0) | |
| 703 | ned.TextColor3 = BrickColor.new("Really red").Color
| |
| 704 | ned.TextStrokeColor3 = BrickColor.new("Really black").Color
| |
| 705 | ned.TextScaled = true | |
| 706 | ned.TextStrokeTransparency = 0 | |
| 707 | ned.Text = "MAYHEM" | |
| 708 | ned.TextSize = 24 | |
| 709 | ned.Rotation = 1 | |
| 710 | ned.TextXAlignment = "Right" | |
| 711 | ned.TextYAlignment = "Bottom" | |
| 712 | ||
| 713 | local extrawingmod1 = Instance.new("Model",char)
| |
| 714 | local extrawingmod2 = Instance.new("Model",char)
| |
| 715 | ||
| 716 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
| 717 | local p = Instance.new("Part")
| |
| 718 | p.TopSurface = 0 | |
| 719 | p.BottomSurface = 0 | |
| 720 | p.Parent = parent | |
| 721 | p.Size = Vector3.new(0.1,0.1,0.1) | |
| 722 | p.Transparency = transparency | |
| 723 | p.Reflectance = reflectance | |
| 724 | p.CanCollide = false | |
| 725 | p.Locked = true | |
| 726 | p.BrickColor = brickcolor | |
| 727 | p.Material = material | |
| 728 | return p | |
| 729 | end | |
| 730 | ||
| 731 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
| 732 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 733 | mesh.MeshType = meshtype | |
| 734 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
| 735 | return mesh | |
| 736 | end | |
| 737 | ||
| 738 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
| 739 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 740 | mesh.MeshType = "FileMesh" | |
| 741 | mesh.MeshId = meshid | |
| 742 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 743 | return mesh | |
| 744 | end | |
| 745 | ||
| 746 | ||
| 747 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
| 748 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 749 | mesh.MeshType = "FileMesh" | |
| 750 | mesh.MeshId = meshid | |
| 751 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
| 752 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 753 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
| 754 | return mesh | |
| 755 | end | |
| 756 | ||
| 757 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
| 758 | local weld = Instance.new("Weld")
| |
| 759 | weld.Parent = parent | |
| 760 | weld.Part0 = part0 | |
| 761 | weld.Part1 = part1 | |
| 762 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
| 763 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
| 764 | return weld | |
| 765 | end | |
| 766 | ||
| 767 | ||
| 768 | -------------- | |
| 769 | --- Powerful Elementals --- | |
| 770 | local CALAMITYorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 771 | local calor = CreateWeld(CALAMITYorb,tors,CALAMITYorb,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 772 | local CHAOSorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 773 | local chaor = CreateWeld(CHAOSorb,tors,CHAOSorb,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 774 | local MAYHEMorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 775 | local mayor = CreateWeld(MAYHEMorb,tors,MAYHEMorb,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 776 | local EQUINOXorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 777 | local equor = CreateWeld(EQUINOXorb,tors,EQUINOXorb,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 778 | -------------- | |
| 779 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 780 | CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 781 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 782 | CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 783 | ||
| 784 | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
| 785 | CreateMesh(handle,"Brick",0,0,0) | |
| 786 | local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 787 | local valuaring = 10 | |
| 788 | for i = 0, 49 do | |
| 789 | valuaring = valuaring + 10 | |
| 790 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 791 | CreateMesh(rn,"Brick",0.25,0.1,0.1) | |
| 792 | CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 793 | end | |
| 794 | ||
| 795 | handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
| 796 | CreateMesh(handle,"Brick",0,0,0) | |
| 797 | CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 798 | local valuaring = 10 | |
| 799 | for i = 0, 49 do | |
| 800 | valuaring = valuaring + 10 | |
| 801 | rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 802 | CreateMesh(rn,"Brick",0.5,0.2,0.2) | |
| 803 | CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 804 | end | |
| 805 | ||
| 806 | ||
| 807 | local handle = CreateParta(m,1,1,"Neon",maincolor) | |
| 808 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 809 | local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 810 | ||
| 811 | --- Left wing. | |
| 812 | ||
| 813 | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
| 814 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 815 | local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 816 | ||
| 817 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 818 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 819 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 820 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 821 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 822 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 823 | A0 = Instance.new('Attachment',wed)
| |
| 824 | A0.Position = vt(0,0.25,0.25) | |
| 825 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 826 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 827 | CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 828 | A1 = Instance.new('Attachment',wed)
| |
| 829 | A1.Position = vt(0,-0.25,-2) | |
| 830 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 831 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 832 | CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 833 | ||
| 834 | tl1 = Instance.new('Trail',wed)
| |
| 835 | tl1.Attachment0 = A1 | |
| 836 | tl1.Attachment1 = A0 | |
| 837 | tl1.Texture = "rbxassetid://2108945559" | |
| 838 | tl1.LightEmission = 1 | |
| 839 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 840 | tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
| |
| 841 | tl1.Lifetime = 0.6 | |
| 842 | ||
| 843 | ||
| 844 | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
| 845 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 846 | local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 847 | ||
| 848 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 849 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 850 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 851 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 852 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 853 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 854 | A0 = Instance.new('Attachment',wed)
| |
| 855 | A0.Position = vt(0,0.25,0.25) | |
| 856 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 857 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 858 | CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 859 | A1 = Instance.new('Attachment',wed)
| |
| 860 | A1.Position = vt(0,-0.25,-2) | |
| 861 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 862 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 863 | CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 864 | ||
| 865 | tl2 = Instance.new('Trail',wed)
| |
| 866 | tl2.Attachment0 = A1 | |
| 867 | tl2.Attachment1 = A0 | |
| 868 | tl2.Texture = "rbxassetid://2108945559" | |
| 869 | tl2.LightEmission = 1 | |
| 870 | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 871 | tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
| |
| 872 | tl2.Lifetime = 0.6 | |
| 873 | ||
| 874 | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
| 875 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 876 | local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 877 | ||
| 878 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 879 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 880 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 881 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 882 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 883 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 884 | A0 = Instance.new('Attachment',wed)
| |
| 885 | A0.Position = vt(0,0.25,0.25) | |
| 886 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 887 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 888 | CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 889 | A1 = Instance.new('Attachment',wed)
| |
| 890 | A1.Position = vt(0,-0.25,-2) | |
| 891 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
| 892 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 893 | CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 894 | ||
| 895 | tl3 = Instance.new('Trail',wed)
| |
| 896 | tl3.Attachment0 = A1 | |
| 897 | tl3.Attachment1 = A0 | |
| 898 | tl3.Texture = "rbxassetid://2108945559" | |
| 899 | tl3.LightEmission = 1 | |
| 900 | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 901 | tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
| |
| 902 | tl3.Lifetime = 0.6 | |
| 903 | ||
| 904 | tl1.Enabled = false | |
| 905 | tl2.Enabled = false | |
| 906 | tl3.Enabled = false | |
| 907 | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
| 908 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 909 | local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 910 | ||
| 911 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 912 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 913 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 914 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 915 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 916 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 917 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 918 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 919 | CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 920 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 921 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 922 | CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 923 | ||
| 924 | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
| 925 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 926 | local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 927 | ||
| 928 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 929 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 930 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 931 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 932 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 933 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 934 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 935 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 936 | CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 937 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 938 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 939 | CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 940 | ||
| 941 | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
| 942 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 943 | local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 944 | ||
| 945 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 946 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 947 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 948 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 949 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 950 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 951 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 952 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 953 | CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 954 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
| 955 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 956 | CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 957 | ||
| 958 | -- Right wing. | |
| 959 | ||
| 960 | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
| 961 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 962 | local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 963 | ||
| 964 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 965 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 966 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 967 | A0 = Instance.new('Attachment',wed)
| |
| 968 | A0.Position = vt(0,0.25,0.25) | |
| 969 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 970 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 971 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 972 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 973 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 974 | CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 975 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 976 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 977 | CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 978 | A1 = Instance.new('Attachment',wed)
| |
| 979 | A1.Position = vt(0,2,0.25) | |
| 980 | ||
| 981 | tr1 = Instance.new('Trail',wed)
| |
| 982 | tr1.Attachment0 = A1 | |
| 983 | tr1.Attachment1 = A0 | |
| 984 | tr1.Texture = "rbxassetid://2108945559" | |
| 985 | tr1.LightEmission = 1 | |
| 986 | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 987 | tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color)
| |
| 988 | tr1.Lifetime = 0.6 | |
| 989 | ||
| 990 | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
| 991 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 992 | local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 993 | ||
| 994 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 995 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 996 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 997 | A0 = Instance.new('Attachment',wed)
| |
| 998 | A0.Position = vt(0,0.25,0.25) | |
| 999 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 1000 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 1001 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1002 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 1003 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 1004 | CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1005 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 1006 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 1007 | CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1008 | A1 = Instance.new('Attachment',wed)
| |
| 1009 | A1.Position = vt(0,2,0.25) | |
| 1010 | ||
| 1011 | tr2 = Instance.new('Trail',wed)
| |
| 1012 | tr2.Attachment0 = A1 | |
| 1013 | tr2.Attachment1 = A0 | |
| 1014 | tr2.Texture = "rbxassetid://2108945559" | |
| 1015 | tr2.LightEmission = 1 | |
| 1016 | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 1017 | tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color)
| |
| 1018 | tr2.Lifetime = 0.6 | |
| 1019 | ||
| 1020 | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
| 1021 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 1022 | local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1023 | ||
| 1024 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 1025 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 1026 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1027 | A0 = Instance.new('Attachment',wed)
| |
| 1028 | A0.Position = vt(0,0.25,0.25) | |
| 1029 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 1030 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 1031 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1032 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 1033 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 1034 | CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1035 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
| 1036 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 1037 | CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1038 | A1 = Instance.new('Attachment',wed)
| |
| 1039 | A1.Position = vt(0,2,0.25) | |
| 1040 | ||
| 1041 | tr3 = Instance.new('Trail',wed)
| |
| 1042 | tr3.Attachment0 = A1 | |
| 1043 | tr3.Attachment1 = A0 | |
| 1044 | tr3.Texture = "rbxassetid://2108945559" | |
| 1045 | tr3.LightEmission = 1 | |
| 1046 | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 1047 | tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color)
| |
| 1048 | tr3.Lifetime = 0.6 | |
| 1049 | ||
| 1050 | ||
| 1051 | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
| 1052 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 1053 | local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1054 | ||
| 1055 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 1056 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 1057 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1058 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 1059 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 1060 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1061 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 1062 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 1063 | CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1064 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 1065 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 1066 | CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1067 | ||
| 1068 | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
| 1069 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 1070 | local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1071 | ||
| 1072 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 1073 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 1074 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1075 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 1076 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 1077 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1078 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 1079 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 1080 | CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1081 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 1082 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 1083 | CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1084 | ||
| 1085 | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
| 1086 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
| 1087 | local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1088 | ||
| 1089 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 1090 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 1091 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1092 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 1093 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
| 1094 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1095 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 1096 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
| 1097 | CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1098 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
| 1099 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
| 1100 | CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1101 | ||
| 1102 | ---- HERES THE RING | |
| 1103 | ||
| 1104 | ||
| 1105 | --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
| 1106 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
| 1107 | CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1108 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1109 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
| 1110 | CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1111 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1112 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
| 1113 | CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1114 | ||
| 1115 | ||
| 1116 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1117 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
| 1118 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1119 | ||
| 1120 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1121 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
| 1122 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1123 | ||
| 1124 | ||
| 1125 | ||
| 1126 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
| 1127 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
| 1128 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1129 | ||
| 1130 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
| 1131 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
| 1132 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1133 | ||
| 1134 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
| 1135 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
| 1136 | CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1137 | ||
| 1138 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1139 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
| 1140 | CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1141 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
| 1142 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
| 1143 | CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1144 | ||
| 1145 | --- second ring | |
| 1146 | ||
| 1147 | ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
| 1148 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
| 1149 | CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1150 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1151 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
| 1152 | CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1153 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1154 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
| 1155 | CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1156 | ||
| 1157 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1158 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
| 1159 | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1160 | ||
| 1161 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1162 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
| 1163 | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1164 | ||
| 1165 | ||
| 1166 | ||
| 1167 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
| 1168 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
| 1169 | CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1170 | ||
| 1171 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
| 1172 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
| 1173 | CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1174 | ||
| 1175 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
| 1176 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
| 1177 | CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1178 | ||
| 1179 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
| 1180 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
| 1181 | CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 1182 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
| 1183 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
| 1184 | CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]-- | |
| 1185 | ||
| 1186 | ||
| 1187 | ||
| 1188 | for i, v in pairs(m:GetChildren()) do | |
| 1189 | if v:IsA("Part") then
| |
| 1190 | v.BrickColor = BrickColor.new("Really black")
| |
| 1191 | v.Material = "Glass" | |
| 1192 | end | |
| 1193 | end | |
| 1194 | for i, v in pairs(m2:GetChildren()) do | |
| 1195 | if v:IsA("Part") then
| |
| 1196 | v.BrickColor = BrickColor.new("Crimson")
| |
| 1197 | v.Material = "Granite" | |
| 1198 | end | |
| 1199 | end | |
| 1200 | for i, v in pairs(m3:GetChildren()) do | |
| 1201 | if v:IsA("Part") then
| |
| 1202 | v.BrickColor = BrickColor.new("Really red")
| |
| 1203 | v.Material = "Neon" | |
| 1204 | end | |
| 1205 | end | |
| 1206 | for i, v in pairs(mw2:GetChildren()) do | |
| 1207 | if v:IsA("Part") then
| |
| 1208 | v.BrickColor = BrickColor.new("Really red")
| |
| 1209 | v.Material = "Neon" | |
| 1210 | end | |
| 1211 | end | |
| 1212 | for i, v in pairs(mw1:GetChildren()) do | |
| 1213 | if v:IsA("Part") then
| |
| 1214 | v.Transparency = 1 | |
| 1215 | v.BrickColor = BrickColor.new("Really red")
| |
| 1216 | v.Material = "Neon" | |
| 1217 | end | |
| 1218 | end | |
| 1219 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 1220 | if v:IsA("Part") then
| |
| 1221 | v.Transparency = 1 | |
| 1222 | v.BrickColor = BrickColor.new("White")
| |
| 1223 | v.Material = "Neon" | |
| 1224 | end | |
| 1225 | end | |
| 1226 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 1227 | if v:IsA("Part") then
| |
| 1228 | v.Transparency = 1 | |
| 1229 | v.BrickColor = BrickColor.new("White")
| |
| 1230 | v.Material = "Neon" | |
| 1231 | end | |
| 1232 | end | |
| 1233 | local MAINRUINCOLOR = BrickColor.new("Really red")
| |
| 1234 | ------ | |
| 1235 | ||
| 1236 | ||
| 1237 | function RemoveOutlines(part) | |
| 1238 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 1239 | end | |
| 1240 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 1241 | local Part = Create("Part")({
| |
| 1242 | Parent = Parent, | |
| 1243 | Reflectance = Reflectance, | |
| 1244 | Transparency = Transparency, | |
| 1245 | CanCollide = false, | |
| 1246 | Locked = true, | |
| 1247 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 1248 | Name = Name, | |
| 1249 | Size = Size, | |
| 1250 | Material = Material | |
| 1251 | }) | |
| 1252 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
| 1253 | RemoveOutlines(Part) | |
| 1254 | return Part | |
| 1255 | end | |
| 1256 | function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 1257 | local Msh = Create(Mesh)({
| |
| 1258 | Parent = Part, | |
| 1259 | Offset = OffSet, | |
| 1260 | Scale = Scale | |
| 1261 | }) | |
| 1262 | if Mesh == "SpecialMesh" then | |
| 1263 | Msh.MeshType = MeshType | |
| 1264 | Msh.MeshId = MeshId | |
| 1265 | end | |
| 1266 | return Msh | |
| 1267 | end | |
| 1268 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
| 1269 | local Weld = Create("Weld")({
| |
| 1270 | Parent = Parent, | |
| 1271 | Part0 = Part0, | |
| 1272 | Part1 = Part1, | |
| 1273 | C0 = C0, | |
| 1274 | C1 = C1 | |
| 1275 | }) | |
| 1276 | return Weld | |
| 1277 | end | |
| 1278 | ||
| 1279 | Character=Player.Character | |
| 1280 | PlayerGui=Player.PlayerGui | |
| 1281 | Backpack=Player.Backpack | |
| 1282 | Torso=Character.Torso | |
| 1283 | Head=Character.Head | |
| 1284 | Humanoid=Character.Humanoid | |
| 1285 | m=Instance.new('Model',Character)
| |
| 1286 | LeftArm=Character["Left Arm"] | |
| 1287 | LeftLeg=Character["Left Leg"] | |
| 1288 | RightArm=Character["Right Arm"] | |
| 1289 | RightLeg=Character["Right Leg"] | |
| 1290 | LS=Torso["Left Shoulder"] | |
| 1291 | LH=Torso["Left Hip"] | |
| 1292 | RS=Torso["Right Shoulder"] | |
| 1293 | RH=Torso["Right Hip"] | |
| 1294 | Face = Head.face | |
| 1295 | Neck=Torso.Neck | |
| 1296 | it=Instance.new | |
| 1297 | attacktype=1 | |
| 1298 | vt=Vector3.new | |
| 1299 | cf=CFrame.new | |
| 1300 | euler=CFrame.fromEulerAnglesXYZ | |
| 1301 | angles=CFrame.Angles | |
| 1302 | cloaked=false | |
| 1303 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 1304 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 1305 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 1306 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 1307 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 1308 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 1309 | RootPart=Character.HumanoidRootPart | |
| 1310 | RootJoint=RootPart.RootJoint | |
| 1311 | RootCF=euler(-1.57,0,3.14) | |
| 1312 | attack = false | |
| 1313 | attackdebounce = false | |
| 1314 | deb=false | |
| 1315 | equipped=true | |
| 1316 | hand=false | |
| 1317 | combo=0 | |
| 1318 | mana=0 | |
| 1319 | trispeed=.2 | |
| 1320 | attackmode='none' | |
| 1321 | local idle=0 | |
| 1322 | local Anim="Idle" | |
| 1323 | local Effects={}
| |
| 1324 | local gun=false | |
| 1325 | local shoot=false | |
| 1326 | local sine = 0 | |
| 1327 | local change = 1 | |
| 1328 | ||
| 1329 | function RecolorTextAndRename(name,col1,col2,font) | |
| 1330 | modet.TextStrokeColor3 = col2 | |
| 1331 | modet.TextColor3 = col1 | |
| 1332 | modet.Font = font | |
| 1333 | modet.Text = name | |
| 1334 | techc.ImageColor3 = col2 | |
| 1335 | circl.ImageColor3 = col2 | |
| 1336 | circl2.ImageColor3 = col1 | |
| 1337 | imgl2.ImageColor3 = col1 | |
| 1338 | imgl2b.ImageColor3 = col2 | |
| 1339 | ned.Text = name | |
| 1340 | ned.TextColor3 = col1 | |
| 1341 | ned.TextStrokeColor3 = col2 | |
| 1342 | end | |
| 1343 | --save shoulders | |
| 1344 | RSH, LSH=nil, nil | |
| 1345 | --welds | |
| 1346 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 1347 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 1348 | LH=Torso["Left Hip"] | |
| 1349 | RH=Torso["Right Hip"] | |
| 1350 | TorsoColor=Torso.BrickColor | |
| 1351 | function NoOutline(Part) | |
| 1352 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 1353 | end | |
| 1354 | ch=Character | |
| 1355 | RSH=ch.Torso["Right Shoulder"] | |
| 1356 | LSH=ch.Torso["Left Shoulder"] | |
| 1357 | -- | |
| 1358 | RSH.Parent=nil | |
| 1359 | LSH.Parent=nil | |
| 1360 | -- | |
| 1361 | RW.Name="Right Shoulder" | |
| 1362 | RW.Part0=ch.Torso | |
| 1363 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 1364 | RW.C1=cf(0, 0.5, 0) | |
| 1365 | RW.Part1=ch["Right Arm"] | |
| 1366 | RW.Parent=ch.Torso | |
| 1367 | -- | |
| 1368 | LW.Name="Left Shoulder" | |
| 1369 | LW.Part0=ch.Torso | |
| 1370 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 1371 | LW.C1=cf(0, 0.5, 0) | |
| 1372 | LW.Part1=ch["Left Arm"] | |
| 1373 | LW.Parent=ch.Torso | |
| 1374 | ||
| 1375 | local Stats=Instance.new("BoolValue")
| |
| 1376 | Stats.Name="Stats" | |
| 1377 | Stats.Parent=Character | |
| 1378 | local Atk=Instance.new("NumberValue")
| |
| 1379 | Atk.Name="Damage" | |
| 1380 | Atk.Parent=Stats | |
| 1381 | Atk.Value=1 | |
| 1382 | local Def=Instance.new("NumberValue")
| |
| 1383 | Def.Name="Defense" | |
| 1384 | Def.Parent=Stats | |
| 1385 | Def.Value=1 | |
| 1386 | local Speed=Instance.new("NumberValue")
| |
| 1387 | Speed.Name="Speed" | |
| 1388 | Speed.Parent=Stats | |
| 1389 | Speed.Value=1 | |
| 1390 | local Mvmt=Instance.new("NumberValue")
| |
| 1391 | Mvmt.Name="Movement" | |
| 1392 | Mvmt.Parent=Stats | |
| 1393 | Mvmt.Value=1 | |
| 1394 | ||
| 1395 | local donum=0 | |
| 1396 | ||
| 1397 | ||
| 1398 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 1399 | local fp=it("Part")
| |
| 1400 | fp.formFactor=formfactor | |
| 1401 | fp.Parent=parent | |
| 1402 | fp.Reflectance=reflectance | |
| 1403 | fp.Transparency=transparency | |
| 1404 | fp.CanCollide=false | |
| 1405 | fp.Locked=true | |
| 1406 | fp.BrickColor=brickcolor | |
| 1407 | fp.Name=name | |
| 1408 | fp.Size=size | |
| 1409 | fp.Position=Torso.Position | |
| 1410 | NoOutline(fp) | |
| 1411 | fp.Material="SmoothPlastic" | |
| 1412 | fp:BreakJoints() | |
| 1413 | return fp | |
| 1414 | end | |
| 1415 | ||
| 1416 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 1417 | local mesh=it(Mesh) | |
| 1418 | mesh.Parent=part | |
| 1419 | if Mesh=="SpecialMesh" then | |
| 1420 | mesh.MeshType=meshtype | |
| 1421 | if meshid~="nil" then | |
| 1422 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
| 1423 | end | |
| 1424 | end | |
| 1425 | mesh.Offset=offset | |
| 1426 | mesh.Scale=scale | |
| 1427 | return mesh | |
| 1428 | end | |
| 1429 | ||
| 1430 | function weld(parent,part0,part1,c0) | |
| 1431 | local weld=it("Weld")
| |
| 1432 | weld.Parent=parent | |
| 1433 | weld.Part0=part0 | |
| 1434 | weld.Part1=part1 | |
| 1435 | weld.C0=c0 | |
| 1436 | return weld | |
| 1437 | end | |
| 1438 | ||
| 1439 | local Color1=Torso.BrickColor | |
| 1440 | ||
| 1441 | local bodvel=Instance.new("BodyVelocity")
| |
| 1442 | local bg=Instance.new("BodyGyro")
| |
| 1443 | ||
| 1444 | --------- SazEreno's Artificial HB -------------- | |
| 1445 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 1446 | ArtificialHB.Name = "ArtificialHB" | |
| 1447 | ||
| 1448 | script:WaitForChild("ArtificialHB")
| |
| 1449 | Frame_Speed = 1 / 60 | |
| 1450 | frame = Frame_Speed | |
| 1451 | tf = 0 | |
| 1452 | allowframeloss = false | |
| 1453 | tossremainder = false | |
| 1454 | lastframe = tick() | |
| 1455 | script.ArtificialHB:Fire() | |
| 1456 | ||
| 1457 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 1458 | tf = tf + s | |
| 1459 | if tf >= frame then | |
| 1460 | if allowframeloss then | |
| 1461 | script.ArtificialHB:Fire() | |
| 1462 | lastframe = tick() | |
| 1463 | else | |
| 1464 | for i = 1, math.floor(tf / frame) do | |
| 1465 | script.ArtificialHB:Fire() | |
| 1466 | end | |
| 1467 | lastframe = tick() | |
| 1468 | end | |
| 1469 | if tossremainder then | |
| 1470 | tf = 0 | |
| 1471 | else | |
| 1472 | tf = tf - frame * math.floor(tf / frame) | |
| 1473 | end | |
| 1474 | end | |
| 1475 | end) | |
| 1476 | ||
| 1477 | ------------------ | |
| 1478 | function swait(num) | |
| 1479 | if num == 0 or num == nil then | |
| 1480 | ArtificialHB.Event:wait() | |
| 1481 | else | |
| 1482 | for i = 1, num do | |
| 1483 | ArtificialHB.Event:wait() | |
| 1484 | end | |
| 1485 | end | |
| 1486 | end | |
| 1487 | -------- RAINBOW LEAVE IT TO ME | |
| 1488 | local r = 255 | |
| 1489 | local g = 0 | |
| 1490 | local b = 0 | |
| 1491 | coroutine.resume(coroutine.create(function() | |
| 1492 | while wait() do | |
| 1493 | for i = 0, 254/5 do | |
| 1494 | swait() | |
| 1495 | g = g + 5 | |
| 1496 | end | |
| 1497 | for i = 0, 254/5 do | |
| 1498 | swait() | |
| 1499 | r = r - 5 | |
| 1500 | end | |
| 1501 | for i = 0, 254/5 do | |
| 1502 | swait() | |
| 1503 | b = b + 5 | |
| 1504 | end | |
| 1505 | for i = 0, 254/5 do | |
| 1506 | swait() | |
| 1507 | g = g - 5 | |
| 1508 | end | |
| 1509 | for i = 0, 254/5 do | |
| 1510 | swait() | |
| 1511 | r = r + 5 | |
| 1512 | end | |
| 1513 | for i = 0, 254/5 do | |
| 1514 | swait() | |
| 1515 | b = b - 5 | |
| 1516 | end | |
| 1517 | end | |
| 1518 | end)) | |
| 1519 | ||
| 1520 | ||
| 1521 | so = function(id,par,vol,pit) | |
| 1522 | coroutine.resume(coroutine.create(function() | |
| 1523 | local sou = Instance.new("Sound",par or workspace)
| |
| 1524 | sou.Volume=vol | |
| 1525 | sou.Pitch=pit or 1 | |
| 1526 | sou.SoundId=id | |
| 1527 | swait() | |
| 1528 | sou:play() | |
| 1529 | game:GetService("Debris"):AddItem(sou,6)
| |
| 1530 | end)) | |
| 1531 | end | |
| 1532 | ||
| 1533 | function clerp(a,b,t) | |
| 1534 | local qa = {QuaternionFromCFrame(a)}
| |
| 1535 | local qb = {QuaternionFromCFrame(b)}
| |
| 1536 | local ax, ay, az = a.x, a.y, a.z | |
| 1537 | local bx, by, bz = b.x, b.y, b.z | |
| 1538 | local _t = 1-t | |
| 1539 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 1540 | end | |
| 1541 | ||
| 1542 | function QuaternionFromCFrame(cf) | |
| 1543 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 1544 | local trace = m00 + m11 + m22 | |
| 1545 | if trace > 0 then | |
| 1546 | local s = math.sqrt(1 + trace) | |
| 1547 | local recip = 0.5/s | |
| 1548 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 1549 | else | |
| 1550 | local i = 0 | |
| 1551 | if m11 > m00 then | |
| 1552 | i = 1 | |
| 1553 | end | |
| 1554 | if m22 > (i == 0 and m00 or m11) then | |
| 1555 | i = 2 | |
| 1556 | end | |
| 1557 | if i == 0 then | |
| 1558 | local s = math.sqrt(m00-m11-m22+1) | |
| 1559 | local recip = 0.5/s | |
| 1560 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 1561 | elseif i == 1 then | |
| 1562 | local s = math.sqrt(m11-m22-m00+1) | |
| 1563 | local recip = 0.5/s | |
| 1564 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 1565 | elseif i == 2 then | |
| 1566 | local s = math.sqrt(m22-m00-m11+1) | |
| 1567 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 1568 | end | |
| 1569 | end | |
| 1570 | end | |
| 1571 | ||
| 1572 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 1573 | local xs, ys, zs = x + x, y + y, z + z | |
| 1574 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 1575 | local xx = x*xs | |
| 1576 | local xy = x*ys | |
| 1577 | local xz = x*zs | |
| 1578 | local yy = y*ys | |
| 1579 | local yz = y*zs | |
| 1580 | local zz = z*zs | |
| 1581 | 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)) | |
| 1582 | end | |
| 1583 | ||
| 1584 | function QuaternionSlerp(a, b, t) | |
| 1585 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 1586 | local startInterp, finishInterp; | |
| 1587 | if cosTheta >= 0.0001 then | |
| 1588 | if (1 - cosTheta) > 0.0001 then | |
| 1589 | local theta = math.acos(cosTheta) | |
| 1590 | local invSinTheta = 1/math.sin(theta) | |
| 1591 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 1592 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 1593 | else | |
| 1594 | startInterp = 1-t | |
| 1595 | finishInterp = t | |
| 1596 | end | |
| 1597 | else | |
| 1598 | if (1+cosTheta) > 0.0001 then | |
| 1599 | local theta = math.acos(-cosTheta) | |
| 1600 | local invSinTheta = 1/math.sin(theta) | |
| 1601 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 1602 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 1603 | else | |
| 1604 | startInterp = t-1 | |
| 1605 | finishInterp = t | |
| 1606 | end | |
| 1607 | end | |
| 1608 | 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 | |
| 1609 | end | |
| 1610 | ||
| 1611 | local function CFrameFromTopBack(at, top, back) | |
| 1612 | local right = top:Cross(back) | |
| 1613 | return CFrame.new(at.x, at.y, at.z, | |
| 1614 | right.x, top.x, back.x, | |
| 1615 | right.y, top.y, back.y, | |
| 1616 | right.z, top.z, back.z) | |
| 1617 | end | |
| 1618 | ||
| 1619 | function Triangle(a, b, c) | |
| 1620 | local edg1 = (c-a):Dot((b-a).unit) | |
| 1621 | local edg2 = (a-b):Dot((c-b).unit) | |
| 1622 | local edg3 = (b-c):Dot((a-c).unit) | |
| 1623 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
| 1624 | a, b, c = a, b, c | |
| 1625 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
| 1626 | a, b, c = b, c, a | |
| 1627 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
| 1628 | a, b, c = c, a, b | |
| 1629 | else | |
| 1630 | assert(false, "unreachable") | |
| 1631 | end | |
| 1632 | ||
| 1633 | local len1 = (c-a):Dot((b-a).unit) | |
| 1634 | local len2 = (b-a).magnitude - len1 | |
| 1635 | local width = (a + (b-a).unit*len1 - c).magnitude | |
| 1636 | ||
| 1637 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
| 1638 | ||
| 1639 | local list = {}
| |
| 1640 | ||
| 1641 | if len1 > 0.01 then | |
| 1642 | local w1 = Instance.new('WedgePart', m)
| |
| 1643 | game:GetService("Debris"):AddItem(w1,5)
| |
| 1644 | w1.Material = "SmoothPlastic" | |
| 1645 | w1.FormFactor = 'Custom' | |
| 1646 | w1.BrickColor = BrickColor.new("Really red")
| |
| 1647 | w1.Transparency = 0 | |
| 1648 | w1.Reflectance = 0 | |
| 1649 | w1.Material = "SmoothPlastic" | |
| 1650 | w1.CanCollide = false | |
| 1651 | local l1 = Instance.new("PointLight",w1)
| |
| 1652 | l1.Color = Color3.new(170,0,0) | |
| 1653 | NoOutline(w1) | |
| 1654 | local sz = Vector3.new(0.2, width, len1) | |
| 1655 | w1.Size = sz | |
| 1656 | local sp = Instance.new("SpecialMesh",w1)
| |
| 1657 | sp.MeshType = "Wedge" | |
| 1658 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
| 1659 | w1:BreakJoints() | |
| 1660 | w1.Anchored = true | |
| 1661 | w1.Parent = workspace | |
| 1662 | w1.Transparency = 0.7 | |
| 1663 | table.insert(Effects,{w1,"Disappear",.01})
| |
| 1664 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
| 1665 | table.insert(list,w1) | |
| 1666 | end | |
| 1667 | ||
| 1668 | if len2 > 0.01 then | |
| 1669 | local w2 = Instance.new('WedgePart', m)
| |
| 1670 | game:GetService("Debris"):AddItem(w2,5)
| |
| 1671 | w2.Material = "SmoothPlastic" | |
| 1672 | w2.FormFactor = 'Custom' | |
| 1673 | w2.BrickColor = BrickColor.new("Really red")
| |
| 1674 | w2.Transparency = 0 | |
| 1675 | w2.Reflectance = 0 | |
| 1676 | w2.Material = "SmoothPlastic" | |
| 1677 | w2.CanCollide = false | |
| 1678 | local l2 = Instance.new("PointLight",w2)
| |
| 1679 | l2.Color = Color3.new(170,0,0) | |
| 1680 | NoOutline(w2) | |
| 1681 | local sz = Vector3.new(0.2, width, len2) | |
| 1682 | w2.Size = sz | |
| 1683 | local sp = Instance.new("SpecialMesh",w2)
| |
| 1684 | sp.MeshType = "Wedge" | |
| 1685 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
| 1686 | w2:BreakJoints() | |
| 1687 | w2.Anchored = true | |
| 1688 | w2.Parent = workspace | |
| 1689 | w2.Transparency = 0.7 | |
| 1690 | table.insert(Effects,{w2,"Disappear",.01})
| |
| 1691 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
| 1692 | table.insert(list,w2) | |
| 1693 | end | |
| 1694 | return unpack(list) | |
| 1695 | end | |
| 1696 | ||
| 1697 | ||
| 1698 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
| 1699 | if hit.Parent == nil then | |
| 1700 | return | |
| 1701 | end | |
| 1702 | local h = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1703 | for _, v in pairs(hit.Parent:children()) do | |
| 1704 | if v:IsA("Humanoid") then
| |
| 1705 | h = v | |
| 1706 | end | |
| 1707 | end | |
| 1708 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then
| |
| 1709 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
| |
| 1710 | return | |
| 1711 | end | |
| 1712 | local c = Create("ObjectValue")({
| |
| 1713 | Name = "creator", | |
| 1714 | Value = game:GetService("Players").SonicSydney,
| |
| 1715 | Parent = h | |
| 1716 | }) | |
| 1717 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1718 | if HitSound ~= nil and HitPitch ~= nil then | |
| 1719 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
| 1720 | end | |
| 1721 | local Damage = math.random(minim, maxim) | |
| 1722 | local blocked = false | |
| 1723 | local block = hit.Parent:findFirstChild("Block")
| |
| 1724 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
| 1725 | blocked = true | |
| 1726 | block.Value = block.Value - 1 | |
| 1727 | print(block.Value) | |
| 1728 | end | |
| 1729 | if blocked == false then | |
| 1730 | HitHealth = h.Health | |
| 1731 | h.MaxHealth = 100 | |
| 1732 | h.Health = h.Health - Damage | |
| 1733 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
| 1734 | print("gained kill")
| |
| 1735 | dmg(h.Parent) | |
| 1736 | end | |
| 1737 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1738 | else | |
| 1739 | h.Health = h.Health - Damage / 2 | |
| 1740 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
| 1741 | end | |
| 1742 | if Type == "Knockdown" then | |
| 1743 | local hum = hit.Parent.Humanoid | |
| 1744 | hum.PlatformStand = true | |
| 1745 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1746 | swait(1) | |
| 1747 | HHumanoid.PlatformStand = false | |
| 1748 | end), hum) | |
| 1749 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
| 1750 | local bodvol = Create("BodyVelocity")({
| |
| 1751 | velocity = angle * knockback, | |
| 1752 | P = 5000, | |
| 1753 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1754 | Parent = hit | |
| 1755 | }) | |
| 1756 | local rl = Create("BodyAngularVelocity")({
| |
| 1757 | P = 3000, | |
| 1758 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
| 1759 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
| 1760 | Parent = hit | |
| 1761 | }) | |
| 1762 | game:GetService("Debris"):AddItem(bodvol, 0.5)
| |
| 1763 | game:GetService("Debris"):AddItem(rl, 0.5)
| |
| 1764 | elseif Type == "Normal" then | |
| 1765 | local vp = Create("BodyVelocity")({
| |
| 1766 | P = 500, | |
| 1767 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
| 1768 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
| 1769 | }) | |
| 1770 | if knockback > 0 then | |
| 1771 | vp.Parent = hit.Parent.Head | |
| 1772 | end | |
| 1773 | game:GetService("Debris"):AddItem(vp, 0.5)
| |
| 1774 | elseif Type == "Up" then | |
| 1775 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1776 | velocity = Vector3.new(0, 20, 0), | |
| 1777 | P = 5000, | |
| 1778 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1779 | Parent = hit | |
| 1780 | }) | |
| 1781 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 1782 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1783 | velocity = Vector3.new(0, 20, 0), | |
| 1784 | P = 5000, | |
| 1785 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1786 | Parent = hit | |
| 1787 | }) | |
| 1788 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 1789 | elseif Type == "Leech" then | |
| 1790 | local hum = hit.Parent.Humanoid | |
| 1791 | if hum ~= nil then | |
| 1792 | for i = 0, 2 do | |
| 1793 | 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)
| |
| 1794 | end | |
| 1795 | Humanoid.Health = Humanoid.Health + 10 | |
| 1796 | end | |
| 1797 | elseif Type == "UpKnock" then | |
| 1798 | local hum = hit.Parent.Humanoid | |
| 1799 | hum.PlatformStand = true | |
| 1800 | if hum ~= nil then | |
| 1801 | hitr = true | |
| 1802 | end | |
| 1803 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1804 | swait(5) | |
| 1805 | HHumanoid.PlatformStand = false | |
| 1806 | hitr = false | |
| 1807 | end), hum) | |
| 1808 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1809 | velocity = Vector3.new(0, 20, 0), | |
| 1810 | P = 5000, | |
| 1811 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1812 | Parent = hit | |
| 1813 | }) | |
| 1814 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
| |
| 1815 | local bodyVelocity = Create("BodyVelocity")({
| |
| 1816 | velocity = Vector3.new(0, 20, 0), | |
| 1817 | P = 5000, | |
| 1818 | maxForce = Vector3.new(8000, 8000, 8000), | |
| 1819 | Parent = hit | |
| 1820 | }) | |
| 1821 | game:GetService("Debris"):AddItem(bodyVelocity, 1)
| |
| 1822 | elseif Type == "Snare" then | |
| 1823 | local bp = Create("BodyPosition")({
| |
| 1824 | P = 2000, | |
| 1825 | D = 100, | |
| 1826 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1827 | position = hit.Parent.Torso.Position, | |
| 1828 | Parent = hit.Parent.Torso | |
| 1829 | }) | |
| 1830 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1831 | elseif Type == "Slashnare" then | |
| 1832 | 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)
| |
| 1833 | for i = 1, math.random(4, 5) do | |
| 1834 | 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)
| |
| 1835 | end | |
| 1836 | local bp = Create("BodyPosition")({
| |
| 1837 | P = 2000, | |
| 1838 | D = 100, | |
| 1839 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1840 | position = hit.Parent.Torso.Position, | |
| 1841 | Parent = hit.Parent.Torso | |
| 1842 | }) | |
| 1843 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1844 | elseif Type == "Spike" then | |
| 1845 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
| 1846 | local bp = Create("BodyPosition")({
| |
| 1847 | P = 2000, | |
| 1848 | D = 100, | |
| 1849 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1850 | position = hit.Parent.Torso.Position, | |
| 1851 | Parent = hit.Parent.Torso | |
| 1852 | }) | |
| 1853 | game:GetService("Debris"):AddItem(bp, 1)
| |
| 1854 | elseif Type == "Freeze" then | |
| 1855 | local BodPos = Create("BodyPosition")({
| |
| 1856 | P = 50000, | |
| 1857 | D = 1000, | |
| 1858 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
| 1859 | position = hit.Parent.Torso.Position, | |
| 1860 | Parent = hit.Parent.Torso | |
| 1861 | }) | |
| 1862 | local BodGy = Create("BodyGyro")({
| |
| 1863 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
| 1864 | P = 20000, | |
| 1865 | Parent = hit.Parent.Torso, | |
| 1866 | cframe = hit.Parent.Torso.CFrame | |
| 1867 | }) | |
| 1868 | hit.Parent.Torso.Anchored = true | |
| 1869 | coroutine.resume(coroutine.create(function(Part) | |
| 1870 | swait(1.5) | |
| 1871 | Part.Anchored = false | |
| 1872 | end), hit.Parent.Torso) | |
| 1873 | game:GetService("Debris"):AddItem(BodPos, 3)
| |
| 1874 | game:GetService("Debris"):AddItem(BodGy, 3)
| |
| 1875 | end | |
| 1876 | local debounce = Create("BoolValue")({
| |
| 1877 | Name = "DebounceHit", | |
| 1878 | Parent = hit.Parent, | |
| 1879 | Value = true | |
| 1880 | }) | |
| 1881 | game:GetService("Debris"):AddItem(debounce, Delay)
| |
| 1882 | c = Instance.new("ObjectValue")
| |
| 1883 | c.Name = "creator" | |
| 1884 | c.Value = Player | |
| 1885 | c.Parent = h | |
| 1886 | game:GetService("Debris"):AddItem(c, 0.5)
| |
| 1887 | end | |
| 1888 | end | |
| 1889 | function ShowDamage(Pos, Text, Time, Color) | |
| 1890 | local Rate = 0.03333333333333333 | |
| 1891 | local Pos = Pos or Vector3.new(0, 0, 0) | |
| 1892 | local Text = Text or "" | |
| 1893 | local Time = Time or 2 | |
| 1894 | local Color = Color or Color3.new(1, 0, 1) | |
| 1895 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
| 1896 | EffectPart.Anchored = true | |
| 1897 | local BillboardGui = Create("BillboardGui")({
| |
| 1898 | Size = UDim2.new(3, 0, 3, 0), | |
| 1899 | Adornee = EffectPart, | |
| 1900 | Parent = EffectPart | |
| 1901 | }) | |
| 1902 | local TextLabel = Create("TextLabel")({
| |
| 1903 | BackgroundTransparency = 1, | |
| 1904 | Size = UDim2.new(1, 0, 1, 0), | |
| 1905 | Text = Text, | |
| 1906 | TextColor3 = Color, | |
| 1907 | TextScaled = true, | |
| 1908 | Font = Enum.Font.ArialBold, | |
| 1909 | Parent = BillboardGui | |
| 1910 | }) | |
| 1911 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
| 1912 | EffectPart.Parent = game:GetService("Workspace")
| |
| 1913 | delay(0, function() | |
| 1914 | local Frames = Time / Rate | |
| 1915 | for Frame = 1, Frames do | |
| 1916 | wait(Rate) | |
| 1917 | local Percent = Frame / Frames | |
| 1918 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
| 1919 | TextLabel.TextTransparency = Percent | |
| 1920 | end | |
| 1921 | if EffectPart and EffectPart.Parent then | |
| 1922 | EffectPart:Destroy() | |
| 1923 | end | |
| 1924 | end) | |
| 1925 | end | |
| 1926 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
| 1927 | for _, c in pairs(workspace:children()) do | |
| 1928 | local hum = c:findFirstChildOfClass("Humanoid")
| |
| 1929 | if hum ~= nil then | |
| 1930 | local head = c:findFirstChild("Head")
| |
| 1931 | if head ~= nil then | |
| 1932 | local targ = head.Position - Part.Position | |
| 1933 | local mag = targ.magnitude | |
| 1934 | if magni >= mag and c.Name ~= Player.Name then | |
| 1935 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 1936 | end | |
| 1937 | end | |
| 1938 | end | |
| 1939 | end | |
| 1940 | end | |
| 1941 | ||
| 1942 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
| 1943 | for _, c in pairs(workspace:children()) do | |
| 1944 | local hum = c:findFirstChild("Humanoid")
| |
| 1945 | if hum ~= nil then | |
| 1946 | local head = c:findFirstChild("Torso")
| |
| 1947 | if head ~= nil then | |
| 1948 | local targ = head.Position - Part.Position | |
| 1949 | local mag = targ.magnitude | |
| 1950 | if magni >= mag and c.Name ~= Player.Name then | |
| 1951 | MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
| |
| 1952 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
| 1953 | end | |
| 1954 | end | |
| 1955 | end | |
| 1956 | end | |
| 1957 | end | |
| 1958 | ||
| 1959 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
| 1960 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 1961 | end | |
| 1962 | ||
| 1963 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
| 1964 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1965 | prt.Anchored=true | |
| 1966 | prt.CFrame=cframe | |
| 1967 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
| |
| 1968 | --http://www.roblox.com/asset/?id=4770560 | |
| 1969 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1970 | CF=prt.CFrame | |
| 1971 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
| 1972 | for i=0,1,0.2 do | |
| 1973 | wait() | |
| 1974 | Part.CFrame=CF*cf(0,0,-0.4) | |
| 1975 | end | |
| 1976 | for i=0,1,delay do | |
| 1977 | wait() | |
| 1978 | --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) | |
| 1979 | Mesh.Scale=Mesh.Scale | |
| 1980 | end | |
| 1981 | for i=0,1,0.1 do | |
| 1982 | wait() | |
| 1983 | Part.Transparency=i | |
| 1984 | end | |
| 1985 | Part.Parent=nil | |
| 1986 | end),prt,msh,CF) | |
| 1987 | end | |
| 1988 | ||
| 1989 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1990 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1991 | prt.Anchored=true | |
| 1992 | prt.Material = "Neon" | |
| 1993 | prt.CFrame=cframe | |
| 1994 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1995 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1996 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1997 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1998 | for i=0,1,delay do | |
| 1999 | swait() | |
| 2000 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 2001 | Part.Transparency=i | |
| 2002 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2003 | end | |
| 2004 | Part.Parent=nil | |
| 2005 | end),prt,msh) | |
| 2006 | end | |
| 2007 | ||
| 2008 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 2009 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2010 | prt.Anchored=true | |
| 2011 | prt.Material = "Neon" | |
| 2012 | prt.CFrame=cframe | |
| 2013 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2014 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2015 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2016 | local rtype = rottype | |
| 2017 | for i=0,1,delay do | |
| 2018 | swait() | |
| 2019 | if rtype == 1 then | |
| 2020 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 2021 | elseif rtype == 2 then | |
| 2022 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 2023 | end | |
| 2024 | Part.Transparency=i | |
| 2025 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2026 | end | |
| 2027 | Part.Parent=nil | |
| 2028 | end),prt,msh) | |
| 2029 | end | |
| 2030 | ||
| 2031 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 2032 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2033 | prt.Anchored=true | |
| 2034 | prt.CFrame=cframe | |
| 2035 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 2036 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2037 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2038 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2039 | for i=0,1,delay do | |
| 2040 | wait() | |
| 2041 | Part.Transparency=i | |
| 2042 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2043 | end | |
| 2044 | Part.Parent=nil | |
| 2045 | end),prt,msh) | |
| 2046 | end | |
| 2047 | ||
| 2048 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 2049 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2050 | prt.Anchored=true | |
| 2051 | prt.Material = "Neon" | |
| 2052 | prt.CFrame=cframe | |
| 2053 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2054 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2055 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2056 | local rtype = rottype | |
| 2057 | for i=0,1,delay do | |
| 2058 | swait() | |
| 2059 | if rtype == 1 then | |
| 2060 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 2061 | elseif rtype == 2 then | |
| 2062 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 2063 | end | |
| 2064 | Part.Transparency=i | |
| 2065 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2066 | end | |
| 2067 | Part.Parent=nil | |
| 2068 | end),prt,msh) | |
| 2069 | end | |
| 2070 | ||
| 2071 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
| 2072 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2073 | prt.Anchored=true | |
| 2074 | prt.Material = "Neon" | |
| 2075 | prt.CFrame=cframe | |
| 2076 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
| 2077 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
| 2078 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
| |
| 2079 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2080 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2081 | local rtype = rottype | |
| 2082 | for i=0,1,delay do | |
| 2083 | swait() | |
| 2084 | if rtype == 1 then | |
| 2085 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 2086 | elseif rtype == 2 then | |
| 2087 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 2088 | end | |
| 2089 | dec.Transparency=i | |
| 2090 | dec2.Transparency=i | |
| 2091 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 2092 | end | |
| 2093 | Part.Parent=nil | |
| 2094 | end),prt,msh) | |
| 2095 | end | |
| 2096 | ||
| 2097 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
| 2098 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2099 | prt.Anchored=true | |
| 2100 | prt.Material = "Neon" | |
| 2101 | prt.CFrame=cframe | |
| 2102 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
| |
| 2103 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2104 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2105 | local rtype = rottype | |
| 2106 | for i=0,1,delay do | |
| 2107 | swait() | |
| 2108 | if rtype == 1 then | |
| 2109 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 2110 | elseif rtype == 2 then | |
| 2111 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 2112 | end | |
| 2113 | prt.Transparency=i | |
| 2114 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 2115 | end | |
| 2116 | Part.Parent=nil | |
| 2117 | end),prt,msh) | |
| 2118 | end | |
| 2119 | ||
| 2120 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
| 2121 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2122 | prt.Anchored=true | |
| 2123 | prt.Material = "Neon" | |
| 2124 | prt.CFrame=cframe | |
| 2125 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
| |
| 2126 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2127 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2128 | local rtype = rottype | |
| 2129 | for i=0,1,delay do | |
| 2130 | swait() | |
| 2131 | if rtype == 1 then | |
| 2132 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
| 2133 | elseif rtype == 2 then | |
| 2134 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
| 2135 | end | |
| 2136 | prt.Transparency=i | |
| 2137 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
| 2138 | end | |
| 2139 | Part.Parent=nil | |
| 2140 | end),prt,msh) | |
| 2141 | end | |
| 2142 | ||
| 2143 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
| 2144 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2145 | prt.Anchored=true | |
| 2146 | prt.Material = "Neon" | |
| 2147 | prt.CFrame=cframe | |
| 2148 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2149 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2150 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2151 | local rtype = rottype | |
| 2152 | for i=0,1,delay do | |
| 2153 | swait() | |
| 2154 | if rtype == 1 then | |
| 2155 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 2156 | elseif rtype == 2 then | |
| 2157 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 2158 | end | |
| 2159 | prt.Transparency=i | |
| 2160 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
| 2161 | end | |
| 2162 | Part.Parent=nil | |
| 2163 | end),prt,msh) | |
| 2164 | end | |
| 2165 | ||
| 2166 | function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 2167 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2168 | prt.Anchored=true | |
| 2169 | prt.Material = "Neon" | |
| 2170 | prt.CFrame=cframe | |
| 2171 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2172 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2173 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2174 | local rtype = rottype | |
| 2175 | for i=0,1,delay do | |
| 2176 | swait() | |
| 2177 | if rtype == 1 then | |
| 2178 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 2179 | elseif rtype == 2 then | |
| 2180 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 2181 | end | |
| 2182 | prt.Transparency=i | |
| 2183 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2184 | end | |
| 2185 | Part.Parent=nil | |
| 2186 | end),prt,msh) | |
| 2187 | end | |
| 2188 | ||
| 2189 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 2190 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2191 | prt.Anchored=false | |
| 2192 | prt.CFrame=cframe | |
| 2193 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2194 | local wld=weld(prt,prt,Parent,cframe) | |
| 2195 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2196 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 2197 | for i=0,1,delay do | |
| 2198 | wait() | |
| 2199 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
| 2200 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 2201 | Part.Transparency=i | |
| 2202 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2203 | end | |
| 2204 | Part.Parent=nil | |
| 2205 | end),prt,msh,wld) | |
| 2206 | end | |
| 2207 | ||
| 2208 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 2209 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2210 | prt.Anchored=false | |
| 2211 | prt.CFrame=cframe | |
| 2212 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2213 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
| 2214 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2215 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 2216 | for i=0,1,delay do | |
| 2217 | wait() | |
| 2218 | Weld.C0=euler(i*20,0,0) | |
| 2219 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 2220 | Part.Transparency=i | |
| 2221 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2222 | end | |
| 2223 | Part.Parent=nil | |
| 2224 | end),prt,msh,wld) | |
| 2225 | end | |
| 2226 | ||
| 2227 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 2228 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2229 | prt.Anchored=true | |
| 2230 | prt.CFrame=cframe | |
| 2231 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2232 | game:GetService("Debris"):AddItem(prt,2)
| |
| 2233 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2234 | for i=0,1,delay do | |
| 2235 | wait() | |
| 2236 | Part.CFrame=Part.CFrame | |
| 2237 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2238 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2239 | prt2.Anchored=true | |
| 2240 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 2241 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
| |
| 2242 | game:GetService("Debris"):AddItem(prt2,2)
| |
| 2243 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2244 | for i=0,1,0.1 do | |
| 2245 | wait() | |
| 2246 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
| 2247 | end | |
| 2248 | Part.Parent=nil | |
| 2249 | end),prt2,msh2) | |
| 2250 | end | |
| 2251 | for i=0,1,delay*2 do | |
| 2252 | wait() | |
| 2253 | Part.CFrame=Part.CFrame | |
| 2254 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
| 2255 | end | |
| 2256 | Part.Parent=nil | |
| 2257 | end),prt,msh) | |
| 2258 | end | |
| 2259 | ||
| 2260 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 2261 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2262 | prt.Anchored=true | |
| 2263 | prt.CFrame=cframe | |
| 2264 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2265 | game:GetService("Debris"):AddItem(prt,2)
| |
| 2266 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2267 | for i=0,1,delay do | |
| 2268 | wait() | |
| 2269 | Part.CFrame=Part.CFrame | |
| 2270 | Part.Transparency=i | |
| 2271 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2272 | end | |
| 2273 | Part.Parent=nil | |
| 2274 | end),prt,msh) | |
| 2275 | end | |
| 2276 | ||
| 2277 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
| 2278 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2279 | prt.Anchored=true | |
| 2280 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 2281 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 2282 | game:GetService("Debris"):AddItem(prt,2)
| |
| 2283 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
| 2284 | CF=Part.CFrame | |
| 2285 | Numbb=0 | |
| 2286 | randnumb=math.random()/10 | |
| 2287 | rand1=math.random()/10 | |
| 2288 | for i=0,1,rand1 do | |
| 2289 | wait() | |
| 2290 | CF=CF*cf(0,math.random()/2,0) | |
| 2291 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
| 2292 | Part.CFrame=CF*euler(Numbb,0,0) | |
| 2293 | Part.Transparency=i | |
| 2294 | Numbb=Numbb+randnumb | |
| 2295 | end | |
| 2296 | Part.Parent=nil | |
| 2297 | end),prt,CF,Numbb,randnumb) | |
| 2298 | end | |
| 2299 | ||
| 2300 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 2301 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2302 | prt.Anchored=true | |
| 2303 | prt.CFrame=cframe | |
| 2304 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
| |
| 2305 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2306 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2307 | for i=0,1,delay do | |
| 2308 | wait() | |
| 2309 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
| 2310 | Part.Transparency=i | |
| 2311 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2312 | end | |
| 2313 | Part.Parent=nil | |
| 2314 | end),prt,msh) | |
| 2315 | end | |
| 2316 | ||
| 2317 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 2318 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2319 | prt.Anchored=true | |
| 2320 | prt.CFrame=cframe | |
| 2321 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
| |
| 2322 | game:GetService("Debris"):AddItem(prt,2)
| |
| 2323 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 2324 | for i=0,1,delay do | |
| 2325 | wait() | |
| 2326 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
| 2327 | Part.Transparency=i | |
| 2328 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 2329 | end | |
| 2330 | Part.Parent=nil | |
| 2331 | end),prt,msh) | |
| 2332 | end | |
| 2333 | ||
| 2334 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
| 2335 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 2336 | prt.Anchored=true | |
| 2337 | prt.CFrame=cframe*cf(x,y,z) | |
| 2338 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
| |
| 2339 | game:GetService("Debris"):AddItem(prt,5)
| |
| 2340 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
| 2341 | local num=math.random() | |
| 2342 | local num2=math.random(-3,2)+math.random() | |
| 2343 | local numm=0 | |
| 2344 | for i=0,1,delay*2 do | |
| 2345 | swait() | |
| 2346 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
| 2347 | Part.Transparency=i | |
| 2348 | numm=numm+0.01 | |
| 2349 | end | |
| 2350 | Part.Parent=nil | |
| 2351 | Mesh.Parent=nil | |
| 2352 | end),prt,msh,x,y,z) | |
| 2353 | end | |
| 2354 | ||
| 2355 | function dmgstart(dmg,what) | |
| 2356 | hitcon = what.Touched:connect(function(hit) | |
| 2357 | local hum = hit.Parent:FindFirstChild("Humanoid")
| |
| 2358 | if hum and not hum:IsDescendantOf(Character) then | |
| 2359 | hum:TakeDamage(dmg) | |
| 2360 | end | |
| 2361 | end) | |
| 2362 | end | |
| 2363 | ||
| 2364 | function dmgstop() | |
| 2365 | hitcon:disconnect() | |
| 2366 | end | |
| 2367 | ||
| 2368 | function Cloak() | |
| 2369 | Face.Parent=nil | |
| 2370 | cloaked=true | |
| 2371 | for _,v in pairs(Torso.Parent:children()) do | |
| 2372 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
| 2373 | coroutine.resume(coroutine.create(function() | |
| 2374 | for i=0,1,0.2 do | |
| 2375 | wait() | |
| 2376 | v.Transparency=i | |
| 2377 | end | |
| 2378 | v.Transparency=1 | |
| 2379 | end)) | |
| 2380 | end | |
| 2381 | if v.className=="Hat" then | |
| 2382 | hatp=v.Handle | |
| 2383 | coroutine.resume(coroutine.create(function(derp) | |
| 2384 | for i=0,1,0.2 do | |
| 2385 | wait() | |
| 2386 | derp.Transparency=i | |
| 2387 | end | |
| 2388 | derp.Transparency=1 | |
| 2389 | end),hatp) | |
| 2390 | end | |
| 2391 | end | |
| 2392 | for _,v in pairs(m:children()) do | |
| 2393 | if v.className=="Part" then | |
| 2394 | coroutine.resume(coroutine.create(function() | |
| 2395 | for i=0,1,0.2 do | |
| 2396 | wait() | |
| 2397 | v.Transparency=i | |
| 2398 | end | |
| 2399 | v.Transparency=1 | |
| 2400 | end)) | |
| 2401 | end | |
| 2402 | end | |
| 2403 | end | |
| 2404 | ||
| 2405 | function UnCloak() | |
| 2406 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
| |
| 2407 | Face.Parent=Head | |
| 2408 | cloaked=false | |
| 2409 | for _,v in pairs(Torso.Parent:children()) do | |
| 2410 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
| 2411 | coroutine.resume(coroutine.create(function() | |
| 2412 | for i=0,1,0.1 do | |
| 2413 | wait() | |
| 2414 | v.Transparency=v.Transparency-0.1 | |
| 2415 | end | |
| 2416 | v.Transparency=0 | |
| 2417 | end)) | |
| 2418 | end | |
| 2419 | if v.className=="Hat" then | |
| 2420 | hatp=v.Handle | |
| 2421 | coroutine.resume(coroutine.create(function(derp) | |
| 2422 | for i=0,1,0.1 do | |
| 2423 | wait() | |
| 2424 | derp.Transparency=derp.Transparency-0.1 | |
| 2425 | end | |
| 2426 | derp.Transparency=0 | |
| 2427 | end),hatp) | |
| 2428 | end | |
| 2429 | end | |
| 2430 | for _,v in pairs(m:children()) do | |
| 2431 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
| 2432 | coroutine.resume(coroutine.create(function() | |
| 2433 | for i=0,1,0.1 do | |
| 2434 | wait() | |
| 2435 | v.Transparency=v.Transparency-0.1 | |
| 2436 | end | |
| 2437 | v.Transparency=0 | |
| 2438 | end)) | |
| 2439 | v.Transparency=0 | |
| 2440 | end | |
| 2441 | end | |
| 2442 | end | |
| 2443 | ||
| 2444 | local origcolor = BrickColor.new("Pastel light blue")
| |
| 2445 | ---- This section of explosions. | |
| 2446 | ||
| 2447 | ---- | |
| 2448 | ||
| 2449 | ||
| 2450 | function ring(type,pos,scale,value) | |
| 2451 | local type = type | |
| 2452 | local rng = Instance.new("Part", char)
| |
| 2453 | rng.Anchored = true | |
| 2454 | rng.BrickColor = origcolor | |
| 2455 | rng.CanCollide = false | |
| 2456 | rng.FormFactor = 3 | |
| 2457 | rng.Name = "Ring" | |
| 2458 | rng.Size = Vector3.new(1, 1, 1) | |
| 2459 | rng.Transparency = 0 | |
| 2460 | rng.TopSurface = 0 | |
| 2461 | rng.BottomSurface = 0 | |
| 2462 | rng.CFrame = pos | |
| 2463 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2464 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2465 | rngm.Scale = scale | |
| 2466 | local scaler2 = 1 | |
| 2467 | if type == "Add" then | |
| 2468 | scaler2 = 1*value | |
| 2469 | elseif type == "Divide" then | |
| 2470 | scaler2 = 1/value | |
| 2471 | end | |
| 2472 | coroutine.resume(coroutine.create(function() | |
| 2473 | for i = 0,10,0.1 do | |
| 2474 | swait() | |
| 2475 | if type == "Add" then | |
| 2476 | scaler2 = scaler2 - 0.01*value | |
| 2477 | elseif type == "Divide" then | |
| 2478 | scaler2 = scaler2 - 0.01/value | |
| 2479 | end | |
| 2480 | rng.Transparency = rng.Transparency + 0.01 | |
| 2481 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 2482 | end | |
| 2483 | rng:Destroy() | |
| 2484 | end)) | |
| 2485 | end | |
| 2486 | ||
| 2487 | ||
| 2488 | function wave(type,pos,scale,value) | |
| 2489 | local type = type | |
| 2490 | local rng = Instance.new("Part", char)
| |
| 2491 | rng.Anchored = true | |
| 2492 | rng.BrickColor = origcolor | |
| 2493 | rng.CanCollide = false | |
| 2494 | rng.FormFactor = 3 | |
| 2495 | rng.Name = "Ring" | |
| 2496 | rng.Size = Vector3.new(1, 1, 1) | |
| 2497 | rng.Transparency = 0 | |
| 2498 | rng.TopSurface = 0 | |
| 2499 | rng.BottomSurface = 0 | |
| 2500 | rng.CFrame = pos | |
| 2501 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2502 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 2503 | rngm.Scale = scale | |
| 2504 | local scaler2 = 1 | |
| 2505 | if type == "Add" then | |
| 2506 | scaler2 = 1*value | |
| 2507 | elseif type == "Divide" then | |
| 2508 | scaler2 = 1/value | |
| 2509 | end | |
| 2510 | coroutine.resume(coroutine.create(function() | |
| 2511 | for i = 0,10,0.1 do | |
| 2512 | swait() | |
| 2513 | if type == "Add" then | |
| 2514 | scaler2 = scaler2 - 0.01*value | |
| 2515 | elseif type == "Divide" then | |
| 2516 | scaler2 = scaler2 - 0.01/value | |
| 2517 | end | |
| 2518 | rng.Transparency = rng.Transparency + 0.01 | |
| 2519 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 2520 | end | |
| 2521 | rng:Destroy() | |
| 2522 | end)) | |
| 2523 | end | |
| 2524 | ||
| 2525 | function wind(type,pos,scale,value,speed) | |
| 2526 | local type = type | |
| 2527 | local rng = Instance.new("Part", char)
| |
| 2528 | rng.Anchored = true | |
| 2529 | rng.BrickColor = origcolor | |
| 2530 | rng.CanCollide = false | |
| 2531 | rng.FormFactor = 3 | |
| 2532 | rng.Name = "Ring" | |
| 2533 | rng.Size = Vector3.new(1, 1, 1) | |
| 2534 | rng.Transparency = 0 | |
| 2535 | rng.TopSurface = 0 | |
| 2536 | rng.BottomSurface = 0 | |
| 2537 | rng.CFrame = pos | |
| 2538 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2539 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 2540 | rngm.Scale = scale | |
| 2541 | local scaler2 = 1 | |
| 2542 | if type == "Add" then | |
| 2543 | scaler2 = 1*value | |
| 2544 | elseif type == "Divide" then | |
| 2545 | scaler2 = 1/value | |
| 2546 | end | |
| 2547 | coroutine.resume(coroutine.create(function() | |
| 2548 | for i = 0,10,0.1 do | |
| 2549 | swait() | |
| 2550 | if type == "Add" then | |
| 2551 | scaler2 = scaler2 - 0.01*value | |
| 2552 | elseif type == "Divide" then | |
| 2553 | scaler2 = scaler2 - 0.01/value | |
| 2554 | end | |
| 2555 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
| 2556 | rng.Transparency = rng.Transparency + 0.01 | |
| 2557 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 2558 | end | |
| 2559 | rng:Destroy() | |
| 2560 | end)) | |
| 2561 | end | |
| 2562 | ||
| 2563 | function groundwind(type,pos,scale,value,speed) | |
| 2564 | local type = type | |
| 2565 | local rng = Instance.new("Part", char)
| |
| 2566 | rng.Anchored = true | |
| 2567 | rng.BrickColor = origcolor | |
| 2568 | rng.CanCollide = false | |
| 2569 | rng.FormFactor = 3 | |
| 2570 | rng.Name = "Ring" | |
| 2571 | rng.Size = Vector3.new(1, 1, 1) | |
| 2572 | rng.Transparency = 0 | |
| 2573 | rng.TopSurface = 0 | |
| 2574 | rng.BottomSurface = 0 | |
| 2575 | rng.CFrame = pos | |
| 2576 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2577 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
| 2578 | rngm.Scale = scale | |
| 2579 | local scaler2 = 1 | |
| 2580 | if type == "Add" then | |
| 2581 | scaler2 = 1*value | |
| 2582 | elseif type == "Divide" then | |
| 2583 | scaler2 = 1/value | |
| 2584 | end | |
| 2585 | coroutine.resume(coroutine.create(function() | |
| 2586 | for i = 0,10,0.1 do | |
| 2587 | swait() | |
| 2588 | if type == "Add" then | |
| 2589 | scaler2 = scaler2 - 0.01*value | |
| 2590 | elseif type == "Divide" then | |
| 2591 | scaler2 = scaler2 - 0.01/value | |
| 2592 | end | |
| 2593 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
| 2594 | rng.Transparency = rng.Transparency + 0.01 | |
| 2595 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2) | |
| 2596 | end | |
| 2597 | rng:Destroy() | |
| 2598 | end)) | |
| 2599 | end | |
| 2600 | ||
| 2601 | function CameraManager() | |
| 2602 | if TwoD and not CamInterrupt then | |
| 2603 | if Humanoid.Health > 0 then | |
| 2604 | Camera.CameraSubject = Humanoid | |
| 2605 | Camera.CameraType = "Scriptable" | |
| 2606 | Humanoid.AutoRotate = false | |
| 2607 | if Booleans.GyroUse then | |
| 2608 | Directer.MaxTorque = Vec3(0, huge, 0) | |
| 2609 | else | |
| 2610 | Directer.MaxTorque = Vec3(0, 0, 0) | |
| 2611 | end | |
| 2612 | if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then | |
| 2613 | if Booleans.CamFollow then | |
| 2614 | CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z)) | |
| 2615 | Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position) | |
| 2616 | else | |
| 2617 | CPart.Position = RootPart.Position | |
| 2618 | end | |
| 2619 | else | |
| 2620 | local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p | |
| 2621 | CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z)) | |
| 2622 | end | |
| 2623 | Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2) | |
| 2624 | else | |
| 2625 | Camera.CameraSubject = Humanoid | |
| 2626 | Camera.CameraType = "Custom" | |
| 2627 | Controller.Disabled = false | |
| 2628 | end | |
| 2629 | end | |
| 2630 | end | |
| 2631 | ||
| 2632 | function ring(type,pos,scale,value) | |
| 2633 | local type = type | |
| 2634 | local rng = Instance.new("Part", char)
| |
| 2635 | rng.Anchored = true | |
| 2636 | rng.BrickColor = origcolor | |
| 2637 | rng.CanCollide = false | |
| 2638 | rng.FormFactor = 3 | |
| 2639 | rng.Name = "Ring" | |
| 2640 | rng.Size = Vector3.new(1, 1, 1) | |
| 2641 | rng.Transparency = 0 | |
| 2642 | rng.TopSurface = 0 | |
| 2643 | rng.BottomSurface = 0 | |
| 2644 | rng.CFrame = pos | |
| 2645 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2646 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 2647 | rngm.Scale = scale | |
| 2648 | local scaler2 = 1 | |
| 2649 | if type == "Add" then | |
| 2650 | scaler2 = 1*value | |
| 2651 | elseif type == "Divide" then | |
| 2652 | scaler2 = 1/value | |
| 2653 | end | |
| 2654 | coroutine.resume(coroutine.create(function() | |
| 2655 | for i = 0,10,0.1 do | |
| 2656 | swait() | |
| 2657 | if type == "Add" then | |
| 2658 | scaler2 = scaler2 - 0.01*value | |
| 2659 | elseif type == "Divide" then | |
| 2660 | scaler2 = scaler2 - 0.01/value | |
| 2661 | end | |
| 2662 | rng.Transparency = rng.Transparency + 0.01 | |
| 2663 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
| 2664 | end | |
| 2665 | rng:Destroy() | |
| 2666 | end)) | |
| 2667 | end | |
| 2668 | ||
| 2669 | ||
| 2670 | function wave(type,pos,scale,value) | |
| 2671 | local type = type | |
| 2672 | local rng = Instance.new("Part", char)
| |
| 2673 | rng.Anchored = true | |
| 2674 | rng.BrickColor = origcolor | |
| 2675 | rng.CanCollide = false | |
| 2676 | rng.FormFactor = 3 | |
| 2677 | rng.Name = "Ring" | |
| 2678 | rng.Size = Vector3.new(1, 1, 1) | |
| 2679 | rng.Transparency = 0 | |
| 2680 | rng.TopSurface = 0 | |
| 2681 | rng.BottomSurface = 0 | |
| 2682 | rng.CFrame = pos | |
| 2683 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2684 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 2685 | rngm.Scale = scale | |
| 2686 | local scaler2 = 1 | |
| 2687 | if type == "Add" then | |
| 2688 | scaler2 = 1*value | |
| 2689 | elseif type == "Divide" then | |
| 2690 | scaler2 = 1/value | |
| 2691 | end | |
| 2692 | coroutine.resume(coroutine.create(function() | |
| 2693 | for i = 0,10,0.1 do | |
| 2694 | swait() | |
| 2695 | if type == "Add" then | |
| 2696 | scaler2 = scaler2 - 0.01*value | |
| 2697 | elseif type == "Divide" then | |
| 2698 | scaler2 = scaler2 - 0.01/value | |
| 2699 | end | |
| 2700 | rng.Transparency = rng.Transparency + 0.01 | |
| 2701 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
| 2702 | end | |
| 2703 | rng:Destroy() | |
| 2704 | end)) | |
| 2705 | end | |
| 2706 | ||
| 2707 | function sphere(bonuspeed,type,pos,scale,value,color) | |
| 2708 | local type = type | |
| 2709 | local rng = Instance.new("Part", char)
| |
| 2710 | rng.Anchored = true | |
| 2711 | if ModeOfGlitch ~= 9 then | |
| 2712 | rng.BrickColor = color | |
| 2713 | elseif ModeOfGlitch == 9 then | |
| 2714 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
| 2715 | end | |
| 2716 | rng.CanCollide = false | |
| 2717 | rng.FormFactor = 3 | |
| 2718 | rng.Name = "Ring" | |
| 2719 | rng.Material = "Neon" | |
| 2720 | rng.Size = Vector3.new(1, 1, 1) | |
| 2721 | rng.Transparency = 0 | |
| 2722 | rng.TopSurface = 0 | |
| 2723 | rng.BottomSurface = 0 | |
| 2724 | rng.CFrame = pos | |
| 2725 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2726 | rngm.MeshType = "Sphere" | |
| 2727 | rngm.Scale = scale | |
| 2728 | if rainbowmode == true then | |
| 2729 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2730 | end | |
| 2731 | if ModeOfGlitch == 9 then | |
| 2732 | coroutine.resume(coroutine.create(function() | |
| 2733 | while true do | |
| 2734 | swait() | |
| 2735 | if rng.Parent ~= nil then | |
| 2736 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
| 2737 | else | |
| 2738 | break | |
| 2739 | end | |
| 2740 | end | |
| 2741 | end)) | |
| 2742 | end | |
| 2743 | local scaler2 = 1 | |
| 2744 | if type == "Add" then | |
| 2745 | scaler2 = 1*value | |
| 2746 | elseif type == "Divide" then | |
| 2747 | scaler2 = 1/value | |
| 2748 | end | |
| 2749 | coroutine.resume(coroutine.create(function() | |
| 2750 | for i = 0,10/bonuspeed,0.1 do | |
| 2751 | swait() | |
| 2752 | if rainbowmode == true then | |
| 2753 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2754 | end | |
| 2755 | if type == "Add" then | |
| 2756 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 2757 | elseif type == "Divide" then | |
| 2758 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 2759 | end | |
| 2760 | if chaosmode == true then | |
| 2761 | rng.BrickColor = BrickColor.random() | |
| 2762 | end | |
| 2763 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 2764 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
| 2765 | end | |
| 2766 | rng:Destroy() | |
| 2767 | end)) | |
| 2768 | end | |
| 2769 | ||
| 2770 | function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color) | |
| 2771 | local type = type | |
| 2772 | local rng = Instance.new("Part", char)
| |
| 2773 | rng.Anchored = true | |
| 2774 | if ModeOfGlitch ~= 9 then | |
| 2775 | rng.BrickColor = color | |
| 2776 | elseif ModeOfGlitch == 9 then | |
| 2777 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
| 2778 | end | |
| 2779 | rng.CanCollide = false | |
| 2780 | rng.FormFactor = 3 | |
| 2781 | rng.Name = "Ring" | |
| 2782 | rng.Material = "Neon" | |
| 2783 | rng.Size = Vector3.new(1, 1, 1) | |
| 2784 | rng.Transparency = 0 | |
| 2785 | rng.TopSurface = 0 | |
| 2786 | rng.BottomSurface = 0 | |
| 2787 | rng.CFrame = pos | |
| 2788 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2789 | rngm.MeshType = "Sphere" | |
| 2790 | rngm.Scale = scale | |
| 2791 | local scaler2 = 1 | |
| 2792 | local scaler2b = 1 | |
| 2793 | local scaler2c = 1 | |
| 2794 | if type == "Add" then | |
| 2795 | scaler2 = 1*value | |
| 2796 | scaler2b = 1*value2 | |
| 2797 | scaler2c = 1*value3 | |
| 2798 | elseif type == "Divide" then | |
| 2799 | scaler2 = 1/value | |
| 2800 | scaler2b = 1/value2 | |
| 2801 | scaler2c = 1/value3 | |
| 2802 | end | |
| 2803 | if ModeOfGlitch == 9 then | |
| 2804 | coroutine.resume(coroutine.create(function() | |
| 2805 | while true do | |
| 2806 | swait() | |
| 2807 | if rng.Parent ~= nil then | |
| 2808 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
| 2809 | else | |
| 2810 | break | |
| 2811 | end | |
| 2812 | end | |
| 2813 | end)) | |
| 2814 | end | |
| 2815 | coroutine.resume(coroutine.create(function() | |
| 2816 | for i = 0,10/bonuspeed,0.1 do | |
| 2817 | swait() | |
| 2818 | if type == "Add" then | |
| 2819 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 2820 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
| 2821 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
| 2822 | elseif type == "Divide" then | |
| 2823 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 2824 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
| 2825 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
| 2826 | end | |
| 2827 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 2828 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
| 2829 | end | |
| 2830 | rng:Destroy() | |
| 2831 | end)) | |
| 2832 | end | |
| 2833 | ||
| 2834 | function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color) | |
| 2835 | local type = type | |
| 2836 | local rotenable = rotatingop | |
| 2837 | local rng = Instance.new("Part", char)
| |
| 2838 | rng.Anchored = true | |
| 2839 | rng.BrickColor = color | |
| 2840 | rng.CanCollide = false | |
| 2841 | rng.FormFactor = 3 | |
| 2842 | rng.Name = "Ring" | |
| 2843 | rng.Material = "Neon" | |
| 2844 | rng.Size = Vector3.new(1, 1, 1) | |
| 2845 | rng.Transparency = 0 | |
| 2846 | if typeoftrans == "In" then | |
| 2847 | rng.Transparency = 1 | |
| 2848 | end | |
| 2849 | rng.TopSurface = 0 | |
| 2850 | rng.BottomSurface = 0 | |
| 2851 | rng.CFrame = pos | |
| 2852 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2853 | rngm.MeshType = "FileMesh" | |
| 2854 | if typeofshape == "Normal" then | |
| 2855 | rngm.MeshId = "rbxassetid://662586858" | |
| 2856 | elseif typeofshape == "Round" then | |
| 2857 | rngm.MeshId = "rbxassetid://662585058" | |
| 2858 | end | |
| 2859 | rngm.Scale = scale | |
| 2860 | local scaler2 = 1/10 | |
| 2861 | if type == "Add" then | |
| 2862 | scaler2 = 1*value/10 | |
| 2863 | elseif type == "Divide" then | |
| 2864 | scaler2 = 1/value/10 | |
| 2865 | end | |
| 2866 | local randomrot = math.random(1,2) | |
| 2867 | coroutine.resume(coroutine.create(function() | |
| 2868 | for i = 0,10/bonuspeed,0.1 do | |
| 2869 | swait() | |
| 2870 | if type == "Add" then | |
| 2871 | scaler2 = scaler2 - 0.01*value/bonuspeed/10 | |
| 2872 | elseif type == "Divide" then | |
| 2873 | scaler2 = scaler2 - 0.01/value*bonuspeed/10 | |
| 2874 | end | |
| 2875 | if rotenable == true then | |
| 2876 | if randomrot == 1 then | |
| 2877 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0) | |
| 2878 | elseif randomrot == 2 then | |
| 2879 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0) | |
| 2880 | end | |
| 2881 | end | |
| 2882 | if typeoftrans == "Out" then | |
| 2883 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 2884 | elseif typeoftrans == "In" then | |
| 2885 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
| 2886 | end | |
| 2887 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10) | |
| 2888 | end | |
| 2889 | rng:Destroy() | |
| 2890 | end)) | |
| 2891 | end | |
| 2892 | ||
| 2893 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
| 2894 | local type = type | |
| 2895 | local rng = Instance.new("Part", char)
| |
| 2896 | rng.Anchored = true | |
| 2897 | rng.BrickColor = color | |
| 2898 | rng.CanCollide = false | |
| 2899 | rng.FormFactor = 3 | |
| 2900 | rng.Name = "Ring" | |
| 2901 | rng.Material = "Neon" | |
| 2902 | rng.Size = Vector3.new(1, 1, 1) | |
| 2903 | rng.Transparency = 0 | |
| 2904 | rng.TopSurface = 0 | |
| 2905 | rng.BottomSurface = 0 | |
| 2906 | rng.CFrame = pos | |
| 2907 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 2908 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2909 | rngm.MeshType = "Brick" | |
| 2910 | rngm.Scale = vt(x1,y1,z1) | |
| 2911 | if rainbowmode == true then | |
| 2912 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2913 | end | |
| 2914 | local scaler2 = 1 | |
| 2915 | local speeder = FastSpeed/10 | |
| 2916 | if type == "Add" then | |
| 2917 | scaler2 = 1*value | |
| 2918 | elseif type == "Divide" then | |
| 2919 | scaler2 = 1/value | |
| 2920 | end | |
| 2921 | coroutine.resume(coroutine.create(function() | |
| 2922 | for i = 0,10/bonuspeed,0.1 do | |
| 2923 | swait() | |
| 2924 | if rainbowmode == true then | |
| 2925 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2926 | end | |
| 2927 | if type == "Add" then | |
| 2928 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 2929 | elseif type == "Divide" then | |
| 2930 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 2931 | end | |
| 2932 | if chaosmode == true then | |
| 2933 | rng.BrickColor = BrickColor.random() | |
| 2934 | end | |
| 2935 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
| 2936 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 2937 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 2938 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
| 2939 | end | |
| 2940 | rng:Destroy() | |
| 2941 | end)) | |
| 2942 | end | |
| 2943 | ||
| 2944 | function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
| 2945 | local type = type | |
| 2946 | local rng = Instance.new("Part", char)
| |
| 2947 | rng.Anchored = true | |
| 2948 | rng.BrickColor = color | |
| 2949 | rng.CanCollide = false | |
| 2950 | rng.FormFactor = 3 | |
| 2951 | rng.Name = "Ring" | |
| 2952 | rng.Material = "Neon" | |
| 2953 | rng.Size = Vector3.new(1, 1, 1) | |
| 2954 | rng.Transparency = 0 | |
| 2955 | rng.TopSurface = 0 | |
| 2956 | rng.BottomSurface = 0 | |
| 2957 | rng.CFrame = pos | |
| 2958 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 2959 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 2960 | rngm.MeshType = "Brick" | |
| 2961 | rngm.Scale = vt(x1,y1,z1) | |
| 2962 | if rainbowmode == true then | |
| 2963 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2964 | end | |
| 2965 | local scaler2 = 1 | |
| 2966 | local speeder = FastSpeed/10 | |
| 2967 | if type == "Add" then | |
| 2968 | scaler2 = 1*value | |
| 2969 | elseif type == "Divide" then | |
| 2970 | scaler2 = 1/value | |
| 2971 | end | |
| 2972 | coroutine.resume(coroutine.create(function() | |
| 2973 | for i = 0,10/bonuspeed,0.1 do | |
| 2974 | swait() | |
| 2975 | if rainbowmode == true then | |
| 2976 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 2977 | end | |
| 2978 | if type == "Add" then | |
| 2979 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 2980 | elseif type == "Divide" then | |
| 2981 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 2982 | end | |
| 2983 | if chaosmode == true then | |
| 2984 | rng.BrickColor = BrickColor.random() | |
| 2985 | end | |
| 2986 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
| 2987 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 2988 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 2989 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
| 2990 | end | |
| 2991 | rng:Destroy() | |
| 2992 | end)) | |
| 2993 | end | |
| 2994 | ||
| 2995 | function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
| 2996 | local type = type | |
| 2997 | local rng = Instance.new("Part", char)
| |
| 2998 | rng.Anchored = true | |
| 2999 | rng.BrickColor = color | |
| 3000 | rng.CanCollide = false | |
| 3001 | rng.FormFactor = 3 | |
| 3002 | rng.Name = "Ring" | |
| 3003 | rng.Material = "Neon" | |
| 3004 | rng.Size = Vector3.new(1, 1, 1) | |
| 3005 | rng.Transparency = 0 | |
| 3006 | rng.TopSurface = 0 | |
| 3007 | rng.BottomSurface = 0 | |
| 3008 | rng.CFrame = pos | |
| 3009 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 3010 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 3011 | rngm.MeshType = "Brick" | |
| 3012 | rngm.Scale = vt(x1,y1,z1) | |
| 3013 | if rainbowmode == true then | |
| 3014 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 3015 | end | |
| 3016 | local scaler2 = 0 | |
| 3017 | local speeder = FastSpeed/10 | |
| 3018 | if type == "Add" then | |
| 3019 | scaler2 = 1*value | |
| 3020 | elseif type == "Divide" then | |
| 3021 | scaler2 = 1/value | |
| 3022 | end | |
| 3023 | coroutine.resume(coroutine.create(function() | |
| 3024 | for i = 0,10/bonuspeed,0.1 do | |
| 3025 | swait() | |
| 3026 | if rainbowmode == true then | |
| 3027 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 3028 | end | |
| 3029 | if type == "Add" then | |
| 3030 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 3031 | elseif type == "Divide" then | |
| 3032 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 3033 | end | |
| 3034 | if chaosmode == true then | |
| 3035 | rng.BrickColor = BrickColor.random() | |
| 3036 | end | |
| 3037 | speeder = speeder + 0.01*FastSpeed*bonuspeed/10 | |
| 3038 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 3039 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 3040 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
| 3041 | end | |
| 3042 | rng:Destroy() | |
| 3043 | end)) | |
| 3044 | end | |
| 3045 | ||
| 3046 | function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3) | |
| 3047 | local type = type | |
| 3048 | local rng = Instance.new("Part", char)
| |
| 3049 | rng.Anchored = true | |
| 3050 | rng.BrickColor = color | |
| 3051 | rng.Color = color3 | |
| 3052 | rng.CanCollide = false | |
| 3053 | rng.FormFactor = 3 | |
| 3054 | rng.Name = "Ring" | |
| 3055 | rng.Material = "Neon" | |
| 3056 | rng.Size = Vector3.new(1, 1, 1) | |
| 3057 | rng.Transparency = 0 | |
| 3058 | rng.TopSurface = 0 | |
| 3059 | rng.BottomSurface = 0 | |
| 3060 | rng.CFrame = pos | |
| 3061 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 3062 | rngm.MeshType = "Brick" | |
| 3063 | rngm.Scale = scale | |
| 3064 | local scaler2 = 1 | |
| 3065 | local scaler2b = 1 | |
| 3066 | local scaler2c = 1 | |
| 3067 | if type == "Add" then | |
| 3068 | scaler2 = 1*value | |
| 3069 | scaler2b = 1*value2 | |
| 3070 | scaler2c = 1*value3 | |
| 3071 | elseif type == "Divide" then | |
| 3072 | scaler2 = 1/value | |
| 3073 | scaler2b = 1/value2 | |
| 3074 | scaler2c = 1/value3 | |
| 3075 | end | |
| 3076 | coroutine.resume(coroutine.create(function() | |
| 3077 | for i = 0,10/bonuspeed,0.1 do | |
| 3078 | swait() | |
| 3079 | if type == "Add" then | |
| 3080 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 3081 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
| 3082 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
| 3083 | elseif type == "Divide" then | |
| 3084 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 3085 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
| 3086 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
| 3087 | end | |
| 3088 | rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 3089 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 3090 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
| 3091 | end | |
| 3092 | rng:Destroy() | |
| 3093 | end)) | |
| 3094 | end | |
| 3095 | ||
| 3096 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
| 3097 | local type = type | |
| 3098 | local rng = Instance.new("Part", char)
| |
| 3099 | rng.Anchored = true | |
| 3100 | if ModeOfGlitch ~= 9 then | |
| 3101 | rng.BrickColor = color | |
| 3102 | elseif ModeOfGlitch == 9 then | |
| 3103 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
| 3104 | end | |
| 3105 | rng.CanCollide = false | |
| 3106 | rng.FormFactor = 3 | |
| 3107 | rng.Name = "Ring" | |
| 3108 | rng.Material = "Neon" | |
| 3109 | rng.Size = Vector3.new(1, 1, 1) | |
| 3110 | rng.Transparency = 0 | |
| 3111 | rng.TopSurface = 0 | |
| 3112 | rng.BottomSurface = 0 | |
| 3113 | rng.CFrame = pos | |
| 3114 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 3115 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 3116 | rngm.MeshType = "Sphere" | |
| 3117 | rngm.Scale = vt(x1,y1,z1) | |
| 3118 | if rainbowmode == true then | |
| 3119 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 3120 | end | |
| 3121 | if ModeOfGlitch == 9 then | |
| 3122 | coroutine.resume(coroutine.create(function() | |
| 3123 | while true do | |
| 3124 | swait() | |
| 3125 | if rng.Parent ~= nil then | |
| 3126 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
| 3127 | else | |
| 3128 | break | |
| 3129 | end | |
| 3130 | end | |
| 3131 | end)) | |
| 3132 | end | |
| 3133 | local scaler2 = 1 | |
| 3134 | local speeder = FastSpeed | |
| 3135 | if type == "Add" then | |
| 3136 | scaler2 = 1*value | |
| 3137 | elseif type == "Divide" then | |
| 3138 | scaler2 = 1/value | |
| 3139 | end | |
| 3140 | coroutine.resume(coroutine.create(function() | |
| 3141 | for i = 0,10/bonuspeed,0.1 do | |
| 3142 | swait() | |
| 3143 | if rainbowmode == true then | |
| 3144 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 3145 | end | |
| 3146 | if type == "Add" then | |
| 3147 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 3148 | elseif type == "Divide" then | |
| 3149 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 3150 | end | |
| 3151 | if chaosmode == true then | |
| 3152 | rng.BrickColor = BrickColor.random() | |
| 3153 | end | |
| 3154 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
| 3155 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 3156 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
| 3157 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
| 3158 | end | |
| 3159 | rng:Destroy() | |
| 3160 | end)) | |
| 3161 | end | |
| 3162 | ||
| 3163 | ||
| 3164 | function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
| 3165 | local type = type | |
| 3166 | local rng = Instance.new("Part", char)
| |
| 3167 | rng.Anchored = true | |
| 3168 | if ModeOfGlitch ~= 9 then | |
| 3169 | rng.BrickColor = color | |
| 3170 | elseif ModeOfGlitch == 9 then | |
| 3171 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
| 3172 | end | |
| 3173 | rng.CanCollide = false | |
| 3174 | rng.FormFactor = 3 | |
| 3175 | rng.Name = "Ring" | |
| 3176 | rng.Material = "Neon" | |
| 3177 | rng.Size = Vector3.new(1, 1, 1) | |
| 3178 | rng.Transparency = 1 | |
| 3179 | rng.TopSurface = 0 | |
| 3180 | rng.BottomSurface = 0 | |
| 3181 | rng.CFrame = pos | |
| 3182 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
| 3183 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 3184 | rngm.MeshType = "Sphere" | |
| 3185 | rngm.Scale = vt(x1,y1,z1) | |
| 3186 | if rainbowmode == true then | |
| 3187 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 3188 | end | |
| 3189 | if ModeOfGlitch == 9 then | |
| 3190 | coroutine.resume(coroutine.create(function() | |
| 3191 | while true do | |
| 3192 | swait() | |
| 3193 | if rng.Parent ~= nil then | |
| 3194 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
| 3195 | else | |
| 3196 | break | |
| 3197 | end | |
| 3198 | end | |
| 3199 | end)) | |
| 3200 | end | |
| 3201 | local scaler2 = 1 | |
| 3202 | local speeder = FastSpeed | |
| 3203 | if type == "Add" then | |
| 3204 | scaler2 = 1*value | |
| 3205 | elseif type == "Divide" then | |
| 3206 | scaler2 = 1/value | |
| 3207 | end | |
| 3208 | coroutine.resume(coroutine.create(function() | |
| 3209 | for i = 0,10/bonuspeed,0.1 do | |
| 3210 | swait() | |
| 3211 | if rainbowmode == true then | |
| 3212 | rng.Color = Color3.new(r/255,g/255,b/255) | |
| 3213 | end | |
| 3214 | if type == "Add" then | |
| 3215 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
| 3216 | elseif type == "Divide" then | |
| 3217 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
| 3218 | end | |
| 3219 | if chaosmode == true then | |
| 3220 | rng.BrickColor = BrickColor.random() | |
| 3221 | end | |
| 3222 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
| 3223 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
| 3224 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
| 3225 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
| 3226 | end | |
| 3227 | rng:Destroy() | |
| 3228 | end)) | |
| 3229 | end | |
| 3230 | ||
| 3231 | function dmg(dude) | |
| 3232 | if dude.Name ~= Character then | |
| 3233 | local keptcolor = MAINRUINCOLOR | |
| 3234 | local bgf = Instance.new("BodyGyro",dude.Head)
| |
| 3235 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
| 3236 | --[[local val = Instance.new("BoolValue",dude)
| |
| 3237 | val.Name = "IsHit"]]-- | |
| 3238 | local ds = coroutine.wrap(function() | |
| 3239 | dude:WaitForChild("Head"):BreakJoints()
| |
| 3240 | for i, v in pairs(dude:GetChildren()) do | |
| 3241 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 3242 | v.Name = "DEMINISHED" | |
| 3243 | end | |
| 3244 | end | |
| 3245 | wait(0.5) | |
| 3246 | targetted = nil | |
| 3247 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285)
| |
| 3248 | coroutine.resume(coroutine.create(function() | |
| 3249 | for i, v in pairs(dude:GetChildren()) do | |
| 3250 | if v:IsA("Accessory") then
| |
| 3251 | v:Destroy() | |
| 3252 | end | |
| 3253 | if v:IsA("Humanoid") then
| |
| 3254 | v:Destroy() | |
| 3255 | end | |
| 3256 | if v:IsA("CharacterMesh") then
| |
| 3257 | v:Destroy() | |
| 3258 | end | |
| 3259 | if v:IsA("Model") then
| |
| 3260 | v:Destroy() | |
| 3261 | end | |
| 3262 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 3263 | for x, o in pairs(v:GetChildren()) do | |
| 3264 | if o:IsA("Decal") then
| |
| 3265 | o:Destroy() | |
| 3266 | end | |
| 3267 | end | |
| 3268 | coroutine.resume(coroutine.create(function() | |
| 3269 | v.Material = "Neon" | |
| 3270 | v.CanCollide = false | |
| 3271 | v.Anchored = false | |
| 3272 | local bld = Instance.new("ParticleEmitter",v)
| |
| 3273 | bld.LightEmission = 0.75 | |
| 3274 | bld.Texture = "rbxassetid://363275192" ---284205403 | |
| 3275 | bld.Color = ColorSequence.new(keptcolor.Color) | |
| 3276 | bld.Rate = 500 | |
| 3277 | bld.Lifetime = NumberRange.new(1) | |
| 3278 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 3279 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 3280 | bld.Speed = NumberRange.new(2,5) | |
| 3281 | bld.VelocitySpread = 50000 | |
| 3282 | bld.Rotation = NumberRange.new(-500,500) | |
| 3283 | bld.RotSpeed = NumberRange.new(-500,500) | |
| 3284 | local sbs = Instance.new("BodyPosition", v)
| |
| 3285 | sbs.P = 3000 | |
| 3286 | sbs.D = 1000 | |
| 3287 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
| 3288 | sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2)) | |
| 3289 | v.Color = keptcolor.Color | |
| 3290 | coroutine.resume(coroutine.create(function() | |
| 3291 | for i = 0, 49 do | |
| 3292 | swait(1) | |
| 3293 | v:BreakJoints() | |
| 3294 | v.Transparency = v.Transparency + 0.02 | |
| 3295 | end | |
| 3296 | v:BreakJoints() | |
| 3297 | sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor) | |
| 3298 | CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75)
| |
| 3299 | bld.Speed = NumberRange.new(10,25) | |
| 3300 | bld.Drag = 5 | |
| 3301 | bld.Acceleration = vt(0,2,0) | |
| 3302 | wait(0.5) | |
| 3303 | bld.Enabled = false | |
| 3304 | wait(8) | |
| 3305 | v:Destroy() | |
| 3306 | dude:Destroy() | |
| 3307 | end)) | |
| 3308 | end)) | |
| 3309 | end | |
| 3310 | end | |
| 3311 | end)) | |
| 3312 | end) | |
| 3313 | ds() | |
| 3314 | end | |
| 3315 | end | |
| 3316 | ||
| 3317 | ||
| 3318 | function FindNearestHead(Position, Distance, SinglePlayer) | |
| 3319 | if SinglePlayer then | |
| 3320 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
| 3321 | end | |
| 3322 | local List = {}
| |
| 3323 | for i, v in pairs(workspace:GetChildren()) do | |
| 3324 | if v:IsA("Model") then
| |
| 3325 | if v:findFirstChild("Head") then
| |
| 3326 | if v ~= Character then | |
| 3327 | if (v.Head.Position - Position).magnitude <= Distance then | |
| 3328 | table.insert(List, v) | |
| 3329 | end | |
| 3330 | end | |
| 3331 | end | |
| 3332 | end | |
| 3333 | end | |
| 3334 | return List | |
| 3335 | end | |
| 3336 | ||
| 3337 | function FaceMouse() | |
| 3338 | Cam = workspace.CurrentCamera | |
| 3339 | return {
| |
| 3340 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
| 3341 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 3342 | } | |
| 3343 | end | |
| 3344 | ||
| 3345 | function FaceMouse2() | |
| 3346 | Cam = workspace.CurrentCamera | |
| 3347 | return {
| |
| 3348 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
| 3349 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
| 3350 | } | |
| 3351 | end | |
| 3352 | ||
| 3353 | local ModeOfGlitch = 1 | |
| 3354 | -- Functions are ready. | |
| 3355 | local storehumanoidWS = 16 | |
| 3356 | ||
| 3357 | function CorruptBlink() | |
| 3358 | for i = 0, 14 do | |
| 3359 | PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0) | |
| 3360 | end | |
| 3361 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 3362 | CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1)
| |
| 3363 | RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0) | |
| 3364 | CameraEnshaking(2,10) | |
| 3365 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do | |
| 3366 | if v:FindFirstChild('Head') then
| |
| 3367 | dmg(v) | |
| 3368 | end | |
| 3369 | end | |
| 3370 | for i = 0, 14 do | |
| 3371 | PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0) | |
| 3372 | end | |
| 3373 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 3374 | end | |
| 3375 | function PureBomb() | |
| 3376 | attack = true | |
| 3377 | hum.WalkSpeed = 0 | |
| 3378 | local orb = Instance.new("Part", char)
| |
| 3379 | orb.Anchored = true | |
| 3380 | orb.BrickColor = BrickColor.new("Toothpaste")
| |
| 3381 | orb.CanCollide = false | |
| 3382 | orb.FormFactor = 3 | |
| 3383 | orb.Name = "Ring" | |
| 3384 | orb.Material = "Neon" | |
| 3385 | orb.Size = Vector3.new(1, 1, 1) | |
| 3386 | orb.Transparency = 0 | |
| 3387 | orb.TopSurface = 0 | |
| 3388 | orb.BottomSurface = 0 | |
| 3389 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 3390 | orbm.MeshType = "Sphere" | |
| 3391 | orbm.Name = "SizeMesh" | |
| 3392 | orbm.Scale = vt(0,0,0) | |
| 3393 | local scaled = 0.1 | |
| 3394 | local posid = 0 | |
| 3395 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1)
| |
| 3396 | for i = 0, 5, 0.1 do | |
| 3397 | swait() | |
| 3398 | scaled = scaled - 0.001 | |
| 3399 | posid = posid - scaled | |
| 3400 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
| 3401 | local scaled = 0.1 | |
| 3402 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
| 3403 | sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10)
| |
| 3404 | PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0)
| |
| 3405 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1) | |
| 3406 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1) | |
| 3407 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3408 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3409 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
| 3410 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1) | |
| 3411 | end | |
| 3412 | for i = 0, 2, 0.1 do | |
| 3413 | swait() | |
| 3414 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
| 3415 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
| 3416 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
| 3417 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4) | |
| 3418 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
| 3419 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
| 3420 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
| 3421 | end | |
| 3422 | coroutine.resume(coroutine.create(function() | |
| 3423 | orb.Anchored = false | |
| 3424 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1)
| |
| 3425 | local a = Instance.new("Part",workspace)
| |
| 3426 | a.Name = "Direction" | |
| 3427 | a.Anchored = true | |
| 3428 | a.BrickColor = bc("Bright red")
| |
| 3429 | a.Material = "Neon" | |
| 3430 | a.Transparency = 1 | |
| 3431 | a.CanCollide = false | |
| 3432 | local ray = Ray.new( | |
| 3433 | orb.CFrame.p, -- origin | |
| 3434 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
| 3435 | ) | |
| 3436 | local ignore = orb | |
| 3437 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3438 | a.BottomSurface = 10 | |
| 3439 | a.TopSurface = 10 | |
| 3440 | local distance = (orb.CFrame.p - position).magnitude | |
| 3441 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 3442 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 3443 | orb.CFrame = a.CFrame | |
| 3444 | a:Destroy() | |
| 3445 | local bv = Instance.new("BodyVelocity")
| |
| 3446 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3447 | bv.velocity = orb.CFrame.lookVector*125 | |
| 3448 | bv.Parent = orb | |
| 3449 | local hitted = false | |
| 3450 | game:GetService("Debris"):AddItem(orb, 15)
| |
| 3451 | wait() | |
| 3452 | local hit =orb.Touched:connect(function(hit) | |
| 3453 | if hitted == false then | |
| 3454 | hitted = true | |
| 3455 | CameraEnshaking(10,2.5) | |
| 3456 | CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1)
| |
| 3457 | MagniDamage(orb, 65, 65,90, 0, "Normal") | |
| 3458 | sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste"))
| |
| 3459 | sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste"))
| |
| 3460 | for i = 0, 49 do | |
| 3461 | PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
| |
| 3462 | end | |
| 3463 | for i = 0, 9 do | |
| 3464 | sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
| |
| 3465 | sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0)
| |
| 3466 | end | |
| 3467 | orb.Anchored = true | |
| 3468 | orb.Transparency = 1 | |
| 3469 | wait(8) | |
| 3470 | orb:Destroy() | |
| 3471 | end | |
| 3472 | end) | |
| 3473 | end)) | |
| 3474 | for i = 0, 1, 0.1 do | |
| 3475 | swait() | |
| 3476 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
| 3477 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
| 3478 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4) | |
| 3479 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
| 3480 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
| 3481 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
| 3482 | end | |
| 3483 | hum.WalkSpeed = storehumanoidWS | |
| 3484 | attack = false | |
| 3485 | end | |
| 3486 | ||
| 3487 | function BanishingOrb() | |
| 3488 | attack = true | |
| 3489 | hum.WalkSpeed = 0 | |
| 3490 | local orb = Instance.new("Part", char)
| |
| 3491 | orb.Anchored = true | |
| 3492 | orb.BrickColor = BrickColor.new("Black")
| |
| 3493 | orb.CanCollide = false | |
| 3494 | orb.FormFactor = 3 | |
| 3495 | orb.Name = "Ring" | |
| 3496 | orb.Material = "Neon" | |
| 3497 | orb.Size = Vector3.new(1, 1, 1) | |
| 3498 | orb.Transparency = 0 | |
| 3499 | orb.TopSurface = 0 | |
| 3500 | orb.BottomSurface = 0 | |
| 3501 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 3502 | orbm.MeshType = "Sphere" | |
| 3503 | orbm.Name = "SizeMesh" | |
| 3504 | orbm.Scale = vt(0,0,0) | |
| 3505 | local scaled = 0.1 | |
| 3506 | local posid = 0 | |
| 3507 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9)
| |
| 3508 | for i = 0, 5, 0.1 do | |
| 3509 | swait() | |
| 3510 | scaled = scaled - 0.001 | |
| 3511 | posid = posid - scaled | |
| 3512 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
| 3513 | local scaled = 0.1 | |
| 3514 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
| 3515 | sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Black"),10)
| |
| 3516 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1) | |
| 3517 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1) | |
| 3518 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3519 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 3520 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
| 3521 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1) | |
| 3522 | end | |
| 3523 | for i = 0, 2, 0.1 do | |
| 3524 | swait() | |
| 3525 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
| 3526 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
| 3527 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
| 3528 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4) | |
| 3529 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
| 3530 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
| 3531 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
| 3532 | end | |
| 3533 | coroutine.resume(coroutine.create(function() | |
| 3534 | orb.Anchored = false | |
| 3535 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75)
| |
| 3536 | local a = Instance.new("Part",workspace)
| |
| 3537 | a.Name = "Direction" | |
| 3538 | a.Anchored = true | |
| 3539 | a.BrickColor = bc("Bright red")
| |
| 3540 | a.Material = "Neon" | |
| 3541 | a.Transparency = 1 | |
| 3542 | a.CanCollide = false | |
| 3543 | local ray = Ray.new( | |
| 3544 | orb.CFrame.p, -- origin | |
| 3545 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
| 3546 | ) | |
| 3547 | local ignore = orb | |
| 3548 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 3549 | a.BottomSurface = 10 | |
| 3550 | a.TopSurface = 10 | |
| 3551 | local distance = (orb.CFrame.p - position).magnitude | |
| 3552 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 3553 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 3554 | orb.CFrame = a.CFrame | |
| 3555 | a:Destroy() | |
| 3556 | local bv = Instance.new("BodyVelocity")
| |
| 3557 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3558 | bv.velocity = orb.CFrame.lookVector*0 | |
| 3559 | bv.Parent = orb | |
| 3560 | local hitted = false | |
| 3561 | local rate = 0 | |
| 3562 | coroutine.resume(coroutine.create(function() | |
| 3563 | for i = 0, 24 do | |
| 3564 | wait(0.1) | |
| 3565 | rate = rate + 0.25 | |
| 3566 | bv.velocity = bv.velocity + orb.CFrame.lookVector*rate | |
| 3567 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do | |
| 3568 | if v:FindFirstChild('Head') then
| |
| 3569 | dmg(v) | |
| 3570 | end | |
| 3571 | end | |
| 3572 | CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9)
| |
| 3573 | sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR) | |
| 3574 | sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
| 3575 | end | |
| 3576 | orb.Anchored = true | |
| 3577 | orb.Transparency = 1 | |
| 3578 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do | |
| 3579 | if v:FindFirstChild('Head') then
| |
| 3580 | dmg(v) | |
| 3581 | end | |
| 3582 | end | |
| 3583 | local eff = Instance.new("ParticleEmitter",orb)
| |
| 3584 | eff.Texture = "rbxassetid://296874871" | |
| 3585 | eff.LightEmission = 0.95 | |
| 3586 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 3587 | eff.Rate = 1000000000 | |
| 3588 | eff.Lifetime = NumberRange.new(3) | |
| 3589 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,9,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 3590 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 3591 | eff.Speed = NumberRange.new(30) | |
| 3592 | eff.Acceleration = vt(0,-15,0) | |
| 3593 | eff.Rotation = NumberRange.new(-500,500) | |
| 3594 | eff.VelocitySpread = 100000 | |
| 3595 | eff.RotSpeed = NumberRange.new(-500,500) | |
| 3596 | coroutine.resume(coroutine.create(function() | |
| 3597 | wait(0.6) | |
| 3598 | eff.Enabled = false | |
| 3599 | end)) | |
| 3600 | CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6)
| |
| 3601 | CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9)
| |
| 3602 | sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
| 3603 | sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 3604 | sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR) | |
| 3605 | game:GetService("Debris"):AddItem(orb, 15)
| |
| 3606 | end)) | |
| 3607 | end)) | |
| 3608 | for i = 0, 1, 0.1 do | |
| 3609 | swait() | |
| 3610 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
| 3611 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
| 3612 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4) | |
| 3613 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
| 3614 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
| 3615 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
| 3616 | end | |
| 3617 | hum.WalkSpeed = storehumanoidWS | |
| 3618 | attack = false | |
| 3619 | end | |
| 3620 | ||
| 3621 | ||
| 3622 | function ChaosGroundStrike() | |
| 3623 | attack = true | |
| 3624 | for i = 0, 2, 0.1 do | |
| 3625 | swait() | |
| 3626 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
| 3627 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
| 3628 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 3629 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 3630 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
| 3631 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
| 3632 | end | |
| 3633 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1)
| |
| 3634 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1)
| |
| 3635 | CameraEnshaking(4,12) | |
| 3636 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
| 3637 | if v:FindFirstChild('Head') then
| |
| 3638 | dmg(v) | |
| 3639 | end | |
| 3640 | end | |
| 3641 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random()) | |
| 3642 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random()) | |
| 3643 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random()) | |
| 3644 | for i = 0, 2, 0.1 do | |
| 3645 | swait() | |
| 3646 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
| 3647 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5,52.5),-5,math.random(-52.5,52.5))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
| 3648 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
| 3649 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
| 3650 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
| 3651 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
| 3652 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
| 3653 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
| 3654 | end | |
| 3655 | attack = false | |
| 3656 | end | |
| 3657 | ||
| 3658 | ||
| 3659 | ||
| 3660 | function Starfall() | |
| 3661 | attack = true | |
| 3662 | hum.WalkSpeed = 0 | |
| 3663 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1)
| |
| 3664 | for i = 0, 5, 0.1 do | |
| 3665 | swait() | |
| 3666 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 3667 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 3668 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
| 3669 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
| 3670 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 3671 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
| 3672 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1) | |
| 3673 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1) | |
| 3674 | end | |
| 3675 | local Overed = false | |
| 3676 | CameraEnshaking(2,20) | |
| 3677 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
| 3678 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
| 3679 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
| 3680 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1)
| |
| 3681 | local orb = Instance.new("Part", char)
| |
| 3682 | orb.Anchored = true | |
| 3683 | orb.BrickColor = BrickColor.new("Toothpaste")
| |
| 3684 | orb.CanCollide = false | |
| 3685 | orb.FormFactor = 3 | |
| 3686 | orb.Name = "Remenant" | |
| 3687 | orb.Material = "Neon" | |
| 3688 | orb.CFrame = root.CFrame*CFrame.new(0,150,0) | |
| 3689 | orb.Size = Vector3.new(1, 1, 1) | |
| 3690 | orb.Transparency = 1 | |
| 3691 | orb.TopSurface = 0 | |
| 3692 | orb.BottomSurface = 0 | |
| 3693 | hum.WalkSpeed = storehumanoidWS | |
| 3694 | coroutine.resume(coroutine.create(function() | |
| 3695 | for i = 0, 9 do | |
| 3696 | swait(10) | |
| 3697 | local lb = Instance.new("Part")
| |
| 3698 | lb.Color = MAINRUINCOLOR.Color | |
| 3699 | lb.CanCollide = false | |
| 3700 | lb.Material = "Neon" | |
| 3701 | lb.Anchored = true | |
| 3702 | lb.TopSurface = 0 | |
| 3703 | lb.BottomSurface = 0 | |
| 3704 | lb.Transparency = 0 | |
| 3705 | lb.Size = vt(1,1,1) | |
| 3706 | lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15))) | |
| 3707 | lb.Anchored = false | |
| 3708 | lb.Parent = char | |
| 3709 | local thingery = Instance.new("SpecialMesh",lb)
| |
| 3710 | thingery.MeshType = "Sphere" | |
| 3711 | thingery.Scale = vt(20,20,20) | |
| 3712 | game:GetService("Debris"):AddItem(lb, 10)
| |
| 3713 | local bv = Instance.new("BodyVelocity")
| |
| 3714 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3715 | bv.velocity = lb.CFrame.lookVector*math.random(75,250) | |
| 3716 | bv.Parent = lb | |
| 3717 | sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR) | |
| 3718 | sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR) | |
| 3719 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1)
| |
| 3720 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1)
| |
| 3721 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1)
| |
| 3722 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1)
| |
| 3723 | local hitted = false | |
| 3724 | coroutine.resume(coroutine.create(function() | |
| 3725 | while true do | |
| 3726 | swait(1) | |
| 3727 | if lb.Parent ~= nil and hitted == false then | |
| 3728 | PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2) | |
| 3729 | elseif lb.Parent == nil then | |
| 3730 | break | |
| 3731 | end | |
| 3732 | end | |
| 3733 | end)) | |
| 3734 | ||
| 3735 | game:GetService("Debris"):AddItem(a, 0.1)
| |
| 3736 | ||
| 3737 | coroutine.resume(coroutine.create(function() | |
| 3738 | swait(1) | |
| 3739 | lb.Touched:connect(function(hit) | |
| 3740 | if hitted == false then | |
| 3741 | hitted = true | |
| 3742 | lb.Transparency = 1 | |
| 3743 | lb.Anchored = true | |
| 3744 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1)
| |
| 3745 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7)
| |
| 3746 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75)
| |
| 3747 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75)
| |
| 3748 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1)
| |
| 3749 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85)
| |
| 3750 | MagniDamage(lb, 45, 45,85, 0, "Normal") | |
| 3751 | CameraEnshaking(1,5) | |
| 3752 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
| 3753 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
| 3754 | for i = 0, 9 do | |
| 3755 | sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0) | |
| 3756 | end | |
| 3757 | for i = 0, 49 do | |
| 3758 | swait() | |
| 3759 | MagniDamage(lb, 30, 2,4, 0, "Normal") | |
| 3760 | PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0) | |
| 3761 | end | |
| 3762 | end | |
| 3763 | end) | |
| 3764 | end)) | |
| 3765 | end | |
| 3766 | Overed = true | |
| 3767 | orb:Destroy() | |
| 3768 | end)) | |
| 3769 | ||
| 3770 | attack = false | |
| 3771 | end | |
| 3772 | ||
| 3773 | function StarfallEX() | |
| 3774 | attack = true | |
| 3775 | hum.WalkSpeed = 0 | |
| 3776 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7)
| |
| 3777 | for i = 0, 10, 0.1 do | |
| 3778 | swait() | |
| 3779 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 3780 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 3781 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
| 3782 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
| 3783 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 3784 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
| 3785 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1) | |
| 3786 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1) | |
| 3787 | end | |
| 3788 | local Overed = false | |
| 3789 | CameraEnshaking(2,20) | |
| 3790 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR) | |
| 3791 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR) | |
| 3792 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
| 3793 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9)
| |
| 3794 | local orb = Instance.new("Part", char)
| |
| 3795 | orb.Anchored = true | |
| 3796 | orb.BrickColor = BrickColor.new("Toothpaste")
| |
| 3797 | orb.CanCollide = false | |
| 3798 | orb.FormFactor = 3 | |
| 3799 | orb.Name = "Remenant" | |
| 3800 | orb.Material = "Neon" | |
| 3801 | orb.CFrame = root.CFrame*CFrame.new(0,250,0) | |
| 3802 | orb.Size = Vector3.new(1, 1, 1) | |
| 3803 | orb.Transparency = 1 | |
| 3804 | orb.TopSurface = 0 | |
| 3805 | orb.BottomSurface = 0 | |
| 3806 | hum.WalkSpeed = storehumanoidWS | |
| 3807 | coroutine.resume(coroutine.create(function() | |
| 3808 | for i = 0, 4 do | |
| 3809 | swait(15) | |
| 3810 | local lb = Instance.new("Part")
| |
| 3811 | lb.Color = MAINRUINCOLOR.Color | |
| 3812 | lb.CanCollide = false | |
| 3813 | lb.Material = "Neon" | |
| 3814 | lb.Anchored = true | |
| 3815 | lb.TopSurface = 0 | |
| 3816 | lb.BottomSurface = 0 | |
| 3817 | lb.Transparency = 0 | |
| 3818 | lb.Size = vt(1,1,1) | |
| 3819 | lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15))) | |
| 3820 | lb.Anchored = false | |
| 3821 | lb.Parent = char | |
| 3822 | local thingery = Instance.new("SpecialMesh",lb)
| |
| 3823 | thingery.MeshType = "Sphere" | |
| 3824 | thingery.Scale = vt(50,50,50) | |
| 3825 | game:GetService("Debris"):AddItem(lb, 10)
| |
| 3826 | local bv = Instance.new("BodyVelocity")
| |
| 3827 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 3828 | bv.velocity = lb.CFrame.lookVector*math.random(50,420) | |
| 3829 | bv.Parent = lb | |
| 3830 | sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR) | |
| 3831 | sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR) | |
| 3832 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9)
| |
| 3833 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9)
| |
| 3834 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9)
| |
| 3835 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9)
| |
| 3836 | local hitted = false | |
| 3837 | coroutine.resume(coroutine.create(function() | |
| 3838 | while true do | |
| 3839 | swait(1) | |
| 3840 | if lb.Parent ~= nil and hitted == false then | |
| 3841 | PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),25,25,25,0.25,MAINRUINCOLOR,-2) | |
| 3842 | elseif lb.Parent == nil then | |
| 3843 | break | |
| 3844 | end | |
| 3845 | end | |
| 3846 | end)) | |
| 3847 | ||
| 3848 | game:GetService("Debris"):AddItem(a, 0.1)
| |
| 3849 | ||
| 3850 | coroutine.resume(coroutine.create(function() | |
| 3851 | swait(1) | |
| 3852 | lb.Touched:connect(function(hit) | |
| 3853 | if hitted == false then | |
| 3854 | hitted = true | |
| 3855 | lb.Transparency = 1 | |
| 3856 | lb.Anchored = true | |
| 3857 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9)
| |
| 3858 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6)
| |
| 3859 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65)
| |
| 3860 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65)
| |
| 3861 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9)
| |
| 3862 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75)
| |
| 3863 | MagniDamage(lb, 50, 60,99, 0, "Normal") | |
| 3864 | CameraEnshaking(1,5) | |
| 3865 | sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR) | |
| 3866 | sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR) | |
| 3867 | for i = 0, 9 do | |
| 3868 | sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,100,-0.1,MAINRUINCOLOR,0) | |
| 3869 | end | |
| 3870 | for i = 0, 99 do | |
| 3871 | swait() | |
| 3872 | MagniDamage(lb, 30, 6,18, 0, "Normal") | |
| 3873 | PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),32,32,32,0.32,MAINRUINCOLOR,0) | |
| 3874 | end | |
| 3875 | end | |
| 3876 | end) | |
| 3877 | end)) | |
| 3878 | end | |
| 3879 | Overed = true | |
| 3880 | orb:Destroy() | |
| 3881 | end)) | |
| 3882 | ||
| 3883 | attack = false | |
| 3884 | end | |
| 3885 | ||
| 3886 | function DivineBlast() | |
| 3887 | attack = true | |
| 3888 | hum.WalkSpeed = 0 | |
| 3889 | local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random()) | |
| 3890 | elocacenter.Anchored = true | |
| 3891 | elocacenter.CFrame = sorb.CFrame | |
| 3892 | local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
| 3893 | eloca1.Anchored = true | |
| 3894 | eloca1.CFrame = elocacenter.CFrame | |
| 3895 | local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
| 3896 | eloca2.Anchored = true | |
| 3897 | eloca2.CFrame = elocacenter.CFrame | |
| 3898 | local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
| 3899 | eloca3.Anchored = true | |
| 3900 | eloca3.CFrame = elocacenter.CFrame | |
| 3901 | local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
| 3902 | eloca4.Anchored = true | |
| 3903 | eloca4.CFrame = elocacenter.CFrame | |
| 3904 | local lookavec = 0 | |
| 3905 | local speeds = 0 | |
| 3906 | CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1)
| |
| 3907 | for i = 0, 3, 0.1 do | |
| 3908 | swait() | |
| 3909 | --- | |
| 3910 | lookavec = lookavec + 0.1 | |
| 3911 | speeds = speeds + 10 | |
| 3912 | elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 3913 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 3914 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
| 3915 | ||
| 3916 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 3917 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
| 3918 | ||
| 3919 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 3920 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
| 3921 | ||
| 3922 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 3923 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
| 3924 | --- | |
| 3925 | root.CFrame = FaceMouse()[1] | |
| 3926 | 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) | |
| 3927 | 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) | |
| 3928 | 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) | |
| 3929 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
| 3930 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1) | |
| 3931 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1) | |
| 3932 | end | |
| 3933 | for i = 0, 3, 0.1 do | |
| 3934 | swait() | |
| 3935 | --- | |
| 3936 | speeds = speeds + 10 | |
| 3937 | elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 3938 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 3939 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
| 3940 | ||
| 3941 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 3942 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
| 3943 | ||
| 3944 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 3945 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
| 3946 | ||
| 3947 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 3948 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
| 3949 | --- | |
| 3950 | root.CFrame = FaceMouse()[1] | |
| 3951 | 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) | |
| 3952 | 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) | |
| 3953 | 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) | |
| 3954 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
| 3955 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1) | |
| 3956 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1) | |
| 3957 | end | |
| 3958 | CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1)
| |
| 3959 | for i = 0, 3, 0.1 do | |
| 3960 | swait() | |
| 3961 | --- | |
| 3962 | speeds = speeds + 10 | |
| 3963 | elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 3964 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 3965 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
| 3966 | ||
| 3967 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 3968 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
| 3969 | ||
| 3970 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 3971 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
| 3972 | ||
| 3973 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 3974 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
| 3975 | --- | |
| 3976 | root.CFrame = FaceMouse()[1] | |
| 3977 | 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) | |
| 3978 | 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) | |
| 3979 | 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(40)),.1) | |
| 3980 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-40)),.1) | |
| 3981 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1) | |
| 3982 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1) | |
| 3983 | end | |
| 3984 | coroutine.resume(coroutine.create(function() | |
| 3985 | local a = Instance.new("Part",Character)
| |
| 3986 | a.Name = "Direction" | |
| 3987 | a.Anchored = true | |
| 3988 | a.BrickColor = bc("White")
| |
| 3989 | a.Material = "Neon" | |
| 3990 | a.Transparency = 0 | |
| 3991 | a.Shape = "Cylinder" | |
| 3992 | a.CanCollide = false | |
| 3993 | local a2 = Instance.new("Part",Character)
| |
| 3994 | a2.Name = "Direction" | |
| 3995 | a2.Anchored = true | |
| 3996 | a2.BrickColor = bc("Bright yellow")
| |
| 3997 | a2.Material = "Neon" | |
| 3998 | a2.Transparency = 0 | |
| 3999 | a2.Shape = "Cylinder" | |
| 4000 | a2.CanCollide = false | |
| 4001 | local b = Instance.new("Part",Character)
| |
| 4002 | b.Name = "HitDirect" | |
| 4003 | b.Anchored = true | |
| 4004 | b.BrickColor = bc("Cool yellow")
| |
| 4005 | b.Material = "Neon" | |
| 4006 | b.Transparency = 1 | |
| 4007 | b.CanCollide = false | |
| 4008 | local ray = Ray.new( | |
| 4009 | elocacenter.CFrame.p, -- origin | |
| 4010 | (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction | |
| 4011 | ) | |
| 4012 | local ignore = Character | |
| 4013 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4014 | a.BottomSurface = 10 | |
| 4015 | a.TopSurface = 10 | |
| 4016 | a2.BottomSurface = 10 | |
| 4017 | a2.TopSurface = 10 | |
| 4018 | local distance = (elocacenter.CFrame.p - position).magnitude | |
| 4019 | a.Size = Vector3.new(distance, 1, 1) | |
| 4020 | a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4021 | a2.Size = Vector3.new(distance, 1, 1) | |
| 4022 | a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4023 | b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4024 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4025 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4026 | game:GetService("Debris"):AddItem(a, 10)
| |
| 4027 | game:GetService("Debris"):AddItem(a2, 10)
| |
| 4028 | game:GetService("Debris"):AddItem(b, 10)
| |
| 4029 | local msh = Instance.new("SpecialMesh",a)
| |
| 4030 | msh.MeshType = "Cylinder" | |
| 4031 | msh.Scale = vt(1,2,2) | |
| 4032 | local msh2 = Instance.new("SpecialMesh",a2)
| |
| 4033 | msh2.MeshType = "Cylinder" | |
| 4034 | msh2.Scale = vt(1,2.5,2.5) | |
| 4035 | CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75)
| |
| 4036 | coroutine.resume(coroutine.create(function() | |
| 4037 | for i = 0,10,0.1 do | |
| 4038 | swait() | |
| 4039 | msh.Scale = msh.Scale + vt(0,0.05,0.05) | |
| 4040 | a.Transparency = a.Transparency + 0.025 | |
| 4041 | msh2.Scale = msh2.Scale + vt(0,0.25,0.25) | |
| 4042 | a2.Transparency = a2.Transparency + 0.05 | |
| 4043 | end | |
| 4044 | a:Destroy() | |
| 4045 | a2:Destroy() | |
| 4046 | end)) | |
| 4047 | CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1)
| |
| 4048 | CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7)
| |
| 4049 | CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75)
| |
| 4050 | CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75)
| |
| 4051 | CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1)
| |
| 4052 | CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85)
| |
| 4053 | MagniDamage(b, 25, 40,65, 0, "Normal") | |
| 4054 | for i = 0, 49 do | |
| 4055 | PixelBlock(2,math.random(10,20),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.04,BrickColor.new("Bright yellow"),0)
| |
| 4056 | PixelBlock(1,math.random(1,10),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Bright yellow"),0)
| |
| 4057 | end | |
| 4058 | sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White"))
| |
| 4059 | sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow"))
| |
| 4060 | sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
| |
| 4061 | sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
| |
| 4062 | sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
| |
| 4063 | sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow"))
| |
| 4064 | end)) | |
| 4065 | game:GetService("Debris"):AddItem(elocacenter, 5)
| |
| 4066 | hum.WalkSpeed = storehumanoidWS | |
| 4067 | attack = false | |
| 4068 | end | |
| 4069 | ||
| 4070 | function StarDivision() | |
| 4071 | attack = true | |
| 4072 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5)
| |
| 4073 | for i = 0, 2, 0.1 do | |
| 4074 | swait() | |
| 4075 | 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) | |
| 4076 | 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) | |
| 4077 | 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) | |
| 4078 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
| 4079 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6) | |
| 4080 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1) | |
| 4081 | end | |
| 4082 | local orb = Instance.new("Part", char)
| |
| 4083 | orb.BrickColor = MAINRUINCOLOR | |
| 4084 | orb.CanCollide = false | |
| 4085 | orb.FormFactor = 3 | |
| 4086 | orb.Name = "Ring" | |
| 4087 | orb.Material = "Neon" | |
| 4088 | orb.Size = Vector3.new(1, 1, 1) | |
| 4089 | orb.Transparency = 0 | |
| 4090 | orb.TopSurface = 0 | |
| 4091 | orb.BottomSurface = 0 | |
| 4092 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 4093 | orbm.MeshType = "Sphere" | |
| 4094 | orbm.Name = "SizeMesh" | |
| 4095 | orbm.Scale = vt(2,2,2) | |
| 4096 | local a = Instance.new("Part",workspace)
| |
| 4097 | a.Name = "Direction" | |
| 4098 | a.Anchored = true | |
| 4099 | a.BrickColor = bc("Bright red")
| |
| 4100 | a.Material = "Neon" | |
| 4101 | a.Transparency = 1 | |
| 4102 | a.CanCollide = false | |
| 4103 | local ray = Ray.new( | |
| 4104 | sorb.CFrame.p, -- origin | |
| 4105 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
| 4106 | ) | |
| 4107 | local ignore = sorb | |
| 4108 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4109 | a.BottomSurface = 10 | |
| 4110 | a.TopSurface = 10 | |
| 4111 | local distance = (sorb.CFrame.p - position).magnitude | |
| 4112 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 4113 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 4114 | orb.CFrame = a.CFrame | |
| 4115 | a:Destroy() | |
| 4116 | local bv = Instance.new("BodyVelocity")
| |
| 4117 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 4118 | bv.velocity = orb.CFrame.lookVector*100 | |
| 4119 | bv.Parent = orb | |
| 4120 | local hitted = false | |
| 4121 | game:GetService("Debris"):AddItem(orb, 10)
| |
| 4122 | CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15)
| |
| 4123 | CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15)
| |
| 4124 | CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15)
| |
| 4125 | CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15)
| |
| 4126 | CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15)
| |
| 4127 | coroutine.resume(coroutine.create(function() | |
| 4128 | while true do | |
| 4129 | swait(1) | |
| 4130 | if orb.Parent ~= nil and hitted == false then | |
| 4131 | PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2) | |
| 4132 | elseif orb.Parent == nil then | |
| 4133 | break | |
| 4134 | end | |
| 4135 | end | |
| 4136 | end)) | |
| 4137 | coroutine.resume(coroutine.create(function() | |
| 4138 | swait(1) | |
| 4139 | orb.Touched:connect(function(hit) | |
| 4140 | if hitted == false then | |
| 4141 | hitted = true | |
| 4142 | game:GetService("Debris"):AddItem(orb, 5)
| |
| 4143 | orb.Transparency = 1 | |
| 4144 | orb.Anchored = true | |
| 4145 | local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 4146 | elocacenter.Anchored = true | |
| 4147 | elocacenter.CFrame = orb.CFrame | |
| 4148 | elocacenter.Orientation = vt(0,0,0) | |
| 4149 | local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 4150 | eloca1.Anchored = true | |
| 4151 | eloca1.CFrame = elocacenter.CFrame | |
| 4152 | local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 4153 | eloca2.Anchored = true | |
| 4154 | eloca2.CFrame = elocacenter.CFrame | |
| 4155 | local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 4156 | eloca3.Anchored = true | |
| 4157 | eloca3.CFrame = elocacenter.CFrame | |
| 4158 | local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 4159 | eloca4.Anchored = true | |
| 4160 | eloca4.CFrame = elocacenter.CFrame | |
| 4161 | local lookavec = 0 | |
| 4162 | local speeds = 0 | |
| 4163 | CameraEnshaking(1,1) | |
| 4164 | CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
| |
| 4165 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 4166 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 4167 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 4168 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 4169 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 4170 | for i = 0, 99 do | |
| 4171 | swait() | |
| 4172 | lookavec = lookavec + 1 | |
| 4173 | speeds = speeds + 0.1 | |
| 4174 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 4175 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 4176 | PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 4177 | ||
| 4178 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 4179 | PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 4180 | ||
| 4181 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 4182 | PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 4183 | ||
| 4184 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 4185 | PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 4186 | end | |
| 4187 | ||
| 4188 | for i = 0, 149 do | |
| 4189 | swait() | |
| 4190 | speeds = speeds + 0.1 | |
| 4191 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 4192 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 4193 | PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 4194 | ||
| 4195 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 4196 | PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 4197 | ||
| 4198 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 4199 | PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 4200 | ||
| 4201 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 4202 | PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 4203 | end | |
| 4204 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do | |
| 4205 | if v:FindFirstChild('Head') then
| |
| 4206 | dmg(v) | |
| 4207 | end | |
| 4208 | end | |
| 4209 | CameraEnshaking(7,30) | |
| 4210 | MagniDamage(elocacenter, 225, 50,75, 0, "Normal") | |
| 4211 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1)
| |
| 4212 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75)
| |
| 4213 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1)
| |
| 4214 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
| |
| 4215 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR) | |
| 4216 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR) | |
| 4217 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 4218 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 4219 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 4220 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 4221 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 4222 | for i = 0, 24 do | |
| 4223 | sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0) | |
| 4224 | sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0) | |
| 4225 | sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0) | |
| 4226 | sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0) | |
| 4227 | end | |
| 4228 | coroutine.resume(coroutine.create(function() | |
| 4229 | for i = 0, 499 do | |
| 4230 | swait(1) | |
| 4231 | MagniDamage(elocacenter, 90, 1,5, 0, "Normal") | |
| 4232 | PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5) | |
| 4233 | end | |
| 4234 | elocacenter:Destroy() | |
| 4235 | eloca1:Destroy() | |
| 4236 | eloca2:Destroy() | |
| 4237 | eloca3:Destroy() | |
| 4238 | eloca4:Destroy() | |
| 4239 | end)) | |
| 4240 | end | |
| 4241 | end) | |
| 4242 | end)) | |
| 4243 | attack = false | |
| 4244 | end | |
| 4245 | ||
| 4246 | function GalacticalBeams() | |
| 4247 | attack = true | |
| 4248 | local keptcolor = MAINRUINCOLOR | |
| 4249 | coroutine.resume(coroutine.create(function() | |
| 4250 | for i = 0, 0 do | |
| 4251 | swait(10) | |
| 4252 | local orb = Instance.new("Part", char)
| |
| 4253 | CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1)
| |
| 4254 | orb.BrickColor = keptcolor | |
| 4255 | orb.CanCollide = false | |
| 4256 | orb.FormFactor = 3 | |
| 4257 | orb.Name = "Ring" | |
| 4258 | orb.Material = "Neon" | |
| 4259 | orb.Size = Vector3.new(1, 1, 1) | |
| 4260 | orb.Transparency = 1 | |
| 4261 | orb.TopSurface = 0 | |
| 4262 | orb.BottomSurface = 0 | |
| 4263 | orb.Anchored = true | |
| 4264 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 4265 | orbm.MeshType = "Sphere" | |
| 4266 | orbm.Name = "SizeMesh" | |
| 4267 | orbm.Scale = vt(1.25,1.25,1.25) | |
| 4268 | orb.CFrame = root.CFrame*CFrame.new(math.random(-25,25),math.random(75,150),math.random(-25,25)) | |
| 4269 | coroutine.resume(coroutine.create(function() | |
| 4270 | orb.Transparency = 1 | |
| 4271 | local a = Instance.new("Part",char)
| |
| 4272 | a.Name = "Direction" | |
| 4273 | a.Anchored = true | |
| 4274 | a.BrickColor = keptcolor | |
| 4275 | a.Material = "Neon" | |
| 4276 | a.Transparency = 1 | |
| 4277 | a.Shape = "Cylinder" | |
| 4278 | local x = Instance.new("Part",char)
| |
| 4279 | x.Name = "Direction" | |
| 4280 | x.Anchored = true | |
| 4281 | x.BrickColor = keptcolor | |
| 4282 | x.Material = "Neon" | |
| 4283 | x.Transparency = 1 | |
| 4284 | x.Shape = "Cylinder" | |
| 4285 | local ht = Instance.new("Part",char)
| |
| 4286 | ht.Name = "DirectionHit" | |
| 4287 | ht.Anchored = true | |
| 4288 | ht.BrickColor = keptcolor | |
| 4289 | ht.CanCollide = false | |
| 4290 | ht.Transparency = 1 | |
| 4291 | ht.Size = vt(0.1,0.1,0.1) | |
| 4292 | a.CanCollide = false | |
| 4293 | local ray = Ray.new( | |
| 4294 | orb.CFrame.p, -- origin | |
| 4295 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
| 4296 | ) | |
| 4297 | local ignore = char | |
| 4298 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4299 | a.BottomSurface = 10 | |
| 4300 | a.TopSurface = 10 | |
| 4301 | local distance = (orb.CFrame.p - position).magnitude | |
| 4302 | a.Size = Vector3.new(distance,1,1) | |
| 4303 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4304 | ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4305 | x.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 4306 | local poste = 0 | |
| 4307 | local rotation = 0 | |
| 4308 | CFuncs["Sound"].Create("rbxassetid://153092315", char, 1.5, 1)
| |
| 4309 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(5,5,5),2.5,2.5,0,keptcolor) | |
| 4310 | CameraEnshaking(2,2) | |
| 4311 | for i = 0, 49 do | |
| 4312 | swait() | |
| 4313 | rotation = rotation + 5 | |
| 4314 | poste = poste + 1 | |
| 4315 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4316 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4317 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4318 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4319 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4320 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4321 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4322 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4323 | end | |
| 4324 | local A1 = Instance.new("Attachment",x)
| |
| 4325 | local A2 = Instance.new("Attachment",ht)
| |
| 4326 | local Beem = Instance.new("Beam",ht)
| |
| 4327 | Beem.Attachment0 = A1 | |
| 4328 | Beem.Attachment1 = A2 | |
| 4329 | Beem.LightEmission = 1 | |
| 4330 | Beem.FaceCamera = true | |
| 4331 | Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, 0),NumberSequenceKeypoint.new(0.975, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 4332 | Beem.Width0 = 125 | |
| 4333 | Beem.Width1 = 125 | |
| 4334 | Beem.Texture = "rbxassetid://1134824633" | |
| 4335 | Beem.TextureMode = "Wrap" | |
| 4336 | Beem.TextureLength = 200 | |
| 4337 | Beem.TextureSpeed = 1.5 | |
| 4338 | Beem.Color = ColorSequence.new(keptcolor.Color) | |
| 4339 | CameraEnshaking(3,6) | |
| 4340 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 2, 1.5)
| |
| 4341 | a.Transparency = 0.25 | |
| 4342 | sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor) | |
| 4343 | sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor) | |
| 4344 | sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor) | |
| 4345 | sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor) | |
| 4346 | sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor) | |
| 4347 | sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1.5,1.5,1.5,keptcolor) | |
| 4348 | MagniDamage(ht, 70, 1000,1500, 0, "Normal") | |
| 4349 | local eff = Instance.new("ParticleEmitter",ht)
| |
| 4350 | eff.Texture = "rbxassetid://284205403" | |
| 4351 | eff.LightEmission = 0.95 | |
| 4352 | eff.Color = ColorSequence.new(keptcolor.Color) | |
| 4353 | eff.Rate = 500 | |
| 4354 | eff.Lifetime = NumberRange.new(1) | |
| 4355 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.2,35,0),NumberSequenceKeypoint.new(1,0.1,0)})
| |
| 4356 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 4357 | eff.Speed = NumberRange.new(80,500) | |
| 4358 | eff.Drag = 5 | |
| 4359 | eff.Rotation = NumberRange.new(-500,500) | |
| 4360 | eff.VelocitySpread = 9000 | |
| 4361 | eff.RotSpeed = NumberRange.new(-500,500) | |
| 4362 | for i = 0, 24 do | |
| 4363 | sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor) | |
| 4364 | local rsiz = math.random(10,50) | |
| 4365 | sphereMK(math.random(3,6),1.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
| 4366 | end | |
| 4367 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4368 | local msh = Instance.new("SpecialMesh",a)
| |
| 4369 | msh.MeshType = "Cylinder" | |
| 4370 | msh.Scale = vt(1,15,15) | |
| 4371 | for i = 0, 49 do | |
| 4372 | swait() | |
| 4373 | CameraEnshaking(1,4) | |
| 4374 | MagniDamage(ht, 70, 1000,1500, 0, "Normal") | |
| 4375 | rotation = rotation + 5 | |
| 4376 | sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor) | |
| 4377 | sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor) | |
| 4378 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(25,25,5),1,1,0,keptcolor) | |
| 4379 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
| 4380 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
| 4381 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
| 4382 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
| 4383 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
| 4384 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
| 4385 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
| 4386 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
| 4387 | for i = 0, 2 do | |
| 4388 | local rsiz = math.random(50,250) | |
| 4389 | sphereMK(math.random(3,6),math.random(2,4),"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
| 4390 | end | |
| 4391 | msh.Scale = msh.Scale + vt(0,0.25,0.25) | |
| 4392 | end | |
| 4393 | eff.Enabled = false | |
| 4394 | local visibility = 0 | |
| 4395 | for i = 0, 49 do | |
| 4396 | swait() | |
| 4397 | visibility = visibility + 0.02 | |
| 4398 | Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, visibility),NumberSequenceKeypoint.new(0.975, visibility),NumberSequenceKeypoint.new(1, 1)})
| |
| 4399 | rotation = rotation + 5 | |
| 4400 | poste = poste - 1 | |
| 4401 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4402 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4403 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4404 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4405 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4406 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(90 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4407 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4408 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(270 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
| 4409 | msh.Scale = msh.Scale + vt(0,-0.5,-0.5) | |
| 4410 | a.Transparency = a.Transparency + 0.02 | |
| 4411 | end | |
| 4412 | wait(1) | |
| 4413 | orb:Destroy() | |
| 4414 | a:Destroy() | |
| 4415 | ht:Destroy() | |
| 4416 | end)) | |
| 4417 | game:GetService("Debris"):AddItem(orb, 10)
| |
| 4418 | end | |
| 4419 | end)) | |
| 4420 | hum.WalkSpeed = storehumanoidWS | |
| 4421 | attack = false | |
| 4422 | end | |
| 4423 | ||
| 4424 | function BeamOfDeath() | |
| 4425 | attack = true | |
| 4426 | hum.WalkSpeed = 0 | |
| 4427 | local keptcolor = MAINRUINCOLOR | |
| 4428 | local orb = Instance.new("Part", char)
| |
| 4429 | orb.BrickColor = keptcolor | |
| 4430 | orb.CanCollide = false | |
| 4431 | orb.FormFactor = 3 | |
| 4432 | orb.Name = "Ring" | |
| 4433 | orb.Material = "Neon" | |
| 4434 | orb.Size = Vector3.new(1, 1, 1) | |
| 4435 | orb.Transparency = 1 | |
| 4436 | orb.TopSurface = 0 | |
| 4437 | orb.BottomSurface = 0 | |
| 4438 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 4439 | orbm.MeshType = "Sphere" | |
| 4440 | orbm.Name = "SizeMesh" | |
| 4441 | orbm.Scale = vt(22.5,10000,22.5) | |
| 4442 | orb.CFrame = mouse.Hit | |
| 4443 | orb.Anchored = true | |
| 4444 | orb.Orientation = vt(0,0,0) | |
| 4445 | orb.CFrame = orb.CFrame*CFrame.new(0,1,0) | |
| 4446 | CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1)
| |
| 4447 | coroutine.resume(coroutine.create(function() | |
| 4448 | coroutine.resume(coroutine.create(function() | |
| 4449 | for i = 0, 399 do | |
| 4450 | swait() | |
| 4451 | orbm.Scale = orbm.Scale - vt(0.05,0,0.05) | |
| 4452 | orb.Transparency = orb.Transparency - 0.0025 | |
| 4453 | end | |
| 4454 | end)) | |
| 4455 | wait(9) | |
| 4456 | coroutine.resume(coroutine.create(function() | |
| 4457 | local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char) | |
| 4458 | if hfr ~= nil then | |
| 4459 | for i = 0, 49 do | |
| 4460 | local deb = Instance.new("Part", char)
| |
| 4461 | deb.Anchored = true | |
| 4462 | deb.CanCollide = false | |
| 4463 | deb.FormFactor = 3 | |
| 4464 | deb.Name = "Ring" | |
| 4465 | deb.Material = hitfloor.Material | |
| 4466 | deb.Color = hitfloor.Color | |
| 4467 | deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55)) | |
| 4468 | deb.Transparency = 0 | |
| 4469 | deb.TopSurface = 0 | |
| 4470 | deb.BottomSurface = 0 | |
| 4471 | deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 4472 | local deb2 = Instance.new("Part", char)
| |
| 4473 | deb2.CanCollide = false | |
| 4474 | deb2.FormFactor = 3 | |
| 4475 | deb2.Name = "Ring" | |
| 4476 | deb2.Material = hitfloor.Material | |
| 4477 | deb2.Color = hitfloor.Color | |
| 4478 | deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38)) | |
| 4479 | deb2.Transparency = 0 | |
| 4480 | deb2.TopSurface = 0 | |
| 4481 | deb2.BottomSurface = 0 | |
| 4482 | deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150)) | |
| 4483 | deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
| 4484 | local eff = Instance.new("ParticleEmitter",deb)
| |
| 4485 | eff.Texture = "rbxassetid://363275192" | |
| 4486 | eff.LightEmission = 0.95 | |
| 4487 | eff.Color = ColorSequence.new(keptcolor.Color) | |
| 4488 | eff.Rate = 100 | |
| 4489 | eff.Lifetime = NumberRange.new(1) | |
| 4490 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)})
| |
| 4491 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 4492 | eff.Speed = NumberRange.new(0,5) | |
| 4493 | eff.Rotation = NumberRange.new(-500,500) | |
| 4494 | eff.VelocitySpread = 9000 | |
| 4495 | eff.RotSpeed = NumberRange.new(-10,10) | |
| 4496 | local at1 = Instance.new('Attachment',deb2)
| |
| 4497 | at1.Position = vt(0,15,0) | |
| 4498 | local at2 = Instance.new('Attachment',deb2)
| |
| 4499 | at2.Position = vt(0,-15,0) | |
| 4500 | local tl = Instance.new('Trail',deb2)
| |
| 4501 | tl.Attachment0 = at1 | |
| 4502 | tl.Attachment1 = at2 | |
| 4503 | tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 4504 | tl.Color = ColorSequence.new(BrickColor.new('White').Color)
| |
| 4505 | tl.Lifetime = 1 | |
| 4506 | game:GetService("Debris"):AddItem(deb,30)
| |
| 4507 | game:GetService("Debris"):AddItem(deb2,30)
| |
| 4508 | coroutine.resume(coroutine.create(function() | |
| 4509 | wait(15) | |
| 4510 | eff.Enabled = false | |
| 4511 | for i = 0, 49 do | |
| 4512 | swait() | |
| 4513 | deb.Transparency = deb.Transparency + 0.02 | |
| 4514 | end | |
| 4515 | wait(1) | |
| 4516 | deb:Destroy() | |
| 4517 | end)) | |
| 4518 | end | |
| 4519 | end | |
| 4520 | end)) | |
| 4521 | for i = 0, 199 do | |
| 4522 | swait(1.5) | |
| 4523 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do | |
| 4524 | if v:FindFirstChild('Head') then
| |
| 4525 | dmg(v) | |
| 4526 | end | |
| 4527 | end | |
| 4528 | sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor) | |
| 4529 | sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor) | |
| 4530 | sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor) | |
| 4531 | sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor) | |
| 4532 | end | |
| 4533 | orb:Destroy() | |
| 4534 | end)) | |
| 4535 | hum.WalkSpeed = storehumanoidWS | |
| 4536 | attack = false | |
| 4537 | end | |
| 4538 | ||
| 4539 | function DualGleamingBeam() | |
| 4540 | attack = true | |
| 4541 | hum.WalkSpeed = 0 | |
| 4542 | CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 5, 1,0,10,0.15,0.5,1)
| |
| 4543 | CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 60, 1,0,10,0.15,0.5,1)
| |
| 4544 | local radm = math.random(1,3) | |
| 4545 | if radm == 1 then | |
| 4546 | end | |
| 4547 | local rsiz = math.random(1,15) | |
| 4548 | local hb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
| 4549 | hb.Anchored = true | |
| 4550 | hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0) | |
| 4551 | local hb2 = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
| 4552 | hb2.Anchored = true | |
| 4553 | hb2.CFrame = sorb.CFrame*CFrame.new(0,-3,0) | |
| 4554 | CFuncs["Sound"].Create("rbxassetid://1042700914", sorb, 8,0.25)
| |
| 4555 | for i = 0, 14, 0.1 do | |
| 4556 | swait() | |
| 4557 | rsiz = math.random(5,15) | |
| 4558 | hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0) | |
| 4559 | hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0) | |
| 4560 | sphereMK(math.random(3,9),0.25,"Add",sorb.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))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15) | |
| 4561 | sphere2(5,"Add",sorb.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))),vt(4,4,4),0.01,0.01,0.01,MAINRUINCOLOR) | |
| 4562 | sphereMK(math.random(3,9),0.25,"Add",sorb2.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))),rsiz/10,rsiz/10,rsiz/10,0,BrickColor.new("Lime green"),-15)
| |
| 4563 | sphere2(5,"Add",sorb2.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))),vt(4,4,4),0.01,0.01,0.01,BrickColor.new("Lime green"))
| |
| 4564 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
| 4565 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
| 4566 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 4567 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.1) | |
| 4568 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(120)),.1) | |
| 4569 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-120)),.1) | |
| 4570 | end | |
| 4571 | CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 10,0.6)
| |
| 4572 | CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 10,0.5)
| |
| 4573 | CFuncs["Sound"].Create("rbxassetid://1042693018", sorb2, 10,0.6)
| |
| 4574 | CFuncs["Sound"].Create("rbxassetid://1042695469", sorb2, 10,0.5)
| |
| 4575 | CFuncs["Sound"].Create("rbxassetid://1042696115", sorb, 10,1)
| |
| 4576 | CFuncs["Sound"].Create("rbxassetid://1042696115", sorb2, 10,1)
| |
| 4577 | sphere2(3,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
| 4578 | sphere2(6,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
| 4579 | sphere2(9,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
| 4580 | sphere2(3,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
| |
| 4581 | sphere2(6,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
| |
| 4582 | sphere2(9,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,BrickColor.new("Lime green"))
| |
| 4583 | for i = 0, 49 do | |
| 4584 | local rsiza = math.random(1,15) | |
| 4585 | sphereMK(math.random(1,5),0.75,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0) | |
| 4586 | sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,MAINRUINCOLOR,0) | |
| 4587 | end | |
| 4588 | local a = Instance.new("Part",Character)
| |
| 4589 | a.Name = "Direction" | |
| 4590 | a.Anchored = true | |
| 4591 | a.BrickColor = MAINRUINCOLOR | |
| 4592 | a.Material = "Neon" | |
| 4593 | a.Transparency = 0 | |
| 4594 | a.Shape = "Cylinder" | |
| 4595 | a.CanCollide = false | |
| 4596 | local a2 = Instance.new("Part",Character)
| |
| 4597 | a2.Name = "Direction" | |
| 4598 | a2.Anchored = true | |
| 4599 | a2.BrickColor = MAINRUINCOLOR | |
| 4600 | a2.Material = "Neon" | |
| 4601 | a2.Transparency = 0 | |
| 4602 | a2.Shape = "Cylinder" | |
| 4603 | a2.CanCollide = false | |
| 4604 | local ba = Instance.new("Part",Character)
| |
| 4605 | ba.Name = "HitDirect" | |
| 4606 | ba.Anchored = true | |
| 4607 | ba.BrickColor = MAINRUINCOLOR | |
| 4608 | ba.Material = "Neon" | |
| 4609 | ba.Transparency = 1 | |
| 4610 | ba.CanCollide = false | |
| 4611 | local ba2 = Instance.new("Part",Character)
| |
| 4612 | ba2.Name = "HitDirect" | |
| 4613 | ba2.Anchored = true | |
| 4614 | ba2.BrickColor = MAINRUINCOLOR | |
| 4615 | ba2.Material = "Neon" | |
| 4616 | ba2.Transparency = 1 | |
| 4617 | ba2.CanCollide = false | |
| 4618 | local ray = Ray.new( | |
| 4619 | hb.CFrame.p, -- origin | |
| 4620 | (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction | |
| 4621 | ) | |
| 4622 | local ignore = Character | |
| 4623 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4624 | local ray2 = Ray.new( | |
| 4625 | hb2.CFrame.p, -- origin | |
| 4626 | (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction | |
| 4627 | ) | |
| 4628 | local hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore) | |
| 4629 | local distance2 = (hb2.CFrame.p - position).magnitude | |
| 4630 | ||
| 4631 | a.BottomSurface = 10 | |
| 4632 | a.TopSurface = 10 | |
| 4633 | local distance = (hb.CFrame.p - position).magnitude | |
| 4634 | a.Size = Vector3.new(distance, 1, 1) | |
| 4635 | a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4636 | a2.BottomSurface = 10 | |
| 4637 | a2.TopSurface = 10 | |
| 4638 | a2.Size = Vector3.new(distance2, 1, 1) | |
| 4639 | a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2) | |
| 4640 | ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4641 | ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2) | |
| 4642 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4643 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4644 | local msh = Instance.new("SpecialMesh",a)
| |
| 4645 | msh.MeshType = "Cylinder" | |
| 4646 | msh.Scale = vt(1,4,4) | |
| 4647 | local msh2 = Instance.new("SpecialMesh",a2)
| |
| 4648 | msh2.MeshType = "Cylinder" | |
| 4649 | msh2.Scale = vt(1,4,4) | |
| 4650 | game:GetService("Debris"):AddItem(a, 30)
| |
| 4651 | game:GetService("Debris"):AddItem(a2, 30)
| |
| 4652 | game:GetService("Debris"):AddItem(ba, 30)
| |
| 4653 | game:GetService("Debris"):AddItem(ba2, 30)
| |
| 4654 | for i = 0, 20, 0.1 do | |
| 4655 | swait() | |
| 4656 | hb.CFrame = sorb.CFrame*CFrame.new(0,-3,0) | |
| 4657 | hb2.CFrame = sorb2.CFrame*CFrame.new(0,-3,0) | |
| 4658 | ray = Ray.new( | |
| 4659 | hb.CFrame.p, -- origin | |
| 4660 | (mouse.Hit.p - hb.CFrame.p).unit * 1000 -- direction | |
| 4661 | ) | |
| 4662 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4663 | distance = (hb.CFrame.p - position).magnitude | |
| 4664 | ray2 = Ray.new( | |
| 4665 | hb2.CFrame.p, -- origin | |
| 4666 | (mouse.Hit.p - hb2.CFrame.p).unit * 1000 -- direction | |
| 4667 | ) | |
| 4668 | hit2, position2, normal2 = workspace:FindPartOnRay(ray2, ignore) | |
| 4669 | distance2 = (hb2.CFrame.p - position).magnitude | |
| 4670 | a.Size = Vector3.new(distance, 1, 1) | |
| 4671 | a.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
| 4672 | a2.Size = Vector3.new(distance2, 1, 1) | |
| 4673 | a2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2/2) | |
| 4674 | ba.CFrame = CFrame.new(hb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
| 4675 | ba2.CFrame = CFrame.new(hb2.CFrame.p, position) * CFrame.new(0, 0, -distance2) | |
| 4676 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4677 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 4678 | rsiz = math.random(5,25) | |
| 4679 | MagniDamage(ba, 12, 800,18000, 0, "Normal") | |
| 4680 | MagniDamage(ba2, 12, 800,18000, 0, "Normal") | |
| 4681 | for i, v in pairs(FindNearestHead(ba.CFrame.p, 4)) do | |
| 4682 | if v:FindFirstChild('Head') then
| |
| 4683 | dmg(v) | |
| 4684 | end | |
| 4685 | end | |
| 4686 | coroutine.resume(coroutine.create(function() | |
| 4687 | local bx = Instance.new("Part",Character)
| |
| 4688 | bx.Name = "Location" | |
| 4689 | bx.Anchored = true | |
| 4690 | bx.BrickColor = MAINRUINCOLOR | |
| 4691 | bx.Material = "Neon" | |
| 4692 | bx.Transparency = 1 | |
| 4693 | bx.CanCollide = false | |
| 4694 | bx.Position = ba.Position | |
| 4695 | sphere2(2,"Add",bx.CFrame,vt(20,0.5,20),0.001,0,0.001,MAINRUINCOLOR) | |
| 4696 | wait(math.random(1,2)) | |
| 4697 | sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.1,0,0.1,bc("Lime green"))
| |
| 4698 | sphere2(4,"Add",bx.CFrame,vt(5,10000,5),0.25,0,0.25,MAINRUINCOLOR) | |
| 4699 | sphere2(6,"Add",bx.CFrame,vt(10,10,10),0.5,0.5,0.5,bc("Lime green"))
| |
| 4700 | CFuncs["Sound"].Create("rbxassetid://1042693018", bx, 5,0.7)
| |
| 4701 | CFuncs["Sound"].Create("rbxassetid://1042695469", bx, 5,0.8)
| |
| 4702 | MagniDamage(bx, 20, 80000,900000, 0, "Normal") | |
| 4703 | for i, v in pairs(FindNearestHead(bx.CFrame.p, 15)) do | |
| 4704 | if v:FindFirstChild('Head') then
| |
| 4705 | dmg(v) | |
| 4706 | end | |
| 4707 | end | |
| 4708 | wait(5) | |
| 4709 | bx:Destroy() | |
| 4710 | end)) | |
| 4711 | sphereMK(math.random(4,8),0.25,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0)
| |
| 4712 | sphereMK(math.random(4,8),0.25,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),0)
| |
| 4713 | for c = 0, 2 do | |
| 4714 | sphereMK(math.random(3,6),0.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/5,rsiz/5,rsiz/5,0,BrickColor.new("Lime green"),2)
| |
| 4715 | end | |
| 4716 | sphere2(5,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR) | |
| 4717 | sphere2(5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(12,12,12),0.05,0.05,0.05,MAINRUINCOLOR) | |
| 4718 | sphere2(5,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(4.2,4.2,4.2),0.01,0.01,0.01,MAINRUINCOLOR) | |
| 4719 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
| 4720 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
| 4721 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.3 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.05) | |
| 4722 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(10)),.05) | |
| 4723 | RW.C0=clerp(RW.C0,cf(1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-15)),.05) | |
| 4724 | LW.C0=clerp(LW.C0,cf(-1.25,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(15)),.05) | |
| 4725 | end | |
| 4726 | for i = 0, 1 do | |
| 4727 | CFuncs["Sound"].Create("rbxassetid://1042693018", sorb, 5,0.8)
| |
| 4728 | CFuncs["Sound"].Create("rbxassetid://1042695469", sorb, 5,0.9)
| |
| 4729 | CFuncs["Sound"].Create("rbxassetid://1042693018", ba, 10,0.8)
| |
| 4730 | CFuncs["Sound"].Create("rbxassetid://1042695469", ba, 10,0.9)
| |
| 4731 | end | |
| 4732 | MagniDamage(ba, 30, 8000,180000, 0, "Normal") | |
| 4733 | MagniDamage(ba2, 30, 8000,180000, 0, "Normal") | |
| 4734 | for i, v in pairs(FindNearestHead(ba.CFrame.p, 10)) do | |
| 4735 | if v:FindFirstChild('Head') then
| |
| 4736 | dmg(v) | |
| 4737 | end | |
| 4738 | end | |
| 4739 | sphere2(1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR) | |
| 4740 | sphere2(2,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR) | |
| 4741 | sphere2(3,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0,0,0),1,1,1,MAINRUINCOLOR) | |
| 4742 | sphere2(3,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
| 4743 | sphere2(6,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
| 4744 | sphere2(9,"Add",hb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,MAINRUINCOLOR) | |
| 4745 | sphere2(3,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,bc("Lime green"))
| |
| 4746 | sphere2(6,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,bc("Lime green"))
| |
| 4747 | sphere2(9,"Add",hb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.5,0.5),0.3,0.3,0.3,bc("Lime green"))
| |
| 4748 | for i = 0, 49 do | |
| 4749 | local rsiza = math.random(1,15) | |
| 4750 | sphereMK(math.random(1,5),0.75,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0)
| |
| 4751 | sphereMK(math.random(1,5),0.75,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiza/10,rsiza/10,rsiza/10,0,bc("Lime green"),0)
| |
| 4752 | end | |
| 4753 | for i = 0, 49 do | |
| 4754 | rsiz = math.random(1,8) | |
| 4755 | sphereMK(math.random(1,3),1,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz,rsiz,rsiz,0,bc("Lime green"),2)
| |
| 4756 | end | |
| 4757 | coroutine.resume(coroutine.create(function() | |
| 4758 | for i = 0, 99 do | |
| 4759 | swait() | |
| 4760 | a.Transparency = a.Transparency + 0.01 | |
| 4761 | a2.Transparency = a2.Transparency + 0.01 | |
| 4762 | end | |
| 4763 | a:Destroy() | |
| 4764 | ba:Destroy() | |
| 4765 | a2:Destroy() | |
| 4766 | ba2:Destroy() | |
| 4767 | end)) | |
| 4768 | hum.WalkSpeed = storehumanoidWS | |
| 4769 | hb:Destroy() | |
| 4770 | hb2:Destroy() | |
| 4771 | attack = false | |
| 4772 | end | |
| 4773 | ||
| 4774 | function Fireball() | |
| 4775 | attack = true | |
| 4776 | hum.WalkSpeed = 0 | |
| 4777 | local keptcolor = MAINRUINCOLOR | |
| 4778 | for i = 0,2,0.1 do | |
| 4779 | swait() | |
| 4780 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3) | |
| 4781 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-40)),.3) | |
| 4782 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.3) | |
| 4783 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(40), math.rad(-40)), 0.3) | |
| 4784 | 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(-1.5),math.rad(0),math.rad(0)),.3) | |
| 4785 | 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(-1),math.rad(0),math.rad(0)),.3) | |
| 4786 | end | |
| 4787 | local orb = Instance.new("Part", char)
| |
| 4788 | orb.BrickColor = keptcolor | |
| 4789 | orb.CanCollide = false | |
| 4790 | orb.FormFactor = 3 | |
| 4791 | orb.Name = "Ring" | |
| 4792 | orb.Material = "Neon" | |
| 4793 | orb.Size = Vector3.new(1, 1, 1) | |
| 4794 | orb.Transparency = 0 | |
| 4795 | orb.TopSurface = 0 | |
| 4796 | orb.BottomSurface = 0 | |
| 4797 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 4798 | orbm.MeshType = "Sphere" | |
| 4799 | orbm.Name = "SizeMesh" | |
| 4800 | orbm.Scale = vt(4,4,4) | |
| 4801 | orb.CFrame = root.CFrame + root.CFrame.lookVector*3 | |
| 4802 | local eff = Instance.new("ParticleEmitter",orb)
| |
| 4803 | eff.Texture = "rbxassetid://296874871" | |
| 4804 | eff.LightEmission = 0.95 | |
| 4805 | eff.Color = ColorSequence.new(orb.BrickColor.Color) | |
| 4806 | eff.Rate = 10000 | |
| 4807 | eff.Lifetime = NumberRange.new(1.5) | |
| 4808 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,7,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 4809 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 4810 | eff.Speed = NumberRange.new(25) | |
| 4811 | eff.Drag = 5 | |
| 4812 | eff.Rotation = NumberRange.new(-500,500) | |
| 4813 | eff.VelocitySpread = 9000 | |
| 4814 | eff.RotSpeed = NumberRange.new(-500,500) | |
| 4815 | local a = Instance.new("Part",workspace)
| |
| 4816 | a.Name = "Direction" | |
| 4817 | a.Anchored = true | |
| 4818 | a.BrickColor = bc("Toothpaste")
| |
| 4819 | a.Material = "Neon" | |
| 4820 | a.Transparency = 1 | |
| 4821 | a.CanCollide = false | |
| 4822 | local ray = Ray.new( | |
| 4823 | orb.CFrame.p, -- origin | |
| 4824 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
| 4825 | ) | |
| 4826 | local ignore = orb | |
| 4827 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 4828 | a.BottomSurface = 10 | |
| 4829 | a.TopSurface = 10 | |
| 4830 | local distance = (orb.CFrame.p - position).magnitude | |
| 4831 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 4832 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 4833 | orb.CFrame = a.CFrame | |
| 4834 | a:Destroy() | |
| 4835 | CFuncs["Sound"].Create("rbxassetid://304448425", orb, 1.5, 0.9)
| |
| 4836 | local bv = Instance.new("BodyVelocity")
| |
| 4837 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 4838 | bv.velocity = orb.CFrame.lookVector*75 | |
| 4839 | bv.Parent = orb | |
| 4840 | game:GetService("Debris"):AddItem(orb, 10)
| |
| 4841 | local hitted = false | |
| 4842 | coroutine.resume(coroutine.create(function() | |
| 4843 | while true do | |
| 4844 | swait() | |
| 4845 | if orb.Parent ~= nil and hitted == false then | |
| 4846 | sphere2(4,"Add",orb.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),0) - orb.CFrame.lookVector*1.5,vt(3,3,3),-0.03,-0.03,-0.03,keptcolor) | |
| 4847 | elseif orb.Parent == nil and hitted == true then | |
| 4848 | break | |
| 4849 | end | |
| 4850 | end | |
| 4851 | end)) | |
| 4852 | local hit =orb.Touched:connect(function(hit) | |
| 4853 | if hitted == false and hit.Parent ~= char then | |
| 4854 | hitted = true | |
| 4855 | eff.Enabled = false | |
| 4856 | CameraEnshaking(4,4) | |
| 4857 | CFuncs["Sound"].Create("rbxassetid://1226980789", orb, 4.5, 0.7)
| |
| 4858 | CFuncs["Sound"].Create("rbxassetid://178452221", orb, 2.5, 0.4)
| |
| 4859 | MagniDamage(orb, 25, 20,30, 0, "Normal") | |
| 4860 | sphere2(4,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor) | |
| 4861 | sphere2(3,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor) | |
| 4862 | sphere2(2,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor) | |
| 4863 | for i = 0, 9 do | |
| 4864 | sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1,1.5),-0.005,4,-0.005,keptcolor) | |
| 4865 | end | |
| 4866 | for i = 0, 49 do | |
| 4867 | local rsiz = math.random(10,30) | |
| 4868 | sphereMK(math.random(1,3),1,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
| 4869 | end | |
| 4870 | local eff = Instance.new("ParticleEmitter",orb)
| |
| 4871 | eff.Texture = "rbxassetid://296874871" | |
| 4872 | eff.LightEmission = 0.95 | |
| 4873 | eff.Color = ColorSequence.new(orb.BrickColor.Color) | |
| 4874 | eff.Rate = 10000 | |
| 4875 | eff.Lifetime = NumberRange.new(1.5) | |
| 4876 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 4877 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 4878 | eff.Speed = NumberRange.new(150) | |
| 4879 | eff.Drag = 5 | |
| 4880 | eff.Rotation = NumberRange.new(-500,500) | |
| 4881 | eff.VelocitySpread = 9000 | |
| 4882 | eff.RotSpeed = NumberRange.new(-500,500) | |
| 4883 | coroutine.resume(coroutine.create(function() | |
| 4884 | wait(0.25) | |
| 4885 | eff.Enabled = false | |
| 4886 | end)) | |
| 4887 | local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char) | |
| 4888 | orb.Anchored = true | |
| 4889 | orb.Transparency = 1 | |
| 4890 | coroutine.resume(coroutine.create(function() | |
| 4891 | if hfr ~= nil then | |
| 4892 | orb.Size = vt(50,1,50) | |
| 4893 | orb.Orientation = vt(0,0,0) | |
| 4894 | orb.CFrame = orb.CFrame*CFrame.new(0,-5,0) | |
| 4895 | orbm:Destroy() | |
| 4896 | local firef = eff:Clone() | |
| 4897 | firef.Parent = orb | |
| 4898 | firef.VelocitySpread = 50 | |
| 4899 | firef.Rate = 500 | |
| 4900 | firef.Drag = 3 | |
| 4901 | firef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.2,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 4902 | firef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 4903 | firef.Speed = NumberRange.new(10,30) | |
| 4904 | for i = 0, 24 do | |
| 4905 | wait(0.25) | |
| 4906 | MagniDamage(orb, 25, 3,6, 0, "Normal") | |
| 4907 | end | |
| 4908 | firef.Enabled = false | |
| 4909 | end | |
| 4910 | end)) | |
| 4911 | wait(10) | |
| 4912 | orb:Destroy() | |
| 4913 | end | |
| 4914 | end) | |
| 4915 | for i = 0,1,0.1 do | |
| 4916 | swait() | |
| 4917 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.5) | |
| 4918 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5) | |
| 4919 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.5) | |
| 4920 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.5) | |
| 4921 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5) | |
| 4922 | 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(0)),.5) | |
| 4923 | end | |
| 4924 | hum.WalkSpeed = storehumanoidWS | |
| 4925 | attack = false | |
| 4926 | end | |
| 4927 | ||
| 4928 | function UniversalCollapse() | |
| 4929 | attack = true | |
| 4930 | local speedearn = 0 | |
| 4931 | hum.WalkSpeed = 0 | |
| 4932 | local sbs = Instance.new("BodyPosition", root)
| |
| 4933 | sbs.P = 3000 | |
| 4934 | sbs.D = 1000 | |
| 4935 | sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000) | |
| 4936 | sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0) | |
| 4937 | CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1)
| |
| 4938 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
| |
| 4939 | for i = 0, 110, 0.1 do | |
| 4940 | swait() | |
| 4941 | speedearn = speedearn + 0.1 | |
| 4942 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 4943 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 4944 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 4945 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 4946 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 4947 | sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR) | |
| 4948 | RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1) | |
| 4949 | LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1) | |
| 4950 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 4951 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
| 4952 | RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1) | |
| 4953 | LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1) | |
| 4954 | end | |
| 4955 | CameraEnshaking(5,50) | |
| 4956 | sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR) | |
| 4957 | for i = 0, 2 do | |
| 4958 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1)
| |
| 4959 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
| |
| 4960 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1)
| |
| 4961 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1)
| |
| 4962 | end | |
| 4963 | for i = 0, 49 do | |
| 4964 | sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0) | |
| 4965 | sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0) | |
| 4966 | sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0) | |
| 4967 | sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0) | |
| 4968 | end | |
| 4969 | sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
| 4970 | sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
| 4971 | sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
| 4972 | sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
| 4973 | sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
| 4974 | sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
| 4975 | sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 4976 | sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 4977 | sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 4978 | sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 4979 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 4980 | sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 4981 | for i = 0, 99 do | |
| 4982 | PixelBlock(1,math.random(50,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0) | |
| 4983 | PixelBlock(2,math.random(250,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0) | |
| 4984 | end | |
| 4985 | for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do | |
| 4986 | if v:FindFirstChild('Head') then
| |
| 4987 | dmg(v) | |
| 4988 | end | |
| 4989 | end | |
| 4990 | MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal") | |
| 4991 | sbs:Destroy() | |
| 4992 | hum.WalkSpeed = storehumanoidWS | |
| 4993 | attack = false | |
| 4994 | end | |
| 4995 | ||
| 4996 | ||
| 4997 | function ChaosEND() | |
| 4998 | attack = true | |
| 4999 | local speedearn = 0 | |
| 5000 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5)
| |
| 5001 | for i = 0, 15, 0.1 do | |
| 5002 | swait() | |
| 5003 | speedearn = speedearn + 0.25 | |
| 5004 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
| 5005 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
| 5006 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
| 5007 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
| 5008 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
| 5009 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
| 5010 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
| 5011 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 5012 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 5013 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
| 5014 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
| 5015 | end | |
| 5016 | CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1)
| |
| 5017 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1)
| |
| 5018 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75)
| |
| 5019 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5)
| |
| 5020 | CameraEnshaking(5,25) | |
| 5021 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
| 5022 | if v:FindFirstChild('Head') then
| |
| 5023 | dmg(v) | |
| 5024 | end | |
| 5025 | end | |
| 5026 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random()) | |
| 5027 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random()) | |
| 5028 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random()) | |
| 5029 | for i = 0, 3, 0.1 do | |
| 5030 | swait() | |
| 5031 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0) | |
| 5032 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0) | |
| 5033 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0) | |
| 5034 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0) | |
| 5035 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
| 5036 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
| 5037 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
| 5038 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
| 5039 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
| 5040 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
| 5041 | end | |
| 5042 | attack = false | |
| 5043 | end | |
| 5044 | ||
| 5045 | function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon) | |
| 5046 | local orb = Instance.new("Part", char)
| |
| 5047 | orb.Anchored = true | |
| 5048 | orb.BrickColor = color | |
| 5049 | orb.CanCollide = false | |
| 5050 | orb.FormFactor = 3 | |
| 5051 | orb.Name = "Ring" | |
| 5052 | orb.Material = "Neon" | |
| 5053 | orb.Size = Vector3.new(1, 1, 1) | |
| 5054 | orb.Transparency = 0 | |
| 5055 | orb.TopSurface = 0 | |
| 5056 | orb.BottomSurface = 0 | |
| 5057 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 5058 | orbm.MeshType = "Sphere" | |
| 5059 | orb.CFrame = positted | |
| 5060 | orbm.Name = "SizeMesh" | |
| 5061 | orbm.Scale = vt(1,1,1) | |
| 5062 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1)
| |
| 5063 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor) | |
| 5064 | --[[for i = 0, 2 do | |
| 5065 | sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0) | |
| 5066 | end]]-- | |
| 5067 | coroutine.resume(coroutine.create(function() | |
| 5068 | wait(timer) | |
| 5069 | CameraEnshaking(3,ShakePower) | |
| 5070 | orb.Transparency = 1 | |
| 5071 | MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal") | |
| 5072 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor) | |
| 5073 | --[[for i = 0, 4 do | |
| 5074 | sphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0) | |
| 5075 | end]]-- | |
| 5076 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7)
| |
| 5077 | wait(3) | |
| 5078 | orb:Destroy() | |
| 5079 | end)) | |
| 5080 | end | |
| 5081 | ||
| 5082 | function orb_spawn(positted,timer) | |
| 5083 | local randomcol = math.random(1,2) | |
| 5084 | local orb = Instance.new("Part", char)
| |
| 5085 | orb.Anchored = true | |
| 5086 | if randomcol == 1 then | |
| 5087 | orb.BrickColor = BrickColor.new("White")
| |
| 5088 | elseif randomcol == 2 then | |
| 5089 | orb.BrickColor = BrickColor.new("Really black")
| |
| 5090 | end | |
| 5091 | orb.CanCollide = false | |
| 5092 | orb.FormFactor = 3 | |
| 5093 | orb.Name = "Ring" | |
| 5094 | orb.Material = "Neon" | |
| 5095 | orb.Size = Vector3.new(1, 1, 1) | |
| 5096 | orb.Transparency = 0 | |
| 5097 | orb.TopSurface = 0 | |
| 5098 | orb.BottomSurface = 0 | |
| 5099 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 5100 | orbm.MeshType = "Sphere" | |
| 5101 | orb.CFrame = positted | |
| 5102 | orbm.Name = "SizeMesh" | |
| 5103 | orbm.Scale = vt(1,1,1) | |
| 5104 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1)
| |
| 5105 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor) | |
| 5106 | for i = 0, 2 do | |
| 5107 | sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0) | |
| 5108 | end | |
| 5109 | coroutine.resume(coroutine.create(function() | |
| 5110 | wait(timer) | |
| 5111 | CameraEnshaking(3,2) | |
| 5112 | orb.Transparency = 1 | |
| 5113 | MagniDamage(orb, 17.5, 10,50, 0, "Normal") | |
| 5114 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor) | |
| 5115 | for i = 0, 4 do | |
| 5116 | sphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0) | |
| 5117 | end | |
| 5118 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7)
| |
| 5119 | wait(3) | |
| 5120 | orb:Destroy() | |
| 5121 | end)) | |
| 5122 | end | |
| 5123 | ||
| 5124 | function scattercorrupt() | |
| 5125 | attack = true | |
| 5126 | local rot = 0 | |
| 5127 | local randomrotations = math.random(1,2) | |
| 5128 | local lookv = 2.5 | |
| 5129 | local power = 5 | |
| 5130 | sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple"))
| |
| 5131 | sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple"))
| |
| 5132 | for i = 0, 9 do | |
| 5133 | sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0)
| |
| 5134 | end | |
| 5135 | CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6)
| |
| 5136 | CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5)
| |
| 5137 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1)
| |
| 5138 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75)
| |
| 5139 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5)
| |
| 5140 | local hite = Instance.new("Part", char)
| |
| 5141 | hite.Anchored = true | |
| 5142 | hite.CanCollide = false | |
| 5143 | hite.FormFactor = 3 | |
| 5144 | hite.Name = "Ring" | |
| 5145 | hite.Material = "Neon" | |
| 5146 | hite.Size = Vector3.new(1, 1, 1) | |
| 5147 | hite.Transparency = 1 | |
| 5148 | hite.TopSurface = 0 | |
| 5149 | hite.BottomSurface = 0 | |
| 5150 | hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0) | |
| 5151 | local rem = Instance.new("Part", char)
| |
| 5152 | rem.Anchored = true | |
| 5153 | rem.CanCollide = false | |
| 5154 | rem.FormFactor = 3 | |
| 5155 | rem.Name = "Ring" | |
| 5156 | rem.Material = "Neon" | |
| 5157 | rem.Size = Vector3.new(1, 1, 1) | |
| 5158 | rem.Transparency = 1 | |
| 5159 | rem.TopSurface = 0 | |
| 5160 | rem.BottomSurface = 0 | |
| 5161 | rem.CFrame = hite.CFrame | |
| 5162 | local rem2 = rem:Clone() | |
| 5163 | rem2.Parent = char | |
| 5164 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 5165 | local rem3 = rem:Clone() | |
| 5166 | rem3.Parent = char | |
| 5167 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
| 5168 | local rem4 = rem:Clone() | |
| 5169 | rem4.Parent = char | |
| 5170 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
| 5171 | hite:Destroy() | |
| 5172 | coroutine.resume(coroutine.create(function() | |
| 5173 | for i = 0, 24 do | |
| 5174 | swait(1) | |
| 5175 | if randomrotations == 1 then | |
| 5176 | rot = rot + 1 | |
| 5177 | elseif randomrotations == 2 then | |
| 5178 | rot = rot - 1 | |
| 5179 | end | |
| 5180 | power = power + 0.5 | |
| 5181 | lookv = lookv + 7.5 | |
| 5182 | rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
| 5183 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
| 5184 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
| 5185 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
| 5186 | orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
| |
| 5187 | orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
| |
| 5188 | orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
| |
| 5189 | orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5)
| |
| 5190 | end | |
| 5191 | end)) | |
| 5192 | attack = false | |
| 5193 | end | |
| 5194 | function yinyangi() | |
| 5195 | attack = true | |
| 5196 | for i = 0, 2, 0.1 do | |
| 5197 | swait() | |
| 5198 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2) | |
| 5199 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2) | |
| 5200 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2) | |
| 5201 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
| 5202 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2) | |
| 5203 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
| 5204 | end | |
| 5205 | local bv = Instance.new("BodyVelocity")
| |
| 5206 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 5207 | bv.velocity = root.CFrame.lookVector*175 | |
| 5208 | bv.Parent = root | |
| 5209 | for Rotations = 0, 9 do | |
| 5210 | for i = 0, 1, 0.5 do | |
| 5211 | swait() | |
| 5212 | bv.velocity = root.CFrame.lookVector*175 | |
| 5213 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
| 5214 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5) | |
| 5215 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5) | |
| 5216 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
| 5217 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
| 5218 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
| 5219 | end | |
| 5220 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
| 5221 | for i = 0, 1, 0.5 do | |
| 5222 | swait() | |
| 5223 | bv.velocity = root.CFrame.lookVector*175 | |
| 5224 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
| 5225 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5) | |
| 5226 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5) | |
| 5227 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
| 5228 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
| 5229 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
| 5230 | end | |
| 5231 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
| 5232 | for i = 0, 1, 0.5 do | |
| 5233 | swait() | |
| 5234 | bv.velocity = root.CFrame.lookVector*175 | |
| 5235 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
| 5236 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5) | |
| 5237 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5) | |
| 5238 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
| 5239 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
| 5240 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
| 5241 | end | |
| 5242 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
| 5243 | for i = 0, 1, 0.5 do | |
| 5244 | swait() | |
| 5245 | bv.velocity = root.CFrame.lookVector*175 | |
| 5246 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
| 5247 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5) | |
| 5248 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5) | |
| 5249 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
| 5250 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
| 5251 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
| 5252 | end | |
| 5253 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
| 5254 | end | |
| 5255 | bv:Destroy() | |
| 5256 | attack = false | |
| 5257 | end | |
| 5258 | ||
| 5259 | function createBGCircle(size,parent,color) | |
| 5260 | local bgui = Instance.new("BillboardGui",parent)
| |
| 5261 | bgui.Size = UDim2.new(size, 0, size, 0) | |
| 5262 | local imgc = Instance.new("ImageLabel",bgui)
| |
| 5263 | imgc.BackgroundTransparency = 1 | |
| 5264 | imgc.ImageTransparency = 0 | |
| 5265 | imgc.Size = UDim2.new(1,0,1,0) | |
| 5266 | imgc.Image = "rbxassetid://997291547" --997291547,521073910 | |
| 5267 | imgc.ImageColor3 = color | |
| 5268 | return bgui,imgc | |
| 5269 | end | |
| 5270 | ||
| 5271 | function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay) | |
| 5272 | local bgui,imgc = createBGCircle(size,guipar,color) | |
| 5273 | bgui.AlwaysOnTop = true | |
| 5274 | imgc.Image = "rbxassetid://" ..img | |
| 5275 | local rrot = math.random(1,2) | |
| 5276 | CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit)
| |
| 5277 | coroutine.resume(coroutine.create(function() | |
| 5278 | for i = 0, 24*delay do | |
| 5279 | swait() | |
| 5280 | if rotationenabled == true then | |
| 5281 | if rrot == 1 then | |
| 5282 | imgc.Rotation = imgc.Rotation + rotsp | |
| 5283 | elseif rrot == 2 then | |
| 5284 | imgc.Rotation = imgc.Rotation - rotsp | |
| 5285 | end | |
| 5286 | end | |
| 5287 | bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0) | |
| 5288 | imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay | |
| 5289 | end | |
| 5290 | bgui:Destroy() | |
| 5291 | end)) | |
| 5292 | end | |
| 5293 | function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled) | |
| 5294 | for i, v in pairs(mw2:GetChildren()) do | |
| 5295 | if v:IsA("Part") then
| |
| 5296 | v.BrickColor = one | |
| 5297 | v.Material = "Neon" | |
| 5298 | end | |
| 5299 | end | |
| 5300 | CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1)
| |
| 5301 | symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1) | |
| 5302 | symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1) | |
| 5303 | tr1.Color = ColorSequence.new(one.Color) | |
| 5304 | tr2.Color = ColorSequence.new(one.Color) | |
| 5305 | tr3.Color = ColorSequence.new(one.Color) | |
| 5306 | for i, v in pairs(mw1:GetChildren()) do | |
| 5307 | if v:IsA("Part") then
| |
| 5308 | if secondaryenabled == false then | |
| 5309 | v.Transparency = 1 | |
| 5310 | elseif secondaryenabled == true then | |
| 5311 | v.Transparency = 0 | |
| 5312 | end | |
| 5313 | v.BrickColor = two | |
| 5314 | v.Material = "Neon" | |
| 5315 | end | |
| 5316 | end | |
| 5317 | if secondaryenabled == false then | |
| 5318 | tl1.Enabled = false | |
| 5319 | tl2.Enabled = false | |
| 5320 | tl3.Enabled = false | |
| 5321 | elseif secondaryenabled == true then | |
| 5322 | tl1.Enabled = true | |
| 5323 | tl2.Enabled = true | |
| 5324 | tl3.Enabled = true | |
| 5325 | end | |
| 5326 | tl1.Color = ColorSequence.new(two.Color) | |
| 5327 | tl2.Color = ColorSequence.new(two.Color) | |
| 5328 | tl3.Color = ColorSequence.new(two.Color) | |
| 5329 | for i, v in pairs(m:GetChildren()) do | |
| 5330 | if v:IsA("Part") then
| |
| 5331 | v.BrickColor = three | |
| 5332 | v.Material = "Ice" | |
| 5333 | end | |
| 5334 | end | |
| 5335 | for i, v in pairs(m2:GetChildren()) do | |
| 5336 | if v:IsA("Part") then
| |
| 5337 | v.BrickColor = four | |
| 5338 | v.Material = "Ice" | |
| 5339 | end | |
| 5340 | end | |
| 5341 | for i, v in pairs(m3:GetChildren()) do | |
| 5342 | if v:IsA("Part") then
| |
| 5343 | v.BrickColor = five | |
| 5344 | v.Material = "Neon" | |
| 5345 | end | |
| 5346 | end | |
| 5347 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 5348 | if v:IsA("Part") then
| |
| 5349 | v.Transparency = exonetran | |
| 5350 | v.BrickColor = exone | |
| 5351 | v.Material = "Neon" | |
| 5352 | end | |
| 5353 | end | |
| 5354 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 5355 | if v:IsA("Part") then
| |
| 5356 | v.Transparency = extwotran | |
| 5357 | v.BrickColor = extwo | |
| 5358 | v.Material = "Neon" | |
| 5359 | end | |
| 5360 | end | |
| 5361 | end | |
| 5362 | ||
| 5363 | ||
| 5364 | function normalmog() | |
| 5365 | attack = true | |
| 5366 | hum.WalkSpeed = 0 | |
| 5367 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25)
| |
| 5368 | for i = 0,6,0.1 do | |
| 5369 | swait() | |
| 5370 | sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100) | |
| 5371 | slash(math.random(30,60)/10,5,true,"Round","Add","In",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.01,0.5),-0.5,MAINRUINCOLOR) | |
| 5372 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2) | |
| 5373 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2) | |
| 5374 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
| 5375 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2) | |
| 5376 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
| 5377 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
| 5378 | end | |
| 5379 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1)
| |
| 5380 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1)
| |
| 5381 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1)
| |
| 5382 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75)
| |
| 5383 | CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1)
| |
| 5384 | CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1)
| |
| 5385 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1)
| |
| 5386 | rainbowmode = false | |
| 5387 | chaosmode = false | |
| 5388 | ModeOfGlitch = 1 | |
| 5389 | storehumanoidWS = 16 | |
| 5390 | newTheme("rbxassetid://614032233",48.6,1,1.25)
| |
| 5391 | RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
| |
| 5392 | CameraEnshaking(5,2.5) | |
| 5393 | MAINRUINCOLOR = BrickColor.new("Really red")
| |
| 5394 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 5395 | for i = 0, 49 do | |
| 5396 | PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0) | |
| 5397 | end | |
| 5398 | for i = 0, 24 do | |
| 5399 | 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) | |
| 5400 | slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.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,350)/250,BrickColor.new("White"))
| |
| 5401 | end | |
| 5402 | for i = 0,3,0.1 do | |
| 5403 | sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0) | |
| 5404 | end | |
| 5405 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false) | |
| 5406 | for i = 0,2,0.1 do | |
| 5407 | swait() | |
| 5408 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5) | |
| 5409 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5) | |
| 5410 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
| 5411 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5) | |
| 5412 | RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5) | |
| 5413 | LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5) | |
| 5414 | end | |
| 5415 | hum.WalkSpeed = storehumanoidWS | |
| 5416 | attack = false | |
| 5417 | end | |
| 5418 | ||
| 5419 | function attackone() | |
| 5420 | attack = true | |
| 5421 | local keptcolor = MAINRUINCOLOR | |
| 5422 | for i = 0,1,0.1 do | |
| 5423 | swait() | |
| 5424 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3) | |
| 5425 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3) | |
| 5426 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3) | |
| 5427 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
| 5428 | 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(-15),math.rad(0),math.rad(0)),.3) | |
| 5429 | 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(0),math.rad(0)),.3) | |
| 5430 | end | |
| 5431 | local distlook = 5 | |
| 5432 | coroutine.resume(coroutine.create(function() | |
| 5433 | for i = 0, 4 do | |
| 5434 | swait(2) | |
| 5435 | CameraEnshaking(2,3) | |
| 5436 | local hite = Instance.new("Part", char)
| |
| 5437 | hite.Anchored = true | |
| 5438 | hite.CanCollide = false | |
| 5439 | hite.FormFactor = 3 | |
| 5440 | hite.Name = "Ring" | |
| 5441 | hite.Material = "Neon" | |
| 5442 | hite.Size = Vector3.new(1, 1, 1) | |
| 5443 | hite.Transparency = 1 | |
| 5444 | hite.TopSurface = 0 | |
| 5445 | hite.BottomSurface = 0 | |
| 5446 | hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook) | |
| 5447 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor) | |
| 5448 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor) | |
| 5449 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor) | |
| 5450 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor) | |
| 5451 | MagniDamage(hite, 9, 10,25, 0, "Normal") | |
| 5452 | for i = 0, 14 do | |
| 5453 | local rsiz = math.random(5,20) | |
| 5454 | sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
| 5455 | end | |
| 5456 | CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1)
| |
| 5457 | CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1)
| |
| 5458 | game:GetService("Debris"):AddItem(hite, 5)
| |
| 5459 | distlook = distlook + 10 | |
| 5460 | end | |
| 5461 | end)) | |
| 5462 | for i = 0,1,0.1 do | |
| 5463 | swait() | |
| 5464 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5) | |
| 5465 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5) | |
| 5466 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5) | |
| 5467 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5) | |
| 5468 | 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(-10)),.5) | |
| 5469 | 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(0),math.rad(-10)),.5) | |
| 5470 | end | |
| 5471 | attack = false | |
| 5472 | end | |
| 5473 | ||
| 5474 | function attacktwo() | |
| 5475 | attack = true | |
| 5476 | for i = 0,1,0.1 do | |
| 5477 | swait() | |
| 5478 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3) | |
| 5479 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 5480 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3) | |
| 5481 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3) | |
| 5482 | 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(-1.5),math.rad(0),math.rad(10)),.3) | |
| 5483 | 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(0),math.rad(-10)),.3) | |
| 5484 | end | |
| 5485 | CameraEnshaking(3,4) | |
| 5486 | MagniDamage(root, 12, 15,30, 0, "Normal") | |
| 5487 | sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR) | |
| 5488 | sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR) | |
| 5489 | sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR) | |
| 5490 | coroutine.resume(coroutine.create(function() | |
| 5491 | local eff = Instance.new("ParticleEmitter",root)
| |
| 5492 | eff.Texture = "rbxassetid://363275192" | |
| 5493 | eff.LightEmission = 0.95 | |
| 5494 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 5495 | eff.Rate = 10000 | |
| 5496 | eff.Lifetime = NumberRange.new(1) | |
| 5497 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,30,0)})
| |
| 5498 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 5499 | eff.Speed = NumberRange.new(10,125) | |
| 5500 | eff.Drag = 5 | |
| 5501 | eff.Rotation = NumberRange.new(-500,500) | |
| 5502 | eff.VelocitySpread = 9000 | |
| 5503 | eff.RotSpeed = NumberRange.new(-50,50) | |
| 5504 | local eff2 = eff:Clone() | |
| 5505 | eff2.Parent = root | |
| 5506 | eff2.Texture = "rbxassetid://2092248396" | |
| 5507 | eff2.Rate = 10000 | |
| 5508 | eff2.Lifetime = NumberRange.new(1.5) | |
| 5509 | eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,3,0),NumberSequenceKeypoint.new(0.8,6,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 5510 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0.25,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 5511 | eff2.Drag = 5 | |
| 5512 | eff2.Speed = NumberRange.new(25,150) | |
| 5513 | eff2.Rotation = NumberRange.new(-500,500) | |
| 5514 | eff2.VelocitySpread = 9000 | |
| 5515 | wait(0.25) | |
| 5516 | eff2.Enabled = false | |
| 5517 | eff.Enabled = false | |
| 5518 | wait(5) | |
| 5519 | eff2:Destroy() | |
| 5520 | eff:Destroy() | |
| 5521 | end)) | |
| 5522 | for i = 0, 9 do | |
| 5523 | sphere2(7.5,"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),-0.0025,1,-0.0025,MAINRUINCOLOR) | |
| 5524 | end | |
| 5525 | for i = 0, 24 do | |
| 5526 | local rsiz = math.random(5,20) | |
| 5527 | sphereMK(math.random(1,5),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0) | |
| 5528 | end | |
| 5529 | CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1)
| |
| 5530 | CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1)
| |
| 5531 | CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1)
| |
| 5532 | for i = 0,2,0.1 do | |
| 5533 | swait() | |
| 5534 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3) | |
| 5535 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
| 5536 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3) | |
| 5537 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3) | |
| 5538 | 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(-1.5),math.rad(0),math.rad(-10)),.3) | |
| 5539 | 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(0),math.rad(10)),.3) | |
| 5540 | end | |
| 5541 | attack = false | |
| 5542 | end | |
| 5543 | ||
| 5544 | function attackthree() | |
| 5545 | attack = true | |
| 5546 | local keptcolor = MAINRUINCOLOR | |
| 5547 | CFuncs["Sound"].Create("rbxassetid://1042700914", root, 2, 1.75)
| |
| 5548 | for i = 0,1,0.1 do | |
| 5549 | swait() | |
| 5550 | sphere2(6,"Add",root.CFrame + root.CFrame.lookVector*2.5,vt(3,3,3),0.01,0.01,0.01,MAINRUINCOLOR) | |
| 5551 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5) | |
| 5552 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5) | |
| 5553 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.5) | |
| 5554 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.5) | |
| 5555 | 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(-1.5),math.rad(0),math.rad(0)),.5) | |
| 5556 | 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(0),math.rad(0)),.5) | |
| 5557 | end | |
| 5558 | CFuncs["Sound"].Create("rbxassetid://1042705869", root, 1.5, 0.9)
| |
| 5559 | CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 0.9)
| |
| 5560 | local angle = -25 | |
| 5561 | coroutine.resume(coroutine.create(function() | |
| 5562 | for i = 0, 2 do | |
| 5563 | local orb = Instance.new("Part", char)
| |
| 5564 | orb.BrickColor = MAINRUINCOLOR | |
| 5565 | orb.CanCollide = false | |
| 5566 | orb.FormFactor = 3 | |
| 5567 | orb.Name = "Ring" | |
| 5568 | orb.Material = "Neon" | |
| 5569 | orb.Size = Vector3.new(1, 1, 1) | |
| 5570 | orb.Transparency = 0.5 | |
| 5571 | orb.TopSurface = 0 | |
| 5572 | orb.BottomSurface = 0 | |
| 5573 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 5574 | orbm.MeshType = "Sphere" | |
| 5575 | orbm.Name = "SizeMesh" | |
| 5576 | orbm.Scale = vt(3,3,3) | |
| 5577 | orb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(angle),0) + root.CFrame.lookVector*2.5 | |
| 5578 | local bv = Instance.new("BodyVelocity")
| |
| 5579 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 5580 | bv.velocity = orb.CFrame.lookVector*100 | |
| 5581 | bv.Parent = orb | |
| 5582 | game:GetService("Debris"):AddItem(orb, 10)
| |
| 5583 | sphere2(6,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor) | |
| 5584 | sphere2(9,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor) | |
| 5585 | coroutine.resume(coroutine.create(function() | |
| 5586 | MagniDamage(orb, 6, 8,15, 0, "Normal") | |
| 5587 | for i = 0, 7 do | |
| 5588 | swait(2.5) | |
| 5589 | CameraEnshaking(1,2) | |
| 5590 | MagniDamage(orb, 6, 8,15, 0, "Normal") | |
| 5591 | CFuncs["Sound"].Create("rbxassetid://1042693018", orb, 1.5, 1.5)
| |
| 5592 | for i = 0, 4 do | |
| 5593 | local rsiz = math.random(5,10) | |
| 5594 | sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,1,0.5),-0.0025,0.25,-0.0025,keptcolor) | |
| 5595 | sphereMK(math.random(2,6),0.15,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
| 5596 | end | |
| 5597 | sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor) | |
| 5598 | sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor) | |
| 5599 | end | |
| 5600 | orb.Transparency = 1 | |
| 5601 | orb.Anchored = false | |
| 5602 | wait(10) | |
| 5603 | orb:Destroy() | |
| 5604 | end)) | |
| 5605 | angle = angle + 25 | |
| 5606 | end | |
| 5607 | end)) | |
| 5608 | for i = 0,1,0.1 do | |
| 5609 | swait() | |
| 5610 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3) | |
| 5611 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 5612 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3) | |
| 5613 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3) | |
| 5614 | 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(-1.5),math.rad(0),math.rad(-10)),.3) | |
| 5615 | 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(0),math.rad(10)),.3) | |
| 5616 | end | |
| 5617 | attack = false | |
| 5618 | end | |
| 5619 | ----------------------------------- Abilities | |
| 5620 | ||
| 5621 | function ExtinctiveHeartbreak() | |
| 5622 | local targetted = nil | |
| 5623 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 5624 | targetted = mouse.Target.Parent | |
| 5625 | end | |
| 5626 | if targetted ~= nil then | |
| 5627 | attack = true | |
| 5628 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
| |
| 5629 | for i = 0, 9 do | |
| 5630 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
| |
| 5631 | end | |
| 5632 | for i = 0, 24 do | |
| 5633 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
| |
| 5634 | end | |
| 5635 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
| |
| 5636 | local originalpos = root.CFrame | |
| 5637 | RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2) | |
| 5638 | for i = 0, 9 do | |
| 5639 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
| |
| 5640 | end | |
| 5641 | for i = 0, 24 do | |
| 5642 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
| |
| 5643 | end | |
| 5644 | hum.WalkSpeed = 0 | |
| 5645 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
| |
| 5646 | for i = 0,2,0.1 do | |
| 5647 | swait() | |
| 5648 | 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(-10),math.rad(0)),.4) | |
| 5649 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
| 5650 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4) | |
| 5651 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
| 5652 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
| 5653 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4) | |
| 5654 | end | |
| 5655 | CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1)
| |
| 5656 | CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1)
| |
| 5657 | for i = 0,2,0.1 do | |
| 5658 | swait() | |
| 5659 | coroutine.resume(coroutine.create(function() | |
| 5660 | targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 5661 | for i,v in pairs(targetted:GetChildren()) do | |
| 5662 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 5663 | v.Velocity = vt(0,0,0) | |
| 5664 | end | |
| 5665 | end | |
| 5666 | end)) | |
| 5667 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
| 5668 | 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(10),math.rad(0)),.8) | |
| 5669 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
| 5670 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8) | |
| 5671 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
| 5672 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8) | |
| 5673 | end | |
| 5674 | CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1)
| |
| 5675 | CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1)
| |
| 5676 | CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1)
| |
| 5677 | CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1)
| |
| 5678 | --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75)
| |
| 5679 | for i = 0,4,0.1 do | |
| 5680 | swait() | |
| 5681 | coroutine.resume(coroutine.create(function() | |
| 5682 | targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0) | |
| 5683 | CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1)
| |
| 5684 | CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1)
| |
| 5685 | CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150)
| |
| 5686 | CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150)
| |
| 5687 | CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75)
| |
| 5688 | sphere2(5,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,3,3),-0.03,15,-0.03,MAINRUINCOLOR) | |
| 5689 | targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5)
| |
| 5690 | for i = 0, 2 do | |
| 5691 | slash(5,5,true,"Round","Add","Out",targetted.Head.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,350)/250,BrickColor.new("Crimson"))
| |
| 5692 | end | |
| 5693 | symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25) | |
| 5694 | for i,v in pairs(targetted:GetChildren()) do | |
| 5695 | if v:IsA("Part") or v:IsA("MeshPart") then
| |
| 5696 | v.Velocity = vt(0,0,0) | |
| 5697 | end | |
| 5698 | end | |
| 5699 | end)) | |
| 5700 | hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25) | |
| 5701 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
| 5702 | 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(10),math.rad(0)),.8) | |
| 5703 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
| 5704 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8) | |
| 5705 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(40)),.8) | |
| 5706 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8) | |
| 5707 | end | |
| 5708 | hum.CameraOffset = vt(0,0,0) | |
| 5709 | for i = 0, 49 do | |
| 5710 | sphere2(math.random(10,75)/10,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,5,5),-0.05,50,-0.05,MAINRUINCOLOR) | |
| 5711 | slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.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(40,500)/250,BrickColor.new("Really red"))
| |
| 5712 | end | |
| 5713 | CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1)
| |
| 5714 | for i = 0, 1 do | |
| 5715 | CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9)
| |
| 5716 | CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75)
| |
| 5717 | end | |
| 5718 | for i = 0, 4 do | |
| 5719 | CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1)
| |
| 5720 | end | |
| 5721 | symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1) | |
| 5722 | symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2) | |
| 5723 | symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4) | |
| 5724 | dmg(targetted) | |
| 5725 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1)
| |
| 5726 | for i = 0, 9 do | |
| 5727 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
| |
| 5728 | end | |
| 5729 | for i = 0, 24 do | |
| 5730 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
| |
| 5731 | end | |
| 5732 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
| |
| 5733 | root.CFrame = originalpos | |
| 5734 | for i = 0, 9 do | |
| 5735 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0)
| |
| 5736 | end | |
| 5737 | for i = 0, 24 do | |
| 5738 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really red"),0)
| |
| 5739 | end | |
| 5740 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red"))
| |
| 5741 | attack = false | |
| 5742 | hum.WalkSpeed = storehumanoidWS | |
| 5743 | end | |
| 5744 | end | |
| 5745 | ||
| 5746 | function THE_TRUE_POWER_OF_VIOLENCE() | |
| 5747 | attack = true | |
| 5748 | hum.WalkSpeed = 0 | |
| 5749 | for i = 0, 10, 0.1 do | |
| 5750 | swait() | |
| 5751 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 5752 | 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 - 2 * math.cos(sine / 39))),.1) | |
| 5753 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
| 5754 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4) | |
| 5755 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4) | |
| 5756 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4) | |
| 5757 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
| 5758 | end | |
| 5759 | local orb = Instance.new("Part", char)
| |
| 5760 | orb.BrickColor = MAINRUINCOLOR | |
| 5761 | orb.CanCollide = false | |
| 5762 | orb.FormFactor = 3 | |
| 5763 | orb.Name = "Ring" | |
| 5764 | orb.Material = "Neon" | |
| 5765 | orb.Size = Vector3.new(1, 1, 1) | |
| 5766 | orb.Transparency = 0 | |
| 5767 | orb.TopSurface = 0 | |
| 5768 | orb.BottomSurface = 0 | |
| 5769 | orb.CFrame = sorb.CFrame | |
| 5770 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 5771 | orbm.MeshType = "Sphere" | |
| 5772 | orbm.Name = "SizeMesh" | |
| 5773 | orbm.Scale = vt(0,0,0) | |
| 5774 | local sbs = Instance.new("BodyPosition", orb)
| |
| 5775 | sbs.P = 3000 | |
| 5776 | sbs.D = 1000 | |
| 5777 | sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000) | |
| 5778 | sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0) | |
| 5779 | CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1)
| |
| 5780 | sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
| 5781 | sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
| 5782 | sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
| 5783 | sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
| 5784 | sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
| 5785 | for i = 0, 10, 0.1 do | |
| 5786 | swait() | |
| 5787 | PixelBlockNeg(1,0.01,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),6,6,6,0.12,MAINRUINCOLOR,0) | |
| 5788 | 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 - 2 * math.cos(sine / 39))),.1) | |
| 5789 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
| 5790 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6) | |
| 5791 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6) | |
| 5792 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4) | |
| 5793 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6) | |
| 5794 | end | |
| 5795 | orb.Anchored = true | |
| 5796 | local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
| 5797 | elocacenter.Anchored = true | |
| 5798 | elocacenter.CFrame = orb.CFrame | |
| 5799 | elocacenter.Orientation = vt(0,0,0) | |
| 5800 | local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
| 5801 | eloca1.Anchored = true | |
| 5802 | eloca1.CFrame = elocacenter.CFrame | |
| 5803 | local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
| 5804 | eloca2.Anchored = true | |
| 5805 | eloca2.CFrame = elocacenter.CFrame | |
| 5806 | local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
| 5807 | eloca3.Anchored = true | |
| 5808 | eloca3.CFrame = elocacenter.CFrame | |
| 5809 | local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
| 5810 | eloca4.Anchored = true | |
| 5811 | eloca4.CFrame = elocacenter.CFrame | |
| 5812 | local lookavec = 0 | |
| 5813 | local speeds = 0 | |
| 5814 | CameraEnshaking(1,1) | |
| 5815 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1)
| |
| 5816 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1)
| |
| 5817 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1)
| |
| 5818 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1)
| |
| 5819 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 5820 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 5821 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 5822 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 5823 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 5824 | for i = 0, 99 do | |
| 5825 | swait() | |
| 5826 | lookavec = lookavec + 2.5 | |
| 5827 | speeds = speeds + 0.25 | |
| 5828 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 5829 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 5830 | PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 5831 | ||
| 5832 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 5833 | PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 5834 | ||
| 5835 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 5836 | PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 5837 | ||
| 5838 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 5839 | PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 5840 | end | |
| 5841 | ||
| 5842 | for i = 0, 149 do | |
| 5843 | swait() | |
| 5844 | speeds = speeds + 0.25 | |
| 5845 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 5846 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 5847 | PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 5848 | ||
| 5849 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 5850 | PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 5851 | ||
| 5852 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 5853 | PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 5854 | ||
| 5855 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 5856 | PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 5857 | end | |
| 5858 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75)
| |
| 5859 | for i = 0, 99 do | |
| 5860 | swait() | |
| 5861 | lookavec = lookavec - 2.5 | |
| 5862 | speeds = speeds + 0.25 | |
| 5863 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 5864 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 5865 | PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 5866 | ||
| 5867 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 5868 | PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 5869 | ||
| 5870 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 5871 | PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 5872 | ||
| 5873 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 5874 | PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 5875 | end | |
| 5876 | local scaled = 0.1*75 | |
| 5877 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1)
| |
| 5878 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1)
| |
| 5879 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5)
| |
| 5880 | CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5)
| |
| 5881 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75)
| |
| 5882 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5)
| |
| 5883 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5884 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5885 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5886 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5887 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5888 | ||
| 5889 | for i = 0, 10, 0.1 do | |
| 5890 | swait() | |
| 5891 | scaled = scaled - 0.001*75 | |
| 5892 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
| 5893 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 5894 | 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 - 2 * math.cos(sine / 39))),.1) | |
| 5895 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
| 5896 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6) | |
| 5897 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6) | |
| 5898 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4) | |
| 5899 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6) | |
| 5900 | end | |
| 5901 | for x = 0, 4 do | |
| 5902 | for i = 0, 9 do | |
| 5903 | sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0) | |
| 5904 | end | |
| 5905 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75)
| |
| 5906 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5)
| |
| 5907 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5908 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5909 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5910 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5911 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5912 | for i = 0, 5, 0.1 do | |
| 5913 | swait() | |
| 5914 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 5915 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 5916 | 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 - 2 * math.cos(sine / 39))),.1) | |
| 5917 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
| 5918 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
| 5919 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1) | |
| 5920 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1) | |
| 5921 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1) | |
| 5922 | end | |
| 5923 | end | |
| 5924 | local speedearn = 0 | |
| 5925 | CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2)
| |
| 5926 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75)
| |
| 5927 | CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25)
| |
| 5928 | for i = 0, 30, 0.1 do | |
| 5929 | swait() | |
| 5930 | scaled = scaled - 0.001*75/10 | |
| 5931 | speedearn = speedearn + 0.5 | |
| 5932 | for i = 0, 4 do | |
| 5933 | sphereMK(1+speedearn,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
| 5934 | end | |
| 5935 | PixelBlock(1,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1*speedearn/10,1*speedearn/10,1*speedearn/10,0.02*speedearn/10,MAINRUINCOLOR,0) | |
| 5936 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
| 5937 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 5938 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
| 5939 | 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 - 2 * math.cos(sine / 39))),.1) | |
| 5940 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
| 5941 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.6) | |
| 5942 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6) | |
| 5943 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4) | |
| 5944 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6) | |
| 5945 | end | |
| 5946 | orb.Transparency = 1 | |
| 5947 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do | |
| 5948 | if v:FindFirstChild('Head') then
| |
| 5949 | dmg(v) | |
| 5950 | end | |
| 5951 | end | |
| 5952 | CameraEnshaking(7,30) | |
| 5953 | MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal") | |
| 5954 | CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1)
| |
| 5955 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5)
| |
| 5956 | CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25)
| |
| 5957 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1)
| |
| 5958 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75)
| |
| 5959 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1)
| |
| 5960 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1)
| |
| 5961 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1)
| |
| 5962 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1)
| |
| 5963 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5)
| |
| 5964 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85)
| |
| 5965 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1)
| |
| 5966 | CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05)
| |
| 5967 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5968 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5969 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5970 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5971 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
| 5972 | for i = 0, 99 do | |
| 5973 | PixelBlock(1,math.random(50,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0) | |
| 5974 | PixelBlock(2,math.random(250,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0) | |
| 5975 | end | |
| 5976 | for i = 0, 24 do | |
| 5977 | sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0) | |
| 5978 | sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0) | |
| 5979 | sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0) | |
| 5980 | sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0) | |
| 5981 | sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0) | |
| 5982 | end | |
| 5983 | game:GetService("Debris"):AddItem(orb, 10)
| |
| 5984 | hum.WalkSpeed = storehumanoidWS | |
| 5985 | attack = false | |
| 5986 | end | |
| 5987 | ||
| 5988 | function ViolentRing() | |
| 5989 | attack = true | |
| 5990 | ||
| 5991 | CFuncs["EchoSound"].Create("rbxassetid://1535994137", char, 4, 1,0,10,0.15,0.5,1)
| |
| 5992 | CFuncs["EchoSound"].Create("rbxassetid://1535994137", root, 7, 1,0,10,0.15,0.5,1)
| |
| 5993 | for i = 0, 2, 0.1 do | |
| 5994 | swait() | |
| 5995 | local snap = math.random(1,10) | |
| 5996 | if snap == 1 then | |
| 5997 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(-50 + math.random(-10,10))),1) | |
| 5998 | end | |
| 5999 | PixelBlockX(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0) | |
| 6000 | PixelBlockNeg(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0) | |
| 6001 | PixelBlockX(5,0.25,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.65,0.65,0.65,0.0065,MAINRUINCOLOR,0) | |
| 6002 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6) | |
| 6003 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6) | |
| 6004 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.6) | |
| 6005 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6) | |
| 6006 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4) | |
| 6007 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6) | |
| 6008 | RootPart.CFrame = FaceMouse()[1] | |
| 6009 | end | |
| 6010 | local orb = Instance.new("Part", char)
| |
| 6011 | orb.BrickColor = MAINRUINCOLOR | |
| 6012 | orb.CanCollide = false | |
| 6013 | orb.FormFactor = 3 | |
| 6014 | orb.Name = "Ring" | |
| 6015 | orb.Material = "Neon" | |
| 6016 | orb.Size = Vector3.new(1, 1, 1) | |
| 6017 | orb.Transparency = 0 | |
| 6018 | orb.TopSurface = 0 | |
| 6019 | orb.BottomSurface = 0 | |
| 6020 | local orbm = Instance.new("SpecialMesh", orb)
| |
| 6021 | orbm.MeshType = "Sphere" | |
| 6022 | orbm.Name = "SizeMesh" | |
| 6023 | orbm.Scale = vt(2,2,2) | |
| 6024 | orb.CFrame = mouse.Hit | |
| 6025 | local bv = Instance.new("BodyVelocity")
| |
| 6026 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 6027 | bv.velocity = orb.CFrame.lookVector*100 | |
| 6028 | bv.Parent = orb | |
| 6029 | local hitted = false | |
| 6030 | coroutine.resume(coroutine.create(function() | |
| 6031 | game:GetService("Debris"):AddItem(orb, 5)
| |
| 6032 | orb.Transparency = 1 | |
| 6033 | orb.Anchored = true | |
| 6034 | local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6035 | elocacenter.Anchored = true | |
| 6036 | elocacenter.CFrame = orb.CFrame | |
| 6037 | elocacenter.Orientation = vt(0,0,0) | |
| 6038 | local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6039 | eloca1.Anchored = true | |
| 6040 | eloca1.CFrame = elocacenter.CFrame | |
| 6041 | local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6042 | eloca2.Anchored = true | |
| 6043 | eloca2.CFrame = elocacenter.CFrame | |
| 6044 | local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6045 | eloca3.Anchored = true | |
| 6046 | eloca3.CFrame = elocacenter.CFrame | |
| 6047 | local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6048 | eloca4.Anchored = true | |
| 6049 | eloca4.CFrame = elocacenter.CFrame | |
| 6050 | local lookavec = 0 | |
| 6051 | local speeds = 0 | |
| 6052 | CameraEnshaking(1,1) | |
| 6053 | CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1)
| |
| 6054 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6055 | sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6056 | sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6057 | sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6058 | sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6059 | for i = 0, 24 do | |
| 6060 | swait() | |
| 6061 | lookavec = lookavec + 3.5 | |
| 6062 | speeds = speeds + 1 | |
| 6063 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 6064 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 6065 | PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 6066 | ||
| 6067 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 6068 | PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 6069 | ||
| 6070 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 6071 | PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 6072 | ||
| 6073 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 6074 | PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 6075 | end | |
| 6076 | ||
| 6077 | local risen = 0 | |
| 6078 | for i = 0, 49 do | |
| 6079 | swait() | |
| 6080 | risen = risen + 0.05 | |
| 6081 | speeds = speeds + 0.1 | |
| 6082 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 6083 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 6084 | PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 6085 | ||
| 6086 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 6087 | PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 6088 | ||
| 6089 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 6090 | PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 6091 | ||
| 6092 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 6093 | PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
| 6094 | end | |
| 6095 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do | |
| 6096 | if v:FindFirstChild('Head') then
| |
| 6097 | dmg(v) | |
| 6098 | end | |
| 6099 | end | |
| 6100 | CameraEnshaking(4,10) | |
| 6101 | MagniDamage(elocacenter, 150, 50,75, 0, "Normal") | |
| 6102 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1)
| |
| 6103 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75)
| |
| 6104 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1)
| |
| 6105 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1)
| |
| 6106 | CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05)
| |
| 6107 | local eff = Instance.new("ParticleEmitter",elocacenter)
| |
| 6108 | eff.Texture = "rbxassetid://2273224484" | |
| 6109 | eff.LightEmission = 1 | |
| 6110 | eff.Color = ColorSequence.new(Color3.new(1,1,0)) | |
| 6111 | eff.Rate = 1000000 | |
| 6112 | eff.Lifetime = NumberRange.new(0.5,2) | |
| 6113 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 6114 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 6115 | eff.Speed = NumberRange.new(20,250) | |
| 6116 | eff.Drag = 5 | |
| 6117 | eff.Rotation = NumberRange.new(-500,500) | |
| 6118 | eff.VelocitySpread = 5000000 | |
| 6119 | eff.RotSpeed = NumberRange.new(-50,50) | |
| 6120 | coroutine.resume(coroutine.create(function() | |
| 6121 | wait(1) | |
| 6122 | eff.Enabled = false | |
| 6123 | end)) | |
| 6124 | sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR) | |
| 6125 | sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR) | |
| 6126 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 6127 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 6128 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 6129 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 6130 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
| 6131 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR) | |
| 6132 | for i = 0, 24 do | |
| 6133 | sphereMK(2,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.25,MAINRUINCOLOR,0) | |
| 6134 | sphereMK(4,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0) | |
| 6135 | sphereMK(6,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0) | |
| 6136 | sphereMK(8,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0) | |
| 6137 | end | |
| 6138 | coroutine.resume(coroutine.create(function() | |
| 6139 | wait(10) | |
| 6140 | elocacenter:Destroy() | |
| 6141 | eloca1:Destroy() | |
| 6142 | eloca2:Destroy() | |
| 6143 | eloca3:Destroy() | |
| 6144 | eloca4:Destroy() | |
| 6145 | end)) | |
| 6146 | end)) | |
| 6147 | attack = false | |
| 6148 | end | |
| 6149 | ||
| 6150 | function CorruptionEvent() | |
| 6151 | attack = true | |
| 6152 | hum.WalkSpeed = 0 | |
| 6153 | CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
| |
| 6154 | CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
| |
| 6155 | local keptcolor = MAINRUINCOLOR | |
| 6156 | for i = 0,4,0.1 do | |
| 6157 | swait() | |
| 6158 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
| 6159 | block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
| 6160 | RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1) | |
| 6161 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1) | |
| 6162 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1) | |
| 6163 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1) | |
| 6164 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1) | |
| 6165 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1) | |
| 6166 | end | |
| 6167 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1) | |
| 6168 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5) | |
| 6169 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3) | |
| 6170 | CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
| |
| 6171 | CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
| |
| 6172 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
| |
| 6173 | CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1)
| |
| 6174 | CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1)
| |
| 6175 | hum.CameraOffset = vt(0,0,0) | |
| 6176 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
| 6177 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
| 6178 | for i = 0, 24 do | |
| 6179 | slash(math.random(15,50)/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(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
| |
| 6180 | end | |
| 6181 | local rrot = 0 | |
| 6182 | coroutine.resume(coroutine.create(function() | |
| 6183 | for i = 0, 4 do | |
| 6184 | rrot = rrot + 45 | |
| 6185 | local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6186 | xa.Anchored = true | |
| 6187 | local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6188 | xb.Anchored = true | |
| 6189 | local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6190 | xc.Anchored = true | |
| 6191 | local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6192 | xd.Anchored = true | |
| 6193 | CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75)
| |
| 6194 | CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95)
| |
| 6195 | CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1)
| |
| 6196 | CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75)
| |
| 6197 | CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95)
| |
| 6198 | CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1)
| |
| 6199 | CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75)
| |
| 6200 | CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95)
| |
| 6201 | CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1)
| |
| 6202 | CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75)
| |
| 6203 | CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95)
| |
| 6204 | CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1)
| |
| 6205 | xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75) | |
| 6206 | xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75) | |
| 6207 | xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0) | |
| 6208 | xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0) | |
| 6209 | MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal") | |
| 6210 | MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal") | |
| 6211 | MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal") | |
| 6212 | MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal") | |
| 6213 | for i = 0, 9 do | |
| 6214 | slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
| |
| 6215 | slash(math.random(15,50)/10,5,true,"Round","Add","Out",xb.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
| |
| 6216 | slash(math.random(15,50)/10,5,true,"Round","Add","Out",xc.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
| |
| 6217 | slash(math.random(15,50)/10,5,true,"Round","Add","Out",xd.CFrame*CFrame.new(0,-1.5,0)*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01,0.01,0.01),math.random(50,125)/250,BrickColor.new("Really black"))
| |
| 6218 | end | |
| 6219 | block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
| 6220 | block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
| 6221 | block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
| 6222 | block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
| 6223 | sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color) | |
| 6224 | sphere2(2,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color) | |
| 6225 | sphere2(2,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color) | |
| 6226 | sphere2(2,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color) | |
| 6227 | sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
| |
| 6228 | sphere2(4,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
| |
| 6229 | sphere2(4,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
| |
| 6230 | sphere2(4,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0))
| |
| 6231 | game:GetService("Debris"):AddItem(xa, 5)
| |
| 6232 | game:GetService("Debris"):AddItem(xb, 5)
| |
| 6233 | game:GetService("Debris"):AddItem(xc, 5)
| |
| 6234 | game:GetService("Debris"):AddItem(xd, 5)
| |
| 6235 | coroutine.resume(coroutine.create(function() | |
| 6236 | for i = 0, 19 do | |
| 6237 | swait() | |
| 6238 | hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50) | |
| 6239 | end | |
| 6240 | hum.CameraOffset = vt(0,0,0) | |
| 6241 | end)) | |
| 6242 | swait(9) | |
| 6243 | end | |
| 6244 | end)) | |
| 6245 | for i = 0,2,0.1 do | |
| 6246 | swait() | |
| 6247 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8) | |
| 6248 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8) | |
| 6249 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8) | |
| 6250 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8) | |
| 6251 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8) | |
| 6252 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8) | |
| 6253 | end | |
| 6254 | attack = false | |
| 6255 | hum.WalkSpeed = storehumanoidWS | |
| 6256 | end | |
| 6257 | ||
| 6258 | function EndGROUND() | |
| 6259 | attack = true | |
| 6260 | hum.WalkSpeed = 0 | |
| 6261 | --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1)
| |
| 6262 | CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1)
| |
| 6263 | CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1)
| |
| 6264 | CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1)
| |
| 6265 | local keptcolor = MAINRUINCOLOR | |
| 6266 | for i = 0,4,0.1 do | |
| 6267 | swait() | |
| 6268 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
| 6269 | block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
| 6270 | slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black"))
| |
| 6271 | RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1) | |
| 6272 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1) | |
| 6273 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1) | |
| 6274 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1) | |
| 6275 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1) | |
| 6276 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1) | |
| 6277 | end | |
| 6278 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1) | |
| 6279 | CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1)
| |
| 6280 | CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1)
| |
| 6281 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1)
| |
| 6282 | CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1)
| |
| 6283 | CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1)
| |
| 6284 | coroutine.resume(coroutine.create(function() | |
| 6285 | local shval = 10 | |
| 6286 | for i = 0, 99 do | |
| 6287 | swait() | |
| 6288 | shval = shval - 0.1 | |
| 6289 | hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15) | |
| 6290 | end | |
| 6291 | hum.CameraOffset = vt(0,0,0) | |
| 6292 | end)) | |
| 6293 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
| 6294 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
| 6295 | for i = 0, 24 do | |
| 6296 | slash(math.random(15,50)/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(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black"))
| |
| 6297 | end | |
| 6298 | local rrot = 0 | |
| 6299 | local xam = 1 | |
| 6300 | coroutine.resume(coroutine.create(function() | |
| 6301 | for i = 0, 14 do | |
| 6302 | --swait() | |
| 6303 | rrot = rrot + 40*xam | |
| 6304 | xam = xam + 0.25 | |
| 6305 | local bonus = xam | |
| 6306 | local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random()) | |
| 6307 | xa.Anchored = true | |
| 6308 | xa.Color = Color3.new(0,0,0) | |
| 6309 | xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75) | |
| 6310 | CreateMesh(xa,"Sphere",30*bonus,1,30*bonus) | |
| 6311 | local xc = 0 | |
| 6312 | coroutine.resume(coroutine.create(function() | |
| 6313 | for i = 0, 99 do | |
| 6314 | swait() | |
| 6315 | xc = xc + 0.01 | |
| 6316 | xa.Color = Color3.new(xc,0,0) | |
| 6317 | end | |
| 6318 | xa.Transparency = 1 | |
| 6319 | CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75)
| |
| 6320 | MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal") | |
| 6321 | for i = 0, 9 do | |
| 6322 | slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01*bonus,0.01,0.01*bonus),math.random(50,125)/250*bonus,BrickColor.new("Really black"))
| |
| 6323 | end | |
| 6324 | block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30*bonus,30*bonus,30*bonus),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
| 6325 | sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25*bonus,1,25*bonus),0.05*bonus,1.5*bonus,0.05*bonus,keptcolor,keptcolor.Color) | |
| 6326 | sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30*bonus,1,30*bonus),0.05*bonus,1.5*bonus,0.05*bonus,BrickColor.new("Really black"),Color3.new(0,0,0))
| |
| 6327 | game:GetService("Debris"):AddItem(xa, 5)
| |
| 6328 | coroutine.resume(coroutine.create(function() | |
| 6329 | for i = 0, 19 do | |
| 6330 | swait() | |
| 6331 | hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50) | |
| 6332 | end | |
| 6333 | hum.CameraOffset = vt(0,0,0) | |
| 6334 | end)) | |
| 6335 | end)) | |
| 6336 | end | |
| 6337 | end)) | |
| 6338 | for i = 0,2,0.1 do | |
| 6339 | swait() | |
| 6340 | 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) | |
| 6341 | 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) | |
| 6342 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8) | |
| 6343 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8) | |
| 6344 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8) | |
| 6345 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8) | |
| 6346 | end | |
| 6347 | attack = false | |
| 6348 | hum.WalkSpeed = storehumanoidWS | |
| 6349 | end | |
| 6350 | ||
| 6351 | function HeavenlyDisk() | |
| 6352 | attack = true | |
| 6353 | hum.WalkSpeed = 2 | |
| 6354 | local keptcolor = MAINRUINCOLOR | |
| 6355 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1)
| |
| 6356 | CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1)
| |
| 6357 | sphere2(5,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color) | |
| 6358 | sphere2(5,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color) | |
| 6359 | for i = 0, 14 do | |
| 6360 | PixelBlock(1,math.random(1,3),"Add",larm.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,BrickColor.new("Toothpaste"),0)
| |
| 6361 | end | |
| 6362 | for i = 0,2,0.1 do | |
| 6363 | swait() | |
| 6364 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
| 6365 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3) | |
| 6366 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3) | |
| 6367 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3) | |
| 6368 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3) | |
| 6369 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3) | |
| 6370 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3) | |
| 6371 | end | |
| 6372 | CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1)
| |
| 6373 | for i = 0,1,0.6 do | |
| 6374 | swait() | |
| 6375 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
| 6376 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
| |
| 6377 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
| 6378 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
| 6379 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6) | |
| 6380 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
| 6381 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
| 6382 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
| 6383 | end | |
| 6384 | for i = 0,1,0.6 do | |
| 6385 | swait() | |
| 6386 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
| 6387 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
| |
| 6388 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
| 6389 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
| 6390 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6) | |
| 6391 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
| 6392 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
| 6393 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
| 6394 | end | |
| 6395 | for i = 0,1,0.6 do | |
| 6396 | swait() | |
| 6397 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
| 6398 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
| |
| 6399 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
| 6400 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
| 6401 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6) | |
| 6402 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
| 6403 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
| 6404 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
| 6405 | end | |
| 6406 | for i = 0,1,0.6 do | |
| 6407 | swait() | |
| 6408 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
| 6409 | slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White"))
| |
| 6410 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
| 6411 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
| 6412 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6) | |
| 6413 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
| 6414 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
| 6415 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
| 6416 | end | |
| 6417 | local rot = 15 | |
| 6418 | for i = 0, 2 do | |
| 6419 | local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste"))
| |
| 6420 | CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1)
| |
| 6421 | dis.CFrame = root.CFrame*CFrame.new(0,2,-3) | |
| 6422 | CreateMesh(dis,"Sphere",10,1,10) | |
| 6423 | local at1 = Instance.new("Attachment",dis)
| |
| 6424 | at1.Position = vt(-5,0,0) | |
| 6425 | local at2 = Instance.new("Attachment",dis)
| |
| 6426 | at2.Position = vt(5,0,0) | |
| 6427 | local trl = Instance.new('Trail',wed)
| |
| 6428 | trl.Attachment0 = at1 | |
| 6429 | trl.Attachment1 = at2 | |
| 6430 | trl.Texture = "rbxassetid://1049219073" | |
| 6431 | trl.LightEmission = 1 | |
| 6432 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 6433 | trl.Color = ColorSequence.new(dis.Color) | |
| 6434 | trl.Lifetime = 0.6 | |
| 6435 | local a = Instance.new("Part",workspace)
| |
| 6436 | a.Name = "Direction" | |
| 6437 | a.Anchored = true | |
| 6438 | a.BrickColor = bc("Bright red")
| |
| 6439 | a.Material = "Neon" | |
| 6440 | a.Transparency = 1 | |
| 6441 | a.CanCollide = false | |
| 6442 | local ray = Ray.new( | |
| 6443 | dis.CFrame.p, -- origin | |
| 6444 | (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction | |
| 6445 | ) | |
| 6446 | local ignore = dis | |
| 6447 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 6448 | a.BottomSurface = 10 | |
| 6449 | a.TopSurface = 10 | |
| 6450 | local distance = (dis.CFrame.p - position).magnitude | |
| 6451 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 6452 | a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 6453 | dis.CFrame = a.CFrame | |
| 6454 | dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
| 6455 | a:Destroy() | |
| 6456 | local bv = Instance.new("BodyVelocity")
| |
| 6457 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 6458 | bv.velocity = dis.CFrame.lookVector*250 | |
| 6459 | bv.Parent = dis | |
| 6460 | game:GetService("Debris"):AddItem(dis, 5)
| |
| 6461 | local hitted = false | |
| 6462 | coroutine.resume(coroutine.create(function() | |
| 6463 | dis.Touched:connect(function(hit) | |
| 6464 | if hitted == false and hit.Parent ~= char then | |
| 6465 | hitted = true | |
| 6466 | CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1)
| |
| 6467 | MagniDamage(dis, 30, 82,34575, 0, "Normal") | |
| 6468 | sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color) | |
| 6469 | sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color) | |
| 6470 | sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1))
| |
| 6471 | coroutine.resume(coroutine.create(function() | |
| 6472 | local eff = Instance.new("ParticleEmitter",dis)
| |
| 6473 | eff.Texture = "rbxassetid://2273224484" | |
| 6474 | eff.LightEmission = 1 | |
| 6475 | eff.Color = ColorSequence.new(Color3.new(0.3,1,1)) | |
| 6476 | eff.Rate = 500000 | |
| 6477 | eff.Lifetime = NumberRange.new(0.5,2) | |
| 6478 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 6479 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 6480 | eff.Speed = NumberRange.new(20,250) | |
| 6481 | eff.Drag = 5 | |
| 6482 | eff.Rotation = NumberRange.new(-500,500) | |
| 6483 | eff.VelocitySpread = 9000 | |
| 6484 | eff.RotSpeed = NumberRange.new(-50,50) | |
| 6485 | wait(0.25) | |
| 6486 | eff.Enabled = false | |
| 6487 | end)) | |
| 6488 | for i = 0, 9 do | |
| 6489 | slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White"))
| |
| 6490 | end | |
| 6491 | for i = 0, 19 do | |
| 6492 | PixelBlock(1,math.random(5,20),"Add",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0)
| |
| 6493 | end | |
| 6494 | coroutine.resume(coroutine.create(function() | |
| 6495 | for i = 0, 19 do | |
| 6496 | swait() | |
| 6497 | hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70) | |
| 6498 | end | |
| 6499 | hum.CameraOffset = vt(0,0,0) | |
| 6500 | end)) | |
| 6501 | dis.Anchored = true | |
| 6502 | dis.Transparency = 1 | |
| 6503 | wait(8) | |
| 6504 | dis:Destroy() | |
| 6505 | end | |
| 6506 | end) | |
| 6507 | end)) | |
| 6508 | rot = rot - 15 | |
| 6509 | end | |
| 6510 | for i = 0,2,0.1 do | |
| 6511 | swait() | |
| 6512 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3) | |
| 6513 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3) | |
| 6514 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
| 6515 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3) | |
| 6516 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3) | |
| 6517 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3) | |
| 6518 | end | |
| 6519 | attack = false | |
| 6520 | hum.WalkSpeed = storehumanoidWS | |
| 6521 | end | |
| 6522 | ||
| 6523 | function ANNIHILATIONTrans() | |
| 6524 | attack = true | |
| 6525 | rainbowmode = false | |
| 6526 | chaosmode = false | |
| 6527 | ModeOfGlitch = 789 | |
| 6528 | hum.WalkSpeed = 0 | |
| 6529 | newThemeCust("rbxassetid://1255569288",0,1,1.25)
| |
| 6530 | local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6531 | elocacenter.Anchored = true | |
| 6532 | elocacenter.CFrame = root.CFrame | |
| 6533 | local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6534 | eloca1.Anchored = true | |
| 6535 | eloca1.CFrame = elocacenter.CFrame | |
| 6536 | local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6537 | eloca2.Anchored = true | |
| 6538 | eloca2.CFrame = elocacenter.CFrame | |
| 6539 | local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6540 | eloca3.Anchored = true | |
| 6541 | eloca3.CFrame = elocacenter.CFrame | |
| 6542 | local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6543 | eloca4.Anchored = true | |
| 6544 | eloca4.CFrame = elocacenter.CFrame | |
| 6545 | local lookavec = 0 | |
| 6546 | local speeds = 0 | |
| 6547 | CameraEnshaking(3,2.5) | |
| 6548 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
| 6549 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
| 6550 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
| 6551 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
| 6552 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
| 6553 | CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
| |
| 6554 | CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
| |
| 6555 | for i = 0, 5, 0.1 do | |
| 6556 | swait() | |
| 6557 | --- | |
| 6558 | lookavec = lookavec + 1 | |
| 6559 | speeds = speeds + 10 | |
| 6560 | elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 6561 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 6562 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6563 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 6564 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6565 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 6566 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6567 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 6568 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6569 | --- | |
| 6570 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
| 6571 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
| 6572 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 6573 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
| 6574 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
| 6575 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1) | |
| 6576 | end | |
| 6577 | for i = 0, 5, 0.1 do | |
| 6578 | swait() | |
| 6579 | --- | |
| 6580 | speeds = speeds + 10 | |
| 6581 | elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 6582 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 6583 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6584 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 6585 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6586 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 6587 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6588 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 6589 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6590 | --- | |
| 6591 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
| 6592 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
| 6593 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 6594 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
| 6595 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
| 6596 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1) | |
| 6597 | end | |
| 6598 | MAINRUINCOLOR = BrickColor.new("Crimson")
| |
| 6599 | CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
| |
| 6600 | CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
| |
| 6601 | CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
| |
| 6602 | CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
| |
| 6603 | CameraEnshaking(1,3) | |
| 6604 | for i = 0, 24 do | |
| 6605 | PixelBlock(1,math.random(5,25),"Add",eloca1.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0) | |
| 6606 | PixelBlock(1,math.random(5,25),"Add",eloca2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0) | |
| 6607 | PixelBlock(1,math.random(5,25),"Add",eloca3.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0) | |
| 6608 | PixelBlock(1,math.random(5,25),"Add",eloca4.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0) | |
| 6609 | end | |
| 6610 | sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6611 | sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6612 | sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6613 | sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6614 | sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6615 | sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6616 | sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6617 | sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6618 | sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6619 | sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6620 | sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6621 | sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6622 | for i = 0, 5, 0.1 do | |
| 6623 | swait() | |
| 6624 | --- | |
| 6625 | lookavec = lookavec - 1 | |
| 6626 | speeds = speeds + 10 | |
| 6627 | elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 6628 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 6629 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6630 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 6631 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6632 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 6633 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6634 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 6635 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6636 | --- | |
| 6637 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
| 6638 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
| 6639 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 6640 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
| 6641 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
| 6642 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1) | |
| 6643 | end | |
| 6644 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
| 6645 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
| 6646 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
| 6647 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
| 6648 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
| 6649 | for i = 0, 49 do | |
| 6650 | PixelBlock(1,math.random(8,16),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0) | |
| 6651 | PixelBlock(2,math.random(16,32),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.05,MAINRUINCOLOR,0) | |
| 6652 | end | |
| 6653 | CameraEnshaking(5,6) | |
| 6654 | CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
| |
| 6655 | CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
| |
| 6656 | CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
| |
| 6657 | CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
| |
| 6658 | CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
| |
| 6659 | CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
| |
| 6660 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
| |
| 6661 | storehumanoidWS = 100 | |
| 6662 | hum.WalkSpeed = 100 | |
| 6663 | rainbowmode = false | |
| 6664 | chaosmode = false | |
| 6665 | tl1.Enabled = true | |
| 6666 | tl2.Enabled = true | |
| 6667 | tl3.Enabled = true | |
| 6668 | RecolorTextAndRename("ANNIHILATION",Color3.new(117,0,0),Color3.new(0,0,1),"Code")
| |
| 6669 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 6670 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 6671 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 6672 | for i, v in pairs(mw2:GetChildren()) do | |
| 6673 | if v:IsA("Part") then
| |
| 6674 | v.BrickColor = MAINRUINCOLOR | |
| 6675 | v.Material = "Neon" | |
| 6676 | end | |
| 6677 | end | |
| 6678 | for i, v in pairs(mw1:GetChildren()) do | |
| 6679 | if v:IsA("Part") then
| |
| 6680 | v.Transparency = 0 | |
| 6681 | v.BrickColor = MAINRUINCOLOR | |
| 6682 | v.Material = "Neon" | |
| 6683 | end | |
| 6684 | end | |
| 6685 | for i, v in pairs(m:GetChildren()) do | |
| 6686 | if v:IsA("Part") then
| |
| 6687 | v.BrickColor = BrickColor.new("Crimson")
| |
| 6688 | v.Material = "Neon" | |
| 6689 | end | |
| 6690 | end | |
| 6691 | for i, v in pairs(m2:GetChildren()) do | |
| 6692 | if v:IsA("Part") then
| |
| 6693 | v.BrickColor = BrickColor.new("Crimson")
| |
| 6694 | v.Material = "Neon" | |
| 6695 | end | |
| 6696 | end | |
| 6697 | for i, v in pairs(m3:GetChildren()) do | |
| 6698 | if v:IsA("Part") then
| |
| 6699 | v.BrickColor = BrickColor.new("Maroon")
| |
| 6700 | v.Material = "Neon" | |
| 6701 | end | |
| 6702 | end | |
| 6703 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 6704 | if v:IsA("Part") then
| |
| 6705 | v.Transparency = 0.75 | |
| 6706 | v.BrickColor = BrickColor.new("Maroon")
| |
| 6707 | v.Material = "Neon" | |
| 6708 | end | |
| 6709 | end | |
| 6710 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 6711 | if v:IsA("Part") then
| |
| 6712 | v.Transparency = 0.75 | |
| 6713 | v.BrickColor = BrickColor.new("Crimson")
| |
| 6714 | v.Material = "Neon" | |
| 6715 | end | |
| 6716 | end | |
| 6717 | attack = false | |
| 6718 | end | |
| 6719 | ||
| 6720 | function BIGBLACKTrans() | |
| 6721 | attack = true | |
| 6722 | rainbowmode = false | |
| 6723 | chaosmode = false | |
| 6724 | ModeOfGlitch = 100 | |
| 6725 | hum.WalkSpeed = 0 | |
| 6726 | newThemeCust("rbxassetid://1420353940",0,1,1.25)
| |
| 6727 | local elocacenter = CreateParta(root,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6728 | elocacenter.Anchored = true | |
| 6729 | elocacenter.CFrame = root.CFrame | |
| 6730 | local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6731 | eloca1.Anchored = true | |
| 6732 | eloca1.CFrame = elocacenter.CFrame | |
| 6733 | local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6734 | eloca2.Anchored = true | |
| 6735 | eloca2.CFrame = elocacenter.CFrame | |
| 6736 | local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6737 | eloca3.Anchored = true | |
| 6738 | eloca3.CFrame = elocacenter.CFrame | |
| 6739 | local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6740 | eloca4.Anchored = true | |
| 6741 | eloca4.CFrame = elocacenter.CFrame | |
| 6742 | local lookavec = 0 | |
| 6743 | local speeds = 0 | |
| 6744 | CameraEnshaking(3,2.5) | |
| 6745 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
| 6746 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
| 6747 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
| 6748 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
| 6749 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
| 6750 | CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
| |
| 6751 | CFuncs["Sound"].Create("rbxassetid://1192402877", root, 10, 1)
| |
| 6752 | for i = 0, 5, 0.1 do | |
| 6753 | swait() | |
| 6754 | --- | |
| 6755 | lookavec = lookavec + 1 | |
| 6756 | speeds = speeds + 10 | |
| 6757 | elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 6758 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 6759 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6760 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 6761 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6762 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 6763 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6764 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 6765 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6766 | --- | |
| 6767 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
| 6768 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
| 6769 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 6770 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
| 6771 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
| 6772 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1) | |
| 6773 | end | |
| 6774 | for i = 0, 5, 0.1 do | |
| 6775 | swait() | |
| 6776 | --- | |
| 6777 | speeds = speeds + 10 | |
| 6778 | elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 6779 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 6780 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6781 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 6782 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6783 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 6784 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6785 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 6786 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6787 | --- | |
| 6788 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
| 6789 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
| 6790 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 6791 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
| 6792 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
| 6793 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1) | |
| 6794 | end | |
| 6795 | MAINRUINCOLOR = BrickColor.new("Black")
| |
| 6796 | CFuncs["Sound"].Create("rbxassetid://468991944", eloca1, 5, 1)
| |
| 6797 | CFuncs["Sound"].Create("rbxassetid://468991944", eloca2, 5, 1)
| |
| 6798 | CFuncs["Sound"].Create("rbxassetid://468991944", eloca3, 5, 1)
| |
| 6799 | CFuncs["Sound"].Create("rbxassetid://468991944", eloca4, 5, 1)
| |
| 6800 | CameraEnshaking(1,3) | |
| 6801 | for i = 0, 24 do | |
| 6802 | PixelBlock(1,math.random(5,25),"Add",eloca1.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0) | |
| 6803 | PixelBlock(1,math.random(5,25),"Add",eloca2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0) | |
| 6804 | PixelBlock(1,math.random(5,25),"Add",eloca3.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0) | |
| 6805 | PixelBlock(1,math.random(5,25),"Add",eloca4.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.1,MAINRUINCOLOR,0) | |
| 6806 | end | |
| 6807 | sphere(1,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6808 | sphere(2,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6809 | sphere(3,"Add",eloca1.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6810 | sphere(1,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6811 | sphere(2,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6812 | sphere(3,"Add",eloca2.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6813 | sphere(1,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6814 | sphere(2,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6815 | sphere(3,"Add",eloca3.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6816 | sphere(1,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6817 | sphere(2,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6818 | sphere(3,"Add",eloca4.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
| 6819 | for i = 0, 5, 0.1 do | |
| 6820 | swait() | |
| 6821 | --- | |
| 6822 | lookavec = lookavec - 1 | |
| 6823 | speeds = speeds + 10 | |
| 6824 | elocacenter.CFrame = root.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
| 6825 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
| 6826 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6827 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
| 6828 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6829 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
| 6830 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6831 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
| 6832 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),2.5,2.5,2.5,0.025,MAINRUINCOLOR,-2) | |
| 6833 | --- | |
| 6834 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
| 6835 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
| 6836 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
| 6837 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
| 6838 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
| 6839 | LW.C0=clerp(LW.C0,cf(-1.45,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90 - 2.5 * math.cos(sine / 28))),.1) | |
| 6840 | end | |
| 6841 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
| 6842 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
| 6843 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
| 6844 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
| 6845 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
| 6846 | for i = 0, 49 do | |
| 6847 | PixelBlock(1,math.random(8,16),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0) | |
| 6848 | PixelBlock(2,math.random(16,32),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,5,0.05,MAINRUINCOLOR,0) | |
| 6849 | end | |
| 6850 | CameraEnshaking(5,6) | |
| 6851 | CFuncs["Sound"].Create("rbxassetid://419447292", root, 10,1)
| |
| 6852 | CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1)
| |
| 6853 | CFuncs["Sound"].Create("rbxassetid://741272936", root, 5, 1)
| |
| 6854 | CFuncs["Sound"].Create("rbxassetid://164881112", root, 5, 1)
| |
| 6855 | CFuncs["Sound"].Create("rbxassetid://1192402877", root, 5, 1)
| |
| 6856 | CFuncs["Sound"].Create("rbxassetid://429123896", root, 5, 0.85)
| |
| 6857 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 5, 1)
| |
| 6858 | storehumanoidWS = 100 | |
| 6859 | hum.WalkSpeed = 100 | |
| 6860 | rainbowmode = false | |
| 6861 | chaosmode = false | |
| 6862 | tl1.Enabled = true | |
| 6863 | tl2.Enabled = true | |
| 6864 | tl3.Enabled = true | |
| 6865 | RecolorTextAndRename("THE BIG BLACK",Color3.new(0,0,0),Color3.new(1,1,1),"Code")
| |
| 6866 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 6867 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 6868 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
| 6869 | for i, v in pairs(mw2:GetChildren()) do | |
| 6870 | if v:IsA("Part") then
| |
| 6871 | v.BrickColor = MAINRUINCOLOR | |
| 6872 | v.Material = "Neon" | |
| 6873 | end | |
| 6874 | end | |
| 6875 | for i, v in pairs(mw2:GetChildren()) do | |
| 6876 | if v:IsA("Part") then
| |
| 6877 | v.BrickColor = BrickColor.new("Really black")
| |
| 6878 | v.Material = "Glass" | |
| 6879 | end | |
| 6880 | end | |
| 6881 | for i, v in pairs(mw1:GetChildren()) do | |
| 6882 | if v:IsA("Part") then
| |
| 6883 | v.Transparency = 0 | |
| 6884 | v.BrickColor = BrickColor.new("Really black")
| |
| 6885 | v.Material = "Glass" | |
| 6886 | end | |
| 6887 | end | |
| 6888 | for i, v in pairs(m:GetChildren()) do | |
| 6889 | if v:IsA("Part") then
| |
| 6890 | v.BrickColor = BrickColor.new("Really black")
| |
| 6891 | v.Material = "Glass" | |
| 6892 | end | |
| 6893 | end | |
| 6894 | for i, v in pairs(m2:GetChildren()) do | |
| 6895 | if v:IsA("Part") then
| |
| 6896 | v.BrickColor = BrickColor.new("Dark stone grey")
| |
| 6897 | v.Material = "Granite" | |
| 6898 | end | |
| 6899 | end | |
| 6900 | for i, v in pairs(m3:GetChildren()) do | |
| 6901 | if v:IsA("Part") then
| |
| 6902 | v.BrickColor = BrickColor.new("Really black")
| |
| 6903 | v.Material = "Glass" | |
| 6904 | end | |
| 6905 | end | |
| 6906 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
| 6907 | if v:IsA("Part") then
| |
| 6908 | v.Transparency = 0 | |
| 6909 | v.BrickColor = BrickColor.new("Dark stone grey")
| |
| 6910 | v.Material = "Glass" | |
| 6911 | end | |
| 6912 | end | |
| 6913 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
| 6914 | if v:IsA("Part") then
| |
| 6915 | v.Transparency = 0 | |
| 6916 | v.BrickColor = BrickColor.new("Dark stone grey")
| |
| 6917 | v.Material = "Glass" | |
| 6918 | end | |
| 6919 | end | |
| 6920 | attack = false | |
| 6921 | end | |
| 6922 | ||
| 6923 | function RapidBurst() | |
| 6924 | attack = true | |
| 6925 | hum.WalkSpeed = 0 | |
| 6926 | CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5)
| |
| 6927 | CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5)
| |
| 6928 | CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1)
| |
| 6929 | local keptcolor = MAINRUINCOLOR | |
| 6930 | for i = 0,8,0.1 do | |
| 6931 | swait() | |
| 6932 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
| 6933 | 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.random()) | |
| 6934 | block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color) | |
| 6935 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-15 - 2 * math.cos(sine / 32))),.1) | |
| 6936 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 2 * math.cos(sine / 32))),.1) | |
| 6937 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(-15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
| 6938 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
| 6939 | RW.C0=clerp(RW.C0,cf(1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-10 + 3 * math.cos(sine / 45))),.1) | |
| 6940 | LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(13 - 3 * math.cos(sine / 45))),.1) | |
| 6941 | end | |
| 6942 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1) | |
| 6943 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5) | |
| 6944 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3) | |
| 6945 | sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color) | |
| 6946 | sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color) | |
| 6947 | sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color) | |
| 6948 | sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color) | |
| 6949 | CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1)
| |
| 6950 | CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8)
| |
| 6951 | CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1)
| |
| 6952 | hum.CameraOffset = vt(0,0,0) | |
| 6953 | for i = 0, 24 do | |
| 6954 | slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.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(500,1500)/250,BrickColor.random()) | |
| 6955 | end | |
| 6956 | local distam = 0 | |
| 6957 | coroutine.resume(coroutine.create(function() | |
| 6958 | for i = 0, 99 do | |
| 6959 | wait() | |
| 6960 | distam = distam + 1 | |
| 6961 | local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
| 6962 | xa.Anchored = true | |
| 6963 | xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam)) | |
| 6964 | game:GetService("Debris"):AddItem(xa, 5)
| |
| 6965 | for i = 0, 4 do | |
| 6966 | slash(math.random(25,50)/10,5,true,"Round","Add","Out",xa.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(200,500)/250,BrickColor.random()) | |
| 6967 | end | |
| 6968 | coroutine.resume(coroutine.create(function() | |
| 6969 | local eff = Instance.new("ParticleEmitter",xa)
| |
| 6970 | eff.Texture = "rbxassetid://2273224484" | |
| 6971 | eff.LightEmission = 1 | |
| 6972 | eff.Color = ColorSequence.new(BrickColor.random().Color) | |
| 6973 | eff.Rate = 500000 | |
| 6974 | eff.Lifetime = NumberRange.new(1,3) | |
| 6975 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 6976 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 6977 | eff.Speed = NumberRange.new(50,500) | |
| 6978 | eff.Drag = 5 | |
| 6979 | eff.Rotation = NumberRange.new(-500,500) | |
| 6980 | eff.VelocitySpread = 9000 | |
| 6981 | eff.RotSpeed = NumberRange.new(-50,50) | |
| 6982 | wait(0.25) | |
| 6983 | eff.Enabled = false | |
| 6984 | end)) | |
| 6985 | coroutine.resume(coroutine.create(function() | |
| 6986 | for i = 0, 19 do | |
| 6987 | swait() | |
| 6988 | hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) | |
| 6989 | end | |
| 6990 | hum.CameraOffset = vt(0,0,0) | |
| 6991 | end)) | |
| 6992 | CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200)
| |
| 6993 | sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color) | |
| 6994 | sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color) | |
| 6995 | MagniDamage(xa, 60, 9999,99999, 0, "Normal") | |
| 6996 | end | |
| 6997 | end)) | |
| 6998 | attack = false | |
| 6999 | hum.WalkSpeed = storehumanoidWS | |
| 7000 | end | |
| 7001 | ||
| 7002 | ||
| 7003 | function FallenOrbs() | |
| 7004 | attack = true | |
| 7005 | hum.WalkSpeed = 2 | |
| 7006 | local keptcolor = MAINRUINCOLOR | |
| 7007 | CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1)
| |
| 7008 | CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1)
| |
| 7009 | coroutine.resume(coroutine.create(function() | |
| 7010 | for i = 0, 29 do | |
| 7011 | swait(2) | |
| 7012 | local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR) | |
| 7013 | dis.Anchored = true | |
| 7014 | CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5)
| |
| 7015 | dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35)) | |
| 7016 | CreateMesh(dis,"Sphere",2,2,2) | |
| 7017 | sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color) | |
| 7018 | slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.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(10,50)/250,BrickColor.new("White"))
| |
| 7019 | coroutine.resume(coroutine.create(function() | |
| 7020 | wait(0.5) | |
| 7021 | dis.Anchored = false | |
| 7022 | CFuncs["EchoSound"].Create("rbxassetid://144140670", dis, 5, 1.75,0.1,2,0.15,0.5,1)
| |
| 7023 | local at1 = Instance.new("Attachment",dis)
| |
| 7024 | at1.Position = vt(-1,0,0) | |
| 7025 | local at2 = Instance.new("Attachment",dis)
| |
| 7026 | at2.Position = vt(1,0,0) | |
| 7027 | local trl = Instance.new('Trail',wed)
| |
| 7028 | trl.Attachment0 = at1 | |
| 7029 | tr1.FaceCamera = true | |
| 7030 | trl.Attachment1 = at2 | |
| 7031 | trl.Texture = "rbxassetid://1049219073" | |
| 7032 | trl.LightEmission = 1 | |
| 7033 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
| |
| 7034 | trl.Color = ColorSequence.new(dis.Color) | |
| 7035 | trl.Lifetime = 0.6 | |
| 7036 | local a = Instance.new("Part",workspace)
| |
| 7037 | a.Name = "Direction" | |
| 7038 | a.Anchored = true | |
| 7039 | a.BrickColor = bc("Bright red")
| |
| 7040 | a.Material = "Neon" | |
| 7041 | a.Transparency = 1 | |
| 7042 | a.CanCollide = false | |
| 7043 | local ray = Ray.new( | |
| 7044 | dis.CFrame.p, -- origin | |
| 7045 | (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction | |
| 7046 | ) | |
| 7047 | local ignore = dis | |
| 7048 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 7049 | a.BottomSurface = 10 | |
| 7050 | a.TopSurface = 10 | |
| 7051 | local distance = (dis.CFrame.p - position).magnitude | |
| 7052 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 7053 | a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0) | |
| 7054 | dis.CFrame = a.CFrame | |
| 7055 | a:Destroy() | |
| 7056 | local bv = Instance.new("BodyVelocity")
| |
| 7057 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 7058 | bv.velocity = dis.CFrame.lookVector*500 | |
| 7059 | bv.Parent = dis | |
| 7060 | game:GetService("Debris"):AddItem(dis, 5)
| |
| 7061 | local hitted = false | |
| 7062 | coroutine.resume(coroutine.create(function() | |
| 7063 | dis.Touched:connect(function(hit) | |
| 7064 | if hitted == false and hit.Parent ~= char then | |
| 7065 | hitted = true | |
| 7066 | CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1)
| |
| 7067 | MagniDamage(dis, 60, 25456,124672, 0, "Normal") | |
| 7068 | sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color) | |
| 7069 | sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1))
| |
| 7070 | coroutine.resume(coroutine.create(function() | |
| 7071 | local eff = Instance.new("ParticleEmitter",dis)
| |
| 7072 | eff.Texture = "rbxassetid://2273224484" | |
| 7073 | eff.LightEmission = 1 | |
| 7074 | eff.Color = ColorSequence.new(dis.Color) | |
| 7075 | eff.Rate = 500000 | |
| 7076 | eff.Lifetime = NumberRange.new(0.5,2) | |
| 7077 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)})
| |
| 7078 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 7079 | eff.Speed = NumberRange.new(20,250) | |
| 7080 | eff.Drag = 5 | |
| 7081 | eff.Rotation = NumberRange.new(-500,500) | |
| 7082 | eff.VelocitySpread = 9000 | |
| 7083 | eff.RotSpeed = NumberRange.new(-50,50) | |
| 7084 | wait(0.5) | |
| 7085 | eff.Enabled = false | |
| 7086 | end)) | |
| 7087 | for i = 0, 4 do | |
| 7088 | slash(math.random(20,50)/10,5,true,"Round","Add","Out",dis.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(100,200)/250,BrickColor.new("White"))
| |
| 7089 | end | |
| 7090 | coroutine.resume(coroutine.create(function() | |
| 7091 | for i = 0, 19 do | |
| 7092 | swait() | |
| 7093 | hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70) | |
| 7094 | end | |
| 7095 | hum.CameraOffset = vt(0,0,0) | |
| 7096 | end)) | |
| 7097 | dis.Anchored = true | |
| 7098 | dis.Transparency = 1 | |
| 7099 | wait(8) | |
| 7100 | dis:Destroy() | |
| 7101 | end | |
| 7102 | end) | |
| 7103 | end)) | |
| 7104 | end)) | |
| 7105 | end | |
| 7106 | end)) | |
| 7107 | for i = 0,9,0.1 do | |
| 7108 | swait() | |
| 7109 | sphere2(8,"Add",rarm.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.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
| 7110 | 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 - 2 * math.cos(sine / 32))),.3) | |
| 7111 | 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 + 2 * math.cos(sine / 32))),.3) | |
| 7112 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(90)),.3) | |
| 7113 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-15 + 1 * math.cos(sine / 58)),math.rad(-90 + 2 * math.cos(sine / 53))),.3) | |
| 7114 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(90 + 2 * math.cos(sine / 45))),.3) | |
| 7115 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(8 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-9 - 4 * math.cos(sine / 45))),.3) | |
| 7116 | end | |
| 7117 | attack = false | |
| 7118 | hum.WalkSpeed = storehumanoidWS | |
| 7119 | end | |
| 7120 | ||
| 7121 | ------------------------------------- | |
| 7122 | ||
| 7123 | Humanoid.Animator.Parent = nil | |
| 7124 | ||
| 7125 | ------------------------------------- | |
| 7126 | ||
| 7127 | local attacktype = 1 | |
| 7128 | mouse.Button1Down:connect(function() | |
| 7129 | if attack == false and attacktype == 1 then | |
| 7130 | attacktype = 2 | |
| 7131 | attackone() | |
| 7132 | elseif attack == false and attacktype == 2 then | |
| 7133 | attacktype = 3 | |
| 7134 | attacktwo() | |
| 7135 | elseif attack == false and attacktype == 3 then | |
| 7136 | attacktype = 1 | |
| 7137 | attackthree() | |
| 7138 | elseif attack == false and attacktype == 4 then | |
| 7139 | attacktype = 1 | |
| 7140 | --attackfour() | |
| 7141 | end | |
| 7142 | end) | |
| 7143 | mouse.KeyDown:connect(function(k) | |
| 7144 | if k == "q" and attack == false and ModeOfGlitch ~= 1 then | |
| 7145 | --normalmog() ---Disabled due to crashing... only in VSB | |
| 7146 | ModeOfGlitch = 1 | |
| 7147 | storehumanoidWS = 16 | |
| 7148 | hum.WalkSpeed = 16 | |
| 7149 | rainbowmode = false | |
| 7150 | chaosmode = false | |
| 7151 | newTheme("rbxassetid://614032233",48.6,1,1.25)
| |
| 7152 | RecolorTextAndRename("MAYHEM",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique")
| |
| 7153 | MAINRUINCOLOR = BrickColor.new("Really red")
| |
| 7154 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false) | |
| 7155 | end | |
| 7156 | if k == "e" and attack == false and ModeOfGlitch ~= 2 then | |
| 7157 | ModeOfGlitch = 2 | |
| 7158 | storehumanoidWS = 16 | |
| 7159 | hum.WalkSpeed = 16 | |
| 7160 | rainbowmode = false | |
| 7161 | chaosmode = false | |
| 7162 | RecolorTextAndRename("PURITY",Color3.new(0,1,1),Color3.new(1,1,1),"Code")
| |
| 7163 | newTheme("rbxassetid://1539245059",0,1,1.25)
| |
| 7164 | MAINRUINCOLOR = BrickColor.new("Toothpaste")
| |
| 7165 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
| 7166 | end | |
| 7167 | if k == "r" and attack == false and ModeOfGlitch ~= 3 then | |
| 7168 | ModeOfGlitch = 3 | |
| 7169 | storehumanoidWS = 16 | |
| 7170 | hum.WalkSpeed = 16 | |
| 7171 | rainbowmode = false | |
| 7172 | chaosmode = false | |
| 7173 | RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique")
| |
| 7174 | newTheme("rbxassetid://1283869370",58.15,0.98,1.25)
| |
| 7175 | MAINRUINCOLOR = BrickColor.new("Royal purple")
| |
| 7176 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
| 7177 | end | |
| 7178 | if k == "t" and attack == false and ModeOfGlitch ~= 4 then | |
| 7179 | ModeOfGlitch = 4 | |
| 7180 | storehumanoidWS = 16 | |
| 7181 | hum.WalkSpeed = 16 | |
| 7182 | rainbowmode = false | |
| 7183 | chaosmode = true | |
| 7184 | RecolorTextAndRename("CHAOS",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade")
| |
| 7185 | newTheme("rbxassetid://1369263130",0,1.01,1.25)
| |
| 7186 | MAINRUINCOLOR = BrickColor.new("Black")
| |
| 7187 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
| 7188 | end | |
| 7189 | if k == "y" and attack == false and ModeOfGlitch ~= 5 then | |
| 7190 | ModeOfGlitch = 5 | |
| 7191 | storehumanoidWS = 16 | |
| 7192 | hum.WalkSpeed = 16 | |
| 7193 | rainbowmode = false | |
| 7194 | chaosmode = false | |
| 7195 | RecolorTextAndRename("DIVINITY",Color3.new(1,1,1),Color3.new(1,1,0.5),"SciFi")
| |
| 7196 | newTheme("rbxassetid://661079869",0,1.02,1.25)
| |
| 7197 | MAINRUINCOLOR = BrickColor.new("Bright yellow")
| |
| 7198 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
| 7199 | end | |
| 7200 | if k == "u" and attack == false and ModeOfGlitch ~= 6 then | |
| 7201 | ModeOfGlitch = 6 | |
| 7202 | storehumanoidWS = 100 | |
| 7203 | hum.WalkSpeed = 100 | |
| 7204 | rainbowmode = false | |
| 7205 | chaosmode = false | |
| 7206 | RecolorTextAndRename("EQUINOX",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy")
| |
| 7207 | newTheme("rbxassetid://1347011178",0,1.01,1.25)
| |
| 7208 | MAINRUINCOLOR = BrickColor.new("White")
| |
| 7209 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
| |
| 7210 | end | |
| 7211 | if k == "m" and attack == false and ModeOfGlitch == 11 and ModeOfGlitch ~= 100 then | |
| 7212 | BIGBLACKTrans() | |
| 7213 | end | |
| 7214 | if k == "f" and attack == false and ModeOfGlitch ~= 8 then | |
| 7215 | ModeOfGlitch = 8 | |
| 7216 | storehumanoidWS = 140 | |
| 7217 | hum.WalkSpeed = 140 | |
| 7218 | rainbowmode = false | |
| 7219 | chaosmode = false | |
| 7220 | RecolorTextAndRename("DESTINY",Color3.new(1,1,1),BrickColor.new("Alder").Color,"Code")
| |
| 7221 | newTheme("rbxassetid://1495032271",0,1.01,1.25)
| |
| 7222 | MAINRUINCOLOR = BrickColor.new("Alder")
| |
| 7223 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
| 7224 | end | |
| 7225 | if k == "m" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 789 then | |
| 7226 | ANNIHILATIONTrans() | |
| 7227 | end | |
| 7228 | if k == "g" and attack == false and ModeOfGlitch ~= 10 then | |
| 7229 | ModeOfGlitch = 10 | |
| 7230 | storehumanoidWS = 16 | |
| 7231 | hum.WalkSpeed = 16 | |
| 7232 | rainbowmode = false | |
| 7233 | chaosmode = false | |
| 7234 | RecolorTextAndRename("Luna",Color3.new(0,0,0.25),BrickColor.new("Bright yellow").Color,"Antique")
| |
| 7235 | newTheme("rbxassetid://1449911189",0,1.02,1.25)
| |
| 7236 | MAINRUINCOLOR = BrickColor.new("Navy blue")
| |
| 7237 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
| 7238 | end | |
| 7239 | if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then | |
| 7240 | ModeOfGlitch = 55469696922 | |
| 7241 | storehumanoidWS = 275 | |
| 7242 | hum.WalkSpeed = 275 | |
| 7243 | rainbowmode = false | |
| 7244 | chaosmode = false | |
| 7245 | RecolorTextAndRename("NANODEATH",Color3.new(0.25,0,0.1),BrickColor.new("Hot pink").Color,"Antique")
| |
| 7246 | newTheme("rbxassetid://582020393",0,1.005,1.25)
| |
| 7247 | MAINRUINCOLOR = BrickColor.new("Hot pink")
| |
| 7248 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
| 7249 | end | |
| 7250 | if k == "n" and attack == false and ModeOfGlitch == 10 and ModeOfGlitch ~= 987 then | |
| 7251 | ModeOfGlitch = 987 | |
| 7252 | storehumanoidWS = 275 | |
| 7253 | hum.WalkSpeed = 275 | |
| 7254 | rainbowmode = false | |
| 7255 | chaosmode = false | |
| 7256 | RecolorTextAndRename("Lunar",Color3.new(0,0,0),BrickColor.new("Navy blue").Color,"Antique")
| |
| 7257 | newTheme("rbxassetid://2223020681",0,1.005,1.25)
| |
| 7258 | MAINRUINCOLOR = BrickColor.new("Cyan")
| |
| 7259 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
| 7260 | end | |
| 7261 | if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then | |
| 7262 | ModeOfGlitch = 4367677813 | |
| 7263 | storehumanoidWS = 225 | |
| 7264 | hum.WalkSpeed = 225 | |
| 7265 | rainbowmode = false | |
| 7266 | chaosmode = false | |
| 7267 | RecolorTextAndRename("SHD",Color3.new(0.75,0.9,1),BrickColor.new("Pink").Color,"Arcade")
| |
| 7268 | newTheme("rbxassetid://363284685",0,1.01,1.25)
| |
| 7269 | MAINRUINCOLOR = BrickColor.new("Baby blue")
| |
| 7270 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true)
| |
| 7271 | end | |
| 7272 | if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then | |
| 7273 | ModeOfGlitch = 1264532489 | |
| 7274 | storehumanoidWS = 250 | |
| 7275 | hum.WalkSpeed = 250 | |
| 7276 | rainbowmode = false | |
| 7277 | chaosmode = false | |
| 7278 | RecolorTextAndRename("FALLENX",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Antique")
| |
| 7279 | newTheme("rbxassetid://1505487022",0,1.01,1.25)
| |
| 7280 | MAINRUINCOLOR = BrickColor.new("Pastel green")
| |
| 7281 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
| 7282 | end | |
| 7283 | if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 11 then | |
| 7284 | ModeOfGlitch = 11 | |
| 7285 | storehumanoidWS = 16 | |
| 7286 | hum.WalkSpeed = 16 | |
| 7287 | rainbowmode = false | |
| 7288 | chaosmode = false | |
| 7289 | RecolorTextAndRename("MURDER",Color3.new(0,0,0),BrickColor.new("Really red").Color,"Antique")
| |
| 7290 | newTheme("rbxassetid://407749940",1,1.01,1.25)
| |
| 7291 | MAINRUINCOLOR = BrickColor.new("Really red")
| |
| 7292 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
| 7293 | end | |
| 7294 | if k == "l" and mutedtog == false then | |
| 7295 | mutedtog = true | |
| 7296 | kan.Volume = 0 | |
| 7297 | elseif k == "l" and mutedtog == true then | |
| 7298 | mutedtog = false | |
| 7299 | kan.Volume = 1.25 | |
| 7300 | end | |
| 7301 | if k == "p" and toggleTag == false then | |
| 7302 | toggleTag = true | |
| 7303 | modet.TextTransparency = 0 | |
| 7304 | modet.TextStrokeTransparency = 0 | |
| 7305 | elseif k == "p" and toggleTag == true then | |
| 7306 | toggleTag = false | |
| 7307 | modet.TextTransparency = 1 | |
| 7308 | modet.TextStrokeTransparency = 1 | |
| 7309 | end | |
| 7310 | if k == "z" and attack == false and ModeOfGlitch == 1 then | |
| 7311 | ExtinctiveHeartbreak() | |
| 7312 | elseif k == "z" and attack == false and ModeOfGlitch == 2 then | |
| 7313 | HeavenlyDisk() | |
| 7314 | elseif k == "v" and attack == false and ModeOfGlitch == 8 then | |
| 7315 | THE_TRUE_POWER_OF_VIOLENCE() | |
| 7316 | elseif k == "z" and attack == false and ModeOfGlitch == 789 then | |
| 7317 | ViolentRing() | |
| 7318 | elseif k == "z" and attack == false and ModeOfGlitch == 100 then | |
| 7319 | GalacticalBeams() | |
| 7320 | elseif k == "z" and attack == false and ModeOfGlitch == 987 then | |
| 7321 | BeamOfDeath() | |
| 7322 | elseif k == "z" and attack == false and ModeOfGlitch == 10 then | |
| 7323 | DualGleamingBeam() | |
| 7324 | elseif k == "c" and attack == false and ModeOfGlitch == 2 then | |
| 7325 | Fireball() | |
| 7326 | elseif k == "z" and attack == false and ModeOfGlitch == 3 then | |
| 7327 | CorruptionEvent() | |
| 7328 | elseif k == "z" and attack == false and ModeOfGlitch == 4 then | |
| 7329 | RapidBurst() | |
| 7330 | elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then | |
| 7331 | FallenOrbs() | |
| 7332 | end | |
| 7333 | if k == "x" and attack == false and ModeOfGlitch == 1 then | |
| 7334 | EndGROUND() | |
| 7335 | end | |
| 7336 | end) | |
| 7337 | ||
| 7338 | coroutine.resume(coroutine.create(function() | |
| 7339 | while true do | |
| 7340 | swait() | |
| 7341 | if ModeOfGlitch == 100 then | |
| 7342 | sphereMK(7.5,math.random(15,50)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),1,0.25,7.5,-0.0075,MAINRUINCOLOR,0) | |
| 7343 | end | |
| 7344 | if ModeOfGlitch == 5555 then | |
| 7345 | sphereMK(5,math.random(8,14)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.25,0.25,7.5,-0.0025,MAINRUINCOLOR,0) | |
| 7346 | end | |
| 7347 | end | |
| 7348 | end)) | |
| 7349 | --[[coroutine.resume(coroutine.create(function() | |
| 7350 | while true do | |
| 7351 | swait(2) | |
| 7352 | if chaosmode == true then | |
| 7353 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
| 7354 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
| 7355 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
| 7356 | RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
| |
| 7357 | for i, v in pairs(mw1:GetChildren()) do | |
| 7358 | if v:IsA("Part") then
| |
| 7359 | v.Transparency = 0.75 | |
| 7360 | v.BrickColor = BrickColor.random() | |
| 7361 | v.Material = "Neon" | |
| 7362 | end | |
| 7363 | end | |
| 7364 | for i, v in pairs(m2:GetChildren()) do | |
| 7365 | if v:IsA("Part") then
| |
| 7366 | v.BrickColor = BrickColor.random() | |
| 7367 | v.Material = "Neon" | |
| 7368 | end | |
| 7369 | end | |
| 7370 | end | |
| 7371 | end | |
| 7372 | end))]] | |
| 7373 | ||
| 7374 | coroutine.resume(coroutine.create(function() | |
| 7375 | while true do | |
| 7376 | swait() | |
| 7377 | if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 789 or ModeOfGlitch == 987 then | |
| 7378 | sphereMK(7.5,math.random(15,50)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.75,0.75,10,-0.0075,MAINRUINCOLOR,0) | |
| 7379 | end | |
| 7380 | end | |
| 7381 | end)) | |
| 7382 | --[[coroutine.resume(coroutine.create(function() | |
| 7383 | while true do | |
| 7384 | swait(2) | |
| 7385 | if chaosmode == true then | |
| 7386 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
| 7387 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
| 7388 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
| 7389 | RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Fantasy")
| |
| 7390 | for i, v in pairs(mw1:GetChildren()) do | |
| 7391 | if v:IsA("Part") then
| |
| 7392 | v.Transparency = 0.75 | |
| 7393 | v.BrickColor = BrickColor.random() | |
| 7394 | v.Material = "Neon" | |
| 7395 | end | |
| 7396 | end | |
| 7397 | for i, v in pairs(m2:GetChildren()) do | |
| 7398 | if v:IsA("Part") then
| |
| 7399 | v.BrickColor = BrickColor.random() | |
| 7400 | v.Material = "Neon" | |
| 7401 | end | |
| 7402 | end | |
| 7403 | end | |
| 7404 | end | |
| 7405 | end))]]-- | |
| 7406 | Humanoid.Name = "STARGLITCHER" | |
| 7407 | Humanoid.MaxHealth = math.huge | |
| 7408 | Humanoid.Health = math.huge | |
| 7409 | Instance.new("ForceField",char).Visible = false
| |
| 7410 | ||
| 7411 | ||
| 7412 | local bguis = Instance.new("BillboardGui",tors)
| |
| 7413 | bguis.Size = UDim2.new(25, 0, 25, 0) | |
| 7414 | local imgca = Instance.new("ImageLabel",bguis)
| |
| 7415 | imgca.BackgroundTransparency = 1 | |
| 7416 | imgca.ImageTransparency = 1 | |
| 7417 | imgca.Size = UDim2.new(1,0,1,0) | |
| 7418 | imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891 | |
| 7419 | imgca.ImageColor3 = Color3.new(0,0,0) | |
| 7420 | ||
| 7421 | idleanim=.4 | |
| 7422 | while true do | |
| 7423 | if mutedtog == false then | |
| 7424 | kan.Volume = currentVol | |
| 7425 | elseif mutedtog == true then | |
| 7426 | kan.Volume = 0 | |
| 7427 | end | |
| 7428 | kan.PlaybackSpeed = currentPitch | |
| 7429 | kan.Pitch = currentPitch | |
| 7430 | kan.SoundId = currentThemePlaying | |
| 7431 | kan.Looped = true | |
| 7432 | kan.Parent = char | |
| 7433 | kan:Resume() | |
| 7434 | if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 then | |
| 7435 | imgca.ImageTransparency = 1 | |
| 7436 | elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 then | |
| 7437 | imgca.ImageColor3 = MAINRUINCOLOR.Color | |
| 7438 | imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30) | |
| 7439 | end | |
| 7440 | imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25 | |
| 7441 | bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0) | |
| 7442 | coroutine.resume(coroutine.create(function() | |
| 7443 | if chaosmode == true then | |
| 7444 | for i, v in pairs(mw1:GetChildren()) do | |
| 7445 | if v:IsA("Part") then
| |
| 7446 | v.Transparency = 0 | |
| 7447 | v.BrickColor = BrickColor.random() | |
| 7448 | v.Material = "Neon" | |
| 7449 | end | |
| 7450 | end | |
| 7451 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
| 7452 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
| 7453 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
| 7454 | RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color,"Arcade")
| |
| 7455 | end | |
| 7456 | end)) | |
| 7457 | if chaosmode == false then | |
| 7458 | modet.Position = UDim2.new(0,0,0,0) | |
| 7459 | modet.Rotation = -5 * math.cos(sine / 32) | |
| 7460 | techc.Rotation = techc.Rotation + 1 | |
| 7461 | circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1 | |
| 7462 | circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1 | |
| 7463 | imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 | |
| 7464 | imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 | |
| 7465 | ned.Rotation = 0 - 2 * math.cos(sine / 24) | |
| 7466 | ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45)) | |
| 7467 | else | |
| 7468 | techc.Rotation = techc.Rotation + 1 | |
| 7469 | circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5) | |
| 7470 | circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5) | |
| 7471 | imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5) | |
| 7472 | imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5) | |
| 7473 | ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3) | |
| 7474 | ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3)) | |
| 7475 | modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1)) | |
| 7476 | modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3) | |
| 7477 | end | |
| 7478 | CameraManager() | |
| 7479 | swait() | |
| 7480 | lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3) | |
| 7481 | lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3) | |
| 7482 | lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3) | |
| 7483 | lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3) | |
| 7484 | lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3) | |
| 7485 | lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3) | |
| 7486 | rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3) | |
| 7487 | rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3) | |
| 7488 | rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3) | |
| 7489 | rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3) | |
| 7490 | rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3) | |
| 7491 | rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3) | |
| 7492 | sine = sine + change | |
| 7493 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 7494 | local velderp=RootPart.Velocity.y | |
| 7495 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
| 7496 | coroutine.resume(coroutine.create(function() | |
| 7497 | if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 987 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 100 then | |
| 7498 | if hitfloor ~= nil then | |
| 7499 | 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,50)/250,BrickColor.new("White"))
| |
| 7500 | if ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 100 then | |
| 7501 | slash(math.random(75,150)/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,150)/250,MAINRUINCOLOR) | |
| 7502 | end | |
| 7503 | end | |
| 7504 | end | |
| 7505 | end)) | |
| 7506 | if equipped==true or equipped==false then | |
| 7507 | if attack==false then | |
| 7508 | idle=idle+1 | |
| 7509 | else | |
| 7510 | idle=0 | |
| 7511 | end | |
| 7512 | if idle>=500 then | |
| 7513 | if attack==false then | |
| 7514 | --Sheath() | |
| 7515 | end | |
| 7516 | end | |
| 7517 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
| 7518 | Anim="Jump" | |
| 7519 | if attack==false then | |
| 7520 | 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) | |
| 7521 | 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) | |
| 7522 | 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) | |
| 7523 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
| 7524 | 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) | |
| 7525 | 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) | |
| 7526 | end | |
| 7527 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
| 7528 | Anim="Fall" | |
| 7529 | if attack==false then | |
| 7530 | 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) | |
| 7531 | 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) | |
| 7532 | 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) | |
| 7533 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1) | |
| 7534 | 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) | |
| 7535 | 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) | |
| 7536 | end | |
| 7537 | elseif torvel<1 and hitfloor~=nil then | |
| 7538 | Anim="Idle" | |
| 7539 | if attack==false then | |
| 7540 | if ModeOfGlitch == 1 then | |
| 7541 | local snap = math.random(1,10) | |
| 7542 | if snap == 1 then | |
| 7543 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1) | |
| 7544 | end | |
| 7545 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1) | |
| 7546 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1) | |
| 7547 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1) | |
| 7548 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1) | |
| 7549 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1) | |
| 7550 | LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(148 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.1) | |
| 7551 | elseif ModeOfGlitch == 2 then | |
| 7552 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1) | |
| 7553 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1) | |
| 7554 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 42))),.1) | |
| 7555 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(0 + 1 * math.cos(sine / 53))),.1) | |
| 7556 | 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) | |
| 7557 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1) | |
| 7558 | elseif ModeOfGlitch == 3 then | |
| 7559 | local snap = math.random(1,32) | |
| 7560 | if snap == 1 then | |
| 7561 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1) | |
| 7562 | end | |
| 7563 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1) | |
| 7564 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1) | |
| 7565 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1) | |
| 7566 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
| 7567 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1) | |
| 7568 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1) | |
| 7569 | elseif ModeOfGlitch == 4 then | |
| 7570 | local snap = math.random(1,5) | |
| 7571 | if snap == 1 then | |
| 7572 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6) | |
| 7573 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(1 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6) | |
| 7574 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(-3 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6) | |
| 7575 | end | |
| 7576 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(25 - 2 * math.cos(sine / 32))),.1) | |
| 7577 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1) | |
| 7578 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(25 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
| 7579 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
| 7580 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(1 + 3 * math.cos(sine / 45))),.1) | |
| 7581 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-3 - 3 * math.cos(sine / 45))),.1) | |
| 7582 | elseif ModeOfGlitch == 10 then | |
| 7583 | 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(-5),math.rad(0 - 3 * math.cos(sine / 34))),.1) | |
| 7584 | 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(-1.5),math.rad(0),math.rad(10 + 3 * math.cos(sine / 34))),.1) | |
| 7585 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(25)),.1) | |
| 7586 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 2 * math.cos(sine / 57)),math.rad(-25)),.1) | |
| 7587 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 + 5 * math.cos(sine / 34)),math.rad(0),math.rad(21 + 6 * math.cos(sine / 28))),.1) | |
| 7588 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-5 + 5 * math.cos(sine / 43)),math.rad(10 - 5 * math.cos(sine / 27)),math.rad(-5 - 3 * math.cos(sine / 36))),.1) | |
| 7589 | elseif ModeOfGlitch == 11 then | |
| 7590 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1) | |
| 7591 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1) | |
| 7592 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1) | |
| 7593 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1) | |
| 7594 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1) | |
| 7595 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1) | |
| 7596 | elseif ModeOfGlitch == 100 then | |
| 7597 | sphere2(8,"Add",rarm.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.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
| 7598 | 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.01,0.05,-0.01,BrickColor.new("Lime green"),Color3.new(0,1,0))
| |
| 7599 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
| 7600 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
| 7601 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 53))),.1) | |
| 7602 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(19 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
| 7603 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(18 - 3 * math.cos(sine / 53)),math.rad(17 + 3 * math.cos(sine / 45))),.1) | |
| 7604 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(-11 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1) | |
| 7605 | elseif ModeOfGlitch == 789 then | |
| 7606 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1) | |
| 7607 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1) | |
| 7608 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1) | |
| 7609 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
| 7610 | RW.C0=clerp(RW.C0,cf(0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(-20 + 2.5 * math.cos(sine / 28))),.1) | |
| 7611 | LW.C0=clerp(LW.C0,cf(-0.75,0.5,-0.25)*angles(math.rad(140),math.rad(0),math.rad(20 - 2.5 * math.cos(sine / 28))),.1) | |
| 7612 | elseif ModeOfGlitch == 5 then | |
| 7613 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
| 7614 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
| 7615 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1) | |
| 7616 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1) | |
| 7617 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(8 + 3 * math.cos(sine / 45))),.1) | |
| 7618 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1) | |
| 7619 | elseif ModeOfGlitch == 6 then | |
| 7620 | 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 - 2 * math.cos(sine / 32))),.1) | |
| 7621 | 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 + 2 * math.cos(sine / 32))),.1) | |
| 7622 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
| 7623 | 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) | |
| 7624 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1) | |
| 7625 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 6 * math.cos(sine / 33))),.1) | |
| 7626 | elseif ModeOfGlitch == 8 then | |
| 7627 | 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 - 2 * math.cos(sine / 32))),.1) | |
| 7628 | 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 + 2 * math.cos(sine / 32))),.1) | |
| 7629 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1) | |
| 7630 | 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(20 + 2 * math.cos(sine / 53))),.1) | |
| 7631 | 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) | |
| 7632 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1) | |
| 7633 | elseif ModeOfGlitch == 987 then | |
| 7634 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-10 + 4 * math.cos(sine / 34))),.1) | |
| 7635 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(5 + 2 * math.cos(sine / 34))),.1) | |
| 7636 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-5 - 2 * math.cos(sine / 53))),.1) | |
| 7637 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(2 + 3 * math.cos(sine / 41)),math.rad(5 + 2 * math.cos(sine / 53))),.1) | |
| 7638 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 4 * math.cos(sine / 28)),math.rad(0),math.rad(14 + 8 * math.cos(sine / 28))),.1) | |
| 7639 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(5 + 3 * math.cos(sine / 46)),math.rad(10 + 5 * math.cos(sine / 52)),math.rad(-15 - 6 * math.cos(sine / 28))),.1) | |
| 7640 | elseif ModeOfGlitch == 1264532489 then | |
| 7641 | sphere2(8,"Add",rarm.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.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
| 7642 | 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 - 2 * math.cos(sine / 32))),.1) | |
| 7643 | 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 + 2 * math.cos(sine / 32))),.1) | |
| 7644 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
| 7645 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
| 7646 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(13 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(28 + 2 * math.cos(sine / 45))),.1) | |
| 7647 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1) | |
| 7648 | elseif ModeOfGlitch == 4367677813 then | |
| 7649 | 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 - 2 * math.cos(sine / 32))),.1) | |
| 7650 | 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 + 2 * math.cos(sine / 32))),.1) | |
| 7651 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-60)),.1) | |
| 7652 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(20 + 1 * math.cos(sine / 58)),math.rad(60 + 2 * math.cos(sine / 53))),.1) | |
| 7653 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(4 + 3 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(19 + 2 * math.cos(sine / 45))),.1) | |
| 7654 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(98 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1) | |
| 7655 | elseif ModeOfGlitch == 55469696922 then | |
| 7656 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(19),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-20 - 2 * math.cos(sine / 32))),.1) | |
| 7657 | 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(17 + 2 * math.cos(sine / 32))),.1) | |
| 7658 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-13 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1) | |
| 7659 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(-21 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1) | |
| 7660 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1) | |
| 7661 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1) | |
| 7662 | end | |
| 7663 | end | |
| 7664 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
| 7665 | Anim="Walk" | |
| 7666 | if attack==false then | |
| 7667 | 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) | |
| 7668 | 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) | |
| 7669 | 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 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1) | |
| 7670 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1) | |
| 7671 | 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(5 - 10 * math.cos(sine / 4))),.1) | |
| 7672 | 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(-5 + 10 * math.cos(sine / 4))),.1) | |
| 7673 | end | |
| 7674 | elseif torvel>=22 and hitfloor~=nil then | |
| 7675 | Anim="Run" | |
| 7676 | if attack==false then | |
| 7677 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 789 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 987 then | |
| 7678 | 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 + 85 * math.cos(sine / 6))),.1) | |
| 7679 | 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 + 85 * math.cos(sine / 6))),.1) | |
| 7680 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(15 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 6))),.1) | |
| 7681 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5 + 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 6))),.1) | |
| 7682 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.5 * math.cos(sine / 6))*angles(math.rad(0 - 140 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 20 * math.cos(sine / 3))),.1) | |
| 7683 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.5 * math.cos(sine / 6))*angles(math.rad(0 + 140 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 20 * math.cos(sine / 3))),.1) | |
| 7684 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 789 or ModeOfGlitch == 987 then | |
| 7685 | 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) | |
| 7686 | 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) | |
| 7687 | 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) | |
| 7688 | 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) | |
| 7689 | 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) | |
| 7690 | 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) | |
| 7691 | end | |
| 7692 | end | |
| 7693 | end | |
| 7694 | end | |
| 7695 | end |