SHOW:
|
|
- or go back to the newest paste.
1 | warn([[Star Glitcher Loaded. | |
2 | All purpose switcher... -- wat | |
3 | ||
4 | It's not over yet. | |
5 | The faith is among us. | |
6 | And yet you still haven't defeated me. | |
7 | Now is my chance to destroy you. | |
8 | Then you're out of the world. | |
9 | With the elemental being struggling to gain power. | |
10 | This is the result. | |
11 | Very unstable and powerful. | |
12 | A insanely chaotic being. | |
13 | Who haven't ever known that one could hold this power. | |
14 | It's the one that has been created by an unknown being. | |
15 | You'll know this name already. | |
16 | Till now. | |
17 | The power is inside your body. | |
18 | You will decide things with this. | |
19 | And the future changes within the power. | |
20 | For now, you'll decide your own. | |
21 | You're one of them who holds this power. | |
22 | And so on, you would get chaotic to everyone else. | |
23 | You seem to dont trust everyone else, but one. | |
24 | That one... you can't know. | |
25 | It's only your decision. | |
26 | At yourself. | |
27 | No mercy, or spare. | |
28 | ||
29 | ||
30 | Created by 'NoobyGames12' | |
31 | Edited by 'danny199990' | |
32 | Also Edited by 'SHYIME' | |
33 | ]]) | |
34 | print([[Icons: | |
35 | ! = New | |
36 | ? = Spoilers | |
37 | * = Exclusivity | |
38 | ]]) | |
39 | warn([[V 3.3.4 (ON PROGRESS) Update Log: | |
40 | - Originall themes included | |
41 | ! - Calamity's "Z" has changed. | |
42 | ! - Starfall EX added. | |
43 | ! - Mayhem now has Destruction mode. | |
44 | ! - Chaos theme has been changed. | |
45 | ! - Purity's theme has been extended. | |
46 | ? - Corruption's "Z" will have animation sooner. | |
47 | ! - Calamity's "X" is added, named Starfall. | |
48 | * - Catastrophe's "Z" coming soon, same as Calamity's "Z" but more powerful. | |
49 | ! - Divinity's Shield move fixed, wont break anymore(Hold F)(Made by danny199990). | |
50 | ! - Equinox's MeteorStrike move(X) added(Made by danny199990). | |
51 | ! - Divinity's Judgement move(Z) collison issue fixed(Made by danny199990). | |
52 | ! - Divinity's Judgement move(Z) can now be held as long as you want it to. | |
53 | ! - Added new forms and super forms(Added by SHYIME). | |
54 | ? - Attacks are still broken we are still working on them. | |
55 | ||
56 | I'd like if you wouldnt remove my or NoobyGames's credit, thanks alot ;). | |
57 | ]]) | |
58 | --- its obs smooth af do not touch | |
59 | ---- Sources and functions might be taken from others | |
60 | - | plr = game:GetService("Players").LocalPlayer |
60 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
61 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
62 | do | |
63 | print("FE Compatibility code by Mokiros") | |
64 | script.Parent = Player.Character | |
65 | ||
66 | --RemoteEvent for communicating | |
67 | local Event = Instance.new("RemoteEvent") | |
68 | Event.Name = "UserInput_Event" | |
69 | ||
70 | --Fake event to make stuff like Mouse.KeyDown work | |
71 | local function fakeEvent() | |
72 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
73 | t.connect = t.Connect | |
74 | return t | |
75 | end | |
76 | ||
77 | --Creating fake input objects with fake variables | |
78 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
79 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
80 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
81 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
82 | end} | |
83 | --Merged 2 functions into one by checking amount of arguments | |
84 | CAS.UnbindAction = CAS.BindAction | |
85 | ||
86 | --This function will trigger the events that have been :Connect()'ed | |
87 | local function te(self,ev,...) | |
88 | local t = m[ev] | |
89 | if t and t._fakeEvent and t.Function then | |
90 | t.Function(...) | |
91 | end | |
92 | end | |
93 | m.TrigEvent = te | |
94 | UIS.TrigEvent = te | |
95 | ||
96 | Event.OnServerEvent:Connect(function(plr,io) | |
97 | if plr~=Player then return end | |
98 | if io.isMouse then | |
99 | m.Target = io.Target | |
100 | m.Hit = io.Hit | |
101 | else | |
102 | local b = io.UserInputState == Enum.UserInputState.Begin | |
103 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
104 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
105 | end | |
106 | for _,t in pairs(CAS.Actions) do | |
107 | for _,k in pairs(t.Keys) do | |
108 | if k==io.KeyCode then | |
109 | t.Function(t.Name,io.UserInputState,io) | |
110 | end | |
111 | end | |
112 | end | |
113 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
114 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
115 | end | |
116 | end) | |
117 | Event.Parent = NLS([==[ | |
118 | local Player = game:GetService("Players").LocalPlayer | |
119 | local Event = script:WaitForChild("UserInput_Event") | |
120 | ||
121 | local UIS = game:GetService("UserInputService") | |
122 | local input = function(io,a) | |
123 | if a then return end | |
124 | --Since InputObject is a client-side instance, we create and pass table instead | |
125 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
126 | end | |
127 | UIS.InputBegan:Connect(input) | |
128 | UIS.InputEnded:Connect(input) | |
129 | ||
130 | local Mouse = Player:GetMouse() | |
131 | local h,t | |
132 | --Give the server mouse data 30 times every second, but only if the values changed | |
133 | --If player is not moving their mouse, client won't fire events | |
134 | while wait(1/30) do | |
135 | if h~=Mouse.Hit or t~=Mouse.Target then | |
136 | h,t=Mouse.Hit,Mouse.Target | |
137 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
138 | end | |
139 | end]==],Player.Character) | |
140 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
141 | end | |
142 | plr = owner | |
143 | char = plr.Character | |
144 | hum = char.Humanoid | |
145 | local cam = game.Workspace.CurrentCamera | |
146 | local Controller = plr.PlayerScripts:WaitForChild("ControlScript") | |
147 | Camera = cam | |
148 | local CamInterrupt = false | |
149 | local TwoD = false | |
150 | local TargetInfo = {nil, nil} | |
151 | cam.CameraType = "Custom" | |
152 | t = char.Torso | |
153 | h = char.Head | |
154 | ra = char["Right Arm"] | |
155 | la = char["Left Arm"] | |
156 | rl = char["Right Leg"] | |
157 | ll = char["Left Leg"] | |
158 | tors = char.Torso | |
159 | lleg = char["Left Leg"] | |
160 | root = char.HumanoidRootPart | |
161 | hed = char.Head | |
162 | rleg = char["Right Leg"] | |
163 | rarm = char["Right Arm"] | |
164 | larm = char["Left Arm"] | |
165 | radian = math.rad | |
166 | random = math.random | |
167 | Vec3 = Vector3.new | |
168 | Inst = Instance.new | |
169 | cFrame = CFrame.new | |
170 | Euler = CFrame.fromEulerAnglesXYZ | |
171 | vt = Vector3.new | |
172 | bc = BrickColor.new | |
173 | br = BrickColor.random | |
174 | it = Instance.new | |
175 | cf = CFrame.new | |
176 | local eff = true | |
177 | local shielding = false | |
178 | ||
179 | local Booleans = { | |
180 | CamFollow = true, | |
181 | GyroUse = true | |
182 | } | |
183 | ||
184 | function lerp(object, newCFrame, alpha) | |
185 | return object:lerp(newCFrame, alpha) | |
186 | end | |
187 | ||
188 | local Directer = Inst("BodyGyro", root) | |
189 | Directer.MaxTorque = Vec3(0, 0, 0) | |
190 | Directer.P = 600000 | |
191 | local CPart = Inst("Part") | |
192 | CPart.Anchored = true | |
193 | CPart.CanCollide = false | |
194 | CPart.Locked = true | |
195 | CPart.Transparency = 1 | |
196 | ||
197 | local rainbowmode = false | |
198 | local chaosmode = false | |
199 | ||
200 | kan = Instance.new("Sound",char) | |
201 | kan.Volume = 1.25 | |
202 | kan.TimePosition = 0 | |
203 | kan.PlaybackSpeed = 1 | |
204 | kan.Pitch = 1 | |
205 | kan.SoundId = "rbxassetid://614032233" | |
206 | kan.Name = "wrecked" | |
207 | kan.Looped = true | |
208 | kan:Play() | |
209 | ||
210 | local dom = Instance.new("SpecialMesh", game.Players.LocalPlayer.Character.Head) | |
211 | dom.MeshId = "rbxassetid://21057410" | |
212 | dom.MeshType = "FileMesh" | |
213 | dom.Name = "Dominus" | |
214 | dom.Parent = Head | |
215 | dom.TextureId = "rbxassetid://48545806" | |
216 | ||
217 | function newTheme(ID,timepos,pitch,vol) | |
218 | local kanz = kan | |
219 | --kanz:Stop() | |
220 | --kanz.Volume = vol | |
221 | --kanz.TimePosition = timepos | |
222 | kanz.PlaybackSpeed = pitch | |
223 | kanz.Pitch = pitch | |
224 | kanz.SoundId = ID | |
225 | kanz.Name = "wrecked" | |
226 | kanz.Looped = true | |
227 | kanz.Volume = 0.3 | |
228 | --kanz:Play() | |
229 | --coroutine.resume(coroutine.create(function() | |
230 | --wait(0.05) | |
231 | --end)) | |
232 | end | |
233 | ||
234 | function newThemeCust(ID,timepos,pitch,vol) | |
235 | local kanz = kan | |
236 | kanz:Stop() | |
237 | kanz.Volume = vol | |
238 | kanz.TimePosition = timepos | |
239 | kanz.PlaybackSpeed = pitch | |
240 | kanz.Pitch = pitch | |
241 | kanz.SoundId = ID | |
242 | kanz.Name = "wrecked" | |
243 | kanz.Looped = true | |
244 | kanz:Play() | |
245 | coroutine.resume(coroutine.create(function() | |
246 | wait(0.05) | |
247 | end)) | |
248 | end | |
249 | ||
250 | ||
251 | ||
252 | function CameraShake(Times, Power, PlayerTarget) | |
253 | coroutine.resume(coroutine.create(function() | |
254 | FV = Instance.new("BoolValue", PlayerTarget) | |
255 | FV.Name = "CameraShake" | |
256 | for ShakeNum=1,Times do | |
257 | swait() | |
258 | local ef=Power | |
259 | if ef>=1 then | |
260 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
261 | else | |
262 | ef=Power*10 | |
263 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
264 | end | |
265 | end | |
266 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
267 | FV:Destroy() | |
268 | end)) | |
269 | end | |
270 | ||
271 | function CameraEnshaking(Length,Intensity) | |
272 | coroutine.resume(coroutine.create(function() | |
273 | local intensity = 1*Intensity | |
274 | local rotM = 0.01*Intensity | |
275 | for i = 0, Length, 0.1 do | |
276 | swait() | |
277 | intensity = intensity - 0.05*Intensity/Length | |
278 | rotM = rotM - 0.0005*Intensity/Length | |
279 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
280 | 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) | |
281 | end | |
282 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
283 | end)) | |
284 | end | |
285 | CamShake=function(Part,Distan,Power,Times) | |
286 | local de=Part.Position | |
287 | for i,v in pairs(workspace:children()) do | |
288 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
289 | for _,c in pairs(v:children()) do | |
290 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
291 | local Noob=v.Humanoid | |
292 | if Noob~=nil then | |
293 | coroutine.resume(coroutine.create(function() | |
294 | FV = Instance.new("BoolValue", Noob) | |
295 | FV.Name = "CameraShake" | |
296 | for ShakeNum=1,Times do | |
297 | swait() | |
298 | local ef=Power | |
299 | if ef>=1 then | |
300 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
301 | else | |
302 | ef=Power*10 | |
303 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
304 | end | |
305 | end | |
306 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
307 | FV:Destroy() | |
308 | end)) | |
309 | CameraShake(Times, Power, Noob) | |
310 | end | |
311 | end | |
312 | end | |
313 | end | |
314 | end | |
315 | end | |
316 | ||
317 | function chatfunc(text,color) | |
318 | local chat = coroutine.wrap(function() | |
319 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
320 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
321 | end | |
322 | local naeeym2 = Instance.new("BillboardGui",Character) | |
323 | naeeym2.Size = UDim2.new(0,100,0,40) | |
324 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
325 | naeeym2.Adornee = Character.Head | |
326 | naeeym2.Name = "TalkingBillBoard" | |
327 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
328 | tecks2.BackgroundTransparency = 1 | |
329 | tecks2.BorderSizePixel = 0 | |
330 | tecks2.Text = "" | |
331 | tecks2.Font = "SciFi" | |
332 | tecks2.TextSize = 30 | |
333 | tecks2.TextStrokeTransparency = 0 | |
334 | tecks2.TextColor3 = color | |
335 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
336 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
337 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
338 | tecks3.BackgroundTransparency = 1 | |
339 | tecks3.BorderSizePixel = 0 | |
340 | tecks3.Text = "" | |
341 | tecks3.Font = "SciFi" | |
342 | tecks3.TextSize = 30 | |
343 | tecks3.TextStrokeTransparency = 0 | |
344 | tecks3.TextColor3 = Color3.new(0,0,0) | |
345 | tecks3.TextStrokeColor3 = color | |
346 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
347 | coroutine.resume(coroutine.create(function() | |
348 | while true do | |
349 | swait(1) | |
350 | plr.Character.wrecked.Volume = 0.3 | |
351 | if chaosmode == true then | |
352 | tecks2.TextColor3 = BrickColor.random().Color | |
353 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
354 | end | |
355 | tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
356 | tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
357 | tecks2.Rotation = math.random(-5,5) | |
358 | tecks3.Rotation = math.random(-5,5) | |
359 | end | |
360 | end)) | |
361 | for i = 1,string.len(text),1 do | |
362 | CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115) | |
363 | tecks2.Text = string.sub(text,1,i) | |
364 | tecks3.Text = string.sub(text,1,i) | |
365 | swait(1) | |
366 | end | |
367 | wait(1) | |
368 | local randomrot = math.random(1,2) | |
369 | if randomrot == 1 then | |
370 | for i = 1, 50 do | |
371 | swait() | |
372 | tecks2.Rotation = tecks2.Rotation - .75 | |
373 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
374 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
375 | tecks3.Rotation = tecks2.Rotation + .75 | |
376 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
377 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
378 | end | |
379 | elseif randomrot == 2 then | |
380 | for i = 1, 50 do | |
381 | swait() | |
382 | tecks2.Rotation = tecks2.Rotation + .75 | |
383 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
384 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
385 | tecks3.Rotation = tecks2.Rotation - .75 | |
386 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
387 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
388 | end | |
389 | end | |
390 | naeeym2:Destroy() | |
391 | end) | |
392 | chat() | |
393 | end | |
394 | ||
395 | ||
396 | local Create = LoadLibrary("RbxUtility").Create | |
397 | ||
398 | CFuncs = { | |
399 | ["Part"] = { | |
400 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
401 | local Part = Create("Part"){ | |
402 | Parent = Parent, | |
403 | Reflectance = Reflectance, | |
404 | Transparency = Transparency, | |
405 | CanCollide = false, | |
406 | Locked = true, | |
407 | BrickColor = BrickColor.new(tostring(BColor)), | |
408 | Name = Name, | |
409 | Size = Size, | |
410 | Material = Material, | |
411 | } | |
412 | RemoveOutlines(Part) | |
413 | return Part | |
414 | end; | |
415 | }; | |
416 | ||
417 | ["Mesh"] = { | |
418 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
419 | local Msh = Create(Mesh){ | |
420 | Parent = Part, | |
421 | Offset = OffSet, | |
422 | Scale = Scale, | |
423 | } | |
424 | if Mesh == "SpecialMesh" then | |
425 | Msh.MeshType = MeshType | |
426 | Msh.MeshId = MeshId | |
427 | end | |
428 | return Msh | |
429 | end; | |
430 | }; | |
431 | ||
432 | ["Mesh"] = { | |
433 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
434 | local Msh = Create(Mesh){ | |
435 | Parent = Part, | |
436 | Offset = OffSet, | |
437 | Scale = Scale, | |
438 | } | |
439 | if Mesh == "SpecialMesh" then | |
440 | Msh.MeshType = MeshType | |
441 | Msh.MeshId = MeshId | |
442 | end | |
443 | return Msh | |
444 | end; | |
445 | }; | |
446 | ||
447 | ["Weld"] = { | |
448 | Create = function(Parent, Part0, Part1, C0, C1) | |
449 | local Weld = Create("Weld"){ | |
450 | Parent = Parent, | |
451 | Part0 = Part0, | |
452 | Part1 = Part1, | |
453 | C0 = C0, | |
454 | C1 = C1, | |
455 | } | |
456 | return Weld | |
457 | end; | |
458 | }; | |
459 | ||
460 | ["Sound"] = { | |
461 | Create = function(id, par, vol, pit) | |
462 | coroutine.resume(coroutine.create(function() | |
463 | local S = Create("Sound"){ | |
464 | Volume = vol, | |
465 | Name = "EffectSoundo", | |
466 | Pitch = pit or 1, | |
467 | SoundId = id, | |
468 | Parent = par or workspace, | |
469 | } | |
470 | wait() | |
471 | S:play() | |
472 | game:GetService("Debris"):AddItem(S, 10) | |
473 | end)) | |
474 | end; | |
475 | }; | |
476 | ||
477 | ["LongSound"] = { | |
478 | Create = function(id, par, vol, pit) | |
479 | coroutine.resume(coroutine.create(function() | |
480 | local S = Create("Sound"){ | |
481 | Volume = vol, | |
482 | Pitch = pit or 1, | |
483 | SoundId = id, | |
484 | Parent = par or workspace, | |
485 | } | |
486 | wait() | |
487 | S:play() | |
488 | game:GetService("Debris"):AddItem(S, 30) | |
489 | end)) | |
490 | end; | |
491 | }; | |
492 | ||
493 | ["ParticleEmitter"] = { | |
494 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
495 | local fp = Create("ParticleEmitter"){ | |
496 | Parent = Parent, | |
497 | Color = ColorSequence.new(Color1, Color2), | |
498 | LightEmission = LightEmission, | |
499 | Size = Size, | |
500 | Texture = Texture, | |
501 | Transparency = Transparency, | |
502 | ZOffset = ZOffset, | |
503 | Acceleration = Accel, | |
504 | Drag = Drag, | |
505 | LockedToPart = LockedToPart, | |
506 | VelocityInheritance = VelocityInheritance, | |
507 | EmissionDirection = EmissionDirection, | |
508 | Enabled = Enabled, | |
509 | Lifetime = LifeTime, | |
510 | Rate = Rate, | |
511 | Rotation = Rotation, | |
512 | RotSpeed = RotSpeed, | |
513 | Speed = Speed, | |
514 | VelocitySpread = VelocitySpread, | |
515 | } | |
516 | return fp | |
517 | end; | |
518 | }; | |
519 | ||
520 | CreateTemplate = { | |
521 | ||
522 | }; | |
523 | } | |
524 | ||
525 | ||
526 | ||
527 | New = function(Object, Parent, Name, Data) | |
528 | local Object = Instance.new(Object) | |
529 | for Index, Value in pairs(Data or {}) do | |
530 | Object[Index] = Value | |
531 | end | |
532 | Object.Parent = Parent | |
533 | Object.Name = Name | |
534 | return Object | |
535 | end | |
536 | local halocolor = BrickColor.new("Pastel light blue") | |
537 | local halocolor2 = BrickColor.new("Cool yellow") | |
538 | local starcolor = BrickColor.new("Bright yellow") | |
539 | local lunacolor = BrickColor.new("Navy blue") | |
540 | local lunacolor2 = BrickColor.new("Bright blue") | |
541 | local wepcolor = BrickColor.new("Really black") | |
542 | local maincolor = BrickColor.new("Really black") | |
543 | local m = Instance.new("Model",char) | |
544 | local m2 = Instance.new("Model",char) | |
545 | local m3 = Instance.new("Model",char) | |
546 | local mw1 = Instance.new("Model",char) | |
547 | local mw2 = Instance.new("Model",char) | |
548 | ||
549 | local extrawingmod1 = Instance.new("Model",char) | |
550 | local extrawingmod2 = Instance.new("Model",char) | |
551 | ||
552 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
553 | local p = Instance.new("Part") | |
554 | p.TopSurface = 0 | |
555 | p.BottomSurface = 0 | |
556 | p.Parent = parent | |
557 | p.Size = Vector3.new(0.1,0.1,0.1) | |
558 | p.Transparency = transparency | |
559 | p.Reflectance = reflectance | |
560 | p.CanCollide = false | |
561 | p.Locked = true | |
562 | p.BrickColor = brickcolor | |
563 | p.Material = material | |
564 | return p | |
565 | end | |
566 | ||
567 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
568 | local mesh = Instance.new("SpecialMesh",parent) | |
569 | mesh.MeshType = meshtype | |
570 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
571 | return mesh | |
572 | end | |
573 | ||
574 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
575 | local mesh = Instance.new("SpecialMesh",parent) | |
576 | mesh.MeshType = "FileMesh" | |
577 | mesh.MeshId = meshid | |
578 | mesh.Scale = Vector3.new(x1,y1,z1) | |
579 | return mesh | |
580 | end | |
581 | ||
582 | ||
583 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
584 | local mesh = Instance.new("SpecialMesh",parent) | |
585 | mesh.MeshType = "FileMesh" | |
586 | mesh.MeshId = meshid | |
587 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
588 | mesh.Scale = Vector3.new(x1,y1,z1) | |
589 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
590 | return mesh | |
591 | end | |
592 | ||
593 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
594 | local weld = Instance.new("Weld") | |
595 | weld.Parent = parent | |
596 | weld.Part0 = part0 | |
597 | weld.Part1 = part1 | |
598 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
599 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
600 | return weld | |
601 | end | |
602 | ||
603 | ||
604 | -------------- | |
605 | local secondchar = Instance.new("Model",char) | |
606 | local GhostCol = BrickColor.new("Navy blue") | |
607 | local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
608 | CreateMesh(sectors,"Brick",2*8,2*8,1*8) | |
609 | local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
610 | ||
611 | local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
612 | CreateMesh(seclarm,"Brick",1*8,2*8,1*8) | |
613 | local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
614 | ||
615 | local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
616 | CreateMesh(secrarm,"Brick",1*8,2*8,1*8) | |
617 | local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
618 | ||
619 | local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
620 | CreateMesh(seclleg,"Brick",1*8,2*8,1*8) | |
621 | local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
622 | ||
623 | local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
624 | CreateMesh(secrleg,"Brick",1*8,2*8,1*8) | |
625 | local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
626 | ||
627 | local seched = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
628 | CreateMesh(seched,"Brick",1*8,1*8,1*8) | |
629 | local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
630 | -------------- | |
631 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
632 | 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)) | |
633 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
634 | 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)) | |
635 | ||
636 | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
637 | CreateMesh(handle,"Brick",0,0,0) | |
638 | 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)) | |
639 | local valuaring = 10 | |
640 | for i = 0, 49 do | |
641 | valuaring = valuaring + 10 | |
642 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
643 | CreateMesh(rn,"Brick",0.25,0.1,0.1) | |
644 | 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)) | |
645 | end | |
646 | ||
647 | handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
648 | CreateMesh(handle,"Brick",0,0,0) | |
649 | 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)) | |
650 | local valuaring = 10 | |
651 | for i = 0, 49 do | |
652 | valuaring = valuaring + 10 | |
653 | rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
654 | CreateMesh(rn,"Brick",0.5,0.2,0.2) | |
655 | 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)) | |
656 | end | |
657 | ||
658 | ||
659 | local handle = CreateParta(m,1,1,"Neon",maincolor) | |
660 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
661 | 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)) | |
662 | ||
663 | --- Left wing. | |
664 | ||
665 | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
666 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
667 | 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)) | |
668 | ||
669 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
670 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
671 | 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)) | |
672 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
673 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
674 | 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)) | |
675 | A0 = Instance.new('Attachment',wed) | |
676 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
677 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
678 | 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)) | |
679 | A1 = Instance.new('Attachment',wed) | |
680 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
681 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
682 | 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)) | |
683 | ||
684 | tl1 = Instance.new('Trail',wed) | |
685 | tl1.Attachment0 = A0 | |
686 | tl1.Attachment1 = A1 | |
687 | --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
688 | tl1.LightEmission = 1 | |
689 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
690 | tl1.Color = ColorSequence.new(BrickColor.new('Navy blue').Color) | |
691 | tl1.Lifetime = 0.6 | |
692 | ||
693 | ||
694 | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
695 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
696 | 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)) | |
697 | ||
698 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
699 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
700 | 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)) | |
701 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
702 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
703 | 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)) | |
704 | A0 = Instance.new('Attachment',wed) | |
705 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
706 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
707 | 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)) | |
708 | A1 = Instance.new('Attachment',wed) | |
709 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
710 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
711 | 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)) | |
712 | ||
713 | tl2 = Instance.new('Trail',wed) | |
714 | tl2.Attachment0 = A0 | |
715 | tl2.Attachment1 = A1 | |
716 | --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
717 | tl2.LightEmission = 1 | |
718 | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
719 | tl2.Color = ColorSequence.new(BrickColor.new('Navy blue').Color) | |
720 | tl2.Lifetime = 0.6 | |
721 | ||
722 | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
723 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
724 | 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)) | |
725 | ||
726 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
727 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
728 | 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)) | |
729 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
730 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
731 | 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)) | |
732 | A0 = Instance.new('Attachment',wed) | |
733 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
734 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
735 | 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)) | |
736 | A1 = Instance.new('Attachment',wed) | |
737 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
738 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
739 | 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)) | |
740 | ||
741 | tl3 = Instance.new('Trail',wed) | |
742 | tl3.Attachment0 = A0 | |
743 | tl3.Attachment1 = A1 | |
744 | --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
745 | tl3.LightEmission = 1 | |
746 | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
747 | tl3.Color = ColorSequence.new(BrickColor.new('Navy blue').Color) | |
748 | tl3.Lifetime = 0.6 | |
749 | ||
750 | tl1.Enabled = false | |
751 | tl2.Enabled = false | |
752 | tl3.Enabled = false | |
753 | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
754 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
755 | 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)) | |
756 | ||
757 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
758 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
759 | 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)) | |
760 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
761 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
762 | 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)) | |
763 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
764 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
765 | 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)) | |
766 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
767 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
768 | 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)) | |
769 | ||
770 | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
771 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
772 | 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)) | |
773 | ||
774 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
775 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
776 | 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)) | |
777 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
778 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
779 | 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)) | |
780 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
781 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
782 | 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)) | |
783 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
784 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
785 | 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)) | |
786 | ||
787 | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
788 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
789 | 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)) | |
790 | ||
791 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
792 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
793 | 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)) | |
794 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
795 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
796 | 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)) | |
797 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
798 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
799 | 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)) | |
800 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
801 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
802 | 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)) | |
803 | ||
804 | -- Right wing. | |
805 | ||
806 | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
807 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
808 | 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)) | |
809 | ||
810 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
811 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
812 | 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)) | |
813 | A0 = Instance.new('Attachment',wed) | |
814 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
815 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
816 | 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)) | |
817 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
818 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
819 | 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)) | |
820 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
821 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
822 | 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)) | |
823 | A1 = Instance.new('Attachment',wed) | |
824 | ||
825 | tr1 = Instance.new('Trail',wed) | |
826 | tr1.Attachment0 = A0 | |
827 | tr1.Attachment1 = A1 | |
828 | --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
829 | tr1.LightEmission = 1 | |
830 | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
831 | tr1.Color = ColorSequence.new(BrickColor.new('Navy blue').Color) | |
832 | tr1.Lifetime = 0.6 | |
833 | ||
834 | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
835 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
836 | 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)) | |
837 | ||
838 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
839 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
840 | 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)) | |
841 | A0 = Instance.new('Attachment',wed) | |
842 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
843 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
844 | 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)) | |
845 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
846 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
847 | 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)) | |
848 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
849 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
850 | 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)) | |
851 | A1 = Instance.new('Attachment',wed) | |
852 | ||
853 | tr2 = Instance.new('Trail',wed) | |
854 | tr2.Attachment0 = A0 | |
855 | tr2.Attachment1 = A1 | |
856 | --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
857 | tr2.LightEmission = 1 | |
858 | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
859 | tr2.Color = ColorSequence.new(BrickColor.new('Navy blue').Color) | |
860 | tr2.Lifetime = 0.6 | |
861 | ||
862 | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
863 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
864 | 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)) | |
865 | ||
866 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
867 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
868 | 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)) | |
869 | A0 = Instance.new('Attachment',wed) | |
870 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
871 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
872 | 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)) | |
873 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
874 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
875 | 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)) | |
876 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
877 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
878 | 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)) | |
879 | A1 = Instance.new('Attachment',wed) | |
880 | ||
881 | tr3 = Instance.new('Trail',wed) | |
882 | tr3.Attachment0 = A0 | |
883 | tr3.Attachment1 = A1 | |
884 | --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
885 | tr3.LightEmission = 1 | |
886 | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
887 | tr3.Color = ColorSequence.new(BrickColor.new('Navy blue').Color) | |
888 | tr3.Lifetime = 0.6 | |
889 | ||
890 | ||
891 | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
892 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
893 | 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)) | |
894 | ||
895 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
896 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
897 | 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)) | |
898 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
899 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
900 | 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)) | |
901 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
902 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
903 | 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)) | |
904 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
905 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
906 | 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)) | |
907 | ||
908 | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
909 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
910 | 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)) | |
911 | ||
912 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
913 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
914 | 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)) | |
915 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
916 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
917 | 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)) | |
918 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
919 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
920 | 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)) | |
921 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
922 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
923 | 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)) | |
924 | ||
925 | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
926 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
927 | 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)) | |
928 | ||
929 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
930 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
931 | 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)) | |
932 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
933 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
934 | 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)) | |
935 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
936 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
937 | 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)) | |
938 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
939 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
940 | 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)) | |
941 | ||
942 | ---- HERES THE RING | |
943 | ||
944 | ||
945 | ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
946 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
947 | 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)) | |
948 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
949 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
950 | 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)) | |
951 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
952 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
953 | 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)) | |
954 | ||
955 | ||
956 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
957 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
958 | 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)) | |
959 | ||
960 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
961 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
962 | 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)) | |
963 | ||
964 | ||
965 | ||
966 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
967 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
968 | 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)) | |
969 | ||
970 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
971 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
972 | 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)) | |
973 | ||
974 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
975 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
976 | 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)) | |
977 | ||
978 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
979 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
980 | 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)) | |
981 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
982 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
983 | 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)) | |
984 | ||
985 | --- second ring | |
986 | ||
987 | ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
988 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
989 | 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)) | |
990 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
991 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
992 | 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)) | |
993 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
994 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
995 | 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)) | |
996 | ||
997 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
998 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
999 | 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)) | |
1000 | ||
1001 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1002 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1003 | 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)) | |
1004 | ||
1005 | ||
1006 | ||
1007 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1008 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1009 | 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)) | |
1010 | ||
1011 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1012 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1013 | 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)) | |
1014 | ||
1015 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
1016 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
1017 | 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)) | |
1018 | ||
1019 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1020 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
1021 | 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)) | |
1022 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
1023 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
1024 | 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)) | |
1025 | ||
1026 | ||
1027 | ||
1028 | for i, v in pairs(m:GetChildren()) do | |
1029 | if v:IsA("Part") then | |
1030 | v.BrickColor = BrickColor.new("Really black") | |
1031 | v.Material = "Glass" | |
1032 | end | |
1033 | end | |
1034 | for i, v in pairs(m2:GetChildren()) do | |
1035 | if v:IsA("Part") then | |
1036 | v.BrickColor = BrickColor.new("Crimson") | |
1037 | v.Material = "Granite" | |
1038 | end | |
1039 | end | |
1040 | for i, v in pairs(m3:GetChildren()) do | |
1041 | if v:IsA("Part") then | |
1042 | v.BrickColor = BrickColor.new("Navy blue") | |
1043 | v.Material = "Neon" | |
1044 | end | |
1045 | end | |
1046 | for i, v in pairs(mw2:GetChildren()) do | |
1047 | if v:IsA("Part") then | |
1048 | v.BrickColor = BrickColor.new("Navy blue") | |
1049 | v.Material = "Neon" | |
1050 | end | |
1051 | end | |
1052 | for i, v in pairs(mw1:GetChildren()) do | |
1053 | if v:IsA("Part") then | |
1054 | v.Transparency = 1 | |
1055 | v.BrickColor = BrickColor.new("Navy blue") | |
1056 | v.Material = "Neon" | |
1057 | end | |
1058 | end | |
1059 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
1060 | if v:IsA("Part") then | |
1061 | v.Transparency = 1 | |
1062 | v.BrickColor = BrickColor.new("White") | |
1063 | v.Material = "Neon" | |
1064 | end | |
1065 | end | |
1066 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
1067 | if v:IsA("Part") then | |
1068 | v.Transparency = 1 | |
1069 | v.BrickColor = BrickColor.new("White") | |
1070 | v.Material = "Neon" | |
1071 | end | |
1072 | end | |
1073 | local MAINRUINCOLOR = BrickColor.new("Navy blue") | |
1074 | ------ | |
1075 | ||
1076 | ||
1077 | function RemoveOutlines(part) | |
1078 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1079 | end | |
1080 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1081 | local Part = Create("Part")({ | |
1082 | Parent = Parent, | |
1083 | Reflectance = Reflectance, | |
1084 | Transparency = Transparency, | |
1085 | CanCollide = false, | |
1086 | Locked = true, | |
1087 | BrickColor = BrickColor.new(tostring(BColor)), | |
1088 | Name = Name, | |
1089 | Size = Size, | |
1090 | Material = Material | |
1091 | }) | |
1092 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1093 | RemoveOutlines(Part) | |
1094 | return Part | |
1095 | end | |
1096 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1097 | local Msh = Create(Mesh)({ | |
1098 | Parent = Part, | |
1099 | Offset = OffSet, | |
1100 | Scale = Scale | |
1101 | }) | |
1102 | if Mesh == "SpecialMesh" then | |
1103 | Msh.MeshType = MeshType | |
1104 | Msh.MeshId = MeshId | |
1105 | end | |
1106 | return Msh | |
1107 | end | |
1108 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
1109 | local Weld = Create("Weld")({ | |
1110 | Parent = Parent, | |
1111 | Part0 = Part0, | |
1112 | Part1 = Part1, | |
1113 | C0 = C0, | |
1114 | C1 = C1 | |
1115 | }) | |
1116 | return Weld | |
1117 | end | |
1118 | ||
1119 | Player=game:GetService("Players").LocalPlayer | |
1120 | Character=Player.Character | |
1121 | PlayerGui=Player.PlayerGui | |
1122 | Backpack=Player.Backpack | |
1123 | Torso=Character.Torso | |
1124 | Head=Character.Head | |
1125 | Humanoid=Character.Humanoid | |
1126 | m=Instance.new('Model',Character) | |
1127 | LeftArm=Character["Left Arm"] | |
1128 | LeftLeg=Character["Left Leg"] | |
1129 | RightArm=Character["Right Arm"] | |
1130 | RightLeg=Character["Right Leg"] | |
1131 | LS=Torso["Left Shoulder"] | |
1132 | LH=Torso["Left Hip"] | |
1133 | RS=Torso["Right Shoulder"] | |
1134 | RH=Torso["Right Hip"] | |
1135 | Face = Head.face | |
1136 | Neck=Torso.Neck | |
1137 | it=Instance.new | |
1138 | attacktype=1 | |
1139 | vt=Vector3.new | |
1140 | cf=CFrame.new | |
1141 | euler=CFrame.fromEulerAnglesXYZ | |
1142 | angles=CFrame.Angles | |
1143 | cloaked=false | |
1144 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1145 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1146 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
1147 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
1148 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
1149 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
1150 | RootPart=Character.HumanoidRootPart | |
1151 | RootJoint=RootPart.RootJoint | |
1152 | RootCF=euler(-1.57,0,3.14) | |
1153 | attack = false | |
1154 | attackdebounce = false | |
1155 | deb=false | |
1156 | equipped=true | |
1157 | hand=false | |
1158 | MMouse=nil | |
1159 | combo=0 | |
1160 | mana=0 | |
1161 | trispeed=.2 | |
1162 | attackmode='none' | |
1163 | local idle=0 | |
1164 | local Anim="Idle" | |
1165 | local Effects={} | |
1166 | local gun=false | |
1167 | local shoot=false | |
1168 | local sine = 0 | |
1169 | local change = 1 | |
1170 | player=nil | |
1171 | ||
1172 | ||
1173 | local toggleTag = true | |
1174 | local txt = Instance.new("BillboardGui", Head) | |
1175 | txt.Adornee = nil | |
1176 | txt.Name = "NameDetect" | |
1177 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
1178 | txt.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
1179 | local text = Instance.new("TextLabel", txt) | |
1180 | text.Size = UDim2.new(10/2, 0, 7/2, 0) | |
1181 | text.FontSize = "Size8" | |
1182 | text.TextScaled = true | |
1183 | text.TextTransparency = 0 | |
1184 | text.BackgroundTransparency = 1 | |
1185 | text.TextTransparency = 0 | |
1186 | text.TextStrokeTransparency = 0 | |
1187 | text.Font = "Fantasy" | |
1188 | text.TextStrokeColor3 = Color3.new(0,16,176) | |
1189 | text.TextColor3 = Color3.new(0,0,0) | |
1190 | text.Text = "Baby blue Chaos God" | |
1191 | ||
1192 | function RecolorTextAndRename(name,col1,col2) | |
1193 | text.TextStrokeColor3 = col2 | |
1194 | text.TextColor3 = col1 | |
1195 | text.Text = name | |
1196 | end | |
1197 | mouse=Player:GetMouse() | |
1198 | --save shoulders | |
1199 | RSH, LSH=nil, nil | |
1200 | --welds | |
1201 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
1202 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
1203 | LH=Torso["Left Hip"] | |
1204 | RH=Torso["Right Hip"] | |
1205 | TorsoColor=Torso.BrickColor | |
1206 | function NoOutline(Part) | |
1207 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
1208 | end | |
1209 | player=Player | |
1210 | ch=Character | |
1211 | RSH=ch.Torso["Right Shoulder"] | |
1212 | LSH=ch.Torso["Left Shoulder"] | |
1213 | -- | |
1214 | RSH.Parent=nil | |
1215 | LSH.Parent=nil | |
1216 | -- | |
1217 | RW.Name="Right Shoulder" | |
1218 | RW.Part0=ch.Torso | |
1219 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
1220 | RW.C1=cf(0, 0.5, 0) | |
1221 | RW.Part1=ch["Right Arm"] | |
1222 | RW.Parent=ch.Torso | |
1223 | -- | |
1224 | LW.Name="Left Shoulder" | |
1225 | LW.Part0=ch.Torso | |
1226 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
1227 | LW.C1=cf(0, 0.5, 0) | |
1228 | LW.Part1=ch["Left Arm"] | |
1229 | LW.Parent=ch.Torso | |
1230 | ||
1231 | local Stats=Instance.new("BoolValue") | |
1232 | Stats.Name="Stats" | |
1233 | Stats.Parent=Character | |
1234 | local Atk=Instance.new("NumberValue") | |
1235 | Atk.Name="Damage" | |
1236 | Atk.Parent=Stats | |
1237 | Atk.Value=1 | |
1238 | local Def=Instance.new("NumberValue") | |
1239 | Def.Name="Defense" | |
1240 | Def.Parent=Stats | |
1241 | Def.Value=1 | |
1242 | local Speed=Instance.new("NumberValue") | |
1243 | Speed.Name="Speed" | |
1244 | Speed.Parent=Stats | |
1245 | Speed.Value=1 | |
1246 | local Mvmt=Instance.new("NumberValue") | |
1247 | Mvmt.Name="Movement" | |
1248 | Mvmt.Parent=Stats | |
1249 | Mvmt.Value=1 | |
1250 | ||
1251 | local donum=0 | |
1252 | ||
1253 | ||
1254 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
1255 | local fp=it("Part") | |
1256 | fp.formFactor=formfactor | |
1257 | fp.Parent=parent | |
1258 | fp.Reflectance=reflectance | |
1259 | fp.Transparency=transparency | |
1260 | fp.CanCollide=false | |
1261 | fp.Locked=true | |
1262 | fp.BrickColor=brickcolor | |
1263 | fp.Name=name | |
1264 | fp.Size=size | |
1265 | fp.Position=Torso.Position | |
1266 | NoOutline(fp) | |
1267 | fp.Material="SmoothPlastic" | |
1268 | fp:BreakJoints() | |
1269 | return fp | |
1270 | end | |
1271 | ||
1272 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1273 | local mesh=it(Mesh) | |
1274 | mesh.Parent=part | |
1275 | if Mesh=="SpecialMesh" then | |
1276 | mesh.MeshType=meshtype | |
1277 | if meshid~="nil" then | |
1278 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
1279 | end | |
1280 | end | |
1281 | mesh.Offset=offset | |
1282 | mesh.Scale=scale | |
1283 | return mesh | |
1284 | end | |
1285 | ||
1286 | function weld(parent,part0,part1,c0) | |
1287 | local weld=it("Weld") | |
1288 | weld.Parent=parent | |
1289 | weld.Part0=part0 | |
1290 | weld.Part1=part1 | |
1291 | weld.C0=c0 | |
1292 | return weld | |
1293 | end | |
1294 | ||
1295 | local Color1=Torso.BrickColor | |
1296 | ||
1297 | local bodvel=Instance.new("BodyVelocity") | |
1298 | local bg=Instance.new("BodyGyro") | |
1299 | ||
1300 | function swait(num) | |
1301 | if num==0 or num==nil then | |
1302 | game:service'RunService'.Stepped:wait(0) | |
1303 | else | |
1304 | for i=0,num do | |
1305 | game:service'RunService'.Stepped:wait(0) | |
1306 | end | |
1307 | end | |
1308 | end | |
1309 | ||
1310 | -------- RAINBOW LEAVE IT TO ME | |
1311 | local r = 255 | |
1312 | local g = 0 | |
1313 | local b = 0 | |
1314 | coroutine.resume(coroutine.create(function() | |
1315 | while wait() do | |
1316 | for i = 0, 254/5 do | |
1317 | swait() | |
1318 | g = g + 5 | |
1319 | end | |
1320 | for i = 0, 254/5 do | |
1321 | swait() | |
1322 | r = r - 5 | |
1323 | end | |
1324 | for i = 0, 254/5 do | |
1325 | swait() | |
1326 | b = b + 5 | |
1327 | end | |
1328 | for i = 0, 254/5 do | |
1329 | swait() | |
1330 | g = g - 5 | |
1331 | end | |
1332 | for i = 0, 254/5 do | |
1333 | swait() | |
1334 | r = r + 5 | |
1335 | end | |
1336 | for i = 0, 254/5 do | |
1337 | swait() | |
1338 | b = b - 5 | |
1339 | end | |
1340 | end | |
1341 | end)) | |
1342 | ||
1343 | ||
1344 | so = function(id,par,vol,pit) | |
1345 | coroutine.resume(coroutine.create(function() | |
1346 | local sou = Instance.new("Sound",par or workspace) | |
1347 | sou.Volume=vol | |
1348 | sou.Pitch=pit or 1 | |
1349 | sou.SoundId=id | |
1350 | swait() | |
1351 | sou:play() | |
1352 | game:GetService("Debris"):AddItem(sou,6) | |
1353 | end)) | |
1354 | end | |
1355 | ||
1356 | function clerp(a,b,t) | |
1357 | local qa = {QuaternionFromCFrame(a)} | |
1358 | local qb = {QuaternionFromCFrame(b)} | |
1359 | local ax, ay, az = a.x, a.y, a.z | |
1360 | local bx, by, bz = b.x, b.y, b.z | |
1361 | local _t = 1-t | |
1362 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
1363 | end | |
1364 | ||
1365 | function QuaternionFromCFrame(cf) | |
1366 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1367 | local trace = m00 + m11 + m22 | |
1368 | if trace > 0 then | |
1369 | local s = math.sqrt(1 + trace) | |
1370 | local recip = 0.5/s | |
1371 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
1372 | else | |
1373 | local i = 0 | |
1374 | if m11 > m00 then | |
1375 | i = 1 | |
1376 | end | |
1377 | if m22 > (i == 0 and m00 or m11) then | |
1378 | i = 2 | |
1379 | end | |
1380 | if i == 0 then | |
1381 | local s = math.sqrt(m00-m11-m22+1) | |
1382 | local recip = 0.5/s | |
1383 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
1384 | elseif i == 1 then | |
1385 | local s = math.sqrt(m11-m22-m00+1) | |
1386 | local recip = 0.5/s | |
1387 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
1388 | elseif i == 2 then | |
1389 | local s = math.sqrt(m22-m00-m11+1) | |
1390 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
1391 | end | |
1392 | end | |
1393 | end | |
1394 | ||
1395 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1396 | local xs, ys, zs = x + x, y + y, z + z | |
1397 | local wx, wy, wz = w*xs, w*ys, w*zs | |
1398 | local xx = x*xs | |
1399 | local xy = x*ys | |
1400 | local xz = x*zs | |
1401 | local yy = y*ys | |
1402 | local yz = y*zs | |
1403 | local zz = z*zs | |
1404 | 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)) | |
1405 | end | |
1406 | ||
1407 | function QuaternionSlerp(a, b, t) | |
1408 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
1409 | local startInterp, finishInterp; | |
1410 | if cosTheta >= 0.0001 then | |
1411 | if (1 - cosTheta) > 0.0001 then | |
1412 | local theta = math.acos(cosTheta) | |
1413 | local invSinTheta = 1/math.sin(theta) | |
1414 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
1415 | finishInterp = math.sin(t*theta)*invSinTheta | |
1416 | else | |
1417 | startInterp = 1-t | |
1418 | finishInterp = t | |
1419 | end | |
1420 | else | |
1421 | if (1+cosTheta) > 0.0001 then | |
1422 | local theta = math.acos(-cosTheta) | |
1423 | local invSinTheta = 1/math.sin(theta) | |
1424 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
1425 | finishInterp = math.sin(t*theta)*invSinTheta | |
1426 | else | |
1427 | startInterp = t-1 | |
1428 | finishInterp = t | |
1429 | end | |
1430 | end | |
1431 | 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 | |
1432 | end | |
1433 | ||
1434 | local function CFrameFromTopBack(at, top, back) | |
1435 | local right = top:Cross(back) | |
1436 | return CFrame.new(at.x, at.y, at.z, | |
1437 | right.x, top.x, back.x, | |
1438 | right.y, top.y, back.y, | |
1439 | right.z, top.z, back.z) | |
1440 | end | |
1441 | ||
1442 | function Triangle(a, b, c) | |
1443 | local edg1 = (c-a):Dot((b-a).unit) | |
1444 | local edg2 = (a-b):Dot((c-b).unit) | |
1445 | local edg3 = (b-c):Dot((a-c).unit) | |
1446 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
1447 | a, b, c = a, b, c | |
1448 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
1449 | a, b, c = b, c, a | |
1450 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
1451 | a, b, c = c, a, b | |
1452 | else | |
1453 | assert(false, "unreachable") | |
1454 | end | |
1455 | ||
1456 | local len1 = (c-a):Dot((b-a).unit) | |
1457 | local len2 = (b-a).magnitude - len1 | |
1458 | local width = (a + (b-a).unit*len1 - c).magnitude | |
1459 | ||
1460 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
1461 | ||
1462 | local list = {} | |
1463 | ||
1464 | if len1 > 0.01 then | |
1465 | local w1 = Instance.new('WedgePart', m) | |
1466 | game:GetService("Debris"):AddItem(w1,5) | |
1467 | w1.Material = "SmoothPlastic" | |
1468 | w1.FormFactor = 'Custom' | |
1469 | w1.BrickColor = BrickColor.new("Navy blue") | |
1470 | w1.Transparency = 0 | |
1471 | w1.Reflectance = 0 | |
1472 | w1.Material = "SmoothPlastic" | |
1473 | w1.CanCollide = false | |
1474 | local l1 = Instance.new("PointLight",w1) | |
1475 | l1.Color = Color3.new(170,0,0) | |
1476 | NoOutline(w1) | |
1477 | local sz = Vector3.new(0.2, width, len1) | |
1478 | w1.Size = sz | |
1479 | local sp = Instance.new("SpecialMesh",w1) | |
1480 | sp.MeshType = "Wedge" | |
1481 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
1482 | w1:BreakJoints() | |
1483 | w1.Anchored = true | |
1484 | w1.Parent = workspace | |
1485 | w1.Transparency = 0.7 | |
1486 | table.insert(Effects,{w1,"Disappear",.01}) | |
1487 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
1488 | table.insert(list,w1) | |
1489 | end | |
1490 | ||
1491 | if len2 > 0.01 then | |
1492 | local w2 = Instance.new('WedgePart', m) | |
1493 | game:GetService("Debris"):AddItem(w2,5) | |
1494 | w2.Material = "SmoothPlastic" | |
1495 | w2.FormFactor = 'Custom' | |
1496 | w2.BrickColor = BrickColor.new("Navy blue") | |
1497 | w2.Transparency = 0 | |
1498 | w2.Reflectance = 0 | |
1499 | w2.Material = "SmoothPlastic" | |
1500 | w2.CanCollide = false | |
1501 | local l2 = Instance.new("PointLight",w2) | |
1502 | l2.Color = Color3.new(170,0,0) | |
1503 | NoOutline(w2) | |
1504 | local sz = Vector3.new(0.2, width, len2) | |
1505 | w2.Size = sz | |
1506 | local sp = Instance.new("SpecialMesh",w2) | |
1507 | sp.MeshType = "Wedge" | |
1508 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
1509 | w2:BreakJoints() | |
1510 | w2.Anchored = true | |
1511 | w2.Parent = workspace | |
1512 | w2.Transparency = 0.7 | |
1513 | table.insert(Effects,{w2,"Disappear",.01}) | |
1514 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
1515 | table.insert(list,w2) | |
1516 | end | |
1517 | return unpack(list) | |
1518 | end | |
1519 | ||
1520 | ||
1521 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1522 | if hit.Parent == nil then | |
1523 | return | |
1524 | end | |
1525 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1526 | for _, v in pairs(hit.Parent:children()) do | |
1527 | if v:IsA("Humanoid") then | |
1528 | h = v | |
1529 | end | |
1530 | end | |
1531 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then | |
1532 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1533 | return | |
1534 | end | |
1535 | local c = Create("ObjectValue")({ | |
1536 | Name = "creator", | |
1537 | Value = game:service("Players").LocalPlayer, | |
1538 | Parent = h | |
1539 | }) | |
1540 | game:GetService("Debris"):AddItem(c, 0.5) | |
1541 | if HitSound ~= nil and HitPitch ~= nil then | |
1542 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1543 | end | |
1544 | local Damage = math.random(minim, maxim) | |
1545 | local blocked = false | |
1546 | local block = hit.Parent:findFirstChild("Block") | |
1547 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1548 | blocked = true | |
1549 | block.Value = block.Value - 1 | |
1550 | print(block.Value) | |
1551 | end | |
1552 | if blocked == false then | |
1553 | HitHealth = h.Health | |
1554 | h.Health = h.Health - Damage | |
1555 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
1556 | print("gained kill") | |
1557 | end | |
1558 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1559 | else | |
1560 | h.Health = h.Health - Damage / 2 | |
1561 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1562 | end | |
1563 | if Type == "Knockdown" then | |
1564 | local hum = hit.Parent.Humanoid | |
1565 | hum.PlatformStand = true | |
1566 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1567 | swait(1) | |
1568 | HHumanoid.PlatformStand = false | |
1569 | end), hum) | |
1570 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1571 | local bodvol = Create("BodyVelocity")({ | |
1572 | velocity = angle * knockback, | |
1573 | P = 5000, | |
1574 | maxForce = Vector3.new(8000, 8000, 8000), | |
1575 | Parent = hit | |
1576 | }) | |
1577 | local rl = Create("BodyAngularVelocity")({ | |
1578 | P = 3000, | |
1579 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1580 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1581 | Parent = hit | |
1582 | }) | |
1583 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
1584 | game:GetService("Debris"):AddItem(rl, 0.5) | |
1585 | elseif Type == "Normal" then | |
1586 | local vp = Create("BodyVelocity")({ | |
1587 | P = 500, | |
1588 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1589 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1590 | }) | |
1591 | if knockback > 0 then | |
1592 | vp.Parent = hit.Parent.Head | |
1593 | end | |
1594 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1595 | elseif Type == "Up" then | |
1596 | local bodyVelocity = Create("BodyVelocity")({ | |
1597 | velocity = Vector3.new(0, 20, 0), | |
1598 | P = 5000, | |
1599 | maxForce = Vector3.new(8000, 8000, 8000), | |
1600 | Parent = hit | |
1601 | }) | |
1602 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1603 | local bodyVelocity = Create("BodyVelocity")({ | |
1604 | velocity = Vector3.new(0, 20, 0), | |
1605 | P = 5000, | |
1606 | maxForce = Vector3.new(8000, 8000, 8000), | |
1607 | Parent = hit | |
1608 | }) | |
1609 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1610 | elseif Type == "Leech" then | |
1611 | local hum = hit.Parent.Humanoid | |
1612 | if hum ~= nil then | |
1613 | for i = 0, 2 do | |
1614 | 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) | |
1615 | end | |
1616 | Humanoid.Health = Humanoid.Health + 10 | |
1617 | end | |
1618 | elseif Type == "UpKnock" then | |
1619 | local hum = hit.Parent.Humanoid | |
1620 | hum.PlatformStand = true | |
1621 | if hum ~= nil then | |
1622 | hitr = true | |
1623 | end | |
1624 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1625 | swait(5) | |
1626 | HHumanoid.PlatformStand = false | |
1627 | hitr = false | |
1628 | end), hum) | |
1629 | local bodyVelocity = Create("BodyVelocity")({ | |
1630 | velocity = Vector3.new(0, 20, 0), | |
1631 | P = 5000, | |
1632 | maxForce = Vector3.new(8000, 8000, 8000), | |
1633 | Parent = hit | |
1634 | }) | |
1635 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1636 | local bodyVelocity = Create("BodyVelocity")({ | |
1637 | velocity = Vector3.new(0, 20, 0), | |
1638 | P = 5000, | |
1639 | maxForce = Vector3.new(8000, 8000, 8000), | |
1640 | Parent = hit | |
1641 | }) | |
1642 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1643 | elseif Type == "Snare" then | |
1644 | local bp = Create("BodyPosition")({ | |
1645 | P = 2000, | |
1646 | D = 100, | |
1647 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1648 | position = hit.Parent.Torso.Position, | |
1649 | Parent = hit.Parent.Torso | |
1650 | }) | |
1651 | game:GetService("Debris"):AddItem(bp, 1) | |
1652 | elseif Type == "Slashnare" then | |
1653 | 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) | |
1654 | for i = 1, math.random(4, 5) do | |
1655 | 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) | |
1656 | end | |
1657 | local bp = Create("BodyPosition")({ | |
1658 | P = 2000, | |
1659 | D = 100, | |
1660 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1661 | position = hit.Parent.Torso.Position, | |
1662 | Parent = hit.Parent.Torso | |
1663 | }) | |
1664 | game:GetService("Debris"):AddItem(bp, 1) | |
1665 | elseif Type == "Spike" then | |
1666 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
1667 | local bp = Create("BodyPosition")({ | |
1668 | P = 2000, | |
1669 | D = 100, | |
1670 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1671 | position = hit.Parent.Torso.Position, | |
1672 | Parent = hit.Parent.Torso | |
1673 | }) | |
1674 | game:GetService("Debris"):AddItem(bp, 1) | |
1675 | elseif Type == "Freeze" then | |
1676 | local BodPos = Create("BodyPosition")({ | |
1677 | P = 50000, | |
1678 | D = 1000, | |
1679 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1680 | position = hit.Parent.Torso.Position, | |
1681 | Parent = hit.Parent.Torso | |
1682 | }) | |
1683 | local BodGy = Create("BodyGyro")({ | |
1684 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
1685 | P = 20000, | |
1686 | Parent = hit.Parent.Torso, | |
1687 | cframe = hit.Parent.Torso.CFrame | |
1688 | }) | |
1689 | hit.Parent.Torso.Anchored = true | |
1690 | coroutine.resume(coroutine.create(function(Part) | |
1691 | swait(1.5) | |
1692 | Part.Anchored = false | |
1693 | end), hit.Parent.Torso) | |
1694 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1695 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1696 | end | |
1697 | local debounce = Create("BoolValue")({ | |
1698 | Name = "DebounceHit", | |
1699 | Parent = hit.Parent, | |
1700 | Value = true | |
1701 | }) | |
1702 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1703 | c = Instance.new("ObjectValue") | |
1704 | c.Name = "creator" | |
1705 | c.Value = Player | |
1706 | c.Parent = h | |
1707 | game:GetService("Debris"):AddItem(c, 0.5) | |
1708 | end | |
1709 | end | |
1710 | function ShowDamage(Pos, Text, Time, Color) | |
1711 | local Rate = 0.03333333333333333 | |
1712 | local Pos = Pos or Vector3.new(0, 0, 0) | |
1713 | local Text = Text or "" | |
1714 | local Time = Time or 2 | |
1715 | local Color = Color or Color3.new(1, 0, 1) | |
1716 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1717 | EffectPart.Anchored = true | |
1718 | local BillboardGui = Create("BillboardGui")({ | |
1719 | Size = UDim2.new(3, 0, 3, 0), | |
1720 | Adornee = EffectPart, | |
1721 | Parent = EffectPart | |
1722 | }) | |
1723 | local TextLabel = Create("TextLabel")({ | |
1724 | BackgroundTransparency = 1, | |
1725 | Size = UDim2.new(1, 0, 1, 0), | |
1726 | Text = Text, | |
1727 | TextColor3 = Color, | |
1728 | TextScaled = true, | |
1729 | Font = Enum.Font.ArialBold, | |
1730 | Parent = BillboardGui | |
1731 | }) | |
1732 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1733 | EffectPart.Parent = game:GetService("Workspace") | |
1734 | delay(0, function() | |
1735 | local Frames = Time / Rate | |
1736 | for Frame = 1, Frames do | |
1737 | wait(Rate) | |
1738 | local Percent = Frame / Frames | |
1739 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1740 | TextLabel.TextTransparency = Percent | |
1741 | end | |
1742 | if EffectPart and EffectPart.Parent then | |
1743 | EffectPart:Destroy() | |
1744 | end | |
1745 | end) | |
1746 | end | |
1747 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
1748 | for _, c in pairs(workspace:children()) do | |
1749 | local hum = c:findFirstChildOfClass("Humanoid") | |
1750 | if hum ~= nil then | |
1751 | local head = c:findFirstChild("Head") | |
1752 | if head ~= nil then | |
1753 | local targ = head.Position - Part.Position | |
1754 | local mag = targ.magnitude | |
1755 | if magni >= mag and c.Name ~= Player.Name then | |
1756 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1757 | end | |
1758 | end | |
1759 | end | |
1760 | end | |
1761 | end | |
1762 | ||
1763 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
1764 | for _, c in pairs(workspace:children()) do | |
1765 | local hum = c:findFirstChild("Humanoid") | |
1766 | if hum ~= nil then | |
1767 | local head = c:findFirstChild("Torso") | |
1768 | if head ~= nil then | |
1769 | local targ = head.Position - Part.Position | |
1770 | local mag = targ.magnitude | |
1771 | if magni >= mag and c.Name ~= Player.Name then | |
1772 | MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05) | |
1773 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1774 | end | |
1775 | end | |
1776 | end | |
1777 | end | |
1778 | end | |
1779 | ||
1780 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1781 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1782 | end | |
1783 | ||
1784 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
1785 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1786 | prt.Anchored=true | |
1787 | prt.CFrame=cframe | |
1788 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
1789 | --http://www.roblox.com/asset/?id=4770560 | |
1790 | game:GetService("Debris"):AddItem(prt,2) | |
1791 | CF=prt.CFrame | |
1792 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
1793 | for i=0,1,0.2 do | |
1794 | wait() | |
1795 | Part.CFrame=CF*cf(0,0,-0.4) | |
1796 | end | |
1797 | for i=0,1,delay do | |
1798 | wait() | |
1799 | --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) | |
1800 | Mesh.Scale=Mesh.Scale | |
1801 | end | |
1802 | for i=0,1,0.1 do | |
1803 | wait() | |
1804 | Part.Transparency=i | |
1805 | end | |
1806 | Part.Parent=nil | |
1807 | end),prt,msh,CF) | |
1808 | end | |
1809 | ||
1810 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1811 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1812 | prt.Anchored=true | |
1813 | prt.Material = "Neon" | |
1814 | prt.CFrame=cframe | |
1815 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1816 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1817 | game:GetService("Debris"):AddItem(prt,5) | |
1818 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1819 | for i=0,1,delay do | |
1820 | swait() | |
1821 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1822 | Part.Transparency=i | |
1823 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1824 | end | |
1825 | Part.Parent=nil | |
1826 | end),prt,msh) | |
1827 | end | |
1828 | ||
1829 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1830 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1831 | prt.Anchored=true | |
1832 | prt.Material = "Neon" | |
1833 | prt.CFrame=cframe | |
1834 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1835 | game:GetService("Debris"):AddItem(prt,5) | |
1836 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1837 | local rtype = rottype | |
1838 | for i=0,1,delay do | |
1839 | swait() | |
1840 | if rtype == 1 then | |
1841 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1842 | elseif rtype == 2 then | |
1843 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1844 | end | |
1845 | Part.Transparency=i | |
1846 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1847 | end | |
1848 | Part.Parent=nil | |
1849 | end),prt,msh) | |
1850 | end | |
1851 | ||
1852 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1853 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1854 | prt.Anchored=true | |
1855 | prt.CFrame=cframe | |
1856 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1857 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1858 | game:GetService("Debris"):AddItem(prt,5) | |
1859 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1860 | for i=0,1,delay do | |
1861 | wait() | |
1862 | Part.Transparency=i | |
1863 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1864 | end | |
1865 | Part.Parent=nil | |
1866 | end),prt,msh) | |
1867 | end | |
1868 | ||
1869 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1870 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1871 | prt.Anchored=true | |
1872 | prt.Material = "Neon" | |
1873 | prt.CFrame=cframe | |
1874 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1875 | game:GetService("Debris"):AddItem(prt,5) | |
1876 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1877 | local rtype = rottype | |
1878 | for i=0,1,delay do | |
1879 | swait() | |
1880 | if rtype == 1 then | |
1881 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1882 | elseif rtype == 2 then | |
1883 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1884 | end | |
1885 | Part.Transparency=i | |
1886 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1887 | end | |
1888 | Part.Parent=nil | |
1889 | end),prt,msh) | |
1890 | end | |
1891 | ||
1892 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
1893 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1894 | prt.Anchored=true | |
1895 | prt.Material = "Neon" | |
1896 | prt.CFrame=cframe | |
1897 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
1898 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
1899 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
1900 | game:GetService("Debris"):AddItem(prt,5) | |
1901 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1902 | local rtype = rottype | |
1903 | for i=0,1,delay do | |
1904 | swait() | |
1905 | if rtype == 1 then | |
1906 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1907 | elseif rtype == 2 then | |
1908 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1909 | end | |
1910 | dec.Transparency=i | |
1911 | dec2.Transparency=i | |
1912 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1913 | end | |
1914 | Part.Parent=nil | |
1915 | end),prt,msh) | |
1916 | end | |
1917 | ||
1918 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
1919 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1920 | prt.Anchored=true | |
1921 | prt.Material = "Neon" | |
1922 | prt.CFrame=cframe | |
1923 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
1924 | game:GetService("Debris"):AddItem(prt,5) | |
1925 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1926 | local rtype = rottype | |
1927 | for i=0,1,delay do | |
1928 | swait() | |
1929 | if rtype == 1 then | |
1930 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1931 | elseif rtype == 2 then | |
1932 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1933 | end | |
1934 | prt.Transparency=i | |
1935 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1936 | end | |
1937 | Part.Parent=nil | |
1938 | end),prt,msh) | |
1939 | end | |
1940 | ||
1941 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
1942 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1943 | prt.Anchored=true | |
1944 | prt.Material = "Neon" | |
1945 | prt.CFrame=cframe | |
1946 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1)) | |
1947 | game:GetService("Debris"):AddItem(prt,5) | |
1948 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1949 | local rtype = rottype | |
1950 | for i=0,1,delay do | |
1951 | swait() | |
1952 | if rtype == 1 then | |
1953 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
1954 | elseif rtype == 2 then | |
1955 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
1956 | end | |
1957 | prt.Transparency=i | |
1958 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
1959 | end | |
1960 | Part.Parent=nil | |
1961 | end),prt,msh) | |
1962 | end | |
1963 | ||
1964 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
1965 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1966 | prt.Anchored=true | |
1967 | prt.Material = "Neon" | |
1968 | prt.CFrame=cframe | |
1969 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1970 | game:GetService("Debris"):AddItem(prt,5) | |
1971 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1972 | local rtype = rottype | |
1973 | for i=0,1,delay do | |
1974 | swait() | |
1975 | if rtype == 1 then | |
1976 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1977 | elseif rtype == 2 then | |
1978 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1979 | end | |
1980 | prt.Transparency=i | |
1981 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1982 | end | |
1983 | Part.Parent=nil | |
1984 | end),prt,msh) | |
1985 | end | |
1986 | ||
1987 | function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1988 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1989 | prt.Anchored=true | |
1990 | prt.Material = "Neon" | |
1991 | prt.CFrame=cframe | |
1992 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1993 | game:GetService("Debris"):AddItem(prt,5) | |
1994 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1995 | local rtype = rottype | |
1996 | for i=0,1,delay do | |
1997 | swait() | |
1998 | if rtype == 1 then | |
1999 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2000 | elseif rtype == 2 then | |
2001 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2002 | end | |
2003 | prt.Transparency=i | |
2004 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2005 | end | |
2006 | Part.Parent=nil | |
2007 | end),prt,msh) | |
2008 | end | |
2009 | ||
2010 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
2011 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2012 | prt.Anchored=false | |
2013 | prt.CFrame=cframe | |
2014 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2015 | local wld=weld(prt,prt,Parent,cframe) | |
2016 | game:GetService("Debris"):AddItem(prt,5) | |
2017 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
2018 | for i=0,1,delay do | |
2019 | wait() | |
2020 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
2021 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2022 | Part.Transparency=i | |
2023 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2024 | end | |
2025 | Part.Parent=nil | |
2026 | end),prt,msh,wld) | |
2027 | end | |
2028 | ||
2029 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
2030 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2031 | prt.Anchored=false | |
2032 | prt.CFrame=cframe | |
2033 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2034 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
2035 | game:GetService("Debris"):AddItem(prt,5) | |
2036 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
2037 | for i=0,1,delay do | |
2038 | wait() | |
2039 | Weld.C0=euler(i*20,0,0) | |
2040 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2041 | Part.Transparency=i | |
2042 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2043 | end | |
2044 | Part.Parent=nil | |
2045 | end),prt,msh,wld) | |
2046 | end | |
2047 | ||
2048 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2049 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2050 | prt.Anchored=true | |
2051 | prt.CFrame=cframe | |
2052 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2053 | game:GetService("Debris"):AddItem(prt,2) | |
2054 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2055 | for i=0,1,delay do | |
2056 | wait() | |
2057 | Part.CFrame=Part.CFrame | |
2058 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2059 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2060 | prt2.Anchored=true | |
2061 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2062 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
2063 | game:GetService("Debris"):AddItem(prt2,2) | |
2064 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2065 | for i=0,1,0.1 do | |
2066 | wait() | |
2067 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
2068 | end | |
2069 | Part.Parent=nil | |
2070 | end),prt2,msh2) | |
2071 | end | |
2072 | for i=0,1,delay*2 do | |
2073 | wait() | |
2074 | Part.CFrame=Part.CFrame | |
2075 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
2076 | end | |
2077 | Part.Parent=nil | |
2078 | end),prt,msh) | |
2079 | end | |
2080 | ||
2081 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2082 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2083 | prt.Anchored=true | |
2084 | prt.CFrame=cframe | |
2085 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2086 | game:GetService("Debris"):AddItem(prt,2) | |
2087 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2088 | for i=0,1,delay do | |
2089 | wait() | |
2090 | Part.CFrame=Part.CFrame | |
2091 | Part.Transparency=i | |
2092 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2093 | end | |
2094 | Part.Parent=nil | |
2095 | end),prt,msh) | |
2096 | end | |
2097 | ||
2098 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
2099 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2100 | prt.Anchored=true | |
2101 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2102 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2103 | game:GetService("Debris"):AddItem(prt,2) | |
2104 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
2105 | CF=Part.CFrame | |
2106 | Numbb=0 | |
2107 | randnumb=math.random()/10 | |
2108 | rand1=math.random()/10 | |
2109 | for i=0,1,rand1 do | |
2110 | wait() | |
2111 | CF=CF*cf(0,math.random()/2,0) | |
2112 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
2113 | Part.CFrame=CF*euler(Numbb,0,0) | |
2114 | Part.Transparency=i | |
2115 | Numbb=Numbb+randnumb | |
2116 | end | |
2117 | Part.Parent=nil | |
2118 | end),prt,CF,Numbb,randnumb) | |
2119 | end | |
2120 | ||
2121 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2122 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2123 | prt.Anchored=true | |
2124 | prt.CFrame=cframe | |
2125 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
2126 | game:GetService("Debris"):AddItem(prt,5) | |
2127 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2128 | for i=0,1,delay do | |
2129 | wait() | |
2130 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
2131 | Part.Transparency=i | |
2132 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2133 | end | |
2134 | Part.Parent=nil | |
2135 | end),prt,msh) | |
2136 | end | |
2137 | ||
2138 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2139 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2140 | prt.Anchored=true | |
2141 | prt.CFrame=cframe | |
2142 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
2143 | game:GetService("Debris"):AddItem(prt,2) | |
2144 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2145 | for i=0,1,delay do | |
2146 | wait() | |
2147 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
2148 | Part.Transparency=i | |
2149 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2150 | end | |
2151 | Part.Parent=nil | |
2152 | end),prt,msh) | |
2153 | end | |
2154 | ||
2155 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
2156 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2157 | prt.Anchored=true | |
2158 | prt.CFrame=cframe*cf(x,y,z) | |
2159 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
2160 | game:GetService("Debris"):AddItem(prt,5) | |
2161 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
2162 | local num=math.random() | |
2163 | local num2=math.random(-3,2)+math.random() | |
2164 | local numm=0 | |
2165 | for i=0,1,delay*2 do | |
2166 | swait() | |
2167 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
2168 | Part.Transparency=i | |
2169 | numm=numm+0.01 | |
2170 | end | |
2171 | Part.Parent=nil | |
2172 | Mesh.Parent=nil | |
2173 | end),prt,msh,x,y,z) | |
2174 | end | |
2175 | ||
2176 | function dmgstart(dmg,what) | |
2177 | hitcon = what.Touched:connect(function(hit) | |
2178 | local hum = hit.Parent:FindFirstChild("Humanoid") | |
2179 | if hum and not hum:IsDescendantOf(Character) then | |
2180 | hum:TakeDamage(dmg) | |
2181 | end | |
2182 | end) | |
2183 | end | |
2184 | ||
2185 | function dmgstop() | |
2186 | hitcon:disconnect() | |
2187 | end | |
2188 | ||
2189 | function Cloak() | |
2190 | Face.Parent=nil | |
2191 | cloaked=true | |
2192 | for _,v in pairs(Torso.Parent:children()) do | |
2193 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
2194 | coroutine.resume(coroutine.create(function() | |
2195 | for i=0,1,0.2 do | |
2196 | wait() | |
2197 | v.Transparency=i | |
2198 | end | |
2199 | v.Transparency=1 | |
2200 | end)) | |
2201 | end | |
2202 | if v.className=="Hat" then | |
2203 | hatp=v.Handle | |
2204 | coroutine.resume(coroutine.create(function(derp) | |
2205 | for i=0,1,0.2 do | |
2206 | wait() | |
2207 | derp.Transparency=i | |
2208 | end | |
2209 | derp.Transparency=1 | |
2210 | end),hatp) | |
2211 | end | |
2212 | end | |
2213 | for _,v in pairs(m:children()) do | |
2214 | if v.className=="Part" then | |
2215 | coroutine.resume(coroutine.create(function() | |
2216 | for i=0,1,0.2 do | |
2217 | wait() | |
2218 | v.Transparency=i | |
2219 | end | |
2220 | v.Transparency=1 | |
2221 | end)) | |
2222 | end | |
2223 | end | |
2224 | end | |
2225 | ||
2226 | function UnCloak() | |
2227 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) | |
2228 | Face.Parent=Head | |
2229 | cloaked=false | |
2230 | for _,v in pairs(Torso.Parent:children()) do | |
2231 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
2232 | coroutine.resume(coroutine.create(function() | |
2233 | for i=0,1,0.1 do | |
2234 | wait() | |
2235 | v.Transparency=v.Transparency-0.1 | |
2236 | end | |
2237 | v.Transparency=0 | |
2238 | end)) | |
2239 | end | |
2240 | if v.className=="Hat" then | |
2241 | hatp=v.Handle | |
2242 | coroutine.resume(coroutine.create(function(derp) | |
2243 | for i=0,1,0.1 do | |
2244 | wait() | |
2245 | derp.Transparency=derp.Transparency-0.1 | |
2246 | end | |
2247 | derp.Transparency=0 | |
2248 | end),hatp) | |
2249 | end | |
2250 | end | |
2251 | for _,v in pairs(m:children()) do | |
2252 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
2253 | coroutine.resume(coroutine.create(function() | |
2254 | for i=0,1,0.1 do | |
2255 | wait() | |
2256 | v.Transparency=v.Transparency-0.1 | |
2257 | end | |
2258 | v.Transparency=0 | |
2259 | end)) | |
2260 | v.Transparency=0 | |
2261 | end | |
2262 | end | |
2263 | end | |
2264 | ||
2265 | local origcolor = BrickColor.new("Pastel light blue") | |
2266 | ---- This section of explosions. | |
2267 | function Explode(rad,par,pitch,vol,mindam,maxdam) | |
2268 | local expart = Instance.new("Part",char) | |
2269 | local expart2 = Instance.new("Part",char) | |
2270 | local rin = Instance.new("Part",char) | |
2271 | local rin2 = Instance.new("Part",char) | |
2272 | local partMesh = Instance.new("SpecialMesh",expart) | |
2273 | partMesh.MeshType = "Sphere" | |
2274 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
2275 | partMesh2.MeshType = "Sphere" | |
2276 | local partMesh3 = Instance.new("SpecialMesh",rin) | |
2277 | partMesh3.MeshType = "Brick" | |
2278 | local partMesh4 = Instance.new("SpecialMesh",rin2) | |
2279 | partMesh4.MeshType = "Brick" | |
2280 | CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch) | |
2281 | partMesh.Scale = vt(rad,rad,rad) | |
2282 | expart.Size = vt(1,1,1) | |
2283 | expart.Transparency = 0 | |
2284 | expart.Anchored = true | |
2285 | expart.Material = "Neon" | |
2286 | expart.BrickColor = bc("White") | |
2287 | expart.CFrame = par.CFrame | |
2288 | partMesh2.Scale = vt(rad,rad,rad) | |
2289 | expart2.Size = vt(1.15,1.15,1.15) | |
2290 | expart2.Transparency = 0.5 | |
2291 | expart2.Anchored = true | |
2292 | expart2.Material = "Neon" | |
2293 | expart2.BrickColor = par.BrickColor | |
2294 | expart2.CFrame = par.CFrame | |
2295 | rin.Size = vt(1.15,1.15,1.15) | |
2296 | rin.Transparency = 1 | |
2297 | rin.Anchored = true | |
2298 | rin.Material = "Neon" | |
2299 | rin.BrickColor = par.BrickColor | |
2300 | rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2301 | rin2.Size = vt(1.15,1.15,1.15) | |
2302 | rin2.Transparency = 1 | |
2303 | rin2.Anchored = true | |
2304 | rin2.Material = "Neon" | |
2305 | rin2.BrickColor = par.BrickColor | |
2306 | rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2307 | partMesh3.Scale = vt(0,1,0) | |
2308 | partMesh4.Scale = vt(0,1,0) | |
2309 | local dec2 = Instance.new("Decal", rin) | |
2310 | dec2.Face = "Top" | |
2311 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2312 | dec2.Parent = rin | |
2313 | local dec2b = dec2:Clone() | |
2314 | dec2b.Face = "Bottom" | |
2315 | dec2b.Parent = rin | |
2316 | ||
2317 | local dec2a = Instance.new("Decal", rin2) | |
2318 | dec2a.Face = "Top" | |
2319 | dec2a.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2320 | dec2a.Parent = rin2 | |
2321 | local dec2ab = dec2a:Clone() | |
2322 | dec2ab.Face = "Bottom" | |
2323 | dec2ab.Parent = rin2 | |
2324 | expart.CanCollide = false | |
2325 | expart2.CanCollide = false | |
2326 | rin.CanCollide = false | |
2327 | rin2.CanCollide = false | |
2328 | MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal") | |
2329 | local value = 1*rad/6.5 | |
2330 | for i = 0, 199 do | |
2331 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2332 | expart.CFrame = expart.CFrame | |
2333 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
2334 | expart2.CFrame = expart.CFrame | |
2335 | value = value - 0.035*rad/30 | |
2336 | if value < 7.5 then | |
2337 | partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5) | |
2338 | rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0) | |
2339 | partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5) | |
2340 | rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0) | |
2341 | end | |
2342 | if value < 0 then | |
2343 | dec2.Transparency = dec2.Transparency + 0.025 | |
2344 | dec2a.Transparency = dec2a.Transparency + 0.025 | |
2345 | dec2b.Transparency = dec2b.Transparency + 0.025 | |
2346 | dec2ab.Transparency = dec2ab.Transparency + 0.025 | |
2347 | expart.Transparency = expart.Transparency + 0.025 | |
2348 | expart2.Transparency = expart2.Transparency + 0.025 | |
2349 | rin.Transparency = rin.Transparency + 0.025 | |
2350 | rin2.Transparency = rin2.Transparency + 0.025 | |
2351 | end | |
2352 | swait() | |
2353 | end | |
2354 | game:GetService("Debris"):AddItem(expart, 1) | |
2355 | game:GetService("Debris"):AddItem(expart2, 1) | |
2356 | game:GetService("Debris"):AddItem(rin, 1) | |
2357 | game:GetService("Debris"):AddItem(rin2, 1) | |
2358 | end | |
2359 | ||
2360 | function ExplodeShort(rad,par,pitch,vol,mindam,maxdam) | |
2361 | local expart = Instance.new("Part",char) | |
2362 | local expart2 = Instance.new("Part",char) | |
2363 | local partMesh = Instance.new("SpecialMesh",expart) | |
2364 | partMesh.MeshType = "Sphere" | |
2365 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
2366 | partMesh2.MeshType = "Sphere" | |
2367 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch) | |
2368 | partMesh.Scale = vt(rad,rad,rad) | |
2369 | expart.Size = vt(1,1,1) | |
2370 | expart.Transparency = 0 | |
2371 | expart.Anchored = true | |
2372 | expart.Material = "Neon" | |
2373 | expart.BrickColor = bc("White") | |
2374 | expart.CFrame = par.CFrame | |
2375 | partMesh2.Scale = vt(rad,rad,rad) | |
2376 | expart2.Size = vt(1.15,1.15,1.15) | |
2377 | expart2.Transparency = 0.5 | |
2378 | expart2.Anchored = true | |
2379 | expart2.Material = "Neon" | |
2380 | expart2.BrickColor = par.BrickColor | |
2381 | expart2.CFrame = par.CFrame | |
2382 | expart.CanCollide = false | |
2383 | expart2.CanCollide = false | |
2384 | MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal") | |
2385 | local value = 1*rad/6.5 | |
2386 | for i = 0, 75 do | |
2387 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2388 | expart.CFrame = expart.CFrame | |
2389 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
2390 | expart2.CFrame = expart.CFrame | |
2391 | value = value - 0.035*rad/5 | |
2392 | if value < 0 then | |
2393 | value = 0 | |
2394 | expart.Transparency = expart.Transparency + 0.05 | |
2395 | expart2.Transparency = expart2.Transparency + 0.05 | |
2396 | end | |
2397 | swait() | |
2398 | end | |
2399 | game:GetService("Debris"):AddItem(expart, 1) | |
2400 | game:GetService("Debris"):AddItem(expart2, 1) | |
2401 | end | |
2402 | ||
2403 | ||
2404 | function Swarmsplosions(negrad,rad,par,mindam,maxdam) | |
2405 | CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2) | |
2406 | CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1) | |
2407 | CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1) | |
2408 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1) | |
2409 | MagniDamageWithEffect(par, 25, 5,10, 0, "Normal") | |
2410 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025) | |
2411 | for i = 0, 24 do | |
2412 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2)) | |
2413 | end | |
2414 | for i = 0, 24 do | |
2415 | local expart = Instance.new("Part",char) | |
2416 | expart.Transparency = 1 | |
2417 | expart.Anchored = true | |
2418 | expart.CanCollide = false | |
2419 | expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad)) | |
2420 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2) | |
2421 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15) | |
2422 | MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal") | |
2423 | MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025) | |
2424 | for i = 0, 9 do | |
2425 | MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2)) | |
2426 | end | |
2427 | game:GetService("Debris"):AddItem(expart, 2) | |
2428 | wait(0.1) | |
2429 | end | |
2430 | end | |
2431 | ||
2432 | function EXterPlosion(par) | |
2433 | CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1) | |
2434 | CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85) | |
2435 | CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2) | |
2436 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1) | |
2437 | MagniDamageWithEffect(par, 500, 80,99, 0, "Normal") | |
2438 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005) | |
2439 | MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1) | |
2440 | for i = 0, 24 do | |
2441 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2)) | |
2442 | end | |
2443 | for i = 0, 24 do | |
2444 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2)) | |
2445 | end | |
2446 | end | |
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 sphere(bonuspeed,type,pos,scale,value,color) | |
2633 | local type = type | |
2634 | local rng = Instance.new("Part", char) | |
2635 | rng.Anchored = true | |
2636 | rng.BrickColor = color | |
2637 | rng.CanCollide = false | |
2638 | rng.FormFactor = 3 | |
2639 | rng.Name = "Ring" | |
2640 | rng.Material = "Neon" | |
2641 | rng.Size = Vector3.new(1, 1, 1) | |
2642 | rng.Transparency = 0 | |
2643 | rng.TopSurface = 0 | |
2644 | rng.BottomSurface = 0 | |
2645 | rng.CFrame = pos | |
2646 | local rngm = Instance.new("SpecialMesh", rng) | |
2647 | rngm.MeshType = "Sphere" | |
2648 | rngm.Scale = scale | |
2649 | if rainbowmode == true then | |
2650 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2651 | end | |
2652 | local scaler2 = 1 | |
2653 | if type == "Add" then | |
2654 | scaler2 = 1*value | |
2655 | elseif type == "Divide" then | |
2656 | scaler2 = 1/value | |
2657 | end | |
2658 | coroutine.resume(coroutine.create(function() | |
2659 | for i = 0,10/bonuspeed,0.1 do | |
2660 | swait() | |
2661 | if rainbowmode == true then | |
2662 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2663 | end | |
2664 | if type == "Add" then | |
2665 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2666 | elseif type == "Divide" then | |
2667 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2668 | end | |
2669 | if chaosmode == true then | |
2670 | rng.BrickColor = BrickColor.random() | |
2671 | end | |
2672 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2673 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2674 | end | |
2675 | rng:Destroy() | |
2676 | end)) | |
2677 | end | |
2678 | ||
2679 | function spherew(bonuspeed,type,pos,scale,value,color) | |
2680 | local type = type | |
2681 | local rng = Instance.new("Part", workspace) | |
2682 | rng.Anchored = true | |
2683 | rng.BrickColor = color | |
2684 | rng.CanCollide = false | |
2685 | rng.FormFactor = 3 | |
2686 | rng.Name = "Ring" | |
2687 | rng.Material = "Neon" | |
2688 | rng.Size = Vector3.new(1, 1, 1) | |
2689 | rng.Transparency = 0 | |
2690 | rng.TopSurface = 0 | |
2691 | rng.BottomSurface = 0 | |
2692 | rng.CFrame = pos | |
2693 | local rngm = Instance.new("SpecialMesh", rng) | |
2694 | rngm.MeshType = "Sphere" | |
2695 | rngm.Scale = scale | |
2696 | if rainbowmode == true then | |
2697 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2698 | end | |
2699 | local scaler2 = 1 | |
2700 | if type == "Add" then | |
2701 | scaler2 = 1*value | |
2702 | elseif type == "Divide" then | |
2703 | scaler2 = 1/value | |
2704 | end | |
2705 | coroutine.resume(coroutine.create(function() | |
2706 | for i = 0,10/bonuspeed,0.1 do | |
2707 | swait() | |
2708 | if rainbowmode == true then | |
2709 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2710 | end | |
2711 | if type == "Add" then | |
2712 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2713 | elseif type == "Divide" then | |
2714 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2715 | end | |
2716 | if chaosmode == true then | |
2717 | rng.BrickColor = BrickColor.random() | |
2718 | end | |
2719 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2720 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2721 | end | |
2722 | rng:Destroy() | |
2723 | end)) | |
2724 | end | |
2725 | ||
2726 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2727 | local type = type | |
2728 | local rng = Instance.new("Part", char) | |
2729 | rng.Anchored = true | |
2730 | rng.BrickColor = color | |
2731 | rng.CanCollide = false | |
2732 | rng.FormFactor = 3 | |
2733 | rng.Name = "Ring" | |
2734 | rng.Material = "Neon" | |
2735 | rng.Size = Vector3.new(1, 1, 1) | |
2736 | rng.Transparency = 0 | |
2737 | rng.TopSurface = 0 | |
2738 | rng.BottomSurface = 0 | |
2739 | rng.CFrame = pos | |
2740 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2741 | local rngm = Instance.new("SpecialMesh", rng) | |
2742 | rngm.MeshType = "Brick" | |
2743 | rngm.Scale = vt(x1,y1,z1) | |
2744 | if rainbowmode == true then | |
2745 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2746 | end | |
2747 | local scaler2 = 1 | |
2748 | local speeder = FastSpeed/10 | |
2749 | if type == "Add" then | |
2750 | scaler2 = 1*value | |
2751 | elseif type == "Divide" then | |
2752 | scaler2 = 1/value | |
2753 | end | |
2754 | coroutine.resume(coroutine.create(function() | |
2755 | for i = 0,10/bonuspeed,0.1 do | |
2756 | swait() | |
2757 | if rainbowmode == true then | |
2758 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2759 | end | |
2760 | if type == "Add" then | |
2761 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2762 | elseif type == "Divide" then | |
2763 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2764 | end | |
2765 | if chaosmode == true then | |
2766 | rng.BrickColor = BrickColor.random() | |
2767 | end | |
2768 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
2769 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2770 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2771 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2772 | end | |
2773 | rng:Destroy() | |
2774 | end)) | |
2775 | end | |
2776 | ||
2777 | function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2778 | local type = type | |
2779 | local rng = Instance.new("Part", char) | |
2780 | rng.Anchored = true | |
2781 | rng.BrickColor = color | |
2782 | rng.CanCollide = false | |
2783 | rng.FormFactor = 3 | |
2784 | rng.Name = "Ring" | |
2785 | rng.Material = "Neon" | |
2786 | rng.Size = Vector3.new(1, 1, 1) | |
2787 | rng.Transparency = 0 | |
2788 | rng.TopSurface = 0 | |
2789 | rng.BottomSurface = 0 | |
2790 | rng.CFrame = pos | |
2791 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2792 | local rngm = Instance.new("SpecialMesh", rng) | |
2793 | rngm.MeshType = "Brick" | |
2794 | rngm.Scale = vt(x1,y1,z1) | |
2795 | if rainbowmode == true then | |
2796 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2797 | end | |
2798 | local scaler2 = 0 | |
2799 | local speeder = FastSpeed/10 | |
2800 | if type == "Add" then | |
2801 | scaler2 = 1*value | |
2802 | elseif type == "Divide" then | |
2803 | scaler2 = 1/value | |
2804 | end | |
2805 | coroutine.resume(coroutine.create(function() | |
2806 | for i = 0,10/bonuspeed,0.1 do | |
2807 | swait() | |
2808 | if rainbowmode == true then | |
2809 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2810 | end | |
2811 | if type == "Add" then | |
2812 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2813 | elseif type == "Divide" then | |
2814 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2815 | end | |
2816 | if chaosmode == true then | |
2817 | rng.BrickColor = BrickColor.random() | |
2818 | end | |
2819 | speeder = speeder + 0.01*FastSpeed*bonuspeed/10 | |
2820 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2821 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2822 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2823 | end | |
2824 | rng:Destroy() | |
2825 | end)) | |
2826 | end | |
2827 | ||
2828 | function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2829 | local type = type | |
2830 | local rng = Instance.new("Part", workspace) | |
2831 | rng.Anchored = true | |
2832 | rng.BrickColor = color | |
2833 | rng.CanCollide = false | |
2834 | rng.FormFactor = 3 | |
2835 | rng.Name = "Ring" | |
2836 | rng.Material = "Neon" | |
2837 | rng.Size = Vector3.new(1, 1, 1) | |
2838 | rng.Transparency = 0 | |
2839 | rng.TopSurface = 0 | |
2840 | rng.BottomSurface = 0 | |
2841 | rng.CFrame = pos | |
2842 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2843 | local rngm = Instance.new("SpecialMesh", rng) | |
2844 | rngm.MeshType = "Sphere" | |
2845 | rngm.Scale = vt(x1,y1,z1) | |
2846 | if rainbowmode == true then | |
2847 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2848 | end | |
2849 | local scaler2 = 1 | |
2850 | local speeder = FastSpeed | |
2851 | if type == "Add" then | |
2852 | scaler2 = 1*value | |
2853 | elseif type == "Divide" then | |
2854 | scaler2 = 1/value | |
2855 | end | |
2856 | coroutine.resume(coroutine.create(function() | |
2857 | for i = 0,10/bonuspeed,0.1 do | |
2858 | swait() | |
2859 | if rainbowmode == true then | |
2860 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2861 | end | |
2862 | if type == "Add" then | |
2863 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2864 | elseif type == "Divide" then | |
2865 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2866 | end | |
2867 | if chaosmode == true then | |
2868 | rng.BrickColor = BrickColor.random() | |
2869 | end | |
2870 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
2871 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2872 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2873 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
2874 | end | |
2875 | rng:Destroy() | |
2876 | end)) | |
2877 | end | |
2878 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2879 | local type = type | |
2880 | local rng = Instance.new("Part", char) | |
2881 | rng.Anchored = true | |
2882 | rng.BrickColor = color | |
2883 | rng.CanCollide = false | |
2884 | rng.FormFactor = 3 | |
2885 | rng.Name = "Ring" | |
2886 | rng.Material = "Neon" | |
2887 | rng.Size = Vector3.new(1, 1, 1) | |
2888 | rng.Transparency = 0 | |
2889 | rng.TopSurface = 0 | |
2890 | rng.BottomSurface = 0 | |
2891 | rng.CFrame = pos | |
2892 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2893 | local rngm = Instance.new("SpecialMesh", rng) | |
2894 | rngm.MeshType = "Sphere" | |
2895 | rngm.Scale = vt(x1,y1,z1) | |
2896 | if rainbowmode == true then | |
2897 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2898 | end | |
2899 | local scaler2 = 1 | |
2900 | local speeder = FastSpeed | |
2901 | if type == "Add" then | |
2902 | scaler2 = 1*value | |
2903 | elseif type == "Divide" then | |
2904 | scaler2 = 1/value | |
2905 | end | |
2906 | coroutine.resume(coroutine.create(function() | |
2907 | for i = 0,10/bonuspeed,0.1 do | |
2908 | swait() | |
2909 | if rainbowmode == true then | |
2910 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2911 | end | |
2912 | if type == "Add" then | |
2913 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2914 | elseif type == "Divide" then | |
2915 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2916 | end | |
2917 | if chaosmode == true then | |
2918 | rng.BrickColor = BrickColor.random() | |
2919 | end | |
2920 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
2921 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2922 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2923 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
2924 | end | |
2925 | rng:Destroy() | |
2926 | end)) | |
2927 | end | |
2928 | ||
2929 | ||
2930 | function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2931 | local type = type | |
2932 | local rng = Instance.new("Part", char) | |
2933 | rng.Anchored = true | |
2934 | rng.BrickColor = color | |
2935 | rng.CanCollide = false | |
2936 | rng.FormFactor = 3 | |
2937 | rng.Name = "Ring" | |
2938 | rng.Material = "Neon" | |
2939 | rng.Size = Vector3.new(1, 1, 1) | |
2940 | rng.Transparency = 1 | |
2941 | rng.TopSurface = 0 | |
2942 | rng.BottomSurface = 0 | |
2943 | rng.CFrame = pos | |
2944 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2945 | local rngm = Instance.new("SpecialMesh", rng) | |
2946 | rngm.MeshType = "Sphere" | |
2947 | rngm.Scale = vt(x1,y1,z1) | |
2948 | if rainbowmode == true then | |
2949 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2950 | end | |
2951 | local scaler2 = 1 | |
2952 | local speeder = FastSpeed | |
2953 | if type == "Add" then | |
2954 | scaler2 = 1*value | |
2955 | elseif type == "Divide" then | |
2956 | scaler2 = 1/value | |
2957 | end | |
2958 | coroutine.resume(coroutine.create(function() | |
2959 | for i = 0,10/bonuspeed,0.1 do | |
2960 | swait() | |
2961 | if rainbowmode == true then | |
2962 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2963 | end | |
2964 | if type == "Add" then | |
2965 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2966 | elseif type == "Divide" then | |
2967 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2968 | end | |
2969 | if chaosmode == true then | |
2970 | rng.BrickColor = BrickColor.random() | |
2971 | end | |
2972 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
2973 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2974 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
2975 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
2976 | end | |
2977 | rng:Destroy() | |
2978 | end)) | |
2979 | end | |
2980 | ||
2981 | function dmg(dude) | |
2982 | if dude.Name ~= Character then | |
2983 | local bgf = Instance.new("BodyGyro",dude.Head) | |
2984 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
2985 | local val = Instance.new("BoolValue",dude) | |
2986 | val.Name = "IsHit" | |
2987 | local ds = coroutine.wrap(function() | |
2988 | dude:WaitForChild("Head"):BreakJoints() | |
2989 | wait(0.5) | |
2990 | targetted = nil | |
2991 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3) | |
2992 | coroutine.resume(coroutine.create(function() | |
2993 | for i, v in pairs(dude:GetChildren()) do | |
2994 | if v:IsA("Accessory") then | |
2995 | v:Destroy() | |
2996 | end | |
2997 | if v:IsA("Humanoid") then | |
2998 | v:Destroy() | |
2999 | end | |
3000 | if v:IsA("CharacterMesh") then | |
3001 | v:Destroy() | |
3002 | end | |
3003 | if v:IsA("Model") then | |
3004 | v:Destroy() | |
3005 | end | |
3006 | if v:IsA("Part") or v:IsA("MeshPart") then | |
3007 | for x, o in pairs(v:GetChildren()) do | |
3008 | if o:IsA("Decal") then | |
3009 | o:Destroy() | |
3010 | end | |
3011 | end | |
3012 | coroutine.resume(coroutine.create(function() | |
3013 | v.Material = "Neon" | |
3014 | v.CanCollide = false | |
3015 | local bld = Instance.new("ParticleEmitter",v) | |
3016 | bld.LightEmission = 1 | |
3017 | bld.Texture = "rbxassetid://284205403" | |
3018 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
3019 | bld.Rate = 50 | |
3020 | bld.Lifetime = NumberRange.new(1) | |
3021 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3022 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3023 | bld.Speed = NumberRange.new(0,0) | |
3024 | bld.VelocitySpread = 50000 | |
3025 | bld.Rotation = NumberRange.new(-500,500) | |
3026 | bld.RotSpeed = NumberRange.new(-500,500) | |
3027 | local sbs = Instance.new("BodyPosition", v) | |
3028 | sbs.P = 3000 | |
3029 | sbs.D = 1000 | |
3030 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
3031 | sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
3032 | v.Color = Color3.new(1,1,1) | |
3033 | coroutine.resume(coroutine.create(function() | |
3034 | for i = 0, 49 do | |
3035 | swait(1) | |
3036 | v.Transparency = v.Transparency + 0.02 | |
3037 | end | |
3038 | CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1) | |
3039 | bld.Speed = NumberRange.new(1,5) | |
3040 | bld.Acceleration = vt(0,10,0) | |
3041 | wait(0.5) | |
3042 | bld.Enabled = false | |
3043 | wait(3) | |
3044 | v:Destroy() | |
3045 | dude:Destroy() | |
3046 | end)) | |
3047 | end)) | |
3048 | end | |
3049 | end | |
3050 | end)) | |
3051 | end) | |
3052 | ds() | |
3053 | end | |
3054 | end | |
3055 | ||
3056 | ||
3057 | function FindNearestHead(Position, Distance, SinglePlayer) | |
3058 | if SinglePlayer then | |
3059 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
3060 | end | |
3061 | local List = {} | |
3062 | for i, v in pairs(workspace:GetChildren()) do | |
3063 | if v:IsA("Model") then | |
3064 | if v:findFirstChild("Head") then | |
3065 | if v ~= Character then | |
3066 | if (v.Head.Position - Position).magnitude <= Distance then | |
3067 | table.insert(List, v) | |
3068 | end | |
3069 | end | |
3070 | end | |
3071 | end | |
3072 | end | |
3073 | return List | |
3074 | end | |
3075 | ||
3076 | function FaceMouse() | |
3077 | Cam = workspace.CurrentCamera | |
3078 | return { | |
3079 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
3080 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
3081 | } | |
3082 | end | |
3083 | ||
3084 | function FaceMouse2() | |
3085 | Cam = workspace.CurrentCamera | |
3086 | return { | |
3087 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
3088 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
3089 | } | |
3090 | end | |
3091 | ||
3092 | local ModeOfGlitch = 1 | |
3093 | -- Functions are ready. | |
3094 | local storehumanoidWS = 16 | |
3095 | ||
3096 | function Blink() | |
3097 | for i = 0, 14 do | |
3098 | 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) | |
3099 | end | |
3100 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3101 | RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0) | |
3102 | CameraEnshaking(2,10) | |
3103 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do | |
3104 | if v:FindFirstChild('Head') then | |
3105 | end | |
3106 | end | |
3107 | for i = 0, 14 do | |
3108 | 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) | |
3109 | end | |
3110 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3111 | end | |
3112 | ||
3113 | function ExtinctiveHeartbreak() | |
3114 | local targetted = nil | |
3115 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
3116 | targetted = mouse.Target.Parent | |
3117 | end | |
3118 | if targetted ~= nil then | |
3119 | attack = true | |
3120 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3121 | for i = 0, 9 do | |
3122 | 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) | |
3123 | end | |
3124 | for i = 0, 24 do | |
3125 | 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) | |
3126 | end | |
3127 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red")) | |
3128 | local originalpos = root.CFrame | |
3129 | RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2) | |
3130 | for i = 0, 9 do | |
3131 | 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) | |
3132 | end | |
3133 | for i = 0, 24 do | |
3134 | 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) | |
3135 | end | |
3136 | hum.WalkSpeed = 0 | |
3137 | targetted.Head.Anchored = true | |
3138 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red")) | |
3139 | for i = 0,2,0.1 do | |
3140 | swait() | |
3141 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
3142 | 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) | |
3143 | 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) | |
3144 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
3145 | 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) | |
3146 | 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) | |
3147 | end | |
3148 | coroutine.resume(coroutine.create(function() | |
3149 | bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso")) | |
3150 | bld.LightEmission = 0.1 | |
3151 | bld.Texture = "rbxassetid://284205403" | |
3152 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
3153 | bld.Rate = 500 | |
3154 | bld.Lifetime = NumberRange.new(1) | |
3155 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3156 | bld.Acceleration = vt(0,-25,0) | |
3157 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3158 | bld.Speed = NumberRange.new(10,50) | |
3159 | bld.EmissionDirection = "Front" | |
3160 | bld.VelocitySpread = 25 | |
3161 | bld.Rotation = NumberRange.new(-500,500) | |
3162 | bld.RotSpeed = NumberRange.new(-500,500) | |
3163 | end)) | |
3164 | coroutine.resume(coroutine.create(function() | |
3165 | bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso")) | |
3166 | bld.LightEmission = 0.1 | |
3167 | bld.Texture = "rbxassetid://284205403" | |
3168 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
3169 | bld.Rate = 500 | |
3170 | bld.Lifetime = NumberRange.new(1) | |
3171 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3172 | bld.Acceleration = vt(0,-25,0) | |
3173 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3174 | bld.Speed = NumberRange.new(10,50) | |
3175 | bld.EmissionDirection = "Front" | |
3176 | bld.VelocitySpread = 25 | |
3177 | bld.Rotation = NumberRange.new(-500,500) | |
3178 | bld.RotSpeed = NumberRange.new(-500,500) | |
3179 | end)) | |
3180 | CameraEnshaking(5,5) | |
3181 | game:GetService("Debris"):AddItem(bld,3) | |
3182 | dmg(targetted) | |
3183 | CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1) | |
3184 | for i = 0,1,0.1 do | |
3185 | swait() | |
3186 | 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) | |
3187 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
3188 | 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) | |
3189 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8) | |
3190 | 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) | |
3191 | 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) | |
3192 | end | |
3193 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3194 | for i = 0, 9 do | |
3195 | 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) | |
3196 | end | |
3197 | for i = 0, 24 do | |
3198 | 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) | |
3199 | end | |
3200 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red")) | |
3201 | root.CFrame = originalpos | |
3202 | for i = 0, 9 do | |
3203 | 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) | |
3204 | end | |
3205 | for i = 0, 24 do | |
3206 | 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) | |
3207 | end | |
3208 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red")) | |
3209 | bld.Enabled = false | |
3210 | attack = false | |
3211 | hum.WalkSpeed = storehumanoidWS | |
3212 | end | |
3213 | end | |
3214 | function HalfGodShow() | |
3215 | attack = true | |
3216 | for i = 0, 2, 0.1 do | |
3217 | swait() | |
3218 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
3219 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
3220 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4) | |
3221 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4) | |
3222 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1) | |
3223 | 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) | |
3224 | end | |
3225 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2) | |
3226 | for i=1,20 do | |
3227 | sphereMKCharge(5,-0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10) | |
3228 | swait() | |
3229 | end | |
3230 | swait(30) | |
3231 | CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1) | |
3232 | for i =1,20 do | |
3233 | sphereMKw(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0) | |
3234 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0) | |
3235 | end | |
3236 | for i = 0,2,0.1 do | |
3237 | swait() | |
3238 | 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) | |
3239 | 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) | |
3240 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,30 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
3241 | 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) | |
3242 | 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) | |
3243 | 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) | |
3244 | end | |
3245 | for i =1,20 do | |
3246 | sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0) | |
3247 | end | |
3248 | text.TextTransparency = 1 | |
3249 | text.TextStrokeTransparency = 1 | |
3250 | tr2.Enabled = false | |
3251 | tr1.Enabled = false | |
3252 | tr3.Enabled = false | |
3253 | tl1.Enabled = false | |
3254 | tl2.Enabled = false | |
3255 | tl3.Enabled = false | |
3256 | spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR) | |
3257 | eff = false | |
3258 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3259 | local invtab = {} | |
3260 | local function search(targ) | |
3261 | if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then | |
3262 | table.insert(invtab,targ) | |
3263 | end | |
3264 | for i,v in pairs(targ:GetChildren()) do | |
3265 | search(v) | |
3266 | end | |
3267 | end | |
3268 | search(plr.Character) | |
3269 | local frm = 0 | |
3270 | local frmcon | |
3271 | frmcon = game:GetService("RunService").Heartbeat:connect(function() | |
3272 | if frm < 10 then | |
3273 | for i,v in pairs(invtab) do | |
3274 | if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then | |
3275 | v.Transparency = v.Transparency + 0.1 | |
3276 | end | |
3277 | end | |
3278 | frm = frm + 1 | |
3279 | else | |
3280 | frmcon:disconnect() | |
3281 | end | |
3282 | end) | |
3283 | swait(200) | |
3284 | text.TextTransparency = 0 | |
3285 | text.TextStrokeTransparency = 0 | |
3286 | tr2.Enabled = false | |
3287 | tr1.Enabled = false | |
3288 | tr3.Enabled = false | |
3289 | tl1.Enabled = false | |
3290 | tl2.Enabled = false | |
3291 | tl3.Enabled = false | |
3292 | eff = true | |
3293 | for i =1,20 do | |
3294 | sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0) | |
3295 | end | |
3296 | spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR) | |
3297 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3298 | local invtab = {} | |
3299 | local function search(targ) | |
3300 | if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then | |
3301 | table.insert(invtab,targ) | |
3302 | end | |
3303 | for i,v in pairs(targ:GetChildren()) do | |
3304 | search(v) | |
3305 | end | |
3306 | end | |
3307 | search(plr.Character) | |
3308 | local frm = 0 | |
3309 | local frmcon | |
3310 | frmcon = game:GetService("RunService").Heartbeat:connect(function() | |
3311 | if frm < 10 then | |
3312 | for i,v in pairs(invtab) do | |
3313 | if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then | |
3314 | v.Transparency = v.Transparency - 0.1 | |
3315 | end | |
3316 | end | |
3317 | frm = frm + 1 | |
3318 | else | |
3319 | frmcon:disconnect() | |
3320 | end | |
3321 | end) | |
3322 | swait(5) | |
3323 | for i = 0, 2, 0.1 do | |
3324 | swait() | |
3325 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
3326 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
3327 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4) | |
3328 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4) | |
3329 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1) | |
3330 | 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) | |
3331 | end | |
3332 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3333 | CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1) | |
3334 | MagniDamage(root, 30, 65,90, 0, "Normal") | |
3335 | for i =1,20 do | |
3336 | sphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0) | |
3337 | end | |
3338 | sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR) | |
3339 | for i =1,20 do | |
3340 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0) | |
3341 | end | |
3342 | swait(20) | |
3343 | attack = false | |
3344 | tr2.Enabled = true | |
3345 | tr1.Enabled = true | |
3346 | tr3.Enabled = true | |
3347 | tl1.Enabled = false | |
3348 | tl2.Enabled = false | |
3349 | tl3.Enabled = false | |
3350 | end | |
3351 | function MeteorStrike() | |
3352 | attack = true | |
3353 | for i = 0, 2, 0.1 do | |
3354 | swait() | |
3355 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
3356 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
3357 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4) | |
3358 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4) | |
3359 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1) | |
3360 | 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) | |
3361 | end | |
3362 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2) | |
3363 | for i=1,20 do | |
3364 | sphereMKCharge(5,-0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,10) | |
3365 | swait() | |
3366 | end | |
3367 | swait(30) | |
3368 | CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1) | |
3369 | for i =1,20 do | |
3370 | sphereMKw(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,MAINRUINCOLOR,0) | |
3371 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0) | |
3372 | end | |
3373 | for i = 0,2,0.1 do | |
3374 | swait() | |
3375 | 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) | |
3376 | 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) | |
3377 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,30 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
3378 | 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) | |
3379 | 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) | |
3380 | 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) | |
3381 | end | |
3382 | for i =1,20 do | |
3383 | sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0) | |
3384 | end | |
3385 | text.TextTransparency = 1 | |
3386 | text.TextStrokeTransparency = 1 | |
3387 | tr2.Enabled = false | |
3388 | tr1.Enabled = false | |
3389 | tr3.Enabled = false | |
3390 | tl1.Enabled = false | |
3391 | tl2.Enabled = false | |
3392 | tl3.Enabled = false | |
3393 | spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR) | |
3394 | eff = false | |
3395 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3396 | local invtab = {} | |
3397 | local function search(targ) | |
3398 | if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then | |
3399 | table.insert(invtab,targ) | |
3400 | end | |
3401 | for i,v in pairs(targ:GetChildren()) do | |
3402 | search(v) | |
3403 | end | |
3404 | end | |
3405 | search(plr.Character) | |
3406 | local frm = 0 | |
3407 | local frmcon | |
3408 | frmcon = game:GetService("RunService").Heartbeat:connect(function() | |
3409 | if frm < 10 then | |
3410 | for i,v in pairs(invtab) do | |
3411 | if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then | |
3412 | v.Transparency = v.Transparency + 0.1 | |
3413 | end | |
3414 | end | |
3415 | frm = frm + 1 | |
3416 | else | |
3417 | frmcon:disconnect() | |
3418 | end | |
3419 | end) | |
3420 | swait(200) | |
3421 | text.TextTransparency = 0 | |
3422 | text.TextStrokeTransparency = 0 | |
3423 | tr2.Enabled = false | |
3424 | tr1.Enabled = false | |
3425 | tr3.Enabled = false | |
3426 | tl1.Enabled = false | |
3427 | tl2.Enabled = false | |
3428 | tl3.Enabled = false | |
3429 | eff = true | |
3430 | for i =1,20 do | |
3431 | sphereMKw(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0) | |
3432 | end | |
3433 | spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR) | |
3434 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3435 | local invtab = {} | |
3436 | local function search(targ) | |
3437 | if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then | |
3438 | table.insert(invtab,targ) | |
3439 | end | |
3440 | for i,v in pairs(targ:GetChildren()) do | |
3441 | search(v) | |
3442 | end | |
3443 | end | |
3444 | search(plr.Character) | |
3445 | local frm = 0 | |
3446 | local frmcon | |
3447 | frmcon = game:GetService("RunService").Heartbeat:connect(function() | |
3448 | if frm < 10 then | |
3449 | for i,v in pairs(invtab) do | |
3450 | if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then | |
3451 | v.Transparency = v.Transparency - 0.1 | |
3452 | end | |
3453 | end | |
3454 | frm = frm + 1 | |
3455 | else | |
3456 | frmcon:disconnect() | |
3457 | end | |
3458 | end) | |
3459 | swait(5) | |
3460 | for i = 0, 2, 0.1 do | |
3461 | swait() | |
3462 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
3463 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
3464 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(65),math.rad(0),math.rad(0)),.4) | |
3465 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4) | |
3466 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1) | |
3467 | 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) | |
3468 | end | |
3469 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3470 | CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1) | |
3471 | MagniDamage(root, 30, 65,90, 0, "Normal") | |
3472 | for i =1,20 do | |
3473 | sphereMK(1,1,"Add",Torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,0.05,MAINRUINCOLOR,0) | |
3474 | end | |
3475 | sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR) | |
3476 | for i =1,20 do | |
3477 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,MAINRUINCOLOR,0) | |
3478 | end | |
3479 | swait(20) | |
3480 | attack = false | |
3481 | tr2.Enabled = true | |
3482 | tr1.Enabled = true | |
3483 | tr3.Enabled = true | |
3484 | tl1.Enabled = true | |
3485 | tl2.Enabled = true | |
3486 | tl3.Enabled = true | |
3487 | end | |
3488 | function FinalCalam() | |
3489 | attack = true | |
3490 | ||
3491 | local orb = Instance.new("Part", char) | |
3492 | orb.Anchored = true | |
3493 | orb.BrickColor = MAINRUINCOLOR | |
3494 | orb.CanCollide = false | |
3495 | orb.FormFactor = 3 | |
3496 | orb.Name = "Ring" | |
3497 | orb.Material = "Neon" | |
3498 | orb.Size = Vector3.new(1, 1, 1) | |
3499 | orb.Transparency = 0 | |
3500 | orb.TopSurface = 0 | |
3501 | orb.BottomSurface = 0 | |
3502 | local orbm = Instance.new("SpecialMesh", orb) | |
3503 | orbm.MeshType = "Sphere" | |
3504 | orbm.Name = "SizeMesh" | |
3505 | orbm.Scale = vt(0,0,0) | |
3506 | local scaled = 0.1 | |
3507 | local posid = 0 | |
3508 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1) | |
3509 | for i = 0, 5, 0.1 do | |
3510 | swait() | |
3511 | scaled = scaled - 0.001 | |
3512 | posid = posid - scaled | |
3513 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
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,MAINRUINCOLOR,10) | |
3516 | PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0) | |
3517 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 10))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3518 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3519 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
3520 | 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) | |
3521 | end | |
3522 | swait(60) | |
3523 | for i =1,3 do | |
3524 | swait(30) | |
3525 | CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9) | |
3526 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR) | |
3527 | end | |
3528 | swait(30) | |
3529 | for i = 0, 2, 0.1 do | |
3530 | swait() | |
3531 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3532 | 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) | |
3533 | 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) | |
3534 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,2 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4) | |
3535 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
3536 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
3537 | 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) | |
3538 | end | |
3539 | swait(60) | |
3540 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3541 | CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1) | |
3542 | sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR) | |
3543 | sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR) | |
3544 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
3545 | if v:FindFirstChild('Head') then | |
3546 | dmg(v) | |
3547 | end | |
3548 | end | |
3549 | for i = 1,20 do | |
3550 | sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,MAINRUINCOLOR,0) | |
3551 | for i = 0, 10 do | |
3552 | PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,MAINRUINCOLOR,0) | |
3553 | end | |
3554 | end | |
3555 | orb:Remove() | |
3556 | attack = false | |
3557 | end | |
3558 | function NatureBomb() | |
3559 | attack = true | |
3560 | ||
3561 | local orb = Instance.new("Part", char) | |
3562 | orb.Anchored = true | |
3563 | orb.BrickColor = BrickColor.new("Lime green") | |
3564 | orb.CanCollide = false | |
3565 | orb.FormFactor = 3 | |
3566 | orb.Name = "Ring" | |
3567 | orb.Material = "Neon" | |
3568 | orb.Size = Vector3.new(1, 1, 1) | |
3569 | orb.Transparency = 0 | |
3570 | orb.TopSurface = 0 | |
3571 | orb.BottomSurface = 0 | |
3572 | local orbm = Instance.new("SpecialMesh", orb) | |
3573 | orbm.MeshType = "Sphere" | |
3574 | orbm.Name = "SizeMesh" | |
3575 | orbm.Scale = vt(0,0,0) | |
3576 | local scaled = 0.1 | |
3577 | local posid = 0 | |
3578 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1) | |
3579 | for i = 0, 5, 0.1 do | |
3580 | swait() | |
3581 | scaled = scaled - 0.001 | |
3582 | posid = posid - scaled | |
3583 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3584 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
3585 | 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("Lime green"),10) | |
3586 | 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("Lime green"),0) | |
3587 | 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) | |
3588 | 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) | |
3589 | 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) | |
3590 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3591 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
3592 | 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) | |
3593 | end | |
3594 | for i = 0, 2, 0.1 do | |
3595 | swait() | |
3596 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3597 | 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) | |
3598 | 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) | |
3599 | 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) | |
3600 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
3601 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
3602 | 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) | |
3603 | end | |
3604 | coroutine.resume(coroutine.create(function() | |
3605 | orb.Anchored = false | |
3606 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1) | |
3607 | local a = Instance.new("Part",workspace) | |
3608 | a.Name = "Direction" | |
3609 | a.Anchored = true | |
3610 | a.BrickColor = bc("Bright red") | |
3611 | a.Material = "Neon" | |
3612 | a.Transparency = 1 | |
3613 | a.CanCollide = false | |
3614 | local ray = Ray.new( | |
3615 | orb.CFrame.p, -- origin | |
3616 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
3617 | ) | |
3618 | local ignore = orb | |
3619 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3620 | a.BottomSurface = 10 | |
3621 | a.TopSurface = 10 | |
3622 | local distance = (orb.CFrame.p - position).magnitude | |
3623 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
3624 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3625 | orb.CFrame = a.CFrame | |
3626 | a:Destroy() | |
3627 | local bv = Instance.new("BodyVelocity") | |
3628 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3629 | bv.velocity = orb.CFrame.lookVector*125 | |
3630 | bv.Parent = orb | |
3631 | local hitted = false | |
3632 | game:GetService("Debris"):AddItem(orb, 15) | |
3633 | wait() | |
3634 | local hit =orb.Touched:connect(function(hit) | |
3635 | if hitted == false then | |
3636 | hitted = true | |
3637 | CameraEnshaking(10,2.5) | |
3638 | MagniDamage(orb, 65, 65,90, 0, "Normal") | |
3639 | sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Lime green")) | |
3640 | sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Lime green")) | |
3641 | for i = 0, 49 do | |
3642 | 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("Lime green"),0) | |
3643 | end | |
3644 | for i = 0, 9 do | |
3645 | 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("Lime green"),0) | |
3646 | 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("Lime green"),0) | |
3647 | end | |
3648 | orb.Anchored = true | |
3649 | orb.Transparency = 1 | |
3650 | wait(8) | |
3651 | orb:Destroy() | |
3652 | end | |
3653 | end) | |
3654 | end)) | |
3655 | for i = 0, 1, 0.1 do | |
3656 | swait() | |
3657 | 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) | |
3658 | 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) | |
3659 | 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) | |
3660 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
3661 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
3662 | 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) | |
3663 | end | |
3664 | attack = false | |
3665 | end | |
3666 | ||
3667 | function PureBomb() | |
3668 | attack = true | |
3669 | ||
3670 | local orb = Instance.new("Part", char) | |
3671 | orb.Anchored = true | |
3672 | orb.BrickColor = BrickColor.new("Toothpaste") | |
3673 | orb.CanCollide = false | |
3674 | orb.FormFactor = 3 | |
3675 | orb.Name = "Ring" | |
3676 | orb.Material = "Neon" | |
3677 | orb.Size = Vector3.new(1, 1, 1) | |
3678 | orb.Transparency = 0 | |
3679 | orb.TopSurface = 0 | |
3680 | orb.BottomSurface = 0 | |
3681 | local orbm = Instance.new("SpecialMesh", orb) | |
3682 | orbm.MeshType = "Sphere" | |
3683 | orbm.Name = "SizeMesh" | |
3684 | orbm.Scale = vt(0,0,0) | |
3685 | local scaled = 0.1 | |
3686 | local posid = 0 | |
3687 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1) | |
3688 | for i = 0, 5, 0.1 do | |
3689 | swait() | |
3690 | scaled = scaled - 0.001 | |
3691 | posid = posid - scaled | |
3692 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3693 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
3694 | 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) | |
3695 | 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) | |
3696 | 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) | |
3697 | 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) | |
3698 | 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) | |
3699 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3700 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
3701 | 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) | |
3702 | end | |
3703 | for i = 0, 2, 0.1 do | |
3704 | swait() | |
3705 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3706 | 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) | |
3707 | 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) | |
3708 | 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) | |
3709 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
3710 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
3711 | 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) | |
3712 | end | |
3713 | coroutine.resume(coroutine.create(function() | |
3714 | orb.Anchored = false | |
3715 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1) | |
3716 | local a = Instance.new("Part",workspace) | |
3717 | a.Name = "Direction" | |
3718 | a.Anchored = true | |
3719 | a.BrickColor = bc("Bright red") | |
3720 | a.Material = "Neon" | |
3721 | a.Transparency = 1 | |
3722 | a.CanCollide = false | |
3723 | local ray = Ray.new( | |
3724 | orb.CFrame.p, -- origin | |
3725 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
3726 | ) | |
3727 | local ignore = orb | |
3728 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3729 | a.BottomSurface = 10 | |
3730 | a.TopSurface = 10 | |
3731 | local distance = (orb.CFrame.p - position).magnitude | |
3732 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
3733 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3734 | orb.CFrame = a.CFrame | |
3735 | a:Destroy() | |
3736 | local bv = Instance.new("BodyVelocity") | |
3737 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3738 | bv.velocity = orb.CFrame.lookVector*125 | |
3739 | bv.Parent = orb | |
3740 | local hitted = false | |
3741 | game:GetService("Debris"):AddItem(orb, 15) | |
3742 | wait() | |
3743 | local hit =orb.Touched:connect(function(hit) | |
3744 | if hitted == false then | |
3745 | hitted = true | |
3746 | CameraEnshaking(10,2.5) | |
3747 | MagniDamage(orb, 65, 65,90, 0, "Normal") | |
3748 | sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste")) | |
3749 | sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste")) | |
3750 | for i = 0, 49 do | |
3751 | 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) | |
3752 | end | |
3753 | for i = 0, 9 do | |
3754 | 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) | |
3755 | 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) | |
3756 | end | |
3757 | orb.Anchored = true | |
3758 | orb.Transparency = 1 | |
3759 | wait(8) | |
3760 | orb:Destroy() | |
3761 | end | |
3762 | end) | |
3763 | end)) | |
3764 | for i = 0, 1, 0.1 do | |
3765 | swait() | |
3766 | 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) | |
3767 | 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) | |
3768 | 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) | |
3769 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
3770 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
3771 | 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) | |
3772 | end | |
3773 | attack = false | |
3774 | end | |
3775 | ||
3776 | function SandBomb() | |
3777 | attack = true | |
3778 | ||
3779 | local orb = Instance.new("Part", char) | |
3780 | orb.Anchored = true | |
3781 | orb.BrickColor = BrickColor.new("Daisy orange") | |
3782 | orb.CanCollide = false | |
3783 | orb.FormFactor = 3 | |
3784 | orb.Name = "Ring" | |
3785 | orb.Material = "Sand" | |
3786 | orb.Size = Vector3.new(1, 1, 1) | |
3787 | orb.Transparency = 0 | |
3788 | orb.TopSurface = 0 | |
3789 | orb.BottomSurface = 0 | |
3790 | local orbm = Instance.new("SpecialMesh", orb) | |
3791 | orbm.MeshType = "Sphere" | |
3792 | orbm.Name = "SizeMesh" | |
3793 | orbm.Scale = vt(0,0,0) | |
3794 | local scaled = 0.1 | |
3795 | local posid = 0 | |
3796 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1) | |
3797 | for i = 0, 5, 0.1 do | |
3798 | swait() | |
3799 | scaled = scaled - 0.001 | |
3800 | posid = posid - scaled | |
3801 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3802 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
3803 | 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("Daisy orange"),10) | |
3804 | 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("Daisy orange"),0) | |
3805 | 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) | |
3806 | 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) | |
3807 | 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) | |
3808 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3809 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
3810 | 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) | |
3811 | end | |
3812 | for i = 0, 2, 0.1 do | |
3813 | swait() | |
3814 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3815 | 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) | |
3816 | 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) | |
3817 | 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) | |
3818 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
3819 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
3820 | 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) | |
3821 | end | |
3822 | coroutine.resume(coroutine.create(function() | |
3823 | orb.Anchored = false | |
3824 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1) | |
3825 | local a = Instance.new("Part",workspace) | |
3826 | a.Name = "Direction" | |
3827 | a.Anchored = true | |
3828 | a.BrickColor = bc("Bright red") | |
3829 | a.Material = "Sand" | |
3830 | a.Transparency = 1 | |
3831 | a.CanCollide = false | |
3832 | local ray = Ray.new( | |
3833 | orb.CFrame.p, -- origin | |
3834 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
3835 | ) | |
3836 | local ignore = orb | |
3837 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3838 | a.BottomSurface = 10 | |
3839 | a.TopSurface = 10 | |
3840 | local distance = (orb.CFrame.p - position).magnitude | |
3841 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
3842 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3843 | orb.CFrame = a.CFrame | |
3844 | a:Destroy() | |
3845 | local bv = Instance.new("BodyVelocity") | |
3846 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3847 | bv.velocity = orb.CFrame.lookVector*125 | |
3848 | bv.Parent = orb | |
3849 | local hitted = false | |
3850 | game:GetService("Debris"):AddItem(orb, 15) | |
3851 | wait() | |
3852 | local hit =orb.Touched:connect(function(hit) | |
3853 | if hitted == false then | |
3854 | hitted = true | |
3855 | CameraEnshaking(10,2.5) | |
3856 | MagniDamage(orb, 65, 65,90, 0, "Normal") | |
3857 | sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Daisy orange")) | |
3858 | sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Daisy orange")) | |
3859 | for i = 0, 49 do | |
3860 | 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("Daisy orange"),0) | |
3861 | end | |
3862 | for i = 0, 9 do | |
3863 | 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("Daisy orange"),0) | |
3864 | 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("Daisy orange"),0) | |
3865 | end | |
3866 | orb.Anchored = true | |
3867 | orb.Transparency = 1 | |
3868 | wait(8) | |
3869 | orb:Destroy() | |
3870 | end | |
3871 | end) | |
3872 | end)) | |
3873 | for i = 0, 1, 0.1 do | |
3874 | swait() | |
3875 | 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) | |
3876 | 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) | |
3877 | 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) | |
3878 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
3879 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
3880 | 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) | |
3881 | end | |
3882 | attack = false | |
3883 | end | |
3884 | ||
3885 | function GlitchedStike() | |
3886 | attack = true | |
3887 | for i = 0, 2, 0.1 do | |
3888 | swait() | |
3889 | 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) | |
3890 | 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) | |
3891 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3892 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3893 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
3894 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
3895 | end | |
3896 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1) | |
3897 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3898 | CameraEnshaking(4,12) | |
3899 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
3900 | if v:FindFirstChild('Head') then | |
3901 | dmg(v) | |
3902 | end | |
3903 | end | |
3904 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.Black()) | |
3905 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.White()) | |
3906 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.Black()) | |
3907 | for i = 0, 2, 0.1 do | |
3908 | swait() | |
3909 | 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.Black(),0) | |
3910 | 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.White(),0) | |
3911 | 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) | |
3912 | 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) | |
3913 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3914 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3915 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
3916 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
3917 | end | |
3918 | attack = false | |
3919 | end | |
3920 | ||
3921 | function RobotGroundStrike() | |
3922 | attack = true | |
3923 | for i = 0, 2, 0.1 do | |
3924 | swait() | |
3925 | 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) | |
3926 | 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) | |
3927 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3928 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3929 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
3930 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
3931 | end | |
3932 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1) | |
3933 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3934 | CameraEnshaking(4,12) | |
3935 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
3936 | if v:FindFirstChild('Head') then | |
3937 | dmg(v) | |
3938 | end | |
3939 | end | |
3940 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.Red()) | |
3941 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.Red()) | |
3942 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.Red()) | |
3943 | for i = 0, 2, 0.1 do | |
3944 | swait() | |
3945 | 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.Red(),0) | |
3946 | 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.Red(),0) | |
3947 | 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) | |
3948 | 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) | |
3949 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3950 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3951 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
3952 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
3953 | end | |
3954 | attack = false | |
3955 | end | |
3956 | ||
3957 | function ChaosGroundStrike() | |
3958 | attack = true | |
3959 | for i = 0, 2, 0.1 do | |
3960 | swait() | |
3961 | 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) | |
3962 | 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) | |
3963 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3964 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3965 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
3966 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
3967 | end | |
3968 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1) | |
3969 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3970 | CameraEnshaking(4,12) | |
3971 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
3972 | if v:FindFirstChild('Head') then | |
3973 | dmg(v) | |
3974 | end | |
3975 | end | |
3976 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random()) | |
3977 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random()) | |
3978 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random()) | |
3979 | for i = 0, 2, 0.1 do | |
3980 | swait() | |
3981 | 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) | |
3982 | 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) | |
3983 | 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) | |
3984 | 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) | |
3985 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3986 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3987 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
3988 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
3989 | end | |
3990 | attack = false | |
3991 | end | |
3992 | ||
3993 | function RobotGroundStrike() | |
3994 | attack = true | |
3995 | for i = 0, 2, 0.1 do | |
3996 | swait() | |
3997 | 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) | |
3998 | 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) | |
3999 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4000 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4001 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
4002 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
4003 | end | |
4004 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1) | |
4005 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
4006 | CameraEnshaking(4,12) | |
4007 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
4008 | if v:FindFirstChild('Head') then | |
4009 | dmg(v) | |
4010 | end | |
4011 | end | |
4012 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.Red()) | |
4013 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.Red()) | |
4014 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.Red()) | |
4015 | for i = 0, 2, 0.1 do | |
4016 | swait() | |
4017 | 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.Red(),0) | |
4018 | 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.Red(),0) | |
4019 | 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) | |
4020 | 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) | |
4021 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
4022 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
4023 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
4024 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
4025 | end | |
4026 | attack = false | |
4027 | end | |
4028 | ||
4029 | function Starfall() | |
4030 | attack = true | |
4031 | hum.WalkSpeed = 0 | |
4032 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1) | |
4033 | for i = 0, 5, 0.1 do | |
4034 | swait() | |
4035 | 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) | |
4036 | 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) | |
4037 | 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) | |
4038 | 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) | |
4039 | 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) | |
4040 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
4041 | 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) | |
4042 | 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) | |
4043 | end | |
4044 | local Overed = false | |
4045 | CameraEnshaking(2,20) | |
4046 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
4047 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
4048 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
4049 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1) | |
4050 | local orb = Instance.new("Part", char) | |
4051 | orb.Anchored = true | |
4052 | orb.BrickColor = BrickColor.new("Toothpaste") | |
4053 | orb.CanCollide = false | |
4054 | orb.FormFactor = 3 | |
4055 | orb.Name = "Remenant" | |
4056 | orb.Material = "Neon" | |
4057 | orb.CFrame = root.CFrame*CFrame.new(0,150,0) | |
4058 | orb.Size = Vector3.new(1, 1, 1) | |
4059 | orb.Transparency = 1 | |
4060 | orb.TopSurface = 0 | |
4061 | orb.BottomSurface = 0 | |
4062 | hum.WalkSpeed = storehumanoidWS | |
4063 | coroutine.resume(coroutine.create(function() | |
4064 | for i = 0, 9 do | |
4065 | swait(10) | |
4066 | local lb = Instance.new("Part") | |
4067 | lb.Color = MAINRUINCOLOR.Color | |
4068 | lb.CanCollide = false | |
4069 | lb.Material = "Neon" | |
4070 | lb.Anchored = true | |
4071 | lb.TopSurface = 0 | |
4072 | lb.BottomSurface = 0 | |
4073 | lb.Transparency = 0 | |
4074 | lb.Size = vt(1,1,1) | |
4075 | 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))) | |
4076 | lb.Anchored = false | |
4077 | lb.Parent = char | |
4078 | local thingery = Instance.new("SpecialMesh",lb) | |
4079 | thingery.MeshType = "Sphere" | |
4080 | thingery.Scale = vt(20,20,20) | |
4081 | game:GetService("Debris"):AddItem(lb, 10) | |
4082 | local bv = Instance.new("BodyVelocity") | |
4083 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4084 | bv.velocity = lb.CFrame.lookVector*math.random(75,250) | |
4085 | bv.Parent = lb | |
4086 | sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR) | |
4087 | sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR) | |
4088 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1) | |
4089 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1) | |
4090 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1) | |
4091 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1) | |
4092 | local hitted = false | |
4093 | coroutine.resume(coroutine.create(function() | |
4094 | while true do | |
4095 | swait(1) | |
4096 | if lb.Parent ~= nil and hitted == false then | |
4097 | 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) | |
4098 | elseif lb.Parent == nil then | |
4099 | break | |
4100 | end | |
4101 | end | |
4102 | end)) | |
4103 | ||
4104 | game:GetService("Debris"):AddItem(a, 0.1) | |
4105 | ||
4106 | coroutine.resume(coroutine.create(function() | |
4107 | swait(1) | |
4108 | lb.Touched:connect(function(hit) | |
4109 | if hitted == false then | |
4110 | hitted = true | |
4111 | lb.Transparency = 1 | |
4112 | lb.Anchored = true | |
4113 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1) | |
4114 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7) | |
4115 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75) | |
4116 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75) | |
4117 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1) | |
4118 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85) | |
4119 | MagniDamage(lb, 45, 45,85, 0, "Normal") | |
4120 | CameraEnshaking(1,5) | |
4121 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
4122 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
4123 | for i = 0, 9 do | |
4124 | 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) | |
4125 | end | |
4126 | for i = 0, 49 do | |
4127 | swait() | |
4128 | MagniDamage(lb, 30, 2,4, 0, "Normal") | |
4129 | 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) | |
4130 | end | |
4131 | end | |
4132 | end) | |
4133 | end)) | |
4134 | end | |
4135 | Overed = true | |
4136 | orb:Destroy() | |
4137 | end)) | |
4138 | ||
4139 | attack = false | |
4140 | end | |
4141 | ||
4142 | function StarfallEX() | |
4143 | attack = true | |
4144 | hum.WalkSpeed = 0 | |
4145 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1) | |
4146 | for i = 0, 5, 0.1 do | |
4147 | swait() | |
4148 | 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) | |
4149 | 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) | |
4150 | 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) | |
4151 | 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) | |
4152 | 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) | |
4153 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
4154 | 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) | |
4155 | 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) | |
4156 | end | |
4157 | local Overed = false | |
4158 | CameraEnshaking(2,20) | |
4159 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
4160 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
4161 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
4162 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
4163 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
4164 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
4165 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1) | |
4166 | local orb = Instance.new("Part", char) | |
4167 | orb.Anchored = true | |
4168 | orb.BrickColor = BrickColor.new("Toothpaste") | |
4169 | orb.CanCollide = false | |
4170 | orb.FormFactor = 3 | |
4171 | orb.Name = "Remenant" | |
4172 | orb.Material = "Neon" | |
4173 | orb.CFrame = root.CFrame*CFrame.new(0,150,0) | |
4174 | orb.Size = Vector3.new(1, 1, 1) | |
4175 | orb.Transparency = 1 | |
4176 | orb.TopSurface = 0 | |
4177 | orb.BottomSurface = 0 | |
4178 | hum.WalkSpeed = storehumanoidWS | |
4179 | coroutine.resume(coroutine.create(function() | |
4180 | for i = 0, 9 do | |
4181 | swait(10) | |
4182 | local lb = Instance.new("Part") | |
4183 | lb.Color = MAINRUINCOLOR.Color | |
4184 | lb.CanCollide = false | |
4185 | lb.Material = "Neon" | |
4186 | lb.Anchored = true | |
4187 | lb.TopSurface = 0 | |
4188 | lb.BottomSurface = 0 | |
4189 | lb.Transparency = 0 | |
4190 | lb.Size = vt(1,1,1) | |
4191 | 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))) | |
4192 | lb.Anchored = false | |
4193 | lb.Parent = char | |
4194 | local thingery = Instance.new("SpecialMesh",lb) | |
4195 | thingery.MeshType = "Sphere" | |
4196 | thingery.Scale = vt(20,20,20) | |
4197 | game:GetService("Debris"):AddItem(lb, 10) | |
4198 | local bv = Instance.new("BodyVelocity") | |
4199 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4200 | bv.velocity = lb.CFrame.lookVector*math.random(75,250) | |
4201 | bv.Parent = lb | |
4202 | sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR) | |
4203 | sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR) | |
4204 | sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR) | |
4205 | sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR) | |
4206 | sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR) | |
4207 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1) | |
4208 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1) | |
4209 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1) | |
4210 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1) | |
4211 | local hitted = false | |
4212 | coroutine.resume(coroutine.create(function() | |
4213 | while true do | |
4214 | swait(1) | |
4215 | if lb.Parent ~= nil and hitted == false then | |
4216 | 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) | |
4217 | 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) | |
4218 | elseif lb.Parent == nil then | |
4219 | break | |
4220 | end | |
4221 | end | |
4222 | end)) | |
4223 | ||
4224 | game:GetService("Debris"):AddItem(a, 0.1) | |
4225 | ||
4226 | coroutine.resume(coroutine.create(function() | |
4227 | swait(1) | |
4228 | lb.Touched:connect(function(hit) | |
4229 | if hitted == false then | |
4230 | hitted = true | |
4231 | lb.Transparency = 1 | |
4232 | lb.Anchored = true | |
4233 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1) | |
4234 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7) | |
4235 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75) | |
4236 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75) | |
4237 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1) | |
4238 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85) | |
4239 | MagniDamage(lb, 45, 45,85, 0, "Normal") | |
4240 | CameraEnshaking(10,5) | |
4241 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
4242 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
4243 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
4244 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
4245 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
4246 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
4247 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
4248 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
4249 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
4250 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
4251 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
4252 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
4253 | for i = 0, 9 do | |
4254 | 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) | |
4255 | 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) | |
4256 | 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) | |
4257 | 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) | |
4258 | 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) | |
4259 | 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) | |
4260 | end | |
4261 | for i = 0, 49 do | |
4262 | swait() | |
4263 | MagniDamage(lb, 30, 30, 60, 0, "Normal") | |
4264 | 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) | |
4265 | 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) | |
4266 | 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) | |
4267 | end | |
4268 | end | |
4269 | end) | |
4270 | end)) | |
4271 | end | |
4272 | Overed = true | |
4273 | orb:Destroy() | |
4274 | end)) | |
4275 | ||
4276 | attack = false | |
4277 | end | |
4278 | ||
4279 | function StarDivision() | |
4280 | attack = true | |
4281 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5) | |
4282 | for i = 0, 2, 0.1 do | |
4283 | swait() | |
4284 | 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) | |
4285 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6) | |
4286 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6) | |
4287 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90)),.6) | |
4288 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6) | |
4289 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6) | |
4290 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6) | |
4291 | end | |
4292 | local orb = Instance.new("Part", char) | |
4293 | orb.BrickColor = MAINRUINCOLOR | |
4294 | orb.CanCollide = false | |
4295 | orb.FormFactor = 3 | |
4296 | orb.Name = "Ring" | |
4297 | orb.Material = "Neon" | |
4298 | orb.Size = Vector3.new(1, 1, 1) | |
4299 | orb.Transparency = 0 | |
4300 | orb.TopSurface = 0 | |
4301 | orb.BottomSurface = 0 | |
4302 | local orbm = Instance.new("SpecialMesh", orb) | |
4303 | orbm.MeshType = "Sphere" | |
4304 | orbm.Name = "SizeMesh" | |
4305 | orbm.Scale = vt(2,2,2) | |
4306 | local a = Instance.new("Part",workspace) | |
4307 | a.Name = "Direction" | |
4308 | a.Anchored = true | |
4309 | a.BrickColor = bc("Bright red") | |
4310 | a.Material = "Neon" | |
4311 | a.Transparency = 1 | |
4312 | a.CanCollide = false | |
4313 | local ray = Ray.new( | |
4314 | sorb.CFrame.p, -- origin | |
4315 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
4316 | ) | |
4317 | local ignore = sorb | |
4318 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4319 | a.BottomSurface = 10 | |
4320 | a.TopSurface = 10 | |
4321 | local distance = (sorb.CFrame.p - position).magnitude | |
4322 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
4323 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
4324 | orb.CFrame = a.CFrame | |
4325 | a:Destroy() | |
4326 | local bv = Instance.new("BodyVelocity") | |
4327 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4328 | bv.velocity = orb.CFrame.lookVector*100 | |
4329 | bv.Parent = orb | |
4330 | local hitted = false | |
4331 | game:GetService("Debris"):AddItem(orb, 10) | |
4332 | CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15) | |
4333 | CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15) | |
4334 | CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15) | |
4335 | CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15) | |
4336 | CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15) | |
4337 | coroutine.resume(coroutine.create(function() | |
4338 | while true do | |
4339 | swait(1) | |
4340 | if orb.Parent ~= nil and hitted == false then | |
4341 | 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) | |
4342 | elseif orb.Parent == nil then | |
4343 | break | |
4344 | end | |
4345 | end | |
4346 | end)) | |
4347 | coroutine.resume(coroutine.create(function() | |
4348 | swait(1) | |
4349 | orb.Touched:connect(function(hit) | |
4350 | if hitted == false then | |
4351 | hitted = true | |
4352 | game:GetService("Debris"):AddItem(orb, 5) | |
4353 | orb.Transparency = 1 | |
4354 | orb.Anchored = true | |
4355 | local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4356 | elocacenter.Anchored = true | |
4357 | elocacenter.CFrame = orb.CFrame | |
4358 | elocacenter.Orientation = vt(0,0,0) | |
4359 | local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4360 | eloca1.Anchored = true | |
4361 | eloca1.CFrame = elocacenter.CFrame | |
4362 | local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4363 | eloca2.Anchored = true | |
4364 | eloca2.CFrame = elocacenter.CFrame | |
4365 | local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4366 | eloca3.Anchored = true | |
4367 | eloca3.CFrame = elocacenter.CFrame | |
4368 | local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4369 | eloca4.Anchored = true | |
4370 | eloca4.CFrame = elocacenter.CFrame | |
4371 | local lookavec = 0 | |
4372 | local speeds = 0 | |
4373 | CameraEnshaking(1,1) | |
4374 | CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1) | |
4375 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4376 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4377 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4378 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4379 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4380 | for i = 0, 99 do | |
4381 | swait() | |
4382 | lookavec = lookavec + 1 | |
4383 | speeds = speeds + 0.1 | |
4384 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
4385 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
4386 | 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) | |
4387 | ||
4388 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
4389 | 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) | |
4390 | ||
4391 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
4392 | 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) | |
4393 | ||
4394 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
4395 | 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) | |
4396 | end | |
4397 | ||
4398 | for i = 0, 149 do | |
4399 | swait() | |
4400 | speeds = speeds + 0.1 | |
4401 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
4402 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
4403 | 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) | |
4404 | ||
4405 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
4406 | 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) | |
4407 | ||
4408 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
4409 | 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) | |
4410 | ||
4411 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
4412 | 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) | |
4413 | end | |
4414 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do | |
4415 | if v:FindFirstChild('Head') then | |
4416 | dmg(v) | |
4417 | end | |
4418 | end | |
4419 | CameraEnshaking(7,30) | |
4420 | MagniDamage(elocacenter, 225, 50,75, 0, "Normal") | |
4421 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1) | |
4422 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75) | |
4423 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1) | |
4424 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1) | |
4425 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR) | |
4426 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR) | |
4427 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4428 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4429 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4430 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4431 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4432 | for i = 0, 24 do | |
4433 | 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) | |
4434 | 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) | |
4435 | 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) | |
4436 | 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) | |
4437 | end | |
4438 | coroutine.resume(coroutine.create(function() | |
4439 | for i = 0, 499 do | |
4440 | swait(1) | |
4441 | MagniDamage(elocacenter, 90, 1,5, 0, "Normal") | |
4442 | 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) | |
4443 | end | |
4444 | elocacenter:Destroy() | |
4445 | eloca1:Destroy() | |
4446 | eloca2:Destroy() | |
4447 | eloca3:Destroy() | |
4448 | eloca4:Destroy() | |
4449 | end)) | |
4450 | end | |
4451 | end) | |
4452 | end)) | |
4453 | attack = false | |
4454 | end | |
4455 | ||
4456 | ||
4457 | function UniversalCollapse() | |
4458 | attack = true | |
4459 | local speedearn = 0 | |
4460 | hum.WalkSpeed = 0 | |
4461 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1) | |
4462 | for i = 0, 10, 0.1 do | |
4463 | swait() | |
4464 | speedearn = speedearn + 0.1 | |
4465 | 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) | |
4466 | 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) | |
4467 | 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) | |
4468 | 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) | |
4469 | 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) | |
4470 | 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) | |
4471 | 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) | |
4472 | 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) | |
4473 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
4474 | 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) | |
4475 | 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) | |
4476 | end | |
4477 | CameraEnshaking(5,45) | |
4478 | sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR) | |
4479 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1) | |
4480 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
4481 | if v:FindFirstChild('Head') then | |
4482 | dmg(v) | |
4483 | end | |
4484 | end | |
4485 | hum.WalkSpeed = storehumanoidWS | |
4486 | attack = false | |
4487 | end | |
4488 | function ChaosBegone() | |
4489 | attack = true | |
4490 | local speedearn = 0 | |
4491 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75) | |
4492 | for i = 0, 10, 0.1 do | |
4493 | swait() | |
4494 | speedearn = speedearn + 0.1 | |
4495 | 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) | |
4496 | 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) | |
4497 | 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) | |
4498 | 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) | |
4499 | 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) | |
4500 | 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) | |
4501 | 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) | |
4502 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4503 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4504 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
4505 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
4506 | end | |
4507 | CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1) | |
4508 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1) | |
4509 | CameraEnshaking(5,25) | |
4510 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
4511 | if v:FindFirstChild('Head') then | |
4512 | dmg(v) | |
4513 | end | |
4514 | end | |
4515 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random()) | |
4516 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random()) | |
4517 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random()) | |
4518 | for i = 0, 3, 0.1 do | |
4519 | swait() | |
4520 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
4521 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
4522 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
4523 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
4524 | 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) | |
4525 | 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) | |
4526 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
4527 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
4528 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
4529 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
4530 | end | |
4531 | attack = false | |
4532 | end | |
4533 | ||
4534 | function CyborgBegone() | |
4535 | attack = true | |
4536 | local speedearn = 0 | |
4537 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75) | |
4538 | for i = 0, 10, 0.1 do | |
4539 | swait() | |
4540 | speedearn = speedearn + 0.1 | |
4541 | 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) | |
4542 | 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) | |
4543 | 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) | |
4544 | 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) | |
4545 | 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) | |
4546 | 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) | |
4547 | 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) | |
4548 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4549 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4550 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
4551 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
4552 | end | |
4553 | CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1) | |
4554 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1) | |
4555 | CameraEnshaking(5,25) | |
4556 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
4557 | if v:FindFirstChild('Head') then | |
4558 | dmg(v) | |
4559 | end | |
4560 | end | |
4561 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.Red()) | |
4562 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.Red()) | |
4563 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.Red()) | |
4564 | for i = 0, 3, 0.1 do | |
4565 | swait() | |
4566 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.Red(),0) | |
4567 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.Red(),0) | |
4568 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.Red(),0) | |
4569 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.Red(),0) | |
4570 | 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) | |
4571 | 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) | |
4572 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
4573 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
4574 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
4575 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
4576 | end | |
4577 | attack = false | |
4578 | end | |
4579 | ||
4580 | function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon) | |
4581 | local orb = Instance.new("Part", char) | |
4582 | orb.Anchored = true | |
4583 | orb.BrickColor = color | |
4584 | orb.CanCollide = false | |
4585 | orb.FormFactor = 3 | |
4586 | orb.Name = "Ring" | |
4587 | orb.Material = "Neon" | |
4588 | orb.Size = Vector3.new(1, 1, 1) | |
4589 | orb.Transparency = 0 | |
4590 | orb.TopSurface = 0 | |
4591 | orb.BottomSurface = 0 | |
4592 | local orbm = Instance.new("SpecialMesh", orb) | |
4593 | orbm.MeshType = "Sphere" | |
4594 | orb.CFrame = positted | |
4595 | orbm.Name = "SizeMesh" | |
4596 | orbm.Scale = vt(1,1,1) | |
4597 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1) | |
4598 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor) | |
4599 | --[[for i = 0, 2 do | |
4600 | 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) | |
4601 | end]]-- | |
4602 | coroutine.resume(coroutine.create(function() | |
4603 | wait(timer) | |
4604 | CameraEnshaking(3,ShakePower) | |
4605 | orb.Transparency = 1 | |
4606 | MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal") | |
4607 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor) | |
4608 | --[[for i = 0, 4 do | |
4609 | 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) | |
4610 | end]]-- | |
4611 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7) | |
4612 | wait(3) | |
4613 | orb:Destroy() | |
4614 | end)) | |
4615 | end | |
4616 | ||
4617 | function orb_spawn(positted,timer) | |
4618 | local randomcol = math.random(1,2) | |
4619 | local orb = Instance.new("Part", char) | |
4620 | orb.Anchored = true | |
4621 | if randomcol == 1 then | |
4622 | orb.BrickColor = BrickColor.new("White") | |
4623 | elseif randomcol == 2 then | |
4624 | orb.BrickColor = BrickColor.new("Really black") | |
4625 | end | |
4626 | orb.CanCollide = false | |
4627 | orb.FormFactor = 3 | |
4628 | orb.Name = "Ring" | |
4629 | orb.Material = "Neon" | |
4630 | orb.Size = Vector3.new(1, 1, 1) | |
4631 | orb.Transparency = 0 | |
4632 | orb.TopSurface = 0 | |
4633 | orb.BottomSurface = 0 | |
4634 | local orbm = Instance.new("SpecialMesh", orb) | |
4635 | orbm.MeshType = "Sphere" | |
4636 | orb.CFrame = positted | |
4637 | orbm.Name = "SizeMesh" | |
4638 | orbm.Scale = vt(1,1,1) | |
4639 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1) | |
4640 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor) | |
4641 | for i = 0, 2 do | |
4642 | 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) | |
4643 | end | |
4644 | coroutine.resume(coroutine.create(function() | |
4645 | wait(timer) | |
4646 | CameraEnshaking(3,2) | |
4647 | orb.Transparency = 1 | |
4648 | MagniDamage(orb, 17.5, 10,50, 0, "Normal") | |
4649 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor) | |
4650 | for i = 0, 4 do | |
4651 | 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) | |
4652 | end | |
4653 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7) | |
4654 | wait(3) | |
4655 | orb:Destroy() | |
4656 | end)) | |
4657 | end | |
4658 | ||
4659 | function SandBombs() | |
4660 | attack = true | |
4661 | local rot = 0 | |
4662 | local randomrotations = math.random(1,2) | |
4663 | local lookv = 2.5 | |
4664 | local power = 5 | |
4665 | sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Daisy orange")) | |
4666 | sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Daisy orange")) | |
4667 | for i = 0, 9 do | |
4668 | 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("Daisy orange"),0) | |
4669 | end | |
4670 | CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6) | |
4671 | CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5) | |
4672 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1) | |
4673 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75) | |
4674 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5) | |
4675 | local hite = Instance.new("Part", char) | |
4676 | hite.Anchored = true | |
4677 | hite.CanCollide = false | |
4678 | hite.FormFactor = 3 | |
4679 | hite.Name = "Ring" | |
4680 | hite.Material = "Sand" | |
4681 | hite.Size = Vector3.new(1, 1, 1) | |
4682 | hite.Transparency = 1 | |
4683 | hite.TopSurface = 0 | |
4684 | hite.BottomSurface = 0 | |
4685 | hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0) | |
4686 | local rem = Instance.new("Part", char) | |
4687 | rem.Anchored = true | |
4688 | rem.CanCollide = false | |
4689 | rem.FormFactor = 3 | |
4690 | rem.Name = "Ring" | |
4691 | rem.Material = "Sand" | |
4692 | rem.Size = Vector3.new(1, 1, 1) | |
4693 | rem.Transparency = 1 | |
4694 | rem.TopSurface = 0 | |
4695 | rem.BottomSurface = 0 | |
4696 | rem.CFrame = hite.CFrame | |
4697 | local rem2 = rem:Clone() | |
4698 | rem2.Parent = char | |
4699 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4700 | local rem3 = rem:Clone() | |
4701 | rem3.Parent = char | |
4702 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
4703 | local rem4 = rem:Clone() | |
4704 | rem4.Parent = char | |
4705 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
4706 | hite:Destroy() | |
4707 | coroutine.resume(coroutine.create(function() | |
4708 | for i = 0, 24 do | |
4709 | swait(1) | |
4710 | if randomrotations == 1 then | |
4711 | rot = rot + 1 | |
4712 | elseif randomrotations == 2 then | |
4713 | rot = rot - 1 | |
4714 | end | |
4715 | power = power + 0.5 | |
4716 | lookv = lookv + 7.5 | |
4717 | rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
4718 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4719 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
4720 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
4721 | orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Daisy orange"),power,25,75,10,power/5,7.5) | |
4722 | orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Daisy orange"),power,25,75,10,power/5,7.5) | |
4723 | orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Daisy orange"),power,25,75,10,power/5,7.5) | |
4724 | orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Daisy orange"),power,25,75,10,power/5,7.5) | |
4725 | end | |
4726 | end)) | |
4727 | attack = false | |
4728 | end | |
4729 | ||
4730 | function scattercorrupt() | |
4731 | attack = true | |
4732 | local rot = 0 | |
4733 | local randomrotations = math.random(1,2) | |
4734 | local lookv = 2.5 | |
4735 | local power = 5 | |
4736 | sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple")) | |
4737 | sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple")) | |
4738 | for i = 0, 9 do | |
4739 | 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) | |
4740 | end | |
4741 | CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6) | |
4742 | CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5) | |
4743 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1) | |
4744 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75) | |
4745 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5) | |
4746 | local hite = Instance.new("Part", char) | |
4747 | hite.Anchored = true | |
4748 | hite.CanCollide = false | |
4749 | hite.FormFactor = 3 | |
4750 | hite.Name = "Ring" | |
4751 | hite.Material = "Neon" | |
4752 | hite.Size = Vector3.new(1, 1, 1) | |
4753 | hite.Transparency = 1 | |
4754 | hite.TopSurface = 0 | |
4755 | hite.BottomSurface = 0 | |
4756 | hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0) | |
4757 | local rem = Instance.new("Part", char) | |
4758 | rem.Anchored = true | |
4759 | rem.CanCollide = false | |
4760 | rem.FormFactor = 3 | |
4761 | rem.Name = "Ring" | |
4762 | rem.Material = "Neon" | |
4763 | rem.Size = Vector3.new(1, 1, 1) | |
4764 | rem.Transparency = 1 | |
4765 | rem.TopSurface = 0 | |
4766 | rem.BottomSurface = 0 | |
4767 | rem.CFrame = hite.CFrame | |
4768 | local rem2 = rem:Clone() | |
4769 | rem2.Parent = char | |
4770 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4771 | local rem3 = rem:Clone() | |
4772 | rem3.Parent = char | |
4773 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
4774 | local rem4 = rem:Clone() | |
4775 | rem4.Parent = char | |
4776 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
4777 | hite:Destroy() | |
4778 | coroutine.resume(coroutine.create(function() | |
4779 | for i = 0, 24 do | |
4780 | swait(1) | |
4781 | if randomrotations == 1 then | |
4782 | rot = rot + 1 | |
4783 | elseif randomrotations == 2 then | |
4784 | rot = rot - 1 | |
4785 | end | |
4786 | power = power + 0.5 | |
4787 | lookv = lookv + 7.5 | |
4788 | rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
4789 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4790 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
4791 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
4792 | orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4793 | orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4794 | orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4795 | orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4796 | end | |
4797 | end)) | |
4798 | attack = false | |
4799 | end | |
4800 | function yinyangi() | |
4801 | attack = true | |
4802 | for i = 0, 2, 0.1 do | |
4803 | swait() | |
4804 | 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) | |
4805 | 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) | |
4806 | 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) | |
4807 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4808 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2) | |
4809 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
4810 | end | |
4811 | local bv = Instance.new("BodyVelocity") | |
4812 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4813 | bv.velocity = root.CFrame.lookVector*175 | |
4814 | bv.Parent = root | |
4815 | for Rotations = 0, 9 do | |
4816 | for i = 0, 1, 0.5 do | |
4817 | swait() | |
4818 | bv.velocity = root.CFrame.lookVector*175 | |
4819 | 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) | |
4820 | 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) | |
4821 | 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) | |
4822 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4823 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4824 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4825 | end | |
4826 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4827 | for i = 0, 1, 0.5 do | |
4828 | swait() | |
4829 | bv.velocity = root.CFrame.lookVector*175 | |
4830 | 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) | |
4831 | 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) | |
4832 | 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) | |
4833 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4834 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4835 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4836 | end | |
4837 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4838 | for i = 0, 1, 0.5 do | |
4839 | swait() | |
4840 | bv.velocity = root.CFrame.lookVector*175 | |
4841 | 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) | |
4842 | 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) | |
4843 | 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) | |
4844 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4845 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4846 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4847 | end | |
4848 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4849 | for i = 0, 1, 0.5 do | |
4850 | swait() | |
4851 | bv.velocity = root.CFrame.lookVector*175 | |
4852 | 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) | |
4853 | 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) | |
4854 | 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) | |
4855 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4856 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4857 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4858 | end | |
4859 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4860 | end | |
4861 | bv:Destroy() | |
4862 | attack = false | |
4863 | end | |
4864 | function RobotLazer() | |
4865 | attack = true | |
4866 | ||
4867 | local rngb = Instance.new("Part", char) | |
4868 | rngb.Anchored = true | |
4869 | rngb.BrickColor = origcolor | |
4870 | rngb.CanCollide = false | |
4871 | rngb.FormFactor = 3 | |
4872 | rngb.Name = "Ring" | |
4873 | rngb.Material = "Neon" | |
4874 | rngb.Size = Vector3.new(1, 0.05, 1) | |
4875 | rngb.Transparency = 1 | |
4876 | rngb.TopSurface = 0 | |
4877 | rngb.BottomSurface = 0 | |
4878 | local rngmb = Instance.new("SpecialMesh", rngb) | |
4879 | rngmb.MeshType = "Brick" | |
4880 | rngmb.Name = "SizeMesh" | |
4881 | rngmb.Scale = vt(0,1,0) | |
4882 | ||
4883 | local orb = rngb:Clone() | |
4884 | orb.Parent = char | |
4885 | orb.Transparency = 0 | |
4886 | orb.BrickColor = BrickColor.new("Maroon") | |
4887 | orb.Size = vt(1,1,1) | |
4888 | local orbmish = orb.SizeMesh | |
4889 | orbmish.Scale = vt(0,0,0) | |
4890 | orbmish.MeshType = "Sphere" | |
4891 | ||
4892 | local orbe = rngb:Clone() | |
4893 | orbe.Parent = char | |
4894 | orbe.Transparency = 0.5 | |
4895 | orbe.BrickColor = BrickColor.new("Maroon") | |
4896 | orbe.Size = vt(1,1,1) | |
4897 | local orbmish2 = orbe.SizeMesh | |
4898 | orbmish2.Scale = vt(0,0,0) | |
4899 | orbmish2.MeshType = "Sphere" | |
4900 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4901 | ||
4902 | rngb:Destroy() | |
4903 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1) | |
4904 | local scaled = 1 | |
4905 | for i = 0,5,0.1 do | |
4906 | swait() | |
4907 | scaled = scaled - 0.02 | |
4908 | if rainbowmode == true then | |
4909 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4910 | end | |
4911 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
4912 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
4913 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4914 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4915 | sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25) | |
4916 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4917 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4918 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4919 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4920 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
4921 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
4922 | RootPart.CFrame = FaceMouse()[1] | |
4923 | end]]-- | |
4924 | for i = 0,5,0.1 do | |
4925 | swait() | |
4926 | if rainbowmode == true then | |
4927 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4928 | end | |
4929 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4930 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4931 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4932 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4933 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4934 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4935 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
4936 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
4937 | RootPart.CFrame = FaceMouse()[1] | |
4938 | end | |
4939 | orbe.Transparency = 1 | |
4940 | orb.Transparency = 1 | |
4941 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
4942 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1) | |
4943 | local a = Instance.new("Part",Character) | |
4944 | a.Name = "Direction" | |
4945 | a.Anchored = true | |
4946 | a.BrickColor = bc("Maroon") | |
4947 | a.Material = "Neon" | |
4948 | a.Transparency = 0 | |
4949 | a.Shape = "Cylinder" | |
4950 | a.CanCollide = false | |
4951 | local a2 = Instance.new("Part",Character) | |
4952 | a2.Name = "Direction" | |
4953 | a2.Anchored = true | |
4954 | a2.BrickColor = bc("Maroon") | |
4955 | a2.Color = Color3.new(r/255,g/255,b/255) | |
4956 | a2.Material = "Neon" | |
4957 | a2.Transparency = 0.5 | |
4958 | a2.Shape = "Cylinder" | |
4959 | a2.CanCollide = false | |
4960 | local ba = Instance.new("Part",Character) | |
4961 | ba.Name = "HitDirect" | |
4962 | ba.Anchored = true | |
4963 | ba.BrickColor = bc("Maroon") | |
4964 | ba.Material = "Neon" | |
4965 | ba.Transparency = 1 | |
4966 | ba.CanCollide = false | |
4967 | local ray = Ray.new( | |
4968 | orb.CFrame.p, -- origin | |
4969 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4970 | ) | |
4971 | local ignore = Character | |
4972 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4973 | a.BottomSurface = 10 | |
4974 | a.TopSurface = 10 | |
4975 | a2.BottomSurface = 10 | |
4976 | a2.TopSurface = 10 | |
4977 | local distance = (orb.CFrame.p - position).magnitude | |
4978 | a.Size = Vector3.new(distance, 1, 1) | |
4979 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4980 | a2.Size = Vector3.new(distance, 1, 1) | |
4981 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4982 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4983 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4984 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4985 | game:GetService("Debris"):AddItem(a, 20) | |
4986 | game:GetService("Debris"):AddItem(a2, 20) | |
4987 | game:GetService("Debris"):AddItem(ba, 20) | |
4988 | local msh = Instance.new("SpecialMesh",a) | |
4989 | msh.MeshType = "Cylinder" | |
4990 | msh.Scale = vt(1,5*5,5*5) | |
4991 | local msh2 = Instance.new("SpecialMesh",a2) | |
4992 | msh2.MeshType = "Cylinder" | |
4993 | msh2.Scale = vt(1,6*5,6*5) | |
4994 | ||
4995 | for i = 0,10,0.1 do | |
4996 | swait() | |
4997 | CameraEnshaking(1,5) | |
4998 | a2.Color = Color3.new(r/255,g/255,b/255) | |
4999 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5000 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5001 | ray = Ray.new( | |
5002 | orb.CFrame.p, -- origin | |
5003 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
5004 | ) | |
5005 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5006 | distance = (orb.CFrame.p - position).magnitude | |
5007 | if typrot == 1 then | |
5008 | rotation = rotation + 2.5 | |
5009 | elseif typrot == 2 then | |
5010 | rotation = rotation - 2.5 | |
5011 | end | |
5012 | RootPart.CFrame = FaceMouse()[1] | |
5013 | a.Size = Vector3.new(distance, 1, 1) | |
5014 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5015 | a2.Size = Vector3.new(distance, 1, 1) | |
5016 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5017 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5018 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5019 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5020 | msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5) | |
5021 | msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5) | |
5022 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
5023 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
5024 | MagniDamage(ba, 30, 500,60000, 0, "Normal") | |
5025 | end | |
5026 | a:Destroy() | |
5027 | a2:Destroy() | |
5028 | ba:Destroy() | |
5029 | orb:Destroy() | |
5030 | orbe:Destroy() | |
5031 | attack = false | |
5032 | end | |
5033 | function Wip() | |
5034 | attack = true | |
5035 | ||
5036 | local rngb = Instance.new("Part", char) | |
5037 | rngb.Anchored = true | |
5038 | rngb.BrickColor = origcolor | |
5039 | rngb.CanCollide = false | |
5040 | rngb.FormFactor = 3 | |
5041 | rngb.Name = "Ring" | |
5042 | rngb.Material = "Neon" | |
5043 | rngb.Size = Vector3.new(1, 0.05, 1) | |
5044 | rngb.Transparency = 1 | |
5045 | rngb.TopSurface = 0 | |
5046 | rngb.BottomSurface = 0 | |
5047 | local rngmb = Instance.new("SpecialMesh", rngb) | |
5048 | rngmb.MeshType = "Brick" | |
5049 | rngmb.Name = "SizeMesh" | |
5050 | rngmb.Scale = vt(0,1,0) | |
5051 | ||
5052 | local orb = rngb:Clone() | |
5053 | orb.Parent = char | |
5054 | orb.Transparency = 0 | |
5055 | orb.BrickColor = BrickColor.new("White") | |
5056 | orb.Size = vt(1,1,1) | |
5057 | local orbmish = orb.SizeMesh | |
5058 | orbmish.Scale = vt(0,0,0) | |
5059 | orbmish.MeshType = "Sphere" | |
5060 | ||
5061 | local orbe = rngb:Clone() | |
5062 | orbe.Parent = char | |
5063 | orbe.Transparency = 0.5 | |
5064 | orbe.BrickColor = BrickColor.new("New Yeller") | |
5065 | orbe.Size = vt(1,1,1) | |
5066 | local orbmish2 = orbe.SizeMesh | |
5067 | orbmish2.Scale = vt(0,0,0) | |
5068 | orbmish2.MeshType = "Sphere" | |
5069 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
5070 | ||
5071 | rngb:Destroy() | |
5072 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1) | |
5073 | local scaled = 1 | |
5074 | for i = 0,5,0.1 do | |
5075 | swait() | |
5076 | scaled = scaled - 0.02 | |
5077 | if rainbowmode == true then | |
5078 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
5079 | end | |
5080 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
5081 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
5082 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
5083 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
5084 | sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25) | |
5085 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
5086 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
5087 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
5088 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
5089 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
5090 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
5091 | RootPart.CFrame = FaceMouse()[1] | |
5092 | end]]-- | |
5093 | for i = 0,5,0.1 do | |
5094 | swait() | |
5095 | if rainbowmode == true then | |
5096 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
5097 | end | |
5098 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
5099 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
5100 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
5101 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
5102 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
5103 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
5104 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
5105 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
5106 | RootPart.CFrame = FaceMouse()[1] | |
5107 | end | |
5108 | orbe.Transparency = 1 | |
5109 | orb.Transparency = 1 | |
5110 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
5111 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1) | |
5112 | local a = Instance.new("Part",Character) | |
5113 | a.Name = "Direction" | |
5114 | a.Anchored = true | |
5115 | a.BrickColor = bc("White") | |
5116 | a.Material = "Neon" | |
5117 | a.Transparency = 0 | |
5118 | a.Shape = "Cylinder" | |
5119 | a.CanCollide = false | |
5120 | local a2 = Instance.new("Part",Character) | |
5121 | a2.Name = "Direction" | |
5122 | a2.Anchored = true | |
5123 | a2.BrickColor = bc("New Yeller") | |
5124 | a2.Color = Color3.new(r/255,g/255,b/255) | |
5125 | a2.Material = "Neon" | |
5126 | a2.Transparency = 0.5 | |
5127 | a2.Shape = "Cylinder" | |
5128 | a2.CanCollide = false | |
5129 | local ba = Instance.new("Part",Character) | |
5130 | ba.Name = "HitDirect" | |
5131 | ba.Anchored = true | |
5132 | ba.BrickColor = bc("Cool yellow") | |
5133 | ba.Material = "Neon" | |
5134 | ba.Transparency = 1 | |
5135 | ba.CanCollide = false | |
5136 | local ray = Ray.new( | |
5137 | orb.CFrame.p, -- origin | |
5138 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
5139 | ) | |
5140 | local ignore = Character | |
5141 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5142 | a.BottomSurface = 10 | |
5143 | a.TopSurface = 10 | |
5144 | a2.BottomSurface = 10 | |
5145 | a2.TopSurface = 10 | |
5146 | local distance = (orb.CFrame.p - position).magnitude | |
5147 | a.Size = Vector3.new(distance, 1, 1) | |
5148 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5149 | a2.Size = Vector3.new(distance, 1, 1) | |
5150 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5151 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5152 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5153 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5154 | game:GetService("Debris"):AddItem(a, 20) | |
5155 | game:GetService("Debris"):AddItem(a2, 20) | |
5156 | game:GetService("Debris"):AddItem(ba, 20) | |
5157 | local msh = Instance.new("SpecialMesh",a) | |
5158 | msh.MeshType = "Cylinder" | |
5159 | msh.Scale = vt(1,5*5,5*5) | |
5160 | local msh2 = Instance.new("SpecialMesh",a2) | |
5161 | msh2.MeshType = "Cylinder" | |
5162 | msh2.Scale = vt(1,6*5,6*5) | |
5163 | ||
5164 | for i = 0,10,0.1 do | |
5165 | swait() | |
5166 | CameraEnshaking(1,5) | |
5167 | a2.Color = Color3.new(r/255,g/255,b/255) | |
5168 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5169 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5170 | ray = Ray.new( | |
5171 | orb.CFrame.p, -- origin | |
5172 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
5173 | ) | |
5174 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5175 | distance = (orb.CFrame.p - position).magnitude | |
5176 | if typrot == 1 then | |
5177 | rotation = rotation + 2.5 | |
5178 | elseif typrot == 2 then | |
5179 | rotation = rotation - 2.5 | |
5180 | end | |
5181 | RootPart.CFrame = FaceMouse()[1] | |
5182 | a.Size = Vector3.new(distance, 1, 1) | |
5183 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5184 | a2.Size = Vector3.new(distance, 1, 1) | |
5185 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5186 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5187 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5188 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5189 | msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5) | |
5190 | msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5) | |
5191 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
5192 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
5193 | MagniDamage(ba, 30, 500,60000, 0, "Normal") | |
5194 | end | |
5195 | a:Destroy() | |
5196 | a2:Destroy() | |
5197 | ba:Destroy() | |
5198 | orb:Destroy() | |
5199 | orbe:Destroy() | |
5200 | attack = false | |
5201 | end | |
5202 | function CyborgShield() | |
5203 | attack = true | |
5204 | shielding = true | |
5205 | for i = 0, 2, 0.1 do | |
5206 | swait() | |
5207 | 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) | |
5208 | 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) | |
5209 | 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) | |
5210 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
5211 | 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) | |
5212 | 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) | |
5213 | end | |
5214 | CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1) | |
5215 | stash = Instance.new("Model",workspace) | |
5216 | local barrier = Instance.new("Part",stash) | |
5217 | barrier.Anchored = true | |
5218 | barrier.CanCollide = false | |
5219 | barrier.Size = Vector3.new(20,20,20) | |
5220 | barrier.CFrame = root.CFrame | |
5221 | barrier.Transparency = 0.6 | |
5222 | barrier.BrickColor = MAINRUINCOLOR | |
5223 | barrier.Material = Enum.Material.Neon | |
5224 | barrier.Shape = Enum.PartType.Ball | |
5225 | barrier.CFrame = root.CFrame | |
5226 | sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR) | |
5227 | Torso.Anchored = true | |
5228 | for i=1,50 do | |
5229 | local p = Instance.new("Part",stash) | |
5230 | p.Anchored = true | |
5231 | p.Transparency = 1 | |
5232 | p.Size = Vector3.new(11,11,11) | |
5233 | p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)) | |
5234 | end | |
5235 | repeat | |
5236 | swait(5) | |
5237 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("White"),0) | |
5238 | until shielding == false | |
5239 | stash:Remove() | |
5240 | Torso.Anchored = false | |
5241 | shielding = false | |
5242 | sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR) | |
5243 | attack = false | |
5244 | end | |
5245 | function HolyBarrier() | |
5246 | attack = true | |
5247 | shielding = true | |
5248 | for i = 0, 2, 0.1 do | |
5249 | swait() | |
5250 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(60),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
5251 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(-20),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
5252 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.5 + 0.1 * math.cos(sine / 32))*angles(math.rad(30),math.rad(0),math.rad(0)),.4) | |
5253 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4) | |
5254 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1) | |
5255 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1) | |
5256 | end | |
5257 | CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1) | |
5258 | stash = Instance.new("Model",workspace) | |
5259 | local barrier = Instance.new("Part",stash) | |
5260 | barrier.Anchored = true | |
5261 | barrier.CanCollide = false | |
5262 | barrier.Size = Vector3.new(20,20,20) | |
5263 | barrier.CFrame = root.CFrame | |
5264 | barrier.Transparency = 0.6 | |
5265 | barrier.BrickColor = MAINRUINCOLOR | |
5266 | barrier.Material = Enum.Material.Neon | |
5267 | barrier.Shape = Enum.PartType.Ball | |
5268 | barrier.CFrame = root.CFrame | |
5269 | sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR) | |
5270 | Torso.Anchored = true | |
5271 | for i=1,50 do | |
5272 | local p = Instance.new("Part",stash) | |
5273 | p.Anchored = true | |
5274 | p.Transparency = 1 | |
5275 | p.Size = Vector3.new(11,11,11) | |
5276 | p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)) | |
5277 | end | |
5278 | repeat | |
5279 | swait(5) | |
5280 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("White"),0) | |
5281 | until shielding == false | |
5282 | stash:Remove() | |
5283 | Torso.Anchored = false | |
5284 | shielding = false | |
5285 | sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR) | |
5286 | attack = false | |
5287 | end | |
5288 | ||
5289 | function HolyBeam() | |
5290 | attack = true | |
5291 | judgement = true | |
5292 | hum.WalkSpeed = 0 | |
5293 | local p = Instance.new("Part",root) | |
5294 | p.Anchored = true | |
5295 | p.CanCollide = false | |
5296 | p.BrickColor = MAINRUINCOLOR | |
5297 | p.Material = Enum.Material.Neon | |
5298 | p.Size = Vector3.new(4,4,4) | |
5299 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
5300 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
5301 | local m = Instance.new("SpecialMesh",p) | |
5302 | m.MeshType = "Cylinder" | |
5303 | m.Scale = Vector3.new(2000,2,2) | |
5304 | local targ = Instance.new("Part",root) | |
5305 | targ.Anchored = true | |
5306 | targ.Transparency = 1 | |
5307 | targ.CanCollide = false | |
5308 | targ.Size = Vector3.new(1,1,1) | |
5309 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
5310 | local s = Instance.new("Sound",targ) | |
5311 | s.SoundId = "https://roblox.com/asset/?id=115327352" | |
5312 | s.Looped = true | |
5313 | s.Pitch = 1.2 | |
5314 | s.Volume = 3 | |
5315 | spawn(function() | |
5316 | swait(15) | |
5317 | s:Play() | |
5318 | end) | |
5319 | CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1) | |
5320 | for i = 1,15 do | |
5321 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
5322 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2) | |
5323 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2) | |
5324 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2) | |
5325 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2) | |
5326 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2) | |
5327 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2) | |
5328 | sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR) | |
5329 | sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0) | |
5330 | m.Scale = m.Scale+Vector3.new(0,1,1) | |
5331 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
5332 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
5333 | swait() | |
5334 | end | |
5335 | sphereMK(3, 0.2, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0) | |
5336 | repeat | |
5337 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
5338 | sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0) | |
5339 | sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR) | |
5340 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
5341 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
5342 | MagniDamage(targ, 25, 5, 8, 0, "Normal") | |
5343 | swait() | |
5344 | until judgement == false | |
5345 | for i =1,15 do | |
5346 | m.Scale = m.Scale-Vector3.new(5,5,5) | |
5347 | p.Transparency = i / 15 | |
5348 | s.Pitch = s.Pitch - 0.4 | |
5349 | swait() | |
5350 | end | |
5351 | p:Destroy() | |
5352 | hum.WalkSpeed = storehumanoidWS | |
5353 | attack = false | |
5354 | end | |
5355 | ||
5356 | function Judgement() | |
5357 | attack = true | |
5358 | judgement = true | |
5359 | hum.WalkSpeed = 0 | |
5360 | local p = Instance.new("Part",root) | |
5361 | p.Anchored = true | |
5362 | p.CanCollide = false | |
5363 | p.BrickColor = MAINRUINCOLOR | |
5364 | p.Material = Enum.Material.Neon | |
5365 | p.Size = Vector3.new(1,1,1) | |
5366 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
5367 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
5368 | local m = Instance.new("SpecialMesh",p) | |
5369 | m.MeshType = "Cylinder" | |
5370 | m.Scale = Vector3.new(2000,2,2) | |
5371 | local targ = Instance.new("Part",root) | |
5372 | targ.Anchored = true | |
5373 | targ.Transparency = 1 | |
5374 | targ.CanCollide = false | |
5375 | targ.Size = Vector3.new(1,1,1) | |
5376 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
5377 | local s = Instance.new("Sound",targ) | |
5378 | s.SoundId = "https://roblox.com/asset/?id=115327352" | |
5379 | s.Looped = true | |
5380 | s.Pitch = 1.2 | |
5381 | s.Volume = 3 | |
5382 | spawn(function() | |
5383 | swait(15) | |
5384 | s:Play() | |
5385 | end) | |
5386 | CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1) | |
5387 | for i = 1,15 do | |
5388 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
5389 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2) | |
5390 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2) | |
5391 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2) | |
5392 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2) | |
5393 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2) | |
5394 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2) | |
5395 | sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR) | |
5396 | sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0) | |
5397 | m.Scale = m.Scale+Vector3.new(0,1,1) | |
5398 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
5399 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
5400 | swait() | |
5401 | end | |
5402 | sphereMK(3, 0.2, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0) | |
5403 | repeat | |
5404 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
5405 | sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0) | |
5406 | sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR) | |
5407 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
5408 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
5409 | MagniDamage(targ, 25, 5, 8, 0, "Normal") | |
5410 | swait() | |
5411 | until judgement == false | |
5412 | for i =1,15 do | |
5413 | m.Scale = m.Scale-Vector3.new(1,1,1) | |
5414 | p.Transparency = i / 15 | |
5415 | s.Pitch = s.Pitch - 0.4 | |
5416 | swait() | |
5417 | end | |
5418 | p:Destroy() | |
5419 | hum.WalkSpeed = storehumanoidWS | |
5420 | attack = false | |
5421 | end | |
5422 | ||
5423 | function HalfGodStirke() | |
5424 | attack = true | |
5425 | ||
5426 | local rngb = Instance.new("Part", char) | |
5427 | rngb.Anchored = true | |
5428 | rngb.BrickColor = origcolor | |
5429 | rngb.CanCollide = false | |
5430 | rngb.FormFactor = 3 | |
5431 | rngb.Name = "Ring" | |
5432 | rngb.Material = "Neon" | |
5433 | rngb.Size = Vector3.new(0.5, 0.05, 0.5) | |
5434 | rngb.Transparency = 1 | |
5435 | rngb.TopSurface = 0 | |
5436 | rngb.BottomSurface = 0 | |
5437 | local rngmb = Instance.new("SpecialMesh", rngb) | |
5438 | rngmb.MeshType = "Brick" | |
5439 | rngmb.Name = "SizeMesh" | |
5440 | rngmb.Scale = vt(0,1,0) | |
5441 | ||
5442 | local orb = rngb:Clone() | |
5443 | orb.Parent = char | |
5444 | orb.Transparency = 0 | |
5445 | orb.BrickColor = BrickColor.new("White") | |
5446 | orb.Size = vt(1,1,1) | |
5447 | local orbmish = orb.SizeMesh | |
5448 | orbmish.Scale = vt(0,0,0) | |
5449 | orbmish.MeshType = "Sphere" | |
5450 | ||
5451 | local orbe = rngb:Clone() | |
5452 | orbe.Parent = char | |
5453 | orbe.Transparency = 0.5 | |
5454 | orbe.BrickColor = BrickColor.new("New Yeller") | |
5455 | orbe.Size = vt(1,1,1) | |
5456 | local orbmish2 = orbe.SizeMesh | |
5457 | orbmish2.Scale = vt(0,0,0) | |
5458 | orbmish2.MeshType = "Sphere" | |
5459 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
5460 | ||
5461 | rngb:Destroy() | |
5462 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1) | |
5463 | local scaled = 1 | |
5464 | for i = 0,5,0.1 do | |
5465 | swait() | |
5466 | scaled = scaled - 0.02 | |
5467 | if rainbowmode == true then | |
5468 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
5469 | end | |
5470 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
5471 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
5472 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
5473 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
5474 | sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25) | |
5475 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
5476 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
5477 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
5478 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
5479 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
5480 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
5481 | RootPart.CFrame = FaceMouse()[1] | |
5482 | end]]-- | |
5483 | for i = 0,5,0.1 do | |
5484 | swait() | |
5485 | if rainbowmode == true then | |
5486 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
5487 | end | |
5488 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
5489 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
5490 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
5491 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
5492 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
5493 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
5494 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
5495 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
5496 | RootPart.CFrame = FaceMouse()[1] | |
5497 | end | |
5498 | orbe.Transparency = 1 | |
5499 | orb.Transparency = 1 | |
5500 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
5501 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1) | |
5502 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1) | |
5503 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
5504 | ||
5505 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1) | |
5506 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1) | |
5507 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
5508 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1) | |
5509 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1) | |
5510 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85) | |
5511 | CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1) | |
5512 | local xd= Instance.new("Sound",char) | |
5513 | xd.SoundId = "rbxassetid://445796828" | |
5514 | xd.Pitch = 0.75 | |
5515 | xd.Looped = true | |
5516 | xd.Volume = 1.25 | |
5517 | xd:Play() | |
5518 | local a = Instance.new("Part",Character) | |
5519 | a.Name = "Direction" | |
5520 | a.Anchored = true | |
5521 | a.BrickColor = bc("Alder") | |
5522 | a.Color = MAINRUINCOLOR.Color | |
5523 | a.Material = "Neon" | |
5524 | a.Transparency = 0.5 | |
5525 | a.Shape = "Cylinder" | |
5526 | a.CanCollide = false | |
5527 | local a2 = Instance.new("Part",Character) | |
5528 | a2.Name = "Direction" | |
5529 | a2.Anchored = true | |
5530 | a2.BrickColor = bc("New Yeller") | |
5531 | a2.Color = MAINRUINCOLOR.Color | |
5532 | a2.Material = "Neon" | |
5533 | a2.Transparency = 0.5 | |
5534 | a2.Shape = "Cylinder" | |
5535 | a2.CanCollide = false | |
5536 | local ba = Instance.new("Part",Character) | |
5537 | ba.Name = "HitDirect" | |
5538 | ba.Anchored = true | |
5539 | ba.BrickColor = bc("Cool yellow") | |
5540 | ba.Material = "Neon" | |
5541 | ba.Transparency = 1 | |
5542 | ba.CanCollide = false | |
5543 | local ray = Ray.new( | |
5544 | orb.CFrame.p, -- origin | |
5545 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
5546 | ) | |
5547 | local ignore = Character | |
5548 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5549 | a.BottomSurface = 10 | |
5550 | a.TopSurface = 10 | |
5551 | a2.BottomSurface = 10 | |
5552 | a2.TopSurface = 10 | |
5553 | local distance = (orb.CFrame.p - position).magnitude | |
5554 | a.Size = Vector3.new(distance, 0.5, 0.5) | |
5555 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5556 | a2.Size = Vector3.new(distance, 0.5, 0.5) | |
5557 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5558 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5559 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5560 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5561 | game:GetService("Debris"):AddItem(a, 60) | |
5562 | game:GetService("Debris"):AddItem(a2, 60) | |
5563 | game:GetService("Debris"):AddItem(ba, 60) | |
5564 | local outerscale = 0 | |
5565 | local msh = Instance.new("SpecialMesh",a) | |
5566 | msh.MeshType = "Cylinder" | |
5567 | msh.Scale = vt(1,0,0) | |
5568 | local msh2 = Instance.new("SpecialMesh",a2) | |
5569 | msh2.MeshType = "Cylinder" | |
5570 | msh2.Scale = vt(1,0,0) | |
5571 | for i = 0,2,0.1 do | |
5572 | swait() | |
5573 | CameraEnshaking(1,1) | |
5574 | msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20) | |
5575 | msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15) | |
5576 | outerscale = outerscale - 0.015 | |
5577 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5578 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5579 | ray = Ray.new( | |
5580 | orb.CFrame.p, -- origin | |
5581 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
5582 | ) | |
5583 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5584 | distance = (orb.CFrame.p - position).magnitude | |
5585 | if typrot == 1 then | |
5586 | rotation = rotation + 2.5 | |
5587 | elseif typrot == 2 then | |
5588 | rotation = rotation - 2.5 | |
5589 | end | |
5590 | RootPart.CFrame = FaceMouse()[1] | |
5591 | a.Size = Vector3.new(distance, 0.5, 0.5) | |
5592 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5593 | a2.Size = Vector3.new(distance, 0.5, 0.5) | |
5594 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5595 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5596 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5597 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5598 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5599 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5600 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
5601 | end | |
5602 | for z = 0, 2 do | |
5603 | for i = 0,4,0.1 do | |
5604 | swait() | |
5605 | CameraEnshaking(1,1) | |
5606 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
5607 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
5608 | outerscale = outerscale + 0.015 | |
5609 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5610 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5611 | ray = Ray.new( | |
5612 | orb.CFrame.p, -- origin | |
5613 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
5614 | ) | |
5615 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5616 | distance = (orb.CFrame.p - position).magnitude | |
5617 | if typrot == 1 then | |
5618 | rotation = rotation + 2.5 | |
5619 | elseif typrot == 2 then | |
5620 | rotation = rotation - 2.5 | |
5621 | end | |
5622 | RootPart.CFrame = FaceMouse()[1] | |
5623 | a.Size = Vector3.new(distance, 0.5, 0.5) | |
5624 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5625 | a2.Size = Vector3.new(distance, 0.5, 0.5) | |
5626 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5627 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5628 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5629 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5630 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5631 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5632 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
5633 | end | |
5634 | for i = 0,4,0.1 do | |
5635 | swait() | |
5636 | CameraEnshaking(1,1) | |
5637 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
5638 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
5639 | outerscale = outerscale - 0.015 | |
5640 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5641 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5642 | ray = Ray.new( | |
5643 | orb.CFrame.p, -- origin | |
5644 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
5645 | ) | |
5646 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5647 | distance = (orb.CFrame.p - position).magnitude | |
5648 | if typrot == 1 then | |
5649 | rotation = rotation + 2.5 | |
5650 | elseif typrot == 2 then | |
5651 | rotation = rotation - 2.5 | |
5652 | end | |
5653 | RootPart.CFrame = FaceMouse()[1] | |
5654 | a.Size = Vector3.new(distance, 0.5, 0.5) | |
5655 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5656 | a2.Size = Vector3.new(distance, 0.5, 0.5) | |
5657 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5658 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5659 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5660 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5661 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5662 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5663 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
5664 | end | |
5665 | end | |
5666 | for i = 0,4,0.1 do | |
5667 | swait() | |
5668 | CameraEnshaking(1,1) | |
5669 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
5670 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
5671 | xd.Volume = xd.Volume - 0.025 | |
5672 | a.Transparency = a.Transparency + 0.025 | |
5673 | a2.Transparency = a2.Transparency + 0.025 | |
5674 | outerscale = outerscale - 0.015 | |
5675 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5676 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5677 | ray = Ray.new( | |
5678 | orb.CFrame.p, -- origin | |
5679 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
5680 | ) | |
5681 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5682 | distance = (orb.CFrame.p - position).magnitude | |
5683 | if typrot == 1 then | |
5684 | rotation = rotation + 2.5 | |
5685 | elseif typrot == 2 then | |
5686 | rotation = rotation - 2.5 | |
5687 | end | |
5688 | RootPart.CFrame = FaceMouse()[1] | |
5689 | a.Size = Vector3.new(distance, 0.5, 0.5) | |
5690 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5691 | a2.Size = Vector3.new(distance, 0.5, 0.5) | |
5692 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5693 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5694 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5695 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5696 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5697 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5698 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
5699 | end | |
5700 | xd:Destroy() | |
5701 | a:Destroy() | |
5702 | a2:Destroy() | |
5703 | ba:Destroy() | |
5704 | orb:Destroy() | |
5705 | orbe:Destroy() | |
5706 | attack = false | |
5707 | end | |
5708 | ||
5709 | function UniversalSpark() | |
5710 | attack = true | |
5711 | ||
5712 | local rngb = Instance.new("Part", char) | |
5713 | rngb.Anchored = true | |
5714 | rngb.BrickColor = origcolor | |
5715 | rngb.CanCollide = false | |
5716 | rngb.FormFactor = 3 | |
5717 | rngb.Name = "Ring" | |
5718 | rngb.Material = "Neon" | |
5719 | rngb.Size = Vector3.new(1, 0.05, 1) | |
5720 | rngb.Transparency = 1 | |
5721 | rngb.TopSurface = 0 | |
5722 | rngb.BottomSurface = 0 | |
5723 | local rngmb = Instance.new("SpecialMesh", rngb) | |
5724 | rngmb.MeshType = "Brick" | |
5725 | rngmb.Name = "SizeMesh" | |
5726 | rngmb.Scale = vt(0,1,0) | |
5727 | ||
5728 | local orb = rngb:Clone() | |
5729 | orb.Parent = char | |
5730 | orb.Transparency = 0 | |
5731 | orb.BrickColor = BrickColor.new("White") | |
5732 | orb.Size = vt(1,1,1) | |
5733 | local orbmish = orb.SizeMesh | |
5734 | orbmish.Scale = vt(0,0,0) | |
5735 | orbmish.MeshType = "Sphere" | |
5736 | ||
5737 | local orbe = rngb:Clone() | |
5738 | orbe.Parent = char | |
5739 | orbe.Transparency = 0.5 | |
5740 | orbe.BrickColor = BrickColor.new("New Yeller") | |
5741 | orbe.Size = vt(1,1,1) | |
5742 | local orbmish2 = orbe.SizeMesh | |
5743 | orbmish2.Scale = vt(0,0,0) | |
5744 | orbmish2.MeshType = "Sphere" | |
5745 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
5746 | ||
5747 | rngb:Destroy() | |
5748 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1) | |
5749 | local scaled = 1 | |
5750 | for i = 0,5,0.1 do | |
5751 | swait() | |
5752 | scaled = scaled - 0.02 | |
5753 | if rainbowmode == true then | |
5754 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
5755 | end | |
5756 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
5757 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
5758 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
5759 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
5760 | sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25) | |
5761 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
5762 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
5763 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
5764 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
5765 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
5766 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
5767 | RootPart.CFrame = FaceMouse()[1] | |
5768 | end]]-- | |
5769 | for i = 0,5,0.1 do | |
5770 | swait() | |
5771 | if rainbowmode == true then | |
5772 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
5773 | end | |
5774 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
5775 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
5776 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
5777 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
5778 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
5779 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
5780 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
5781 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
5782 | RootPart.CFrame = FaceMouse()[1] | |
5783 | end | |
5784 | orbe.Transparency = 1 | |
5785 | orb.Transparency = 1 | |
5786 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
5787 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1) | |
5788 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1) | |
5789 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
5790 | ||
5791 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1) | |
5792 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1) | |
5793 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
5794 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1) | |
5795 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1) | |
5796 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85) | |
5797 | CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1) | |
5798 | local xd= Instance.new("Sound",char) | |
5799 | xd.SoundId = "rbxassetid://445796828" | |
5800 | xd.Pitch = 0.75 | |
5801 | xd.Looped = true | |
5802 | xd.Volume = 1.25 | |
5803 | xd:Play() | |
5804 | local a = Instance.new("Part",Character) | |
5805 | a.Name = "Direction" | |
5806 | a.Anchored = true | |
5807 | a.BrickColor = bc("Alder") | |
5808 | a.Color = MAINRUINCOLOR.Color | |
5809 | a.Material = "Neon" | |
5810 | a.Transparency = 0.5 | |
5811 | a.Shape = "Cylinder" | |
5812 | a.CanCollide = false | |
5813 | local a2 = Instance.new("Part",Character) | |
5814 | a2.Name = "Direction" | |
5815 | a2.Anchored = true | |
5816 | a2.BrickColor = bc("New Yeller") | |
5817 | a2.Color = MAINRUINCOLOR.Color | |
5818 | a2.Material = "Neon" | |
5819 | a2.Transparency = 0.5 | |
5820 | a2.Shape = "Cylinder" | |
5821 | a2.CanCollide = false | |
5822 | local ba = Instance.new("Part",Character) | |
5823 | ba.Name = "HitDirect" | |
5824 | ba.Anchored = true | |
5825 | ba.BrickColor = bc("Cool yellow") | |
5826 | ba.Material = "Neon" | |
5827 | ba.Transparency = 1 | |
5828 | ba.CanCollide = false | |
5829 | local ray = Ray.new( | |
5830 | orb.CFrame.p, -- origin | |
5831 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
5832 | ) | |
5833 | local ignore = Character | |
5834 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5835 | a.BottomSurface = 10 | |
5836 | a.TopSurface = 10 | |
5837 | a2.BottomSurface = 10 | |
5838 | a2.TopSurface = 10 | |
5839 | local distance = (orb.CFrame.p - position).magnitude | |
5840 | a.Size = Vector3.new(distance, 1, 1) | |
5841 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5842 | a2.Size = Vector3.new(distance, 1, 1) | |
5843 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5844 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5845 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5846 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5847 | game:GetService("Debris"):AddItem(a, 60) | |
5848 | game:GetService("Debris"):AddItem(a2, 60) | |
5849 | game:GetService("Debris"):AddItem(ba, 60) | |
5850 | local outerscale = 0 | |
5851 | local msh = Instance.new("SpecialMesh",a) | |
5852 | msh.MeshType = "Cylinder" | |
5853 | msh.Scale = vt(1,0,0) | |
5854 | local msh2 = Instance.new("SpecialMesh",a2) | |
5855 | msh2.MeshType = "Cylinder" | |
5856 | msh2.Scale = vt(1,0,0) | |
5857 | for i = 0,2,0.1 do | |
5858 | swait() | |
5859 | CameraEnshaking(1,1) | |
5860 | msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20) | |
5861 | msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15) | |
5862 | outerscale = outerscale - 0.015 | |
5863 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5864 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5865 | ray = Ray.new( | |
5866 | orb.CFrame.p, -- origin | |
5867 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
5868 | ) | |
5869 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5870 | distance = (orb.CFrame.p - position).magnitude | |
5871 | if typrot == 1 then | |
5872 | rotation = rotation + 2.5 | |
5873 | elseif typrot == 2 then | |
5874 | rotation = rotation - 2.5 | |
5875 | end | |
5876 | RootPart.CFrame = FaceMouse()[1] | |
5877 | a.Size = Vector3.new(distance, 1, 1) | |
5878 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5879 | a2.Size = Vector3.new(distance, 1, 1) | |
5880 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5881 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5882 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5883 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5884 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5885 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5886 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
5887 | end | |
5888 | for z = 0, 2 do | |
5889 | for i = 0,4,0.1 do | |
5890 | swait() | |
5891 | CameraEnshaking(1,1) | |
5892 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
5893 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
5894 | outerscale = outerscale + 0.015 | |
5895 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5896 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5897 | ray = Ray.new( | |
5898 | orb.CFrame.p, -- origin | |
5899 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
5900 | ) | |
5901 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5902 | distance = (orb.CFrame.p - position).magnitude | |
5903 | if typrot == 1 then | |
5904 | rotation = rotation + 2.5 | |
5905 | elseif typrot == 2 then | |
5906 | rotation = rotation - 2.5 | |
5907 | end | |
5908 | RootPart.CFrame = FaceMouse()[1] | |
5909 | a.Size = Vector3.new(distance, 1, 1) | |
5910 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5911 | a2.Size = Vector3.new(distance, 1, 1) | |
5912 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5913 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5914 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5915 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5916 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5917 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5918 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
5919 | end | |
5920 | for i = 0,4,0.1 do | |
5921 | swait() | |
5922 | CameraEnshaking(1,1) | |
5923 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
5924 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
5925 | outerscale = outerscale - 0.015 | |
5926 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5927 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5928 | ray = Ray.new( | |
5929 | orb.CFrame.p, -- origin | |
5930 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
5931 | ) | |
5932 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5933 | distance = (orb.CFrame.p - position).magnitude | |
5934 | if typrot == 1 then | |
5935 | rotation = rotation + 2.5 | |
5936 | elseif typrot == 2 then | |
5937 | rotation = rotation - 2.5 | |
5938 | end | |
5939 | RootPart.CFrame = FaceMouse()[1] | |
5940 | a.Size = Vector3.new(distance, 1, 1) | |
5941 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5942 | a2.Size = Vector3.new(distance, 1, 1) | |
5943 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5944 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5945 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5946 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5947 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5948 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5949 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
5950 | end | |
5951 | end | |
5952 | for i = 0,4,0.1 do | |
5953 | swait() | |
5954 | CameraEnshaking(1,1) | |
5955 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
5956 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
5957 | xd.Volume = xd.Volume - 0.025 | |
5958 | a.Transparency = a.Transparency + 0.025 | |
5959 | a2.Transparency = a2.Transparency + 0.025 | |
5960 | outerscale = outerscale - 0.015 | |
5961 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5962 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
5963 | ray = Ray.new( | |
5964 | orb.CFrame.p, -- origin | |
5965 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
5966 | ) | |
5967 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5968 | distance = (orb.CFrame.p - position).magnitude | |
5969 | if typrot == 1 then | |
5970 | rotation = rotation + 2.5 | |
5971 | elseif typrot == 2 then | |
5972 | rotation = rotation - 2.5 | |
5973 | end | |
5974 | RootPart.CFrame = FaceMouse()[1] | |
5975 | a.Size = Vector3.new(distance, 1, 1) | |
5976 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5977 | a2.Size = Vector3.new(distance, 1, 1) | |
5978 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5979 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5980 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5981 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5982 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5983 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
5984 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
5985 | end | |
5986 | xd:Destroy() | |
5987 | a:Destroy() | |
5988 | a2:Destroy() | |
5989 | ba:Destroy() | |
5990 | orb:Destroy() | |
5991 | orbe:Destroy() | |
5992 | attack = false | |
5993 | end | |
5994 | ||
5995 | ||
5996 | function resetmode() | |
5997 | rainbowmode = false | |
5998 | chaosmode = false | |
5999 | tl1.Enabled = false | |
6000 | tl2.Enabled = false | |
6001 | tl3.Enabled = false | |
6002 | ModeOfGlitch = 1 | |
6003 | storehumanoidWS = 16 | |
6004 | coroutine.resume(coroutine.create(function() | |
6005 | attack = true | |
6006 | hum.WalkSpeed = 0 | |
6007 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25) | |
6008 | for i = 0,4,0.1 do | |
6009 | swait() | |
6010 | 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) | |
6011 | 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) | |
6012 | 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) | |
6013 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.5) | |
6014 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.5) | |
6015 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5) | |
6016 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5) | |
6017 | end | |
6018 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1) | |
6019 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
6020 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1) | |
6021 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75) | |
6022 | RecolorTextAndRename("Baby Blue Chaos God",Color3.new(0,0,0),Color3.new(0,32,96)) | |
6023 | CameraEnshaking(5,2.5) | |
6024 | MAINRUINCOLOR = BrickColor.new("Navy blue") | |
6025 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
6026 | for i = 0, 49 do | |
6027 | 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) | |
6028 | end | |
6029 | for i = 0,3,0.1 do | |
6030 | 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) | |
6031 | end | |
6032 | for i, v in pairs(mw2:GetChildren()) do | |
6033 | if v:IsA("Part") then | |
6034 | v.BrickColor = BrickColor.new("Navy blue") | |
6035 | v.Material = "Neon" | |
6036 | end | |
6037 | end | |
6038 | for i, v in pairs(mw1:GetChildren()) do | |
6039 | if v:IsA("Part") then | |
6040 | v.Transparency = 1 | |
6041 | v.BrickColor = BrickColor.new("Navy blue") | |
6042 | v.Material = "Neon" | |
6043 | end | |
6044 | end | |
6045 | for i, v in pairs(m:GetChildren()) do | |
6046 | if v:IsA("Part") then | |
6047 | v.BrickColor = BrickColor.new("Really black") | |
6048 | v.Material = "Glass" | |
6049 | end | |
6050 | end | |
6051 | for i, v in pairs(m2:GetChildren()) do | |
6052 | if v:IsA("Part") then | |
6053 | v.BrickColor = BrickColor.new("Crimson") | |
6054 | v.Material = "Granite" | |
6055 | end | |
6056 | end | |
6057 | for i, v in pairs(m3:GetChildren()) do | |
6058 | if v:IsA("Part") then | |
6059 | v.BrickColor = BrickColor.new("Navy blue") | |
6060 | v.Material = "Neon" | |
6061 | end | |
6062 | end | |
6063 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6064 | if v:IsA("Part") then | |
6065 | v.Transparency = 1 | |
6066 | v.BrickColor = BrickColor.new("White") | |
6067 | v.Material = "Neon" | |
6068 | end | |
6069 | end | |
6070 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6071 | if v:IsA("Part") then | |
6072 | v.Transparency = 1 | |
6073 | v.BrickColor = BrickColor.new("White") | |
6074 | v.Material = "Neon" | |
6075 | end | |
6076 | end | |
6077 | for i = 0,2,0.1 do | |
6078 | swait() | |
6079 | 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) | |
6080 | 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) | |
6081 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
6082 | 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) | |
6083 | 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) | |
6084 | 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) | |
6085 | end | |
6086 | hum.WalkSpeed = storehumanoidWS | |
6087 | attack = false | |
6088 | end)) | |
6089 | newTheme("rbxassetid://614032233",48.6,1,0.3) | |
6090 | end | |
6091 | ||
6092 | function attackone() | |
6093 | attack = true | |
6094 | for i = 0,1,0.1 do | |
6095 | swait() | |
6096 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2) | |
6097 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2) | |
6098 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
6099 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
6100 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2) | |
6101 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2) | |
6102 | end | |
6103 | CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1) | |
6104 | ||
6105 | local hitb = Instance.new("Part", char) | |
6106 | hitb.Anchored = true | |
6107 | hitb.CanCollide = false | |
6108 | hitb.FormFactor = 3 | |
6109 | hitb.Name = "Ring" | |
6110 | hitb.Material = "Neon" | |
6111 | hitb.Size = Vector3.new(1, 1, 1) | |
6112 | hitb.Transparency = 1 | |
6113 | hitb.TopSurface = 0 | |
6114 | hitb.BottomSurface = 0 | |
6115 | hitb.CFrame = root.CFrame + root.CFrame.lookVector*2 | |
6116 | MagniDamage(hitb, 3, 10,30, 0, "Normal") | |
6117 | hitb:Destroy() | |
6118 | for i = 0,1,0.1 do | |
6119 | swait() | |
6120 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4) | |
6121 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4) | |
6122 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4) | |
6123 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4) | |
6124 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4) | |
6125 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4) | |
6126 | end | |
6127 | ||
6128 | attack = false | |
6129 | end | |
6130 | ||
6131 | function attacktwo() | |
6132 | attack = true | |
6133 | for i = 0,1,0.1 do | |
6134 | swait() | |
6135 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2) | |
6136 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2) | |
6137 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
6138 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
6139 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2) | |
6140 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2) | |
6141 | end | |
6142 | CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1) | |
6143 | local hitb = Instance.new("Part", char) | |
6144 | hitb.Anchored = true | |
6145 | hitb.CanCollide = false | |
6146 | hitb.FormFactor = 3 | |
6147 | hitb.Name = "Ring" | |
6148 | hitb.Material = "Neon" | |
6149 | hitb.Size = Vector3.new(1, 1, 1) | |
6150 | hitb.Transparency = 1 | |
6151 | hitb.TopSurface = 0 | |
6152 | hitb.BottomSurface = 0 | |
6153 | hitb.CFrame = root.CFrame + root.CFrame.lookVector*2 | |
6154 | MagniDamage(hitb, 3, 10,30, 0, "Normal") | |
6155 | hitb:Destroy() | |
6156 | for i = 0,1,0.1 do | |
6157 | swait() | |
6158 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4) | |
6159 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4) | |
6160 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4) | |
6161 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4) | |
6162 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4) | |
6163 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4) | |
6164 | end | |
6165 | attack = false | |
6166 | end | |
6167 | ||
6168 | function attackthree() | |
6169 | attack = true | |
6170 | for i = 0,1,0.1 do | |
6171 | swait() | |
6172 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3) | |
6173 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3) | |
6174 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3) | |
6175 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
6176 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
6177 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
6178 | end | |
6179 | local distlook = 5 | |
6180 | for i = 0, 4 do | |
6181 | swait(2) | |
6182 | CameraEnshaking(2,3) | |
6183 | local hite = Instance.new("Part", char) | |
6184 | hite.Anchored = true | |
6185 | hite.CanCollide = false | |
6186 | hite.FormFactor = 3 | |
6187 | hite.Name = "Ring" | |
6188 | hite.Material = "Neon" | |
6189 | hite.Size = Vector3.new(1, 1, 1) | |
6190 | hite.Transparency = 1 | |
6191 | hite.TopSurface = 0 | |
6192 | hite.BottomSurface = 0 | |
6193 | hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook | |
6194 | sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR) | |
6195 | sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR) | |
6196 | MagniDamage(hite, 10, 15,35, 0, "Normal") | |
6197 | for i = 0, 2 do | |
6198 | sphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0) | |
6199 | sphereMK(3,0.2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0) | |
6200 | sphereMK(6,0.35,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0) | |
6201 | end | |
6202 | CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1) | |
6203 | CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6) | |
6204 | game:GetService("Debris"):AddItem(hite, 5) | |
6205 | distlook = distlook + 10 | |
6206 | end | |
6207 | attack = false | |
6208 | end | |
6209 | ||
6210 | local ActiveGia = false | |
6211 | function THEHELLITSTHATBIG() | |
6212 | ActiveGia = true | |
6213 | attack = true | |
6214 | hum.WalkSpeed = 0 | |
6215 | for i = 0,2,0.1 do | |
6216 | swait() | |
6217 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2) | |
6218 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2) | |
6219 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2) | |
6220 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2) | |
6221 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2) | |
6222 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2) | |
6223 | end | |
6224 | for i = 0,1,0.1 do | |
6225 | torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
6226 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1) | |
6227 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1) | |
6228 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
6229 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
6230 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1) | |
6231 | end | |
6232 | CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1) | |
6233 | secrleg.Transparency = 0.5 | |
6234 | seclleg.Transparency = 0.5 | |
6235 | secrarm.Transparency = 0.5 | |
6236 | seclarm.Transparency = 0.5 | |
6237 | seched.Transparency = 0.5 | |
6238 | sectors.Transparency = 0.5 | |
6239 | for i = 0,25,0.1 do | |
6240 | swait() | |
6241 | PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10) | |
6242 | torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025) | |
6243 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),0.025) | |
6244 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),0.025) | |
6245 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
6246 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
6247 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025) | |
6248 | end | |
6249 | --[[secrleg.Transparency = 1 | |
6250 | seclleg.Transparency = 1 | |
6251 | secrarm.Transparency = 1 | |
6252 | seclarm.Transparency = 1 | |
6253 | seched.Transparency = 1 | |
6254 | sectors.Transparency = 1]]-- | |
6255 | torsweld.Part0 = root | |
6256 | hum.WalkSpeed = storehumanoidWS | |
6257 | attack = false | |
6258 | end | |
6259 | ||
6260 | function removelol() | |
6261 | ActiveGia = false | |
6262 | attack = true | |
6263 | hum.WalkSpeed = 0 | |
6264 | for i = 0,2,0.1 do | |
6265 | swait() | |
6266 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2) | |
6267 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2) | |
6268 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2) | |
6269 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2) | |
6270 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2) | |
6271 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2) | |
6272 | end | |
6273 | CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1) | |
6274 | for i = 0,25,0.1 do | |
6275 | swait() | |
6276 | secrleg.Transparency = secrleg.Transparency + 0.00225 | |
6277 | seclleg.Transparency = secrleg.Transparency | |
6278 | secrarm.Transparency = secrleg.Transparency | |
6279 | seclarm.Transparency = secrleg.Transparency | |
6280 | seched.Transparency = secrleg.Transparency | |
6281 | sectors.Transparency = secrleg.Transparency | |
6282 | PixelBlockNeg(1,math.random(1,5),"Add",sectors.CFrame*CFrame.new(math.random(-25,25),0,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.1,MAINRUINCOLOR,-10) | |
6283 | torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025) | |
6284 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(20)),0.025) | |
6285 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(20),math.rad(0),math.rad(-20)),0.025) | |
6286 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
6287 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
6288 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025) | |
6289 | end | |
6290 | CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1) | |
6291 | sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
6292 | sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
6293 | sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
6294 | secrleg.Transparency = 1 | |
6295 | seclleg.Transparency = 1 | |
6296 | secrarm.Transparency = 1 | |
6297 | seclarm.Transparency = 1 | |
6298 | seched.Transparency = 1 | |
6299 | sectors.Transparency = 1 | |
6300 | torsweld.Part0 = root | |
6301 | hum.WalkSpeed = storehumanoidWS | |
6302 | attack = false | |
6303 | end | |
6304 | ||
6305 | function FinalCalamity() | |
6306 | end | |
6307 | ||
6308 | local attacktype = 1 | |
6309 | mouse.Button1Down:connect(function() | |
6310 | if attack == false and attacktype == 1 then | |
6311 | attacktype = 2 | |
6312 | attackone() | |
6313 | elseif attack == false and attacktype == 2 then | |
6314 | attacktype = 3 | |
6315 | attacktwo() | |
6316 | elseif attack == false and attacktype == 3 then | |
6317 | attacktype = 1 | |
6318 | attackthree() | |
6319 | elseif attack == false and attacktype == 4 then | |
6320 | attacktype = 1 | |
6321 | --attackfour() | |
6322 | end | |
6323 | end) | |
6324 | function GLITCHED() | |
6325 | storehumanoidWS = 32 | |
6326 | hum.WalkSpeed = 0 | |
6327 | rainbowmode = false | |
6328 | chaosmode = false | |
6329 | tl1.Enabled = true | |
6330 | tl2.Enabled = true | |
6331 | tl3.Enabled = true | |
6332 | local lust = ModeOfGlitch == 3 | |
6333 | newTheme("rbxassetid://474074203",0,1,1) | |
6334 | coroutine.resume(coroutine.create(function() | |
6335 | tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6336 | tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6337 | tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6338 | attack = true | |
6339 | hum.WalkSpeed = 0 | |
6340 | RecolorTextAndRename("GLITCHED",Color3.new(0,0,0),Color3.new(1,1,1)) | |
6341 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25) | |
6342 | for i = 0,4,0.1 do | |
6343 | swait() | |
6344 | 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) | |
6345 | 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) | |
6346 | 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) | |
6347 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
6348 | 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) | |
6349 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
6350 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
6351 | end | |
6352 | for i = 0,8,0.1 do | |
6353 | swait() | |
6354 | 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) | |
6355 | 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,.035,MAINRUINCOLOR,0) | |
6356 | 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) | |
6357 | 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) | |
6358 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
6359 | 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) | |
6360 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
6361 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
6362 | end | |
6363 | ||
6364 | for i = 0,3,0.1 do | |
6365 | swait() | |
6366 | 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) | |
6367 | 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) | |
6368 | 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) | |
6369 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
6370 | 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) | |
6371 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
6372 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
6373 | end | |
6374 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1) | |
6375 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
6376 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1) | |
6377 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75) | |
6378 | CameraEnshaking(5,2.5) | |
6379 | MAINRUINCOLOR = BrickColor.new("White") | |
6380 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
6381 | for i = 0, 49 do | |
6382 | 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) | |
6383 | end | |
6384 | for i = 0,3,0.1 do | |
6385 | 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) | |
6386 | end | |
6387 | ModeOfGlitch = 14725836963258741 | |
6388 | for i, v in pairs(mw2:GetChildren()) do | |
6389 | if v:IsA("Part") then | |
6390 | v.BrickColor = MAINRUINCOLOR | |
6391 | v.Material = "Neon" | |
6392 | end | |
6393 | end | |
6394 | for i, v in pairs(mw1:GetChildren()) do | |
6395 | if v:IsA("Part") then | |
6396 | v.Transparency = 0 | |
6397 | v.BrickColor = BrickColor.Black() | |
6398 | v.Material = "Neon" | |
6399 | end | |
6400 | end | |
6401 | for i, v in pairs(m:GetChildren()) do | |
6402 | if v:IsA("Part") then | |
6403 | v.BrickColor = BrickColor.new("White") | |
6404 | v.Material = "Neon" | |
6405 | end | |
6406 | end | |
6407 | for i, v in pairs(m2:GetChildren()) do | |
6408 | if v:IsA("Part") then | |
6409 | v.BrickColor = BrickColor.Black() | |
6410 | v.Material = "Neon" | |
6411 | end | |
6412 | end | |
6413 | for i, v in pairs(m3:GetChildren()) do | |
6414 | if v:IsA("Part") then | |
6415 | v.BrickColor = BrickColor.new("White") | |
6416 | v.Material = "Neon" | |
6417 | end | |
6418 | end | |
6419 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6420 | if v:IsA("Part") then | |
6421 | v.Transparency = 0 | |
6422 | v.BrickColor = BrickColor.Black() | |
6423 | v.Material = "Neon" | |
6424 | end | |
6425 | end | |
6426 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6427 | if v:IsA("Part") then | |
6428 | v.Transparency = 0 | |
6429 | v.BrickColor = BrickColor.new("White") | |
6430 | v.Material = "Neon" | |
6431 | end | |
6432 | end | |
6433 | for i = 0,2,0.1 do | |
6434 | swait() | |
6435 | 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) | |
6436 | 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) | |
6437 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
6438 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 10 * math.cos(sine / 0.2))),.2) | |
6439 | 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)))*angles(0,0,math.rad(0 - 10 * math.cos(sine / 0.2))),.2) | |
6440 | 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)))*angles(0,0,math.rad(0 - 10 * math.cos(sine / 0.2))),.2) | |
6441 | end | |
6442 | hum.WalkSpeed = storehumanoidWS | |
6443 | attack = false | |
6444 | end)) | |
6445 | end | |
6446 | ||
6447 | function PurityAlive() | |
6448 | attack = true | |
6449 | hum.WalkSpeed = 0 | |
6450 | storehumanoidWS = 75 | |
6451 | hum.JumpPower = 0 | |
6452 | newThemeCust("rbxassetid://138166791",0,1,1) | |
6453 | kan.TimePosition = 0 | |
6454 | ModeOfGlitch = 9512357895123578 | |
6455 | repeat swait() until kan.IsLoaded | |
6456 | for i = 0, 14, .1 do | |
6457 | swait() | |
6458 | sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100) | |
6459 | 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) | |
6460 | 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) | |
6461 | 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) | |
6462 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
6463 | 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) | |
6464 | 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) | |
6465 | end | |
6466 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1) | |
6467 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
6468 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1) | |
6469 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75) | |
6470 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Black' end) | |
6471 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Black' end) | |
6472 | RecolorTextAndRename("The Greatest Pure",Color3.new(1,1,1),Color3.new(0,1,1)) | |
6473 | CameraEnshaking(5,2.5) | |
6474 | MAINRUINCOLOR = BrickColor.new("Toothpaste") | |
6475 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
6476 | tl1.Enabled = true | |
6477 | tl2.Enabled = true | |
6478 | tl3.Enabled = true | |
6479 | for i = 0, 49 do | |
6480 | 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) | |
6481 | end | |
6482 | for i = 0,3,0.1 do | |
6483 | 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) | |
6484 | end | |
6485 | for i, v in pairs(mw2:GetChildren()) do | |
6486 | if v:IsA("Part") then | |
6487 | v.BrickColor = BrickColor.new("Toothpaste") | |
6488 | v.Material = "Glass" | |
6489 | end | |
6490 | end | |
6491 | for i, v in pairs(mw1:GetChildren()) do | |
6492 | if v:IsA("Part") then | |
6493 | v.Transparency = 0 | |
6494 | v.BrickColor = BrickColor.new("Pastel light blue") | |
6495 | v.Material = "Glass" | |
6496 | end | |
6497 | end | |
6498 | for i, v in pairs(m:GetChildren()) do | |
6499 | if v:IsA("Part") then | |
6500 | v.BrickColor = BrickColor.new("White") | |
6501 | v.Material = "Glass" | |
6502 | end | |
6503 | end | |
6504 | for i, v in pairs(m2:GetChildren()) do | |
6505 | if v:IsA("Part") then | |
6506 | v.BrickColor = BrickColor.new("Toothpaste") | |
6507 | v.Material = "Granite" | |
6508 | end | |
6509 | end | |
6510 | for i, v in pairs(m3:GetChildren()) do | |
6511 | if v:IsA("Part") then | |
6512 | v.BrickColor = BrickColor.new("White") | |
6513 | v.Material = "Glass" | |
6514 | end | |
6515 | end | |
6516 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6517 | if v:IsA("Part") then | |
6518 | v.Transparency = 0 | |
6519 | v.BrickColor = BrickColor.new("White") | |
6520 | v.Material = "Glass" | |
6521 | end | |
6522 | end | |
6523 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6524 | if v:IsA("Part") then | |
6525 | v.Transparency = 0 | |
6526 | v.BrickColor = BrickColor.new("Pastel light blue") | |
6527 | v.Material = "Glass" | |
6528 | end | |
6529 | end | |
6530 | for i = 0,2,0.1 do | |
6531 | swait() | |
6532 | 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) | |
6533 | 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) | |
6534 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
6535 | 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))),.2) | |
6536 | 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))),.2) | |
6537 | 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))),.2) | |
6538 | end | |
6539 | hum.JumpPower = 50 | |
6540 | hum.WalkSpeed = storehumanoidWS | |
6541 | attack = false | |
6542 | end | |
6543 | ||
6544 | mouse.KeyDown:connect(function(k) | |
6545 | if k == "5" and attack == false and ModeOfGlitch ~= 11 then | |
6546 | ModeOfGlitch = 11 | |
6547 | storehumanoidWS = 100 | |
6548 | hum.WalkSpeed = 100 | |
6549 | rainbowmode = false | |
6550 | chaosmode = false | |
6551 | tl1.Enabled = false | |
6552 | tl2.Enabled = false | |
6553 | tl3.Enabled = false | |
6554 | RecolorTextAndRename("Half God",Color3.new(0,0,0),Color3.new(61,21,133)) | |
6555 | newTheme("rbxassetid://213219807",0,1,1) | |
6556 | MAINRUINCOLOR = BrickColor.new("Dark indigo") | |
6557 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6558 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6559 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6560 | for i, v in pairs(mw2:GetChildren()) do | |
6561 | if v:IsA("Part") then | |
6562 | v.BrickColor = MAINRUINCOLOR | |
6563 | v.Material = "Neon" | |
6564 | end | |
6565 | end | |
6566 | for i, v in pairs(m:GetChildren()) do | |
6567 | if v:IsA("Part") then | |
6568 | v.Color = Color3.new(61,21,133) | |
6569 | v.Material = "Neon" | |
6570 | end | |
6571 | end | |
6572 | for i, v in pairs(m3:GetChildren()) do | |
6573 | if v:IsA("Part") then | |
6574 | v.Color = Color3.new(61,21,133) | |
6575 | v.Material = "Neon" | |
6576 | end | |
6577 | end | |
6578 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6579 | if v:IsA("Part") then | |
6580 | v.Transparency = 0.75 | |
6581 | v.Color = Color3.new(61,21,133) | |
6582 | v.Material = "Neon" | |
6583 | end | |
6584 | end | |
6585 | elseif k == "5" and attack == false and ModeOfGlitch == 11 then | |
6586 | resetmode() | |
6587 | end | |
6588 | end) | |
6589 | ||
6590 | mouse.KeyDown:connect(function(k) | |
6591 | if k == "g" and attack == false and ModeOfGlitch ~= 8 then | |
6592 | ModeOfGlitch = 8 | |
6593 | storehumanoidWS = 16 | |
6594 | hum.WalkSpeed = 16 | |
6595 | rainbowmode = false | |
6596 | chaosmode = false | |
6597 | tl1.Enabled = false | |
6598 | tl2.Enabled = false | |
6599 | tl3.Enabled = false | |
6600 | RecolorTextAndRename("Roboter",Color3.new(0,0,0),Color3.new(170,0,0)) | |
6601 | newTheme("rbxassetid://142603362",0,1,0.3) | |
6602 | MAINRUINCOLOR = BrickColor.new("Maroon") | |
6603 | for i, v in pairs(mw2:GetChildren()) do | |
6604 | if v:IsA("Part") then | |
6605 | v.BrickColor = MAINRUINCOLOR | |
6606 | v.Material = "DiamondPlate" | |
6607 | end | |
6608 | end | |
6609 | for i, v in pairs(mw1:GetChildren()) do | |
6610 | if v:IsA("Part") then | |
6611 | v.Transparency = 1 | |
6612 | v.BrickColor = MAINRUINCOLOR | |
6613 | v.Material = "DiamondPlate" | |
6614 | end | |
6615 | end | |
6616 | for i, v in pairs(m:GetChildren()) do | |
6617 | if v:IsA("Part") then | |
6618 | v.BrickColor = BrickColor.new("Maroon") | |
6619 | v.Material = "DiamondPlate" | |
6620 | end | |
6621 | end | |
6622 | for i, v in pairs(m2:GetChildren()) do | |
6623 | if v:IsA("Part") then | |
6624 | v.BrickColor = BrickColor.new("Maroon") | |
6625 | v.Material = "DiamondPlate" | |
6626 | end | |
6627 | end | |
6628 | for i, v in pairs(m3:GetChildren()) do | |
6629 | if v:IsA("Part") then | |
6630 | v.BrickColor = BrickColor.new("Maroon") | |
6631 | v.Material = "DiamondPlate" | |
6632 | end | |
6633 | end | |
6634 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6635 | if v:IsA("Part") then | |
6636 | v.Transparency = 1 | |
6637 | v.BrickColor = BrickColor.new("Maroon") | |
6638 | v.Material = "DiamondPlate" | |
6639 | end | |
6640 | end | |
6641 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6642 | if v:IsA("Part") then | |
6643 | v.Transparency = 1 | |
6644 | v.BrickColor = BrickColor.new("Maroon") | |
6645 | v.Material = "DiamondPlate" | |
6646 | end | |
6647 | end | |
6648 | elseif k == "g" and attack == false and ModeOfGlitch == 8 then | |
6649 | resetmode() | |
6650 | end | |
6651 | end) | |
6652 | ||
6653 | mouse.KeyDown:connect(function(k) | |
6654 | if k == "f" and attack == false and ModeOfGlitch ~= 7 then | |
6655 | ModeOfGlitch = 7 | |
6656 | storehumanoidWS = 16 | |
6657 | hum.WalkSpeed = 16 | |
6658 | rainbowmode = false | |
6659 | chaosmode = false | |
6660 | tl1.Enabled = false | |
6661 | tl2.Enabled = false | |
6662 | tl3.Enabled = false | |
6663 | RecolorTextAndRename("Naturality",Color3.new(1,1,1),Color3.new(0,1,0)) | |
6664 | newTheme("rbxassetid://502602668",0,1,0.3) | |
6665 | MAINRUINCOLOR = BrickColor.new("Lime green") | |
6666 | for i, v in pairs(mw2:GetChildren()) do | |
6667 | if v:IsA("Part") then | |
6668 | v.BrickColor = MAINRUINCOLOR | |
6669 | v.Material = "Neon" | |
6670 | end | |
6671 | end | |
6672 | for i, v in pairs(mw1:GetChildren()) do | |
6673 | if v:IsA("Part") then | |
6674 | v.Transparency = 1 | |
6675 | v.BrickColor = MAINRUINCOLOR | |
6676 | v.Material = "Neon" | |
6677 | end | |
6678 | end | |
6679 | for i, v in pairs(m:GetChildren()) do | |
6680 | if v:IsA("Part") then | |
6681 | v.BrickColor = BrickColor.new("Grime") | |
6682 | v.Material = "Ice" | |
6683 | end | |
6684 | end | |
6685 | for i, v in pairs(m2:GetChildren()) do | |
6686 | if v:IsA("Part") then | |
6687 | v.BrickColor = BrickColor.new("Shamrock") | |
6688 | v.Material = "Glass" | |
6689 | end | |
6690 | end | |
6691 | for i, v in pairs(m3:GetChildren()) do | |
6692 | if v:IsA("Part") then | |
6693 | v.BrickColor = BrickColor.new("Lime green") | |
6694 | v.Material = "Neon" | |
6695 | end | |
6696 | end | |
6697 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6698 | if v:IsA("Part") then | |
6699 | v.Transparency = 1 | |
6700 | v.BrickColor = BrickColor.new("Grime") | |
6701 | v.Material = "Neon" | |
6702 | end | |
6703 | end | |
6704 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6705 | if v:IsA("Part") then | |
6706 | v.Transparency = 1 | |
6707 | v.BrickColor = BrickColor.new("Grime") | |
6708 | v.Material = "Neon" | |
6709 | end | |
6710 | end | |
6711 | elseif k == "f" and attack == false and ModeOfGlitch == 7 then | |
6712 | resetmode() | |
6713 | end | |
6714 | end) | |
6715 | ||
6716 | mouse.KeyDown:connect(function(k) | |
6717 | if k == "h" and attack == false and ModeOfGlitch ~= 10 then | |
6718 | ModeOfGlitch = 10 | |
6719 | storehumanoidWS = 16 | |
6720 | hum.WalkSpeed = 16 | |
6721 | rainbowmode = false | |
6722 | chaosmode = false | |
6723 | tl1.Enabled = false | |
6724 | tl2.Enabled = false | |
6725 | tl3.Enabled = false | |
6726 | RecolorTextAndRename("Sand baby",Color3.new(1,1,1),Color3.new(248,217,109)) | |
6727 | newTheme("rbxassetid://502602668",0,1,0.3) | |
6728 | MAINRUINCOLOR = BrickColor.new("Daisy orange") | |
6729 | for i, v in pairs(mw2:GetChildren()) do | |
6730 | if v:IsA("Part") then | |
6731 | v.BrickColor = MAINRUINCOLOR | |
6732 | v.Material = "Sand" | |
6733 | end | |
6734 | end | |
6735 | for i, v in pairs(mw1:GetChildren()) do | |
6736 | if v:IsA("Part") then | |
6737 | v.Transparency = 1 | |
6738 | v.BrickColor = MAINRUINCOLOR | |
6739 | v.Material = "Sand" | |
6740 | end | |
6741 | end | |
6742 | for i, v in pairs(m:GetChildren()) do | |
6743 | if v:IsA("Part") then | |
6744 | v.BrickColor = BrickColor.new("Daisy orange") | |
6745 | v.Material = "Sand" | |
6746 | end | |
6747 | end | |
6748 | for i, v in pairs(m2:GetChildren()) do | |
6749 | if v:IsA("Part") then | |
6750 | v.BrickColor = BrickColor.new("Daisy orange") | |
6751 | v.Material = "Sand" | |
6752 | end | |
6753 | end | |
6754 | for i, v in pairs(m3:GetChildren()) do | |
6755 | if v:IsA("Part") then | |
6756 | v.BrickColor = BrickColor.new("Daisy orange") | |
6757 | v.Material = "Sand" | |
6758 | end | |
6759 | end | |
6760 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6761 | if v:IsA("Part") then | |
6762 | v.Transparency = 1 | |
6763 | v.BrickColor = BrickColor.new("Daisy orange") | |
6764 | v.Material = "Sand" | |
6765 | end | |
6766 | end | |
6767 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6768 | if v:IsA("Part") then | |
6769 | v.Transparency = 1 | |
6770 | v.BrickColor = BrickColor.new("Daisy orange") | |
6771 | v.Material = "Sand" | |
6772 | end | |
6773 | end | |
6774 | elseif k == "h" and attack == false and ModeOfGlitch == 10 then | |
6775 | resetmode() | |
6776 | end | |
6777 | end) | |
6778 | ||
6779 | mouse.KeyDown:connect(function(k) | |
6780 | if k == "q" and attack == false and ModeOfGlitch ~= 2 then | |
6781 | ModeOfGlitch = 2 | |
6782 | storehumanoidWS = 16 | |
6783 | hum.WalkSpeed = 16 | |
6784 | rainbowmode = false | |
6785 | chaosmode = false | |
6786 | tl1.Enabled = false | |
6787 | tl2.Enabled = false | |
6788 | tl3.Enabled = false | |
6789 | RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1)) | |
6790 | newTheme("rbxassetid://1539245059",0,1,0.3) | |
6791 | MAINRUINCOLOR = BrickColor.new("Toothpaste") | |
6792 | for i, v in pairs(mw2:GetChildren()) do | |
6793 | if v:IsA("Part") then | |
6794 | v.BrickColor = MAINRUINCOLOR | |
6795 | v.Material = "Neon" | |
6796 | end | |
6797 | end | |
6798 | for i, v in pairs(mw1:GetChildren()) do | |
6799 | if v:IsA("Part") then | |
6800 | v.Transparency = 1 | |
6801 | v.BrickColor = MAINRUINCOLOR | |
6802 | v.Material = "Neon" | |
6803 | end | |
6804 | end | |
6805 | for i, v in pairs(m:GetChildren()) do | |
6806 | if v:IsA("Part") then | |
6807 | v.BrickColor = BrickColor.new("White") | |
6808 | v.Material = "Ice" | |
6809 | end | |
6810 | end | |
6811 | for i, v in pairs(m2:GetChildren()) do | |
6812 | if v:IsA("Part") then | |
6813 | v.BrickColor = BrickColor.new("Pastel light blue") | |
6814 | v.Material = "Glass" | |
6815 | end | |
6816 | end | |
6817 | for i, v in pairs(m3:GetChildren()) do | |
6818 | if v:IsA("Part") then | |
6819 | v.BrickColor = BrickColor.new("Toothpaste") | |
6820 | v.Material = "Neon" | |
6821 | end | |
6822 | end | |
6823 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6824 | if v:IsA("Part") then | |
6825 | v.Transparency = 1 | |
6826 | v.BrickColor = BrickColor.new("White") | |
6827 | v.Material = "Neon" | |
6828 | end | |
6829 | end | |
6830 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6831 | if v:IsA("Part") then | |
6832 | v.Transparency = 1 | |
6833 | v.BrickColor = BrickColor.new("White") | |
6834 | v.Material = "Neon" | |
6835 | end | |
6836 | end | |
6837 | elseif k == "q" and attack == false and ModeOfGlitch == 2 then | |
6838 | resetmode() | |
6839 | end | |
6840 | if k == "e" and attack == false and ModeOfGlitch ~= 3 then | |
6841 | ModeOfGlitch = 3 | |
6842 | storehumanoidWS = 16 | |
6843 | hum.WalkSpeed = 16 | |
6844 | rainbowmode = false | |
6845 | chaosmode = false | |
6846 | tl1.Enabled = false | |
6847 | tl2.Enabled = false | |
6848 | tl3.Enabled = false | |
6849 | RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1)) | |
6850 | newTheme("rbxassetid://1283869370",58.15,0.98,1.25) | |
6851 | MAINRUINCOLOR = BrickColor.new("Royal purple") | |
6852 | for i, v in pairs(mw2:GetChildren()) do | |
6853 | if v:IsA("Part") then | |
6854 | v.BrickColor = MAINRUINCOLOR | |
6855 | v.Material = "Neon" | |
6856 | end | |
6857 | end | |
6858 | for i, v in pairs(mw1:GetChildren()) do | |
6859 | if v:IsA("Part") then | |
6860 | v.Transparency = 1 | |
6861 | v.BrickColor = MAINRUINCOLOR | |
6862 | v.Material = "Neon" | |
6863 | end | |
6864 | end | |
6865 | for i, v in pairs(m:GetChildren()) do | |
6866 | if v:IsA("Part") then | |
6867 | v.BrickColor = BrickColor.new("Black") | |
6868 | v.Material = "Ice" | |
6869 | end | |
6870 | end | |
6871 | for i, v in pairs(m2:GetChildren()) do | |
6872 | if v:IsA("Part") then | |
6873 | v.BrickColor = BrickColor.new("Dark indigo") | |
6874 | v.Material = "Glass" | |
6875 | end | |
6876 | end | |
6877 | for i, v in pairs(m3:GetChildren()) do | |
6878 | if v:IsA("Part") then | |
6879 | v.BrickColor = BrickColor.new("Royal purple") | |
6880 | v.Material = "Neon" | |
6881 | end | |
6882 | end | |
6883 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6884 | if v:IsA("Part") then | |
6885 | v.Transparency = 1 | |
6886 | v.BrickColor = BrickColor.new("White") | |
6887 | v.Material = "Neon" | |
6888 | end | |
6889 | end | |
6890 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6891 | if v:IsA("Part") then | |
6892 | v.Transparency = 1 | |
6893 | v.BrickColor = BrickColor.new("White") | |
6894 | v.Material = "Neon" | |
6895 | end | |
6896 | end | |
6897 | elseif k == "e" and attack == false and ModeOfGlitch == 3 then | |
6898 | resetmode() | |
6899 | end | |
6900 | if k == "r" and attack == false and ModeOfGlitch ~= 4 then | |
6901 | ModeOfGlitch = 4 | |
6902 | storehumanoidWS = 16 | |
6903 | hum.WalkSpeed = 16 | |
6904 | rainbowmode = false | |
6905 | chaosmode = true | |
6906 | tl1.Enabled = true | |
6907 | tl2.Enabled = true | |
6908 | tl3.Enabled = true | |
6909 | RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color) | |
6910 | newTheme("rbxassetid://1369263130",0,1,1) | |
6911 | MAINRUINCOLOR = BrickColor.new("Black") | |
6912 | for i, v in pairs(mw2:GetChildren()) do | |
6913 | if v:IsA("Part") then | |
6914 | v.BrickColor = MAINRUINCOLOR | |
6915 | v.Material = "Neon" | |
6916 | end | |
6917 | end | |
6918 | for i, v in pairs(mw1:GetChildren()) do | |
6919 | if v:IsA("Part") then | |
6920 | v.Transparency = 0.75 | |
6921 | v.BrickColor = BrickColor.random() | |
6922 | v.Material = "Neon" | |
6923 | end | |
6924 | end | |
6925 | for i, v in pairs(m:GetChildren()) do | |
6926 | if v:IsA("Part") then | |
6927 | v.BrickColor = BrickColor.new("Black") | |
6928 | v.Material = "Neon" | |
6929 | end | |
6930 | end | |
6931 | for i, v in pairs(m2:GetChildren()) do | |
6932 | if v:IsA("Part") then | |
6933 | v.BrickColor = BrickColor.random() | |
6934 | v.Material = "Neon" | |
6935 | end | |
6936 | end | |
6937 | for i, v in pairs(m3:GetChildren()) do | |
6938 | if v:IsA("Part") then | |
6939 | v.BrickColor = BrickColor.new("Black") | |
6940 | v.Material = "Neon" | |
6941 | end | |
6942 | end | |
6943 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6944 | if v:IsA("Part") then | |
6945 | v.Transparency = 1 | |
6946 | v.BrickColor = BrickColor.new("White") | |
6947 | v.Material = "Neon" | |
6948 | end | |
6949 | end | |
6950 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6951 | if v:IsA("Part") then | |
6952 | v.Transparency = 1 | |
6953 | v.BrickColor = BrickColor.new("White") | |
6954 | v.Material = "Neon" | |
6955 | end | |
6956 | end | |
6957 | elseif k == "r" and attack == false and ModeOfGlitch == 4 then | |
6958 | resetmode() | |
6959 | end | |
6960 | if k == "t" and attack == false and ModeOfGlitch ~= 5 then | |
6961 | ModeOfGlitch = 5 | |
6962 | storehumanoidWS = 16 | |
6963 | hum.WalkSpeed = 16 | |
6964 | rainbowmode = false | |
6965 | chaosmode = false | |
6966 | tl1.Enabled = true | |
6967 | tl2.Enabled = true | |
6968 | tl3.Enabled = true | |
6969 | RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5)) | |
6970 | newTheme("rbxassetid://661079869",0,1.02,1) | |
6971 | MAINRUINCOLOR = BrickColor.new("Bright yellow") | |
6972 | for i, v in pairs(mw2:GetChildren()) do | |
6973 | if v:IsA("Part") then | |
6974 | v.BrickColor = MAINRUINCOLOR | |
6975 | v.Material = "Neon" | |
6976 | end | |
6977 | end | |
6978 | for i, v in pairs(mw1:GetChildren()) do | |
6979 | if v:IsA("Part") then | |
6980 | v.Transparency = 0 | |
6981 | v.BrickColor = MAINRUINCOLOR | |
6982 | v.Material = "Neon" | |
6983 | end | |
6984 | end | |
6985 | for i, v in pairs(m:GetChildren()) do | |
6986 | if v:IsA("Part") then | |
6987 | v.BrickColor = BrickColor.new("Cool yellow") | |
6988 | v.Material = "Ice" | |
6989 | end | |
6990 | end | |
6991 | for i, v in pairs(m2:GetChildren()) do | |
6992 | if v:IsA("Part") then | |
6993 | v.BrickColor = BrickColor.new("Bright yellow") | |
6994 | v.Material = "Ice" | |
6995 | end | |
6996 | end | |
6997 | for i, v in pairs(m3:GetChildren()) do | |
6998 | if v:IsA("Part") then | |
6999 | v.BrickColor = BrickColor.new("Bright yellow") | |
7000 | v.Material = "Neon" | |
7001 | end | |
7002 | end | |
7003 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
7004 | if v:IsA("Part") then | |
7005 | v.Transparency = 1 | |
7006 | v.BrickColor = BrickColor.new("White") | |
7007 | v.Material = "Neon" | |
7008 | end | |
7009 | end | |
7010 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
7011 | if v:IsA("Part") then | |
7012 | v.Transparency = 1 | |
7013 | v.BrickColor = BrickColor.new("White") | |
7014 | v.Material = "Neon" | |
7015 | end | |
7016 | end | |
7017 | elseif k == "t" and attack == false and ModeOfGlitch == 5 then | |
7018 | resetmode() | |
7019 | end | |
7020 | if k == "y" and attack == false and ModeOfGlitch ~= 6 then | |
7021 | ModeOfGlitch = 6 | |
7022 | storehumanoidWS = 75 | |
7023 | hum.WalkSpeed = 75 | |
7024 | rainbowmode = false | |
7025 | chaosmode = false | |
7026 | tl1.Enabled = true | |
7027 | tl2.Enabled = true | |
7028 | tl3.Enabled = true | |
7029 | RecolorTextAndRename("Equinox",Color3.new(0,0,0),Color3.new(1,1,1)) | |
7030 | newTheme("rbxassetid://395351949",0,1,1) | |
7031 | MAINRUINCOLOR = BrickColor.new("White") | |
7032 | for i, v in pairs(mw2:GetChildren()) do | |
7033 | if v:IsA("Part") then | |
7034 | v.BrickColor = MAINRUINCOLOR | |
7035 | v.Material = "Neon" | |
7036 | end | |
7037 | end | |
7038 | for i, v in pairs(mw1:GetChildren()) do | |
7039 | if v:IsA("Part") then | |
7040 | v.Transparency = 0 | |
7041 | v.BrickColor = MAINRUINCOLOR | |
7042 | v.Material = "Neon" | |
7043 | end | |
7044 | end | |
7045 | for i, v in pairs(m:GetChildren()) do | |
7046 | if v:IsA("Part") then | |
7047 | v.BrickColor = BrickColor.new("White") | |
7048 | v.Material = "Ice" | |
7049 | end | |
7050 | end | |
7051 | for i, v in pairs(m2:GetChildren()) do | |
7052 | if v:IsA("Part") then | |
7053 | v.BrickColor = BrickColor.new("Really black") | |
7054 | v.Material = "Ice" | |
7055 | end | |
7056 | end | |
7057 | for i, v in pairs(m3:GetChildren()) do | |
7058 | if v:IsA("Part") then | |
7059 | v.BrickColor = BrickColor.new("White") | |
7060 | v.Material = "Neon" | |
7061 | end | |
7062 | end | |
7063 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
7064 | if v:IsA("Part") then | |
7065 | v.Transparency = 1 | |
7066 | v.BrickColor = BrickColor.new("White") | |
7067 | v.Material = "Neon" | |
7068 | end | |
7069 | end | |
7070 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
7071 | if v:IsA("Part") then | |
7072 | v.Transparency = 1 | |
7073 | v.BrickColor = BrickColor.new("White") | |
7074 | v.Material = "Neon" | |
7075 | end | |
7076 | end | |
7077 | elseif k == "y" and attack == false and ModeOfGlitch == 6 then | |
7078 | resetmode() | |
7079 | end | |
7080 | if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then | |
7081 | ModeOfGlitch = 6127843 | |
7082 | storehumanoidWS = 50 | |
7083 | hum.WalkSpeed = 50 | |
7084 | rainbowmode = true | |
7085 | chaosmode = false | |
7086 | tl1.Enabled = true | |
7087 | tl2.Enabled = true | |
7088 | tl3.Enabled = true | |
7089 | RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1)) | |
7090 | newTheme("rbxassetid://147930134",0,1,1) | |
7091 | MAINRUINCOLOR = BrickColor.new("White") | |
7092 | for i, v in pairs(mw2:GetChildren()) do | |
7093 | if v:IsA("Part") then | |
7094 | v.BrickColor = MAINRUINCOLOR | |
7095 | v.Material = "Neon" | |
7096 | end | |
7097 | end | |
7098 | for i, v in pairs(mw1:GetChildren()) do | |
7099 | if v:IsA("Part") then | |
7100 | v.Transparency = 0 | |
7101 | v.BrickColor = MAINRUINCOLOR | |
7102 | v.Material = "Neon" | |
7103 | end | |
7104 | end | |
7105 | for i, v in pairs(m:GetChildren()) do | |
7106 | if v:IsA("Part") then | |
7107 | v.BrickColor = BrickColor.new("White") | |
7108 | v.Material = "Neon" | |
7109 | end | |
7110 | end | |
7111 | for i, v in pairs(m2:GetChildren()) do | |
7112 | if v:IsA("Part") then | |
7113 | v.BrickColor = BrickColor.new("White") | |
7114 | v.Material = "Neon" | |
7115 | end | |
7116 | end | |
7117 | for i, v in pairs(m3:GetChildren()) do | |
7118 | if v:IsA("Part") then | |
7119 | v.BrickColor = BrickColor.new("White") | |
7120 | v.Material = "Neon" | |
7121 | end | |
7122 | end | |
7123 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
7124 | if v:IsA("Part") then | |
7125 | v.Transparency = 1 | |
7126 | v.BrickColor = BrickColor.new("White") | |
7127 | v.Material = "Neon" | |
7128 | end | |
7129 | end | |
7130 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
7131 | if v:IsA("Part") then | |
7132 | v.Transparency = 1 | |
7133 | v.BrickColor = BrickColor.new("White") | |
7134 | v.Material = "Neon" | |
7135 | end | |
7136 | end | |
7137 | elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then | |
7138 | resetmode() | |
7139 | end | |
7140 | if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then | |
7141 | ModeOfGlitch = 1000000 | |
7142 | storehumanoidWS = 100 | |
7143 | hum.WalkSpeed = 100 | |
7144 | rainbowmode = false | |
7145 | chaosmode = false | |
7146 | tl1.Enabled = true | |
7147 | tl2.Enabled = true | |
7148 | tl3.Enabled = true | |
7149 | RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1)) | |
7150 | newTheme("rbxassetid://1359036559",0,1,1) | |
7151 | MAINRUINCOLOR = BrickColor.new("Bright violet") | |
7152 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7153 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7154 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7155 | for i, v in pairs(mw2:GetChildren()) do | |
7156 | if v:IsA("Part") then | |
7157 | v.BrickColor = MAINRUINCOLOR | |
7158 | v.Material = "Neon" | |
7159 | end | |
7160 | end | |
7161 | for i, v in pairs(mw1:GetChildren()) do | |
7162 | if v:IsA("Part") then | |
7163 | v.Transparency = 0 | |
7164 | v.BrickColor = MAINRUINCOLOR | |
7165 | v.Material = "Neon" | |
7166 | end | |
7167 | end | |
7168 | for i, v in pairs(m:GetChildren()) do | |
7169 | if v:IsA("Part") then | |
7170 | v.Color = Color3.new(0.5,0,1) | |
7171 | v.Material = "Neon" | |
7172 | end | |
7173 | end | |
7174 | for i, v in pairs(m2:GetChildren()) do | |
7175 | if v:IsA("Part") then | |
7176 | v.Color = Color3.new(0.25,0,1) | |
7177 | v.Material = "Neon" | |
7178 | end | |
7179 | end | |
7180 | for i, v in pairs(m3:GetChildren()) do | |
7181 | if v:IsA("Part") then | |
7182 | v.Color = Color3.new(0.45,0,1) | |
7183 | v.Material = "Neon" | |
7184 | end | |
7185 | end | |
7186 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
7187 | if v:IsA("Part") then | |
7188 | v.Transparency = 0.75 | |
7189 | v.Color = Color3.new(0.25,0,1) | |
7190 | v.Material = "Neon" | |
7191 | end | |
7192 | end | |
7193 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
7194 | if v:IsA("Part") then | |
7195 | v.Transparency = 0.75 | |
7196 | v.Color = Color3.new(0.5,0,1) | |
7197 | v.Material = "Neon" | |
7198 | end | |
7199 | end | |
7200 | elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then | |
7201 | resetmode() | |
7202 | end | |
7203 | if k == "m" and attack == false and ModeOfGlitch == 11 and ModeOfGlitch ~= 156156 then | |
7204 | newThemeCust("rbxassetid://633369492",0,1,1) | |
7205 | attack = true | |
7206 | hum.WalkSpeed = 0 | |
7207 | MAINRUINCOLOR = BrickColor.new("Dark indigo") | |
7208 | for i = 0, 24, 0.1 do | |
7209 | swait() | |
7210 | sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100) | |
7211 | 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) | |
7212 | 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) | |
7213 | 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) | |
7214 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
7215 | 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) | |
7216 | 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) | |
7217 | end | |
7218 | CameraEnshaking(1,1) | |
7219 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
7220 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1) | |
7221 | wait(0.55) | |
7222 | CameraEnshaking(1,2) | |
7223 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
7224 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
7225 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
7226 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
7227 | wait(0.55) | |
7228 | CameraEnshaking(1,3) | |
7229 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
7230 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
7231 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
7232 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
7233 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
7234 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1) | |
7235 | wait(0.55) | |
7236 | CameraEnshaking(10,5) | |
7237 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1) | |
7238 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1) | |
7239 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
7240 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85) | |
7241 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1) | |
7242 | sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
7243 | sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR) | |
7244 | sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR) | |
7245 | sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR) | |
7246 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
7247 | sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR) | |
7248 | sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR) | |
7249 | sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR) | |
7250 | sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR) | |
7251 | sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR) | |
7252 | for i = 0, 49 do | |
7253 | 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) | |
7254 | 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) | |
7255 | 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) | |
7256 | 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) | |
7257 | end | |
7258 | ModeOfGlitch = 156156 | |
7259 | storehumanoidWS = 200 | |
7260 | hum.WalkSpeed = 200 | |
7261 | rainbowmode = false | |
7262 | chaosmode = false | |
7263 | tl1.Enabled = true | |
7264 | tl2.Enabled = true | |
7265 | tl3.Enabled = true | |
7266 | RecolorTextAndRename("Full God",Color3.new(0,0,0),Color3.new(61,21,133)) | |
7267 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7268 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7269 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7270 | for i, v in pairs(mw2:GetChildren()) do | |
7271 | if v:IsA("Part") then | |
7272 | v.BrickColor = MAINRUINCOLOR | |
7273 | v.Material = "Neon" | |
7274 | end | |
7275 | end | |
7276 | for i, v in pairs(mw1:GetChildren()) do | |
7277 | if v:IsA("Part") then | |
7278 | v.Transparency = 0 | |
7279 | v.BrickColor = MAINRUINCOLOR | |
7280 | v.Material = "Neon" | |
7281 | end | |
7282 | end | |
7283 | for i, v in pairs(m:GetChildren()) do | |
7284 | if v:IsA("Part") then | |
7285 | v.Color = Color3.new(61,21,133) | |
7286 | v.Material = "Neon" | |
7287 | end | |
7288 | end | |
7289 | for i, v in pairs(m2:GetChildren()) do | |
7290 | if v:IsA("Part") then | |
7291 | v.Color = Color3.new(61,21,133) | |
7292 | v.Material = "Neon" | |
7293 | end | |
7294 | end | |
7295 | for i, v in pairs(m3:GetChildren()) do | |
7296 | if v:IsA("Part") then | |
7297 | v.Color = Color3.new(61,21,133) | |
7298 | v.Material = "Neon" | |
7299 | end | |
7300 | end | |
7301 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
7302 | if v:IsA("Part") then | |
7303 | v.Transparency = 0 | |
7304 | v.Color = Color3.new(61,21,133) | |
7305 | v.Material = "Neon" | |
7306 | end | |
7307 | end | |
7308 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
7309 | if v:IsA("Part") then | |
7310 | v.Transparency = 0 | |
7311 | v.Color = Color3.new(61,21,133) | |
7312 | v.Material = "Neon" | |
7313 | end | |
7314 | attack = false | |
7315 | end | |
7316 | elseif k == "m" and attack == false and ModeOfGlitch == 156156 then | |
7317 | resetmode() | |
7318 | end | |
7319 | if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then | |
7320 | newThemeCust("rbxassetid://1504604335",0,1,1) | |
7321 | attack = true | |
7322 | hum.WalkSpeed = 0 | |
7323 | MAINRUINCOLOR = BrickColor.new("Royal purple") | |
7324 | for i = 0, 24, 0.1 do | |
7325 | swait() | |
7326 | sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100) | |
7327 | 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) | |
7328 | 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) | |
7329 | 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) | |
7330 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
7331 | 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) | |
7332 | 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) | |
7333 | end | |
7334 | CameraEnshaking(1,1) | |
7335 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
7336 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1) | |
7337 | wait(0.55) | |
7338 | CameraEnshaking(1,2) | |
7339 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
7340 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
7341 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
7342 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
7343 | wait(0.55) | |
7344 | CameraEnshaking(1,3) | |
7345 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
7346 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
7347 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
7348 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
7349 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
7350 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1) | |
7351 | wait(0.55) | |
7352 | CameraEnshaking(10,5) | |
7353 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1) | |
7354 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1) | |
7355 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
7356 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85) | |
7357 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1) | |
7358 | sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
7359 | sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR) | |
7360 | sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR) | |
7361 | sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR) | |
7362 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
7363 | sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR) | |
7364 | sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR) | |
7365 | sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR) | |
7366 | sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR) | |
7367 | sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR) | |
7368 | for i = 0, 49 do | |
7369 | 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) | |
7370 | 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) | |
7371 | 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) | |
7372 | 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) | |
7373 | end | |
7374 | ModeOfGlitch = 12345678987654321 | |
7375 | storehumanoidWS = 200 | |
7376 | hum.WalkSpeed = 200 | |
7377 | rainbowmode = false | |
7378 | chaosmode = false | |
7379 | tl1.Enabled = true | |
7380 | tl2.Enabled = true | |
7381 | tl3.Enabled = true | |
7382 | RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1)) | |
7383 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7384 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7385 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7386 | for i, v in pairs(mw2:GetChildren()) do | |
7387 | if v:IsA("Part") then | |
7388 | v.BrickColor = MAINRUINCOLOR | |
7389 | v.Material = "Neon" | |
7390 | end | |
7391 | end | |
7392 | for i, v in pairs(mw1:GetChildren()) do | |
7393 | if v:IsA("Part") then | |
7394 | v.Transparency = 0 | |
7395 | v.BrickColor = MAINRUINCOLOR | |
7396 | v.Material = "Neon" | |
7397 | end | |
7398 | end | |
7399 | for i, v in pairs(m:GetChildren()) do | |
7400 | if v:IsA("Part") then | |
7401 | v.Color = Color3.new(0.5,0,1) | |
7402 | v.Material = "Neon" | |
7403 | end | |
7404 | end | |
7405 | for i, v in pairs(m2:GetChildren()) do | |
7406 | if v:IsA("Part") then | |
7407 | v.Color = Color3.new(0.5,0,1) | |
7408 | v.Material = "Neon" | |
7409 | end | |
7410 | end | |
7411 | for i, v in pairs(m3:GetChildren()) do | |
7412 | if v:IsA("Part") then | |
7413 | v.Color = Color3.new(0.5,0,1) | |
7414 | v.Material = "Neon" | |
7415 | end | |
7416 | end | |
7417 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
7418 | if v:IsA("Part") then | |
7419 | v.Transparency = 0 | |
7420 | v.Color = Color3.new(0.5,0,1) | |
7421 | v.Material = "Neon" | |
7422 | end | |
7423 | end | |
7424 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
7425 | if v:IsA("Part") then | |
7426 | v.Transparency = 0 | |
7427 | v.Color = Color3.new(0.5,0,1) | |
7428 | v.Material = "Neon" | |
7429 | end | |
7430 | attack = false | |
7431 | end | |
7432 | elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then | |
7433 | resetmode() | |
7434 | end | |
7435 | if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 888 then | |
7436 | newThemeCust("rbxassetid://484046397",0,1,1) | |
7437 | attack = true | |
7438 | hum.WalkSpeed = 0 | |
7439 | MAINRUINCOLOR = BrickColor.new("Maroon") | |
7440 | for i = 0, 24, 0.1 do | |
7441 | swait() | |
7442 | sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100) | |
7443 | 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) | |
7444 | 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) | |
7445 | 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) | |
7446 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
7447 | 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) | |
7448 | 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) | |
7449 | end | |
7450 | CameraEnshaking(1,1) | |
7451 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
7452 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1) | |
7453 | wait(0.55) | |
7454 | CameraEnshaking(1,2) | |
7455 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
7456 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
7457 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
7458 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
7459 | wait(0.55) | |
7460 | CameraEnshaking(1,3) | |
7461 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
7462 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
7463 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
7464 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
7465 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
7466 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1) | |
7467 | wait(0.55) | |
7468 | CameraEnshaking(10,5) | |
7469 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1) | |
7470 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1) | |
7471 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
7472 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85) | |
7473 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1) | |
7474 | sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
7475 | sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR) | |
7476 | sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR) | |
7477 | sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR) | |
7478 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
7479 | sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR) | |
7480 | sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR) | |
7481 | sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR) | |
7482 | sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR) | |
7483 | sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR) | |
7484 | for i = 0, 49 do | |
7485 | 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) | |
7486 | 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) | |
7487 | 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) | |
7488 | 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) | |
7489 | end | |
7490 | ModeOfGlitch = 888 | |
7491 | storehumanoidWS = 16 | |
7492 | hum.WalkSpeed = 16 | |
7493 | rainbowmode = false | |
7494 | chaosmode = false | |
7495 | tl1.Enabled = true | |
7496 | tl2.Enabled = true | |
7497 | tl3.Enabled = true | |
7498 | RecolorTextAndRename("Technical Cyborg",Color3.new(0,0,0),Color3.new(170,0,0)) | |
7499 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7500 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7501 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7502 | for i, v in pairs(mw2:GetChildren()) do | |
7503 | if v:IsA("Part") then | |
7504 | v.BrickColor = MAINRUINCOLOR | |
7505 | v.Material = "DiamondPlate" | |
7506 | end | |
7507 | end | |
7508 | for i, v in pairs(mw1:GetChildren()) do | |
7509 | if v:IsA("Part") then | |
7510 | v.Transparency = 0 | |
7511 | v.BrickColor = MAINRUINCOLOR | |
7512 | v.Material = "DiamondPlate" | |
7513 | end | |
7514 | end | |
7515 | for i, v in pairs(m:GetChildren()) do | |
7516 | if v:IsA("Part") then | |
7517 | v.Color = Color3.new(170,0,0) | |
7518 | v.Material = "DiamondPlate" | |
7519 | end | |
7520 | end | |
7521 | for i, v in pairs(m2:GetChildren()) do | |
7522 | if v:IsA("Part") then | |
7523 | v.Color = Color3.new(170,0,0) | |
7524 | v.Material = "DiamondPlate" | |
7525 | end | |
7526 | end | |
7527 | for i, v in pairs(m3:GetChildren()) do | |
7528 | if v:IsA("Part") then | |
7529 | v.Color = Color3.new(170,0,0) | |
7530 | v.Material = "DiamondPlate" | |
7531 | end | |
7532 | end | |
7533 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
7534 | if v:IsA("Part") then | |
7535 | v.Transparency = 0 | |
7536 | v.Color = Color3.new(170,0,0) | |
7537 | v.Material = "DiamondPlate" | |
7538 | end | |
7539 | end | |
7540 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
7541 | if v:IsA("Part") then | |
7542 | v.Transparency = 0 | |
7543 | v.Color = Color3.new(170,0,0) | |
7544 | v.Material = "DiamondPlate" | |
7545 | end | |
7546 | attack = false | |
7547 | end | |
7548 | elseif k == "m" and attack == false and ModeOfGlitch == 888 then | |
7549 | resetmode() | |
7550 | end | |
7551 | if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then | |
7552 | newThemeCust("rbxassetid://723652641",0,1,1) | |
7553 | attack = true | |
7554 | hum.WalkSpeed = 0 | |
7555 | MAINRUINCOLOR = BrickColor.new("Dark blue") | |
7556 | for i = 0, 24, 0.1 do | |
7557 | swait() | |
7558 | sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100) | |
7559 | 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) | |
7560 | 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) | |
7561 | 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) | |
7562 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
7563 | 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) | |
7564 | 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) | |
7565 | end | |
7566 | CameraEnshaking(1,1) | |
7567 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
7568 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1) | |
7569 | wait(0.55) | |
7570 | CameraEnshaking(1,2) | |
7571 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
7572 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
7573 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
7574 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
7575 | wait(0.55) | |
7576 | CameraEnshaking(1,3) | |
7577 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
7578 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
7579 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
7580 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
7581 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
7582 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1) | |
7583 | wait(0.55) | |
7584 | CameraEnshaking(10,5) | |
7585 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1) | |
7586 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1) | |
7587 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
7588 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85) | |
7589 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1) | |
7590 | sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
7591 | sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR) | |
7592 | sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR) | |
7593 | sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR) | |
7594 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
7595 | sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR) | |
7596 | sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR) | |
7597 | sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR) | |
7598 | sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR) | |
7599 | sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR) | |
7600 | for i = 0, 49 do | |
7601 | 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) | |
7602 | 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) | |
7603 | 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) | |
7604 | 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) | |
7605 | end | |
7606 | ModeOfGlitch = 666 | |
7607 | storehumanoidWS = 16 | |
7608 | hum.WalkSpeed = 16 | |
7609 | rainbowmode = false | |
7610 | chaosmode = false | |
7611 | tl1.Enabled = true | |
7612 | tl2.Enabled = true | |
7613 | tl3.Enabled = true | |
7614 | RecolorTextAndRename("TRuE bLue CHaoS gOD",Color3.new(0,0,0),Color3.new(0,16,176)) | |
7615 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7616 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7617 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7618 | for i, v in pairs(mw2:GetChildren()) do | |
7619 | if v:IsA("Part") then | |
7620 | v.BrickColor = MAINRUINCOLOR | |
7621 | v.Material = "Neon" | |
7622 | end | |
7623 | end | |
7624 | for i, v in pairs(mw1:GetChildren()) do | |
7625 | if v:IsA("Part") then | |
7626 | v.Transparency = 0 | |
7627 | v.BrickColor = MAINRUINCOLOR | |
7628 | v.Material = "Neon" | |
7629 | end | |
7630 | end | |
7631 | for i, v in pairs(m:GetChildren()) do | |
7632 | if v:IsA("Part") then | |
7633 | v.Color = Color3.new(0,16,176) | |
7634 | v.Material = "Neon" | |
7635 | end | |
7636 | end | |
7637 | for i, v in pairs(m2:GetChildren()) do | |
7638 | if v:IsA("Part") then | |
7639 | v.Color = Color3.new(0,16,176) | |
7640 | v.Material = "Neon" | |
7641 | end | |
7642 | end | |
7643 | for i, v in pairs(m3:GetChildren()) do | |
7644 | if v:IsA("Part") then | |
7645 | v.Color = Color3.new(0,16,176) | |
7646 | v.Material = "Neon" | |
7647 | end | |
7648 | end | |
7649 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
7650 | if v:IsA("Part") then | |
7651 | v.Transparency = 0 | |
7652 | v.Color = Color3.new(0,16,176) | |
7653 | v.Material = "Neon" | |
7654 | end | |
7655 | end | |
7656 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
7657 | if v:IsA("Part") then | |
7658 | v.Transparency = 0 | |
7659 | v.Color = Color3.new(0,16,176) | |
7660 | v.Material = "Neon" | |
7661 | end | |
7662 | attack = false | |
7663 | end | |
7664 | elseif k == "b" and attack == false and ModeOfGlitch == 666 then | |
7665 | resetmode() | |
7666 | end | |
7667 | if k == "l" and toggleTag == false then | |
7668 | toggleTag = true | |
7669 | text.TextTransparency = 0 | |
7670 | text.TextStrokeTransparency = 0 | |
7671 | elseif k == "l" and toggleTag == true then | |
7672 | toggleTag = false | |
7673 | text.TextTransparency = 1 | |
7674 | text.TextStrokeTransparency = 1 | |
7675 | end | |
7676 | if k == "z" and attack == false and ModeOfGlitch == 1 then | |
7677 | ExtinctiveHeartbreak() | |
7678 | elseif k == "z" and attack == false and ModeOfGlitch == 2 then | |
7679 | PureBomb() | |
7680 | elseif k == "m" and attack == false and ModeOfGlitch == 2 then | |
7681 | PurityAlive() | |
7682 | elseif k == "m" and attack == false and ModeOfGlitch == 9512357895123578 then | |
7683 | resetmode() | |
7684 | elseif k == "z" and attack == false and ModeOfGlitch == 9512357895123578 then | |
7685 | FinalCalam() | |
7686 | elseif k == "x" and attack == false and ModeOfGlitch == 9512357895123578 then | |
7687 | PureBomb() | |
7688 | elseif k == "m" and attack == false and ModeOfGlitch == 3 then | |
7689 | GLITCHED() | |
7690 | elseif k == "z" and attack == false and ModeOfGlitch == 10 then | |
7691 | SandBomb() | |
7692 | elseif k == "z" and attack == false and ModeOfGlitch == 888 then | |
7693 | CyborgBegone() | |
7694 | elseif k == "x" and attack == false and ModeOfGlitch == 888 then | |
7695 | StarfallEX() | |
7696 | elseif k == "z" and attack == false and ModeOfGlitch == 11 then | |
7697 | HalfGodStirke() | |
7698 | elseif k == "m" and attack == false and ModeOfGlitch == 14725836963258741 then | |
7699 | resetmode() | |
7700 | elseif k == "z" and attack == false and ModeOfGlitch == 14725836963258741 then | |
7701 | GlitchedStike() | |
7702 | elseif k == "x" and attack == false and ModeOfGlitch == 14785236963258741 then | |
7703 | Starfall() | |
7704 | elseif k == "z" and attack == false and ModeOfGlitch == 7 then | |
7705 | NatureBomb() | |
7706 | elseif k == "z" and attack == false and ModeOfGlitch == 3 then | |
7707 | scattercorrupt() | |
7708 | elseif k == "x" and attack == false and ModeOfGlitch == 10 then | |
7709 | SandBombs() | |
7710 | elseif k == "z" and attack == false and ModeOfGlitch == 4 then | |
7711 | ChaosGroundStrike() | |
7712 | elseif k == "z" and attack == false and ModeOfGlitch == 5 then | |
7713 | Judgement() | |
7714 | elseif k == "x" and attack == false and ModeOfGlitch == 11 then | |
7715 | HalfGodShow() | |
7716 | elseif k == "f" and attack == false and ModeOfGlitch == 5 then | |
7717 | HolyBarrier() | |
7718 | elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then | |
7719 | Starfall() | |
7720 | elseif k == "z" and attack == false and ModeOfGlitch == 6 then | |
7721 | yinyangi() | |
7722 | elseif k == "x" and attack == false and ModeOfGlitch == 6 then | |
7723 | MeteorStrike() | |
7724 | elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then | |
7725 | Wip() | |
7726 | elseif k == "z" and attack == false and ModeOfGlitch == 8 then | |
7727 | RobotLazer() | |
7728 | elseif k == "x" and attack == false and ModeOfGlitch == 8 then | |
7729 | RobotGroundStrike() | |
7730 | elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then | |
7731 | StarfallEX() | |
7732 | elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then | |
7733 | FinalCalam() | |
7734 | end | |
7735 | if k == "n" and attack == false then | |
7736 | Blink() | |
7737 | elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then | |
7738 | StarDivision() | |
7739 | end | |
7740 | if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then | |
7741 | UniversalCollapse() | |
7742 | end | |
7743 | if k == "k" and attack == false and ModeOfGlitch == 666 or ModeOfGlitch == 888 or ModeOfGlitch == 9512357895123578 or ModeOfGlitch == 14725836963258741 and hum.WalkSpeed < 200 then | |
7744 | hum.WalkSpeed = 16 + 184 | |
7745 | elseif k == "k" and attack == false and ModeOfGlitch == 666 or ModeOfGlitch == 888 or ModeOfGlitch == 9512357895123578 or ModeOfGlitch == 14725836963258741 and hum.WalkSpeed == 200 then | |
7746 | hum.WalkSpeed = 200 - 184 | |
7747 | end | |
7748 | if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then | |
7749 | UniversalSpark() | |
7750 | end | |
7751 | if k == "z" and attack == false and ModeOfGlitch == 666 then | |
7752 | StarDivision() | |
7753 | end | |
7754 | if k == "x" and attack == false and ModeOfGlitch == 666 then | |
7755 | Starfall() | |
7756 | end | |
7757 | if k == "m" and attack == false and ModeOfGlitch == 4 then | |
7758 | ChaosBegone() | |
7759 | elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then | |
7760 | THEHELLITSTHATBIG() | |
7761 | elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then | |
7762 | removelol() | |
7763 | end | |
7764 | end) | |
7765 | mouse.KeyUp:connect(function(k) | |
7766 | if k == "f" and ModeOfGlitch == 5 then | |
7767 | shielding = false | |
7768 | end | |
7769 | if k == "z" and ModeOfGlitch == 5 then | |
7770 | judgement = false | |
7771 | end | |
7772 | end) | |
7773 | coroutine.resume(coroutine.create(function() | |
7774 | while true do | |
7775 | swait(2) | |
7776 | if rainbowmode == true or ModeOfGlitch == 6 or ModeOfGlitch == 11 then | |
7777 | if eff == true then | |
7778 | sphereMK(5,0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),-6,math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),1.5,1.5,10,-0.015,MAINRUINCOLOR,0) | |
7779 | end | |
7780 | end | |
7781 | end | |
7782 | end)) | |
7783 | coroutine.resume(coroutine.create(function() | |
7784 | while true do | |
7785 | swait(2) | |
7786 | if shielding == true then | |
7787 | end | |
7788 | end | |
7789 | end)) | |
7790 | ||
7791 | ||
7792 | coroutine.resume(coroutine.create(function() | |
7793 | while true do | |
7794 | if ModeOfGlitch == 1000000 then | |
7795 | swait(0.5) | |
7796 | end | |
7797 | swait() | |
7798 | if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 or ModeOfGlitch == 888 or ModeOfGlitch == 9512357895123578 or ModeOfGlitch == 14725836963258741 then | |
7799 | sphereMK(5,0.5,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-15,15)),math.rad(math.random(-15,15)),0),1,1,15,-0.01,MAINRUINCOLOR,0) | |
7800 | end | |
7801 | if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 or ModeOfGlitch == 888 or ModeOfGlitch == 9512357895123578 or ModeOfGlitch == 14725836963258741 then | |
7802 | sphereMK(5,math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-75,75),-25,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),0),1,1,50,-0.01,MAINRUINCOLOR,0) | |
7803 | end | |
7804 | end | |
7805 | end)) | |
7806 | ||
7807 | ||
7808 | ||
7809 | coroutine.resume(coroutine.create(function() | |
7810 | while true do | |
7811 | swait(2) | |
7812 | if chaosmode == true then | |
7813 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
7814 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
7815 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
7816 | RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color) | |
7817 | for i, v in pairs(mw1:GetChildren()) do | |
7818 | if v:IsA("Part") then | |
7819 | v.Transparency = 0.75 | |
7820 | v.BrickColor = BrickColor.random() | |
7821 | v.Material = "Neon" | |
7822 | end | |
7823 | end | |
7824 | for i, v in pairs(m2:GetChildren()) do | |
7825 | if v:IsA("Part") then | |
7826 | v.BrickColor = BrickColor.random() | |
7827 | v.Material = "Neon" | |
7828 | end | |
7829 | end | |
7830 | for i, v in pairs(secondchar:GetChildren()) do | |
7831 | if v:IsA("Part") then | |
7832 | v.BrickColor = BrickColor.random() | |
7833 | v.Material = "Neon" | |
7834 | end | |
7835 | end | |
7836 | end | |
7837 | end | |
7838 | end)) | |
7839 | Humanoid.Name = "STARGLITCHER" | |
7840 | Humanoid.MaxHealth = math.huge | |
7841 | Humanoid.Health = math.huge | |
7842 | Instance.new("ForceField",char).Visible = false | |
7843 | Humanoid.Animator.Parent = nil | |
7844 | idleanim=.4 | |
7845 | while true do | |
7846 | if rainbowmode == false then | |
7847 | tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7848 | tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7849 | tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7850 | for i, v in pairs(secondchar:GetChildren()) do | |
7851 | if v:IsA("Part") then | |
7852 | v.BrickColor = MAINRUINCOLOR | |
7853 | v.Material = "Neon" | |
7854 | end | |
7855 | end | |
7856 | if chaosmode == false then | |
7857 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7858 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7859 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
7860 | for i, v in pairs(secondchar:GetChildren()) do | |
7861 | if v:IsA("Part") then | |
7862 | v.BrickColor = MAINRUINCOLOR | |
7863 | v.Material = "Neon" | |
7864 | end | |
7865 | end | |
7866 | end | |
7867 | end | |
7868 | if rainbowmode == true then | |
7869 | RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500)) | |
7870 | MAINRUINCOLOR = BrickColor.new("White") | |
7871 | tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
7872 | tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
7873 | tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
7874 | tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
7875 | tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
7876 | tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
7877 | for i, v in pairs(m:GetChildren()) do | |
7878 | if v:IsA("Part") then | |
7879 | v.Color = Color3.new(r/255,g/255,b/255) | |
7880 | end | |
7881 | end | |
7882 | for i, v in pairs(m2:GetChildren()) do | |
7883 | if v:IsA("Part") then | |
7884 | v.Color = Color3.new(r/255,g/255,b/255) | |
7885 | end | |
7886 | end | |
7887 | for i, v in pairs(secondchar:GetChildren()) do | |
7888 | if v:IsA("Part") then | |
7889 | v.Color = Color3.new(r/255,g/255,b/255) | |
7890 | v.Material = "Neon" | |
7891 | end | |
7892 | end | |
7893 | for i, v in pairs(m3:GetChildren()) do | |
7894 | if v:IsA("Part") then | |
7895 | v.Color = Color3.new(r/255,g/255,b/255) | |
7896 | end | |
7897 | end | |
7898 | for i, v in pairs(mw1:GetChildren()) do | |
7899 | if v:IsA("Part") then | |
7900 | v.Color = Color3.new(r/255,g/255,b/255) | |
7901 | v.Material = "Neon" | |
7902 | end | |
7903 | end | |
7904 | for i, v in pairs(mw2:GetChildren()) do | |
7905 | if v:IsA("Part") then | |
7906 | v.Color = Color3.new(r/255,g/255,b/255) | |
7907 | v.Material = "Neon" | |
7908 | end | |
7909 | end | |
7910 | end | |
7911 | CameraManager() | |
7912 | swait() | |
7913 | 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) | |
7914 | 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) | |
7915 | 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) | |
7916 | 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) | |
7917 | 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) | |
7918 | 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) | |
7919 | ||
7920 | if attack == false and ActiveGia == false then | |
7921 | torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
7922 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1) | |
7923 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1) | |
7924 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
7925 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
7926 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1) | |
7927 | elseif attack == false and ActiveGia == true then | |
7928 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 888 ~= 14725836963258741 and ModeOfGlitch ~= 9512357895123578 and ModeOfGlitch ~= 9512357895123578 ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then | |
7929 | torsweld.C1=clerp(torsweld.C1,cf(0,-2 + 0.25 * math.cos(sine / 32) ,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),.025) | |
7930 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025) | |
7931 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025) | |
7932 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
7933 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
7934 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025) | |
7935 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 888 or ModeOfGlitch == 666 or ModeOfGlitch == 14725836963258741 or ModeOfGlitch == 9512357895123578 then | |
7936 | torsweld.C1=clerp(torsweld.C1,cf(0,-25 + 0.5 * math.cos(sine / 32) ,-8)*angles(math.rad(20),math.rad(0),math.rad(0)),.025) | |
7937 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(20)),0.025) | |
7938 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(10),math.rad(0),math.rad(-20)),0.025) | |
7939 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,1.5*8,0.6*8)*angles(math.rad(20),math.rad(0),math.rad(0)),0.025) | |
7940 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0.11*8)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025) | |
7941 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025) | |
7942 | end | |
7943 | end | |
7944 | ||
7945 | 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) | |
7946 | 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) | |
7947 | 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) | |
7948 | 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) | |
7949 | 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) | |
7950 | 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) | |
7951 | sine = sine + change | |
7952 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
7953 | local velderp=RootPart.Velocity.y | |
7954 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
7955 | if equipped==true or equipped==false then | |
7956 | if attack==false then | |
7957 | idle=idle+1 | |
7958 | else | |
7959 | idle=0 | |
7960 | end | |
7961 | if idle>=500 then | |
7962 | if attack==false then | |
7963 | --Sheath() | |
7964 | end | |
7965 | end | |
7966 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
7967 | Anim="Jump" | |
7968 | if attack==false then | |
7969 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
7970 | 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) | |
7971 | 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) | |
7972 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
7973 | 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) | |
7974 | 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) | |
7975 | end | |
7976 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
7977 | Anim="Fall" | |
7978 | if attack==false then | |
7979 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
7980 | 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) | |
7981 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
7982 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
7983 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1) | |
7984 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1) | |
7985 | end | |
7986 | elseif torvel<1 and hitfloor~=nil then | |
7987 | Anim="Idle" | |
7988 | if attack==false then | |
7989 | if ModeOfGlitch == 1 or ModeOfGlitch == 8 then | |
7990 | 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) | |
7991 | 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) | |
7992 | 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) | |
7993 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1) | |
7994 | 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) | |
7995 | 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) | |
7996 | ||
7997 | elseif ModeOfGlitch == 11 or ModeOfGlitch == 156156 then | |
7998 | 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) | |
7999 | 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) | |
8000 | 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) | |
8001 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
8002 | 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) | |
8003 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1) | |
8004 | ||
8005 | elseif ModeOfGlitch == 666 or ModeOfGlitch == 888 then | |
8006 | 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) | |
8007 | 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) | |
8008 | 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) | |
8009 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
8010 | 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) | |
8011 | 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) | |
8012 | ||
8013 | elseif ModeOfGlitch == 2 or ModeOfGlitch == 10 or ModeOfGlitch == 6127843 or ModeOfGlitch == 7 then | |
8014 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
8015 | 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) | |
8016 | 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) | |
8017 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
8018 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1) | |
8019 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
8020 | ||
8021 | elseif ModeOfGlitch == 9512357895123578 or ModeOfGlitch == 14725836963258741 then | |
8022 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
8023 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
8024 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
8025 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(-25),0)*angles(math.rad(0 - 25 * math.cos(sine / 0.1164)),math.rad(0 - 30 * math.cos(sine / 0.25)),math.rad(0 - 30 * math.cos(sine / 0.465))),.1) | |
8026 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
8027 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
8028 | ||
8029 | elseif ModeOfGlitch == 3 then | |
8030 | 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) | |
8031 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
8032 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1) | |
8033 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1) | |
8034 | 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) | |
8035 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1) | |
8036 | ||
8037 | elseif ModeOfGlitch == 4 then | |
8038 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1) | |
8039 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1) | |
8040 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
8041 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1) | |
8042 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1) | |
8043 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1) | |
8044 | ||
8045 | elseif ModeOfGlitch == 5 then | |
8046 | 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) | |
8047 | 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) | |
8048 | 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) | |
8049 | 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) | |
8050 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.1) | |
8051 | 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) | |
8052 | ||
8053 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then | |
8054 | 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) | |
8055 | 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) | |
8056 | 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) | |
8057 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
8058 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1) | |
8059 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1) | |
8060 | ||
8061 | elseif ModeOfGlitch == 12345678987654321 then | |
8062 | 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) | |
8063 | 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) | |
8064 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-40)),.1) | |
8065 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1) | |
8066 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1) | |
8067 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
8068 | end | |
8069 | end | |
8070 | elseif torvel>2 and torvel<50 and hitfloor~=nil then | |
8071 | Anim="Walk" | |
8072 | if attack==false then | |
8073 | if ModeOfGlitch == 1 or ModeOfGlitch == 11 then | |
8074 | RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1) | |
8075 | LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1) | |
8076 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1) | |
8077 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 5 * math.cos(sine / 0.325)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 + 5 * math.cos(sine / 8))),.1) | |
8078 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1) | |
8079 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1) | |
8080 | ||
8081 | elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 or ModeOfGlitch == 888 then | |
8082 | RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(5 + 25 * math.cos(sine / 12))),.1) | |
8083 | LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 8))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 12)),math.rad(-5 + 25 * math.cos(sine / 12))),.1) | |
8084 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1) | |
8085 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1) | |
8086 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 - 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1) | |
8087 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1) | |
8088 | ||
8089 | elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 or ModeOfGlitch ~= 888 then | |
8090 | RH.C0=clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1) | |
8091 | LH.C0=clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math.cos(sine / 4))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 25 * math.cos(sine / 8))),.1) | |
8092 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1) | |
8093 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1) | |
8094 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1) | |
8095 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1) | |
8096 | end | |
8097 | end | |
8098 | elseif torvel>=22 and hitfloor~=nil then | |
8099 | Anim="Run" | |
8100 | if attack==false then | |
8101 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 and ModeOfGlitch ~= 888 and ModeOfGlitch ~= 11 and ModeOfGlitch ~= 156156 then | |
8102 | RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
8103 | LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
8104 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1) | |
8105 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1) | |
8106 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 155 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1) | |
8107 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 155 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1) | |
8108 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 or ModeOfGlitch == 11 or ModeOfGlitch == 888 or ModeOfGlitch == 156156 then | |
8109 | 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) | |
8110 | 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) | |
8111 | 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) | |
8112 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
8113 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2) | |
8114 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 2.5 * math.cos(sine / 28))),.2) | |
8115 | end | |
8116 | end | |
8117 | end | |
8118 | end | |
8119 | end |