SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,game,owner = owner,game | |
3 | ||
4 | local RealPlayer = Player | |
5 | do | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | - | I'd like if you wouldnt remove my or NoobyGames's credit, thanks alot ;). |
53 | + | t.Function(t.Name,io.UserInputState,io) |
54 | end | |
55 | end | |
56 | end | |
57 | - | plr = game:GetService("Players").LocalPlayer |
57 | + | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | - | local Controller = plr.PlayerScripts:WaitForChild("ControlScript") |
61 | + | Event.Parent = NLS([==[ |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local Mouse = Player:GetMouse() | |
66 | local UIS = game:GetService("UserInputService") | |
67 | local input = function(io,a) | |
68 | if a then return end | |
69 | --Since InputObject is a client-side instance, we create and pass table instead | |
70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
71 | end | |
72 | UIS.InputBegan:Connect(input) | |
73 | UIS.InputEnded:Connect(input) | |
74 | ||
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | ||
85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
86 | --Real game object | |
87 | local _rg = game | |
88 | ||
89 | --Metatable for fake service | |
90 | local fsmt = { | |
91 | __index = function(self,k) | |
92 | local s = rawget(self,"_RealService") | |
93 | if s then return s[k] end | |
94 | end, | |
95 | __newindex = function(self,k,v) | |
96 | local s = rawget(self,"_RealService") | |
97 | if s then s[k]=v end | |
98 | end, | |
99 | __call = function(self,...) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then return s(...) end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return self[s] | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | } | |
120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
121 | g.service = g.GetService | |
122 | ||
123 | g.RunService = FakeService({ | |
124 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
125 | BindToRenderStep = function(self,name,_,fun) | |
126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
127 | end, | |
128 | UnbindFromRenderStep = function(self,name) | |
129 | self._btrs[name]:Disconnect() | |
130 | end, | |
131 | },"RunService") | |
132 | ||
133 | setmetatable(g,{ | |
134 | __index=function(self,s) | |
135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
137 | end, | |
138 | __newindex = fsmt.__newindex, | |
139 | __call = fsmt.__call | |
140 | }) | |
141 | --Changing owner to fake player object to support owner:GetMouse() | |
142 | game,owner = g,g.Players.LocalPlayer | |
143 | end | |
144 | ||
145 | warn([[Star Glitcher Loaded. | |
146 | All purpose switcher... -- wat | |
147 | ||
148 | It's not over yet. | |
149 | The faith is among us. | |
150 | And yet you still haven't defeated me. | |
151 | Now is my chance to destroy you. | |
152 | Then you're out of the world. | |
153 | With the elemental being struggling to gain power. | |
154 | This is the result. | |
155 | Very unstable and powerful. | |
156 | A insanely chaotic being. | |
157 | Who haven't ever known that one could hold this power. | |
158 | It's the one that has been created by an unknown being. | |
159 | You'll know this name already. | |
160 | Till now. | |
161 | The power is inside your body. | |
162 | You will decide things with this. | |
163 | And the future changes within the power. | |
164 | For now, you'll decide your own. | |
165 | You're one of them who holds this power. | |
166 | And so on, you would get chaotic to everyone else. | |
167 | You seem to dont trust everyone else, but one. | |
168 | That one... you can't know. | |
169 | It's only your decision. | |
170 | At yourself. | |
171 | No mercy, or spare. | |
172 | ||
173 | ||
174 | Created by 'NoobyGames12' | |
175 | Edited by 'danny199990' | |
176 | ]]) | |
177 | print([[Icons: | |
178 | ! = New | |
179 | ? = Spoilers | |
180 | * = Exclusivity | |
181 | ]]) | |
182 | warn([[V 3.3.1 (ON PROGRESS) Update Log: | |
183 | - Originall themes included | |
184 | ! - Calamity's "Z" has changed. | |
185 | ! - Starfall EX added. | |
186 | ! - Mayhem now has Destruction mode. | |
187 | ! - Chaos theme has been changed. | |
188 | ! - Purity's theme has been extended. | |
189 | ? - Corruption's "Z" will have animation sooner. | |
190 | ! - Calamity's "X" is added, named Starfall. | |
191 | * - Catastrophe's "Z" coming soon, same as Calamity's "Z" but more powerful. | |
192 | ! - Divinity's Shield move fixed, wont break anymore(Hold F)(Made by danny199990). | |
193 | ! - Equinox's MeteorStrike move(X) added(Made by danny199990). | |
194 | ! - Divinity's Judgement move(Z) collison issue fixed(Made by danny199990). | |
195 | ! - Divinity's Judgement move(Z) can now be held as long as you want it to. | |
196 | ||
197 | I'd like if you wouldnt remove my or NoobyGames's credit, thanks alot ;) | |
198 | ||
199 | yeah also no | |
200 | ]]) | |
201 | --- its obs smooth af do not touch | |
202 | ---- Sources and functions might be taken from others | |
203 | print'somethin like that' | |
204 | ||
205 | plr = owner | |
206 | char = plr.Character | |
207 | hum = char.Humanoid | |
208 | local cam = game.Workspace.CurrentCamera | |
209 | Camera = cam | |
210 | local CamInterrupt = false | |
211 | local TwoD = false | |
212 | local TargetInfo = {nil, nil} | |
213 | cam.CameraType = "Custom" | |
214 | t = char.Torso | |
215 | h = char.Head | |
216 | ra = char["Right Arm"] | |
217 | la = char["Left Arm"] | |
218 | rl = char["Right Leg"] | |
219 | ll = char["Left Leg"] | |
220 | tors = char.Torso | |
221 | lleg = char["Left Leg"] | |
222 | root = char.HumanoidRootPart | |
223 | hed = char.Head | |
224 | rleg = char["Right Leg"] | |
225 | rarm = char["Right Arm"] | |
226 | larm = char["Left Arm"] | |
227 | radian = math.rad | |
228 | random = math.random | |
229 | Vec3 = Vector3.new | |
230 | Inst = Instance.new | |
231 | cFrame = CFrame.new | |
232 | Euler = CFrame.fromEulerAnglesXYZ | |
233 | vt = Vector3.new | |
234 | bc = BrickColor.new | |
235 | br = BrickColor.random | |
236 | it = Instance.new | |
237 | cf = CFrame.new | |
238 | local eff = true | |
239 | local shielding = false | |
240 | ||
241 | local Booleans = { | |
242 | CamFollow = true, | |
243 | GyroUse = true | |
244 | } | |
245 | ||
246 | function lerp(object, newCFrame, alpha) | |
247 | return object:lerp(newCFrame, alpha) | |
248 | end | |
249 | ||
250 | local Directer = Inst("BodyGyro", root) | |
251 | Directer.MaxTorque = Vec3(0, 0, 0) | |
252 | Directer.P = 600000 | |
253 | local CPart = Inst("Part") | |
254 | CPart.Anchored = true | |
255 | CPart.CanCollide = false | |
256 | CPart.Locked = true | |
257 | CPart.Transparency = 1 | |
258 | ||
259 | local rainbowmode = false | |
260 | local chaosmode = false | |
261 | ||
262 | kan = Instance.new("Sound",char) | |
263 | kan.Volume = 1.25 | |
264 | kan.TimePosition = 0 | |
265 | kan.PlaybackSpeed = 1 | |
266 | kan.Pitch = 1 | |
267 | kan.SoundId = "rbxassetid://614032233" | |
268 | kan.Name = "wrecked" | |
269 | kan.Looped = true | |
270 | kan:Play() | |
271 | ||
272 | function newTheme(ID,timepos,pitch,vol) | |
273 | local kanz = kan | |
274 | --kanz:Stop() | |
275 | --kanz.Volume = vol | |
276 | --kanz.TimePosition = timepos | |
277 | kanz.PlaybackSpeed = pitch | |
278 | kanz.Pitch = pitch | |
279 | kanz.SoundId = ID | |
280 | kanz.Name = "wrecked" | |
281 | kanz.Looped = true | |
282 | kanz.Volume = 0.3 | |
283 | --kanz:Play() | |
284 | --coroutine.resume(coroutine.create(function() | |
285 | --wait(0.05) | |
286 | --end)) | |
287 | end | |
288 | ||
289 | function newThemeCust(ID,timepos,pitch,vol) | |
290 | local kanz = kan | |
291 | kanz:Stop() | |
292 | kanz.Volume = vol | |
293 | kanz.TimePosition = timepos | |
294 | kanz.PlaybackSpeed = pitch | |
295 | kanz.Pitch = pitch | |
296 | kanz.SoundId = ID | |
297 | kanz.Name = "wrecked" | |
298 | kanz.Looped = true | |
299 | kanz:Play() | |
300 | coroutine.resume(coroutine.create(function() | |
301 | wait(0.05) | |
302 | end)) | |
303 | end | |
304 | ||
305 | ||
306 | ||
307 | function CameraShake(Times, Power, PlayerTarget) | |
308 | coroutine.resume(coroutine.create(function() | |
309 | FV = Instance.new("BoolValue", PlayerTarget) | |
310 | FV.Name = "CameraShake" | |
311 | for ShakeNum=1,Times do | |
312 | swait() | |
313 | local ef=Power | |
314 | if ef>=1 then | |
315 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
316 | else | |
317 | ef=Power*10 | |
318 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
319 | end | |
320 | end | |
321 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
322 | FV:Destroy() | |
323 | end)) | |
324 | end | |
325 | ||
326 | function CameraEnshaking(Length,Intensity) | |
327 | coroutine.resume(coroutine.create(function() | |
328 | local intensity = 1*Intensity | |
329 | local rotM = 0.01*Intensity | |
330 | for i = 0, Length, 0.1 do | |
331 | swait() | |
332 | intensity = intensity - 0.05*Intensity/Length | |
333 | rotM = rotM - 0.0005*Intensity/Length | |
334 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
335 | 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) | |
336 | end | |
337 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
338 | end)) | |
339 | end | |
340 | CamShake=function(Part,Distan,Power,Times) | |
341 | local de=Part.Position | |
342 | for i,v in pairs(workspace:children()) do | |
343 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
344 | for _,c in pairs(v:children()) do | |
345 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
346 | local Noob=v.Humanoid | |
347 | if Noob~=nil then | |
348 | coroutine.resume(coroutine.create(function() | |
349 | FV = Instance.new("BoolValue", Noob) | |
350 | FV.Name = "CameraShake" | |
351 | for ShakeNum=1,Times do | |
352 | swait() | |
353 | local ef=Power | |
354 | if ef>=1 then | |
355 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
356 | else | |
357 | ef=Power*10 | |
358 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
359 | end | |
360 | end | |
361 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
362 | FV:Destroy() | |
363 | end)) | |
364 | CameraShake(Times, Power, Noob) | |
365 | end | |
366 | end | |
367 | end | |
368 | end | |
369 | end | |
370 | end | |
371 | ||
372 | function chatfunc(text,color) | |
373 | local chat = coroutine.wrap(function() | |
374 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
375 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
376 | end | |
377 | local naeeym2 = Instance.new("BillboardGui",Character) | |
378 | naeeym2.Size = UDim2.new(0,100,0,40) | |
379 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
380 | naeeym2.Adornee = Character.Head | |
381 | naeeym2.Name = "TalkingBillBoard" | |
382 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
383 | tecks2.BackgroundTransparency = 1 | |
384 | tecks2.BorderSizePixel = 0 | |
385 | tecks2.Text = "" | |
386 | tecks2.Font = "SciFi" | |
387 | tecks2.TextSize = 30 | |
388 | tecks2.TextStrokeTransparency = 0 | |
389 | tecks2.TextColor3 = color | |
390 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
391 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
392 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
393 | tecks3.BackgroundTransparency = 1 | |
394 | tecks3.BorderSizePixel = 0 | |
395 | tecks3.Text = "" | |
396 | tecks3.Font = "SciFi" | |
397 | tecks3.TextSize = 30 | |
398 | tecks3.TextStrokeTransparency = 0 | |
399 | tecks3.TextColor3 = Color3.new(0,0,0) | |
400 | tecks3.TextStrokeColor3 = color | |
401 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
402 | coroutine.resume(coroutine.create(function() | |
403 | while true do | |
404 | swait(1) | |
405 | plr.Character.wrecked.Volume = 0.3 | |
406 | if chaosmode == true then | |
407 | tecks2.TextColor3 = BrickColor.random().Color | |
408 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
409 | end | |
410 | tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
411 | tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
412 | tecks2.Rotation = math.random(-5,5) | |
413 | tecks3.Rotation = math.random(-5,5) | |
414 | end | |
415 | end)) | |
416 | for i = 1,string.len(text),1 do | |
417 | CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115) | |
418 | tecks2.Text = string.sub(text,1,i) | |
419 | tecks3.Text = string.sub(text,1,i) | |
420 | swait(1) | |
421 | end | |
422 | wait(1) | |
423 | local randomrot = math.random(1,2) | |
424 | if randomrot == 1 then | |
425 | for i = 1, 50 do | |
426 | swait() | |
427 | tecks2.Rotation = tecks2.Rotation - .75 | |
428 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
429 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
430 | tecks3.Rotation = tecks2.Rotation + .75 | |
431 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
432 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
433 | end | |
434 | elseif randomrot == 2 then | |
435 | for i = 1, 50 do | |
436 | swait() | |
437 | tecks2.Rotation = tecks2.Rotation + .75 | |
438 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
439 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
440 | tecks3.Rotation = tecks2.Rotation - .75 | |
441 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
442 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
443 | end | |
444 | end | |
445 | naeeym2:Destroy() | |
446 | end) | |
447 | chat() | |
448 | end | |
449 | ||
450 | ||
451 | local Create = LoadLibrary("RbxUtility").Create | |
452 | ||
453 | CFuncs = { | |
454 | ["Part"] = { | |
455 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
456 | local Part = Create("Part"){ | |
457 | Parent = Parent, | |
458 | Reflectance = Reflectance, | |
459 | Transparency = Transparency, | |
460 | CanCollide = false, | |
461 | Locked = true, | |
462 | BrickColor = BrickColor.new(tostring(BColor)), | |
463 | Name = Name, | |
464 | Size = Size, | |
465 | Material = Material, | |
466 | } | |
467 | RemoveOutlines(Part) | |
468 | return Part | |
469 | end; | |
470 | }; | |
471 | ||
472 | ["Mesh"] = { | |
473 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
474 | local Msh = Create(Mesh){ | |
475 | Parent = Part, | |
476 | Offset = OffSet, | |
477 | Scale = Scale, | |
478 | } | |
479 | if Mesh == "SpecialMesh" then | |
480 | Msh.MeshType = MeshType | |
481 | Msh.MeshId = MeshId | |
482 | end | |
483 | return Msh | |
484 | end; | |
485 | }; | |
486 | ||
487 | ["Mesh"] = { | |
488 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
489 | local Msh = Create(Mesh){ | |
490 | Parent = Part, | |
491 | Offset = OffSet, | |
492 | Scale = Scale, | |
493 | } | |
494 | if Mesh == "SpecialMesh" then | |
495 | Msh.MeshType = MeshType | |
496 | Msh.MeshId = MeshId | |
497 | end | |
498 | return Msh | |
499 | end; | |
500 | }; | |
501 | ||
502 | ["Weld"] = { | |
503 | Create = function(Parent, Part0, Part1, C0, C1) | |
504 | local Weld = Create("Weld"){ | |
505 | Parent = Parent, | |
506 | Part0 = Part0, | |
507 | Part1 = Part1, | |
508 | C0 = C0, | |
509 | C1 = C1, | |
510 | } | |
511 | return Weld | |
512 | end; | |
513 | }; | |
514 | ||
515 | ["Sound"] = { | |
516 | Create = function(id, par, vol, pit) | |
517 | coroutine.resume(coroutine.create(function() | |
518 | local S = Create("Sound"){ | |
519 | Volume = vol, | |
520 | Name = "EffectSoundo", | |
521 | Pitch = pit or 1, | |
522 | SoundId = id, | |
523 | Parent = par or workspace, | |
524 | } | |
525 | wait() | |
526 | S:play() | |
527 | game:GetService("Debris"):AddItem(S, 10) | |
528 | end)) | |
529 | end; | |
530 | }; | |
531 | ||
532 | ["LongSound"] = { | |
533 | Create = function(id, par, vol, pit) | |
534 | coroutine.resume(coroutine.create(function() | |
535 | local S = Create("Sound"){ | |
536 | Volume = vol, | |
537 | Pitch = pit or 1, | |
538 | SoundId = id, | |
539 | Parent = par or workspace, | |
540 | } | |
541 | wait() | |
542 | S:play() | |
543 | game:GetService("Debris"):AddItem(S, 30) | |
544 | end)) | |
545 | end; | |
546 | }; | |
547 | ||
548 | ["ParticleEmitter"] = { | |
549 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
550 | local fp = Create("ParticleEmitter"){ | |
551 | Parent = Parent, | |
552 | Color = ColorSequence.new(Color1, Color2), | |
553 | LightEmission = LightEmission, | |
554 | Size = Size, | |
555 | Texture = Texture, | |
556 | Transparency = Transparency, | |
557 | ZOffset = ZOffset, | |
558 | Acceleration = Accel, | |
559 | Drag = Drag, | |
560 | LockedToPart = LockedToPart, | |
561 | VelocityInheritance = VelocityInheritance, | |
562 | EmissionDirection = EmissionDirection, | |
563 | Enabled = Enabled, | |
564 | Lifetime = LifeTime, | |
565 | Rate = Rate, | |
566 | Rotation = Rotation, | |
567 | RotSpeed = RotSpeed, | |
568 | Speed = Speed, | |
569 | VelocitySpread = VelocitySpread, | |
570 | } | |
571 | return fp | |
572 | end; | |
573 | }; | |
574 | ||
575 | CreateTemplate = { | |
576 | ||
577 | }; | |
578 | } | |
579 | ||
580 | ||
581 | ||
582 | New = function(Object, Parent, Name, Data) | |
583 | local Object = Instance.new(Object) | |
584 | for Index, Value in pairs(Data or {}) do | |
585 | Object[Index] = Value | |
586 | end | |
587 | Object.Parent = Parent | |
588 | Object.Name = Name | |
589 | return Object | |
590 | end | |
591 | local halocolor = BrickColor.new("Pastel light blue") | |
592 | local halocolor2 = BrickColor.new("Cool yellow") | |
593 | local starcolor = BrickColor.new("Bright yellow") | |
594 | local lunacolor = BrickColor.new("Navy blue") | |
595 | local lunacolor2 = BrickColor.new("Bright blue") | |
596 | local wepcolor = BrickColor.new("Really black") | |
597 | local maincolor = BrickColor.new("Really black") | |
598 | local m = Instance.new("Model",char) | |
599 | local m2 = Instance.new("Model",char) | |
600 | local m3 = Instance.new("Model",char) | |
601 | local mw1 = Instance.new("Model",char) | |
602 | local mw2 = Instance.new("Model",char) | |
603 | ||
604 | local extrawingmod1 = Instance.new("Model",char) | |
605 | local extrawingmod2 = Instance.new("Model",char) | |
606 | ||
607 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
608 | local p = Instance.new("Part") | |
609 | p.TopSurface = 0 | |
610 | p.BottomSurface = 0 | |
611 | p.Parent = parent | |
612 | p.Size = Vector3.new(0.1,0.1,0.1) | |
613 | p.Transparency = transparency | |
614 | p.Reflectance = reflectance | |
615 | p.CanCollide = false | |
616 | p.Locked = true | |
617 | p.BrickColor = brickcolor | |
618 | p.Material = material | |
619 | return p | |
620 | end | |
621 | ||
622 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
623 | local mesh = Instance.new("SpecialMesh",parent) | |
624 | mesh.MeshType = meshtype | |
625 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
626 | return mesh | |
627 | end | |
628 | ||
629 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
630 | local mesh = Instance.new("SpecialMesh",parent) | |
631 | mesh.MeshType = "FileMesh" | |
632 | mesh.MeshId = meshid | |
633 | mesh.Scale = Vector3.new(x1,y1,z1) | |
634 | return mesh | |
635 | end | |
636 | ||
637 | ||
638 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
639 | local mesh = Instance.new("SpecialMesh",parent) | |
640 | mesh.MeshType = "FileMesh" | |
641 | mesh.MeshId = meshid | |
642 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
643 | mesh.Scale = Vector3.new(x1,y1,z1) | |
644 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
645 | return mesh | |
646 | end | |
647 | ||
648 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
649 | local weld = Instance.new("Weld") | |
650 | weld.Parent = parent | |
651 | weld.Part0 = part0 | |
652 | weld.Part1 = part1 | |
653 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
654 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
655 | return weld | |
656 | end | |
657 | ||
658 | ||
659 | -------------- | |
660 | local secondchar = Instance.new("Model",char) | |
661 | local GhostCol = BrickColor.new("Really red") | |
662 | local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
663 | CreateMesh(sectors,"Brick",2*8,2*8,1*8) | |
664 | 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)) | |
665 | ||
666 | local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
667 | CreateMesh(seclarm,"Brick",1*8,2*8,1*8) | |
668 | 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)) | |
669 | ||
670 | local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
671 | CreateMesh(secrarm,"Brick",1*8,2*8,1*8) | |
672 | 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)) | |
673 | ||
674 | local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
675 | CreateMesh(seclleg,"Brick",1*8,2*8,1*8) | |
676 | 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)) | |
677 | ||
678 | local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
679 | CreateMesh(secrleg,"Brick",1*8,2*8,1*8) | |
680 | 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)) | |
681 | ||
682 | local seched = CreateParta(secondchar,1,0,"Neon",GhostCol) | |
683 | CreateMesh(seched,"Brick",1*8,1*8,1*8) | |
684 | 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)) | |
685 | -------------- | |
686 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
687 | 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)) | |
688 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
689 | 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)) | |
690 | ||
691 | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
692 | CreateMesh(handle,"Brick",0,0,0) | |
693 | 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)) | |
694 | local valuaring = 10 | |
695 | for i = 0, 49 do | |
696 | valuaring = valuaring + 10 | |
697 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
698 | CreateMesh(rn,"Brick",0.25,0.1,0.1) | |
699 | 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)) | |
700 | end | |
701 | ||
702 | handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
703 | CreateMesh(handle,"Brick",0,0,0) | |
704 | 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)) | |
705 | local valuaring = 10 | |
706 | for i = 0, 49 do | |
707 | valuaring = valuaring + 10 | |
708 | rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
709 | CreateMesh(rn,"Brick",0.5,0.2,0.2) | |
710 | 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)) | |
711 | end | |
712 | ||
713 | ||
714 | local handle = CreateParta(m,1,1,"Neon",maincolor) | |
715 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
716 | 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)) | |
717 | ||
718 | --- Left wing. | |
719 | ||
720 | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
721 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
722 | 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)) | |
723 | ||
724 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
725 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
726 | 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)) | |
727 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
728 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
729 | 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)) | |
730 | A0 = Instance.new('Attachment',wed) | |
731 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
732 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
733 | 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)) | |
734 | A1 = Instance.new('Attachment',wed) | |
735 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
736 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
737 | 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)) | |
738 | ||
739 | tl1 = Instance.new('Trail',wed) | |
740 | tl1.Attachment0 = A0 | |
741 | tl1.Attachment1 = A1 | |
742 | --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
743 | tl1.LightEmission = 1 | |
744 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
745 | tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color) | |
746 | tl1.Lifetime = 0.6 | |
747 | ||
748 | ||
749 | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
750 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
751 | 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)) | |
752 | ||
753 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
754 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
755 | 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)) | |
756 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
757 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
758 | 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)) | |
759 | A0 = Instance.new('Attachment',wed) | |
760 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
761 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
762 | 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)) | |
763 | A1 = Instance.new('Attachment',wed) | |
764 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
765 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
766 | 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)) | |
767 | ||
768 | tl2 = Instance.new('Trail',wed) | |
769 | tl2.Attachment0 = A0 | |
770 | tl2.Attachment1 = A1 | |
771 | --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
772 | tl2.LightEmission = 1 | |
773 | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
774 | tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color) | |
775 | tl2.Lifetime = 0.6 | |
776 | ||
777 | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
778 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
779 | 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)) | |
780 | ||
781 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
782 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
783 | 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)) | |
784 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
785 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
786 | 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)) | |
787 | A0 = Instance.new('Attachment',wed) | |
788 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
789 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
790 | 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)) | |
791 | A1 = Instance.new('Attachment',wed) | |
792 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
793 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
794 | 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)) | |
795 | ||
796 | tl3 = Instance.new('Trail',wed) | |
797 | tl3.Attachment0 = A0 | |
798 | tl3.Attachment1 = A1 | |
799 | --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
800 | tl3.LightEmission = 1 | |
801 | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
802 | tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color) | |
803 | tl3.Lifetime = 0.6 | |
804 | ||
805 | tl1.Enabled = false | |
806 | tl2.Enabled = false | |
807 | tl3.Enabled = false | |
808 | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
809 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
810 | 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)) | |
811 | ||
812 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
813 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
814 | 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)) | |
815 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
816 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
817 | 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)) | |
818 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
819 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
820 | 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)) | |
821 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
822 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
823 | 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)) | |
824 | ||
825 | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
826 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
827 | 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)) | |
828 | ||
829 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
830 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
831 | 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)) | |
832 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
833 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
834 | 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)) | |
835 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
836 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
837 | 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)) | |
838 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
839 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
840 | 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)) | |
841 | ||
842 | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
843 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
844 | 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)) | |
845 | ||
846 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
847 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
848 | 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)) | |
849 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
850 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
851 | 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)) | |
852 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
853 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
854 | 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)) | |
855 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
856 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
857 | 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)) | |
858 | ||
859 | -- Right wing. | |
860 | ||
861 | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
862 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
863 | 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)) | |
864 | ||
865 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
866 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
867 | 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)) | |
868 | A0 = Instance.new('Attachment',wed) | |
869 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
870 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
871 | 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)) | |
872 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
873 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
874 | 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)) | |
875 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
876 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
877 | 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)) | |
878 | A1 = Instance.new('Attachment',wed) | |
879 | ||
880 | tr1 = Instance.new('Trail',wed) | |
881 | tr1.Attachment0 = A0 | |
882 | tr1.Attachment1 = A1 | |
883 | --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
884 | tr1.LightEmission = 1 | |
885 | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
886 | tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color) | |
887 | tr1.Lifetime = 0.6 | |
888 | ||
889 | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
890 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
891 | 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)) | |
892 | ||
893 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
894 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
895 | 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)) | |
896 | A0 = Instance.new('Attachment',wed) | |
897 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
898 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
899 | 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)) | |
900 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
901 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
902 | 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)) | |
903 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
904 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
905 | 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)) | |
906 | A1 = Instance.new('Attachment',wed) | |
907 | ||
908 | tr2 = Instance.new('Trail',wed) | |
909 | tr2.Attachment0 = A0 | |
910 | tr2.Attachment1 = A1 | |
911 | --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
912 | tr2.LightEmission = 1 | |
913 | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
914 | tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color) | |
915 | tr2.Lifetime = 0.6 | |
916 | ||
917 | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
918 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
919 | 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)) | |
920 | ||
921 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
922 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
923 | 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)) | |
924 | A0 = Instance.new('Attachment',wed) | |
925 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
926 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
927 | 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)) | |
928 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
929 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
930 | 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)) | |
931 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
932 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
933 | 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)) | |
934 | A1 = Instance.new('Attachment',wed) | |
935 | ||
936 | tr3 = Instance.new('Trail',wed) | |
937 | tr3.Attachment0 = A0 | |
938 | tr3.Attachment1 = A1 | |
939 | --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
940 | tr3.LightEmission = 1 | |
941 | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
942 | tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color) | |
943 | tr3.Lifetime = 0.6 | |
944 | ||
945 | ||
946 | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
947 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
948 | 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)) | |
949 | ||
950 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
951 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
952 | 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)) | |
953 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
954 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
955 | 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)) | |
956 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
957 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
958 | 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)) | |
959 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
960 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
961 | 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)) | |
962 | ||
963 | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
964 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
965 | 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)) | |
966 | ||
967 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
968 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
969 | 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)) | |
970 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
971 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
972 | 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)) | |
973 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
974 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
975 | 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)) | |
976 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
977 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
978 | 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)) | |
979 | ||
980 | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
981 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
982 | 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)) | |
983 | ||
984 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
985 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
986 | 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)) | |
987 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
988 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
989 | 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)) | |
990 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
991 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
992 | 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)) | |
993 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
994 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
995 | 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)) | |
996 | ||
997 | ---- HERES THE RING | |
998 | ||
999 | ||
1000 | --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
1001 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
1002 | 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)) | |
1003 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1004 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
1005 | 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)) | |
1006 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1007 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
1008 | 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)) | |
1009 | ||
1010 | ||
1011 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1012 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1013 | 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)) | |
1014 | ||
1015 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1016 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1017 | 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)) | |
1018 | ||
1019 | ||
1020 | ||
1021 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1022 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1023 | 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)) | |
1024 | ||
1025 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1026 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1027 | 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)) | |
1028 | ||
1029 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
1030 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
1031 | 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)) | |
1032 | ||
1033 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1034 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
1035 | 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)) | |
1036 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
1037 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
1038 | 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)) | |
1039 | ||
1040 | --- second ring | |
1041 | ||
1042 | ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
1043 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
1044 | 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)) | |
1045 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1046 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
1047 | 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)) | |
1048 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1049 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
1050 | 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)) | |
1051 | ||
1052 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1053 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1054 | 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)) | |
1055 | ||
1056 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1057 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1058 | 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)) | |
1059 | ||
1060 | ||
1061 | ||
1062 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1063 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1064 | 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)) | |
1065 | ||
1066 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1067 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1068 | 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)) | |
1069 | ||
1070 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
1071 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
1072 | 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)) | |
1073 | ||
1074 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1075 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
1076 | 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)) | |
1077 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
1078 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
1079 | 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))]]-- | |
1080 | ||
1081 | ||
1082 | ||
1083 | for i, v in pairs(m:GetChildren()) do | |
1084 | if v:IsA("Part") then | |
1085 | v.BrickColor = BrickColor.new("Really black") | |
1086 | v.Material = "Glass" | |
1087 | end | |
1088 | end | |
1089 | for i, v in pairs(m2:GetChildren()) do | |
1090 | if v:IsA("Part") then | |
1091 | v.BrickColor = BrickColor.new("Crimson") | |
1092 | v.Material = "Granite" | |
1093 | end | |
1094 | end | |
1095 | for i, v in pairs(m3:GetChildren()) do | |
1096 | if v:IsA("Part") then | |
1097 | v.BrickColor = BrickColor.new("Really red") | |
1098 | v.Material = "Neon" | |
1099 | end | |
1100 | end | |
1101 | for i, v in pairs(mw2:GetChildren()) do | |
1102 | if v:IsA("Part") then | |
1103 | v.BrickColor = BrickColor.new("Really red") | |
1104 | v.Material = "Neon" | |
1105 | end | |
1106 | end | |
1107 | for i, v in pairs(mw1:GetChildren()) do | |
1108 | if v:IsA("Part") then | |
1109 | v.Transparency = 1 | |
1110 | v.BrickColor = BrickColor.new("Really red") | |
1111 | v.Material = "Neon" | |
1112 | end | |
1113 | end | |
1114 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
1115 | if v:IsA("Part") then | |
1116 | v.Transparency = 1 | |
1117 | v.BrickColor = BrickColor.new("White") | |
1118 | v.Material = "Neon" | |
1119 | end | |
1120 | end | |
1121 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
1122 | if v:IsA("Part") then | |
1123 | v.Transparency = 1 | |
1124 | v.BrickColor = BrickColor.new("White") | |
1125 | v.Material = "Neon" | |
1126 | end | |
1127 | end | |
1128 | local MAINRUINCOLOR = BrickColor.new("Really red") | |
1129 | ------ | |
1130 | ||
1131 | ||
1132 | function RemoveOutlines(part) | |
1133 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1134 | end | |
1135 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1136 | local Part = Create("Part")({ | |
1137 | Parent = Parent, | |
1138 | Reflectance = Reflectance, | |
1139 | Transparency = Transparency, | |
1140 | CanCollide = false, | |
1141 | Locked = true, | |
1142 | BrickColor = BrickColor.new(tostring(BColor)), | |
1143 | Name = Name, | |
1144 | Size = Size, | |
1145 | Material = Material | |
1146 | }) | |
1147 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1148 | RemoveOutlines(Part) | |
1149 | return Part | |
1150 | end | |
1151 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1152 | local Msh = Create(Mesh)({ | |
1153 | Parent = Part, | |
1154 | Offset = OffSet, | |
1155 | Scale = Scale | |
1156 | }) | |
1157 | if Mesh == "SpecialMesh" then | |
1158 | Msh.MeshType = MeshType | |
1159 | Msh.MeshId = MeshId | |
1160 | end | |
1161 | return Msh | |
1162 | end | |
1163 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
1164 | local Weld = Create("Weld")({ | |
1165 | Parent = Parent, | |
1166 | Part0 = Part0, | |
1167 | Part1 = Part1, | |
1168 | C0 = C0, | |
1169 | C1 = C1 | |
1170 | }) | |
1171 | return Weld | |
1172 | end | |
1173 | ||
1174 | Player=game:GetService("Players").LocalPlayer | |
1175 | Character=Player.Character | |
1176 | PlayerGui=Player.PlayerGui | |
1177 | Backpack=Player.Backpack | |
1178 | Torso=Character.Torso | |
1179 | Head=Character.Head | |
1180 | Humanoid=Character.Humanoid | |
1181 | m=Instance.new('Model',Character) | |
1182 | LeftArm=Character["Left Arm"] | |
1183 | LeftLeg=Character["Left Leg"] | |
1184 | RightArm=Character["Right Arm"] | |
1185 | RightLeg=Character["Right Leg"] | |
1186 | LS=Torso["Left Shoulder"] | |
1187 | LH=Torso["Left Hip"] | |
1188 | RS=Torso["Right Shoulder"] | |
1189 | RH=Torso["Right Hip"] | |
1190 | Face = Head.face | |
1191 | Neck=Torso.Neck | |
1192 | it=Instance.new | |
1193 | attacktype=1 | |
1194 | vt=Vector3.new | |
1195 | cf=CFrame.new | |
1196 | euler=CFrame.fromEulerAnglesXYZ | |
1197 | angles=CFrame.Angles | |
1198 | cloaked=false | |
1199 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1200 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1201 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
1202 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
1203 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
1204 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
1205 | RootPart=Character.HumanoidRootPart | |
1206 | RootJoint=RootPart.RootJoint | |
1207 | RootCF=euler(-1.57,0,3.14) | |
1208 | attack = false | |
1209 | attackdebounce = false | |
1210 | deb=false | |
1211 | equipped=true | |
1212 | hand=false | |
1213 | MMouse=nil | |
1214 | combo=0 | |
1215 | mana=0 | |
1216 | trispeed=.2 | |
1217 | attackmode='none' | |
1218 | local idle=0 | |
1219 | local Anim="Idle" | |
1220 | local Effects={} | |
1221 | local gun=false | |
1222 | local shoot=false | |
1223 | local sine = 0 | |
1224 | local change = 1 | |
1225 | player=nil | |
1226 | ||
1227 | ||
1228 | local toggleTag = true | |
1229 | local txt = Instance.new("BillboardGui", Head) | |
1230 | txt.Adornee = nil | |
1231 | txt.Name = "NameDetect" | |
1232 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
1233 | txt.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
1234 | local text = Instance.new("TextLabel", txt) | |
1235 | text.Size = UDim2.new(10/2, 0, 7/2, 0) | |
1236 | text.FontSize = "Size8" | |
1237 | text.TextScaled = true | |
1238 | text.TextTransparency = 0 | |
1239 | text.BackgroundTransparency = 1 | |
1240 | text.TextTransparency = 0 | |
1241 | text.TextStrokeTransparency = 0 | |
1242 | text.Font = "Fantasy" | |
1243 | text.TextStrokeColor3 = Color3.new(1,0,0) | |
1244 | text.TextColor3 = Color3.new(0,0,0) | |
1245 | text.Text = "Mayhem" | |
1246 | ||
1247 | function RecolorTextAndRename(name,col1,col2) | |
1248 | text.TextStrokeColor3 = col2 | |
1249 | text.TextColor3 = col1 | |
1250 | text.Text = name | |
1251 | end | |
1252 | mouse=Player:GetMouse() | |
1253 | --save shoulders | |
1254 | RSH, LSH=nil, nil | |
1255 | --welds | |
1256 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
1257 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
1258 | LH=Torso["Left Hip"] | |
1259 | RH=Torso["Right Hip"] | |
1260 | TorsoColor=Torso.BrickColor | |
1261 | function NoOutline(Part) | |
1262 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
1263 | end | |
1264 | player=Player | |
1265 | ch=Character | |
1266 | RSH=ch.Torso["Right Shoulder"] | |
1267 | LSH=ch.Torso["Left Shoulder"] | |
1268 | -- | |
1269 | RSH.Parent=nil | |
1270 | LSH.Parent=nil | |
1271 | -- | |
1272 | RW.Name="Right Shoulder" | |
1273 | RW.Part0=ch.Torso | |
1274 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
1275 | RW.C1=cf(0, 0.5, 0) | |
1276 | RW.Part1=ch["Right Arm"] | |
1277 | RW.Parent=ch.Torso | |
1278 | -- | |
1279 | LW.Name="Left Shoulder" | |
1280 | LW.Part0=ch.Torso | |
1281 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
1282 | LW.C1=cf(0, 0.5, 0) | |
1283 | LW.Part1=ch["Left Arm"] | |
1284 | LW.Parent=ch.Torso | |
1285 | ||
1286 | local Stats=Instance.new("BoolValue") | |
1287 | Stats.Name="Stats" | |
1288 | Stats.Parent=Character | |
1289 | local Atk=Instance.new("NumberValue") | |
1290 | Atk.Name="Damage" | |
1291 | Atk.Parent=Stats | |
1292 | Atk.Value=1 | |
1293 | local Def=Instance.new("NumberValue") | |
1294 | Def.Name="Defense" | |
1295 | Def.Parent=Stats | |
1296 | Def.Value=1 | |
1297 | local Speed=Instance.new("NumberValue") | |
1298 | Speed.Name="Speed" | |
1299 | Speed.Parent=Stats | |
1300 | Speed.Value=1 | |
1301 | local Mvmt=Instance.new("NumberValue") | |
1302 | Mvmt.Name="Movement" | |
1303 | Mvmt.Parent=Stats | |
1304 | Mvmt.Value=1 | |
1305 | ||
1306 | local donum=0 | |
1307 | ||
1308 | ||
1309 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
1310 | local fp=it("Part") | |
1311 | fp.formFactor=formfactor | |
1312 | fp.Parent=parent | |
1313 | fp.Reflectance=reflectance | |
1314 | fp.Transparency=transparency | |
1315 | fp.CanCollide=false | |
1316 | fp.Locked=true | |
1317 | fp.BrickColor=brickcolor | |
1318 | fp.Name=name | |
1319 | fp.Size=size | |
1320 | fp.Position=Torso.Position | |
1321 | NoOutline(fp) | |
1322 | fp.Material="SmoothPlastic" | |
1323 | fp:BreakJoints() | |
1324 | return fp | |
1325 | end | |
1326 | ||
1327 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1328 | local mesh=it(Mesh) | |
1329 | mesh.Parent=part | |
1330 | if Mesh=="SpecialMesh" then | |
1331 | mesh.MeshType=meshtype | |
1332 | if meshid~="nil" then | |
1333 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
1334 | end | |
1335 | end | |
1336 | mesh.Offset=offset | |
1337 | mesh.Scale=scale | |
1338 | return mesh | |
1339 | end | |
1340 | ||
1341 | function weld(parent,part0,part1,c0) | |
1342 | local weld=it("Weld") | |
1343 | weld.Parent=parent | |
1344 | weld.Part0=part0 | |
1345 | weld.Part1=part1 | |
1346 | weld.C0=c0 | |
1347 | return weld | |
1348 | end | |
1349 | ||
1350 | local Color1=Torso.BrickColor | |
1351 | ||
1352 | local bodvel=Instance.new("BodyVelocity") | |
1353 | local bg=Instance.new("BodyGyro") | |
1354 | ||
1355 | function swait(num) | |
1356 | if num==0 or num==nil then | |
1357 | game:service'RunService'.Stepped:wait(0) | |
1358 | else | |
1359 | for i=0,num do | |
1360 | game:service'RunService'.Stepped:wait(0) | |
1361 | end | |
1362 | end | |
1363 | end | |
1364 | ||
1365 | -------- RAINBOW LEAVE IT TO ME | |
1366 | local r = 255 | |
1367 | local g = 0 | |
1368 | local b = 0 | |
1369 | coroutine.resume(coroutine.create(function() | |
1370 | while wait() do | |
1371 | for i = 0, 254/5 do | |
1372 | swait() | |
1373 | g = g + 5 | |
1374 | end | |
1375 | for i = 0, 254/5 do | |
1376 | swait() | |
1377 | r = r - 5 | |
1378 | end | |
1379 | for i = 0, 254/5 do | |
1380 | swait() | |
1381 | b = b + 5 | |
1382 | end | |
1383 | for i = 0, 254/5 do | |
1384 | swait() | |
1385 | g = g - 5 | |
1386 | end | |
1387 | for i = 0, 254/5 do | |
1388 | swait() | |
1389 | r = r + 5 | |
1390 | end | |
1391 | for i = 0, 254/5 do | |
1392 | swait() | |
1393 | b = b - 5 | |
1394 | end | |
1395 | end | |
1396 | end)) | |
1397 | ||
1398 | ||
1399 | so = function(id,par,vol,pit) | |
1400 | coroutine.resume(coroutine.create(function() | |
1401 | local sou = Instance.new("Sound",par or workspace) | |
1402 | sou.Volume=vol | |
1403 | sou.Pitch=pit or 1 | |
1404 | sou.SoundId=id | |
1405 | swait() | |
1406 | sou:play() | |
1407 | game:GetService("Debris"):AddItem(sou,6) | |
1408 | end)) | |
1409 | end | |
1410 | ||
1411 | function clerp(a,b,t) | |
1412 | local qa = {QuaternionFromCFrame(a)} | |
1413 | local qb = {QuaternionFromCFrame(b)} | |
1414 | local ax, ay, az = a.x, a.y, a.z | |
1415 | local bx, by, bz = b.x, b.y, b.z | |
1416 | local _t = 1-t | |
1417 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
1418 | end | |
1419 | ||
1420 | function QuaternionFromCFrame(cf) | |
1421 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1422 | local trace = m00 + m11 + m22 | |
1423 | if trace > 0 then | |
1424 | local s = math.sqrt(1 + trace) | |
1425 | local recip = 0.5/s | |
1426 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
1427 | else | |
1428 | local i = 0 | |
1429 | if m11 > m00 then | |
1430 | i = 1 | |
1431 | end | |
1432 | if m22 > (i == 0 and m00 or m11) then | |
1433 | i = 2 | |
1434 | end | |
1435 | if i == 0 then | |
1436 | local s = math.sqrt(m00-m11-m22+1) | |
1437 | local recip = 0.5/s | |
1438 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
1439 | elseif i == 1 then | |
1440 | local s = math.sqrt(m11-m22-m00+1) | |
1441 | local recip = 0.5/s | |
1442 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
1443 | elseif i == 2 then | |
1444 | local s = math.sqrt(m22-m00-m11+1) | |
1445 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
1446 | end | |
1447 | end | |
1448 | end | |
1449 | ||
1450 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1451 | local xs, ys, zs = x + x, y + y, z + z | |
1452 | local wx, wy, wz = w*xs, w*ys, w*zs | |
1453 | local xx = x*xs | |
1454 | local xy = x*ys | |
1455 | local xz = x*zs | |
1456 | local yy = y*ys | |
1457 | local yz = y*zs | |
1458 | local zz = z*zs | |
1459 | 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)) | |
1460 | end | |
1461 | ||
1462 | function QuaternionSlerp(a, b, t) | |
1463 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
1464 | local startInterp, finishInterp; | |
1465 | if cosTheta >= 0.0001 then | |
1466 | if (1 - cosTheta) > 0.0001 then | |
1467 | local theta = math.acos(cosTheta) | |
1468 | local invSinTheta = 1/math.sin(theta) | |
1469 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
1470 | finishInterp = math.sin(t*theta)*invSinTheta | |
1471 | else | |
1472 | startInterp = 1-t | |
1473 | finishInterp = t | |
1474 | end | |
1475 | else | |
1476 | if (1+cosTheta) > 0.0001 then | |
1477 | local theta = math.acos(-cosTheta) | |
1478 | local invSinTheta = 1/math.sin(theta) | |
1479 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
1480 | finishInterp = math.sin(t*theta)*invSinTheta | |
1481 | else | |
1482 | startInterp = t-1 | |
1483 | finishInterp = t | |
1484 | end | |
1485 | end | |
1486 | 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 | |
1487 | end | |
1488 | ||
1489 | local function CFrameFromTopBack(at, top, back) | |
1490 | local right = top:Cross(back) | |
1491 | return CFrame.new(at.x, at.y, at.z, | |
1492 | right.x, top.x, back.x, | |
1493 | right.y, top.y, back.y, | |
1494 | right.z, top.z, back.z) | |
1495 | end | |
1496 | ||
1497 | function Triangle(a, b, c) | |
1498 | local edg1 = (c-a):Dot((b-a).unit) | |
1499 | local edg2 = (a-b):Dot((c-b).unit) | |
1500 | local edg3 = (b-c):Dot((a-c).unit) | |
1501 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
1502 | a, b, c = a, b, c | |
1503 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
1504 | a, b, c = b, c, a | |
1505 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
1506 | a, b, c = c, a, b | |
1507 | else | |
1508 | assert(false, "unreachable") | |
1509 | end | |
1510 | ||
1511 | local len1 = (c-a):Dot((b-a).unit) | |
1512 | local len2 = (b-a).magnitude - len1 | |
1513 | local width = (a + (b-a).unit*len1 - c).magnitude | |
1514 | ||
1515 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
1516 | ||
1517 | local list = {} | |
1518 | ||
1519 | if len1 > 0.01 then | |
1520 | local w1 = Instance.new('WedgePart', m) | |
1521 | game:GetService("Debris"):AddItem(w1,5) | |
1522 | w1.Material = "SmoothPlastic" | |
1523 | w1.FormFactor = 'Custom' | |
1524 | w1.BrickColor = BrickColor.new("Really red") | |
1525 | w1.Transparency = 0 | |
1526 | w1.Reflectance = 0 | |
1527 | w1.Material = "SmoothPlastic" | |
1528 | w1.CanCollide = false | |
1529 | local l1 = Instance.new("PointLight",w1) | |
1530 | l1.Color = Color3.new(170,0,0) | |
1531 | NoOutline(w1) | |
1532 | local sz = Vector3.new(0.2, width, len1) | |
1533 | w1.Size = sz | |
1534 | local sp = Instance.new("SpecialMesh",w1) | |
1535 | sp.MeshType = "Wedge" | |
1536 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
1537 | w1:BreakJoints() | |
1538 | w1.Anchored = true | |
1539 | w1.Parent = workspace | |
1540 | w1.Transparency = 0.7 | |
1541 | table.insert(Effects,{w1,"Disappear",.01}) | |
1542 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
1543 | table.insert(list,w1) | |
1544 | end | |
1545 | ||
1546 | if len2 > 0.01 then | |
1547 | local w2 = Instance.new('WedgePart', m) | |
1548 | game:GetService("Debris"):AddItem(w2,5) | |
1549 | w2.Material = "SmoothPlastic" | |
1550 | w2.FormFactor = 'Custom' | |
1551 | w2.BrickColor = BrickColor.new("Really red") | |
1552 | w2.Transparency = 0 | |
1553 | w2.Reflectance = 0 | |
1554 | w2.Material = "SmoothPlastic" | |
1555 | w2.CanCollide = false | |
1556 | local l2 = Instance.new("PointLight",w2) | |
1557 | l2.Color = Color3.new(170,0,0) | |
1558 | NoOutline(w2) | |
1559 | local sz = Vector3.new(0.2, width, len2) | |
1560 | w2.Size = sz | |
1561 | local sp = Instance.new("SpecialMesh",w2) | |
1562 | sp.MeshType = "Wedge" | |
1563 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
1564 | w2:BreakJoints() | |
1565 | w2.Anchored = true | |
1566 | w2.Parent = workspace | |
1567 | w2.Transparency = 0.7 | |
1568 | table.insert(Effects,{w2,"Disappear",.01}) | |
1569 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
1570 | table.insert(list,w2) | |
1571 | end | |
1572 | return unpack(list) | |
1573 | end | |
1574 | ||
1575 | ||
1576 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1577 | if hit.Parent == nil then | |
1578 | return | |
1579 | end | |
1580 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1581 | for _, v in pairs(hit.Parent:children()) do | |
1582 | if v:IsA("Humanoid") then | |
1583 | h = v | |
1584 | end | |
1585 | end | |
1586 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then | |
1587 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1588 | return | |
1589 | end | |
1590 | local c = Create("ObjectValue")({ | |
1591 | Name = "creator", | |
1592 | Value = game:service("Players").LocalPlayer, | |
1593 | Parent = h | |
1594 | }) | |
1595 | game:GetService("Debris"):AddItem(c, 0.5) | |
1596 | if HitSound ~= nil and HitPitch ~= nil then | |
1597 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1598 | end | |
1599 | local Damage = math.random(minim, maxim) | |
1600 | local blocked = false | |
1601 | local block = hit.Parent:findFirstChild("Block") | |
1602 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1603 | blocked = true | |
1604 | block.Value = block.Value - 1 | |
1605 | print(block.Value) | |
1606 | end | |
1607 | if blocked == false then | |
1608 | HitHealth = h.Health | |
1609 | h.Health = h.Health - Damage | |
1610 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
1611 | print("gained kill") | |
1612 | end | |
1613 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1614 | else | |
1615 | h.Health = h.Health - Damage / 2 | |
1616 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1617 | end | |
1618 | if Type == "Knockdown" then | |
1619 | local hum = hit.Parent.Humanoid | |
1620 | hum.PlatformStand = true | |
1621 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1622 | swait(1) | |
1623 | HHumanoid.PlatformStand = false | |
1624 | end), hum) | |
1625 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1626 | local bodvol = Create("BodyVelocity")({ | |
1627 | velocity = angle * knockback, | |
1628 | P = 5000, | |
1629 | maxForce = Vector3.new(8000, 8000, 8000), | |
1630 | Parent = hit | |
1631 | }) | |
1632 | local rl = Create("BodyAngularVelocity")({ | |
1633 | P = 3000, | |
1634 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1635 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1636 | Parent = hit | |
1637 | }) | |
1638 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
1639 | game:GetService("Debris"):AddItem(rl, 0.5) | |
1640 | elseif Type == "Normal" then | |
1641 | local vp = Create("BodyVelocity")({ | |
1642 | P = 500, | |
1643 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1644 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1645 | }) | |
1646 | if knockback > 0 then | |
1647 | vp.Parent = hit.Parent.Head | |
1648 | end | |
1649 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1650 | elseif Type == "Up" then | |
1651 | local bodyVelocity = Create("BodyVelocity")({ | |
1652 | velocity = Vector3.new(0, 20, 0), | |
1653 | P = 5000, | |
1654 | maxForce = Vector3.new(8000, 8000, 8000), | |
1655 | Parent = hit | |
1656 | }) | |
1657 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1658 | local bodyVelocity = Create("BodyVelocity")({ | |
1659 | velocity = Vector3.new(0, 20, 0), | |
1660 | P = 5000, | |
1661 | maxForce = Vector3.new(8000, 8000, 8000), | |
1662 | Parent = hit | |
1663 | }) | |
1664 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1665 | elseif Type == "Leech" then | |
1666 | local hum = hit.Parent.Humanoid | |
1667 | if hum ~= nil then | |
1668 | for i = 0, 2 do | |
1669 | 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) | |
1670 | end | |
1671 | Humanoid.Health = Humanoid.Health + 10 | |
1672 | end | |
1673 | elseif Type == "UpKnock" then | |
1674 | local hum = hit.Parent.Humanoid | |
1675 | hum.PlatformStand = true | |
1676 | if hum ~= nil then | |
1677 | hitr = true | |
1678 | end | |
1679 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1680 | swait(5) | |
1681 | HHumanoid.PlatformStand = false | |
1682 | hitr = false | |
1683 | end), hum) | |
1684 | local bodyVelocity = Create("BodyVelocity")({ | |
1685 | velocity = Vector3.new(0, 20, 0), | |
1686 | P = 5000, | |
1687 | maxForce = Vector3.new(8000, 8000, 8000), | |
1688 | Parent = hit | |
1689 | }) | |
1690 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1691 | local bodyVelocity = Create("BodyVelocity")({ | |
1692 | velocity = Vector3.new(0, 20, 0), | |
1693 | P = 5000, | |
1694 | maxForce = Vector3.new(8000, 8000, 8000), | |
1695 | Parent = hit | |
1696 | }) | |
1697 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1698 | elseif Type == "Snare" then | |
1699 | local bp = Create("BodyPosition")({ | |
1700 | P = 2000, | |
1701 | D = 100, | |
1702 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1703 | position = hit.Parent.Torso.Position, | |
1704 | Parent = hit.Parent.Torso | |
1705 | }) | |
1706 | game:GetService("Debris"):AddItem(bp, 1) | |
1707 | elseif Type == "Slashnare" then | |
1708 | 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) | |
1709 | for i = 1, math.random(4, 5) do | |
1710 | 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) | |
1711 | end | |
1712 | local bp = Create("BodyPosition")({ | |
1713 | P = 2000, | |
1714 | D = 100, | |
1715 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1716 | position = hit.Parent.Torso.Position, | |
1717 | Parent = hit.Parent.Torso | |
1718 | }) | |
1719 | game:GetService("Debris"):AddItem(bp, 1) | |
1720 | elseif Type == "Spike" then | |
1721 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
1722 | local bp = Create("BodyPosition")({ | |
1723 | P = 2000, | |
1724 | D = 100, | |
1725 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1726 | position = hit.Parent.Torso.Position, | |
1727 | Parent = hit.Parent.Torso | |
1728 | }) | |
1729 | game:GetService("Debris"):AddItem(bp, 1) | |
1730 | elseif Type == "Freeze" then | |
1731 | local BodPos = Create("BodyPosition")({ | |
1732 | P = 50000, | |
1733 | D = 1000, | |
1734 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1735 | position = hit.Parent.Torso.Position, | |
1736 | Parent = hit.Parent.Torso | |
1737 | }) | |
1738 | local BodGy = Create("BodyGyro")({ | |
1739 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
1740 | P = 20000, | |
1741 | Parent = hit.Parent.Torso, | |
1742 | cframe = hit.Parent.Torso.CFrame | |
1743 | }) | |
1744 | hit.Parent.Torso.Anchored = true | |
1745 | coroutine.resume(coroutine.create(function(Part) | |
1746 | swait(1.5) | |
1747 | Part.Anchored = false | |
1748 | end), hit.Parent.Torso) | |
1749 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1750 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1751 | end | |
1752 | local debounce = Create("BoolValue")({ | |
1753 | Name = "DebounceHit", | |
1754 | Parent = hit.Parent, | |
1755 | Value = true | |
1756 | }) | |
1757 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1758 | c = Instance.new("ObjectValue") | |
1759 | c.Name = "creator" | |
1760 | c.Value = Player | |
1761 | c.Parent = h | |
1762 | game:GetService("Debris"):AddItem(c, 0.5) | |
1763 | end | |
1764 | end | |
1765 | function ShowDamage(Pos, Text, Time, Color) | |
1766 | local Rate = 0.03333333333333333 | |
1767 | local Pos = Pos or Vector3.new(0, 0, 0) | |
1768 | local Text = Text or "" | |
1769 | local Time = Time or 2 | |
1770 | local Color = Color or Color3.new(1, 0, 1) | |
1771 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1772 | EffectPart.Anchored = true | |
1773 | local BillboardGui = Create("BillboardGui")({ | |
1774 | Size = UDim2.new(3, 0, 3, 0), | |
1775 | Adornee = EffectPart, | |
1776 | Parent = EffectPart | |
1777 | }) | |
1778 | local TextLabel = Create("TextLabel")({ | |
1779 | BackgroundTransparency = 1, | |
1780 | Size = UDim2.new(1, 0, 1, 0), | |
1781 | Text = Text, | |
1782 | TextColor3 = Color, | |
1783 | TextScaled = true, | |
1784 | Font = Enum.Font.ArialBold, | |
1785 | Parent = BillboardGui | |
1786 | }) | |
1787 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1788 | EffectPart.Parent = game:GetService("Workspace") | |
1789 | delay(0, function() | |
1790 | local Frames = Time / Rate | |
1791 | for Frame = 1, Frames do | |
1792 | wait(Rate) | |
1793 | local Percent = Frame / Frames | |
1794 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1795 | TextLabel.TextTransparency = Percent | |
1796 | end | |
1797 | if EffectPart and EffectPart.Parent then | |
1798 | EffectPart:Destroy() | |
1799 | end | |
1800 | end) | |
1801 | end | |
1802 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
1803 | for _, c in pairs(workspace:children()) do | |
1804 | local hum = c:findFirstChildOfClass("Humanoid") | |
1805 | if hum ~= nil then | |
1806 | local head = c:findFirstChild("Head") | |
1807 | if head ~= nil then | |
1808 | local targ = head.Position - Part.Position | |
1809 | local mag = targ.magnitude | |
1810 | if magni >= mag and c.Name ~= Player.Name then | |
1811 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1812 | end | |
1813 | end | |
1814 | end | |
1815 | end | |
1816 | end | |
1817 | ||
1818 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
1819 | for _, c in pairs(workspace:children()) do | |
1820 | local hum = c:findFirstChild("Humanoid") | |
1821 | if hum ~= nil then | |
1822 | local head = c:findFirstChild("Torso") | |
1823 | if head ~= nil then | |
1824 | local targ = head.Position - Part.Position | |
1825 | local mag = targ.magnitude | |
1826 | if magni >= mag and c.Name ~= Player.Name then | |
1827 | MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05) | |
1828 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1829 | end | |
1830 | end | |
1831 | end | |
1832 | end | |
1833 | end | |
1834 | ||
1835 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1836 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1837 | end | |
1838 | ||
1839 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
1840 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1841 | prt.Anchored=true | |
1842 | prt.CFrame=cframe | |
1843 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
1844 | --http://www.roblox.com/asset/?id=4770560 | |
1845 | game:GetService("Debris"):AddItem(prt,2) | |
1846 | CF=prt.CFrame | |
1847 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
1848 | for i=0,1,0.2 do | |
1849 | wait() | |
1850 | Part.CFrame=CF*cf(0,0,-0.4) | |
1851 | end | |
1852 | for i=0,1,delay do | |
1853 | wait() | |
1854 | --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) | |
1855 | Mesh.Scale=Mesh.Scale | |
1856 | end | |
1857 | for i=0,1,0.1 do | |
1858 | wait() | |
1859 | Part.Transparency=i | |
1860 | end | |
1861 | Part.Parent=nil | |
1862 | end),prt,msh,CF) | |
1863 | end | |
1864 | ||
1865 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1866 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1867 | prt.Anchored=true | |
1868 | prt.Material = "Neon" | |
1869 | prt.CFrame=cframe | |
1870 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1871 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1872 | game:GetService("Debris"):AddItem(prt,5) | |
1873 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1874 | for i=0,1,delay do | |
1875 | swait() | |
1876 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1877 | Part.Transparency=i | |
1878 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1879 | end | |
1880 | Part.Parent=nil | |
1881 | end),prt,msh) | |
1882 | end | |
1883 | ||
1884 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1885 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1886 | prt.Anchored=true | |
1887 | prt.Material = "Neon" | |
1888 | prt.CFrame=cframe | |
1889 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1890 | game:GetService("Debris"):AddItem(prt,5) | |
1891 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1892 | local rtype = rottype | |
1893 | for i=0,1,delay do | |
1894 | swait() | |
1895 | if rtype == 1 then | |
1896 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1897 | elseif rtype == 2 then | |
1898 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1899 | end | |
1900 | Part.Transparency=i | |
1901 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1902 | end | |
1903 | Part.Parent=nil | |
1904 | end),prt,msh) | |
1905 | end | |
1906 | ||
1907 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1908 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1909 | prt.Anchored=true | |
1910 | prt.CFrame=cframe | |
1911 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1912 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
1913 | game:GetService("Debris"):AddItem(prt,5) | |
1914 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1915 | for i=0,1,delay do | |
1916 | wait() | |
1917 | Part.Transparency=i | |
1918 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1919 | end | |
1920 | Part.Parent=nil | |
1921 | end),prt,msh) | |
1922 | end | |
1923 | ||
1924 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
1925 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1926 | prt.Anchored=true | |
1927 | prt.Material = "Neon" | |
1928 | prt.CFrame=cframe | |
1929 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1930 | game:GetService("Debris"):AddItem(prt,5) | |
1931 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1932 | local rtype = rottype | |
1933 | for i=0,1,delay do | |
1934 | swait() | |
1935 | if rtype == 1 then | |
1936 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1937 | elseif rtype == 2 then | |
1938 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1939 | end | |
1940 | Part.Transparency=i | |
1941 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1942 | end | |
1943 | Part.Parent=nil | |
1944 | end),prt,msh) | |
1945 | end | |
1946 | ||
1947 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
1948 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1949 | prt.Anchored=true | |
1950 | prt.Material = "Neon" | |
1951 | prt.CFrame=cframe | |
1952 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
1953 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
1954 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
1955 | game:GetService("Debris"):AddItem(prt,5) | |
1956 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1957 | local rtype = rottype | |
1958 | for i=0,1,delay do | |
1959 | swait() | |
1960 | if rtype == 1 then | |
1961 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1962 | elseif rtype == 2 then | |
1963 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1964 | end | |
1965 | dec.Transparency=i | |
1966 | dec2.Transparency=i | |
1967 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1968 | end | |
1969 | Part.Parent=nil | |
1970 | end),prt,msh) | |
1971 | end | |
1972 | ||
1973 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
1974 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1975 | prt.Anchored=true | |
1976 | prt.Material = "Neon" | |
1977 | prt.CFrame=cframe | |
1978 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
1979 | game:GetService("Debris"):AddItem(prt,5) | |
1980 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1981 | local rtype = rottype | |
1982 | for i=0,1,delay do | |
1983 | swait() | |
1984 | if rtype == 1 then | |
1985 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
1986 | elseif rtype == 2 then | |
1987 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
1988 | end | |
1989 | prt.Transparency=i | |
1990 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
1991 | end | |
1992 | Part.Parent=nil | |
1993 | end),prt,msh) | |
1994 | end | |
1995 | ||
1996 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
1997 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1998 | prt.Anchored=true | |
1999 | prt.Material = "Neon" | |
2000 | prt.CFrame=cframe | |
2001 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1)) | |
2002 | game:GetService("Debris"):AddItem(prt,5) | |
2003 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2004 | local rtype = rottype | |
2005 | for i=0,1,delay do | |
2006 | swait() | |
2007 | if rtype == 1 then | |
2008 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
2009 | elseif rtype == 2 then | |
2010 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
2011 | end | |
2012 | prt.Transparency=i | |
2013 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
2014 | end | |
2015 | Part.Parent=nil | |
2016 | end),prt,msh) | |
2017 | end | |
2018 | ||
2019 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
2020 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2021 | prt.Anchored=true | |
2022 | prt.Material = "Neon" | |
2023 | prt.CFrame=cframe | |
2024 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2025 | game:GetService("Debris"):AddItem(prt,5) | |
2026 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2027 | local rtype = rottype | |
2028 | for i=0,1,delay do | |
2029 | swait() | |
2030 | if rtype == 1 then | |
2031 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2032 | elseif rtype == 2 then | |
2033 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2034 | end | |
2035 | prt.Transparency=i | |
2036 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
2037 | end | |
2038 | Part.Parent=nil | |
2039 | end),prt,msh) | |
2040 | end | |
2041 | ||
2042 | function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
2043 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2044 | prt.Anchored=true | |
2045 | prt.Material = "Neon" | |
2046 | prt.CFrame=cframe | |
2047 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2048 | game:GetService("Debris"):AddItem(prt,5) | |
2049 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2050 | local rtype = rottype | |
2051 | for i=0,1,delay do | |
2052 | swait() | |
2053 | if rtype == 1 then | |
2054 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2055 | elseif rtype == 2 then | |
2056 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2057 | end | |
2058 | prt.Transparency=i | |
2059 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2060 | end | |
2061 | Part.Parent=nil | |
2062 | end),prt,msh) | |
2063 | end | |
2064 | ||
2065 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
2066 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2067 | prt.Anchored=false | |
2068 | prt.CFrame=cframe | |
2069 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2070 | local wld=weld(prt,prt,Parent,cframe) | |
2071 | game:GetService("Debris"):AddItem(prt,5) | |
2072 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
2073 | for i=0,1,delay do | |
2074 | wait() | |
2075 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
2076 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2077 | Part.Transparency=i | |
2078 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2079 | end | |
2080 | Part.Parent=nil | |
2081 | end),prt,msh,wld) | |
2082 | end | |
2083 | ||
2084 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
2085 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2086 | prt.Anchored=false | |
2087 | prt.CFrame=cframe | |
2088 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2089 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
2090 | game:GetService("Debris"):AddItem(prt,5) | |
2091 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
2092 | for i=0,1,delay do | |
2093 | wait() | |
2094 | Weld.C0=euler(i*20,0,0) | |
2095 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2096 | Part.Transparency=i | |
2097 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2098 | end | |
2099 | Part.Parent=nil | |
2100 | end),prt,msh,wld) | |
2101 | end | |
2102 | ||
2103 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2104 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2105 | prt.Anchored=true | |
2106 | prt.CFrame=cframe | |
2107 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2108 | game:GetService("Debris"):AddItem(prt,2) | |
2109 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2110 | for i=0,1,delay do | |
2111 | wait() | |
2112 | Part.CFrame=Part.CFrame | |
2113 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2114 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2115 | prt2.Anchored=true | |
2116 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2117 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
2118 | game:GetService("Debris"):AddItem(prt2,2) | |
2119 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2120 | for i=0,1,0.1 do | |
2121 | wait() | |
2122 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
2123 | end | |
2124 | Part.Parent=nil | |
2125 | end),prt2,msh2) | |
2126 | end | |
2127 | for i=0,1,delay*2 do | |
2128 | wait() | |
2129 | Part.CFrame=Part.CFrame | |
2130 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
2131 | end | |
2132 | Part.Parent=nil | |
2133 | end),prt,msh) | |
2134 | end | |
2135 | ||
2136 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2137 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2138 | prt.Anchored=true | |
2139 | prt.CFrame=cframe | |
2140 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2141 | game:GetService("Debris"):AddItem(prt,2) | |
2142 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2143 | for i=0,1,delay do | |
2144 | wait() | |
2145 | Part.CFrame=Part.CFrame | |
2146 | Part.Transparency=i | |
2147 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2148 | end | |
2149 | Part.Parent=nil | |
2150 | end),prt,msh) | |
2151 | end | |
2152 | ||
2153 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
2154 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2155 | prt.Anchored=true | |
2156 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2157 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2158 | game:GetService("Debris"):AddItem(prt,2) | |
2159 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
2160 | CF=Part.CFrame | |
2161 | Numbb=0 | |
2162 | randnumb=math.random()/10 | |
2163 | rand1=math.random()/10 | |
2164 | for i=0,1,rand1 do | |
2165 | wait() | |
2166 | CF=CF*cf(0,math.random()/2,0) | |
2167 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
2168 | Part.CFrame=CF*euler(Numbb,0,0) | |
2169 | Part.Transparency=i | |
2170 | Numbb=Numbb+randnumb | |
2171 | end | |
2172 | Part.Parent=nil | |
2173 | end),prt,CF,Numbb,randnumb) | |
2174 | end | |
2175 | ||
2176 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2177 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2178 | prt.Anchored=true | |
2179 | prt.CFrame=cframe | |
2180 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
2181 | game:GetService("Debris"):AddItem(prt,5) | |
2182 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2183 | for i=0,1,delay do | |
2184 | wait() | |
2185 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
2186 | Part.Transparency=i | |
2187 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2188 | end | |
2189 | Part.Parent=nil | |
2190 | end),prt,msh) | |
2191 | end | |
2192 | ||
2193 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2194 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2195 | prt.Anchored=true | |
2196 | prt.CFrame=cframe | |
2197 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
2198 | game:GetService("Debris"):AddItem(prt,2) | |
2199 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2200 | for i=0,1,delay do | |
2201 | wait() | |
2202 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
2203 | Part.Transparency=i | |
2204 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2205 | end | |
2206 | Part.Parent=nil | |
2207 | end),prt,msh) | |
2208 | end | |
2209 | ||
2210 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
2211 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2212 | prt.Anchored=true | |
2213 | prt.CFrame=cframe*cf(x,y,z) | |
2214 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
2215 | game:GetService("Debris"):AddItem(prt,5) | |
2216 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
2217 | local num=math.random() | |
2218 | local num2=math.random(-3,2)+math.random() | |
2219 | local numm=0 | |
2220 | for i=0,1,delay*2 do | |
2221 | swait() | |
2222 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
2223 | Part.Transparency=i | |
2224 | numm=numm+0.01 | |
2225 | end | |
2226 | Part.Parent=nil | |
2227 | Mesh.Parent=nil | |
2228 | end),prt,msh,x,y,z) | |
2229 | end | |
2230 | ||
2231 | function dmgstart(dmg,what) | |
2232 | hitcon = what.Touched:connect(function(hit) | |
2233 | local hum = hit.Parent:FindFirstChild("Humanoid") | |
2234 | if hum and not hum:IsDescendantOf(Character) then | |
2235 | hum:TakeDamage(dmg) | |
2236 | end | |
2237 | end) | |
2238 | end | |
2239 | ||
2240 | function dmgstop() | |
2241 | hitcon:disconnect() | |
2242 | end | |
2243 | ||
2244 | function Cloak() | |
2245 | Face.Parent=nil | |
2246 | cloaked=true | |
2247 | for _,v in pairs(Torso.Parent:children()) do | |
2248 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
2249 | coroutine.resume(coroutine.create(function() | |
2250 | for i=0,1,0.2 do | |
2251 | wait() | |
2252 | v.Transparency=i | |
2253 | end | |
2254 | v.Transparency=1 | |
2255 | end)) | |
2256 | end | |
2257 | if v.className=="Hat" then | |
2258 | hatp=v.Handle | |
2259 | coroutine.resume(coroutine.create(function(derp) | |
2260 | for i=0,1,0.2 do | |
2261 | wait() | |
2262 | derp.Transparency=i | |
2263 | end | |
2264 | derp.Transparency=1 | |
2265 | end),hatp) | |
2266 | end | |
2267 | end | |
2268 | for _,v in pairs(m:children()) do | |
2269 | if v.className=="Part" then | |
2270 | coroutine.resume(coroutine.create(function() | |
2271 | for i=0,1,0.2 do | |
2272 | wait() | |
2273 | v.Transparency=i | |
2274 | end | |
2275 | v.Transparency=1 | |
2276 | end)) | |
2277 | end | |
2278 | end | |
2279 | end | |
2280 | ||
2281 | function UnCloak() | |
2282 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) | |
2283 | Face.Parent=Head | |
2284 | cloaked=false | |
2285 | for _,v in pairs(Torso.Parent:children()) do | |
2286 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
2287 | coroutine.resume(coroutine.create(function() | |
2288 | for i=0,1,0.1 do | |
2289 | wait() | |
2290 | v.Transparency=v.Transparency-0.1 | |
2291 | end | |
2292 | v.Transparency=0 | |
2293 | end)) | |
2294 | end | |
2295 | if v.className=="Hat" then | |
2296 | hatp=v.Handle | |
2297 | coroutine.resume(coroutine.create(function(derp) | |
2298 | for i=0,1,0.1 do | |
2299 | wait() | |
2300 | derp.Transparency=derp.Transparency-0.1 | |
2301 | end | |
2302 | derp.Transparency=0 | |
2303 | end),hatp) | |
2304 | end | |
2305 | end | |
2306 | for _,v in pairs(m:children()) do | |
2307 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
2308 | coroutine.resume(coroutine.create(function() | |
2309 | for i=0,1,0.1 do | |
2310 | wait() | |
2311 | v.Transparency=v.Transparency-0.1 | |
2312 | end | |
2313 | v.Transparency=0 | |
2314 | end)) | |
2315 | v.Transparency=0 | |
2316 | end | |
2317 | end | |
2318 | end | |
2319 | ||
2320 | local origcolor = BrickColor.new("Pastel light blue") | |
2321 | ---- This section of explosions. | |
2322 | function Explode(rad,par,pitch,vol,mindam,maxdam) | |
2323 | local expart = Instance.new("Part",char) | |
2324 | local expart2 = Instance.new("Part",char) | |
2325 | local rin = Instance.new("Part",char) | |
2326 | local rin2 = Instance.new("Part",char) | |
2327 | local partMesh = Instance.new("SpecialMesh",expart) | |
2328 | partMesh.MeshType = "Sphere" | |
2329 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
2330 | partMesh2.MeshType = "Sphere" | |
2331 | local partMesh3 = Instance.new("SpecialMesh",rin) | |
2332 | partMesh3.MeshType = "Brick" | |
2333 | local partMesh4 = Instance.new("SpecialMesh",rin2) | |
2334 | partMesh4.MeshType = "Brick" | |
2335 | CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch) | |
2336 | partMesh.Scale = vt(rad,rad,rad) | |
2337 | expart.Size = vt(1,1,1) | |
2338 | expart.Transparency = 0 | |
2339 | expart.Anchored = true | |
2340 | expart.Material = "Neon" | |
2341 | expart.BrickColor = bc("White") | |
2342 | expart.CFrame = par.CFrame | |
2343 | partMesh2.Scale = vt(rad,rad,rad) | |
2344 | expart2.Size = vt(1.15,1.15,1.15) | |
2345 | expart2.Transparency = 0.5 | |
2346 | expart2.Anchored = true | |
2347 | expart2.Material = "Neon" | |
2348 | expart2.BrickColor = par.BrickColor | |
2349 | expart2.CFrame = par.CFrame | |
2350 | rin.Size = vt(1.15,1.15,1.15) | |
2351 | rin.Transparency = 1 | |
2352 | rin.Anchored = true | |
2353 | rin.Material = "Neon" | |
2354 | rin.BrickColor = par.BrickColor | |
2355 | rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2356 | rin2.Size = vt(1.15,1.15,1.15) | |
2357 | rin2.Transparency = 1 | |
2358 | rin2.Anchored = true | |
2359 | rin2.Material = "Neon" | |
2360 | rin2.BrickColor = par.BrickColor | |
2361 | rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2362 | partMesh3.Scale = vt(0,1,0) | |
2363 | partMesh4.Scale = vt(0,1,0) | |
2364 | local dec2 = Instance.new("Decal", rin) | |
2365 | dec2.Face = "Top" | |
2366 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2367 | dec2.Parent = rin | |
2368 | local dec2b = dec2:Clone() | |
2369 | dec2b.Face = "Bottom" | |
2370 | dec2b.Parent = rin | |
2371 | ||
2372 | local dec2a = Instance.new("Decal", rin2) | |
2373 | dec2a.Face = "Top" | |
2374 | dec2a.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2375 | dec2a.Parent = rin2 | |
2376 | local dec2ab = dec2a:Clone() | |
2377 | dec2ab.Face = "Bottom" | |
2378 | dec2ab.Parent = rin2 | |
2379 | expart.CanCollide = false | |
2380 | expart2.CanCollide = false | |
2381 | rin.CanCollide = false | |
2382 | rin2.CanCollide = false | |
2383 | MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal") | |
2384 | local value = 1*rad/6.5 | |
2385 | for i = 0, 199 do | |
2386 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2387 | expart.CFrame = expart.CFrame | |
2388 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
2389 | expart2.CFrame = expart.CFrame | |
2390 | value = value - 0.035*rad/30 | |
2391 | if value < 7.5 then | |
2392 | partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5) | |
2393 | rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0) | |
2394 | partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5) | |
2395 | rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0) | |
2396 | end | |
2397 | if value < 0 then | |
2398 | dec2.Transparency = dec2.Transparency + 0.025 | |
2399 | dec2a.Transparency = dec2a.Transparency + 0.025 | |
2400 | dec2b.Transparency = dec2b.Transparency + 0.025 | |
2401 | dec2ab.Transparency = dec2ab.Transparency + 0.025 | |
2402 | expart.Transparency = expart.Transparency + 0.025 | |
2403 | expart2.Transparency = expart2.Transparency + 0.025 | |
2404 | rin.Transparency = rin.Transparency + 0.025 | |
2405 | rin2.Transparency = rin2.Transparency + 0.025 | |
2406 | end | |
2407 | swait() | |
2408 | end | |
2409 | game:GetService("Debris"):AddItem(expart, 1) | |
2410 | game:GetService("Debris"):AddItem(expart2, 1) | |
2411 | game:GetService("Debris"):AddItem(rin, 1) | |
2412 | game:GetService("Debris"):AddItem(rin2, 1) | |
2413 | end | |
2414 | ||
2415 | function ExplodeShort(rad,par,pitch,vol,mindam,maxdam) | |
2416 | local expart = Instance.new("Part",char) | |
2417 | local expart2 = Instance.new("Part",char) | |
2418 | local partMesh = Instance.new("SpecialMesh",expart) | |
2419 | partMesh.MeshType = "Sphere" | |
2420 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
2421 | partMesh2.MeshType = "Sphere" | |
2422 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch) | |
2423 | partMesh.Scale = vt(rad,rad,rad) | |
2424 | expart.Size = vt(1,1,1) | |
2425 | expart.Transparency = 0 | |
2426 | expart.Anchored = true | |
2427 | expart.Material = "Neon" | |
2428 | expart.BrickColor = bc("White") | |
2429 | expart.CFrame = par.CFrame | |
2430 | partMesh2.Scale = vt(rad,rad,rad) | |
2431 | expart2.Size = vt(1.15,1.15,1.15) | |
2432 | expart2.Transparency = 0.5 | |
2433 | expart2.Anchored = true | |
2434 | expart2.Material = "Neon" | |
2435 | expart2.BrickColor = par.BrickColor | |
2436 | expart2.CFrame = par.CFrame | |
2437 | expart.CanCollide = false | |
2438 | expart2.CanCollide = false | |
2439 | MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal") | |
2440 | local value = 1*rad/6.5 | |
2441 | for i = 0, 75 do | |
2442 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2443 | expart.CFrame = expart.CFrame | |
2444 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
2445 | expart2.CFrame = expart.CFrame | |
2446 | value = value - 0.035*rad/5 | |
2447 | if value < 0 then | |
2448 | value = 0 | |
2449 | expart.Transparency = expart.Transparency + 0.05 | |
2450 | expart2.Transparency = expart2.Transparency + 0.05 | |
2451 | end | |
2452 | swait() | |
2453 | end | |
2454 | game:GetService("Debris"):AddItem(expart, 1) | |
2455 | game:GetService("Debris"):AddItem(expart2, 1) | |
2456 | end | |
2457 | ||
2458 | function AreaDanger(rad,par,mindam,maxdam) | |
2459 | local expart = Instance.new("Part",char) | |
2460 | local partMesh = Instance.new("SpecialMesh",expart) | |
2461 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15) | |
2462 | partMesh.MeshType = "Sphere" | |
2463 | partMesh.Scale = vt(rad,rad,rad) | |
2464 | expart.Size = vt(1,1,1) | |
2465 | expart.Transparency = 0.5 | |
2466 | expart.Anchored = true | |
2467 | expart.Material = "Neon" | |
2468 | expart.CanCollide = false | |
2469 | expart.BrickColor = par.BrickColor | |
2470 | expart.CFrame = par.CFrame | |
2471 | local value = 1*rad/5 | |
2472 | MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1) | |
2473 | for i = 0, 14 do | |
2474 | wait() | |
2475 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2476 | expart.CFrame = expart.CFrame | |
2477 | value = value - 0.035*rad | |
2478 | if value < 0 then | |
2479 | value = 0 | |
2480 | end | |
2481 | end | |
2482 | wait(0.25) | |
2483 | CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1) | |
2484 | wait(0.5) | |
2485 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1) | |
2486 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75) | |
2487 | MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal") | |
2488 | MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025) | |
2489 | for i = 0, 14 do | |
2490 | wait() | |
2491 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2492 | expart.CFrame = expart.CFrame | |
2493 | value = value - 0.035*rad/2 | |
2494 | end | |
2495 | expart.Transparency = 1 | |
2496 | game:GetService("Debris"):AddItem(expart, 5) | |
2497 | end | |
2498 | ||
2499 | function Swarmsplosions(negrad,rad,par,mindam,maxdam) | |
2500 | CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2) | |
2501 | CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1) | |
2502 | CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1) | |
2503 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1) | |
2504 | MagniDamageWithEffect(par, 25, 5,10, 0, "Normal") | |
2505 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025) | |
2506 | for i = 0, 24 do | |
2507 | 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)) | |
2508 | end | |
2509 | for i = 0, 24 do | |
2510 | local expart = Instance.new("Part",char) | |
2511 | expart.Transparency = 1 | |
2512 | expart.Anchored = true | |
2513 | expart.CanCollide = false | |
2514 | expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad)) | |
2515 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2) | |
2516 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15) | |
2517 | MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal") | |
2518 | MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025) | |
2519 | for i = 0, 9 do | |
2520 | 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)) | |
2521 | end | |
2522 | game:GetService("Debris"):AddItem(expart, 2) | |
2523 | wait(0.1) | |
2524 | end | |
2525 | end | |
2526 | ||
2527 | function EXterPlosion(par) | |
2528 | CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1) | |
2529 | CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85) | |
2530 | CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2) | |
2531 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1) | |
2532 | MagniDamageWithEffect(par, 500, 80,99, 0, "Normal") | |
2533 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005) | |
2534 | MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1) | |
2535 | for i = 0, 24 do | |
2536 | 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)) | |
2537 | end | |
2538 | for i = 0, 24 do | |
2539 | 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)) | |
2540 | end | |
2541 | end | |
2542 | ---- | |
2543 | ||
2544 | ||
2545 | function ring(type,pos,scale,value) | |
2546 | local type = type | |
2547 | local rng = Instance.new("Part", char) | |
2548 | rng.Anchored = true | |
2549 | rng.BrickColor = origcolor | |
2550 | rng.CanCollide = false | |
2551 | rng.FormFactor = 3 | |
2552 | rng.Name = "Ring" | |
2553 | rng.Size = Vector3.new(1, 1, 1) | |
2554 | rng.Transparency = 0 | |
2555 | rng.TopSurface = 0 | |
2556 | rng.BottomSurface = 0 | |
2557 | rng.CFrame = pos | |
2558 | local rngm = Instance.new("SpecialMesh", rng) | |
2559 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2560 | rngm.Scale = scale | |
2561 | local scaler2 = 1 | |
2562 | if type == "Add" then | |
2563 | scaler2 = 1*value | |
2564 | elseif type == "Divide" then | |
2565 | scaler2 = 1/value | |
2566 | end | |
2567 | coroutine.resume(coroutine.create(function() | |
2568 | for i = 0,10,0.1 do | |
2569 | swait() | |
2570 | if type == "Add" then | |
2571 | scaler2 = scaler2 - 0.01*value | |
2572 | elseif type == "Divide" then | |
2573 | scaler2 = scaler2 - 0.01/value | |
2574 | end | |
2575 | rng.Transparency = rng.Transparency + 0.01 | |
2576 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2577 | end | |
2578 | rng:Destroy() | |
2579 | end)) | |
2580 | end | |
2581 | ||
2582 | ||
2583 | function wave(type,pos,scale,value) | |
2584 | local type = type | |
2585 | local rng = Instance.new("Part", char) | |
2586 | rng.Anchored = true | |
2587 | rng.BrickColor = origcolor | |
2588 | rng.CanCollide = false | |
2589 | rng.FormFactor = 3 | |
2590 | rng.Name = "Ring" | |
2591 | rng.Size = Vector3.new(1, 1, 1) | |
2592 | rng.Transparency = 0 | |
2593 | rng.TopSurface = 0 | |
2594 | rng.BottomSurface = 0 | |
2595 | rng.CFrame = pos | |
2596 | local rngm = Instance.new("SpecialMesh", rng) | |
2597 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2598 | rngm.Scale = scale | |
2599 | local scaler2 = 1 | |
2600 | if type == "Add" then | |
2601 | scaler2 = 1*value | |
2602 | elseif type == "Divide" then | |
2603 | scaler2 = 1/value | |
2604 | end | |
2605 | coroutine.resume(coroutine.create(function() | |
2606 | for i = 0,10,0.1 do | |
2607 | swait() | |
2608 | if type == "Add" then | |
2609 | scaler2 = scaler2 - 0.01*value | |
2610 | elseif type == "Divide" then | |
2611 | scaler2 = scaler2 - 0.01/value | |
2612 | end | |
2613 | rng.Transparency = rng.Transparency + 0.01 | |
2614 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2615 | end | |
2616 | rng:Destroy() | |
2617 | end)) | |
2618 | end | |
2619 | ||
2620 | function wind(type,pos,scale,value,speed) | |
2621 | local type = type | |
2622 | local rng = Instance.new("Part", char) | |
2623 | rng.Anchored = true | |
2624 | rng.BrickColor = origcolor | |
2625 | rng.CanCollide = false | |
2626 | rng.FormFactor = 3 | |
2627 | rng.Name = "Ring" | |
2628 | rng.Size = Vector3.new(1, 1, 1) | |
2629 | rng.Transparency = 0 | |
2630 | rng.TopSurface = 0 | |
2631 | rng.BottomSurface = 0 | |
2632 | rng.CFrame = pos | |
2633 | local rngm = Instance.new("SpecialMesh", rng) | |
2634 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2635 | rngm.Scale = scale | |
2636 | local scaler2 = 1 | |
2637 | if type == "Add" then | |
2638 | scaler2 = 1*value | |
2639 | elseif type == "Divide" then | |
2640 | scaler2 = 1/value | |
2641 | end | |
2642 | coroutine.resume(coroutine.create(function() | |
2643 | for i = 0,10,0.1 do | |
2644 | swait() | |
2645 | if type == "Add" then | |
2646 | scaler2 = scaler2 - 0.01*value | |
2647 | elseif type == "Divide" then | |
2648 | scaler2 = scaler2 - 0.01/value | |
2649 | end | |
2650 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
2651 | rng.Transparency = rng.Transparency + 0.01 | |
2652 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2653 | end | |
2654 | rng:Destroy() | |
2655 | end)) | |
2656 | end | |
2657 | ||
2658 | function groundwind(type,pos,scale,value,speed) | |
2659 | local type = type | |
2660 | local rng = Instance.new("Part", char) | |
2661 | rng.Anchored = true | |
2662 | rng.BrickColor = origcolor | |
2663 | rng.CanCollide = false | |
2664 | rng.FormFactor = 3 | |
2665 | rng.Name = "Ring" | |
2666 | rng.Size = Vector3.new(1, 1, 1) | |
2667 | rng.Transparency = 0 | |
2668 | rng.TopSurface = 0 | |
2669 | rng.BottomSurface = 0 | |
2670 | rng.CFrame = pos | |
2671 | local rngm = Instance.new("SpecialMesh", rng) | |
2672 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2673 | rngm.Scale = scale | |
2674 | local scaler2 = 1 | |
2675 | if type == "Add" then | |
2676 | scaler2 = 1*value | |
2677 | elseif type == "Divide" then | |
2678 | scaler2 = 1/value | |
2679 | end | |
2680 | coroutine.resume(coroutine.create(function() | |
2681 | for i = 0,10,0.1 do | |
2682 | swait() | |
2683 | if type == "Add" then | |
2684 | scaler2 = scaler2 - 0.01*value | |
2685 | elseif type == "Divide" then | |
2686 | scaler2 = scaler2 - 0.01/value | |
2687 | end | |
2688 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
2689 | rng.Transparency = rng.Transparency + 0.01 | |
2690 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2) | |
2691 | end | |
2692 | rng:Destroy() | |
2693 | end)) | |
2694 | end | |
2695 | ||
2696 | function CameraManager() | |
2697 | if TwoD and not CamInterrupt then | |
2698 | if Humanoid.Health > 0 then | |
2699 | Camera.CameraSubject = Humanoid | |
2700 | Camera.CameraType = "Scriptable" | |
2701 | Humanoid.AutoRotate = false | |
2702 | if Booleans.GyroUse then | |
2703 | Directer.MaxTorque = Vec3(0, huge, 0) | |
2704 | else | |
2705 | Directer.MaxTorque = Vec3(0, 0, 0) | |
2706 | end | |
2707 | if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then | |
2708 | if Booleans.CamFollow then | |
2709 | CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z)) | |
2710 | Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position) | |
2711 | else | |
2712 | CPart.Position = RootPart.Position | |
2713 | end | |
2714 | else | |
2715 | local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p | |
2716 | CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z)) | |
2717 | end | |
2718 | Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2) | |
2719 | else | |
2720 | Camera.CameraSubject = Humanoid | |
2721 | Camera.CameraType = "Custom" | |
2722 | Controller.Disabled = false | |
2723 | end | |
2724 | end | |
2725 | end | |
2726 | ||
2727 | function sphere(bonuspeed,type,pos,scale,value,color) | |
2728 | local type = type | |
2729 | local rng = Instance.new("Part", char) | |
2730 | rng.Anchored = true | |
2731 | rng.BrickColor = color | |
2732 | rng.CanCollide = false | |
2733 | rng.FormFactor = 3 | |
2734 | rng.Name = "Ring" | |
2735 | rng.Material = "Neon" | |
2736 | rng.Size = Vector3.new(1, 1, 1) | |
2737 | rng.Transparency = 0 | |
2738 | rng.TopSurface = 0 | |
2739 | rng.BottomSurface = 0 | |
2740 | rng.CFrame = pos | |
2741 | local rngm = Instance.new("SpecialMesh", rng) | |
2742 | rngm.MeshType = "Sphere" | |
2743 | rngm.Scale = scale | |
2744 | if rainbowmode == true then | |
2745 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2746 | end | |
2747 | local scaler2 = 1 | |
2748 | if type == "Add" then | |
2749 | scaler2 = 1*value | |
2750 | elseif type == "Divide" then | |
2751 | scaler2 = 1/value | |
2752 | end | |
2753 | coroutine.resume(coroutine.create(function() | |
2754 | for i = 0,10/bonuspeed,0.1 do | |
2755 | swait() | |
2756 | if rainbowmode == true then | |
2757 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2758 | end | |
2759 | if type == "Add" then | |
2760 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2761 | elseif type == "Divide" then | |
2762 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2763 | end | |
2764 | if chaosmode == true then | |
2765 | rng.BrickColor = BrickColor.random() | |
2766 | end | |
2767 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2768 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2769 | end | |
2770 | rng:Destroy() | |
2771 | end)) | |
2772 | end | |
2773 | ||
2774 | function spherew(bonuspeed,type,pos,scale,value,color) | |
2775 | local type = type | |
2776 | local rng = Instance.new("Part", workspace) | |
2777 | rng.Anchored = true | |
2778 | rng.BrickColor = color | |
2779 | rng.CanCollide = false | |
2780 | rng.FormFactor = 3 | |
2781 | rng.Name = "Ring" | |
2782 | rng.Material = "Neon" | |
2783 | rng.Size = Vector3.new(1, 1, 1) | |
2784 | rng.Transparency = 0 | |
2785 | rng.TopSurface = 0 | |
2786 | rng.BottomSurface = 0 | |
2787 | rng.CFrame = pos | |
2788 | local rngm = Instance.new("SpecialMesh", rng) | |
2789 | rngm.MeshType = "Sphere" | |
2790 | rngm.Scale = scale | |
2791 | if rainbowmode == true then | |
2792 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2793 | end | |
2794 | local scaler2 = 1 | |
2795 | if type == "Add" then | |
2796 | scaler2 = 1*value | |
2797 | elseif type == "Divide" then | |
2798 | scaler2 = 1/value | |
2799 | end | |
2800 | coroutine.resume(coroutine.create(function() | |
2801 | for i = 0,10/bonuspeed,0.1 do | |
2802 | swait() | |
2803 | if rainbowmode == true then | |
2804 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2805 | end | |
2806 | if type == "Add" then | |
2807 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2808 | elseif type == "Divide" then | |
2809 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2810 | end | |
2811 | if chaosmode == true then | |
2812 | rng.BrickColor = BrickColor.random() | |
2813 | end | |
2814 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2815 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2816 | end | |
2817 | rng:Destroy() | |
2818 | end)) | |
2819 | end | |
2820 | ||
2821 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2822 | local type = type | |
2823 | local rng = Instance.new("Part", char) | |
2824 | rng.Anchored = true | |
2825 | rng.BrickColor = color | |
2826 | rng.CanCollide = false | |
2827 | rng.FormFactor = 3 | |
2828 | rng.Name = "Ring" | |
2829 | rng.Material = "Neon" | |
2830 | rng.Size = Vector3.new(1, 1, 1) | |
2831 | rng.Transparency = 0 | |
2832 | rng.TopSurface = 0 | |
2833 | rng.BottomSurface = 0 | |
2834 | rng.CFrame = pos | |
2835 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2836 | local rngm = Instance.new("SpecialMesh", rng) | |
2837 | rngm.MeshType = "Brick" | |
2838 | rngm.Scale = vt(x1,y1,z1) | |
2839 | if rainbowmode == true then | |
2840 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2841 | end | |
2842 | local scaler2 = 1 | |
2843 | local speeder = FastSpeed/10 | |
2844 | if type == "Add" then | |
2845 | scaler2 = 1*value | |
2846 | elseif type == "Divide" then | |
2847 | scaler2 = 1/value | |
2848 | end | |
2849 | coroutine.resume(coroutine.create(function() | |
2850 | for i = 0,10/bonuspeed,0.1 do | |
2851 | swait() | |
2852 | if rainbowmode == true then | |
2853 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2854 | end | |
2855 | if type == "Add" then | |
2856 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2857 | elseif type == "Divide" then | |
2858 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2859 | end | |
2860 | if chaosmode == true then | |
2861 | rng.BrickColor = BrickColor.random() | |
2862 | end | |
2863 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
2864 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2865 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2866 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2867 | end | |
2868 | rng:Destroy() | |
2869 | end)) | |
2870 | end | |
2871 | ||
2872 | function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2873 | local type = type | |
2874 | local rng = Instance.new("Part", char) | |
2875 | rng.Anchored = true | |
2876 | rng.BrickColor = color | |
2877 | rng.CanCollide = false | |
2878 | rng.FormFactor = 3 | |
2879 | rng.Name = "Ring" | |
2880 | rng.Material = "Neon" | |
2881 | rng.Size = Vector3.new(1, 1, 1) | |
2882 | rng.Transparency = 0 | |
2883 | rng.TopSurface = 0 | |
2884 | rng.BottomSurface = 0 | |
2885 | rng.CFrame = pos | |
2886 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2887 | local rngm = Instance.new("SpecialMesh", rng) | |
2888 | rngm.MeshType = "Brick" | |
2889 | rngm.Scale = vt(x1,y1,z1) | |
2890 | if rainbowmode == true then | |
2891 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2892 | end | |
2893 | local scaler2 = 0 | |
2894 | local speeder = FastSpeed/10 | |
2895 | if type == "Add" then | |
2896 | scaler2 = 1*value | |
2897 | elseif type == "Divide" then | |
2898 | scaler2 = 1/value | |
2899 | end | |
2900 | coroutine.resume(coroutine.create(function() | |
2901 | for i = 0,10/bonuspeed,0.1 do | |
2902 | swait() | |
2903 | if rainbowmode == true then | |
2904 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2905 | end | |
2906 | if type == "Add" then | |
2907 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2908 | elseif type == "Divide" then | |
2909 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2910 | end | |
2911 | if chaosmode == true then | |
2912 | rng.BrickColor = BrickColor.random() | |
2913 | end | |
2914 | speeder = speeder + 0.01*FastSpeed*bonuspeed/10 | |
2915 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2916 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2917 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2918 | end | |
2919 | rng:Destroy() | |
2920 | end)) | |
2921 | end | |
2922 | ||
2923 | function sphereMKw(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2924 | local type = type | |
2925 | local rng = Instance.new("Part", workspace) | |
2926 | rng.Anchored = true | |
2927 | rng.BrickColor = color | |
2928 | rng.CanCollide = false | |
2929 | rng.FormFactor = 3 | |
2930 | rng.Name = "Ring" | |
2931 | rng.Material = "Neon" | |
2932 | rng.Size = Vector3.new(1, 1, 1) | |
2933 | rng.Transparency = 0 | |
2934 | rng.TopSurface = 0 | |
2935 | rng.BottomSurface = 0 | |
2936 | rng.CFrame = pos | |
2937 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2938 | local rngm = Instance.new("SpecialMesh", rng) | |
2939 | rngm.MeshType = "Sphere" | |
2940 | rngm.Scale = vt(x1,y1,z1) | |
2941 | if rainbowmode == true then | |
2942 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2943 | end | |
2944 | local scaler2 = 1 | |
2945 | local speeder = FastSpeed | |
2946 | if type == "Add" then | |
2947 | scaler2 = 1*value | |
2948 | elseif type == "Divide" then | |
2949 | scaler2 = 1/value | |
2950 | end | |
2951 | coroutine.resume(coroutine.create(function() | |
2952 | for i = 0,10/bonuspeed,0.1 do | |
2953 | swait() | |
2954 | if rainbowmode == true then | |
2955 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2956 | end | |
2957 | if type == "Add" then | |
2958 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2959 | elseif type == "Divide" then | |
2960 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2961 | end | |
2962 | if chaosmode == true then | |
2963 | rng.BrickColor = BrickColor.random() | |
2964 | end | |
2965 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
2966 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2967 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2968 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
2969 | end | |
2970 | rng:Destroy() | |
2971 | end)) | |
2972 | end | |
2973 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2974 | local type = type | |
2975 | local rng = Instance.new("Part", char) | |
2976 | rng.Anchored = true | |
2977 | rng.BrickColor = color | |
2978 | rng.CanCollide = false | |
2979 | rng.FormFactor = 3 | |
2980 | rng.Name = "Ring" | |
2981 | rng.Material = "Neon" | |
2982 | rng.Size = Vector3.new(1, 1, 1) | |
2983 | rng.Transparency = 0 | |
2984 | rng.TopSurface = 0 | |
2985 | rng.BottomSurface = 0 | |
2986 | rng.CFrame = pos | |
2987 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2988 | local rngm = Instance.new("SpecialMesh", rng) | |
2989 | rngm.MeshType = "Sphere" | |
2990 | rngm.Scale = vt(x1,y1,z1) | |
2991 | if rainbowmode == true then | |
2992 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2993 | end | |
2994 | local scaler2 = 1 | |
2995 | local speeder = FastSpeed | |
2996 | if type == "Add" then | |
2997 | scaler2 = 1*value | |
2998 | elseif type == "Divide" then | |
2999 | scaler2 = 1/value | |
3000 | end | |
3001 | coroutine.resume(coroutine.create(function() | |
3002 | for i = 0,10/bonuspeed,0.1 do | |
3003 | swait() | |
3004 | if rainbowmode == true then | |
3005 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3006 | end | |
3007 | if type == "Add" then | |
3008 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
3009 | elseif type == "Divide" then | |
3010 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
3011 | end | |
3012 | if chaosmode == true then | |
3013 | rng.BrickColor = BrickColor.random() | |
3014 | end | |
3015 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
3016 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
3017 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
3018 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
3019 | end | |
3020 | rng:Destroy() | |
3021 | end)) | |
3022 | end | |
3023 | ||
3024 | ||
3025 | function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
3026 | local type = type | |
3027 | local rng = Instance.new("Part", char) | |
3028 | rng.Anchored = true | |
3029 | rng.BrickColor = color | |
3030 | rng.CanCollide = false | |
3031 | rng.FormFactor = 3 | |
3032 | rng.Name = "Ring" | |
3033 | rng.Material = "Neon" | |
3034 | rng.Size = Vector3.new(1, 1, 1) | |
3035 | rng.Transparency = 1 | |
3036 | rng.TopSurface = 0 | |
3037 | rng.BottomSurface = 0 | |
3038 | rng.CFrame = pos | |
3039 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
3040 | local rngm = Instance.new("SpecialMesh", rng) | |
3041 | rngm.MeshType = "Sphere" | |
3042 | rngm.Scale = vt(x1,y1,z1) | |
3043 | if rainbowmode == true then | |
3044 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3045 | end | |
3046 | local scaler2 = 1 | |
3047 | local speeder = FastSpeed | |
3048 | if type == "Add" then | |
3049 | scaler2 = 1*value | |
3050 | elseif type == "Divide" then | |
3051 | scaler2 = 1/value | |
3052 | end | |
3053 | coroutine.resume(coroutine.create(function() | |
3054 | for i = 0,10/bonuspeed,0.1 do | |
3055 | swait() | |
3056 | if rainbowmode == true then | |
3057 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3058 | end | |
3059 | if type == "Add" then | |
3060 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
3061 | elseif type == "Divide" then | |
3062 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
3063 | end | |
3064 | if chaosmode == true then | |
3065 | rng.BrickColor = BrickColor.random() | |
3066 | end | |
3067 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
3068 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
3069 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
3070 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
3071 | end | |
3072 | rng:Destroy() | |
3073 | end)) | |
3074 | end | |
3075 | ||
3076 | function dmg(dude) | |
3077 | if dude.Name ~= Character then | |
3078 | local bgf = Instance.new("BodyGyro",dude.Head) | |
3079 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
3080 | local val = Instance.new("BoolValue",dude) | |
3081 | val.Name = "IsHit" | |
3082 | local ds = coroutine.wrap(function() | |
3083 | dude:WaitForChild("Head"):BreakJoints() | |
3084 | wait(0.5) | |
3085 | targetted = nil | |
3086 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3) | |
3087 | coroutine.resume(coroutine.create(function() | |
3088 | for i, v in pairs(dude:GetChildren()) do | |
3089 | if v:IsA("Accessory") then | |
3090 | v:Destroy() | |
3091 | end | |
3092 | if v:IsA("Humanoid") then | |
3093 | v:Destroy() | |
3094 | end | |
3095 | if v:IsA("CharacterMesh") then | |
3096 | v:Destroy() | |
3097 | end | |
3098 | if v:IsA("Model") then | |
3099 | v:Destroy() | |
3100 | end | |
3101 | if v:IsA("Part") or v:IsA("MeshPart") then | |
3102 | for x, o in pairs(v:GetChildren()) do | |
3103 | if o:IsA("Decal") then | |
3104 | o:Destroy() | |
3105 | end | |
3106 | end | |
3107 | coroutine.resume(coroutine.create(function() | |
3108 | v.Material = "Neon" | |
3109 | v.CanCollide = false | |
3110 | local bld = Instance.new("ParticleEmitter",v) | |
3111 | bld.LightEmission = 1 | |
3112 | bld.Texture = "rbxassetid://284205403" | |
3113 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
3114 | bld.Rate = 50 | |
3115 | bld.Lifetime = NumberRange.new(1) | |
3116 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3117 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3118 | bld.Speed = NumberRange.new(0,0) | |
3119 | bld.VelocitySpread = 50000 | |
3120 | bld.Rotation = NumberRange.new(-500,500) | |
3121 | bld.RotSpeed = NumberRange.new(-500,500) | |
3122 | local sbs = Instance.new("BodyPosition", v) | |
3123 | sbs.P = 3000 | |
3124 | sbs.D = 1000 | |
3125 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
3126 | sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
3127 | v.Color = Color3.new(1,1,1) | |
3128 | coroutine.resume(coroutine.create(function() | |
3129 | for i = 0, 49 do | |
3130 | swait(1) | |
3131 | v.Transparency = v.Transparency + 0.02 | |
3132 | end | |
3133 | CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1) | |
3134 | bld.Speed = NumberRange.new(1,5) | |
3135 | bld.Acceleration = vt(0,10,0) | |
3136 | wait(0.5) | |
3137 | bld.Enabled = false | |
3138 | wait(3) | |
3139 | v:Destroy() | |
3140 | dude:Destroy() | |
3141 | end)) | |
3142 | end)) | |
3143 | end | |
3144 | end | |
3145 | end)) | |
3146 | end) | |
3147 | ds() | |
3148 | end | |
3149 | end | |
3150 | ||
3151 | ||
3152 | function FindNearestHead(Position, Distance, SinglePlayer) | |
3153 | if SinglePlayer then | |
3154 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
3155 | end | |
3156 | local List = {} | |
3157 | for i, v in pairs(workspace:GetChildren()) do | |
3158 | if v:IsA("Model") then | |
3159 | if v:findFirstChild("Head") then | |
3160 | if v ~= Character then | |
3161 | if (v.Head.Position - Position).magnitude <= Distance then | |
3162 | table.insert(List, v) | |
3163 | end | |
3164 | end | |
3165 | end | |
3166 | end | |
3167 | end | |
3168 | return List | |
3169 | end | |
3170 | ||
3171 | function FaceMouse() | |
3172 | Cam = workspace.CurrentCamera | |
3173 | return { | |
3174 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
3175 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
3176 | } | |
3177 | end | |
3178 | ||
3179 | function FaceMouse2() | |
3180 | Cam = workspace.CurrentCamera | |
3181 | return { | |
3182 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
3183 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
3184 | } | |
3185 | end | |
3186 | ||
3187 | local ModeOfGlitch = 1 | |
3188 | -- Functions are ready. | |
3189 | local storehumanoidWS = 16 | |
3190 | ||
3191 | function Blink() | |
3192 | for i = 0, 14 do | |
3193 | 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) | |
3194 | end | |
3195 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3196 | RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0) | |
3197 | CameraEnshaking(2,10) | |
3198 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do | |
3199 | if v:FindFirstChild('Head') then | |
3200 | end | |
3201 | end | |
3202 | for i = 0, 14 do | |
3203 | 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) | |
3204 | end | |
3205 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3206 | end | |
3207 | ||
3208 | function ExtinctiveHeartbreak() | |
3209 | local targetted = nil | |
3210 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
3211 | targetted = mouse.Target.Parent | |
3212 | end | |
3213 | if targetted ~= nil then | |
3214 | attack = true | |
3215 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3216 | for i = 0, 9 do | |
3217 | 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) | |
3218 | end | |
3219 | for i = 0, 24 do | |
3220 | 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) | |
3221 | end | |
3222 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red")) | |
3223 | local originalpos = root.CFrame | |
3224 | RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2) | |
3225 | for i = 0, 9 do | |
3226 | 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) | |
3227 | end | |
3228 | for i = 0, 24 do | |
3229 | 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) | |
3230 | end | |
3231 | hum.WalkSpeed = 0 | |
3232 | targetted.Head.Anchored = true | |
3233 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red")) | |
3234 | for i = 0,2,0.1 do | |
3235 | swait() | |
3236 | 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) | |
3237 | 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) | |
3238 | 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) | |
3239 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
3240 | 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) | |
3241 | 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) | |
3242 | end | |
3243 | coroutine.resume(coroutine.create(function() | |
3244 | bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso")) | |
3245 | bld.LightEmission = 0.1 | |
3246 | bld.Texture = "rbxassetid://284205403" | |
3247 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
3248 | bld.Rate = 500 | |
3249 | bld.Lifetime = NumberRange.new(1) | |
3250 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3251 | bld.Acceleration = vt(0,-25,0) | |
3252 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3253 | bld.Speed = NumberRange.new(10,50) | |
3254 | bld.EmissionDirection = "Front" | |
3255 | bld.VelocitySpread = 25 | |
3256 | bld.Rotation = NumberRange.new(-500,500) | |
3257 | bld.RotSpeed = NumberRange.new(-500,500) | |
3258 | end)) | |
3259 | coroutine.resume(coroutine.create(function() | |
3260 | bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso")) | |
3261 | bld.LightEmission = 0.1 | |
3262 | bld.Texture = "rbxassetid://284205403" | |
3263 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
3264 | bld.Rate = 500 | |
3265 | bld.Lifetime = NumberRange.new(1) | |
3266 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3267 | bld.Acceleration = vt(0,-25,0) | |
3268 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3269 | bld.Speed = NumberRange.new(10,50) | |
3270 | bld.EmissionDirection = "Front" | |
3271 | bld.VelocitySpread = 25 | |
3272 | bld.Rotation = NumberRange.new(-500,500) | |
3273 | bld.RotSpeed = NumberRange.new(-500,500) | |
3274 | end)) | |
3275 | CameraEnshaking(5,5) | |
3276 | game:GetService("Debris"):AddItem(bld,3) | |
3277 | dmg(targetted) | |
3278 | CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1) | |
3279 | for i = 0,1,0.1 do | |
3280 | swait() | |
3281 | 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) | |
3282 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
3283 | 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) | |
3284 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8) | |
3285 | 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) | |
3286 | 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) | |
3287 | end | |
3288 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3289 | for i = 0, 9 do | |
3290 | 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) | |
3291 | end | |
3292 | for i = 0, 24 do | |
3293 | 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) | |
3294 | end | |
3295 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red")) | |
3296 | root.CFrame = originalpos | |
3297 | for i = 0, 9 do | |
3298 | 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) | |
3299 | end | |
3300 | for i = 0, 24 do | |
3301 | 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) | |
3302 | end | |
3303 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red")) | |
3304 | bld.Enabled = false | |
3305 | attack = false | |
3306 | hum.WalkSpeed = storehumanoidWS | |
3307 | end | |
3308 | end | |
3309 | function MeteorStrike() | |
3310 | attack = true | |
3311 | for i = 0, 2, 0.1 do | |
3312 | swait() | |
3313 | 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) | |
3314 | 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) | |
3315 | 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) | |
3316 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4) | |
3317 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1) | |
3318 | 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) | |
3319 | end | |
3320 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 1,2) | |
3321 | for i=1,20 do | |
3322 | 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) | |
3323 | swait() | |
3324 | end | |
3325 | swait(30) | |
3326 | CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1) | |
3327 | for i =1,20 do | |
3328 | 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) | |
3329 | 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) | |
3330 | end | |
3331 | for i = 0,2,0.1 do | |
3332 | swait() | |
3333 | 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) | |
3334 | 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) | |
3335 | 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) | |
3336 | 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) | |
3337 | 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) | |
3338 | 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) | |
3339 | end | |
3340 | for i =1,20 do | |
3341 | 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) | |
3342 | end | |
3343 | text.TextTransparency = 1 | |
3344 | text.TextStrokeTransparency = 1 | |
3345 | tr2.Enabled = false | |
3346 | tr1.Enabled = false | |
3347 | tr3.Enabled = false | |
3348 | tl1.Enabled = false | |
3349 | tl2.Enabled = false | |
3350 | tl3.Enabled = false | |
3351 | spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR) | |
3352 | eff = false | |
3353 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3354 | local invtab = {} | |
3355 | local function search(targ) | |
3356 | if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then | |
3357 | table.insert(invtab,targ) | |
3358 | end | |
3359 | for i,v in pairs(targ:GetChildren()) do | |
3360 | search(v) | |
3361 | end | |
3362 | end | |
3363 | search(plr.Character) | |
3364 | local frm = 0 | |
3365 | local frmcon | |
3366 | frmcon = game:GetService("RunService").Heartbeat:connect(function() | |
3367 | if frm < 10 then | |
3368 | for i,v in pairs(invtab) do | |
3369 | if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then | |
3370 | v.Transparency = v.Transparency + 0.1 | |
3371 | end | |
3372 | end | |
3373 | frm = frm + 1 | |
3374 | else | |
3375 | frmcon:disconnect() | |
3376 | end | |
3377 | end) | |
3378 | swait(200) | |
3379 | text.TextTransparency = 0 | |
3380 | text.TextStrokeTransparency = 0 | |
3381 | tr2.Enabled = false | |
3382 | tr1.Enabled = false | |
3383 | tr3.Enabled = false | |
3384 | tl1.Enabled = false | |
3385 | tl2.Enabled = false | |
3386 | tl3.Enabled = false | |
3387 | eff = true | |
3388 | for i =1,20 do | |
3389 | 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) | |
3390 | end | |
3391 | spherew(5,"Add",Torso.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR) | |
3392 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3393 | local invtab = {} | |
3394 | local function search(targ) | |
3395 | if targ:IsA("BasePart") or targ:IsA("Decal") or targ:IsA("Texture") then | |
3396 | table.insert(invtab,targ) | |
3397 | end | |
3398 | for i,v in pairs(targ:GetChildren()) do | |
3399 | search(v) | |
3400 | end | |
3401 | end | |
3402 | search(plr.Character) | |
3403 | local frm = 0 | |
3404 | local frmcon | |
3405 | frmcon = game:GetService("RunService").Heartbeat:connect(function() | |
3406 | if frm < 10 then | |
3407 | for i,v in pairs(invtab) do | |
3408 | if v:IsA("BasePart") or v:IsA("Decal") or v:IsA("Texture") then | |
3409 | v.Transparency = v.Transparency - 0.1 | |
3410 | end | |
3411 | end | |
3412 | frm = frm + 1 | |
3413 | else | |
3414 | frmcon:disconnect() | |
3415 | end | |
3416 | end) | |
3417 | swait(5) | |
3418 | for i = 0, 2, 0.1 do | |
3419 | swait() | |
3420 | 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) | |
3421 | 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) | |
3422 | 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) | |
3423 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-27),math.rad(0),math.rad(0)),.4) | |
3424 | RW.C0=clerp(RW.C0,cf(1.5,0.5,-0.35)*angles(math.rad(70),math.rad(20),math.rad(0)),.1) | |
3425 | 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) | |
3426 | end | |
3427 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3428 | CFuncs["Sound"].Create("rbxassetid://151304356", root, 5,1) | |
3429 | MagniDamage(root, 30, 65,90, 0, "Normal") | |
3430 | for i =1,20 do | |
3431 | 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) | |
3432 | end | |
3433 | sphere(1,"Add",Torso.CFrame,vt(1,1,1),1,MAINRUINCOLOR) | |
3434 | for i =1,20 do | |
3435 | 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) | |
3436 | end | |
3437 | swait(20) | |
3438 | attack = false | |
3439 | tr2.Enabled = true | |
3440 | tr1.Enabled = true | |
3441 | tr3.Enabled = true | |
3442 | tl1.Enabled = true | |
3443 | tl2.Enabled = true | |
3444 | tl3.Enabled = true | |
3445 | end | |
3446 | function FinalCalam() | |
3447 | attack = true | |
3448 | ||
3449 | local orb = Instance.new("Part", char) | |
3450 | orb.Anchored = true | |
3451 | orb.BrickColor = MAINRUINCOLOR | |
3452 | orb.CanCollide = false | |
3453 | orb.FormFactor = 3 | |
3454 | orb.Name = "Ring" | |
3455 | orb.Material = "Neon" | |
3456 | orb.Size = Vector3.new(1, 1, 1) | |
3457 | orb.Transparency = 0 | |
3458 | orb.TopSurface = 0 | |
3459 | orb.BottomSurface = 0 | |
3460 | local orbm = Instance.new("SpecialMesh", orb) | |
3461 | orbm.MeshType = "Sphere" | |
3462 | orbm.Name = "SizeMesh" | |
3463 | orbm.Scale = vt(0,0,0) | |
3464 | local scaled = 0.1 | |
3465 | local posid = 0 | |
3466 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1) | |
3467 | for i = 0, 5, 0.1 do | |
3468 | swait() | |
3469 | scaled = scaled - 0.001 | |
3470 | posid = posid - scaled | |
3471 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3472 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
3473 | 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) | |
3474 | 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) | |
3475 | 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) | |
3476 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3477 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
3478 | 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) | |
3479 | end | |
3480 | swait(60) | |
3481 | for i =1,3 do | |
3482 | swait(30) | |
3483 | CFuncs["Sound"].Create("rbxassetid://847061203", orb, 1,0.9) | |
3484 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.3,MAINRUINCOLOR) | |
3485 | end | |
3486 | swait(30) | |
3487 | for i = 0, 2, 0.1 do | |
3488 | swait() | |
3489 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3490 | 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) | |
3491 | 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) | |
3492 | 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) | |
3493 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
3494 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
3495 | 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) | |
3496 | end | |
3497 | swait(60) | |
3498 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3499 | CFuncs["Sound"].Create("rbxassetid://151304356", workspace, 5,1) | |
3500 | sphere(0.2,"Add",orb.CFrame,vt(10,10,10),5,MAINRUINCOLOR) | |
3501 | sphere(0.5,"Add",orb.CFrame,vt(1,1,1),5,MAINRUINCOLOR) | |
3502 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
3503 | if v:FindFirstChild('Head') then | |
3504 | dmg(v) | |
3505 | end | |
3506 | end | |
3507 | for i = 1,20 do | |
3508 | 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) | |
3509 | for i = 0, 10 do | |
3510 | 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) | |
3511 | end | |
3512 | end | |
3513 | orb:Remove() | |
3514 | attack = false | |
3515 | end | |
3516 | function PureBomb() | |
3517 | attack = true | |
3518 | ||
3519 | local orb = Instance.new("Part", char) | |
3520 | orb.Anchored = true | |
3521 | orb.BrickColor = BrickColor.new("Toothpaste") | |
3522 | orb.CanCollide = false | |
3523 | orb.FormFactor = 3 | |
3524 | orb.Name = "Ring" | |
3525 | orb.Material = "Neon" | |
3526 | orb.Size = Vector3.new(1, 1, 1) | |
3527 | orb.Transparency = 0 | |
3528 | orb.TopSurface = 0 | |
3529 | orb.BottomSurface = 0 | |
3530 | local orbm = Instance.new("SpecialMesh", orb) | |
3531 | orbm.MeshType = "Sphere" | |
3532 | orbm.Name = "SizeMesh" | |
3533 | orbm.Scale = vt(0,0,0) | |
3534 | local scaled = 0.1 | |
3535 | local posid = 0 | |
3536 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1) | |
3537 | for i = 0, 5, 0.1 do | |
3538 | swait() | |
3539 | scaled = scaled - 0.001 | |
3540 | posid = posid - scaled | |
3541 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3542 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
3543 | 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) | |
3544 | 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) | |
3545 | 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) | |
3546 | 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) | |
3547 | 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) | |
3548 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3549 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
3550 | 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) | |
3551 | end | |
3552 | for i = 0, 2, 0.1 do | |
3553 | swait() | |
3554 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3555 | 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) | |
3556 | 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) | |
3557 | 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) | |
3558 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
3559 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
3560 | 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) | |
3561 | end | |
3562 | coroutine.resume(coroutine.create(function() | |
3563 | orb.Anchored = false | |
3564 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1) | |
3565 | local a = Instance.new("Part",workspace) | |
3566 | a.Name = "Direction" | |
3567 | a.Anchored = true | |
3568 | a.BrickColor = bc("Bright red") | |
3569 | a.Material = "Neon" | |
3570 | a.Transparency = 1 | |
3571 | a.CanCollide = false | |
3572 | local ray = Ray.new( | |
3573 | orb.CFrame.p, -- origin | |
3574 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
3575 | ) | |
3576 | local ignore = orb | |
3577 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3578 | a.BottomSurface = 10 | |
3579 | a.TopSurface = 10 | |
3580 | local distance = (orb.CFrame.p - position).magnitude | |
3581 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
3582 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3583 | orb.CFrame = a.CFrame | |
3584 | a:Destroy() | |
3585 | local bv = Instance.new("BodyVelocity") | |
3586 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3587 | bv.velocity = orb.CFrame.lookVector*125 | |
3588 | bv.Parent = orb | |
3589 | local hitted = false | |
3590 | game:GetService("Debris"):AddItem(orb, 15) | |
3591 | wait() | |
3592 | local hit =orb.Touched:connect(function(hit) | |
3593 | if hitted == false then | |
3594 | hitted = true | |
3595 | CameraEnshaking(10,2.5) | |
3596 | MagniDamage(orb, 65, 65,90, 0, "Normal") | |
3597 | sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste")) | |
3598 | sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste")) | |
3599 | for i = 0, 49 do | |
3600 | 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) | |
3601 | end | |
3602 | for i = 0, 9 do | |
3603 | 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) | |
3604 | 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) | |
3605 | end | |
3606 | orb.Anchored = true | |
3607 | orb.Transparency = 1 | |
3608 | wait(8) | |
3609 | orb:Destroy() | |
3610 | end | |
3611 | end) | |
3612 | end)) | |
3613 | for i = 0, 1, 0.1 do | |
3614 | swait() | |
3615 | 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) | |
3616 | 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) | |
3617 | 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) | |
3618 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
3619 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
3620 | 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) | |
3621 | end | |
3622 | attack = false | |
3623 | end | |
3624 | ||
3625 | function ChaosGroundStrike() | |
3626 | attack = true | |
3627 | for i = 0, 2, 0.1 do | |
3628 | swait() | |
3629 | 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) | |
3630 | 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) | |
3631 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3632 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3633 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
3634 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
3635 | end | |
3636 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1) | |
3637 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3638 | CameraEnshaking(4,12) | |
3639 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
3640 | if v:FindFirstChild('Head') then | |
3641 | dmg(v) | |
3642 | end | |
3643 | end | |
3644 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random()) | |
3645 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random()) | |
3646 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random()) | |
3647 | for i = 0, 2, 0.1 do | |
3648 | swait() | |
3649 | 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) | |
3650 | 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) | |
3651 | 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) | |
3652 | 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) | |
3653 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3654 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3655 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
3656 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
3657 | end | |
3658 | attack = false | |
3659 | end | |
3660 | ||
3661 | function Starfall() | |
3662 | attack = true | |
3663 | hum.WalkSpeed = 0 | |
3664 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1) | |
3665 | for i = 0, 5, 0.1 do | |
3666 | swait() | |
3667 | 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) | |
3668 | 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) | |
3669 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.1) | |
3670 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.1) | |
3671 | 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) | |
3672 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
3673 | 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) | |
3674 | 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) | |
3675 | end | |
3676 | local Overed = false | |
3677 | CameraEnshaking(2,20) | |
3678 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3679 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3680 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
3681 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1) | |
3682 | local orb = Instance.new("Part", char) | |
3683 | orb.Anchored = true | |
3684 | orb.BrickColor = BrickColor.new("Toothpaste") | |
3685 | orb.CanCollide = false | |
3686 | orb.FormFactor = 3 | |
3687 | orb.Name = "Remenant" | |
3688 | orb.Material = "Neon" | |
3689 | orb.CFrame = root.CFrame*CFrame.new(0,150,0) | |
3690 | orb.Size = Vector3.new(1, 1, 1) | |
3691 | orb.Transparency = 1 | |
3692 | orb.TopSurface = 0 | |
3693 | orb.BottomSurface = 0 | |
3694 | hum.WalkSpeed = storehumanoidWS | |
3695 | coroutine.resume(coroutine.create(function() | |
3696 | for i = 0, 9 do | |
3697 | swait(10) | |
3698 | local lb = Instance.new("Part") | |
3699 | lb.Color = MAINRUINCOLOR.Color | |
3700 | lb.CanCollide = false | |
3701 | lb.Material = "Neon" | |
3702 | lb.Anchored = true | |
3703 | lb.TopSurface = 0 | |
3704 | lb.BottomSurface = 0 | |
3705 | lb.Transparency = 0 | |
3706 | lb.Size = vt(1,1,1) | |
3707 | 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))) | |
3708 | lb.Anchored = false | |
3709 | lb.Parent = char | |
3710 | local thingery = Instance.new("SpecialMesh",lb) | |
3711 | thingery.MeshType = "Sphere" | |
3712 | thingery.Scale = vt(20,20,20) | |
3713 | game:GetService("Debris"):AddItem(lb, 10) | |
3714 | local bv = Instance.new("BodyVelocity") | |
3715 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3716 | bv.velocity = lb.CFrame.lookVector*math.random(75,250) | |
3717 | bv.Parent = lb | |
3718 | sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR) | |
3719 | sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR) | |
3720 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1) | |
3721 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1) | |
3722 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1) | |
3723 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1) | |
3724 | local hitted = false | |
3725 | coroutine.resume(coroutine.create(function() | |
3726 | while true do | |
3727 | swait(1) | |
3728 | if lb.Parent ~= nil and hitted == false then | |
3729 | 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) | |
3730 | elseif lb.Parent == nil then | |
3731 | break | |
3732 | end | |
3733 | end | |
3734 | end)) | |
3735 | ||
3736 | game:GetService("Debris"):AddItem(a, 0.1) | |
3737 | ||
3738 | coroutine.resume(coroutine.create(function() | |
3739 | swait(1) | |
3740 | lb.Touched:connect(function(hit) | |
3741 | if hitted == false then | |
3742 | hitted = true | |
3743 | lb.Transparency = 1 | |
3744 | lb.Anchored = true | |
3745 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1) | |
3746 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7) | |
3747 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75) | |
3748 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75) | |
3749 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1) | |
3750 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85) | |
3751 | MagniDamage(lb, 45, 45,85, 0, "Normal") | |
3752 | CameraEnshaking(1,5) | |
3753 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
3754 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
3755 | for i = 0, 9 do | |
3756 | 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) | |
3757 | end | |
3758 | for i = 0, 49 do | |
3759 | swait() | |
3760 | MagniDamage(lb, 30, 2,4, 0, "Normal") | |
3761 | 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) | |
3762 | end | |
3763 | end | |
3764 | end) | |
3765 | end)) | |
3766 | end | |
3767 | Overed = true | |
3768 | orb:Destroy() | |
3769 | end)) | |
3770 | ||
3771 | attack = false | |
3772 | end | |
3773 | ||
3774 | function StarfallEX() | |
3775 | attack = true | |
3776 | hum.WalkSpeed = 0 | |
3777 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1) | |
3778 | for i = 0, 5, 0.1 do | |
3779 | swait() | |
3780 | 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) | |
3781 | 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) | |
3782 | 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) | |
3783 | 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) | |
3784 | 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) | |
3785 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
3786 | 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) | |
3787 | 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) | |
3788 | end | |
3789 | local Overed = false | |
3790 | CameraEnshaking(2,20) | |
3791 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3792 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3793 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
3794 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3795 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
3796 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3797 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1) | |
3798 | local orb = Instance.new("Part", char) | |
3799 | orb.Anchored = true | |
3800 | orb.BrickColor = BrickColor.new("Toothpaste") | |
3801 | orb.CanCollide = false | |
3802 | orb.FormFactor = 3 | |
3803 | orb.Name = "Remenant" | |
3804 | orb.Material = "Neon" | |
3805 | orb.CFrame = root.CFrame*CFrame.new(0,150,0) | |
3806 | orb.Size = Vector3.new(1, 1, 1) | |
3807 | orb.Transparency = 1 | |
3808 | orb.TopSurface = 0 | |
3809 | orb.BottomSurface = 0 | |
3810 | hum.WalkSpeed = storehumanoidWS | |
3811 | coroutine.resume(coroutine.create(function() | |
3812 | for i = 0, 9 do | |
3813 | swait(10) | |
3814 | local lb = Instance.new("Part") | |
3815 | lb.Color = MAINRUINCOLOR.Color | |
3816 | lb.CanCollide = false | |
3817 | lb.Material = "Neon" | |
3818 | lb.Anchored = true | |
3819 | lb.TopSurface = 0 | |
3820 | lb.BottomSurface = 0 | |
3821 | lb.Transparency = 0 | |
3822 | lb.Size = vt(1,1,1) | |
3823 | 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))) | |
3824 | lb.Anchored = false | |
3825 | lb.Parent = char | |
3826 | local thingery = Instance.new("SpecialMesh",lb) | |
3827 | thingery.MeshType = "Sphere" | |
3828 | thingery.Scale = vt(20,20,20) | |
3829 | game:GetService("Debris"):AddItem(lb, 10) | |
3830 | local bv = Instance.new("BodyVelocity") | |
3831 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3832 | bv.velocity = lb.CFrame.lookVector*math.random(75,250) | |
3833 | bv.Parent = lb | |
3834 | sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR) | |
3835 | sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR) | |
3836 | sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR) | |
3837 | sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR) | |
3838 | sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR) | |
3839 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1) | |
3840 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1) | |
3841 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1) | |
3842 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1) | |
3843 | local hitted = false | |
3844 | coroutine.resume(coroutine.create(function() | |
3845 | while true do | |
3846 | swait(1) | |
3847 | if lb.Parent ~= nil and hitted == false then | |
3848 | 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) | |
3849 | 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) | |
3850 | elseif lb.Parent == nil then | |
3851 | break | |
3852 | end | |
3853 | end | |
3854 | end)) | |
3855 | ||
3856 | game:GetService("Debris"):AddItem(a, 0.1) | |
3857 | ||
3858 | coroutine.resume(coroutine.create(function() | |
3859 | swait(1) | |
3860 | lb.Touched:connect(function(hit) | |
3861 | if hitted == false then | |
3862 | hitted = true | |
3863 | lb.Transparency = 1 | |
3864 | lb.Anchored = true | |
3865 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1) | |
3866 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7) | |
3867 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75) | |
3868 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75) | |
3869 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1) | |
3870 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85) | |
3871 | MagniDamage(lb, 45, 45,85, 0, "Normal") | |
3872 | CameraEnshaking(10,5) | |
3873 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
3874 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
3875 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
3876 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
3877 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
3878 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
3879 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
3880 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
3881 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
3882 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
3883 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
3884 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
3885 | for i = 0, 9 do | |
3886 | 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) | |
3887 | 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) | |
3888 | 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) | |
3889 | 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) | |
3890 | 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) | |
3891 | 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) | |
3892 | end | |
3893 | for i = 0, 49 do | |
3894 | swait() | |
3895 | MagniDamage(lb, 30, 30, 60, 0, "Normal") | |
3896 | 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) | |
3897 | 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) | |
3898 | 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) | |
3899 | end | |
3900 | end | |
3901 | end) | |
3902 | end)) | |
3903 | end | |
3904 | Overed = true | |
3905 | orb:Destroy() | |
3906 | end)) | |
3907 | ||
3908 | attack = false | |
3909 | end | |
3910 | ||
3911 | function StarDivision() | |
3912 | attack = true | |
3913 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5) | |
3914 | for i = 0, 2, 0.1 do | |
3915 | swait() | |
3916 | 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) | |
3917 | 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) | |
3918 | 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) | |
3919 | 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) | |
3920 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6) | |
3921 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6) | |
3922 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6) | |
3923 | end | |
3924 | local orb = Instance.new("Part", char) | |
3925 | orb.BrickColor = MAINRUINCOLOR | |
3926 | orb.CanCollide = false | |
3927 | orb.FormFactor = 3 | |
3928 | orb.Name = "Ring" | |
3929 | orb.Material = "Neon" | |
3930 | orb.Size = Vector3.new(1, 1, 1) | |
3931 | orb.Transparency = 0 | |
3932 | orb.TopSurface = 0 | |
3933 | orb.BottomSurface = 0 | |
3934 | local orbm = Instance.new("SpecialMesh", orb) | |
3935 | orbm.MeshType = "Sphere" | |
3936 | orbm.Name = "SizeMesh" | |
3937 | orbm.Scale = vt(2,2,2) | |
3938 | local a = Instance.new("Part",workspace) | |
3939 | a.Name = "Direction" | |
3940 | a.Anchored = true | |
3941 | a.BrickColor = bc("Bright red") | |
3942 | a.Material = "Neon" | |
3943 | a.Transparency = 1 | |
3944 | a.CanCollide = false | |
3945 | local ray = Ray.new( | |
3946 | sorb.CFrame.p, -- origin | |
3947 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
3948 | ) | |
3949 | local ignore = sorb | |
3950 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3951 | a.BottomSurface = 10 | |
3952 | a.TopSurface = 10 | |
3953 | local distance = (sorb.CFrame.p - position).magnitude | |
3954 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
3955 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3956 | orb.CFrame = a.CFrame | |
3957 | a:Destroy() | |
3958 | local bv = Instance.new("BodyVelocity") | |
3959 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3960 | bv.velocity = orb.CFrame.lookVector*100 | |
3961 | bv.Parent = orb | |
3962 | local hitted = false | |
3963 | game:GetService("Debris"):AddItem(orb, 10) | |
3964 | CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15) | |
3965 | CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15) | |
3966 | CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15) | |
3967 | CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15) | |
3968 | CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15) | |
3969 | coroutine.resume(coroutine.create(function() | |
3970 | while true do | |
3971 | swait(1) | |
3972 | if orb.Parent ~= nil and hitted == false then | |
3973 | 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) | |
3974 | elseif orb.Parent == nil then | |
3975 | break | |
3976 | end | |
3977 | end | |
3978 | end)) | |
3979 | coroutine.resume(coroutine.create(function() | |
3980 | swait(1) | |
3981 | orb.Touched:connect(function(hit) | |
3982 | if hitted == false then | |
3983 | hitted = true | |
3984 | game:GetService("Debris"):AddItem(orb, 5) | |
3985 | orb.Transparency = 1 | |
3986 | orb.Anchored = true | |
3987 | local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3988 | elocacenter.Anchored = true | |
3989 | elocacenter.CFrame = orb.CFrame | |
3990 | elocacenter.Orientation = vt(0,0,0) | |
3991 | local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3992 | eloca1.Anchored = true | |
3993 | eloca1.CFrame = elocacenter.CFrame | |
3994 | local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3995 | eloca2.Anchored = true | |
3996 | eloca2.CFrame = elocacenter.CFrame | |
3997 | local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3998 | eloca3.Anchored = true | |
3999 | eloca3.CFrame = elocacenter.CFrame | |
4000 | local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
4001 | eloca4.Anchored = true | |
4002 | eloca4.CFrame = elocacenter.CFrame | |
4003 | local lookavec = 0 | |
4004 | local speeds = 0 | |
4005 | CameraEnshaking(1,1) | |
4006 | CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1) | |
4007 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4008 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4009 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4010 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4011 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4012 | for i = 0, 99 do | |
4013 | swait() | |
4014 | lookavec = lookavec + 1 | |
4015 | speeds = speeds + 0.1 | |
4016 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
4017 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
4018 | 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) | |
4019 | ||
4020 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
4021 | 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) | |
4022 | ||
4023 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
4024 | 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) | |
4025 | ||
4026 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
4027 | 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) | |
4028 | end | |
4029 | ||
4030 | for i = 0, 149 do | |
4031 | swait() | |
4032 | speeds = speeds + 0.1 | |
4033 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
4034 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
4035 | 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) | |
4036 | ||
4037 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
4038 | 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) | |
4039 | ||
4040 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
4041 | 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) | |
4042 | ||
4043 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
4044 | 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) | |
4045 | end | |
4046 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do | |
4047 | if v:FindFirstChild('Head') then | |
4048 | dmg(v) | |
4049 | end | |
4050 | end | |
4051 | CameraEnshaking(7,30) | |
4052 | MagniDamage(elocacenter, 225, 50,75, 0, "Normal") | |
4053 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1) | |
4054 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75) | |
4055 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1) | |
4056 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1) | |
4057 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR) | |
4058 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR) | |
4059 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4060 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4061 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4062 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4063 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
4064 | for i = 0, 24 do | |
4065 | 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) | |
4066 | 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) | |
4067 | 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) | |
4068 | 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) | |
4069 | end | |
4070 | coroutine.resume(coroutine.create(function() | |
4071 | for i = 0, 499 do | |
4072 | swait(1) | |
4073 | MagniDamage(elocacenter, 90, 1,5, 0, "Normal") | |
4074 | 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) | |
4075 | end | |
4076 | elocacenter:Destroy() | |
4077 | eloca1:Destroy() | |
4078 | eloca2:Destroy() | |
4079 | eloca3:Destroy() | |
4080 | eloca4:Destroy() | |
4081 | end)) | |
4082 | end | |
4083 | end) | |
4084 | end)) | |
4085 | attack = false | |
4086 | end | |
4087 | ||
4088 | ||
4089 | function UniversalCollapse() | |
4090 | attack = true | |
4091 | local speedearn = 0 | |
4092 | hum.WalkSpeed = 0 | |
4093 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1) | |
4094 | for i = 0, 10, 0.1 do | |
4095 | swait() | |
4096 | speedearn = speedearn + 0.1 | |
4097 | 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) | |
4098 | 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) | |
4099 | 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) | |
4100 | 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) | |
4101 | 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) | |
4102 | 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) | |
4103 | 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) | |
4104 | 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) | |
4105 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
4106 | 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) | |
4107 | 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) | |
4108 | end | |
4109 | CameraEnshaking(5,45) | |
4110 | sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR) | |
4111 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1) | |
4112 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
4113 | if v:FindFirstChild('Head') then | |
4114 | dmg(v) | |
4115 | end | |
4116 | end | |
4117 | hum.WalkSpeed = storehumanoidWS | |
4118 | attack = false | |
4119 | end | |
4120 | function ChaosBegone() | |
4121 | attack = true | |
4122 | local speedearn = 0 | |
4123 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75) | |
4124 | for i = 0, 10, 0.1 do | |
4125 | swait() | |
4126 | speedearn = speedearn + 0.1 | |
4127 | 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) | |
4128 | 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) | |
4129 | 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) | |
4130 | 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) | |
4131 | 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) | |
4132 | 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) | |
4133 | 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) | |
4134 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4135 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4136 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
4137 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
4138 | end | |
4139 | CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1) | |
4140 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1) | |
4141 | CameraEnshaking(5,25) | |
4142 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
4143 | if v:FindFirstChild('Head') then | |
4144 | dmg(v) | |
4145 | end | |
4146 | end | |
4147 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random()) | |
4148 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random()) | |
4149 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random()) | |
4150 | for i = 0, 3, 0.1 do | |
4151 | swait() | |
4152 | 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) | |
4153 | 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) | |
4154 | 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) | |
4155 | 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) | |
4156 | 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) | |
4157 | 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) | |
4158 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
4159 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
4160 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
4161 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
4162 | end | |
4163 | attack = false | |
4164 | end | |
4165 | ||
4166 | function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon) | |
4167 | local orb = Instance.new("Part", char) | |
4168 | orb.Anchored = true | |
4169 | orb.BrickColor = color | |
4170 | orb.CanCollide = false | |
4171 | orb.FormFactor = 3 | |
4172 | orb.Name = "Ring" | |
4173 | orb.Material = "Neon" | |
4174 | orb.Size = Vector3.new(1, 1, 1) | |
4175 | orb.Transparency = 0 | |
4176 | orb.TopSurface = 0 | |
4177 | orb.BottomSurface = 0 | |
4178 | local orbm = Instance.new("SpecialMesh", orb) | |
4179 | orbm.MeshType = "Sphere" | |
4180 | orb.CFrame = positted | |
4181 | orbm.Name = "SizeMesh" | |
4182 | orbm.Scale = vt(1,1,1) | |
4183 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1) | |
4184 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor) | |
4185 | --[[for i = 0, 2 do | |
4186 | 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) | |
4187 | end]]-- | |
4188 | coroutine.resume(coroutine.create(function() | |
4189 | wait(timer) | |
4190 | CameraEnshaking(3,ShakePower) | |
4191 | orb.Transparency = 1 | |
4192 | MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal") | |
4193 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor) | |
4194 | --[[for i = 0, 4 do | |
4195 | 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) | |
4196 | end]]-- | |
4197 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7) | |
4198 | wait(3) | |
4199 | orb:Destroy() | |
4200 | end)) | |
4201 | end | |
4202 | ||
4203 | function orb_spawn(positted,timer) | |
4204 | local randomcol = math.random(1,2) | |
4205 | local orb = Instance.new("Part", char) | |
4206 | orb.Anchored = true | |
4207 | if randomcol == 1 then | |
4208 | orb.BrickColor = BrickColor.new("White") | |
4209 | elseif randomcol == 2 then | |
4210 | orb.BrickColor = BrickColor.new("Really black") | |
4211 | end | |
4212 | orb.CanCollide = false | |
4213 | orb.FormFactor = 3 | |
4214 | orb.Name = "Ring" | |
4215 | orb.Material = "Neon" | |
4216 | orb.Size = Vector3.new(1, 1, 1) | |
4217 | orb.Transparency = 0 | |
4218 | orb.TopSurface = 0 | |
4219 | orb.BottomSurface = 0 | |
4220 | local orbm = Instance.new("SpecialMesh", orb) | |
4221 | orbm.MeshType = "Sphere" | |
4222 | orb.CFrame = positted | |
4223 | orbm.Name = "SizeMesh" | |
4224 | orbm.Scale = vt(1,1,1) | |
4225 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1) | |
4226 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor) | |
4227 | for i = 0, 2 do | |
4228 | 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) | |
4229 | end | |
4230 | coroutine.resume(coroutine.create(function() | |
4231 | wait(timer) | |
4232 | CameraEnshaking(3,2) | |
4233 | orb.Transparency = 1 | |
4234 | MagniDamage(orb, 17.5, 10,50, 0, "Normal") | |
4235 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor) | |
4236 | for i = 0, 4 do | |
4237 | 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) | |
4238 | end | |
4239 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7) | |
4240 | wait(3) | |
4241 | orb:Destroy() | |
4242 | end)) | |
4243 | end | |
4244 | ||
4245 | function scattercorrupt() | |
4246 | attack = true | |
4247 | local rot = 0 | |
4248 | local randomrotations = math.random(1,2) | |
4249 | local lookv = 2.5 | |
4250 | local power = 5 | |
4251 | sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple")) | |
4252 | sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple")) | |
4253 | for i = 0, 9 do | |
4254 | 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) | |
4255 | end | |
4256 | CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6) | |
4257 | CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5) | |
4258 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1) | |
4259 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75) | |
4260 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5) | |
4261 | local hite = Instance.new("Part", char) | |
4262 | hite.Anchored = true | |
4263 | hite.CanCollide = false | |
4264 | hite.FormFactor = 3 | |
4265 | hite.Name = "Ring" | |
4266 | hite.Material = "Neon" | |
4267 | hite.Size = Vector3.new(1, 1, 1) | |
4268 | hite.Transparency = 1 | |
4269 | hite.TopSurface = 0 | |
4270 | hite.BottomSurface = 0 | |
4271 | hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0) | |
4272 | local rem = Instance.new("Part", char) | |
4273 | rem.Anchored = true | |
4274 | rem.CanCollide = false | |
4275 | rem.FormFactor = 3 | |
4276 | rem.Name = "Ring" | |
4277 | rem.Material = "Neon" | |
4278 | rem.Size = Vector3.new(1, 1, 1) | |
4279 | rem.Transparency = 1 | |
4280 | rem.TopSurface = 0 | |
4281 | rem.BottomSurface = 0 | |
4282 | rem.CFrame = hite.CFrame | |
4283 | local rem2 = rem:Clone() | |
4284 | rem2.Parent = char | |
4285 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4286 | local rem3 = rem:Clone() | |
4287 | rem3.Parent = char | |
4288 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
4289 | local rem4 = rem:Clone() | |
4290 | rem4.Parent = char | |
4291 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
4292 | hite:Destroy() | |
4293 | coroutine.resume(coroutine.create(function() | |
4294 | for i = 0, 24 do | |
4295 | swait(1) | |
4296 | if randomrotations == 1 then | |
4297 | rot = rot + 1 | |
4298 | elseif randomrotations == 2 then | |
4299 | rot = rot - 1 | |
4300 | end | |
4301 | power = power + 0.5 | |
4302 | lookv = lookv + 7.5 | |
4303 | rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
4304 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4305 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
4306 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
4307 | orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4308 | orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4309 | orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4310 | orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4311 | end | |
4312 | end)) | |
4313 | attack = false | |
4314 | end | |
4315 | function yinyangi() | |
4316 | attack = true | |
4317 | for i = 0, 2, 0.1 do | |
4318 | swait() | |
4319 | 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) | |
4320 | 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) | |
4321 | 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) | |
4322 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4323 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2) | |
4324 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
4325 | end | |
4326 | local bv = Instance.new("BodyVelocity") | |
4327 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4328 | bv.velocity = root.CFrame.lookVector*175 | |
4329 | bv.Parent = root | |
4330 | for Rotations = 0, 9 do | |
4331 | for i = 0, 1, 0.5 do | |
4332 | swait() | |
4333 | bv.velocity = root.CFrame.lookVector*175 | |
4334 | 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) | |
4335 | 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) | |
4336 | 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) | |
4337 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4338 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4339 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4340 | end | |
4341 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4342 | for i = 0, 1, 0.5 do | |
4343 | swait() | |
4344 | bv.velocity = root.CFrame.lookVector*175 | |
4345 | 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) | |
4346 | 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) | |
4347 | 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) | |
4348 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4349 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4350 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4351 | end | |
4352 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4353 | for i = 0, 1, 0.5 do | |
4354 | swait() | |
4355 | bv.velocity = root.CFrame.lookVector*175 | |
4356 | 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) | |
4357 | 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) | |
4358 | 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) | |
4359 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4360 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4361 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4362 | end | |
4363 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4364 | for i = 0, 1, 0.5 do | |
4365 | swait() | |
4366 | bv.velocity = root.CFrame.lookVector*175 | |
4367 | 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) | |
4368 | 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) | |
4369 | 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) | |
4370 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4371 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4372 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4373 | end | |
4374 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4375 | end | |
4376 | bv:Destroy() | |
4377 | attack = false | |
4378 | end | |
4379 | ||
4380 | function Wip() | |
4381 | attack = true | |
4382 | ||
4383 | local rngb = Instance.new("Part", char) | |
4384 | rngb.Anchored = true | |
4385 | rngb.BrickColor = origcolor | |
4386 | rngb.CanCollide = false | |
4387 | rngb.FormFactor = 3 | |
4388 | rngb.Name = "Ring" | |
4389 | rngb.Material = "Neon" | |
4390 | rngb.Size = Vector3.new(1, 0.05, 1) | |
4391 | rngb.Transparency = 1 | |
4392 | rngb.TopSurface = 0 | |
4393 | rngb.BottomSurface = 0 | |
4394 | local rngmb = Instance.new("SpecialMesh", rngb) | |
4395 | rngmb.MeshType = "Brick" | |
4396 | rngmb.Name = "SizeMesh" | |
4397 | rngmb.Scale = vt(0,1,0) | |
4398 | ||
4399 | local orb = rngb:Clone() | |
4400 | orb.Parent = char | |
4401 | orb.Transparency = 0 | |
4402 | orb.BrickColor = BrickColor.new("White") | |
4403 | orb.Size = vt(1,1,1) | |
4404 | local orbmish = orb.SizeMesh | |
4405 | orbmish.Scale = vt(0,0,0) | |
4406 | orbmish.MeshType = "Sphere" | |
4407 | ||
4408 | local orbe = rngb:Clone() | |
4409 | orbe.Parent = char | |
4410 | orbe.Transparency = 0.5 | |
4411 | orbe.BrickColor = BrickColor.new("New Yeller") | |
4412 | orbe.Size = vt(1,1,1) | |
4413 | local orbmish2 = orbe.SizeMesh | |
4414 | orbmish2.Scale = vt(0,0,0) | |
4415 | orbmish2.MeshType = "Sphere" | |
4416 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4417 | ||
4418 | rngb:Destroy() | |
4419 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1) | |
4420 | local scaled = 1 | |
4421 | for i = 0,5,0.1 do | |
4422 | swait() | |
4423 | scaled = scaled - 0.02 | |
4424 | if rainbowmode == true then | |
4425 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4426 | end | |
4427 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
4428 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
4429 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4430 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4431 | 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) | |
4432 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4433 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4434 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4435 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4436 | 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) | |
4437 | 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) | |
4438 | RootPart.CFrame = FaceMouse()[1] | |
4439 | end]]-- | |
4440 | for i = 0,5,0.1 do | |
4441 | swait() | |
4442 | if rainbowmode == true then | |
4443 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4444 | end | |
4445 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4446 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4447 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4448 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4449 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4450 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4451 | 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) | |
4452 | 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) | |
4453 | RootPart.CFrame = FaceMouse()[1] | |
4454 | end | |
4455 | orbe.Transparency = 1 | |
4456 | orb.Transparency = 1 | |
4457 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
4458 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1) | |
4459 | local a = Instance.new("Part",Character) | |
4460 | a.Name = "Direction" | |
4461 | a.Anchored = true | |
4462 | a.BrickColor = bc("White") | |
4463 | a.Material = "Neon" | |
4464 | a.Transparency = 0 | |
4465 | a.Shape = "Cylinder" | |
4466 | a.CanCollide = false | |
4467 | local a2 = Instance.new("Part",Character) | |
4468 | a2.Name = "Direction" | |
4469 | a2.Anchored = true | |
4470 | a2.BrickColor = bc("New Yeller") | |
4471 | a2.Color = Color3.new(r/255,g/255,b/255) | |
4472 | a2.Material = "Neon" | |
4473 | a2.Transparency = 0.5 | |
4474 | a2.Shape = "Cylinder" | |
4475 | a2.CanCollide = false | |
4476 | local ba = Instance.new("Part",Character) | |
4477 | ba.Name = "HitDirect" | |
4478 | ba.Anchored = true | |
4479 | ba.BrickColor = bc("Cool yellow") | |
4480 | ba.Material = "Neon" | |
4481 | ba.Transparency = 1 | |
4482 | ba.CanCollide = false | |
4483 | local ray = Ray.new( | |
4484 | orb.CFrame.p, -- origin | |
4485 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4486 | ) | |
4487 | local ignore = Character | |
4488 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4489 | a.BottomSurface = 10 | |
4490 | a.TopSurface = 10 | |
4491 | a2.BottomSurface = 10 | |
4492 | a2.TopSurface = 10 | |
4493 | local distance = (orb.CFrame.p - position).magnitude | |
4494 | a.Size = Vector3.new(distance, 1, 1) | |
4495 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4496 | a2.Size = Vector3.new(distance, 1, 1) | |
4497 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4498 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4499 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4500 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4501 | game:GetService("Debris"):AddItem(a, 20) | |
4502 | game:GetService("Debris"):AddItem(a2, 20) | |
4503 | game:GetService("Debris"):AddItem(ba, 20) | |
4504 | local msh = Instance.new("SpecialMesh",a) | |
4505 | msh.MeshType = "Cylinder" | |
4506 | msh.Scale = vt(1,5*5,5*5) | |
4507 | local msh2 = Instance.new("SpecialMesh",a2) | |
4508 | msh2.MeshType = "Cylinder" | |
4509 | msh2.Scale = vt(1,6*5,6*5) | |
4510 | ||
4511 | for i = 0,10,0.1 do | |
4512 | swait() | |
4513 | CameraEnshaking(1,5) | |
4514 | a2.Color = Color3.new(r/255,g/255,b/255) | |
4515 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4516 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4517 | ray = Ray.new( | |
4518 | orb.CFrame.p, -- origin | |
4519 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4520 | ) | |
4521 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4522 | distance = (orb.CFrame.p - position).magnitude | |
4523 | if typrot == 1 then | |
4524 | rotation = rotation + 2.5 | |
4525 | elseif typrot == 2 then | |
4526 | rotation = rotation - 2.5 | |
4527 | end | |
4528 | RootPart.CFrame = FaceMouse()[1] | |
4529 | a.Size = Vector3.new(distance, 1, 1) | |
4530 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4531 | a2.Size = Vector3.new(distance, 1, 1) | |
4532 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4533 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4534 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4535 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4536 | msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5) | |
4537 | msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5) | |
4538 | 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) | |
4539 | 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) | |
4540 | MagniDamage(ba, 30, 500,60000, 0, "Normal") | |
4541 | end | |
4542 | a:Destroy() | |
4543 | a2:Destroy() | |
4544 | ba:Destroy() | |
4545 | orb:Destroy() | |
4546 | orbe:Destroy() | |
4547 | attack = false | |
4548 | end | |
4549 | function HolyBarrier() | |
4550 | attack = true | |
4551 | shielding = true | |
4552 | for i = 0, 2, 0.1 do | |
4553 | swait() | |
4554 | 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) | |
4555 | 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) | |
4556 | 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) | |
4557 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0)),.4) | |
4558 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(-230),math.rad(-40)),.1) | |
4559 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(120),math.rad(230),math.rad(40)),.1) | |
4560 | end | |
4561 | CFuncs["Sound"].Create("rbxassetid://240429289", root, 7, 1) | |
4562 | stash = Instance.new("Model",workspace) | |
4563 | local barrier = Instance.new("Part",stash) | |
4564 | barrier.Anchored = true | |
4565 | barrier.CanCollide = false | |
4566 | barrier.Size = Vector3.new(20,20,20) | |
4567 | barrier.CFrame = root.CFrame | |
4568 | barrier.Transparency = 0.6 | |
4569 | barrier.BrickColor = MAINRUINCOLOR | |
4570 | barrier.Material = Enum.Material.Neon | |
4571 | barrier.Shape = Enum.PartType.Ball | |
4572 | barrier.CFrame = root.CFrame | |
4573 | sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR) | |
4574 | Torso.Anchored = true | |
4575 | for i=1,50 do | |
4576 | local p = Instance.new("Part",stash) | |
4577 | p.Anchored = true | |
4578 | p.Transparency = 1 | |
4579 | p.Size = Vector3.new(11,11,11) | |
4580 | p.CFrame = root.CFrame * CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)) | |
4581 | end | |
4582 | repeat | |
4583 | swait(5) | |
4584 | 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) | |
4585 | until shielding == false | |
4586 | stash:Remove() | |
4587 | Torso.Anchored = false | |
4588 | shielding = false | |
4589 | sphere(3, "Add", root.CFrame, vt(20, 20, 20), 0.15, MAINRUINCOLOR) | |
4590 | attack = false | |
4591 | end | |
4592 | function Judgement() | |
4593 | attack = true | |
4594 | judgement = true | |
4595 | hum.WalkSpeed = 0 | |
4596 | local p = Instance.new("Part",root) | |
4597 | p.Anchored = true | |
4598 | p.CanCollide = false | |
4599 | p.BrickColor = MAINRUINCOLOR | |
4600 | p.Material = Enum.Material.Neon | |
4601 | p.Size = Vector3.new(1,1,1) | |
4602 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
4603 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
4604 | local m = Instance.new("SpecialMesh",p) | |
4605 | m.MeshType = "Cylinder" | |
4606 | m.Scale = Vector3.new(2000,2,2) | |
4607 | local targ = Instance.new("Part",root) | |
4608 | targ.Anchored = true | |
4609 | targ.Transparency = 1 | |
4610 | targ.CanCollide = false | |
4611 | targ.Size = Vector3.new(1,1,1) | |
4612 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
4613 | local s = Instance.new("Sound",targ) | |
4614 | s.SoundId = "https://roblox.com/asset/?id=115327352" | |
4615 | s.Looped = true | |
4616 | s.Pitch = 1.2 | |
4617 | s.Volume = 3 | |
4618 | spawn(function() | |
4619 | swait(15) | |
4620 | s:Play() | |
4621 | end) | |
4622 | CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1) | |
4623 | for i = 1,15 do | |
4624 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
4625 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2) | |
4626 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2) | |
4627 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2) | |
4628 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2) | |
4629 | 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) | |
4630 | 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) | |
4631 | sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR) | |
4632 | 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) | |
4633 | m.Scale = m.Scale+Vector3.new(0,1,1) | |
4634 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
4635 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
4636 | swait() | |
4637 | end | |
4638 | 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) | |
4639 | repeat | |
4640 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
4641 | 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) | |
4642 | sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR) | |
4643 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
4644 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
4645 | MagniDamage(targ, 25, 5, 8, 0, "Normal") | |
4646 | swait() | |
4647 | until judgement == false | |
4648 | for i =1,15 do | |
4649 | m.Scale = m.Scale-Vector3.new(1,1,1) | |
4650 | p.Transparency = i / 15 | |
4651 | s.Pitch = s.Pitch - 0.4 | |
4652 | swait() | |
4653 | end | |
4654 | p:Destroy() | |
4655 | hum.WalkSpeed = storehumanoidWS | |
4656 | attack = false | |
4657 | end | |
4658 | ||
4659 | function UniversalSpark() | |
4660 | attack = true | |
4661 | ||
4662 | local rngb = Instance.new("Part", char) | |
4663 | rngb.Anchored = true | |
4664 | rngb.BrickColor = origcolor | |
4665 | rngb.CanCollide = false | |
4666 | rngb.FormFactor = 3 | |
4667 | rngb.Name = "Ring" | |
4668 | rngb.Material = "Neon" | |
4669 | rngb.Size = Vector3.new(1, 0.05, 1) | |
4670 | rngb.Transparency = 1 | |
4671 | rngb.TopSurface = 0 | |
4672 | rngb.BottomSurface = 0 | |
4673 | local rngmb = Instance.new("SpecialMesh", rngb) | |
4674 | rngmb.MeshType = "Brick" | |
4675 | rngmb.Name = "SizeMesh" | |
4676 | rngmb.Scale = vt(0,1,0) | |
4677 | ||
4678 | local orb = rngb:Clone() | |
4679 | orb.Parent = char | |
4680 | orb.Transparency = 0 | |
4681 | orb.BrickColor = BrickColor.new("White") | |
4682 | orb.Size = vt(1,1,1) | |
4683 | local orbmish = orb.SizeMesh | |
4684 | orbmish.Scale = vt(0,0,0) | |
4685 | orbmish.MeshType = "Sphere" | |
4686 | ||
4687 | local orbe = rngb:Clone() | |
4688 | orbe.Parent = char | |
4689 | orbe.Transparency = 0.5 | |
4690 | orbe.BrickColor = BrickColor.new("New Yeller") | |
4691 | orbe.Size = vt(1,1,1) | |
4692 | local orbmish2 = orbe.SizeMesh | |
4693 | orbmish2.Scale = vt(0,0,0) | |
4694 | orbmish2.MeshType = "Sphere" | |
4695 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4696 | ||
4697 | rngb:Destroy() | |
4698 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1) | |
4699 | local scaled = 1 | |
4700 | for i = 0,5,0.1 do | |
4701 | swait() | |
4702 | scaled = scaled - 0.02 | |
4703 | if rainbowmode == true then | |
4704 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4705 | end | |
4706 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
4707 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
4708 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4709 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4710 | 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) | |
4711 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4712 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4713 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4714 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4715 | 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) | |
4716 | 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) | |
4717 | RootPart.CFrame = FaceMouse()[1] | |
4718 | end]]-- | |
4719 | for i = 0,5,0.1 do | |
4720 | swait() | |
4721 | if rainbowmode == true then | |
4722 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4723 | end | |
4724 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4725 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4726 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4727 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4728 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4729 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4730 | 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) | |
4731 | 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) | |
4732 | RootPart.CFrame = FaceMouse()[1] | |
4733 | end | |
4734 | orbe.Transparency = 1 | |
4735 | orb.Transparency = 1 | |
4736 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
4737 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1) | |
4738 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1) | |
4739 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
4740 | ||
4741 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1) | |
4742 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1) | |
4743 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
4744 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1) | |
4745 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1) | |
4746 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85) | |
4747 | CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1) | |
4748 | local xd= Instance.new("Sound",char) | |
4749 | xd.SoundId = "rbxassetid://445796828" | |
4750 | xd.Pitch = 0.75 | |
4751 | xd.Looped = true | |
4752 | xd.Volume = 1.25 | |
4753 | xd:Play() | |
4754 | local a = Instance.new("Part",Character) | |
4755 | a.Name = "Direction" | |
4756 | a.Anchored = true | |
4757 | a.BrickColor = bc("Alder") | |
4758 | a.Color = MAINRUINCOLOR.Color | |
4759 | a.Material = "Neon" | |
4760 | a.Transparency = 0.5 | |
4761 | a.Shape = "Cylinder" | |
4762 | a.CanCollide = false | |
4763 | local a2 = Instance.new("Part",Character) | |
4764 | a2.Name = "Direction" | |
4765 | a2.Anchored = true | |
4766 | a2.BrickColor = bc("New Yeller") | |
4767 | a2.Color = MAINRUINCOLOR.Color | |
4768 | a2.Material = "Neon" | |
4769 | a2.Transparency = 0.5 | |
4770 | a2.Shape = "Cylinder" | |
4771 | a2.CanCollide = false | |
4772 | local ba = Instance.new("Part",Character) | |
4773 | ba.Name = "HitDirect" | |
4774 | ba.Anchored = true | |
4775 | ba.BrickColor = bc("Cool yellow") | |
4776 | ba.Material = "Neon" | |
4777 | ba.Transparency = 1 | |
4778 | ba.CanCollide = false | |
4779 | local ray = Ray.new( | |
4780 | orb.CFrame.p, -- origin | |
4781 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4782 | ) | |
4783 | local ignore = Character | |
4784 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4785 | a.BottomSurface = 10 | |
4786 | a.TopSurface = 10 | |
4787 | a2.BottomSurface = 10 | |
4788 | a2.TopSurface = 10 | |
4789 | local distance = (orb.CFrame.p - position).magnitude | |
4790 | a.Size = Vector3.new(distance, 1, 1) | |
4791 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4792 | a2.Size = Vector3.new(distance, 1, 1) | |
4793 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4794 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4795 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4796 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4797 | game:GetService("Debris"):AddItem(a, 60) | |
4798 | game:GetService("Debris"):AddItem(a2, 60) | |
4799 | game:GetService("Debris"):AddItem(ba, 60) | |
4800 | local outerscale = 0 | |
4801 | local msh = Instance.new("SpecialMesh",a) | |
4802 | msh.MeshType = "Cylinder" | |
4803 | msh.Scale = vt(1,0,0) | |
4804 | local msh2 = Instance.new("SpecialMesh",a2) | |
4805 | msh2.MeshType = "Cylinder" | |
4806 | msh2.Scale = vt(1,0,0) | |
4807 | for i = 0,2,0.1 do | |
4808 | swait() | |
4809 | CameraEnshaking(1,1) | |
4810 | msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20) | |
4811 | msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15) | |
4812 | outerscale = outerscale - 0.015 | |
4813 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4814 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4815 | ray = Ray.new( | |
4816 | orb.CFrame.p, -- origin | |
4817 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4818 | ) | |
4819 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4820 | distance = (orb.CFrame.p - position).magnitude | |
4821 | if typrot == 1 then | |
4822 | rotation = rotation + 2.5 | |
4823 | elseif typrot == 2 then | |
4824 | rotation = rotation - 2.5 | |
4825 | end | |
4826 | RootPart.CFrame = FaceMouse()[1] | |
4827 | a.Size = Vector3.new(distance, 1, 1) | |
4828 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4829 | a2.Size = Vector3.new(distance, 1, 1) | |
4830 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4831 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4832 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4833 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4834 | 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) | |
4835 | 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) | |
4836 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
4837 | end | |
4838 | for z = 0, 2 do | |
4839 | for i = 0,4,0.1 do | |
4840 | swait() | |
4841 | CameraEnshaking(1,1) | |
4842 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
4843 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
4844 | outerscale = outerscale + 0.015 | |
4845 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4846 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4847 | ray = Ray.new( | |
4848 | orb.CFrame.p, -- origin | |
4849 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4850 | ) | |
4851 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4852 | distance = (orb.CFrame.p - position).magnitude | |
4853 | if typrot == 1 then | |
4854 | rotation = rotation + 2.5 | |
4855 | elseif typrot == 2 then | |
4856 | rotation = rotation - 2.5 | |
4857 | end | |
4858 | RootPart.CFrame = FaceMouse()[1] | |
4859 | a.Size = Vector3.new(distance, 1, 1) | |
4860 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4861 | a2.Size = Vector3.new(distance, 1, 1) | |
4862 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4863 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4864 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4865 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4866 | 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) | |
4867 | 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) | |
4868 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
4869 | end | |
4870 | for i = 0,4,0.1 do | |
4871 | swait() | |
4872 | CameraEnshaking(1,1) | |
4873 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
4874 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
4875 | outerscale = outerscale - 0.015 | |
4876 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4877 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4878 | ray = Ray.new( | |
4879 | orb.CFrame.p, -- origin | |
4880 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4881 | ) | |
4882 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4883 | distance = (orb.CFrame.p - position).magnitude | |
4884 | if typrot == 1 then | |
4885 | rotation = rotation + 2.5 | |
4886 | elseif typrot == 2 then | |
4887 | rotation = rotation - 2.5 | |
4888 | end | |
4889 | RootPart.CFrame = FaceMouse()[1] | |
4890 | a.Size = Vector3.new(distance, 1, 1) | |
4891 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4892 | a2.Size = Vector3.new(distance, 1, 1) | |
4893 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4894 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4895 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4896 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4897 | 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) | |
4898 | 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) | |
4899 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
4900 | end | |
4901 | end | |
4902 | for i = 0,4,0.1 do | |
4903 | swait() | |
4904 | CameraEnshaking(1,1) | |
4905 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
4906 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
4907 | xd.Volume = xd.Volume - 0.025 | |
4908 | a.Transparency = a.Transparency + 0.025 | |
4909 | a2.Transparency = a2.Transparency + 0.025 | |
4910 | outerscale = outerscale - 0.015 | |
4911 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4912 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4913 | ray = Ray.new( | |
4914 | orb.CFrame.p, -- origin | |
4915 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4916 | ) | |
4917 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4918 | distance = (orb.CFrame.p - position).magnitude | |
4919 | if typrot == 1 then | |
4920 | rotation = rotation + 2.5 | |
4921 | elseif typrot == 2 then | |
4922 | rotation = rotation - 2.5 | |
4923 | end | |
4924 | RootPart.CFrame = FaceMouse()[1] | |
4925 | a.Size = Vector3.new(distance, 1, 1) | |
4926 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4927 | a2.Size = Vector3.new(distance, 1, 1) | |
4928 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4929 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4930 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4931 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4932 | 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) | |
4933 | 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) | |
4934 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
4935 | end | |
4936 | xd:Destroy() | |
4937 | a:Destroy() | |
4938 | a2:Destroy() | |
4939 | ba:Destroy() | |
4940 | orb:Destroy() | |
4941 | orbe:Destroy() | |
4942 | attack = false | |
4943 | end | |
4944 | ||
4945 | ||
4946 | function resetmode() | |
4947 | rainbowmode = false | |
4948 | chaosmode = false | |
4949 | tl1.Enabled = false | |
4950 | tl2.Enabled = false | |
4951 | tl3.Enabled = false | |
4952 | ModeOfGlitch = 1 | |
4953 | storehumanoidWS = 16 | |
4954 | coroutine.resume(coroutine.create(function() | |
4955 | attack = true | |
4956 | hum.WalkSpeed = 0 | |
4957 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25) | |
4958 | for i = 0,4,0.1 do | |
4959 | swait() | |
4960 | 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) | |
4961 | 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) | |
4962 | 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) | |
4963 | 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) | |
4964 | 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) | |
4965 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.5) | |
4966 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.5) | |
4967 | end | |
4968 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1) | |
4969 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
4970 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1) | |
4971 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75) | |
4972 | RecolorTextAndRename("Mayhem",Color3.new(0,0,0),Color3.new(1,0,0)) | |
4973 | CameraEnshaking(5,2.5) | |
4974 | MAINRUINCOLOR = BrickColor.new("Really red") | |
4975 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
4976 | for i = 0, 49 do | |
4977 | 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) | |
4978 | end | |
4979 | for i = 0,3,0.1 do | |
4980 | 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) | |
4981 | end | |
4982 | for i, v in pairs(mw2:GetChildren()) do | |
4983 | if v:IsA("Part") then | |
4984 | v.BrickColor = BrickColor.new("Really red") | |
4985 | v.Material = "Neon" | |
4986 | end | |
4987 | end | |
4988 | for i, v in pairs(mw1:GetChildren()) do | |
4989 | if v:IsA("Part") then | |
4990 | v.Transparency = 1 | |
4991 | v.BrickColor = BrickColor.new("Really red") | |
4992 | v.Material = "Neon" | |
4993 | end | |
4994 | end | |
4995 | for i, v in pairs(m:GetChildren()) do | |
4996 | if v:IsA("Part") then | |
4997 | v.BrickColor = BrickColor.new("Really black") | |
4998 | v.Material = "Glass" | |
4999 | end | |
5000 | end | |
5001 | for i, v in pairs(m2:GetChildren()) do | |
5002 | if v:IsA("Part") then | |
5003 | v.BrickColor = BrickColor.new("Crimson") | |
5004 | v.Material = "Granite" | |
5005 | end | |
5006 | end | |
5007 | for i, v in pairs(m3:GetChildren()) do | |
5008 | if v:IsA("Part") then | |
5009 | v.BrickColor = BrickColor.new("Really red") | |
5010 | v.Material = "Neon" | |
5011 | end | |
5012 | end | |
5013 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5014 | if v:IsA("Part") then | |
5015 | v.Transparency = 1 | |
5016 | v.BrickColor = BrickColor.new("White") | |
5017 | v.Material = "Neon" | |
5018 | end | |
5019 | end | |
5020 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5021 | if v:IsA("Part") then | |
5022 | v.Transparency = 1 | |
5023 | v.BrickColor = BrickColor.new("White") | |
5024 | v.Material = "Neon" | |
5025 | end | |
5026 | end | |
5027 | for i = 0,2,0.1 do | |
5028 | swait() | |
5029 | 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) | |
5030 | 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) | |
5031 | 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) | |
5032 | 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) | |
5033 | 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) | |
5034 | 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) | |
5035 | end | |
5036 | hum.WalkSpeed = storehumanoidWS | |
5037 | attack = false | |
5038 | end)) | |
5039 | newTheme("rbxassetid://614032233",48.6,1,0.3) | |
5040 | end | |
5041 | ||
5042 | function attackone() | |
5043 | attack = true | |
5044 | for i = 0,1,0.1 do | |
5045 | swait() | |
5046 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2) | |
5047 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2) | |
5048 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
5049 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
5050 | 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) | |
5051 | 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) | |
5052 | end | |
5053 | CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1) | |
5054 | ||
5055 | local hitb = Instance.new("Part", char) | |
5056 | hitb.Anchored = true | |
5057 | hitb.CanCollide = false | |
5058 | hitb.FormFactor = 3 | |
5059 | hitb.Name = "Ring" | |
5060 | hitb.Material = "Neon" | |
5061 | hitb.Size = Vector3.new(1, 1, 1) | |
5062 | hitb.Transparency = 1 | |
5063 | hitb.TopSurface = 0 | |
5064 | hitb.BottomSurface = 0 | |
5065 | hitb.CFrame = root.CFrame + root.CFrame.lookVector*2 | |
5066 | MagniDamage(hitb, 3, 10,30, 0, "Normal") | |
5067 | hitb:Destroy() | |
5068 | for i = 0,1,0.1 do | |
5069 | swait() | |
5070 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4) | |
5071 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4) | |
5072 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4) | |
5073 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4) | |
5074 | 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) | |
5075 | 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) | |
5076 | end | |
5077 | ||
5078 | attack = false | |
5079 | end | |
5080 | ||
5081 | function attacktwo() | |
5082 | attack = true | |
5083 | for i = 0,1,0.1 do | |
5084 | swait() | |
5085 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2) | |
5086 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2) | |
5087 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
5088 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
5089 | 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) | |
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(-5),math.rad(0),math.rad(10)),.2) | |
5091 | end | |
5092 | CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1) | |
5093 | local hitb = Instance.new("Part", char) | |
5094 | hitb.Anchored = true | |
5095 | hitb.CanCollide = false | |
5096 | hitb.FormFactor = 3 | |
5097 | hitb.Name = "Ring" | |
5098 | hitb.Material = "Neon" | |
5099 | hitb.Size = Vector3.new(1, 1, 1) | |
5100 | hitb.Transparency = 1 | |
5101 | hitb.TopSurface = 0 | |
5102 | hitb.BottomSurface = 0 | |
5103 | hitb.CFrame = root.CFrame + root.CFrame.lookVector*2 | |
5104 | MagniDamage(hitb, 3, 10,30, 0, "Normal") | |
5105 | hitb:Destroy() | |
5106 | for i = 0,1,0.1 do | |
5107 | swait() | |
5108 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4) | |
5109 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4) | |
5110 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4) | |
5111 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4) | |
5112 | 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) | |
5113 | 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) | |
5114 | end | |
5115 | attack = false | |
5116 | end | |
5117 | ||
5118 | function attackthree() | |
5119 | attack = true | |
5120 | for i = 0,1,0.1 do | |
5121 | swait() | |
5122 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3) | |
5123 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3) | |
5124 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3) | |
5125 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
5126 | 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) | |
5127 | 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) | |
5128 | end | |
5129 | local distlook = 5 | |
5130 | for i = 0, 4 do | |
5131 | swait(2) | |
5132 | CameraEnshaking(2,3) | |
5133 | local hite = Instance.new("Part", char) | |
5134 | hite.Anchored = true | |
5135 | hite.CanCollide = false | |
5136 | hite.FormFactor = 3 | |
5137 | hite.Name = "Ring" | |
5138 | hite.Material = "Neon" | |
5139 | hite.Size = Vector3.new(1, 1, 1) | |
5140 | hite.Transparency = 1 | |
5141 | hite.TopSurface = 0 | |
5142 | hite.BottomSurface = 0 | |
5143 | hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook | |
5144 | sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR) | |
5145 | sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR) | |
5146 | MagniDamage(hite, 10, 15,35, 0, "Normal") | |
5147 | for i = 0, 2 do | |
5148 | 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) | |
5149 | 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) | |
5150 | 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) | |
5151 | end | |
5152 | CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1) | |
5153 | CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6) | |
5154 | game:GetService("Debris"):AddItem(hite, 5) | |
5155 | distlook = distlook + 10 | |
5156 | end | |
5157 | attack = false | |
5158 | end | |
5159 | ||
5160 | local ActiveGia = false | |
5161 | function THEHELLITSTHATBIG() | |
5162 | ActiveGia = true | |
5163 | attack = true | |
5164 | hum.WalkSpeed = 0 | |
5165 | for i = 0,2,0.1 do | |
5166 | swait() | |
5167 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2) | |
5168 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2) | |
5169 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2) | |
5170 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2) | |
5171 | 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) | |
5172 | 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) | |
5173 | end | |
5174 | for i = 0,1,0.1 do | |
5175 | torsweld.C1=clerp(torsweld.C1,cf(0,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
5176 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1) | |
5177 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.45*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1) | |
5178 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
5179 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
5180 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1) | |
5181 | end | |
5182 | CFuncs["Sound"].Create("rbxassetid://528589382", sectors, 5, 1) | |
5183 | secrleg.Transparency = 0.5 | |
5184 | seclleg.Transparency = 0.5 | |
5185 | secrarm.Transparency = 0.5 | |
5186 | seclarm.Transparency = 0.5 | |
5187 | seched.Transparency = 0.5 | |
5188 | sectors.Transparency = 0.5 | |
5189 | for i = 0,25,0.1 do | |
5190 | swait() | |
5191 | 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) | |
5192 | 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) | |
5193 | 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) | |
5194 | 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) | |
5195 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
5196 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
5197 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025) | |
5198 | end | |
5199 | --[[secrleg.Transparency = 1 | |
5200 | seclleg.Transparency = 1 | |
5201 | secrarm.Transparency = 1 | |
5202 | seclarm.Transparency = 1 | |
5203 | seched.Transparency = 1 | |
5204 | sectors.Transparency = 1]]-- | |
5205 | torsweld.Part0 = root | |
5206 | hum.WalkSpeed = storehumanoidWS | |
5207 | attack = false | |
5208 | end | |
5209 | ||
5210 | function removelol() | |
5211 | ActiveGia = false | |
5212 | attack = true | |
5213 | hum.WalkSpeed = 0 | |
5214 | for i = 0,2,0.1 do | |
5215 | swait() | |
5216 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2) | |
5217 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2) | |
5218 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2) | |
5219 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2) | |
5220 | 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) | |
5221 | 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) | |
5222 | end | |
5223 | CFuncs["Sound"].Create("rbxassetid://528589274", sectors, 5, 1) | |
5224 | for i = 0,25,0.1 do | |
5225 | swait() | |
5226 | secrleg.Transparency = secrleg.Transparency + 0.00225 | |
5227 | seclleg.Transparency = secrleg.Transparency | |
5228 | secrarm.Transparency = secrleg.Transparency | |
5229 | seclarm.Transparency = secrleg.Transparency | |
5230 | seched.Transparency = secrleg.Transparency | |
5231 | sectors.Transparency = secrleg.Transparency | |
5232 | 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) | |
5233 | 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) | |
5234 | 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) | |
5235 | 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) | |
5236 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
5237 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
5238 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0.2)*angles(math.rad(-10),math.rad(0),math.rad(0)),0.025) | |
5239 | end | |
5240 | CFuncs["Sound"].Create("rbxassetid://468991944", sectors, 10, 1) | |
5241 | sphere(1,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5242 | sphere(2,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5243 | sphere(3,"Add",sectors.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5244 | secrleg.Transparency = 1 | |
5245 | seclleg.Transparency = 1 | |
5246 | secrarm.Transparency = 1 | |
5247 | seclarm.Transparency = 1 | |
5248 | seched.Transparency = 1 | |
5249 | sectors.Transparency = 1 | |
5250 | torsweld.Part0 = root | |
5251 | hum.WalkSpeed = storehumanoidWS | |
5252 | attack = false | |
5253 | end | |
5254 | ||
5255 | function FinalCalamity() | |
5256 | end | |
5257 | ||
5258 | local attacktype = 1 | |
5259 | mouse.Button1Down:connect(function() | |
5260 | if attack == false and attacktype == 1 then | |
5261 | attacktype = 2 | |
5262 | attackone() | |
5263 | elseif attack == false and attacktype == 2 then | |
5264 | attacktype = 3 | |
5265 | attacktwo() | |
5266 | elseif attack == false and attacktype == 3 then | |
5267 | attacktype = 1 | |
5268 | attackthree() | |
5269 | elseif attack == false and attacktype == 4 then | |
5270 | attacktype = 1 | |
5271 | --attackfour() | |
5272 | end | |
5273 | end) | |
5274 | mouse.KeyDown:connect(function(k) | |
5275 | if k == "q" and attack == false and ModeOfGlitch ~= 2 then | |
5276 | ModeOfGlitch = 2 | |
5277 | storehumanoidWS = 16 | |
5278 | hum.WalkSpeed = 16 | |
5279 | rainbowmode = false | |
5280 | chaosmode = false | |
5281 | tl1.Enabled = false | |
5282 | tl2.Enabled = false | |
5283 | tl3.Enabled = false | |
5284 | RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1)) | |
5285 | newTheme("rbxassetid://1539245059",0,1,0.3) | |
5286 | MAINRUINCOLOR = BrickColor.new("Toothpaste") | |
5287 | for i, v in pairs(mw2:GetChildren()) do | |
5288 | if v:IsA("Part") then | |
5289 | v.BrickColor = MAINRUINCOLOR | |
5290 | v.Material = "Neon" | |
5291 | end | |
5292 | end | |
5293 | for i, v in pairs(mw1:GetChildren()) do | |
5294 | if v:IsA("Part") then | |
5295 | v.Transparency = 1 | |
5296 | v.BrickColor = MAINRUINCOLOR | |
5297 | v.Material = "Neon" | |
5298 | end | |
5299 | end | |
5300 | for i, v in pairs(m:GetChildren()) do | |
5301 | if v:IsA("Part") then | |
5302 | v.BrickColor = BrickColor.new("White") | |
5303 | v.Material = "Ice" | |
5304 | end | |
5305 | end | |
5306 | for i, v in pairs(m2:GetChildren()) do | |
5307 | if v:IsA("Part") then | |
5308 | v.BrickColor = BrickColor.new("Pastel light blue") | |
5309 | v.Material = "Glass" | |
5310 | end | |
5311 | end | |
5312 | for i, v in pairs(m3:GetChildren()) do | |
5313 | if v:IsA("Part") then | |
5314 | v.BrickColor = BrickColor.new("Toothpaste") | |
5315 | v.Material = "Neon" | |
5316 | end | |
5317 | end | |
5318 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5319 | if v:IsA("Part") then | |
5320 | v.Transparency = 1 | |
5321 | v.BrickColor = BrickColor.new("White") | |
5322 | v.Material = "Neon" | |
5323 | end | |
5324 | end | |
5325 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5326 | if v:IsA("Part") then | |
5327 | v.Transparency = 1 | |
5328 | v.BrickColor = BrickColor.new("White") | |
5329 | v.Material = "Neon" | |
5330 | end | |
5331 | end | |
5332 | elseif k == "q" and attack == false and ModeOfGlitch == 2 then | |
5333 | resetmode() | |
5334 | end | |
5335 | if k == "e" and attack == false and ModeOfGlitch ~= 3 then | |
5336 | ModeOfGlitch = 3 | |
5337 | storehumanoidWS = 16 | |
5338 | hum.WalkSpeed = 16 | |
5339 | rainbowmode = false | |
5340 | chaosmode = false | |
5341 | tl1.Enabled = false | |
5342 | tl2.Enabled = false | |
5343 | tl3.Enabled = false | |
5344 | RecolorTextAndRename("Corruption",Color3.new(0,0,0),Color3.new(0.35,0,1)) | |
5345 | newTheme("rbxassetid://1283869370",58.15,0.98,1.25) | |
5346 | MAINRUINCOLOR = BrickColor.new("Royal purple") | |
5347 | for i, v in pairs(mw2:GetChildren()) do | |
5348 | if v:IsA("Part") then | |
5349 | v.BrickColor = MAINRUINCOLOR | |
5350 | v.Material = "Neon" | |
5351 | end | |
5352 | end | |
5353 | for i, v in pairs(mw1:GetChildren()) do | |
5354 | if v:IsA("Part") then | |
5355 | v.Transparency = 1 | |
5356 | v.BrickColor = MAINRUINCOLOR | |
5357 | v.Material = "Neon" | |
5358 | end | |
5359 | end | |
5360 | for i, v in pairs(m:GetChildren()) do | |
5361 | if v:IsA("Part") then | |
5362 | v.BrickColor = BrickColor.new("Black") | |
5363 | v.Material = "Ice" | |
5364 | end | |
5365 | end | |
5366 | for i, v in pairs(m2:GetChildren()) do | |
5367 | if v:IsA("Part") then | |
5368 | v.BrickColor = BrickColor.new("Dark indigo") | |
5369 | v.Material = "Glass" | |
5370 | end | |
5371 | end | |
5372 | for i, v in pairs(m3:GetChildren()) do | |
5373 | if v:IsA("Part") then | |
5374 | v.BrickColor = BrickColor.new("Royal purple") | |
5375 | v.Material = "Neon" | |
5376 | end | |
5377 | end | |
5378 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5379 | if v:IsA("Part") then | |
5380 | v.Transparency = 1 | |
5381 | v.BrickColor = BrickColor.new("White") | |
5382 | v.Material = "Neon" | |
5383 | end | |
5384 | end | |
5385 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5386 | if v:IsA("Part") then | |
5387 | v.Transparency = 1 | |
5388 | v.BrickColor = BrickColor.new("White") | |
5389 | v.Material = "Neon" | |
5390 | end | |
5391 | end | |
5392 | elseif k == "e" and attack == false and ModeOfGlitch == 3 then | |
5393 | resetmode() | |
5394 | end | |
5395 | if k == "r" and attack == false and ModeOfGlitch ~= 4 then | |
5396 | ModeOfGlitch = 4 | |
5397 | storehumanoidWS = 16 | |
5398 | hum.WalkSpeed = 16 | |
5399 | rainbowmode = false | |
5400 | chaosmode = true | |
5401 | tl1.Enabled = true | |
5402 | tl2.Enabled = true | |
5403 | tl3.Enabled = true | |
5404 | RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color) | |
5405 | newTheme("rbxassetid://1369263130",0,1,1) | |
5406 | MAINRUINCOLOR = BrickColor.new("Black") | |
5407 | for i, v in pairs(mw2:GetChildren()) do | |
5408 | if v:IsA("Part") then | |
5409 | v.BrickColor = MAINRUINCOLOR | |
5410 | v.Material = "Neon" | |
5411 | end | |
5412 | end | |
5413 | for i, v in pairs(mw1:GetChildren()) do | |
5414 | if v:IsA("Part") then | |
5415 | v.Transparency = 0.75 | |
5416 | v.BrickColor = BrickColor.random() | |
5417 | v.Material = "Neon" | |
5418 | end | |
5419 | end | |
5420 | for i, v in pairs(m:GetChildren()) do | |
5421 | if v:IsA("Part") then | |
5422 | v.BrickColor = BrickColor.new("Black") | |
5423 | v.Material = "Neon" | |
5424 | end | |
5425 | end | |
5426 | for i, v in pairs(m2:GetChildren()) do | |
5427 | if v:IsA("Part") then | |
5428 | v.BrickColor = BrickColor.random() | |
5429 | v.Material = "Neon" | |
5430 | end | |
5431 | end | |
5432 | for i, v in pairs(m3:GetChildren()) do | |
5433 | if v:IsA("Part") then | |
5434 | v.BrickColor = BrickColor.new("Black") | |
5435 | v.Material = "Neon" | |
5436 | end | |
5437 | end | |
5438 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5439 | if v:IsA("Part") then | |
5440 | v.Transparency = 1 | |
5441 | v.BrickColor = BrickColor.new("White") | |
5442 | v.Material = "Neon" | |
5443 | end | |
5444 | end | |
5445 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5446 | if v:IsA("Part") then | |
5447 | v.Transparency = 1 | |
5448 | v.BrickColor = BrickColor.new("White") | |
5449 | v.Material = "Neon" | |
5450 | end | |
5451 | end | |
5452 | elseif k == "r" and attack == false and ModeOfGlitch == 4 then | |
5453 | resetmode() | |
5454 | end | |
5455 | if k == "t" and attack == false and ModeOfGlitch ~= 5 then | |
5456 | ModeOfGlitch = 5 | |
5457 | storehumanoidWS = 16 | |
5458 | hum.WalkSpeed = 16 | |
5459 | rainbowmode = false | |
5460 | chaosmode = false | |
5461 | tl1.Enabled = true | |
5462 | tl2.Enabled = true | |
5463 | tl3.Enabled = true | |
5464 | RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5)) | |
5465 | newTheme("rbxassetid://661079869",0,1.02,1) | |
5466 | MAINRUINCOLOR = BrickColor.new("Bright yellow") | |
5467 | for i, v in pairs(mw2:GetChildren()) do | |
5468 | if v:IsA("Part") then | |
5469 | v.BrickColor = MAINRUINCOLOR | |
5470 | v.Material = "Neon" | |
5471 | end | |
5472 | end | |
5473 | for i, v in pairs(mw1:GetChildren()) do | |
5474 | if v:IsA("Part") then | |
5475 | v.Transparency = 0 | |
5476 | v.BrickColor = MAINRUINCOLOR | |
5477 | v.Material = "Neon" | |
5478 | end | |
5479 | end | |
5480 | for i, v in pairs(m:GetChildren()) do | |
5481 | if v:IsA("Part") then | |
5482 | v.BrickColor = BrickColor.new("Cool yellow") | |
5483 | v.Material = "Ice" | |
5484 | end | |
5485 | end | |
5486 | for i, v in pairs(m2:GetChildren()) do | |
5487 | if v:IsA("Part") then | |
5488 | v.BrickColor = BrickColor.new("Bright yellow") | |
5489 | v.Material = "Ice" | |
5490 | end | |
5491 | end | |
5492 | for i, v in pairs(m3:GetChildren()) do | |
5493 | if v:IsA("Part") then | |
5494 | v.BrickColor = BrickColor.new("Bright yellow") | |
5495 | v.Material = "Neon" | |
5496 | end | |
5497 | end | |
5498 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5499 | if v:IsA("Part") then | |
5500 | v.Transparency = 1 | |
5501 | v.BrickColor = BrickColor.new("White") | |
5502 | v.Material = "Neon" | |
5503 | end | |
5504 | end | |
5505 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5506 | if v:IsA("Part") then | |
5507 | v.Transparency = 1 | |
5508 | v.BrickColor = BrickColor.new("White") | |
5509 | v.Material = "Neon" | |
5510 | end | |
5511 | end | |
5512 | elseif k == "t" and attack == false and ModeOfGlitch == 5 then | |
5513 | resetmode() | |
5514 | end | |
5515 | if k == "y" and attack == false and ModeOfGlitch ~= 6 then | |
5516 | ModeOfGlitch = 6 | |
5517 | storehumanoidWS = 75 | |
5518 | hum.WalkSpeed = 75 | |
5519 | rainbowmode = false | |
5520 | chaosmode = false | |
5521 | tl1.Enabled = true | |
5522 | tl2.Enabled = true | |
5523 | tl3.Enabled = true | |
5524 | RecolorTextAndRename("Equinox",Color3.new(0,0,0),Color3.new(1,1,1)) | |
5525 | newTheme("rbxassetid://395351949",0,1,1) | |
5526 | MAINRUINCOLOR = BrickColor.new("White") | |
5527 | for i, v in pairs(mw2:GetChildren()) do | |
5528 | if v:IsA("Part") then | |
5529 | v.BrickColor = MAINRUINCOLOR | |
5530 | v.Material = "Neon" | |
5531 | end | |
5532 | end | |
5533 | for i, v in pairs(mw1:GetChildren()) do | |
5534 | if v:IsA("Part") then | |
5535 | v.Transparency = 0 | |
5536 | v.BrickColor = MAINRUINCOLOR | |
5537 | v.Material = "Neon" | |
5538 | end | |
5539 | end | |
5540 | for i, v in pairs(m:GetChildren()) do | |
5541 | if v:IsA("Part") then | |
5542 | v.BrickColor = BrickColor.new("White") | |
5543 | v.Material = "Ice" | |
5544 | end | |
5545 | end | |
5546 | for i, v in pairs(m2:GetChildren()) do | |
5547 | if v:IsA("Part") then | |
5548 | v.BrickColor = BrickColor.new("Really black") | |
5549 | v.Material = "Ice" | |
5550 | end | |
5551 | end | |
5552 | for i, v in pairs(m3:GetChildren()) do | |
5553 | if v:IsA("Part") then | |
5554 | v.BrickColor = BrickColor.new("White") | |
5555 | v.Material = "Neon" | |
5556 | end | |
5557 | end | |
5558 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5559 | if v:IsA("Part") then | |
5560 | v.Transparency = 1 | |
5561 | v.BrickColor = BrickColor.new("White") | |
5562 | v.Material = "Neon" | |
5563 | end | |
5564 | end | |
5565 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5566 | if v:IsA("Part") then | |
5567 | v.Transparency = 1 | |
5568 | v.BrickColor = BrickColor.new("White") | |
5569 | v.Material = "Neon" | |
5570 | end | |
5571 | end | |
5572 | elseif k == "y" and attack == false and ModeOfGlitch == 6 then | |
5573 | resetmode() | |
5574 | end | |
5575 | if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then | |
5576 | ModeOfGlitch = 6127843 | |
5577 | storehumanoidWS = 50 | |
5578 | hum.WalkSpeed = 50 | |
5579 | rainbowmode = true | |
5580 | chaosmode = false | |
5581 | tl1.Enabled = true | |
5582 | tl2.Enabled = true | |
5583 | tl3.Enabled = true | |
5584 | RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1)) | |
5585 | newTheme("rbxassetid://147930134",0,1,1) | |
5586 | MAINRUINCOLOR = BrickColor.new("White") | |
5587 | for i, v in pairs(mw2:GetChildren()) do | |
5588 | if v:IsA("Part") then | |
5589 | v.BrickColor = MAINRUINCOLOR | |
5590 | v.Material = "Neon" | |
5591 | end | |
5592 | end | |
5593 | for i, v in pairs(mw1:GetChildren()) do | |
5594 | if v:IsA("Part") then | |
5595 | v.Transparency = 0 | |
5596 | v.BrickColor = MAINRUINCOLOR | |
5597 | v.Material = "Neon" | |
5598 | end | |
5599 | end | |
5600 | for i, v in pairs(m:GetChildren()) do | |
5601 | if v:IsA("Part") then | |
5602 | v.BrickColor = BrickColor.new("White") | |
5603 | v.Material = "Neon" | |
5604 | end | |
5605 | end | |
5606 | for i, v in pairs(m2:GetChildren()) do | |
5607 | if v:IsA("Part") then | |
5608 | v.BrickColor = BrickColor.new("White") | |
5609 | v.Material = "Neon" | |
5610 | end | |
5611 | end | |
5612 | for i, v in pairs(m3:GetChildren()) do | |
5613 | if v:IsA("Part") then | |
5614 | v.BrickColor = BrickColor.new("White") | |
5615 | v.Material = "Neon" | |
5616 | end | |
5617 | end | |
5618 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5619 | if v:IsA("Part") then | |
5620 | v.Transparency = 1 | |
5621 | v.BrickColor = BrickColor.new("White") | |
5622 | v.Material = "Neon" | |
5623 | end | |
5624 | end | |
5625 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5626 | if v:IsA("Part") then | |
5627 | v.Transparency = 1 | |
5628 | v.BrickColor = BrickColor.new("White") | |
5629 | v.Material = "Neon" | |
5630 | end | |
5631 | end | |
5632 | elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then | |
5633 | resetmode() | |
5634 | end | |
5635 | if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then | |
5636 | ModeOfGlitch = 1000000 | |
5637 | storehumanoidWS = 100 | |
5638 | hum.WalkSpeed = 100 | |
5639 | rainbowmode = false | |
5640 | chaosmode = false | |
5641 | tl1.Enabled = true | |
5642 | tl2.Enabled = true | |
5643 | tl3.Enabled = true | |
5644 | RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1)) | |
5645 | newTheme("rbxassetid://1359036559",0,1,1) | |
5646 | MAINRUINCOLOR = BrickColor.new("Bright violet") | |
5647 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5648 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5649 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5650 | for i, v in pairs(mw2:GetChildren()) do | |
5651 | if v:IsA("Part") then | |
5652 | v.BrickColor = MAINRUINCOLOR | |
5653 | v.Material = "Neon" | |
5654 | end | |
5655 | end | |
5656 | for i, v in pairs(mw1:GetChildren()) do | |
5657 | if v:IsA("Part") then | |
5658 | v.Transparency = 0 | |
5659 | v.BrickColor = MAINRUINCOLOR | |
5660 | v.Material = "Neon" | |
5661 | end | |
5662 | end | |
5663 | for i, v in pairs(m:GetChildren()) do | |
5664 | if v:IsA("Part") then | |
5665 | v.Color = Color3.new(0.5,0,1) | |
5666 | v.Material = "Neon" | |
5667 | end | |
5668 | end | |
5669 | for i, v in pairs(m2:GetChildren()) do | |
5670 | if v:IsA("Part") then | |
5671 | v.Color = Color3.new(0.25,0,1) | |
5672 | v.Material = "Neon" | |
5673 | end | |
5674 | end | |
5675 | for i, v in pairs(m3:GetChildren()) do | |
5676 | if v:IsA("Part") then | |
5677 | v.Color = Color3.new(0.45,0,1) | |
5678 | v.Material = "Neon" | |
5679 | end | |
5680 | end | |
5681 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5682 | if v:IsA("Part") then | |
5683 | v.Transparency = 0.75 | |
5684 | v.Color = Color3.new(0.25,0,1) | |
5685 | v.Material = "Neon" | |
5686 | end | |
5687 | end | |
5688 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5689 | if v:IsA("Part") then | |
5690 | v.Transparency = 0.75 | |
5691 | v.Color = Color3.new(0.5,0,1) | |
5692 | v.Material = "Neon" | |
5693 | end | |
5694 | end | |
5695 | elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then | |
5696 | resetmode() | |
5697 | end | |
5698 | if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 then | |
5699 | newThemeCust("rbxassetid://1504604335",0,1,1) | |
5700 | attack = true | |
5701 | hum.WalkSpeed = 0 | |
5702 | MAINRUINCOLOR = BrickColor.new("Royal purple") | |
5703 | for i = 0, 24, 0.1 do | |
5704 | swait() | |
5705 | 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) | |
5706 | 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) | |
5707 | 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) | |
5708 | 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) | |
5709 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
5710 | 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) | |
5711 | 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) | |
5712 | end | |
5713 | CameraEnshaking(1,1) | |
5714 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
5715 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1) | |
5716 | wait(0.55) | |
5717 | CameraEnshaking(1,2) | |
5718 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
5719 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
5720 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
5721 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
5722 | wait(0.55) | |
5723 | CameraEnshaking(1,3) | |
5724 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
5725 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
5726 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
5727 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
5728 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
5729 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1) | |
5730 | wait(0.55) | |
5731 | CameraEnshaking(10,5) | |
5732 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1) | |
5733 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1) | |
5734 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
5735 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85) | |
5736 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1) | |
5737 | sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
5738 | sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR) | |
5739 | sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR) | |
5740 | sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR) | |
5741 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
5742 | sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR) | |
5743 | sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR) | |
5744 | sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR) | |
5745 | sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR) | |
5746 | sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR) | |
5747 | for i = 0, 49 do | |
5748 | 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) | |
5749 | 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) | |
5750 | 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) | |
5751 | 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) | |
5752 | end | |
5753 | ModeOfGlitch = 12345678987654321 | |
5754 | storehumanoidWS = 200 | |
5755 | hum.WalkSpeed = 200 | |
5756 | rainbowmode = false | |
5757 | chaosmode = false | |
5758 | tl1.Enabled = true | |
5759 | tl2.Enabled = true | |
5760 | tl3.Enabled = true | |
5761 | RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1)) | |
5762 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5763 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5764 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5765 | for i, v in pairs(mw2:GetChildren()) do | |
5766 | if v:IsA("Part") then | |
5767 | v.BrickColor = MAINRUINCOLOR | |
5768 | v.Material = "Neon" | |
5769 | end | |
5770 | end | |
5771 | for i, v in pairs(mw1:GetChildren()) do | |
5772 | if v:IsA("Part") then | |
5773 | v.Transparency = 0 | |
5774 | v.BrickColor = MAINRUINCOLOR | |
5775 | v.Material = "Neon" | |
5776 | end | |
5777 | end | |
5778 | for i, v in pairs(m:GetChildren()) do | |
5779 | if v:IsA("Part") then | |
5780 | v.Color = Color3.new(0.5,0,1) | |
5781 | v.Material = "Neon" | |
5782 | end | |
5783 | end | |
5784 | for i, v in pairs(m2:GetChildren()) do | |
5785 | if v:IsA("Part") then | |
5786 | v.Color = Color3.new(0.5,0,1) | |
5787 | v.Material = "Neon" | |
5788 | end | |
5789 | end | |
5790 | for i, v in pairs(m3:GetChildren()) do | |
5791 | if v:IsA("Part") then | |
5792 | v.Color = Color3.new(0.5,0,1) | |
5793 | v.Material = "Neon" | |
5794 | end | |
5795 | end | |
5796 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5797 | if v:IsA("Part") then | |
5798 | v.Transparency = 0 | |
5799 | v.Color = Color3.new(0.5,0,1) | |
5800 | v.Material = "Neon" | |
5801 | end | |
5802 | end | |
5803 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5804 | if v:IsA("Part") then | |
5805 | v.Transparency = 0 | |
5806 | v.Color = Color3.new(0.5,0,1) | |
5807 | v.Material = "Neon" | |
5808 | end | |
5809 | attack = false | |
5810 | end | |
5811 | elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then | |
5812 | resetmode() | |
5813 | end | |
5814 | if k == "b" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 666 then | |
5815 | newThemeCust("rbxassetid://723652641",0,1,1) | |
5816 | attack = true | |
5817 | hum.WalkSpeed = 0 | |
5818 | MAINRUINCOLOR = BrickColor.new("Crimson") | |
5819 | for i = 0, 24, 0.1 do | |
5820 | swait() | |
5821 | 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) | |
5822 | 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) | |
5823 | 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) | |
5824 | 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) | |
5825 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
5826 | 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) | |
5827 | 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) | |
5828 | end | |
5829 | CameraEnshaking(1,1) | |
5830 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
5831 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1) | |
5832 | wait(0.55) | |
5833 | CameraEnshaking(1,2) | |
5834 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
5835 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
5836 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
5837 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
5838 | wait(0.55) | |
5839 | CameraEnshaking(1,3) | |
5840 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
5841 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
5842 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
5843 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
5844 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
5845 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1) | |
5846 | wait(0.55) | |
5847 | CameraEnshaking(10,5) | |
5848 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1) | |
5849 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1) | |
5850 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
5851 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85) | |
5852 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1) | |
5853 | sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
5854 | sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR) | |
5855 | sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR) | |
5856 | sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR) | |
5857 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
5858 | sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR) | |
5859 | sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR) | |
5860 | sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR) | |
5861 | sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR) | |
5862 | sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR) | |
5863 | for i = 0, 49 do | |
5864 | 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) | |
5865 | 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) | |
5866 | 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) | |
5867 | 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) | |
5868 | end | |
5869 | ModeOfGlitch = 666 | |
5870 | storehumanoidWS = 16 | |
5871 | hum.WalkSpeed = 16 | |
5872 | rainbowmode = false | |
5873 | chaosmode = false | |
5874 | tl1.Enabled = true | |
5875 | tl2.Enabled = true | |
5876 | tl3.Enabled = true | |
5877 | RecolorTextAndRename("DeStRuCtIoN",Color3.new(1,0,0),Color3.new(0.75,0,0)) | |
5878 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5879 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5880 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5881 | for i, v in pairs(mw2:GetChildren()) do | |
5882 | if v:IsA("Part") then | |
5883 | v.BrickColor = MAINRUINCOLOR | |
5884 | v.Material = "Neon" | |
5885 | end | |
5886 | end | |
5887 | for i, v in pairs(mw1:GetChildren()) do | |
5888 | if v:IsA("Part") then | |
5889 | v.Transparency = 0 | |
5890 | v.BrickColor = MAINRUINCOLOR | |
5891 | v.Material = "Neon" | |
5892 | end | |
5893 | end | |
5894 | for i, v in pairs(m:GetChildren()) do | |
5895 | if v:IsA("Part") then | |
5896 | v.Color = Color3.new(1,0,0) | |
5897 | v.Material = "Neon" | |
5898 | end | |
5899 | end | |
5900 | for i, v in pairs(m2:GetChildren()) do | |
5901 | if v:IsA("Part") then | |
5902 | v.Color = Color3.new(1,0,0) | |
5903 | v.Material = "Neon" | |
5904 | end | |
5905 | end | |
5906 | for i, v in pairs(m3:GetChildren()) do | |
5907 | if v:IsA("Part") then | |
5908 | v.Color = Color3.new(1,0,0) | |
5909 | v.Material = "Neon" | |
5910 | end | |
5911 | end | |
5912 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5913 | if v:IsA("Part") then | |
5914 | v.Transparency = 0 | |
5915 | v.Color = Color3.new(1,0,0) | |
5916 | v.Material = "Neon" | |
5917 | end | |
5918 | end | |
5919 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5920 | if v:IsA("Part") then | |
5921 | v.Transparency = 0 | |
5922 | v.Color = Color3.new(1,0,0) | |
5923 | v.Material = "Neon" | |
5924 | end | |
5925 | attack = false | |
5926 | end | |
5927 | elseif k == "b" and attack == false and ModeOfGlitch == 666 then | |
5928 | resetmode() | |
5929 | end | |
5930 | if k == "l" and toggleTag == false then | |
5931 | toggleTag = true | |
5932 | text.TextTransparency = 0 | |
5933 | text.TextStrokeTransparency = 0 | |
5934 | elseif k == "l" and toggleTag == true then | |
5935 | toggleTag = false | |
5936 | text.TextTransparency = 1 | |
5937 | text.TextStrokeTransparency = 1 | |
5938 | end | |
5939 | if k == "z" and attack == false and ModeOfGlitch == 1 then | |
5940 | ExtinctiveHeartbreak() | |
5941 | elseif k == "z" and attack == false and ModeOfGlitch == 2 then | |
5942 | PureBomb() | |
5943 | elseif k == "z" and attack == false and ModeOfGlitch == 3 then | |
5944 | scattercorrupt() | |
5945 | elseif k == "z" and attack == false and ModeOfGlitch == 4 then | |
5946 | ChaosGroundStrike() | |
5947 | elseif k == "z" and attack == false and ModeOfGlitch == 5 then | |
5948 | Judgement() | |
5949 | elseif k == "f" and attack == false and ModeOfGlitch == 5 then | |
5950 | HolyBarrier() | |
5951 | elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then | |
5952 | Starfall() | |
5953 | elseif k == "z" and attack == false and ModeOfGlitch == 6 then | |
5954 | yinyangi() | |
5955 | elseif k == "x" and attack == false and ModeOfGlitch == 6 then | |
5956 | MeteorStrike() | |
5957 | elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then | |
5958 | Wip() | |
5959 | elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then | |
5960 | StarfallEX() | |
5961 | elseif k == "c" and attack == false and ModeOfGlitch == 12345678987654321 then | |
5962 | FinalCalam() | |
5963 | end | |
5964 | if k == "n" and attack == false then | |
5965 | Blink() | |
5966 | elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then | |
5967 | StarDivision() | |
5968 | end | |
5969 | if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then | |
5970 | UniversalCollapse() | |
5971 | end | |
5972 | if k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed < 200 then | |
5973 | hum.WalkSpeed = 16 + 184 | |
5974 | elseif k == "k" and attack == false and ModeOfGlitch == 666 and hum.WalkSpeed == 200 then | |
5975 | hum.WalkSpeed = 200 - 184 | |
5976 | end | |
5977 | if k == "x" and attack == false and ModeOfGlitch == 12345678987654321 then | |
5978 | UniversalSpark() | |
5979 | end | |
5980 | if k == "z" and attack == false and ModeOfGlitch == 666 then | |
5981 | StarDivision() | |
5982 | end | |
5983 | if k == "x" and attack == false and ModeOfGlitch == 666 then | |
5984 | Starfall() | |
5985 | end | |
5986 | if k == "m" and attack == false and ModeOfGlitch == 4 then | |
5987 | ChaosBegone() | |
5988 | elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == false then | |
5989 | THEHELLITSTHATBIG() | |
5990 | elseif k == "m" and attack == false and ModeOfGlitch == 1 and ActiveGia == true then | |
5991 | removelol() | |
5992 | end | |
5993 | end) | |
5994 | mouse.KeyUp:connect(function(k) | |
5995 | if k == "f" and ModeOfGlitch == 5 then | |
5996 | shielding = false | |
5997 | end | |
5998 | if k == "z" and ModeOfGlitch == 5 then | |
5999 | judgement = false | |
6000 | end | |
6001 | end) | |
6002 | coroutine.resume(coroutine.create(function() | |
6003 | while true do | |
6004 | swait(2) | |
6005 | if rainbowmode == true or ModeOfGlitch == 6 then | |
6006 | if eff == true then | |
6007 | 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) | |
6008 | end | |
6009 | end | |
6010 | end | |
6011 | end)) | |
6012 | coroutine.resume(coroutine.create(function() | |
6013 | while true do | |
6014 | swait(2) | |
6015 | if shielding == true then | |
6016 | end | |
6017 | end | |
6018 | end)) | |
6019 | ||
6020 | ||
6021 | coroutine.resume(coroutine.create(function() | |
6022 | while true do | |
6023 | if ModeOfGlitch == 1000000 then | |
6024 | swait(0.5) | |
6025 | end | |
6026 | swait() | |
6027 | if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then | |
6028 | 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) | |
6029 | end | |
6030 | if ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then | |
6031 | 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) | |
6032 | end | |
6033 | end | |
6034 | end)) | |
6035 | ||
6036 | ||
6037 | coroutine.resume(coroutine.create(function() | |
6038 | while true do | |
6039 | swait(2) | |
6040 | if chaosmode == true then | |
6041 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
6042 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
6043 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
6044 | RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color) | |
6045 | for i, v in pairs(mw1:GetChildren()) do | |
6046 | if v:IsA("Part") then | |
6047 | v.Transparency = 0.75 | |
6048 | v.BrickColor = BrickColor.random() | |
6049 | v.Material = "Neon" | |
6050 | end | |
6051 | end | |
6052 | for i, v in pairs(m2:GetChildren()) do | |
6053 | if v:IsA("Part") then | |
6054 | v.BrickColor = BrickColor.random() | |
6055 | v.Material = "Neon" | |
6056 | end | |
6057 | end | |
6058 | for i, v in pairs(secondchar:GetChildren()) do | |
6059 | if v:IsA("Part") then | |
6060 | v.BrickColor = BrickColor.random() | |
6061 | v.Material = "Neon" | |
6062 | end | |
6063 | end | |
6064 | end | |
6065 | end | |
6066 | end)) | |
6067 | Humanoid.Name = "STARGLITCHER" | |
6068 | Humanoid.MaxHealth = math.huge | |
6069 | Humanoid.Health = math.huge | |
6070 | Instance.new("ForceField",char).Visible = false | |
6071 | Humanoid.Animator.Parent = nil | |
6072 | idleanim=.4 | |
6073 | while true do | |
6074 | if rainbowmode == false then | |
6075 | tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6076 | tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6077 | tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6078 | for i, v in pairs(secondchar:GetChildren()) do | |
6079 | if v:IsA("Part") then | |
6080 | v.BrickColor = MAINRUINCOLOR | |
6081 | v.Material = "Neon" | |
6082 | end | |
6083 | end | |
6084 | if chaosmode == false then | |
6085 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6086 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6087 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6088 | for i, v in pairs(secondchar:GetChildren()) do | |
6089 | if v:IsA("Part") then | |
6090 | v.BrickColor = MAINRUINCOLOR | |
6091 | v.Material = "Neon" | |
6092 | end | |
6093 | end | |
6094 | end | |
6095 | end | |
6096 | if rainbowmode == true then | |
6097 | RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500)) | |
6098 | MAINRUINCOLOR = BrickColor.new("White") | |
6099 | tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6100 | tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6101 | tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6102 | tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6103 | tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6104 | tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6105 | for i, v in pairs(m:GetChildren()) do | |
6106 | if v:IsA("Part") then | |
6107 | v.Color = Color3.new(r/255,g/255,b/255) | |
6108 | end | |
6109 | end | |
6110 | for i, v in pairs(m2:GetChildren()) do | |
6111 | if v:IsA("Part") then | |
6112 | v.Color = Color3.new(r/255,g/255,b/255) | |
6113 | end | |
6114 | end | |
6115 | for i, v in pairs(secondchar:GetChildren()) do | |
6116 | if v:IsA("Part") then | |
6117 | v.Color = Color3.new(r/255,g/255,b/255) | |
6118 | v.Material = "Neon" | |
6119 | end | |
6120 | end | |
6121 | for i, v in pairs(m3:GetChildren()) do | |
6122 | if v:IsA("Part") then | |
6123 | v.Color = Color3.new(r/255,g/255,b/255) | |
6124 | end | |
6125 | end | |
6126 | for i, v in pairs(mw1:GetChildren()) do | |
6127 | if v:IsA("Part") then | |
6128 | v.Color = Color3.new(r/255,g/255,b/255) | |
6129 | v.Material = "Neon" | |
6130 | end | |
6131 | end | |
6132 | for i, v in pairs(mw2:GetChildren()) do | |
6133 | if v:IsA("Part") then | |
6134 | v.Color = Color3.new(r/255,g/255,b/255) | |
6135 | v.Material = "Neon" | |
6136 | end | |
6137 | end | |
6138 | end | |
6139 | CameraManager() | |
6140 | swait() | |
6141 | 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) | |
6142 | 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) | |
6143 | 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) | |
6144 | 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) | |
6145 | 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) | |
6146 | 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) | |
6147 | ||
6148 | if attack == false and ActiveGia == false then | |
6149 | torsweld.C1=clerp(torsweld.C1,cf(2,5*4,-8)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
6150 | larmsweld.C1=clerp(larmsweld.C1,cf(1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(20)),1) | |
6151 | rarmsweld.C1=clerp(rarmsweld.C1,cf(-1.65*8,0.25*8,0)*angles(math.rad(0),math.rad(0),math.rad(-20)),1) | |
6152 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
6153 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),1) | |
6154 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,0)*angles(math.rad(-10),math.rad(0),math.rad(0)),1) | |
6155 | elseif attack == false and ActiveGia == true then | |
6156 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then | |
6157 | 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) | |
6158 | 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) | |
6159 | 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) | |
6160 | llegsweld.C1=clerp(llegsweld.C1,cf(0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
6161 | rlegsweld.C1=clerp(rlegsweld.C1,cf(-0.5*8,2*8,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.025) | |
6162 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(10),math.rad(0),math.rad(0)),0.025) | |
6163 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then | |
6164 | 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) | |
6165 | 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) | |
6166 | 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) | |
6167 | 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) | |
6168 | 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) | |
6169 | hedsweld.C1=clerp(hedsweld.C1,cf(0,-1.5*8,-0.2)*angles(math.rad(5),math.rad(0),math.rad(0)),0.025) | |
6170 | end | |
6171 | end | |
6172 | ||
6173 | 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) | |
6174 | 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) | |
6175 | 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) | |
6176 | 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) | |
6177 | 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) | |
6178 | 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) | |
6179 | sine = sine + change | |
6180 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
6181 | local velderp=RootPart.Velocity.y | |
6182 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
6183 | if equipped==true or equipped==false then | |
6184 | if attack==false then | |
6185 | idle=idle+1 | |
6186 | else | |
6187 | idle=0 | |
6188 | end | |
6189 | if idle>=500 then | |
6190 | if attack==false then | |
6191 | --Sheath() | |
6192 | end | |
6193 | end | |
6194 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
6195 | Anim="Jump" | |
6196 | if attack==false then | |
6197 | 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) | |
6198 | 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) | |
6199 | 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) | |
6200 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
6201 | 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) | |
6202 | 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) | |
6203 | end | |
6204 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
6205 | Anim="Fall" | |
6206 | if attack==false then | |
6207 | 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) | |
6208 | 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) | |
6209 | 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) | |
6210 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
6211 | 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) | |
6212 | 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) | |
6213 | end | |
6214 | elseif torvel<1 and hitfloor~=nil then | |
6215 | Anim="Idle" | |
6216 | if attack==false then | |
6217 | if ModeOfGlitch == 1 then | |
6218 | 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) | |
6219 | 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) | |
6220 | 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) | |
6221 | 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) | |
6222 | 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) | |
6223 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1) | |
6224 | ||
6225 | elseif ModeOfGlitch == 666 then | |
6226 | 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) | |
6227 | 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) | |
6228 | 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) | |
6229 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
6230 | 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) | |
6231 | 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) | |
6232 | ||
6233 | elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then | |
6234 | 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) | |
6235 | 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) | |
6236 | 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) | |
6237 | 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) | |
6238 | 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) | |
6239 | 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) | |
6240 | ||
6241 | elseif ModeOfGlitch == 3 then | |
6242 | 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) | |
6243 | 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) | |
6244 | 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) | |
6245 | 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) | |
6246 | 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) | |
6247 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(20),math.rad(-20)),.1) | |
6248 | ||
6249 | elseif ModeOfGlitch == 4 then | |
6250 | 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) | |
6251 | 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) | |
6252 | 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) | |
6253 | 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) | |
6254 | 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) | |
6255 | 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) | |
6256 | ||
6257 | elseif ModeOfGlitch == 5 then | |
6258 | 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) | |
6259 | 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) | |
6260 | 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) | |
6261 | 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) | |
6262 | 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) | |
6263 | 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) | |
6264 | ||
6265 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then | |
6266 | 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) | |
6267 | 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) | |
6268 | 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) | |
6269 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
6270 | 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) | |
6271 | 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) | |
6272 | ||
6273 | elseif ModeOfGlitch == 12345678987654321 then | |
6274 | 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) | |
6275 | 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) | |
6276 | 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) | |
6277 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1) | |
6278 | 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) | |
6279 | 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) | |
6280 | end | |
6281 | end | |
6282 | elseif torvel>2 and torvel<50 and hitfloor~=nil then | |
6283 | Anim="Walk" | |
6284 | if attack==false then | |
6285 | if ModeOfGlitch == 1 then | |
6286 | 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) | |
6287 | 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) | |
6288 | 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) | |
6289 | 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) | |
6290 | 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) | |
6291 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1) | |
6292 | ||
6293 | elseif ModeOfGlitch == 4 or ModeOfGlitch == 666 then | |
6294 | 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) | |
6295 | 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) | |
6296 | 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) | |
6297 | 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) | |
6298 | 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) | |
6299 | 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) | |
6300 | ||
6301 | elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 or ModeOfGlitch ~= 666 then | |
6302 | 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) | |
6303 | 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) | |
6304 | 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) | |
6305 | 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) | |
6306 | 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) | |
6307 | 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) | |
6308 | end | |
6309 | end | |
6310 | elseif torvel>=22 and hitfloor~=nil then | |
6311 | Anim="Run" | |
6312 | if attack==false then | |
6313 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 666 then | |
6314 | 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) | |
6315 | 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) | |
6316 | 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) | |
6317 | 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) | |
6318 | 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) | |
6319 | 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) | |
6320 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 666 then | |
6321 | 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) | |
6322 | 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) | |
6323 | 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) | |
6324 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
6325 | 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) | |
6326 | 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) | |
6327 | end | |
6328 | end | |
6329 | end | |
6330 | end | |
6331 | end |