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,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | print("FE Compatibility code by Mokiros") | |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | local Player = game:GetService("Players").LocalPlayer | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/30) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | ||
84 | warn([[Guest Glitcher V6 Loaded.. | |
85 | The third Guest Glitcher, The brand new one which will strike popularity. | |
86 | ||
87 | Created by Tc, Edited by Derpz to make it FE AND Make it Guest Glitcher V6! | |
88 | Credit for Idea: Poison Resistance | |
89 | EDIT BY MICHEAL 2358 | |
90 | ]]) | |
91 | ||
92 | ---------Wielder list as of OCs:--------- | |
93 | -- Poison [The Creator] | |
94 | -- Derpz [The Developer] | |
95 | ----------------------------------------- | |
96 | ||
97 | print([[Icons: | |
98 | ! = New | |
99 | ? = Spoilers | |
100 | * = Exclusivity | |
101 | C = Changes | |
102 | ||
103 | ]]) | |
104 | warn([[V 6.2 Update Log: | |
105 | C - We fixxed some bugs, mostly with the sounds. | |
106 | C - Fixxed some animations not loading when script loaded. | |
107 | ? - We might add a revengeful Guest soon.. | |
108 | ||
109 | Commands for Musical mode: play/, vol/, pitch/, skipto/, telltime/]]) | |
110 | ---- IMPORTANT READING: | |
111 | ---- Sources and functions might be taken from others | |
112 | plr = owner | |
113 | ||
114 | script.Parent = workspace.CurrentCamera | |
115 | plr.CharacterAdded:connect(function() | |
116 | script.Disabled = true | |
117 | script:destroy() | |
118 | end) | |
119 | ||
120 | char = plr.Character | |
121 | hum = char.Humanoid | |
122 | local cam = game.Workspace.CurrentCamera | |
123 | Camera = cam | |
124 | local CamInterrupt = false | |
125 | local TwoD = false | |
126 | local TargetInfo = {nil, nil} | |
127 | cam.CameraType = "Custom" | |
128 | t = char.Torso | |
129 | h = char.Head | |
130 | ra = char["Right Arm"] | |
131 | la = char["Left Arm"] | |
132 | rl = char["Right Leg"] | |
133 | ll = char["Left Leg"] | |
134 | tors = char.Torso | |
135 | lleg = char["Left Leg"] | |
136 | root = char.HumanoidRootPart | |
137 | hed = char.Head | |
138 | rleg = char["Right Leg"] | |
139 | rarm = char["Right Arm"] | |
140 | larm = char["Left Arm"] | |
141 | radian = math.rad | |
142 | random = math.random | |
143 | Vec3 = Vector3.new | |
144 | Inst = Instance.new | |
145 | cFrame = CFrame.new | |
146 | Euler = CFrame.fromEulerAnglesXYZ | |
147 | vt = Vector3.new | |
148 | bc = BrickColor.new | |
149 | br = BrickColor.random | |
150 | it = Instance.new | |
151 | cf = CFrame.new | |
152 | ||
153 | ||
154 | local Booleans = { | |
155 | CamFollow = true, | |
156 | GyroUse = true | |
157 | } | |
158 | ||
159 | function lerp(object, newCFrame, alpha) | |
160 | return object:lerp(newCFrame, alpha) | |
161 | end | |
162 | ||
163 | local Directer = Inst("BodyGyro", root) | |
164 | Directer.MaxTorque = Vec3(0, 0, 0) | |
165 | Directer.P = 600000 | |
166 | local CPart = Inst("Part") | |
167 | CPart.Anchored = true | |
168 | CPart.CanCollide = false | |
169 | CPart.Locked = true | |
170 | CPart.Transparency = 1 | |
171 | ||
172 | local rainbowmode = false | |
173 | local chaosmode = false | |
174 | local duringend = false | |
175 | local ModeOfGlitch = 1 | |
176 | ||
177 | local kan = Instance.new("Sound",char) | |
178 | kan.Volume = 1.25 | |
179 | kan.TimePosition = 0 | |
180 | kan.PlaybackSpeed = 1 | |
181 | kan.Pitch = 1.01 | |
182 | kan.SoundId = "rbxassetid://435773595" | |
183 | kan.Name = "wreckeda" | |
184 | kan.Looped = true | |
185 | kan:Play() | |
186 | ||
187 | local currentThemePlaying = kan.SoundId | |
188 | local currentPitch = kan.Pitch | |
189 | local currentVol = kan.Volume | |
190 | function newTheme(ID,timepos,pitch,vol) | |
191 | local kanz = kan | |
192 | --kanz:Stop() | |
193 | kanz.Volume = vol | |
194 | --kanz.TimePosition = timepos | |
195 | kanz.PlaybackSpeed = pitch | |
196 | kanz.Pitch = pitch | |
197 | kanz.SoundId = ID | |
198 | kanz.Name = "wrecked" | |
199 | kanz.Looped = true | |
200 | currentThemePlaying = kanz.SoundId | |
201 | currentVol = kanz.Volume | |
202 | currentPitch = kanz.Pitch | |
203 | --kanz:Play() | |
204 | --coroutine.resume(coroutine.create(function() | |
205 | --wait(0.05) | |
206 | --end)) | |
207 | end | |
208 | ||
209 | ||
210 | function newThemeCust(ID,timepos,pitch,vol) | |
211 | local kanz = kan | |
212 | kanz:Stop() | |
213 | kanz.Volume = vol | |
214 | kanz.TimePosition = timepos | |
215 | kanz.PlaybackSpeed = pitch | |
216 | kanz.Pitch = pitch | |
217 | kanz.SoundId = ID | |
218 | kanz.Name = "wrecked" | |
219 | kanz.Looped = true | |
220 | currentThemePlaying = kanz.SoundId | |
221 | currentVol = kanz.Volume | |
222 | currentPitch = kanz.Pitch | |
223 | kanz:Play() | |
224 | coroutine.resume(coroutine.create(function() | |
225 | wait(0.05) | |
226 | end)) | |
227 | end | |
228 | ||
229 | local mutedtog = false | |
230 | ||
231 | function CameraEnshaking(Length,Intensity) | |
232 | coroutine.resume(coroutine.create(function() | |
233 | local intensity = 1*Intensity | |
234 | local rotM = 0.01*Intensity | |
235 | for i = 0, Length, 0.1 do | |
236 | swait() | |
237 | intensity = intensity - 0.05*Intensity/Length | |
238 | rotM = rotM - 0.0005*Intensity/Length | |
239 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
240 | 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) | |
241 | end | |
242 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
243 | end)) | |
244 | end | |
245 | CamShake=function(Part,Distan,Power,Times) | |
246 | local de=Part.Position | |
247 | for i,v in pairs(workspace:children()) do | |
248 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
249 | for _,c in pairs(v:children()) do | |
250 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
251 | local Noob=v.Humanoid | |
252 | if Noob~=nil then | |
253 | coroutine.resume(coroutine.create(function() | |
254 | FV = Instance.new("BoolValue", Noob) | |
255 | FV.Name = "CameraShake" | |
256 | for ShakeNum=1,Times do | |
257 | swait() | |
258 | local ef=Power | |
259 | if ef>=1 then | |
260 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
261 | else | |
262 | ef=Power*10 | |
263 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
264 | end | |
265 | end | |
266 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
267 | FV:Destroy() | |
268 | end)) | |
269 | CameraShake(Times, Power, Noob) | |
270 | end | |
271 | end | |
272 | end | |
273 | end | |
274 | end | |
275 | end | |
276 | ||
277 | local toggleTag = true | |
278 | local bilguit = Instance.new("BillboardGui", hed) | |
279 | bilguit.Adornee = nil | |
280 | bilguit.Name = "Name" | |
281 | bilguit.Size = UDim2.new(4, 0, 1.2, 0) | |
282 | bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
283 | local modet = Instance.new("TextLabel", bilguit) | |
284 | modet.Size = UDim2.new(10/2, 0, 7/2, 0) | |
285 | modet.FontSize = "Size8" | |
286 | modet.TextScaled = true | |
287 | modet.TextTransparency = 0 | |
288 | modet.BackgroundTransparency = 1 | |
289 | modet.TextTransparency = 0 | |
290 | modet.TextStrokeTransparency = 0 | |
291 | modet.Font = "Fantasy" | |
292 | modet.TextStrokeColor3 = Color3.new(0,0,0.4) | |
293 | modet.TextColor3 = Color3.new(1,1,1) | |
294 | modet.Text = "GUESTGLITCHERV6 BY DERPZDENUGGET_YT" | |
295 | ||
296 | ||
297 | function chatfunc(text,color,typet,font,timeex) | |
298 | local chat = coroutine.wrap(function() | |
299 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
300 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
301 | end | |
302 | local naeeym2 = Instance.new("BillboardGui",Character) | |
303 | naeeym2.Size = UDim2.new(0,100,0,40) | |
304 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
305 | naeeym2.Adornee = Character.Head | |
306 | naeeym2.Name = "TalkingBillBoard" | |
307 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
308 | tecks2.BackgroundTransparency = 1 | |
309 | tecks2.BorderSizePixel = 0 | |
310 | tecks2.Text = "" | |
311 | tecks2.Font = font | |
312 | tecks2.TextSize = 30 | |
313 | tecks2.TextStrokeTransparency = 0 | |
314 | tecks2.TextColor3 = color | |
315 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
316 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
317 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
318 | tecks3.BackgroundTransparency = 1 | |
319 | tecks3.BorderSizePixel = 0 | |
320 | tecks3.Text = "" | |
321 | tecks3.Font = font | |
322 | tecks3.TextSize = 30 | |
323 | tecks3.TextStrokeTransparency = 0 | |
324 | if typet == "Inverted" then | |
325 | tecks3.TextColor3 = Color3.new(0,0,0) | |
326 | tecks3.TextStrokeColor3 = color | |
327 | elseif typet == "Normal" then | |
328 | tecks3.TextColor3 = color | |
329 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
330 | end | |
331 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
332 | coroutine.resume(coroutine.create(function() | |
333 | while true do | |
334 | swait(1) | |
335 | if chaosmode == true then | |
336 | tecks2.TextColor3 = BrickColor.random().Color | |
337 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
338 | end | |
339 | end | |
340 | end)) | |
341 | modet.TextTransparency = modet.TextTransparency + 1 | |
342 | modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1 | |
343 | for i = 0, 74*timeex do | |
344 | swait() | |
345 | modet.TextTransparency = 1 | |
346 | modet.TextStrokeTransparency = 1 | |
347 | tecks2.Text = text | |
348 | tecks3.Text = text | |
349 | end | |
350 | local randomrot = math.random(1,2) | |
351 | if randomrot == 1 then | |
352 | for i = 1, 50 do | |
353 | swait() | |
354 | tecks2.Text = text | |
355 | tecks3.Text = text | |
356 | modet.TextTransparency = modet.TextTransparency - .02 | |
357 | modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02 | |
358 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
359 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
360 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
361 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
362 | end | |
363 | elseif randomrot == 2 then | |
364 | for i = 1, 50 do | |
365 | swait() | |
366 | tecks2.Text = text | |
367 | tecks3.Text = text | |
368 | modet.TextTransparency = modet.TextTransparency - .02 | |
369 | modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02 | |
370 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
371 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
372 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
373 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
374 | end | |
375 | end | |
376 | modet.TextTransparency = 0 | |
377 | modet.TextStrokeTransparency = 0 | |
378 | if toggleTag == false then | |
379 | modet.TextTransparency = 1 | |
380 | modet.TextStrokeTransparency = 1 | |
381 | end | |
382 | naeeym2:Destroy() | |
383 | end) | |
384 | chat() | |
385 | end | |
386 | ||
387 | ||
388 | local Create = LoadLibrary("RbxUtility").Create | |
389 | ||
390 | CFuncs = { | |
391 | ["Part"] = { | |
392 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
393 | local Part = Create("Part"){ | |
394 | Parent = Parent, | |
395 | Reflectance = Reflectance, | |
396 | Transparency = Transparency, | |
397 | CanCollide = false, | |
398 | Locked = true, | |
399 | BrickColor = BrickColor.new(tostring(BColor)), | |
400 | Name = Name, | |
401 | Size = Size, | |
402 | Material = Material, | |
403 | } | |
404 | RemoveOutlines(Part) | |
405 | return Part | |
406 | end; | |
407 | }; | |
408 | ||
409 | ["Mesh"] = { | |
410 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
411 | local Msh = Create(Mesh){ | |
412 | Parent = Part, | |
413 | Offset = OffSet, | |
414 | Scale = Scale, | |
415 | } | |
416 | if Mesh == "SpecialMesh" then | |
417 | Msh.MeshType = MeshType | |
418 | Msh.MeshId = MeshId | |
419 | end | |
420 | return Msh | |
421 | end; | |
422 | }; | |
423 | ||
424 | ["Mesh"] = { | |
425 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
426 | local Msh = Create(Mesh){ | |
427 | Parent = Part, | |
428 | Offset = OffSet, | |
429 | Scale = Scale, | |
430 | } | |
431 | if Mesh == "SpecialMesh" then | |
432 | Msh.MeshType = MeshType | |
433 | Msh.MeshId = MeshId | |
434 | end | |
435 | return Msh | |
436 | end; | |
437 | }; | |
438 | ||
439 | ["Weld"] = { | |
440 | Create = function(Parent, Part0, Part1, C0, C1) | |
441 | local Weld = Create("Weld"){ | |
442 | Parent = Parent, | |
443 | Part0 = Part0, | |
444 | Part1 = Part1, | |
445 | C0 = C0, | |
446 | C1 = C1, | |
447 | } | |
448 | return Weld | |
449 | end; | |
450 | }; | |
451 | ||
452 | ["Sound"] = { | |
453 | Create = function(id, par, vol, pit) | |
454 | coroutine.resume(coroutine.create(function() | |
455 | local S = Create("Sound"){ | |
456 | Volume = vol, | |
457 | Name = "EffectSoundo", | |
458 | Pitch = pit or 1, | |
459 | SoundId = id, | |
460 | Parent = par or workspace, | |
461 | } | |
462 | wait() | |
463 | S:play() | |
464 | game:GetService("Debris"):AddItem(S, 10) | |
465 | end)) | |
466 | end; | |
467 | }; | |
468 | ||
469 | ["LongSound"] = { | |
470 | Create = function(id, par, vol, pit) | |
471 | coroutine.resume(coroutine.create(function() | |
472 | local S = Create("Sound"){ | |
473 | Volume = vol, | |
474 | Pitch = pit or 1, | |
475 | SoundId = id, | |
476 | Parent = par or workspace, | |
477 | } | |
478 | wait() | |
479 | S:play() | |
480 | game:GetService("Debris"):AddItem(S, 60) | |
481 | end)) | |
482 | end; | |
483 | }; | |
484 | ||
485 | ["ParticleEmitter"] = { | |
486 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
487 | local fp = Create("ParticleEmitter"){ | |
488 | Parent = Parent, | |
489 | Color = ColorSequence.new(Color1, Color2), | |
490 | LightEmission = LightEmission, | |
491 | Size = Size, | |
492 | Texture = Texture, | |
493 | Transparency = Transparency, | |
494 | ZOffset = ZOffset, | |
495 | Acceleration = Accel, | |
496 | Drag = Drag, | |
497 | LockedToPart = LockedToPart, | |
498 | VelocityInheritance = VelocityInheritance, | |
499 | EmissionDirection = EmissionDirection, | |
500 | Enabled = Enabled, | |
501 | Lifetime = LifeTime, | |
502 | Rate = Rate, | |
503 | Rotation = Rotation, | |
504 | RotSpeed = RotSpeed, | |
505 | Speed = Speed, | |
506 | VelocitySpread = VelocitySpread, | |
507 | } | |
508 | return fp | |
509 | end; | |
510 | }; | |
511 | ||
512 | CreateTemplate = { | |
513 | ||
514 | }; | |
515 | } | |
516 | ||
517 | ||
518 | ||
519 | New = function(Object, Parent, Name, Data) | |
520 | local Object = Instance.new(Object) | |
521 | for Index, Value in pairs(Data or {}) do | |
522 | Object[Index] = Value | |
523 | end | |
524 | Object.Parent = Parent | |
525 | Object.Name = Name | |
526 | return Object | |
527 | end | |
528 | local halocolor = BrickColor.new("Pastel light blue") | |
529 | local halocolor2 = BrickColor.new("Cool yellow") | |
530 | local starcolor = BrickColor.new("Bright yellow") | |
531 | local lunacolor = BrickColor.new("Navy blue") | |
532 | local lunacolor2 = BrickColor.new("Bright blue") | |
533 | local wepcolor = BrickColor.new("Really black") | |
534 | local maincolor = BrickColor.new("Really black") | |
535 | local m = Instance.new("Model",char) | |
536 | local m2 = Instance.new("Model",char) | |
537 | local m3 = Instance.new("Model",char) | |
538 | local mw1 = Instance.new("Model",char) | |
539 | local mw2 = Instance.new("Model",char) | |
540 | ||
541 | ||
542 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
543 | local gui = it(GuiType) | |
544 | gui.Parent = parent | |
545 | gui.Text = text | |
546 | gui.BackgroundTransparency = backtrans | |
547 | gui.BackgroundColor3 = backcol | |
548 | gui.SizeConstraint = "RelativeXY" | |
549 | gui.TextXAlignment = "Center" | |
550 | gui.TextYAlignment = "Center" | |
551 | gui.Position = pos | |
552 | gui.Size = size | |
553 | gui.Font = "SourceSans" | |
554 | gui.FontSize = "Size14" | |
555 | gui.TextWrapped = false | |
556 | gui.TextStrokeTransparency = 0 | |
557 | gui.TextColor = BrickColor.new("White") | |
558 | return gui | |
559 | end | |
560 | ---- GUI set | |
561 | local basgui = it("GuiMain") | |
562 | basgui.Parent = plr.PlayerGui | |
563 | basgui.Name = "Killcounter GUI" | |
564 | local basframe = it("Frame") | |
565 | basframe.Parent = basgui | |
566 | basframe.BackgroundColor3 = Color3.new(255, 255, 255) | |
567 | basframe.BackgroundTransparency = 1 | |
568 | basframe.BorderColor3 = Color3.new(17, 17, 17) | |
569 | basframe.Size = UDim2.new(0.2, 0, 0.2, 0) | |
570 | basframe.Position = UDim2.new(0.8, 0, 0.8, 0) | |
571 | local uhh = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0.5, 0, 0.45, 0), UDim2.new(1.5, 0, 0.55, 0)) | |
572 | uhh.ZIndex = 2 | |
573 | uhh.Font = "Bodoni" | |
574 | uhh.TextStrokeColor3 = Color3.new(0.05,0.05,0.05) | |
575 | uhh.TextColor3 = Color3.new(1,1,1) | |
576 | uhh.BackgroundTransparency = 0.25 | |
577 | uhh.BorderSizePixel = 2 | |
578 | uhh.BorderColor3 = Color3.new(0,0,0) | |
579 | uhh.TextScaled = true | |
580 | uhh.TextXAlignment = "Left" | |
581 | uhh.Text = "Switch mode: Q-J" | |
582 | uhh.TextSize = 64 | |
583 | local modeteller = gui("TextLabel", basframe, "Basic", 0.5, BrickColor.new("Really black").Color, UDim2.new(-0, 0, -0.01, 0), UDim2.new(1, 0, 0.45, 0)) | |
584 | modeteller.ZIndex = 2 | |
585 | modeteller.Font = "Bodoni" | |
586 | modeteller.TextStrokeColor3 = Color3.new(0.05,0.05,0.05) | |
587 | modeteller.TextColor3 = Color3.new(1,1,1) | |
588 | modeteller.BackgroundTransparency = 0.25 | |
589 | modeteller.BorderSizePixel = 2 | |
590 | modeteller.BorderColor3 = Color3.new(0,0,0) | |
591 | modeteller.TextScaled = true | |
592 | modeteller.TextXAlignment = "Right" | |
593 | modeteller.Text = "Lol it broke" | |
594 | modeteller.TextSize = 64 | |
595 | ||
596 | local extrawingmod1 = Instance.new("Model",char) | |
597 | local extrawingmod2 = Instance.new("Model",char) | |
598 | ||
599 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
600 | local p = Instance.new("Part") | |
601 | p.TopSurface = 0 | |
602 | p.BottomSurface = 0 | |
603 | p.Parent = parent | |
604 | p.Size = Vector3.new(0.1,0.1,0.1) | |
605 | p.Transparency = transparency | |
606 | p.Reflectance = reflectance | |
607 | p.CanCollide = false | |
608 | p.Locked = true | |
609 | p.BrickColor = brickcolor | |
610 | p.Material = material | |
611 | return p | |
612 | end | |
613 | ||
614 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
615 | local mesh = Instance.new("SpecialMesh",parent) | |
616 | mesh.MeshType = meshtype | |
617 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
618 | return mesh | |
619 | end | |
620 | ||
621 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
622 | local mesh = Instance.new("SpecialMesh",parent) | |
623 | mesh.MeshType = "FileMesh" | |
624 | mesh.MeshId = meshid | |
625 | mesh.Scale = Vector3.new(x1,y1,z1) | |
626 | return mesh | |
627 | end | |
628 | ||
629 | ||
630 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
631 | local mesh = Instance.new("SpecialMesh",parent) | |
632 | mesh.MeshType = "FileMesh" | |
633 | mesh.MeshId = meshid | |
634 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
635 | mesh.Scale = Vector3.new(x1,y1,z1) | |
636 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
637 | return mesh | |
638 | end | |
639 | ||
640 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
641 | local weld = Instance.new("Weld") | |
642 | weld.Parent = parent | |
643 | weld.Part0 = part0 | |
644 | weld.Part1 = part1 | |
645 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
646 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
647 | return weld | |
648 | end | |
649 | ||
650 | ||
651 | -------------- | |
652 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
653 | 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)) | |
654 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
655 | 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)) | |
656 | ||
657 | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
658 | CreateMesh(handle,"Brick",0,0,0) | |
659 | 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)) | |
660 | local valuaring = 10 | |
661 | ||
662 | local refec = Instance.new("ParticleEmitter",handlex) | |
663 | refec.Texture = "rbxassetid://284205403" | |
664 | refec.LightEmission = 0.95 | |
665 | refec.Color = ColorSequence.new(BrickColor.new("White").Color) | |
666 | refec.Rate = 50 | |
667 | refec.Lifetime = NumberRange.new(0.5) | |
668 | refec.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.5,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
669 | refec.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.25,0),NumberSequenceKeypoint.new(1,1,0)}) | |
670 | refec.Speed = NumberRange.new(0,2) | |
671 | refec.Drag = 5 | |
672 | refec.LockedToPart = true | |
673 | refec.Rotation = NumberRange.new(-500,500) | |
674 | refec.VelocitySpread = 9000 | |
675 | refec.RotSpeed = NumberRange.new(-500,500) | |
676 | local refec2 = refec:Clone() | |
677 | refec2.LightEmission = 0.75 | |
678 | refec2.Texture = "rbxassetid://254287058" | |
679 | refec2.Parent = handlex | |
680 | refec2.Rate = 25 | |
681 | refec2.Lifetime = NumberRange.new(0.75) | |
682 | refec2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1.5,0),NumberSequenceKeypoint.new(0.15,1,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
683 | refec2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)}) | |
684 | refec2.Speed = NumberRange.new(0) | |
685 | local refec3 = refec:Clone() | |
686 | refec3.LightEmission = 0.75 | |
687 | refec3.Texture = "rbxassetid://363275192" | |
688 | refec3.Parent = handlex | |
689 | refec3.Rate = 25 | |
690 | refec3.Lifetime = NumberRange.new(1) | |
691 | refec3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
692 | refec3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.65,0),NumberSequenceKeypoint.new(1,1,0)}) | |
693 | refec3.Speed = NumberRange.new(0) | |
694 | refec3.RotSpeed = NumberRange.new(-50,50) | |
695 | ||
696 | for i = 0, 35 do | |
697 | valuaring = valuaring + 10 | |
698 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
699 | CreateMesh(rn,"Wedge",0.1,0.5,0.1) | |
700 | CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
701 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
702 | CreateMesh(rn,"Wedge",0.1,0.5,0.1) | |
703 | CreateWeld(rn,handlex,rn,0,0.75,0,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
704 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
705 | CreateMesh(rn,"Wedge",0.1,0.2,0.05) | |
706 | CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(-90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
707 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
708 | CreateMesh(rn,"Wedge",0.1,0.2,0.05) | |
709 | CreateWeld(rn,handlex,rn,0,-1.1,0.025,math.rad(0),math.rad(90),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
710 | end | |
711 | ||
712 | ||
713 | local handle = CreateParta(m,1,1,"Neon",maincolor) | |
714 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
715 | 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)) | |
716 | ||
717 | --- Left wing. | |
718 | ||
719 | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
720 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
721 | 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)) | |
722 | ||
723 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
724 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
725 | 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)) | |
726 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
727 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
728 | 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)) | |
729 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
730 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
731 | CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
732 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
733 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
734 | CreateWeld(wed,lwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
735 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
736 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
737 | CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
738 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
739 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
740 | CreateWeld(wed,lwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
741 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
742 | CreateMesh(wed,"Wedge",0.05,0.5,1.5) | |
743 | 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)) | |
744 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
745 | CreateMesh(wed,"Wedge",0.05,1.5,0.5) | |
746 | 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)) | |
747 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
748 | CreateMesh(wed,"Wedge",0.05,0.25,1.75) | |
749 | CreateWeld(wed,lwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
750 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
751 | CreateMesh(wed,"Wedge",0.05,1.75,0.25) | |
752 | CreateWeld(wed,lwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
753 | ||
754 | ||
755 | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
756 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
757 | 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)) | |
758 | ||
759 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
760 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
761 | 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)) | |
762 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
763 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
764 | 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)) | |
765 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
766 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
767 | CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
768 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
769 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
770 | CreateWeld(wed,lwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
771 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
772 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
773 | CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
774 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
775 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
776 | CreateWeld(wed,lwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
777 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
778 | CreateMesh(wed,"Wedge",0.05,0.5,1.5) | |
779 | 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)) | |
780 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
781 | CreateMesh(wed,"Wedge",0.05,1.5,0.5) | |
782 | 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)) | |
783 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
784 | CreateMesh(wed,"Wedge",0.05,0.25,1.75) | |
785 | CreateWeld(wed,lwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
786 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
787 | CreateMesh(wed,"Wedge",0.05,1.75,0.25) | |
788 | CreateWeld(wed,lwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
789 | ||
790 | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
791 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
792 | 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)) | |
793 | ||
794 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
795 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
796 | 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)) | |
797 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
798 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
799 | 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)) | |
800 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
801 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
802 | CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
803 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
804 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
805 | CreateWeld(wed,lwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
806 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
807 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
808 | CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
809 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
810 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
811 | CreateWeld(wed,lwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
812 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
813 | CreateMesh(wed,"Wedge",0.05,0.5,1.5) | |
814 | 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)) | |
815 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
816 | CreateMesh(wed,"Wedge",0.05,1.5,0.5) | |
817 | 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)) | |
818 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
819 | CreateMesh(wed,"Wedge",0.05,0.25,1.75) | |
820 | CreateWeld(wed,lwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
821 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
822 | CreateMesh(wed,"Wedge",0.05,1.75,0.25) | |
823 | CreateWeld(wed,lwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
824 | ||
825 | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
826 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
827 | 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)) | |
828 | ||
829 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
830 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
831 | 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)) | |
832 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
833 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
834 | 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)) | |
835 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
836 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
837 | 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)) | |
838 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
839 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
840 | 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)) | |
841 | ||
842 | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
843 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
844 | 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)) | |
845 | ||
846 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
847 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
848 | 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)) | |
849 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
850 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
851 | 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)) | |
852 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
853 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
854 | 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)) | |
855 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
856 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
857 | 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)) | |
858 | ||
859 | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
860 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
861 | 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)) | |
862 | ||
863 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
864 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
865 | 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)) | |
866 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
867 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
868 | 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)) | |
869 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
870 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
871 | 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)) | |
872 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
873 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
874 | 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)) | |
875 | ||
876 | -- Right wing. | |
877 | ||
878 | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
879 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
880 | 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)) | |
881 | ||
882 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
883 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
884 | 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)) | |
885 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
886 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
887 | 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)) | |
888 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
889 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
890 | CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
891 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
892 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
893 | CreateWeld(wed,rwing1,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
894 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
895 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
896 | CreateWeld(wed,rwing1,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
897 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
898 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
899 | CreateWeld(wed,rwing1,wed,0,0.75,-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,1.5) | |
902 | 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)) | |
903 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
904 | CreateMesh(wed,"Wedge",0.05,1.5,0.5) | |
905 | 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)) | |
906 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
907 | CreateMesh(wed,"Wedge",0.05,0.25,1.75) | |
908 | CreateWeld(wed,rwing1,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
909 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
910 | CreateMesh(wed,"Wedge",0.05,1.75,0.25) | |
911 | CreateWeld(wed,rwing1,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
912 | ||
913 | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
914 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
915 | 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)) | |
916 | ||
917 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
918 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
919 | 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)) | |
920 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
921 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
922 | 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)) | |
923 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
924 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
925 | CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
926 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
927 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
928 | CreateWeld(wed,rwing2,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
929 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
930 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
931 | CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
932 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
933 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
934 | CreateWeld(wed,rwing2,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
935 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
936 | CreateMesh(wed,"Wedge",0.05,0.5,1.5) | |
937 | 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)) | |
938 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
939 | CreateMesh(wed,"Wedge",0.05,1.5,0.5) | |
940 | 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)) | |
941 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
942 | CreateMesh(wed,"Wedge",0.05,0.25,1.75) | |
943 | CreateWeld(wed,rwing2,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
944 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
945 | CreateMesh(wed,"Wedge",0.05,1.75,0.25) | |
946 | CreateWeld(wed,rwing2,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
947 | ||
948 | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
949 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
950 | 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)) | |
951 | ||
952 | ||
953 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
954 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
955 | 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)) | |
956 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
957 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
958 | 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)) | |
959 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
960 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
961 | CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
962 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
963 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
964 | CreateWeld(wed,rwing3,wed,0,-0.5,0.25,math.rad(180),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
965 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
966 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
967 | CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
968 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
969 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
970 | CreateWeld(wed,rwing3,wed,0,0.75,-0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
971 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
972 | CreateMesh(wed,"Wedge",0.05,0.5,1.5) | |
973 | 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)) | |
974 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
975 | CreateMesh(wed,"Wedge",0.05,1.5,0.5) | |
976 | 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)) | |
977 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
978 | CreateMesh(wed,"Wedge",0.05,0.25,1.75) | |
979 | CreateWeld(wed,rwing3,wed,0,-0.125,2.5,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
980 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
981 | CreateMesh(wed,"Wedge",0.05,1.75,0.25) | |
982 | CreateWeld(wed,rwing3,wed,0,-2.5,0.125,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
983 | ||
984 | ||
985 | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
986 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
987 | 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)) | |
988 | ||
989 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
990 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
991 | 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)) | |
992 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
993 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
994 | 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)) | |
995 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
996 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
997 | 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)) | |
998 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
999 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
1000 | 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)) | |
1001 | ||
1002 | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
1003 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
1004 | 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)) | |
1005 | ||
1006 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1007 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
1008 | 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)) | |
1009 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1010 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
1011 | 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)) | |
1012 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1013 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
1014 | 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)) | |
1015 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1016 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
1017 | 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)) | |
1018 | ||
1019 | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
1020 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
1021 | 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)) | |
1022 | ||
1023 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1024 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
1025 | 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)) | |
1026 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1027 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
1028 | 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)) | |
1029 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1030 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
1031 | 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)) | |
1032 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
1033 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
1034 | 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)) | |
1035 | ||
1036 | ||
1037 | ---- HERES THE RING | |
1038 | ||
1039 | ||
1040 | --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
1041 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
1042 | 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)) | |
1043 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1044 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
1045 | 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)) | |
1046 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1047 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
1048 | 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)) | |
1049 | ||
1050 | ||
1051 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1052 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1053 | 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)) | |
1054 | ||
1055 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1056 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1057 | 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)) | |
1058 | ||
1059 | ||
1060 | ||
1061 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1062 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1063 | 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)) | |
1064 | ||
1065 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1066 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1067 | 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)) | |
1068 | ||
1069 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
1070 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
1071 | 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)) | |
1072 | ||
1073 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1074 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
1075 | 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)) | |
1076 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
1077 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
1078 | 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)) | |
1079 | ||
1080 | --- second ring | |
1081 | ||
1082 | ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
1083 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
1084 | 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)) | |
1085 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1086 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
1087 | 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)) | |
1088 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1089 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
1090 | 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)) | |
1091 | ||
1092 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1093 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1094 | 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)) | |
1095 | ||
1096 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1097 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1098 | 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)) | |
1099 | ||
1100 | ||
1101 | ||
1102 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1103 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1104 | 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)) | |
1105 | ||
1106 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1107 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1108 | 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)) | |
1109 | ||
1110 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
1111 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
1112 | 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)) | |
1113 | ||
1114 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1115 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
1116 | 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)) | |
1117 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
1118 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
1119 | 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))]]-- | |
1120 | ||
1121 | ------------- Trails | |
1122 | local A0 = Instance.new("Attachment",lwing1) | |
1123 | A0.Position = Vector3.new(0,-0.7,0) | |
1124 | local A1 = Instance.new("Attachment",lwing1) | |
1125 | A1.Position = Vector3.new(0,-3.5,0) | |
1126 | tl1 = Instance.new('Trail',lwing1) | |
1127 | tl1.Attachment0 = A0 | |
1128 | tl1.Attachment1 = A1 | |
1129 | tl1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
1130 | tl1.LightEmission = 1 | |
1131 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1132 | tl1.Color = ColorSequence.new(BrickColor.new('White').Color) | |
1133 | tl1.Lifetime = 0.6 | |
1134 | ||
1135 | local A0 = Instance.new("Attachment",lwing2) | |
1136 | A0.Position = Vector3.new(0,-0.7,0) | |
1137 | local A1 = Instance.new("Attachment",lwing2) | |
1138 | A1.Position = Vector3.new(0,-3.5,0) | |
1139 | tl2 = Instance.new('Trail',lwing2) | |
1140 | tl2.Attachment0 = A0 | |
1141 | tl2.Attachment1 = A1 | |
1142 | tl2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
1143 | tl2.LightEmission = 1 | |
1144 | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1145 | tl2.Color = ColorSequence.new(BrickColor.new('White').Color) | |
1146 | tl2.Lifetime = 0.6 | |
1147 | ||
1148 | local A0 = Instance.new("Attachment",lwing3) | |
1149 | A0.Position = Vector3.new(0,-0.7,0) | |
1150 | local A1 = Instance.new("Attachment",lwing3) | |
1151 | A1.Position = Vector3.new(0,-3.5,0) | |
1152 | tl3 = Instance.new('Trail',lwing3) | |
1153 | tl3.Attachment0 = A0 | |
1154 | tl3.Attachment1 = A1 | |
1155 | tl3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
1156 | tl3.LightEmission = 1 | |
1157 | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1158 | tl3.Color = ColorSequence.new(BrickColor.new('White').Color) | |
1159 | tl3.Lifetime = 0.6 | |
1160 | ||
1161 | local A0 = Instance.new("Attachment",rwing1) | |
1162 | A0.Position = Vector3.new(0,-0.7,0) | |
1163 | local A1 = Instance.new("Attachment",rwing1) | |
1164 | A1.Position = Vector3.new(0,-3.5,0) | |
1165 | tr1 = Instance.new('Trail',rwing1) | |
1166 | tr1.Attachment0 = A0 | |
1167 | tr1.Attachment1 = A1 | |
1168 | tr1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
1169 | tr1.LightEmission = 1 | |
1170 | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1171 | tr1.Color = ColorSequence.new(BrickColor.new('White').Color) | |
1172 | tr1.Lifetime = 0.6 | |
1173 | ||
1174 | local A0 = Instance.new("Attachment",rwing2) | |
1175 | A0.Position = Vector3.new(0,-0.7,0) | |
1176 | local A1 = Instance.new("Attachment",rwing2) | |
1177 | A1.Position = Vector3.new(0,-3.5,0) | |
1178 | tr2 = Instance.new('Trail',rwing2) | |
1179 | tr2.Attachment0 = A0 | |
1180 | tr2.Attachment1 = A1 | |
1181 | tr2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
1182 | tr2.LightEmission = 1 | |
1183 | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1184 | tr2.Color = ColorSequence.new(BrickColor.new('White').Color) | |
1185 | tr2.Lifetime = 0.6 | |
1186 | ||
1187 | local A0 = Instance.new("Attachment",rwing3) | |
1188 | A0.Position = Vector3.new(0,-0.7,0) | |
1189 | local A1 = Instance.new("Attachment",rwing3) | |
1190 | A1.Position = Vector3.new(0,-3.5,0) | |
1191 | tr3 = Instance.new('Trail',rwing3) | |
1192 | tr3.Attachment0 = A0 | |
1193 | tr3.Attachment1 = A1 | |
1194 | tr3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
1195 | tr3.LightEmission = 1 | |
1196 | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
1197 | tr3.Color = ColorSequence.new(BrickColor.new('White').Color) | |
1198 | tr3.Lifetime = 0.6 | |
1199 | ||
1200 | for i, v in pairs(mw2:GetChildren()) do | |
1201 | if v:IsA("Part") then | |
1202 | v.BrickColor = BrickColor.new("Navy blue") | |
1203 | v.Material = "Neon" | |
1204 | end | |
1205 | end | |
1206 | for i, v in pairs(mw1:GetChildren()) do | |
1207 | if v:IsA("Part") then | |
1208 | v.Transparency = 0 | |
1209 | v.BrickColor = BrickColor.new("Navy blue") | |
1210 | v.Material = "Neon" | |
1211 | end | |
1212 | end | |
1213 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
1214 | if v:IsA("Part") then | |
1215 | v.Transparency = 1 | |
1216 | v.BrickColor = BrickColor.new("White") | |
1217 | v.Material = "Neon" | |
1218 | end | |
1219 | end | |
1220 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
1221 | if v:IsA("Part") then | |
1222 | v.Transparency = 1 | |
1223 | v.BrickColor = BrickColor.new("White") | |
1224 | v.Material = "Neon" | |
1225 | end | |
1226 | end | |
1227 | local MAINRUINCOLOR = BrickColor.new("Navy blue") | |
1228 | ------ | |
1229 | ||
1230 | ||
1231 | function RemoveOutlines(part) | |
1232 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1233 | end | |
1234 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1235 | local Part = Create("Part")({ | |
1236 | Parent = Parent, | |
1237 | Reflectance = Reflectance, | |
1238 | Transparency = Transparency, | |
1239 | CanCollide = false, | |
1240 | Locked = true, | |
1241 | BrickColor = BrickColor.new(tostring(BColor)), | |
1242 | Name = Name, | |
1243 | Size = Size, | |
1244 | Material = Material | |
1245 | }) | |
1246 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1247 | RemoveOutlines(Part) | |
1248 | return Part | |
1249 | end | |
1250 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1251 | local Msh = Create(Mesh)({ | |
1252 | Parent = Part, | |
1253 | Offset = OffSet, | |
1254 | Scale = Scale | |
1255 | }) | |
1256 | if Mesh == "SpecialMesh" then | |
1257 | Msh.MeshType = MeshType | |
1258 | Msh.MeshId = MeshId | |
1259 | end | |
1260 | return Msh | |
1261 | end | |
1262 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
1263 | local Weld = Create("Weld")({ | |
1264 | Parent = Parent, | |
1265 | Part0 = Part0, | |
1266 | Part1 = Part1, | |
1267 | C0 = C0, | |
1268 | C1 = C1 | |
1269 | }) | |
1270 | return Weld | |
1271 | end | |
1272 | ||
1273 | Player=owner | |
1274 | Character=Player.Character | |
1275 | PlayerGui=Player.PlayerGui | |
1276 | Backpack=Player.Backpack | |
1277 | Torso=Character.Torso | |
1278 | Head=Character.Head | |
1279 | Humanoid=Character.Humanoid | |
1280 | m=Instance.new('Model',Character) | |
1281 | LeftArm=Character["Left Arm"] | |
1282 | LeftLeg=Character["Left Leg"] | |
1283 | RightArm=Character["Right Arm"] | |
1284 | RightLeg=Character["Right Leg"] | |
1285 | LS=Torso["Left Shoulder"] | |
1286 | LH=Torso["Left Hip"] | |
1287 | RS=Torso["Right Shoulder"] | |
1288 | RH=Torso["Right Hip"] | |
1289 | Face = Head.face | |
1290 | Neck=Torso.Neck | |
1291 | it=Instance.new | |
1292 | attacktype=1 | |
1293 | vt=Vector3.new | |
1294 | cf=CFrame.new | |
1295 | euler=CFrame.fromEulerAnglesXYZ | |
1296 | angles=CFrame.Angles | |
1297 | cloaked=false | |
1298 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1299 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1300 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
1301 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
1302 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
1303 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
1304 | RootPart=Character.HumanoidRootPart | |
1305 | RootJoint=RootPart.RootJoint | |
1306 | RootCF=euler(-1.57,0,3.14) | |
1307 | attack = false | |
1308 | attackdebounce = false | |
1309 | deb=false | |
1310 | equipped=true | |
1311 | hand=false | |
1312 | MMouse=nil | |
1313 | combo=0 | |
1314 | mana=0 | |
1315 | trispeed=.2 | |
1316 | attackmode='none' | |
1317 | local idle=0 | |
1318 | local Anim="Idle" | |
1319 | local Effects={} | |
1320 | local gun=false | |
1321 | local shoot=false | |
1322 | local sine = 0 | |
1323 | local change = 1 | |
1324 | player=nil | |
1325 | ||
1326 | function RecolorTextAndRename(name,col1,col2,font) | |
1327 | modet.TextStrokeColor3 = col2 | |
1328 | modet.TextColor3 = col1 | |
1329 | modet.Font = font | |
1330 | modet.Text = name | |
1331 | end | |
1332 | --save shoulders | |
1333 | RSH, LSH=nil, nil | |
1334 | --welds | |
1335 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
1336 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
1337 | LH=Torso["Left Hip"] | |
1338 | RH=Torso["Right Hip"] | |
1339 | TorsoColor=Torso.BrickColor | |
1340 | function NoOutline(Part) | |
1341 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
1342 | end | |
1343 | player=Player | |
1344 | ch=Character | |
1345 | RSH=ch.Torso["Right Shoulder"] | |
1346 | LSH=ch.Torso["Left Shoulder"] | |
1347 | -- | |
1348 | RSH.Parent=nil | |
1349 | LSH.Parent=nil | |
1350 | -- | |
1351 | RW.Name="Right Shoulder" | |
1352 | RW.Part0=ch.Torso | |
1353 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
1354 | RW.C1=cf(0, 0.5, 0) | |
1355 | RW.Part1=ch["Right Arm"] | |
1356 | RW.Parent=ch.Torso | |
1357 | -- | |
1358 | LW.Name="Left Shoulder" | |
1359 | LW.Part0=ch.Torso | |
1360 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
1361 | LW.C1=cf(0, 0.5, 0) | |
1362 | LW.Part1=ch["Left Arm"] | |
1363 | LW.Parent=ch.Torso | |
1364 | ||
1365 | local Stats=Instance.new("BoolValue") | |
1366 | Stats.Name="Stats" | |
1367 | Stats.Parent=Character | |
1368 | local Atk=Instance.new("NumberValue") | |
1369 | Atk.Name="Damage" | |
1370 | Atk.Parent=Stats | |
1371 | Atk.Value=1 | |
1372 | local Def=Instance.new("NumberValue") | |
1373 | Def.Name="Defense" | |
1374 | Def.Parent=Stats | |
1375 | Def.Value=1 | |
1376 | local Speed=Instance.new("NumberValue") | |
1377 | Speed.Name="Speed" | |
1378 | Speed.Parent=Stats | |
1379 | Speed.Value=1 | |
1380 | local Mvmt=Instance.new("NumberValue") | |
1381 | Mvmt.Name="Movement" | |
1382 | Mvmt.Parent=Stats | |
1383 | Mvmt.Value=1 | |
1384 | ||
1385 | local donum=0 | |
1386 | ||
1387 | ||
1388 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
1389 | local fp=it("Part") | |
1390 | fp.formFactor=formfactor | |
1391 | fp.Parent=parent | |
1392 | fp.Reflectance=reflectance | |
1393 | fp.Transparency=transparency | |
1394 | fp.CanCollide=false | |
1395 | fp.Locked=true | |
1396 | fp.BrickColor=brickcolor | |
1397 | fp.Name=name | |
1398 | fp.Size=size | |
1399 | fp.Position=Torso.Position | |
1400 | NoOutline(fp) | |
1401 | fp.Material="SmoothPlastic" | |
1402 | fp:BreakJoints() | |
1403 | return fp | |
1404 | end | |
1405 | ||
1406 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1407 | local mesh=it(Mesh) | |
1408 | mesh.Parent=part | |
1409 | if Mesh=="SpecialMesh" then | |
1410 | mesh.MeshType=meshtype | |
1411 | if meshid~="nil" then | |
1412 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
1413 | end | |
1414 | end | |
1415 | mesh.Offset=offset | |
1416 | mesh.Scale=scale | |
1417 | return mesh | |
1418 | end | |
1419 | ||
1420 | function weld(parent,part0,part1,c0) | |
1421 | local weld=it("Weld") | |
1422 | weld.Parent=parent | |
1423 | weld.Part0=part0 | |
1424 | weld.Part1=part1 | |
1425 | weld.C0=c0 | |
1426 | return weld | |
1427 | end | |
1428 | ||
1429 | local Color1=Torso.BrickColor | |
1430 | ||
1431 | local bodvel=Instance.new("BodyVelocity") | |
1432 | local bg=Instance.new("BodyGyro") | |
1433 | ||
1434 | function swait(num) | |
1435 | if num==0 or num==nil then | |
1436 | game:service'RunService'.Stepped:wait(0) | |
1437 | else | |
1438 | for i=0,num do | |
1439 | game:service'RunService'.Stepped:wait(0) | |
1440 | end | |
1441 | end | |
1442 | end | |
1443 | ||
1444 | -------- RAINBOW LEAVE IT TO ME | |
1445 | local r = 255 | |
1446 | local g = 0 | |
1447 | local b = 0 | |
1448 | coroutine.resume(coroutine.create(function() | |
1449 | while wait() do | |
1450 | for i = 0, 254/5 do | |
1451 | swait() | |
1452 | g = g + 5 | |
1453 | end | |
1454 | for i = 0, 254/5 do | |
1455 | swait() | |
1456 | r = r - 5 | |
1457 | end | |
1458 | for i = 0, 254/5 do | |
1459 | swait() | |
1460 | b = b + 5 | |
1461 | end | |
1462 | for i = 0, 254/5 do | |
1463 | swait() | |
1464 | g = g - 5 | |
1465 | end | |
1466 | for i = 0, 254/5 do | |
1467 | swait() | |
1468 | r = r + 5 | |
1469 | end | |
1470 | for i = 0, 254/5 do | |
1471 | swait() | |
1472 | b = b - 5 | |
1473 | end | |
1474 | end | |
1475 | end)) | |
1476 | ||
1477 | ||
1478 | so = function(id,par,vol,pit) | |
1479 | coroutine.resume(coroutine.create(function() | |
1480 | local sou = Instance.new("Sound",par or workspace) | |
1481 | sou.Volume=vol | |
1482 | sou.Pitch=pit or 1 | |
1483 | sou.SoundId=id | |
1484 | swait() | |
1485 | sou:play() | |
1486 | game:GetService("Debris"):AddItem(sou,6) | |
1487 | end)) | |
1488 | end | |
1489 | ||
1490 | function clerp(a,b,t) | |
1491 | local qa = {QuaternionFromCFrame(a)} | |
1492 | local qb = {QuaternionFromCFrame(b)} | |
1493 | local ax, ay, az = a.x, a.y, a.z | |
1494 | local bx, by, bz = b.x, b.y, b.z | |
1495 | local _t = 1-t | |
1496 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
1497 | end | |
1498 | ||
1499 | function QuaternionFromCFrame(cf) | |
1500 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1501 | local trace = m00 + m11 + m22 | |
1502 | if trace > 0 then | |
1503 | local s = math.sqrt(1 + trace) | |
1504 | local recip = 0.5/s | |
1505 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
1506 | else | |
1507 | local i = 0 | |
1508 | if m11 > m00 then | |
1509 | i = 1 | |
1510 | end | |
1511 | if m22 > (i == 0 and m00 or m11) then | |
1512 | i = 2 | |
1513 | end | |
1514 | if i == 0 then | |
1515 | local s = math.sqrt(m00-m11-m22+1) | |
1516 | local recip = 0.5/s | |
1517 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
1518 | elseif i == 1 then | |
1519 | local s = math.sqrt(m11-m22-m00+1) | |
1520 | local recip = 0.5/s | |
1521 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
1522 | elseif i == 2 then | |
1523 | local s = math.sqrt(m22-m00-m11+1) | |
1524 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
1525 | end | |
1526 | end | |
1527 | end | |
1528 | ||
1529 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1530 | local xs, ys, zs = x + x, y + y, z + z | |
1531 | local wx, wy, wz = w*xs, w*ys, w*zs | |
1532 | local xx = x*xs | |
1533 | local xy = x*ys | |
1534 | local xz = x*zs | |
1535 | local yy = y*ys | |
1536 | local yz = y*zs | |
1537 | local zz = z*zs | |
1538 | 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)) | |
1539 | end | |
1540 | ||
1541 | function QuaternionSlerp(a, b, t) | |
1542 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
1543 | local startInterp, finishInterp; | |
1544 | if cosTheta >= 0.0001 then | |
1545 | if (1 - cosTheta) > 0.0001 then | |
1546 | local theta = math.acos(cosTheta) | |
1547 | local invSinTheta = 1/math.sin(theta) | |
1548 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
1549 | finishInterp = math.sin(t*theta)*invSinTheta | |
1550 | else | |
1551 | startInterp = 1-t | |
1552 | finishInterp = t | |
1553 | end | |
1554 | else | |
1555 | if (1+cosTheta) > 0.0001 then | |
1556 | local theta = math.acos(-cosTheta) | |
1557 | local invSinTheta = 1/math.sin(theta) | |
1558 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
1559 | finishInterp = math.sin(t*theta)*invSinTheta | |
1560 | else | |
1561 | startInterp = t-1 | |
1562 | finishInterp = t | |
1563 | end | |
1564 | end | |
1565 | 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 | |
1566 | end | |
1567 | ||
1568 | local function CFrameFromTopBack(at, top, back) | |
1569 | local right = top:Cross(back) | |
1570 | return CFrame.new(at.x, at.y, at.z, | |
1571 | right.x, top.x, back.x, | |
1572 | right.y, top.y, back.y, | |
1573 | right.z, top.z, back.z) | |
1574 | end | |
1575 | ||
1576 | function Triangle(a, b, c) | |
1577 | local edg1 = (c-a):Dot((b-a).unit) | |
1578 | local edg2 = (a-b):Dot((c-b).unit) | |
1579 | local edg3 = (b-c):Dot((a-c).unit) | |
1580 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
1581 | a, b, c = a, b, c | |
1582 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
1583 | a, b, c = b, c, a | |
1584 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
1585 | a, b, c = c, a, b | |
1586 | else | |
1587 | assert(false, "unreachable") | |
1588 | end | |
1589 | ||
1590 | local len1 = (c-a):Dot((b-a).unit) | |
1591 | local len2 = (b-a).magnitude - len1 | |
1592 | local width = (a + (b-a).unit*len1 - c).magnitude | |
1593 | ||
1594 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
1595 | ||
1596 | local list = {} | |
1597 | ||
1598 | if len1 > 0.01 then | |
1599 | local w1 = Instance.new('WedgePart', m) | |
1600 | game:GetService("Debris"):AddItem(w1,5) | |
1601 | w1.Material = "SmoothPlastic" | |
1602 | w1.FormFactor = 'Custom' | |
1603 | w1.BrickColor = BrickColor.new("Really red") | |
1604 | w1.Transparency = 0 | |
1605 | w1.Reflectance = 0 | |
1606 | w1.Material = "SmoothPlastic" | |
1607 | w1.CanCollide = false | |
1608 | local l1 = Instance.new("PointLight",w1) | |
1609 | l1.Color = Color3.new(170,0,0) | |
1610 | NoOutline(w1) | |
1611 | local sz = Vector3.new(0.2, width, len1) | |
1612 | w1.Size = sz | |
1613 | local sp = Instance.new("SpecialMesh",w1) | |
1614 | sp.MeshType = "Wedge" | |
1615 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
1616 | w1:BreakJoints() | |
1617 | w1.Anchored = true | |
1618 | w1.Parent = workspace | |
1619 | w1.Transparency = 0.7 | |
1620 | table.insert(Effects,{w1,"Disappear",.01}) | |
1621 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
1622 | table.insert(list,w1) | |
1623 | end | |
1624 | ||
1625 | if len2 > 0.01 then | |
1626 | local w2 = Instance.new('WedgePart', m) | |
1627 | game:GetService("Debris"):AddItem(w2,5) | |
1628 | w2.Material = "SmoothPlastic" | |
1629 | w2.FormFactor = 'Custom' | |
1630 | w2.BrickColor = BrickColor.new("Really red") | |
1631 | w2.Transparency = 0 | |
1632 | w2.Reflectance = 0 | |
1633 | w2.Material = "SmoothPlastic" | |
1634 | w2.CanCollide = false | |
1635 | local l2 = Instance.new("PointLight",w2) | |
1636 | l2.Color = Color3.new(170,0,0) | |
1637 | NoOutline(w2) | |
1638 | local sz = Vector3.new(0.2, width, len2) | |
1639 | w2.Size = sz | |
1640 | local sp = Instance.new("SpecialMesh",w2) | |
1641 | sp.MeshType = "Wedge" | |
1642 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
1643 | w2:BreakJoints() | |
1644 | w2.Anchored = true | |
1645 | w2.Parent = workspace | |
1646 | w2.Transparency = 0.7 | |
1647 | table.insert(Effects,{w2,"Disappear",.01}) | |
1648 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
1649 | table.insert(list,w2) | |
1650 | end | |
1651 | return unpack(list) | |
1652 | end | |
1653 | ||
1654 | ||
1655 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1656 | if hit.Parent == nil then | |
1657 | return | |
1658 | end | |
1659 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1660 | for _, v in pairs(hit.Parent:children()) do | |
1661 | if v:IsA("Humanoid") then | |
1662 | h = v | |
1663 | end | |
1664 | end | |
1665 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then | |
1666 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1667 | return | |
1668 | end | |
1669 | local c = Create("ObjectValue")({ | |
1670 | Name = "creator", | |
1671 | Value = game:service("Players").LocalPlayer, | |
1672 | Parent = h | |
1673 | }) | |
1674 | game:GetService("Debris"):AddItem(c, 0.5) | |
1675 | if HitSound ~= nil and HitPitch ~= nil then | |
1676 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1677 | end | |
1678 | local Damage = math.random(minim, maxim) | |
1679 | local blocked = false | |
1680 | local block = hit.Parent:findFirstChild("Block") | |
1681 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1682 | blocked = true | |
1683 | block.Value = block.Value - 1 | |
1684 | print(block.Value) | |
1685 | end | |
1686 | if blocked == false then | |
1687 | HitHealth = h.Health | |
1688 | h.Health = h.Health - Damage | |
1689 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
1690 | print("gained kill") | |
1691 | end | |
1692 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1693 | else | |
1694 | h.Health = h.Health - Damage / 2 | |
1695 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1696 | end | |
1697 | if Type == "Knockdown" then | |
1698 | local hum = hit.Parent.Humanoid | |
1699 | hum.PlatformStand = true | |
1700 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1701 | swait(1) | |
1702 | HHumanoid.PlatformStand = false | |
1703 | end), hum) | |
1704 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1705 | local bodvol = Create("BodyVelocity")({ | |
1706 | velocity = angle * knockback, | |
1707 | P = 5000, | |
1708 | maxForce = Vector3.new(8000, 8000, 8000), | |
1709 | Parent = hit | |
1710 | }) | |
1711 | local rl = Create("BodyAngularVelocity")({ | |
1712 | P = 3000, | |
1713 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1714 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1715 | Parent = hit | |
1716 | }) | |
1717 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
1718 | game:GetService("Debris"):AddItem(rl, 0.5) | |
1719 | elseif Type == "Normal" then | |
1720 | local vp = Create("BodyVelocity")({ | |
1721 | P = 500, | |
1722 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1723 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1724 | }) | |
1725 | if knockback > 0 then | |
1726 | vp.Parent = hit.Parent.Head | |
1727 | end | |
1728 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1729 | elseif Type == "Up" then | |
1730 | local bodyVelocity = Create("BodyVelocity")({ | |
1731 | velocity = Vector3.new(0, 20, 0), | |
1732 | P = 5000, | |
1733 | maxForce = Vector3.new(8000, 8000, 8000), | |
1734 | Parent = hit | |
1735 | }) | |
1736 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1737 | local bodyVelocity = Create("BodyVelocity")({ | |
1738 | velocity = Vector3.new(0, 20, 0), | |
1739 | P = 5000, | |
1740 | maxForce = Vector3.new(8000, 8000, 8000), | |
1741 | Parent = hit | |
1742 | }) | |
1743 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1744 | elseif Type == "Leech" then | |
1745 | local hum = hit.Parent.Humanoid | |
1746 | if hum ~= nil then | |
1747 | for i = 0, 2 do | |
1748 | 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) | |
1749 | end | |
1750 | Humanoid.Health = Humanoid.Health + 10 | |
1751 | end | |
1752 | elseif Type == "UpKnock" then | |
1753 | local hum = hit.Parent.Humanoid | |
1754 | hum.PlatformStand = true | |
1755 | if hum ~= nil then | |
1756 | hitr = true | |
1757 | end | |
1758 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1759 | swait(5) | |
1760 | HHumanoid.PlatformStand = false | |
1761 | hitr = false | |
1762 | end), hum) | |
1763 | local bodyVelocity = Create("BodyVelocity")({ | |
1764 | velocity = Vector3.new(0, 20, 0), | |
1765 | P = 5000, | |
1766 | maxForce = Vector3.new(8000, 8000, 8000), | |
1767 | Parent = hit | |
1768 | }) | |
1769 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1770 | local bodyVelocity = Create("BodyVelocity")({ | |
1771 | velocity = Vector3.new(0, 20, 0), | |
1772 | P = 5000, | |
1773 | maxForce = Vector3.new(8000, 8000, 8000), | |
1774 | Parent = hit | |
1775 | }) | |
1776 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1777 | elseif Type == "Snare" then | |
1778 | local bp = Create("BodyPosition")({ | |
1779 | P = 2000, | |
1780 | D = 100, | |
1781 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1782 | position = hit.Parent.Torso.Position, | |
1783 | Parent = hit.Parent.Torso | |
1784 | }) | |
1785 | game:GetService("Debris"):AddItem(bp, 1) | |
1786 | elseif Type == "Slashnare" then | |
1787 | 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) | |
1788 | for i = 1, math.random(4, 5) do | |
1789 | 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) | |
1790 | end | |
1791 | local bp = Create("BodyPosition")({ | |
1792 | P = 2000, | |
1793 | D = 100, | |
1794 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1795 | position = hit.Parent.Torso.Position, | |
1796 | Parent = hit.Parent.Torso | |
1797 | }) | |
1798 | game:GetService("Debris"):AddItem(bp, 1) | |
1799 | elseif Type == "Spike" then | |
1800 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
1801 | local bp = Create("BodyPosition")({ | |
1802 | P = 2000, | |
1803 | D = 100, | |
1804 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1805 | position = hit.Parent.Torso.Position, | |
1806 | Parent = hit.Parent.Torso | |
1807 | }) | |
1808 | game:GetService("Debris"):AddItem(bp, 1) | |
1809 | elseif Type == "Freeze" then | |
1810 | local BodPos = Create("BodyPosition")({ | |
1811 | P = 50000, | |
1812 | D = 1000, | |
1813 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1814 | position = hit.Parent.Torso.Position, | |
1815 | Parent = hit.Parent.Torso | |
1816 | }) | |
1817 | local BodGy = Create("BodyGyro")({ | |
1818 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
1819 | P = 20000, | |
1820 | Parent = hit.Parent.Torso, | |
1821 | cframe = hit.Parent.Torso.CFrame | |
1822 | }) | |
1823 | hit.Parent.Torso.Anchored = true | |
1824 | coroutine.resume(coroutine.create(function(Part) | |
1825 | swait(1.5) | |
1826 | Part.Anchored = false | |
1827 | end), hit.Parent.Torso) | |
1828 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1829 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1830 | end | |
1831 | local debounce = Create("BoolValue")({ | |
1832 | Name = "DebounceHit", | |
1833 | Parent = hit.Parent, | |
1834 | Value = true | |
1835 | }) | |
1836 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1837 | c = Instance.new("ObjectValue") | |
1838 | c.Name = "creator" | |
1839 | c.Value = Player | |
1840 | c.Parent = h | |
1841 | game:GetService("Debris"):AddItem(c, 0.5) | |
1842 | end | |
1843 | end | |
1844 | function ShowDamage(Pos, Text, Time, Color) | |
1845 | local Rate = 0.03333333333333333 | |
1846 | local Pos = Pos or Vector3.new(0, 0, 0) | |
1847 | local Text = Text or "" | |
1848 | local Time = Time or 2 | |
1849 | local Color = Color or Color3.new(1, 0, 1) | |
1850 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1851 | EffectPart.Anchored = true | |
1852 | local BillboardGui = Create("BillboardGui")({ | |
1853 | Size = UDim2.new(3, 0, 3, 0), | |
1854 | Adornee = EffectPart, | |
1855 | Parent = EffectPart | |
1856 | }) | |
1857 | local TextLabel = Create("TextLabel")({ | |
1858 | BackgroundTransparency = 1, | |
1859 | Size = UDim2.new(1, 0, 1, 0), | |
1860 | Text = Text, | |
1861 | TextColor3 = Color, | |
1862 | TextScaled = true, | |
1863 | Font = Enum.Font.ArialBold, | |
1864 | Parent = BillboardGui | |
1865 | }) | |
1866 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1867 | EffectPart.Parent = game:GetService("Workspace") | |
1868 | delay(0, function() | |
1869 | local Frames = Time / Rate | |
1870 | for Frame = 1, Frames do | |
1871 | wait(Rate) | |
1872 | local Percent = Frame / Frames | |
1873 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1874 | TextLabel.TextTransparency = Percent | |
1875 | end | |
1876 | if EffectPart and EffectPart.Parent then | |
1877 | EffectPart:Destroy() | |
1878 | end | |
1879 | end) | |
1880 | end | |
1881 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
1882 | for _, c in pairs(workspace:children()) do | |
1883 | local hum = c:findFirstChildOfClass("Humanoid") | |
1884 | if hum ~= nil then | |
1885 | local head = c:findFirstChild("Head") | |
1886 | if head ~= nil then | |
1887 | local targ = head.Position - Part.Position | |
1888 | local mag = targ.magnitude | |
1889 | if magni >= mag and c.Name ~= Player.Name then | |
1890 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1891 | end | |
1892 | end | |
1893 | end | |
1894 | end | |
1895 | end | |
1896 | ||
1897 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
1898 | for _, c in pairs(workspace:children()) do | |
1899 | local hum = c:findFirstChild("Humanoid") | |
1900 | if hum ~= nil then | |
1901 | local head = c:findFirstChild("Torso") | |
1902 | if head ~= nil then | |
1903 | local targ = head.Position - Part.Position | |
1904 | local mag = targ.magnitude | |
1905 | if magni >= mag and c.Name ~= Player.Name then | |
1906 | MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05) | |
1907 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1908 | end | |
1909 | end | |
1910 | end | |
1911 | end | |
1912 | end | |
1913 | ||
1914 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1915 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1916 | end | |
1917 | ||
1918 | local origcolor = BrickColor.new("Pastel light blue") | |
1919 | ---- This section of explosions. | |
1920 | ||
1921 | ---- | |
1922 | ||
1923 | ||
1924 | function ring(type,pos,scale,value) | |
1925 | local type = type | |
1926 | local rng = Instance.new("Part", char) | |
1927 | rng.Anchored = true | |
1928 | rng.BrickColor = origcolor | |
1929 | rng.CanCollide = false | |
1930 | rng.FormFactor = 3 | |
1931 | rng.Name = "Ring" | |
1932 | rng.Size = Vector3.new(1, 1, 1) | |
1933 | rng.Transparency = 0 | |
1934 | rng.TopSurface = 0 | |
1935 | rng.BottomSurface = 0 | |
1936 | rng.CFrame = pos | |
1937 | local rngm = Instance.new("SpecialMesh", rng) | |
1938 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
1939 | rngm.Scale = scale | |
1940 | local scaler2 = 1 | |
1941 | if type == "Add" then | |
1942 | scaler2 = 1*value | |
1943 | elseif type == "Divide" then | |
1944 | scaler2 = 1/value | |
1945 | end | |
1946 | coroutine.resume(coroutine.create(function() | |
1947 | for i = 0,10,0.1 do | |
1948 | swait() | |
1949 | if type == "Add" then | |
1950 | scaler2 = scaler2 - 0.01*value | |
1951 | elseif type == "Divide" then | |
1952 | scaler2 = scaler2 - 0.01/value | |
1953 | end | |
1954 | rng.Transparency = rng.Transparency + 0.01 | |
1955 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
1956 | end | |
1957 | rng:Destroy() | |
1958 | end)) | |
1959 | end | |
1960 | ||
1961 | ||
1962 | function wave(type,pos,scale,value) | |
1963 | local type = type | |
1964 | local rng = Instance.new("Part", char) | |
1965 | rng.Anchored = true | |
1966 | rng.BrickColor = origcolor | |
1967 | rng.CanCollide = false | |
1968 | rng.FormFactor = 3 | |
1969 | rng.Name = "Ring" | |
1970 | rng.Size = Vector3.new(1, 1, 1) | |
1971 | rng.Transparency = 0 | |
1972 | rng.TopSurface = 0 | |
1973 | rng.BottomSurface = 0 | |
1974 | rng.CFrame = pos | |
1975 | local rngm = Instance.new("SpecialMesh", rng) | |
1976 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
1977 | rngm.Scale = scale | |
1978 | local scaler2 = 1 | |
1979 | if type == "Add" then | |
1980 | scaler2 = 1*value | |
1981 | elseif type == "Divide" then | |
1982 | scaler2 = 1/value | |
1983 | end | |
1984 | coroutine.resume(coroutine.create(function() | |
1985 | for i = 0,10,0.1 do | |
1986 | swait() | |
1987 | if type == "Add" then | |
1988 | scaler2 = scaler2 - 0.01*value | |
1989 | elseif type == "Divide" then | |
1990 | scaler2 = scaler2 - 0.01/value | |
1991 | end | |
1992 | rng.Transparency = rng.Transparency + 0.01 | |
1993 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
1994 | end | |
1995 | rng:Destroy() | |
1996 | end)) | |
1997 | end | |
1998 | ||
1999 | function sphere(bonuspeed,type,pos,scale,value,color) | |
2000 | local type = type | |
2001 | local rng = Instance.new("Part", char) | |
2002 | rng.Anchored = true | |
2003 | if ModeOfGlitch ~= 9 then | |
2004 | rng.BrickColor = color | |
2005 | elseif ModeOfGlitch == 9 then | |
2006 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2007 | end | |
2008 | rng.CanCollide = false | |
2009 | rng.FormFactor = 3 | |
2010 | rng.Name = "Ring" | |
2011 | rng.Material = "Neon" | |
2012 | rng.Size = Vector3.new(1, 1, 1) | |
2013 | rng.Transparency = 0 | |
2014 | rng.TopSurface = 0 | |
2015 | rng.BottomSurface = 0 | |
2016 | rng.CFrame = pos | |
2017 | local rngm = Instance.new("SpecialMesh", rng) | |
2018 | rngm.MeshType = "Sphere" | |
2019 | rngm.Scale = scale | |
2020 | if rainbowmode == true then | |
2021 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2022 | end | |
2023 | if ModeOfGlitch == 9 then | |
2024 | coroutine.resume(coroutine.create(function() | |
2025 | while true do | |
2026 | swait() | |
2027 | if rng.Parent ~= nil then | |
2028 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2029 | else | |
2030 | break | |
2031 | end | |
2032 | end | |
2033 | end)) | |
2034 | end | |
2035 | local scaler2 = 1 | |
2036 | if type == "Add" then | |
2037 | scaler2 = 1*value | |
2038 | elseif type == "Divide" then | |
2039 | scaler2 = 1/value | |
2040 | end | |
2041 | coroutine.resume(coroutine.create(function() | |
2042 | for i = 0,10/bonuspeed,0.1 do | |
2043 | swait() | |
2044 | if rainbowmode == true then | |
2045 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2046 | end | |
2047 | if type == "Add" then | |
2048 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2049 | elseif type == "Divide" then | |
2050 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2051 | end | |
2052 | if chaosmode == true then | |
2053 | rng.BrickColor = BrickColor.random() | |
2054 | end | |
2055 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2056 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2057 | end | |
2058 | rng:Destroy() | |
2059 | end)) | |
2060 | end | |
2061 | ||
2062 | function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color) | |
2063 | local type = type | |
2064 | local rng = Instance.new("Part", char) | |
2065 | rng.Anchored = true | |
2066 | if ModeOfGlitch ~= 9 then | |
2067 | rng.BrickColor = color | |
2068 | elseif ModeOfGlitch == 9 then | |
2069 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2070 | end | |
2071 | rng.CanCollide = false | |
2072 | rng.FormFactor = 3 | |
2073 | rng.Name = "Ring" | |
2074 | rng.Material = "Neon" | |
2075 | rng.Size = Vector3.new(1, 1, 1) | |
2076 | rng.Transparency = 0 | |
2077 | rng.TopSurface = 0 | |
2078 | rng.BottomSurface = 0 | |
2079 | rng.CFrame = pos | |
2080 | local rngm = Instance.new("SpecialMesh", rng) | |
2081 | rngm.MeshType = "Sphere" | |
2082 | rngm.Scale = scale | |
2083 | local scaler2 = 1 | |
2084 | local scaler2b = 1 | |
2085 | local scaler2c = 1 | |
2086 | if type == "Add" then | |
2087 | scaler2 = 1*value | |
2088 | scaler2b = 1*value2 | |
2089 | scaler2c = 1*value3 | |
2090 | elseif type == "Divide" then | |
2091 | scaler2 = 1/value | |
2092 | scaler2b = 1/value2 | |
2093 | scaler2c = 1/value3 | |
2094 | end | |
2095 | if ModeOfGlitch == 9 then | |
2096 | coroutine.resume(coroutine.create(function() | |
2097 | while true do | |
2098 | swait() | |
2099 | if rng.Parent ~= nil then | |
2100 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2101 | else | |
2102 | break | |
2103 | end | |
2104 | end | |
2105 | end)) | |
2106 | end | |
2107 | coroutine.resume(coroutine.create(function() | |
2108 | for i = 0,10/bonuspeed,0.1 do | |
2109 | swait() | |
2110 | if type == "Add" then | |
2111 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2112 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
2113 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
2114 | elseif type == "Divide" then | |
2115 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2116 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
2117 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
2118 | end | |
2119 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2120 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
2121 | end | |
2122 | rng:Destroy() | |
2123 | end)) | |
2124 | end | |
2125 | ||
2126 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2127 | local type = type | |
2128 | local rng = Instance.new("Part", char) | |
2129 | rng.Anchored = true | |
2130 | rng.BrickColor = color | |
2131 | rng.CanCollide = false | |
2132 | rng.FormFactor = 3 | |
2133 | rng.Name = "Ring" | |
2134 | rng.Material = "Neon" | |
2135 | rng.Size = Vector3.new(1, 1, 1) | |
2136 | rng.Transparency = 0 | |
2137 | rng.TopSurface = 0 | |
2138 | rng.BottomSurface = 0 | |
2139 | rng.CFrame = pos | |
2140 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2141 | local rngm = Instance.new("SpecialMesh", rng) | |
2142 | rngm.MeshType = "Brick" | |
2143 | rngm.Scale = vt(x1,y1,z1) | |
2144 | if rainbowmode == true then | |
2145 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2146 | end | |
2147 | local scaler2 = 1 | |
2148 | local speeder = FastSpeed/10 | |
2149 | if type == "Add" then | |
2150 | scaler2 = 1*value | |
2151 | elseif type == "Divide" then | |
2152 | scaler2 = 1/value | |
2153 | end | |
2154 | coroutine.resume(coroutine.create(function() | |
2155 | for i = 0,10/bonuspeed,0.1 do | |
2156 | swait() | |
2157 | if rainbowmode == true then | |
2158 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2159 | end | |
2160 | if type == "Add" then | |
2161 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2162 | elseif type == "Divide" then | |
2163 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2164 | end | |
2165 | if chaosmode == true then | |
2166 | rng.BrickColor = BrickColor.random() | |
2167 | end | |
2168 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
2169 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2170 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2171 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2172 | end | |
2173 | rng:Destroy() | |
2174 | end)) | |
2175 | end | |
2176 | ||
2177 | function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2178 | local type = type | |
2179 | local rng = Instance.new("Part", char) | |
2180 | rng.Anchored = true | |
2181 | rng.BrickColor = color | |
2182 | rng.CanCollide = false | |
2183 | rng.FormFactor = 3 | |
2184 | rng.Name = "Ring" | |
2185 | rng.Material = "Neon" | |
2186 | rng.Size = Vector3.new(1, 1, 1) | |
2187 | rng.Transparency = 0 | |
2188 | rng.TopSurface = 0 | |
2189 | rng.BottomSurface = 0 | |
2190 | rng.CFrame = pos | |
2191 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2192 | local rngm = Instance.new("SpecialMesh", rng) | |
2193 | rngm.MeshType = "Brick" | |
2194 | rngm.Scale = vt(x1,y1,z1) | |
2195 | if rainbowmode == true then | |
2196 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2197 | end | |
2198 | local scaler2 = 1 | |
2199 | local speeder = FastSpeed/10 | |
2200 | if type == "Add" then | |
2201 | scaler2 = 1*value | |
2202 | elseif type == "Divide" then | |
2203 | scaler2 = 1/value | |
2204 | end | |
2205 | coroutine.resume(coroutine.create(function() | |
2206 | for i = 0,10/bonuspeed,0.1 do | |
2207 | swait() | |
2208 | if rainbowmode == true then | |
2209 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2210 | end | |
2211 | if type == "Add" then | |
2212 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2213 | elseif type == "Divide" then | |
2214 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2215 | end | |
2216 | if chaosmode == true then | |
2217 | rng.BrickColor = BrickColor.random() | |
2218 | end | |
2219 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
2220 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2221 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2222 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2223 | end | |
2224 | rng:Destroy() | |
2225 | end)) | |
2226 | end | |
2227 | ||
2228 | function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2229 | local type = type | |
2230 | local rng = Instance.new("Part", char) | |
2231 | rng.Anchored = true | |
2232 | rng.BrickColor = color | |
2233 | rng.CanCollide = false | |
2234 | rng.FormFactor = 3 | |
2235 | rng.Name = "Ring" | |
2236 | rng.Material = "Neon" | |
2237 | rng.Size = Vector3.new(1, 1, 1) | |
2238 | rng.Transparency = 0 | |
2239 | rng.TopSurface = 0 | |
2240 | rng.BottomSurface = 0 | |
2241 | rng.CFrame = pos | |
2242 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2243 | local rngm = Instance.new("SpecialMesh", rng) | |
2244 | rngm.MeshType = "Brick" | |
2245 | rngm.Scale = vt(x1,y1,z1) | |
2246 | if rainbowmode == true then | |
2247 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2248 | end | |
2249 | local scaler2 = 0 | |
2250 | local speeder = FastSpeed/10 | |
2251 | if type == "Add" then | |
2252 | scaler2 = 1*value | |
2253 | elseif type == "Divide" then | |
2254 | scaler2 = 1/value | |
2255 | end | |
2256 | coroutine.resume(coroutine.create(function() | |
2257 | for i = 0,10/bonuspeed,0.1 do | |
2258 | swait() | |
2259 | if rainbowmode == true then | |
2260 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2261 | end | |
2262 | if type == "Add" then | |
2263 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2264 | elseif type == "Divide" then | |
2265 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2266 | end | |
2267 | if chaosmode == true then | |
2268 | rng.BrickColor = BrickColor.random() | |
2269 | end | |
2270 | speeder = speeder + 0.01*FastSpeed*bonuspeed/10 | |
2271 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2272 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2273 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2274 | end | |
2275 | rng:Destroy() | |
2276 | end)) | |
2277 | end | |
2278 | ||
2279 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2280 | local type = type | |
2281 | local rng = Instance.new("Part", char) | |
2282 | rng.Anchored = true | |
2283 | if ModeOfGlitch ~= 9 then | |
2284 | rng.BrickColor = color | |
2285 | elseif ModeOfGlitch == 9 then | |
2286 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2287 | end | |
2288 | rng.CanCollide = false | |
2289 | rng.FormFactor = 3 | |
2290 | rng.Name = "Ring" | |
2291 | rng.Material = "Neon" | |
2292 | rng.Size = Vector3.new(1, 1, 1) | |
2293 | rng.Transparency = 0 | |
2294 | rng.TopSurface = 0 | |
2295 | rng.BottomSurface = 0 | |
2296 | rng.CFrame = pos | |
2297 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2298 | local rngm = Instance.new("SpecialMesh", rng) | |
2299 | rngm.MeshType = "Sphere" | |
2300 | rngm.Scale = vt(x1,y1,z1) | |
2301 | if rainbowmode == true then | |
2302 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2303 | end | |
2304 | if ModeOfGlitch == 9 then | |
2305 | coroutine.resume(coroutine.create(function() | |
2306 | while true do | |
2307 | swait() | |
2308 | if rng.Parent ~= nil then | |
2309 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2310 | else | |
2311 | break | |
2312 | end | |
2313 | end | |
2314 | end)) | |
2315 | end | |
2316 | local scaler2 = 1 | |
2317 | local speeder = FastSpeed | |
2318 | if type == "Add" then | |
2319 | scaler2 = 1*value | |
2320 | elseif type == "Divide" then | |
2321 | scaler2 = 1/value | |
2322 | end | |
2323 | coroutine.resume(coroutine.create(function() | |
2324 | for i = 0,10/bonuspeed,0.1 do | |
2325 | swait() | |
2326 | if rainbowmode == true then | |
2327 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2328 | end | |
2329 | if type == "Add" then | |
2330 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2331 | elseif type == "Divide" then | |
2332 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2333 | end | |
2334 | if chaosmode == true then | |
2335 | rng.BrickColor = BrickColor.random() | |
2336 | end | |
2337 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
2338 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2339 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2340 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
2341 | end | |
2342 | rng:Destroy() | |
2343 | end)) | |
2344 | end | |
2345 | ||
2346 | ||
2347 | function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
2348 | local type = type | |
2349 | local rng = Instance.new("Part", char) | |
2350 | rng.Anchored = true | |
2351 | if ModeOfGlitch ~= 9 then | |
2352 | rng.BrickColor = color | |
2353 | elseif ModeOfGlitch == 9 then | |
2354 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2355 | end | |
2356 | rng.CanCollide = false | |
2357 | rng.FormFactor = 3 | |
2358 | rng.Name = "Ring" | |
2359 | rng.Material = "Neon" | |
2360 | rng.Size = Vector3.new(1, 1, 1) | |
2361 | rng.Transparency = 1 | |
2362 | rng.TopSurface = 0 | |
2363 | rng.BottomSurface = 0 | |
2364 | rng.CFrame = pos | |
2365 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2366 | local rngm = Instance.new("SpecialMesh", rng) | |
2367 | rngm.MeshType = "Sphere" | |
2368 | rngm.Scale = vt(x1,y1,z1) | |
2369 | if rainbowmode == true then | |
2370 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2371 | end | |
2372 | if ModeOfGlitch == 9 then | |
2373 | coroutine.resume(coroutine.create(function() | |
2374 | while true do | |
2375 | swait() | |
2376 | if rng.Parent ~= nil then | |
2377 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
2378 | else | |
2379 | break | |
2380 | end | |
2381 | end | |
2382 | end)) | |
2383 | end | |
2384 | local scaler2 = 1 | |
2385 | local speeder = FastSpeed | |
2386 | if type == "Add" then | |
2387 | scaler2 = 1*value | |
2388 | elseif type == "Divide" then | |
2389 | scaler2 = 1/value | |
2390 | end | |
2391 | coroutine.resume(coroutine.create(function() | |
2392 | for i = 0,10/bonuspeed,0.1 do | |
2393 | swait() | |
2394 | if rainbowmode == true then | |
2395 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2396 | end | |
2397 | if type == "Add" then | |
2398 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2399 | elseif type == "Divide" then | |
2400 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2401 | end | |
2402 | if chaosmode == true then | |
2403 | rng.BrickColor = BrickColor.random() | |
2404 | end | |
2405 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
2406 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
2407 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
2408 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
2409 | end | |
2410 | rng:Destroy() | |
2411 | end)) | |
2412 | end | |
2413 | ||
2414 | function dmg(dude) | |
2415 | if dude.Name ~= Character then | |
2416 | local bgf = Instance.new("BodyGyro",dude.Head) | |
2417 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
2418 | local val = Instance.new("BoolValue",dude) | |
2419 | val.Name = "IsHit" | |
2420 | local ds = coroutine.wrap(function() | |
2421 | local torso = dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' | |
2422 | for i = 1, 10 do | |
2423 | sphereMK(1.5,2,"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,25,-.01,BrickColor.new("White"),0,true) | |
2424 | end | |
2425 | dude:WaitForChild("Head"):BreakJoints() | |
2426 | wait(0.5) | |
2427 | targetted = nil | |
2428 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3) | |
2429 | ||
2430 | coroutine.resume(coroutine.create(function() | |
2431 | for i, v in pairs(dude:GetChildren()) do | |
2432 | if v:IsA("Accessory") then | |
2433 | v:Destroy() | |
2434 | end | |
2435 | if v:IsA("Humanoid") then | |
2436 | v:Destroy() | |
2437 | end | |
2438 | if v:IsA("CharacterMesh") then | |
2439 | v:Destroy() | |
2440 | end | |
2441 | if v:IsA("Model") then | |
2442 | v:Destroy() | |
2443 | end | |
2444 | if v:IsA("Part") or v:IsA("MeshPart") then | |
2445 | for x, o in pairs(v:GetChildren()) do | |
2446 | if o:IsA("Decal") then | |
2447 | o:Destroy() | |
2448 | end | |
2449 | end | |
2450 | coroutine.resume(coroutine.create(function() | |
2451 | v.Material = "Neon" | |
2452 | v.CanCollide = false | |
2453 | local bld = Instance.new("ParticleEmitter",v) | |
2454 | bld.LightEmission = 1 | |
2455 | bld.Texture = "rbxassetid://284205403" | |
2456 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
2457 | bld.Rate = 50 | |
2458 | bld.Lifetime = NumberRange.new(1) | |
2459 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2460 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2461 | bld.Speed = NumberRange.new(0,0) | |
2462 | bld.VelocitySpread = 50000 | |
2463 | bld.Rotation = NumberRange.new(-500,500) | |
2464 | bld.RotSpeed = NumberRange.new(-500,500) | |
2465 | local sbs = Instance.new("BodyPosition", v) | |
2466 | sbs.P = 3000 | |
2467 | sbs.D = 1000 | |
2468 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
2469 | sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
2470 | v.Color = Color3.new(1,1,1) | |
2471 | coroutine.resume(coroutine.create(function() | |
2472 | for i = 0, 49 do | |
2473 | swait(1) | |
2474 | v.Transparency = v.Transparency + 0.02 | |
2475 | end | |
2476 | CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1) | |
2477 | bld.Speed = NumberRange.new(1,5) | |
2478 | bld.Acceleration = vt(0,10,0) | |
2479 | wait(0.5) | |
2480 | bld.Enabled = false | |
2481 | wait(3) | |
2482 | v:Destroy() | |
2483 | dude:Destroy() | |
2484 | end)) | |
2485 | end)) | |
2486 | end | |
2487 | end | |
2488 | end)) | |
2489 | end) | |
2490 | ds() | |
2491 | end | |
2492 | end | |
2493 | ||
2494 | ||
2495 | function FindNearestHead(Position, Distance, SinglePlayer) | |
2496 | if SinglePlayer then | |
2497 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
2498 | end | |
2499 | local List = {} | |
2500 | for i, v in pairs(workspace:GetChildren()) do | |
2501 | if v:IsA("Model") then | |
2502 | if v:findFirstChild("Head") then | |
2503 | if v ~= Character then | |
2504 | if (v.Head.Position - Position).magnitude <= Distance then | |
2505 | table.insert(List, v) | |
2506 | end | |
2507 | end | |
2508 | end | |
2509 | end | |
2510 | end | |
2511 | return List | |
2512 | end | |
2513 | ||
2514 | function FaceMouse() | |
2515 | Cam = workspace.CurrentCamera | |
2516 | return { | |
2517 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
2518 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
2519 | } | |
2520 | end | |
2521 | ||
2522 | function FaceMouse2() | |
2523 | Cam = workspace.CurrentCamera | |
2524 | return { | |
2525 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
2526 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
2527 | } | |
2528 | end | |
2529 | ||
2530 | -- Functions are ready. | |
2531 | local storehumanoidWS = 16 | |
2532 | ||
2533 | function resetmode() | |
2534 | ModeOfGlitch = 1 | |
2535 | storehumanoidWS = 16 | |
2536 | hum.WalkSpeed = 16 | |
2537 | rainbowmode = false | |
2538 | chaosmode = false | |
2539 | - | RecolorTextAndRename("RAGE",Color3.new(0,0.5,1),Color3.new(0,0.3,1),"Arcade") |
2539 | + | RecolorTextAndRename("SOLITUDE V2",Color3.new(0,0.5,1),Color3.new(0,0.3,1),"Arcade") |
2540 | - | newTheme("rbxassetid://621367124",0,1.1,1.25) |
2540 | + | newTheme("rbxassetid://1564523997",0,1.1,1.25) |
2541 | - | MAINRUINCOLOR = BrickColor.new("Red") |
2541 | + | |
2542 | for i, v in pairs(mw2:GetChildren()) do | |
2543 | if v:IsA("Part") then | |
2544 | v.BrickColor = MAINRUINCOLOR | |
2545 | v.Material = "Neon" | |
2546 | end | |
2547 | end | |
2548 | refec.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2549 | refec2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2550 | refec3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2551 | tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2552 | tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2553 | tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2554 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2555 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2556 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2557 | for i, v in pairs(mw1:GetChildren()) do | |
2558 | if v:IsA("Part") then | |
2559 | v.Transparency = 0 | |
2560 | v.BrickColor = MAINRUINCOLOR | |
2561 | v.Material = "Neon" | |
2562 | end | |
2563 | end | |
2564 | for i, v in pairs(m:GetChildren()) do | |
2565 | if v:IsA("Part") then | |
2566 | - | v.BrickColor = BrickColor.new("Red") |
2566 | + | v.BrickColor = BrickColor.new("Black") |
2567 | v.Material = "Ice" | |
2568 | end | |
2569 | end | |
2570 | for i, v in pairs(m2:GetChildren()) do | |
2571 | if v:IsA("Part") then | |
2572 | - | v.BrickColor = BrickColor.new("Red") |
2572 | + | v.BrickColor = BrickColor.new("Black") |
2573 | v.Material = "Ice" | |
2574 | end | |
2575 | end | |
2576 | for i, v in pairs(m3:GetChildren()) do | |
2577 | if v:IsA("Part") then | |
2578 | - | v.BrickColor = BrickColor.new("Crimson") |
2578 | + | v.BrickColor = BrickColor.new("Black") |
2579 | v.Material = "Neon" | |
2580 | end | |
2581 | end | |
2582 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
2583 | if v:IsA("Part") then | |
2584 | v.Transparency = 0.1 | |
2585 | - | v.BrickColor = BrickColor.new("Crimson") |
2585 | + | v.BrickColor = BrickColor.new("Black") |
2586 | v.Material = "Neon" | |
2587 | end | |
2588 | end | |
2589 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
2590 | if v:IsA("Part") then | |
2591 | v.Transparency = 0.1 | |
2592 | - | v.BrickColor = BrickColor.new("Crimson") |
2592 | + | v.BrickColor = BrickColor.new("Black") |
2593 | v.Material = "Neon" | |
2594 | end | |
2595 | end | |
2596 | end | |
2597 | ||
2598 | function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo) | |
2599 | for i, v in pairs(mw2:GetChildren()) do | |
2600 | if v:IsA("Part") then | |
2601 | v.BrickColor = one | |
2602 | v.Material = "Neon" | |
2603 | end | |
2604 | end | |
2605 | refec.Color = ColorSequence.new(one.Color) | |
2606 | refec2.Color = ColorSequence.new(one.Color) | |
2607 | refec3.Color = ColorSequence.new(one.Color) | |
2608 | tr1.Color = ColorSequence.new(one.Color) | |
2609 | tr2.Color = ColorSequence.new(one.Color) | |
2610 | tr3.Color = ColorSequence.new(one.Color) | |
2611 | for i, v in pairs(mw1:GetChildren()) do | |
2612 | if v:IsA("Part") then | |
2613 | v.Transparency = 0 | |
2614 | v.BrickColor = two | |
2615 | v.Material = "Neon" | |
2616 | end | |
2617 | end | |
2618 | tl1.Color = ColorSequence.new(two.Color) | |
2619 | tl2.Color = ColorSequence.new(two.Color) | |
2620 | tl3.Color = ColorSequence.new(two.Color) | |
2621 | for i, v in pairs(m:GetChildren()) do | |
2622 | if v:IsA("Part") then | |
2623 | v.BrickColor = three | |
2624 | v.Material = "Ice" | |
2625 | end | |
2626 | end | |
2627 | for i, v in pairs(m2:GetChildren()) do | |
2628 | if v:IsA("Part") then | |
2629 | v.BrickColor = four | |
2630 | v.Material = "Ice" | |
2631 | end | |
2632 | end | |
2633 | for i, v in pairs(m3:GetChildren()) do | |
2634 | if v:IsA("Part") then | |
2635 | v.BrickColor = five | |
2636 | v.Material = "Neon" | |
2637 | end | |
2638 | end | |
2639 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
2640 | if v:IsA("Part") then | |
2641 | v.Transparency = exonetran | |
2642 | v.BrickColor = exone | |
2643 | v.Material = "Neon" | |
2644 | end | |
2645 | end | |
2646 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
2647 | if v:IsA("Part") then | |
2648 | v.Transparency = extwotran | |
2649 | v.BrickColor = extwo | |
2650 | v.Material = "Neon" | |
2651 | end | |
2652 | end | |
2653 | end | |
2654 | ||
2655 | function attackone() | |
2656 | attack = true | |
2657 | local keptcolor = MAINRUINCOLOR | |
2658 | for i = 0,1,0.1 do | |
2659 | swait() | |
2660 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3) | |
2661 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3) | |
2662 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3) | |
2663 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
2664 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),.3) | |
2665 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(2.5),math.rad(0),math.rad(0)),.3) | |
2666 | end | |
2667 | local distlook = 5 | |
2668 | coroutine.resume(coroutine.create(function() | |
2669 | for i = 0, 4 do | |
2670 | swait(2) | |
2671 | CameraEnshaking(2,3) | |
2672 | local hite = Instance.new("Part", char) | |
2673 | hite.Anchored = true | |
2674 | hite.CanCollide = false | |
2675 | hite.FormFactor = 3 | |
2676 | hite.Name = "Ring" | |
2677 | hite.Material = "Neon" | |
2678 | hite.Size = Vector3.new(1, 1, 1) | |
2679 | hite.Transparency = 1 | |
2680 | hite.TopSurface = 0 | |
2681 | hite.BottomSurface = 0 | |
2682 | hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook) | |
2683 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0,1,0),0.2,0.001,0.2,keptcolor) | |
2684 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(8,1,8),-0.045,0.15,-0.045,keptcolor) | |
2685 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(4,1,4),-0.025,0.25,-0.025,keptcolor) | |
2686 | sphere2(4,"Add",hite.CFrame*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(0)),vt(2,1,2),-0.015,0.35,-0.015,keptcolor) | |
2687 | MagniDamage(hite, 9, 10,25, 0, "Normal") | |
2688 | for i = 0, 14 do | |
2689 | local rsiz = math.random(5,20) | |
2690 | sphereMK(math.random(1,3),0.25,"Add",hite.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
2691 | end | |
2692 | CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1) | |
2693 | CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1) | |
2694 | game:GetService("Debris"):AddItem(hite, 5) | |
2695 | distlook = distlook + 10 | |
2696 | end | |
2697 | end)) | |
2698 | for i = 0,1,0.1 do | |
2699 | swait() | |
2700 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5) | |
2701 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5) | |
2702 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5) | |
2703 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5) | |
2704 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-10)),.5) | |
2705 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.5) | |
2706 | end | |
2707 | attack = false | |
2708 | end | |
2709 | ||
2710 | function attacktwo() | |
2711 | attack = true | |
2712 | for i = 0,1,0.1 do | |
2713 | swait() | |
2714 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.15,0)* angles(math.rad(10),math.rad(0),math.rad(0)),0.3) | |
2715 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
2716 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(-90)), 0.3) | |
2717 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(40), math.rad(0), math.rad(70)), 0.3) | |
2718 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(10)),.3) | |
2719 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.3) | |
2720 | end | |
2721 | CameraEnshaking(3,4) | |
2722 | MagniDamage(root, 12, 15,30, 0, "Normal") | |
2723 | sphere2(5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR) | |
2724 | sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR) | |
2725 | sphere2(10,"Add",root.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.35,0.35,0.35,MAINRUINCOLOR) | |
2726 | coroutine.resume(coroutine.create(function() | |
2727 | local eff = Instance.new("ParticleEmitter",root) | |
2728 | eff.Texture = "rbxassetid://363275192" | |
2729 | eff.LightEmission = 0.95 | |
2730 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
2731 | eff.Rate = 10000 | |
2732 | eff.Lifetime = NumberRange.new(1) | |
2733 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2734 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.25,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2735 | eff.Speed = NumberRange.new(10,125) | |
2736 | eff.Drag = 5 | |
2737 | eff.Rotation = NumberRange.new(-500,500) | |
2738 | eff.VelocitySpread = 9000 | |
2739 | eff.RotSpeed = NumberRange.new(-50,50) | |
2740 | local eff2 = eff:Clone() | |
2741 | eff2.Parent = root | |
2742 | eff2.Texture = "rbxassetid://284205403" | |
2743 | eff2.Rate = 10000 | |
2744 | eff2.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2745 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2746 | eff2.Drag = 5 | |
2747 | eff2.Speed = NumberRange.new(10,50) | |
2748 | eff2.Rotation = NumberRange.new(-500,500) | |
2749 | eff2.VelocitySpread = 9000 | |
2750 | wait(0.25) | |
2751 | eff2.Enabled = false | |
2752 | eff.Enabled = false | |
2753 | wait(3) | |
2754 | eff2:Destroy() | |
2755 | eff:Destroy() | |
2756 | end)) | |
2757 | for i = 0, 9 do | |
2758 | sphere2(7.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.0025,1,-0.0025,MAINRUINCOLOR) | |
2759 | end | |
2760 | for i = 0, 24 do | |
2761 | local rsiz = math.random(5,20) | |
2762 | sphereMK(math.random(1,5),0.75,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/8,rsiz/8,rsiz/8,0,MAINRUINCOLOR,0) | |
2763 | end | |
2764 | CFuncs["Sound"].Create("rbxassetid://1042705869", root, 2.5, 1) | |
2765 | CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2.25, 1) | |
2766 | CFuncs["Sound"].Create("rbxassetid://1117054464", root, 1, 1) | |
2767 | for i = 0,2,0.1 do | |
2768 | swait() | |
2769 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3) | |
2770 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
2771 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(120)), 0.3) | |
2772 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-120)), 0.3) | |
2773 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.3) | |
2774 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.3) | |
2775 | end | |
2776 | attack = false | |
2777 | end | |
2778 | ||
2779 | function attackthree() | |
2780 | attack = true | |
2781 | local keptcolor = MAINRUINCOLOR | |
2782 | CFuncs["Sound"].Create("rbxassetid://1042700914", root, 2, 1.75) | |
2783 | for i = 0,1,0.1 do | |
2784 | swait() | |
2785 | sphere2(6,"Add",root.CFrame + root.CFrame.lookVector*2.5,vt(3,3,3),0.01,0.01,0.01,MAINRUINCOLOR) | |
2786 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.5) | |
2787 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5) | |
2788 | RW.C0 = clerp(RW.C0, CFrame.new(1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(-40)), 0.5) | |
2789 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, -0.5) * angles(math.rad(80), math.rad(0), math.rad(40)), 0.5) | |
2790 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5) | |
2791 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.5) | |
2792 | end | |
2793 | CFuncs["Sound"].Create("rbxassetid://1042705869", root, 1.5, 0.9) | |
2794 | CFuncs["Sound"].Create("rbxassetid://1042716828", root, 2, 0.9) | |
2795 | local angle = -25 | |
2796 | coroutine.resume(coroutine.create(function() | |
2797 | for i = 0, 2 do | |
2798 | local orb = Instance.new("Part", char) | |
2799 | orb.BrickColor = MAINRUINCOLOR | |
2800 | orb.CanCollide = false | |
2801 | orb.FormFactor = 3 | |
2802 | orb.Name = "Ring" | |
2803 | orb.Material = "Neon" | |
2804 | orb.Size = Vector3.new(1, 1, 1) | |
2805 | orb.Transparency = 0.5 | |
2806 | orb.TopSurface = 0 | |
2807 | orb.BottomSurface = 0 | |
2808 | local orbm = Instance.new("SpecialMesh", orb) | |
2809 | orbm.MeshType = "Sphere" | |
2810 | orbm.Name = "SizeMesh" | |
2811 | orbm.Scale = vt(3,3,3) | |
2812 | orb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(angle),0) + root.CFrame.lookVector*2.5 | |
2813 | local bv = Instance.new("BodyVelocity") | |
2814 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2815 | bv.velocity = orb.CFrame.lookVector*100 | |
2816 | bv.Parent = orb | |
2817 | game:GetService("Debris"):AddItem(orb, 10) | |
2818 | sphere2(6,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor) | |
2819 | sphere2(9,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.15,0.15,0.15,keptcolor) | |
2820 | coroutine.resume(coroutine.create(function() | |
2821 | MagniDamage(orb, 6, 8,15, 0, "Normal") | |
2822 | for i = 0, 7 do | |
2823 | swait(2.5) | |
2824 | CameraEnshaking(1,2) | |
2825 | MagniDamage(orb, 6, 8,15, 0, "Normal") | |
2826 | CFuncs["Sound"].Create("rbxassetid://1042693018", orb, 1.5, 1.5) | |
2827 | for i = 0, 4 do | |
2828 | local rsiz = math.random(5,10) | |
2829 | sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,1,0.5),-0.0025,0.25,-0.0025,keptcolor) | |
2830 | sphereMK(math.random(2,6),0.15,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
2831 | end | |
2832 | sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor) | |
2833 | sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),0.1,0.1,0.1,keptcolor) | |
2834 | end | |
2835 | orb.Transparency = 1 | |
2836 | orb.Anchored = false | |
2837 | wait(10) | |
2838 | orb:Destroy() | |
2839 | end)) | |
2840 | angle = angle + 25 | |
2841 | end | |
2842 | end)) | |
2843 | for i = 0,1,0.1 do | |
2844 | swait() | |
2845 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.15,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),0.3) | |
2846 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
2847 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.3) | |
2848 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-60)), 0.3) | |
2849 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-10)),.3) | |
2850 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.3) | |
2851 | end | |
2852 | attack = false | |
2853 | end | |
2854 | ||
2855 | ------------------------------------- Abilities --------------------------------------------------------- | |
2856 | function Fireball() | |
2857 | attack = true | |
2858 | hum.WalkSpeed = 0 | |
2859 | local keptcolor = MAINRUINCOLOR | |
2860 | for i = 0,2,0.1 do | |
2861 | swait() | |
2862 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3) | |
2863 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-40)),.3) | |
2864 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.3) | |
2865 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(40), math.rad(-40)), 0.3) | |
2866 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.3) | |
2867 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.3) | |
2868 | end | |
2869 | local orb = Instance.new("Part", char) | |
2870 | orb.BrickColor = keptcolor | |
2871 | orb.CanCollide = false | |
2872 | orb.FormFactor = 3 | |
2873 | orb.Name = "Ring" | |
2874 | orb.Material = "Neon" | |
2875 | orb.Size = Vector3.new(1, 1, 1) | |
2876 | orb.Transparency = 0 | |
2877 | orb.TopSurface = 0 | |
2878 | orb.BottomSurface = 0 | |
2879 | local orbm = Instance.new("SpecialMesh", orb) | |
2880 | orbm.MeshType = "Sphere" | |
2881 | orbm.Name = "SizeMesh" | |
2882 | orbm.Scale = vt(4,4,4) | |
2883 | orb.CFrame = root.CFrame + root.CFrame.lookVector*3 | |
2884 | local eff = Instance.new("ParticleEmitter",orb) | |
2885 | eff.Texture = "rbxassetid://296874871" | |
2886 | eff.LightEmission = 0.95 | |
2887 | eff.Color = ColorSequence.new(orb.BrickColor.Color) | |
2888 | eff.Rate = 10000 | |
2889 | eff.Lifetime = NumberRange.new(1.5) | |
2890 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,7,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2891 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2892 | eff.Speed = NumberRange.new(25) | |
2893 | eff.Drag = 5 | |
2894 | eff.Rotation = NumberRange.new(-500,500) | |
2895 | eff.VelocitySpread = 9000 | |
2896 | eff.RotSpeed = NumberRange.new(-500,500) | |
2897 | local a = Instance.new("Part",workspace) | |
2898 | a.Name = "Direction" | |
2899 | a.Anchored = true | |
2900 | a.BrickColor = bc("Bright red") | |
2901 | a.Material = "Neon" | |
2902 | a.Transparency = 1 | |
2903 | a.CanCollide = false | |
2904 | local ray = Ray.new( | |
2905 | orb.CFrame.p, -- origin | |
2906 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
2907 | ) | |
2908 | local ignore = orb | |
2909 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
2910 | a.BottomSurface = 10 | |
2911 | a.TopSurface = 10 | |
2912 | local distance = (orb.CFrame.p - position).magnitude | |
2913 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
2914 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
2915 | orb.CFrame = a.CFrame | |
2916 | a:Destroy() | |
2917 | CFuncs["Sound"].Create("rbxassetid://304448425", orb, 1.5, 0.9) | |
2918 | local bv = Instance.new("BodyVelocity") | |
2919 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2920 | bv.velocity = orb.CFrame.lookVector*75 | |
2921 | bv.Parent = orb | |
2922 | game:GetService("Debris"):AddItem(orb, 10) | |
2923 | local hitted = false | |
2924 | coroutine.resume(coroutine.create(function() | |
2925 | while true do | |
2926 | swait() | |
2927 | if orb.Parent ~= nil and hitted == false then | |
2928 | sphere2(4,"Add",orb.CFrame*CFrame.new(math.random(-1,1),math.random(-1,1),0) - orb.CFrame.lookVector*1.5,vt(3,3,3),-0.03,-0.03,-0.03,keptcolor) | |
2929 | elseif orb.Parent == nil and hitted == true then | |
2930 | break | |
2931 | end | |
2932 | end | |
2933 | end)) | |
2934 | local hit =orb.Touched:connect(function(hit) | |
2935 | if hitted == false and hit.Parent ~= char then | |
2936 | hitted = true | |
2937 | eff.Enabled = false | |
2938 | CameraEnshaking(4,4) | |
2939 | CFuncs["Sound"].Create("rbxassetid://1226980789", orb, 4.5, 0.7) | |
2940 | CFuncs["Sound"].Create("rbxassetid://178452221", orb, 2.5, 0.4) | |
2941 | MagniDamage(orb, 25, 20,30, 0, "Normal") | |
2942 | sphere2(4,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor) | |
2943 | sphere2(3,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor) | |
2944 | sphere2(2,"Add",orb.CFrame,vt(4,4,4),0.5,0.5,0.5,keptcolor) | |
2945 | for i = 0, 9 do | |
2946 | sphere2(4,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1,1.5),-0.005,4,-0.005,keptcolor) | |
2947 | end | |
2948 | for i = 0, 49 do | |
2949 | local rsiz = math.random(10,30) | |
2950 | sphereMK(math.random(1,3),1,"Add",orb.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
2951 | end | |
2952 | local eff = Instance.new("ParticleEmitter",orb) | |
2953 | eff.Texture = "rbxassetid://296874871" | |
2954 | eff.LightEmission = 0.95 | |
2955 | eff.Color = ColorSequence.new(orb.BrickColor.Color) | |
2956 | eff.Rate = 10000 | |
2957 | eff.Lifetime = NumberRange.new(1.5) | |
2958 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.1,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2959 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2960 | eff.Speed = NumberRange.new(150) | |
2961 | eff.Drag = 5 | |
2962 | eff.Rotation = NumberRange.new(-500,500) | |
2963 | eff.VelocitySpread = 9000 | |
2964 | eff.RotSpeed = NumberRange.new(-500,500) | |
2965 | coroutine.resume(coroutine.create(function() | |
2966 | wait(0.25) | |
2967 | eff.Enabled = false | |
2968 | end)) | |
2969 | local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char) | |
2970 | orb.Anchored = true | |
2971 | orb.Transparency = 1 | |
2972 | coroutine.resume(coroutine.create(function() | |
2973 | if hfr ~= nil then | |
2974 | orb.Size = vt(50,1,50) | |
2975 | orb.Orientation = vt(0,0,0) | |
2976 | orb.CFrame = orb.CFrame*CFrame.new(0,-5,0) | |
2977 | orbm:Destroy() | |
2978 | local firef = eff:Clone() | |
2979 | firef.Parent = orb | |
2980 | firef.VelocitySpread = 50 | |
2981 | firef.Rate = 500 | |
2982 | firef.Drag = 3 | |
2983 | firef.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.2,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
2984 | firef.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,3,0),NumberSequenceKeypoint.new(0.1,5,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
2985 | firef.Speed = NumberRange.new(10,30) | |
2986 | for i = 0, 24 do | |
2987 | wait(0.25) | |
2988 | MagniDamage(orb, 25, 3,6, 0, "Normal") | |
2989 | end | |
2990 | firef.Enabled = false | |
2991 | end | |
2992 | end)) | |
2993 | wait(10) | |
2994 | orb:Destroy() | |
2995 | end | |
2996 | end) | |
2997 | for i = 0,1,0.1 do | |
2998 | swait() | |
2999 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.5) | |
3000 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5) | |
3001 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(6), math.rad(-20), math.rad(12)), 0.5) | |
3002 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.5) | |
3003 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5) | |
3004 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5) | |
3005 | end | |
3006 | hum.WalkSpeed = storehumanoidWS | |
3007 | attack = false | |
3008 | end | |
3009 | ||
3010 | function BeamOfDeath() | |
3011 | attack = true | |
3012 | hum.WalkSpeed = 0 | |
3013 | local keptcolor = MAINRUINCOLOR | |
3014 | local orb = Instance.new("Part", char) | |
3015 | orb.BrickColor = keptcolor | |
3016 | orb.CanCollide = false | |
3017 | orb.FormFactor = 3 | |
3018 | orb.Name = "Ring" | |
3019 | orb.Material = "Neon" | |
3020 | orb.Size = Vector3.new(1, 1, 1) | |
3021 | orb.Transparency = 1 | |
3022 | orb.TopSurface = 0 | |
3023 | orb.BottomSurface = 0 | |
3024 | local orbm = Instance.new("SpecialMesh", orb) | |
3025 | orbm.MeshType = "Sphere" | |
3026 | orbm.Name = "SizeMesh" | |
3027 | orbm.Scale = vt(22.5,10000,22.5) | |
3028 | orb.CFrame = mouse.Hit | |
3029 | orb.Anchored = true | |
3030 | orb.Orientation = vt(0,0,0) | |
3031 | orb.CFrame = orb.CFrame*CFrame.new(0,1,0) | |
3032 | CFuncs["LongSound"].Create("rbxassetid://1545630949", char, 1.5, 1) | |
3033 | coroutine.resume(coroutine.create(function() | |
3034 | coroutine.resume(coroutine.create(function() | |
3035 | for i = 0, 399 do | |
3036 | swait() | |
3037 | orbm.Scale = orbm.Scale - vt(0.05,0,0.05) | |
3038 | orb.Transparency = orb.Transparency - 0.0025 | |
3039 | end | |
3040 | end)) | |
3041 | wait(9) | |
3042 | coroutine.resume(coroutine.create(function() | |
3043 | local hfr,pfr=rayCast(orb.Position,(CFrame.new(orb.Position,orb.Position - Vector3.new(0,1,0))).lookVector,4,char) | |
3044 | if hfr ~= nil then | |
3045 | for i = 0, 49 do | |
3046 | local deb = Instance.new("Part", char) | |
3047 | deb.Anchored = true | |
3048 | deb.CanCollide = false | |
3049 | deb.FormFactor = 3 | |
3050 | deb.Name = "Ring" | |
3051 | deb.Material = hitfloor.Material | |
3052 | deb.Color = hitfloor.Color | |
3053 | deb.Size = vt(math.random(50,55),math.random(50,55),math.random(50,55)) | |
3054 | deb.Transparency = 0 | |
3055 | deb.TopSurface = 0 | |
3056 | deb.BottomSurface = 0 | |
3057 | deb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),-5,math.random(-150,150))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
3058 | local deb2 = Instance.new("Part", char) | |
3059 | deb2.CanCollide = false | |
3060 | deb2.FormFactor = 3 | |
3061 | deb2.Name = "Ring" | |
3062 | deb2.Material = hitfloor.Material | |
3063 | deb2.Color = hitfloor.Color | |
3064 | deb2.Size = vt(math.random(34,38),math.random(34,38),math.random(34,38)) | |
3065 | deb2.Transparency = 0 | |
3066 | deb2.TopSurface = 0 | |
3067 | deb2.BottomSurface = 0 | |
3068 | deb2.Velocity = vt(math.random(-150,150),math.random(250,650),math.random(-150,150)) | |
3069 | deb2.CFrame = orb.CFrame*CFrame.new(math.random(-60,60),-5,math.random(-60,60))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
3070 | local eff = Instance.new("ParticleEmitter",deb) | |
3071 | eff.Texture = "rbxassetid://363275192" | |
3072 | eff.LightEmission = 0.95 | |
3073 | eff.Color = ColorSequence.new(keptcolor.Color) | |
3074 | eff.Rate = 100 | |
3075 | eff.Lifetime = NumberRange.new(1) | |
3076 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,40,0),NumberSequenceKeypoint.new(1,45,0)}) | |
3077 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3078 | eff.Speed = NumberRange.new(0,5) | |
3079 | eff.Rotation = NumberRange.new(-500,500) | |
3080 | eff.VelocitySpread = 9000 | |
3081 | eff.RotSpeed = NumberRange.new(-10,10) | |
3082 | local at1 = Instance.new('Attachment',deb2) | |
3083 | at1.Position = vt(0,15,0) | |
3084 | local at2 = Instance.new('Attachment',deb2) | |
3085 | at2.Position = vt(0,-15,0) | |
3086 | local tl = Instance.new('Trail',deb2) | |
3087 | tl.Attachment0 = at1 | |
3088 | tl.Attachment1 = at2 | |
3089 | tl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
3090 | tl.Color = ColorSequence.new(BrickColor.new('White').Color) | |
3091 | tl.Lifetime = 1 | |
3092 | game:GetService("Debris"):AddItem(deb,30) | |
3093 | game:GetService("Debris"):AddItem(deb2,30) | |
3094 | coroutine.resume(coroutine.create(function() | |
3095 | wait(15) | |
3096 | eff.Enabled = false | |
3097 | for i = 0, 49 do | |
3098 | swait() | |
3099 | deb.Transparency = deb.Transparency + 0.02 | |
3100 | end | |
3101 | wait(1) | |
3102 | deb:Destroy() | |
3103 | end)) | |
3104 | end | |
3105 | end | |
3106 | end)) | |
3107 | for i = 0, 199 do | |
3108 | swait(1.5) | |
3109 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 175)) do | |
3110 | if v:FindFirstChild('Head') then | |
3111 | dmg(v) | |
3112 | end | |
3113 | end | |
3114 | sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),5,5,5,keptcolor) | |
3115 | sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),1,35,1,keptcolor) | |
3116 | sphere2(5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(10,10,10),0,50,0,keptcolor) | |
3117 | sphere2(5,"Add",orb.CFrame,vt(10,100000,10),2,2,2,keptcolor) | |
3118 | end | |
3119 | orb:Destroy() | |
3120 | end)) | |
3121 | hum.WalkSpeed = storehumanoidWS | |
3122 | attack = false | |
3123 | end | |
3124 | ||
3125 | ||
3126 | function Beams() | |
3127 | attack = true | |
3128 | hum.WalkSpeed = 0 | |
3129 | local keptcolor = MAINRUINCOLOR | |
3130 | coroutine.resume(coroutine.create(function() | |
3131 | for i = 0, 24 do | |
3132 | swait(5) | |
3133 | local orb = Instance.new("Part", char) | |
3134 | CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1) | |
3135 | orb.BrickColor = keptcolor | |
3136 | orb.CanCollide = false | |
3137 | orb.FormFactor = 3 | |
3138 | orb.Name = "Ring" | |
3139 | orb.Material = "Neon" | |
3140 | orb.Size = Vector3.new(1, 1, 1) | |
3141 | orb.Transparency = 0 | |
3142 | orb.TopSurface = 0 | |
3143 | orb.BottomSurface = 0 | |
3144 | orb.Anchored = true | |
3145 | local orbm = Instance.new("SpecialMesh", orb) | |
3146 | orbm.MeshType = "Sphere" | |
3147 | orbm.Name = "SizeMesh" | |
3148 | orbm.Scale = vt(1.25,1.25,1.25) | |
3149 | orb.CFrame = root.CFrame*CFrame.new(math.random(-6,6),math.random(3,9),math.random(-6,6)) | |
3150 | sphere2(6,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor) | |
3151 | coroutine.resume(coroutine.create(function() | |
3152 | wait(0.5) | |
3153 | CFuncs["Sound"].Create("rbxassetid://161006182", orb, 2.5, 1.1) | |
3154 | sphere2(3,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor) | |
3155 | sphere2(4,"Add",orb.CFrame,vt(1.25,1.25,1.25),0.025,0.025,0.025,keptcolor) | |
3156 | orb.Transparency = 1 | |
3157 | local a = Instance.new("Part",char) | |
3158 | a.Name = "Direction" | |
3159 | a.Anchored = true | |
3160 | a.BrickColor = keptcolor | |
3161 | a.Material = "Neon" | |
3162 | a.Transparency = 0.25 | |
3163 | a.Shape = "Cylinder" | |
3164 | local ht = Instance.new("Part",char) | |
3165 | ht.Name = "DirectionHit" | |
3166 | ht.Anchored = true | |
3167 | ht.BrickColor = keptcolor | |
3168 | ht.CanCollide = false | |
3169 | ht.Transparency = 1 | |
3170 | ht.Size = vt(0.1,0.1,0.1) | |
3171 | CFuncs["Sound"].Create("rbxassetid://183763487", ht, 2, 1.2) | |
3172 | a.CanCollide = false | |
3173 | local ray = Ray.new( | |
3174 | orb.CFrame.p, -- origin | |
3175 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
3176 | ) | |
3177 | local ignore = char | |
3178 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3179 | a.BottomSurface = 10 | |
3180 | a.TopSurface = 10 | |
3181 | local distance = (orb.CFrame.p - position).magnitude | |
3182 | a.Size = Vector3.new(distance,1,1) | |
3183 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
3184 | ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3185 | sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor) | |
3186 | sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.15,0.15,0.15,keptcolor) | |
3187 | MagniDamage(ht, 9, 10,15, 0, "Normal") | |
3188 | coroutine.resume(coroutine.create(function() | |
3189 | local eff = Instance.new("ParticleEmitter",ht) | |
3190 | eff.Texture = "rbxassetid://284205403" | |
3191 | eff.LightEmission = 0.95 | |
3192 | eff.Color = ColorSequence.new(keptcolor.Color) | |
3193 | eff.Rate = 500 | |
3194 | eff.Lifetime = NumberRange.new(0.5) | |
3195 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,5,0),NumberSequenceKeypoint.new(0.2,2.5,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
3196 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3197 | eff.Speed = NumberRange.new(10,50) | |
3198 | eff.Drag = 5 | |
3199 | eff.Rotation = NumberRange.new(-500,500) | |
3200 | eff.VelocitySpread = 9000 | |
3201 | eff.RotSpeed = NumberRange.new(-500,500) | |
3202 | wait(0.25) | |
3203 | eff.Enabled = false | |
3204 | end)) | |
3205 | for i = 0, 4 do | |
3206 | sphere2(8,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.005,0.125,-0.005,keptcolor) | |
3207 | sphere2(4,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.01,0.5,-0.01,keptcolor) | |
3208 | local rsiz = math.random(10,30) | |
3209 | sphereMK(math.random(2,4),0.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
3210 | end | |
3211 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
3212 | local msh = Instance.new("SpecialMesh",a) | |
3213 | msh.MeshType = "Cylinder" | |
3214 | msh.Scale = vt(1,1,1) | |
3215 | for i = 0, 49 do | |
3216 | swait() | |
3217 | msh.Scale = msh.Scale + vt(0,0.01,0.01) | |
3218 | a.Transparency = a.Transparency + 0.02 | |
3219 | end | |
3220 | orb:Destroy() | |
3221 | a:Destroy() | |
3222 | ht:Destroy() | |
3223 | end)) | |
3224 | game:GetService("Debris"):AddItem(orb, 10) | |
3225 | end | |
3226 | end)) | |
3227 | for i = 0,12,0.1 do | |
3228 | swait() | |
3229 | sphere2(7,"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,keptcolor) | |
3230 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(40)),0.3) | |
3231 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(-40)),.3) | |
3232 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.3) | |
3233 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(6), math.rad(20), math.rad(-10)), 0.3) | |
3234 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.3) | |
3235 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.3) | |
3236 | end | |
3237 | hum.WalkSpeed = storehumanoidWS | |
3238 | attack = false | |
3239 | end | |
3240 | ||
3241 | function smiter() | |
3242 | local targetted = nil | |
3243 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
3244 | targetted = mouse.Target.Parent | |
3245 | end | |
3246 | if targetted ~= nil then | |
3247 | RootPart.CFrame = FaceMouse()[1] | |
3248 | attack = true | |
3249 | hum.WalkSpeed = 0 | |
3250 | coroutine.resume(coroutine.create(function() | |
3251 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1) | |
3252 | sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR) | |
3253 | local vel = Instance.new("BodyPosition", targetted.Head) | |
3254 | vel.P = 12500 | |
3255 | vel.D = 1000 | |
3256 | vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000) | |
3257 | vel.position = targetted.Head.CFrame.p | |
3258 | end)) | |
3259 | CFuncs["Sound"].Create("rbxassetid://671759140", sorb2, 1, 1.2) | |
3260 | for i = 0,4,0.1 do | |
3261 | swait() | |
3262 | sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.125,-0.01,MAINRUINCOLOR) | |
3263 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3264 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3265 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3266 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3267 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.2) | |
3268 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.2) | |
3269 | end | |
3270 | coroutine.resume(coroutine.create(function() | |
3271 | CameraEnshaking(6,5) | |
3272 | MagniDamage(targetted.Head, 18, 18,30, 0, "Normal") | |
3273 | CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.8) | |
3274 | CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.8) | |
3275 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.8) | |
3276 | sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR) | |
3277 | sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR) | |
3278 | sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR) | |
3279 | sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR) | |
3280 | coroutine.resume(coroutine.create(function() | |
3281 | local eff = Instance.new("ParticleEmitter",targetted.Head) | |
3282 | eff.Texture = "rbxassetid://363275192" | |
3283 | eff.LightEmission = 0.95 | |
3284 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3285 | eff.Rate = 10000 | |
3286 | eff.Lifetime = NumberRange.new(1.5) | |
3287 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3288 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3289 | eff.Speed = NumberRange.new(25,150) | |
3290 | eff.Drag = 5 | |
3291 | eff.Rotation = NumberRange.new(-500,500) | |
3292 | eff.VelocitySpread = 9000 | |
3293 | eff.RotSpeed = NumberRange.new(-50,50) | |
3294 | local eff2 = eff:Clone() | |
3295 | eff2.Parent = targetted.Head | |
3296 | eff2.Texture = "rbxassetid://284205403" | |
3297 | eff2.Rate = 10000 | |
3298 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3299 | eff2.Drag = 5 | |
3300 | eff2.Rotation = NumberRange.new(-500,500) | |
3301 | eff2.VelocitySpread = 9000 | |
3302 | wait(0.5) | |
3303 | eff2.Enabled = false | |
3304 | eff.Enabled = false | |
3305 | end)) | |
3306 | for i = 0, 9 do | |
3307 | sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR) | |
3308 | end | |
3309 | for i = 0, 49 do | |
3310 | local rsiz = math.random(10,50) | |
3311 | sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
3312 | end | |
3313 | game:GetService("Debris"):AddItem(vel,1) | |
3314 | dmg(targetted) | |
3315 | end)) | |
3316 | for i = 0,1,0.1 do | |
3317 | swait() | |
3318 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-70)),0.5) | |
3319 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.5) | |
3320 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5) | |
3321 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-50)), 0.5) | |
3322 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(0)),.5) | |
3323 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(20),math.rad(5)),.5) | |
3324 | end | |
3325 | attack = false | |
3326 | hum.WalkSpeed = storehumanoidWS | |
3327 | end | |
3328 | end | |
3329 | ||
3330 | function supsmiter() | |
3331 | local targetted = nil | |
3332 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
3333 | targetted = mouse.Target.Parent | |
3334 | end | |
3335 | if targetted ~= nil then | |
3336 | RootPart.CFrame = FaceMouse()[1] | |
3337 | attack = true | |
3338 | hum.WalkSpeed = 0 | |
3339 | coroutine.resume(coroutine.create(function() | |
3340 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 2, 1) | |
3341 | sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.1,0.1,0.1,MAINRUINCOLOR) | |
3342 | sphere2(4,"Add",targetted.Head.CFrame,vt(8,8,8),0.2,0.2,0.2,MAINRUINCOLOR) | |
3343 | local vel = Instance.new("BodyPosition", targetted.Head) | |
3344 | vel.P = 12500 | |
3345 | vel.D = 1000 | |
3346 | vel.maxForce = Vector3.new(50000000000, 10e10, 50000000000) | |
3347 | vel.position = targetted.Head.CFrame.p | |
3348 | end)) | |
3349 | CFuncs["Sound"].Create("rbxassetid://1042700914", sorb2, 2.5, 0.25) | |
3350 | for i = 0,14,0.1 do | |
3351 | swait() | |
3352 | rsiz = math.random(5,15) | |
3353 | sphereMK(math.random(3,9),0.25,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,-15) | |
3354 | sphere2(4,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1.5,1.5,1.5),-0.01,0.15,-0.01,MAINRUINCOLOR) | |
3355 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3356 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3357 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3358 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3359 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2) | |
3360 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2) | |
3361 | end | |
3362 | coroutine.resume(coroutine.create(function() | |
3363 | CameraEnshaking(6,5) | |
3364 | MagniDamage(targetted.Head, 18, 18,30, 0, "Normal") | |
3365 | MagniDamage(targetted.Head, 9, 18000,30000, 0, "Normal") | |
3366 | CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 5.5, 0.8) | |
3367 | CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 5.25, 0.8) | |
3368 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 4, 0.8) | |
3369 | sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR) | |
3370 | sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.25,0,0.25,MAINRUINCOLOR) | |
3371 | sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR) | |
3372 | sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.5,0.5,0.5,MAINRUINCOLOR) | |
3373 | coroutine.resume(coroutine.create(function() | |
3374 | local eff = Instance.new("ParticleEmitter",targetted.Head) | |
3375 | eff.Texture = "rbxassetid://363275192" | |
3376 | eff.LightEmission = 0.95 | |
3377 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3378 | eff.Rate = 10000 | |
3379 | eff.Lifetime = NumberRange.new(1.5) | |
3380 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3381 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3382 | eff.Speed = NumberRange.new(25,150) | |
3383 | eff.Drag = 5 | |
3384 | eff.Rotation = NumberRange.new(-500,500) | |
3385 | eff.VelocitySpread = 9000 | |
3386 | eff.RotSpeed = NumberRange.new(-50,50) | |
3387 | local eff2 = eff:Clone() | |
3388 | eff2.Parent = targetted.Head | |
3389 | eff2.Texture = "rbxassetid://284205403" | |
3390 | eff2.Rate = 10000 | |
3391 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3392 | eff2.Drag = 5 | |
3393 | eff2.Rotation = NumberRange.new(-500,500) | |
3394 | eff2.VelocitySpread = 9000 | |
3395 | wait(0.5) | |
3396 | eff2.Enabled = false | |
3397 | eff.Enabled = false | |
3398 | end)) | |
3399 | for i = 0, 9 do | |
3400 | sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,3,-0.02,MAINRUINCOLOR) | |
3401 | end | |
3402 | for i = 0, 49 do | |
3403 | local rsiz = math.random(10,50) | |
3404 | sphereMK(math.random(1,4),1,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
3405 | end | |
3406 | wait(0.75) | |
3407 | CameraEnshaking(6,6) | |
3408 | MagniDamage(targetted.Head, 20, 25,40, 0, "Normal") | |
3409 | MagniDamage(targetted.Head, 12, 18000,30000, 0, "Normal") | |
3410 | CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 6.5, 0.7) | |
3411 | CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 6.25, 0.7) | |
3412 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 5, 0.7) | |
3413 | sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR) | |
3414 | sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.5,0,0.5,MAINRUINCOLOR) | |
3415 | sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR) | |
3416 | sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),0.75,0.75,0.75,MAINRUINCOLOR) | |
3417 | coroutine.resume(coroutine.create(function() | |
3418 | local eff = Instance.new("ParticleEmitter",targetted.Head) | |
3419 | eff.Texture = "rbxassetid://363275192" | |
3420 | eff.LightEmission = 0.95 | |
3421 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3422 | eff.Rate = 10000 | |
3423 | eff.Lifetime = NumberRange.new(1.5) | |
3424 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,35,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3425 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3426 | eff.Speed = NumberRange.new(25,250) | |
3427 | eff.Drag = 5 | |
3428 | eff.Rotation = NumberRange.new(-500,500) | |
3429 | eff.VelocitySpread = 9000 | |
3430 | eff.RotSpeed = NumberRange.new(-50,50) | |
3431 | local eff2 = eff:Clone() | |
3432 | eff2.Parent = targetted.Head | |
3433 | eff2.Texture = "rbxassetid://284205403" | |
3434 | eff2.Rate = 10000 | |
3435 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3436 | eff2.Drag = 5 | |
3437 | eff2.Rotation = NumberRange.new(-500,500) | |
3438 | eff2.VelocitySpread = 9000 | |
3439 | wait(0.5) | |
3440 | eff2.Enabled = false | |
3441 | eff.Enabled = false | |
3442 | end)) | |
3443 | for i = 0, 9 do | |
3444 | sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,4.5,-0.02,MAINRUINCOLOR) | |
3445 | end | |
3446 | for i = 0, 49 do | |
3447 | local rsiz = math.random(15,55) | |
3448 | sphereMK(math.random(1,4),1.5,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
3449 | end | |
3450 | wait(0.75) | |
3451 | CameraEnshaking(6,7) | |
3452 | MagniDamage(targetted.Head, 23, 40,80, 0, "Normal") | |
3453 | MagniDamage(targetted.Head, 15, 18000,30000, 0, "Normal") | |
3454 | CFuncs["Sound"].Create("rbxassetid://1042705869", targetted.Head, 7.5, 0.6) | |
3455 | CFuncs["Sound"].Create("rbxassetid://1042716828", targetted.Head, 7.25, 0.6) | |
3456 | CFuncs["Sound"].Create("rbxassetid://1117054464", targetted.Head, 6, 0.6) | |
3457 | sphere2(3,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR) | |
3458 | sphere2(2,"Add",targetted.Head.CFrame,vt(0,40000,0),0.75,0,0.75,MAINRUINCOLOR) | |
3459 | sphere2(4,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR) | |
3460 | sphere2(5,"Add",targetted.Head.CFrame,vt(0,0,0),1,1,1,MAINRUINCOLOR) | |
3461 | coroutine.resume(coroutine.create(function() | |
3462 | local eff = Instance.new("ParticleEmitter",targetted.Head) | |
3463 | eff.Texture = "rbxassetid://363275192" | |
3464 | eff.LightEmission = 0.95 | |
3465 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3466 | eff.Rate = 10000 | |
3467 | eff.Lifetime = NumberRange.new(1.5) | |
3468 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3469 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3470 | eff.Speed = NumberRange.new(50,450) | |
3471 | eff.Drag = 5 | |
3472 | eff.Rotation = NumberRange.new(-500,500) | |
3473 | eff.VelocitySpread = 9000 | |
3474 | eff.RotSpeed = NumberRange.new(-50,50) | |
3475 | local eff2 = eff:Clone() | |
3476 | eff2.Parent = targetted.Head | |
3477 | eff2.Texture = "rbxassetid://284205403" | |
3478 | eff2.Rate = 10000 | |
3479 | eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3480 | eff2.Drag = 5 | |
3481 | eff2.Rotation = NumberRange.new(-500,500) | |
3482 | eff2.VelocitySpread = 9000 | |
3483 | wait(0.5) | |
3484 | eff2.Enabled = false | |
3485 | eff.Enabled = false | |
3486 | end)) | |
3487 | for i = 0, 9 do | |
3488 | sphere2(3,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,1,2),-0.02,6,-0.02,MAINRUINCOLOR) | |
3489 | end | |
3490 | for i = 0, 49 do | |
3491 | local rsiz = math.random(20,60) | |
3492 | sphereMK(math.random(1,4),2,"Add",targetted.Head.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
3493 | end | |
3494 | dmg(targetted) | |
3495 | game:GetService("Debris"):AddItem(vel,1) | |
3496 | end)) | |
3497 | for i = 0,7,0.1 do | |
3498 | swait() | |
3499 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5) | |
3500 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(80)),.5) | |
3501 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.5) | |
3502 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(-60)), 0.5) | |
3503 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.5) | |
3504 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.5) | |
3505 | end | |
3506 | attack = false | |
3507 | hum.WalkSpeed = storehumanoidWS | |
3508 | end | |
3509 | end | |
3510 | ||
3511 | function BinaryBLINK() | |
3512 | for i = 0, 9 do | |
3513 | sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) | |
3514 | end | |
3515 | sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR) | |
3516 | coroutine.resume(coroutine.create(function() | |
3517 | local eff = Instance.new("ParticleEmitter",root) | |
3518 | eff.Texture = "rbxassetid://1175838406" | |
3519 | eff.LightEmission = 0.95 | |
3520 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3521 | eff.Rate = 10000 | |
3522 | eff.Lifetime = NumberRange.new(1) | |
3523 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,4,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3524 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3525 | eff.Speed = NumberRange.new(30,160) | |
3526 | eff.Drag = 5 | |
3527 | eff.Rotation = NumberRange.new(-500,500) | |
3528 | eff.VelocitySpread = 100000 | |
3529 | wait(0.25) | |
3530 | eff.Enabled = false | |
3531 | wait(4) | |
3532 | eff:Destroy() | |
3533 | end)) | |
3534 | CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1) | |
3535 | RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0) | |
3536 | CameraEnshaking(2,10) | |
3537 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 10)) do | |
3538 | if v:FindFirstChild('Head') then | |
3539 | dmg(v) | |
3540 | end | |
3541 | end | |
3542 | for i = 0, 9 do | |
3543 | sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) sphere2(6,"Add",root.CFrame*CFrame.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.5,-0.005,MAINRUINCOLOR) | |
3544 | end | |
3545 | sphere(20,"Add",root.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR) | |
3546 | end | |
3547 | ||
3548 | function BinaryE() | |
3549 | local posit = -2 | |
3550 | attack = true | |
3551 | hum.WalkSpeed = 5 | |
3552 | CFuncs["Sound"].Create("rbxassetid://169380495", sorb2, 1, 1) | |
3553 | for i = 0,2,0.1 do | |
3554 | swait() | |
3555 | sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR) | |
3556 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(30)),0.5) | |
3557 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-30)),.5) | |
3558 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5) | |
3559 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(45), math.rad(6), math.rad(-30)), 0.5) | |
3560 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5) | |
3561 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5) | |
3562 | end | |
3563 | for i = 0, 2 do | |
3564 | CameraEnshaking(1,2) | |
3565 | local hite = Instance.new("Part", char) | |
3566 | hite.Anchored = true | |
3567 | hite.CanCollide = false | |
3568 | hite.FormFactor = 3 | |
3569 | hite.Name = "Ring" | |
3570 | hite.Material = "Neon" | |
3571 | hite.Size = Vector3.new(1, 1, 1) | |
3572 | hite.Transparency = 1 | |
3573 | hite.TopSurface = 0 | |
3574 | hite.BottomSurface = 0 | |
3575 | hite.CFrame = root.CFrame*CFrame.new(0,posit,-5) | |
3576 | CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 0.9) | |
3577 | CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 0.8) | |
3578 | coroutine.resume(coroutine.create(function() | |
3579 | local eff = Instance.new("ParticleEmitter",hite) | |
3580 | eff.Texture = "rbxassetid://1175838406" | |
3581 | eff.LightEmission = 0.95 | |
3582 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3583 | eff.Rate = 1000 | |
3584 | eff.Lifetime = NumberRange.new(1) | |
3585 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3586 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3587 | eff.Speed = NumberRange.new(10,50) | |
3588 | eff.Drag = 5 | |
3589 | eff.Rotation = NumberRange.new(-500,500) | |
3590 | eff.VelocitySpread = 100000 | |
3591 | wait(0.25) | |
3592 | eff.Enabled = false | |
3593 | end)) | |
3594 | coroutine.resume(coroutine.create(function() | |
3595 | for i = 0, 1 do | |
3596 | swait() | |
3597 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
3598 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
3599 | end | |
3600 | end)) | |
3601 | sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(2,2,2),0.5,-0.01,-0.01,MAINRUINCOLOR) | |
3602 | MagniDamage(hite, 3, 30,40, 0, "Normal") | |
3603 | game:GetService("Debris"):AddItem(hite, 5) | |
3604 | posit = posit + 2 | |
3605 | end | |
3606 | for i = 0,1,0.1 do | |
3607 | swait() | |
3608 | sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR) | |
3609 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.5) | |
3610 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),.5) | |
3611 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.5) | |
3612 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(110), math.rad(6), math.rad(40)), 0.5) | |
3613 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(0)),.5) | |
3614 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(0)),.5) | |
3615 | end | |
3616 | for i = 0,1,0.1 do | |
3617 | swait() | |
3618 | sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR) | |
3619 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,-0.2,0)* angles(math.rad(20),math.rad(0),math.rad(60)),0.5) | |
3620 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-60)),.5) | |
3621 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.5) | |
3622 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(60), math.rad(6), math.rad(-50)), 0.5) | |
3623 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(-20),math.rad(30)),.5) | |
3624 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(40)),.5) | |
3625 | end | |
3626 | posit = -6 | |
3627 | for i = 0, 6 do | |
3628 | CameraEnshaking(1,3) | |
3629 | local hite = Instance.new("Part", char) | |
3630 | hite.Anchored = true | |
3631 | hite.CanCollide = false | |
3632 | hite.FormFactor = 3 | |
3633 | hite.Name = "Ring" | |
3634 | hite.Material = "Neon" | |
3635 | hite.Size = Vector3.new(1, 1, 1) | |
3636 | hite.Transparency = 1 | |
3637 | hite.TopSurface = 0 | |
3638 | hite.BottomSurface = 0 | |
3639 | hite.CFrame = root.CFrame*CFrame.new(posit,0,-5) | |
3640 | CFuncs["Sound"].Create("rbxassetid://231917856", hite, 0.5, 1.2) | |
3641 | CFuncs["Sound"].Create("rbxassetid://231917758", hite, 0.25, 1) | |
3642 | sphere2(6,"Add",hite.CFrame*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(1,1,1),-0.01,1,-0.01,MAINRUINCOLOR) | |
3643 | coroutine.resume(coroutine.create(function() | |
3644 | local eff = Instance.new("ParticleEmitter",hite) | |
3645 | eff.Texture = "rbxassetid://1175838406" | |
3646 | eff.LightEmission = 0.95 | |
3647 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3648 | eff.Rate = 1000 | |
3649 | eff.Lifetime = NumberRange.new(1) | |
3650 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,1,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3651 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3652 | eff.Speed = NumberRange.new(20,70) | |
3653 | eff.Drag = 5 | |
3654 | eff.Rotation = NumberRange.new(-500,500) | |
3655 | eff.VelocitySpread = 100000 | |
3656 | wait(0.25) | |
3657 | eff.Enabled = false | |
3658 | end)) | |
3659 | coroutine.resume(coroutine.create(function() | |
3660 | for i = 0, 2 do | |
3661 | swait() | |
3662 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(90)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
3663 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
3664 | sphere2(4,"Add",hite.CFrame*CFrame.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),vt(0.5,0.5,0.5),-0.005,0.25,-0.005,MAINRUINCOLOR) | |
3665 | end | |
3666 | end)) | |
3667 | MagniDamage(hite, 5, 40,70, 0, "Normal") | |
3668 | game:GetService("Debris"):AddItem(hite, 5) | |
3669 | posit = posit + 2 | |
3670 | end | |
3671 | for i = 0,1,0.1 do | |
3672 | swait() | |
3673 | sphere2(7,"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.075,-0.01,MAINRUINCOLOR) | |
3674 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0.1,1.5)* angles(math.rad(-10),math.rad(0),math.rad(-60)),0.5) | |
3675 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(50)),.5) | |
3676 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(30)), 0.5) | |
3677 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(6), math.rad(-50)), 0.5) | |
3678 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(10),math.rad(-10)),.5) | |
3679 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(60)),.5) | |
3680 | end | |
3681 | hum.WalkSpeed = storehumanoidWS | |
3682 | attack = false | |
3683 | end | |
3684 | ||
3685 | function AZUREFINALE() | |
3686 | attack = true | |
3687 | duringend = true | |
3688 | hum.WalkSpeed = 0 | |
3689 | CFuncs["Sound"].Create("rbxassetid://1117054464", char, 7.5, 0.75) | |
3690 | CFuncs["LongSound"].Create("rbxassetid://1042700914", char, 3.5, 0.05) | |
3691 | local hite = Instance.new("Part", char) | |
3692 | hite.Anchored = true | |
3693 | hite.CanCollide = false | |
3694 | hite.FormFactor = 3 | |
3695 | hite.Name = "Ring" | |
3696 | hite.Material = "Neon" | |
3697 | hite.Size = Vector3.new(1, 1, 1) | |
3698 | hite.Transparency = 0 | |
3699 | hite.TopSurface = 0 | |
3700 | hite.BottomSurface = 0 | |
3701 | hite.BrickColor = MAINRUINCOLOR | |
3702 | local orbm = Instance.new("SpecialMesh", hite) | |
3703 | orbm.MeshType = "Sphere" | |
3704 | orbm.Name = "SizeMesh" | |
3705 | orbm.Scale = vt(0,0,0) | |
3706 | hite.CFrame = root.CFrame*CFrame.new(0,200,0) | |
3707 | for i = 0,70,0.1 do | |
3708 | swait() | |
3709 | orbm.Scale = orbm.Scale + vt(0.5,0.5,0.5) | |
3710 | rsiz = math.random(10,45) | |
3711 | kan.Volume = kan.Volume + 0.01 | |
3712 | kan.Pitch = kan.Pitch - 0.00070 | |
3713 | chatfunc("I'm sorry I have to do this...",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
3714 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3715 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3716 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3717 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3718 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2) | |
3719 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2) | |
3720 | end | |
3721 | kan.Pitch = 0.6 | |
3722 | hite.Transparency = 1 | |
3723 | for i = 0,2 do | |
3724 | CFuncs["LongSound"].Create("rbxassetid://324849898", char, 10,0.9) | |
3725 | end | |
3726 | CFuncs["LongSound"].Create("rbxassetid://1117054464", char, 5, 0.75) | |
3727 | coroutine.resume(coroutine.create(function() | |
3728 | local eff = Instance.new("ParticleEmitter",hite) | |
3729 | eff.Texture = "rbxassetid://284205403" | |
3730 | eff.LightEmission = 0.95 | |
3731 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
3732 | eff.Rate = 10000 | |
3733 | eff.Lifetime = NumberRange.new(5) | |
3734 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,100,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3735 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3736 | eff.Speed = NumberRange.new(600,1250) | |
3737 | eff.Drag = 5 | |
3738 | eff.Rotation = NumberRange.new(-500,500) | |
3739 | eff.VelocitySpread = 9000 | |
3740 | eff.RotSpeed = NumberRange.new(-500,500) | |
3741 | wait(1) | |
3742 | eff.Enabled = false | |
3743 | end)) | |
3744 | for i = 0,5,0.1 do | |
3745 | swait() | |
3746 | chatfunc("...This will kill me... But I don't care...",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
3747 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3748 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3749 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3750 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3751 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2) | |
3752 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2) | |
3753 | end | |
3754 | local adsc = 0 | |
3755 | local radiatezone = 0 | |
3756 | for i = 0,20,0.1 do | |
3757 | swait() | |
3758 | adsc = adsc + 0.025 | |
3759 | radiatezone = radiatezone + 1.25 | |
3760 | for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do | |
3761 | if v:FindFirstChild('Head') then | |
3762 | dmg(v) | |
3763 | end | |
3764 | end | |
3765 | chatfunc("Goodbye...",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
3766 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3767 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3768 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3769 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3770 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2) | |
3771 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2) | |
3772 | end | |
3773 | for i = 0,2 do | |
3774 | CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.9) | |
3775 | end | |
3776 | for i = 0,40,0.1 do | |
3777 | swait() | |
3778 | adsc = adsc + 0.05 | |
3779 | radiatezone = radiatezone + 2.5 | |
3780 | for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do | |
3781 | if v:FindFirstChild('Head') then | |
3782 | dmg(v) | |
3783 | end | |
3784 | end | |
3785 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3786 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3787 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3788 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3789 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2) | |
3790 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2) | |
3791 | end | |
3792 | for i = 0,4 do | |
3793 | CFuncs["LongSound"].Create("rbxassetid://665426491", char, 10,0.75) | |
3794 | CFuncs["LongSound"].Create("rbxassetid://923073285", char, 1.25,0.75) | |
3795 | end | |
3796 | for i = 0,80,0.1 do | |
3797 | swait() | |
3798 | adsc = adsc + 0.075 | |
3799 | radiatezone = radiatezone + 3.75 | |
3800 | sphere2(8,"Add",hite.CFrame,vt(0,0,0),adsc,adsc,adsc,MAINRUINCOLOR) | |
3801 | for i, v in pairs(FindNearestHead(hite.CFrame.p, radiatezone)) do | |
3802 | if v:FindFirstChild('Head') then | |
3803 | dmg(v) | |
3804 | end | |
3805 | end | |
3806 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))* angles(math.rad(0),math.rad(0),math.rad(-60)),0.2) | |
3807 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.2) | |
3808 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15),math.rad(15),math.rad(-10)),.2) | |
3809 | LW.C0=clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(-40)), 0.2) | |
3810 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-10 + 1 * math.cos(sine / 34))),.2) | |
3811 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(5 + 1 * math.cos(sine / 34))),.2) | |
3812 | end | |
3813 | hite:Destroy() | |
3814 | char:BreakJoints() | |
3815 | duringend = false | |
3816 | hum.WalkSpeed = storehumanoidWS | |
3817 | attack = false | |
3818 | end | |
3819 | ||
3820 | function GalacticalBeams() | |
3821 | attack = true | |
3822 | local keptcolor = MAINRUINCOLOR | |
3823 | coroutine.resume(coroutine.create(function() | |
3824 | for i = 0, 0 do | |
3825 | swait(10) | |
3826 | local orb = Instance.new("Part", char) | |
3827 | CFuncs["Sound"].Create("rbxassetid://663361028", orb, 2, 1) | |
3828 | orb.BrickColor = keptcolor | |
3829 | orb.CanCollide = false | |
3830 | orb.FormFactor = 3 | |
3831 | orb.Name = "Ring" | |
3832 | orb.Material = "Neon" | |
3833 | orb.Size = Vector3.new(1, 1, 1) | |
3834 | orb.Transparency = 1 | |
3835 | orb.TopSurface = 0 | |
3836 | orb.BottomSurface = 0 | |
3837 | orb.Anchored = true | |
3838 | local orbm = Instance.new("SpecialMesh", orb) | |
3839 | orbm.MeshType = "Sphere" | |
3840 | orbm.Name = "SizeMesh" | |
3841 | orbm.Scale = vt(1.25,1.25,1.25) | |
3842 | orb.CFrame = root.CFrame*CFrame.new(math.random(-25,25),math.random(75,150),math.random(-25,25)) | |
3843 | coroutine.resume(coroutine.create(function() | |
3844 | orb.Transparency = 1 | |
3845 | local a = Instance.new("Part",char) | |
3846 | a.Name = "Direction" | |
3847 | a.Anchored = true | |
3848 | a.BrickColor = keptcolor | |
3849 | a.Material = "Neon" | |
3850 | a.Transparency = 1 | |
3851 | a.Shape = "Cylinder" | |
3852 | local x = Instance.new("Part",char) | |
3853 | x.Name = "Direction" | |
3854 | x.Anchored = true | |
3855 | x.BrickColor = keptcolor | |
3856 | x.Material = "Neon" | |
3857 | x.Transparency = 1 | |
3858 | x.Shape = "Cylinder" | |
3859 | local ht = Instance.new("Part",char) | |
3860 | ht.Name = "DirectionHit" | |
3861 | ht.Anchored = true | |
3862 | ht.BrickColor = keptcolor | |
3863 | ht.CanCollide = false | |
3864 | ht.Transparency = 1 | |
3865 | ht.Size = vt(0.1,0.1,0.1) | |
3866 | a.CanCollide = false | |
3867 | local ray = Ray.new( | |
3868 | orb.CFrame.p, -- origin | |
3869 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
3870 | ) | |
3871 | local ignore = char | |
3872 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3873 | a.BottomSurface = 10 | |
3874 | a.TopSurface = 10 | |
3875 | local distance = (orb.CFrame.p - position).magnitude | |
3876 | a.Size = Vector3.new(distance,1,1) | |
3877 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
3878 | ht.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3879 | x.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3880 | local poste = 0 | |
3881 | local rotation = 0 | |
3882 | CFuncs["Sound"].Create("rbxassetid://153092315", char, 1.5, 1) | |
3883 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(5,5,5),2.5,2.5,0,keptcolor) | |
3884 | CameraEnshaking(2,2) | |
3885 | for i = 0, 49 do | |
3886 | swait() | |
3887 | rotation = rotation + 5 | |
3888 | poste = poste + 1 | |
3889 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3890 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3891 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3892 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 - rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3893 | end | |
3894 | local A1 = Instance.new("Attachment",x) | |
3895 | local A2 = Instance.new("Attachment",ht) | |
3896 | local Beem = Instance.new("Beam",ht) | |
3897 | Beem.Attachment0 = A1 | |
3898 | Beem.Attachment1 = A2 | |
3899 | Beem.LightEmission = 1 | |
3900 | Beem.FaceCamera = true | |
3901 | Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, 0),NumberSequenceKeypoint.new(0.975, 0),NumberSequenceKeypoint.new(1, 1)}) | |
3902 | Beem.Width0 = 125 | |
3903 | Beem.Width1 = 125 | |
3904 | Beem.Texture = "rbxassetid://1134824633" | |
3905 | Beem.TextureMode = "Wrap" | |
3906 | Beem.TextureLength = 200 | |
3907 | Beem.TextureSpeed = 1.5 | |
3908 | Beem.Color = ColorSequence.new(keptcolor.Color) | |
3909 | CameraEnshaking(3,6) | |
3910 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 2, 1.5) | |
3911 | a.Transparency = 0.25 | |
3912 | sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor) | |
3913 | sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),0.5,0.5,0.5,keptcolor) | |
3914 | sphere2(2,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor) | |
3915 | MagniDamage(ht, 70, 1000,1500, 0, "Normal") | |
3916 | local eff = Instance.new("ParticleEmitter",ht) | |
3917 | eff.Texture = "rbxassetid://284205403" | |
3918 | eff.LightEmission = 0.95 | |
3919 | eff.Color = ColorSequence.new(keptcolor.Color) | |
3920 | eff.Rate = 500 | |
3921 | eff.Lifetime = NumberRange.new(1) | |
3922 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,15,0),NumberSequenceKeypoint.new(0.2,35,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
3923 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3924 | eff.Speed = NumberRange.new(80,500) | |
3925 | eff.Drag = 5 | |
3926 | eff.Rotation = NumberRange.new(-500,500) | |
3927 | eff.VelocitySpread = 9000 | |
3928 | eff.RotSpeed = NumberRange.new(-500,500) | |
3929 | for i = 0, 24 do | |
3930 | sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor) | |
3931 | local rsiz = math.random(10,50) | |
3932 | sphereMK(math.random(3,6),1.25,"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
3933 | end | |
3934 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
3935 | local msh = Instance.new("SpecialMesh",a) | |
3936 | msh.MeshType = "Cylinder" | |
3937 | msh.Scale = vt(1,15,15) | |
3938 | for i = 0, 49 do | |
3939 | swait() | |
3940 | CameraEnshaking(1,4) | |
3941 | MagniDamage(ht, 70, 1000,1500, 0, "Normal") | |
3942 | rotation = rotation + 5 | |
3943 | sphere2(4,"Add",ht.CFrame,vt(1.25,1.25,1.25),1,1,1,keptcolor) | |
3944 | sphere2(6,"Add",ht.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(1,5),-0.05,keptcolor) | |
3945 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,0),vt(25,25,5),1,1,0,keptcolor) | |
3946 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
3947 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
3948 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,50,0),vt(5,25,10),-0.05,1.5,-0.1,keptcolor) | |
3949 | for i = 0, 2 do | |
3950 | local rsiz = math.random(50,250) | |
3951 | sphereMK(math.random(3,6),math.random(2,4),"Add",ht.CFrame*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,keptcolor,0) | |
3952 | end | |
3953 | msh.Scale = msh.Scale + vt(0,0.25,0.25) | |
3954 | end | |
3955 | eff.Enabled = false | |
3956 | local visibility = 0 | |
3957 | for i = 0, 49 do | |
3958 | swait() | |
3959 | visibility = visibility + 0.02 | |
3960 | Beem.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.025, visibility),NumberSequenceKeypoint.new(0.975, visibility),NumberSequenceKeypoint.new(1, 1)}) | |
3961 | rotation = rotation + 5 | |
3962 | poste = poste - 1 | |
3963 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3964 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(180 + rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3965 | sphere2(8,"Add",x.CFrame*CFrame.Angles(0,0,math.rad(-rotation))*CFrame.new(0,poste,0),vt(5,5,5),-0.05,-0.05,-0.05,keptcolor) | |
3966 | msh.Scale = msh.Scale + vt(0,-0.5,-0.5) | |
3967 | a.Transparency = a.Transparency + 0.02 | |
3968 | end | |
3969 | wait(1) | |
3970 | orb:Destroy() | |
3971 | a:Destroy() | |
3972 | ht:Destroy() | |
3973 | end)) | |
3974 | game:GetService("Debris"):AddItem(orb, 10) | |
3975 | end | |
3976 | end)) | |
3977 | hum.WalkSpeed = storehumanoidWS | |
3978 | attack = false | |
3979 | end | |
3980 | ||
3981 | ||
3982 | function WarpedDash() | |
3983 | attack = true | |
3984 | hum.WalkSpeed = 0 | |
3985 | hum.JumpPower = 0 | |
3986 | CFuncs["Sound"].Create("rbxassetid://1208650519", tors, 5, 1) | |
3987 | local poste = 3 | |
3988 | local rotation = 0 | |
3989 | local rate = 0 | |
3990 | for i = 0, 124 do | |
3991 | swait() | |
3992 | rotation = rotation + rate | |
3993 | poste = poste + 0.1 | |
3994 | rate = rate + 0.1 | |
3995 | sphere2(8,"Add",root.CFrame*CFrame.new(0,-3,0),vt(poste,1,poste),0.05*poste/3,0,0.05*poste/3,MAINRUINCOLOR) | |
3996 | sphere2(8,"Add",root.CFrame*CFrame.new(math.random(-20,20),-3,math.random(-20,20)),vt(1,1,1),-0.01,0.5,-0.01,MAINRUINCOLOR) | |
3997 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR) | |
3998 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(90 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR) | |
3999 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR) | |
4000 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(270 + rotation),0)*CFrame.new(0,-3,poste)*CFrame.Angles(math.rad(40),0,0),vt(1,1,1),0.025,0.25,0.025,MAINRUINCOLOR) | |
4001 | RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(30)),.5) | |
4002 | 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)),.5) | |
4003 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.75)*angles(math.rad(30),math.rad(0),math.rad(20)),.5) | |
4004 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(-20)),.5) | |
4005 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(40),math.rad(-8),math.rad(-10)),.5) | |
4006 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.5) | |
4007 | end | |
4008 | CameraEnshaking(3,7) | |
4009 | local loc = Instance.new("Part", char) | |
4010 | loc.BrickColor = MAINRUINCOLOR | |
4011 | loc.CanCollide = false | |
4012 | loc.FormFactor = 3 | |
4013 | loc.Name = "Ring" | |
4014 | loc.Material = "Neon" | |
4015 | loc.Size = Vector3.new(1, 1, 1) | |
4016 | loc.Transparency = 1 | |
4017 | loc.TopSurface = 0 | |
4018 | loc.BottomSurface = 0 | |
4019 | loc.Anchored = true | |
4020 | loc.CFrame = root.CFrame + root.CFrame.lookVector*100 | |
4021 | CFuncs["Sound"].Create("rbxassetid://782353443", loc, 5, 1) | |
4022 | CFuncs["Sound"].Create("rbxassetid://1177785010", loc, 6, 1) | |
4023 | MagniDamage(loc, 95, 500,6000, 0, "Normal") | |
4024 | sphere2(10,"Add",loc.CFrame,vt(5,5,5),-0.05,-0.05,5,MAINRUINCOLOR) | |
4025 | sphere2(8,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR) | |
4026 | sphere2(4,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR) | |
4027 | sphere2(2,"Add",loc.CFrame,vt(5,5,5),2.5,2.5,2.5,MAINRUINCOLOR) | |
4028 | coroutine.resume(coroutine.create(function() | |
4029 | local eff = Instance.new("ParticleEmitter",loc) | |
4030 | eff.Texture = "rbxassetid://363275192" | |
4031 | eff.LightEmission = 0.95 | |
4032 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
4033 | eff.Rate = 10000 | |
4034 | eff.Lifetime = NumberRange.new(1) | |
4035 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.8,75,0),NumberSequenceKeypoint.new(1,0,0)}) | |
4036 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4037 | eff.Speed = NumberRange.new(100,500) | |
4038 | eff.Drag = 5 | |
4039 | eff.Rotation = NumberRange.new(-500,500) | |
4040 | eff.VelocitySpread = 9000 | |
4041 | eff.RotSpeed = NumberRange.new(-50,50) | |
4042 | wait(0.5) | |
4043 | eff.Enabled = false | |
4044 | end)) | |
4045 | for i = 0, 49 do | |
4046 | sphere2(math.random(100,300)/100,"Add",loc.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR) | |
4047 | end | |
4048 | for i = 0, 9 do | |
4049 | sphere2(3,"Add",loc.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),0),vt(1,1,5),-0.01,-0.01,5,MAINRUINCOLOR) | |
4050 | end | |
4051 | game:GetService("Debris"):AddItem(loc, 5) | |
4052 | root.CFrame = root.CFrame + root.CFrame.lookVector*200 | |
4053 | hum.WalkSpeed = storehumanoidWS | |
4054 | hum.JumpPower = 50 | |
4055 | attack = false | |
4056 | end | |
4057 | ||
4058 | ------------------------------------ | |
4059 | function harmonytaunty() | |
4060 | attack = true | |
4061 | hum.WalkSpeed = 0 | |
4062 | CFuncs["Sound"].Create("rbxassetid://430312221", tors, 1.25, 1.15) | |
4063 | for i = 0,7,0.1 do | |
4064 | swait() | |
4065 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-20 + 6 * math.cos(sine / 34))),.2) | |
4066 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(10 - 4 * math.cos(sine / 47))),.2) | |
4067 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(-2 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-2 + 4 * math.cos(sine / 62))),.2) | |
4068 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(12 - 3 * math.cos(sine / 28)),math.rad(12 - 3 * math.cos(sine / 79)),math.rad(2 - 4 * math.cos(sine / 62))),.2) | |
4069 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.01 * math.cos(sine / 28),-0.1)*angles(math.rad(34 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-13 - 3 * math.cos(sine / 28))),.2) | |
4070 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(80 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(10 + 5 * math.cos(sine / 30))),.2) | |
4071 | end | |
4072 | attack = false | |
4073 | end | |
4074 | ||
4075 | function vistaunty() | |
4076 | attack = true | |
4077 | hum.WalkSpeed = 0 | |
4078 | local rd = math.random(1,5) | |
4079 | if rd == 1 then | |
4080 | chatfunc("Do you remember this?",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4081 | elseif rd == 2 then | |
4082 | chatfunc("Lets check how you like dance",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4083 | elseif rd == 3 then | |
4084 | chatfunc("I'm just bored. Don't mess with me, Capiche?",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4085 | elseif rd == 4 then | |
4086 | chatfunc("Ready to dance? If not, come back if you want to.",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4087 | elseif rd == 5 then | |
4088 | chatfunc("GET OUT FROM PARTY",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
4089 | end | |
4090 | for i = 0, 8, 0.1 do | |
4091 | swait() | |
4092 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/5000,-0.1)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-20),math.rad(0 - 2 * math.cos(sine / 56) + kan.PlaybackLoudness/450)),.4) | |
4093 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - kan.PlaybackLoudness/6500,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(5),math.rad(0 + 2 * math.cos(sine / 56) + kan.PlaybackLoudness/500)),.4) | |
4094 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 56) ,0 + 0.05 * math.cos(sine / 28) + kan.PlaybackLoudness/7000)*angles(math.rad(0 - 2 * math.cos(sine / 56)),math.rad(0),math.rad(60)),.4) | |
4095 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2 * math.cos(sine / 28) - kan.PlaybackLoudness/60),math.rad(0 + 2 * math.cos(sine / 73)),math.rad(-60)),.4) | |
4096 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(90 + 5 * math.cos(sine / 34) + kan.PlaybackLoudness/7.5),math.rad(0),math.rad(60 - 2 * math.cos(sine / 38))),.4) | |
4097 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(10),math.rad(5),math.rad(7.5)),.4) | |
4098 | end | |
4099 | attack = false | |
4100 | end | |
4101 | ||
4102 | function shytaunty() | |
4103 | attack = true | |
4104 | hum.WalkSpeed = 0 | |
4105 | CFuncs["Sound"].Create("rbxassetid://543623779", tors, 0.35, 1) | |
4106 | local blush = Instance.new("Decal",hed) | |
4107 | blush.Texture = "rbxassetid://898404027" | |
4108 | blush.Face = "Front" | |
4109 | for i = 0, 13, 0.1 do | |
4110 | swait() | |
4111 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1) | |
4112 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1) | |
4113 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),-0.05 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1) | |
4114 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2 - 2.5 * math.cos(sine / 28)),math.rad(20 + 5 * math.cos(sine / 62)),math.rad(35 + 5 * math.cos(sine / 59))),.1) | |
4115 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 1 * math.cos(sine / 53)),math.rad(0),math.rad(-60 + 2 * math.cos(sine / 37))),.1) | |
4116 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(26 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(59 - 3 * math.cos(sine / 57) )),.1) | |
4117 | end | |
4118 | coroutine.resume(coroutine.create(function() | |
4119 | for i = 0, 49 do | |
4120 | swait() | |
4121 | blush.Transparency = blush.Transparency + 0.02 | |
4122 | end | |
4123 | blush:Destroy() | |
4124 | end)) | |
4125 | attack = false | |
4126 | end | |
4127 | ------------------------------------ Mode Ascendances | |
4128 | function UnknownA() | |
4129 | hum.WalkSpeed = 0 | |
4130 | attack = true | |
4131 | local keptcolor = MAINRUINCOLOR | |
4132 | local locat = Instance.new("Part", char) | |
4133 | locat.CanCollide = false | |
4134 | locat.FormFactor = 3 | |
4135 | locat.Name = "Ring" | |
4136 | locat.Material = "Neon" | |
4137 | locat.Size = Vector3.new(1, 1, 1) | |
4138 | locat.Transparency = 1 | |
4139 | locat.TopSurface = 0 | |
4140 | locat.BottomSurface = 0 | |
4141 | locat.Anchored = true | |
4142 | locat.CFrame = root.CFrame*CFrame.new(0,-3,0) | |
4143 | local poste = 0 | |
4144 | local rotation = 0 | |
4145 | local upperpos = 0 | |
4146 | local rate = 0 | |
4147 | local x = locat | |
4148 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5, 1) | |
4149 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5, 1) | |
4150 | sphere2(8,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor) | |
4151 | CameraEnshaking(2,5) | |
4152 | for i = 0, 49 do | |
4153 | swait() | |
4154 | rotation = rotation + 5 | |
4155 | poste = poste + 1 | |
4156 | 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)),.5) | |
4157 | 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)),.5) | |
4158 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.5) | |
4159 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.5) | |
4160 | 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))),.5) | |
4161 | 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))),.5) | |
4162 | end | |
4163 | for i = 0, 49 do | |
4164 | swait() | |
4165 | rotation = rotation + 5 | |
4166 | 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)),.5) | |
4167 | 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)),.5) | |
4168 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.5) | |
4169 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.5) | |
4170 | 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))),.5) | |
4171 | 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))),.5) | |
4172 | end | |
4173 | ModeOfGlitch = 6000000000 | |
4174 | storehumanoidWS = 300 | |
4175 | hum.WalkSpeed = 300 | |
4176 | rainbowmode = false | |
4177 | chaosmode = false | |
4178 | RecolorTextAndRename("GOD OF RUINS",BrickColor.new("Purple").Color,BrickColor.new("Purple").Color,"Antique") | |
4179 | newThemeCust("rbxassetid://1836627036",0,1.1,1.1) | |
4180 | MAINRUINCOLOR = BrickColor.new("Purple") | |
4181 | keptcolor = MAINRUINCOLOR | |
4182 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Navy blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4183 | CFuncs["Sound"].Create("rbxassetid://137473066", char, 2.5, 1) | |
4184 | CFuncs["Sound"].Create("rbxassetid://177082446", char, 2.5, 0.75) | |
4185 | sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("Navy blue")) | |
4186 | attack = false | |
4187 | hum.WalkSpeed = storehumanoidWS | |
4188 | for i = 0, 49 do | |
4189 | local rsiz = math.random(150,450) | |
4190 | sphere2(math.random(1,4),"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(15,1,15),-0.05,math.random(25,500)/25,-0.05,BrickColor.new("Deep blue")) | |
4191 | end | |
4192 | coroutine.resume(coroutine.create(function() | |
4193 | local eff = Instance.new("ParticleEmitter",x) | |
4194 | eff.Texture = "rbxassetid://284205403" | |
4195 | eff.LightEmission = 0.95 | |
4196 | eff.Color = ColorSequence.new(BrickColor.new("Navy blue").Color) | |
4197 | eff.Rate = 50000 | |
4198 | eff.Lifetime = NumberRange.new(2.5) | |
4199 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,75,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
4200 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4201 | eff.Speed = NumberRange.new(250,1000) | |
4202 | eff.Drag = 5 | |
4203 | eff.Rotation = NumberRange.new(-500,500) | |
4204 | eff.VelocitySpread = 9000 | |
4205 | eff.RotSpeed = NumberRange.new(-500,500) | |
4206 | wait(0.5) | |
4207 | eff.Enabled = false | |
4208 | end)) | |
4209 | --[[for i, v in pairs(FindNearestHead(Torso.CFrame.p, 2000000000)) do | |
4210 | if v:FindFirstChild('Head') then | |
4211 | dmg(v) | |
4212 | end | |
4213 | end]]-- | |
4214 | CameraEnshaking(8,10) | |
4215 | for i = 0, 99 do | |
4216 | swait() | |
4217 | rotation = rotation + 5 | |
4218 | poste = poste + 1 | |
4219 | upperpos = upperpos + rate | |
4220 | rate = rate + 0.1 | |
4221 | end | |
4222 | x:Destroy() | |
4223 | end | |
4224 | ||
4225 | function ChaosGroundStrike() | |
4226 | attack = true | |
4227 | for i = 0, 2, 0.1 do | |
4228 | swait() | |
4229 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
4230 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
4231 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
4232 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
4233 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2) | |
4234 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2) | |
4235 | end | |
4236 | CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1) | |
4237 | CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1) | |
4238 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
4239 | if v:FindFirstChild("Head") then | |
4240 | dmg(v) | |
4241 | end | |
4242 | end | |
4243 | sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random()) | |
4244 | sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random()) | |
4245 | sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random()) | |
4246 | for i = 0, 2, 0.1 do | |
4247 | swait() | |
4248 | 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) | |
4249 | 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) | |
4250 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
4251 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
4252 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
4253 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
4254 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4) | |
4255 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4) | |
4256 | end | |
4257 | attack = false | |
4258 | end | |
4259 | ||
4260 | function ExtinctiveHeartbreak() | |
4261 | local targetted | |
4262 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
4263 | targetted = mouse.Target.Parent | |
4264 | end | |
4265 | if targetted ~= nil then | |
4266 | attack = true | |
4267 | CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1) | |
4268 | for i = 0, 9 do | |
4269 | 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 black"), 0) | |
4270 | end | |
4271 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Navy blue")) | |
4272 | local originalpos = root.CFrame | |
4273 | RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2) | |
4274 | for i = 0, 9 do | |
4275 | 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 black"), 0) | |
4276 | end | |
4277 | hum.WalkSpeed = 0 | |
4278 | targetted.Head.Anchored = true | |
4279 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Navy blue")) | |
4280 | for i = 0, 2, 0.1 do | |
4281 | swait() | |
4282 | 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)), 0.4) | |
4283 | 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)), 0.4) | |
4284 | 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)), 0.4) | |
4285 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8) | |
4286 | 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)), 0.4) | |
4287 | 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)), 0.4) | |
4288 | end | |
4289 | coroutine.resume(coroutine.create(function() | |
4290 | bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso")) | |
4291 | bld.LightEmission = 0.1 | |
4292 | bld.Texture = "rbxassetid://284205403" | |
4293 | bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0)) | |
4294 | bld.Rate = 500 | |
4295 | bld.Lifetime = NumberRange.new(1) | |
4296 | bld.Size = NumberSequence.new({ | |
4297 | NumberSequenceKeypoint.new(0, 2, 0), | |
4298 | NumberSequenceKeypoint.new(1, 0, 0) | |
4299 | }) | |
4300 | bld.Acceleration = vt(0, -25, 0) | |
4301 | bld.Transparency = NumberSequence.new({ | |
4302 | NumberSequenceKeypoint.new(0, 0, 0), | |
4303 | NumberSequenceKeypoint.new(1, 0, 0) | |
4304 | }) | |
4305 | bld.Speed = NumberRange.new(10, 50) | |
4306 | bld.EmissionDirection = "Front" | |
4307 | bld.VelocitySpread = 25 | |
4308 | bld.Rotation = NumberRange.new(-500, 500) | |
4309 | bld.RotSpeed = NumberRange.new(-500, 500) | |
4310 | end)) | |
4311 | coroutine.resume(coroutine.create(function() | |
4312 | bld = Instance.new("ParticleEmitter", targetted:WaitForChild("UpperTorso")) | |
4313 | bld.LightEmission = 0.1 | |
4314 | bld.Texture = "rbxassetid://284205403" | |
4315 | bld.Color = ColorSequence.new(Color3.new(0.5, 0, 0)) | |
4316 | bld.Rate = 500 | |
4317 | bld.Lifetime = NumberRange.new(1) | |
4318 | bld.Size = NumberSequence.new({ | |
4319 | NumberSequenceKeypoint.new(0, 2, 0), | |
4320 | NumberSequenceKeypoint.new(1, 0, 0) | |
4321 | }) | |
4322 | bld.Acceleration = vt(0, -25, 0) | |
4323 | bld.Transparency = NumberSequence.new({ | |
4324 | NumberSequenceKeypoint.new(0, 0, 0), | |
4325 | NumberSequenceKeypoint.new(1, 0, 0) | |
4326 | }) | |
4327 | bld.Speed = NumberRange.new(10, 50) | |
4328 | bld.EmissionDirection = "Front" | |
4329 | bld.VelocitySpread = 25 | |
4330 | bld.Rotation = NumberRange.new(-500, 500) | |
4331 | bld.RotSpeed = NumberRange.new(-500, 500) | |
4332 | end)) | |
4333 | game:GetService("Debris"):AddItem(bld, 3) | |
4334 | dmg(targetted) | |
4335 | CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1) | |
4336 | for i = 0, 1, 0.1 do | |
4337 | swait() | |
4338 | 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)), 0.8) | |
4339 | 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)), 0.8) | |
4340 | 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)), 0.8) | |
4341 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(80)), 0.8) | |
4342 | 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)), 0.8) | |
4343 | 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)), 0.8) | |
4344 | end | |
4345 | CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1) | |
4346 | for i = 0, 9 do | |
4347 | 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 black"), 0) | |
4348 | end | |
4349 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Deep blue")) | |
4350 | root.CFrame = originalpos | |
4351 | for i = 0, 9 do | |
4352 | 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 black"), 0) | |
4353 | end | |
4354 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Deep blue")) | |
4355 | bld.Enabled = false | |
4356 | attack = false | |
4357 | hum.WalkSpeed = 20 | |
4358 | end | |
4359 | end | |
4360 | ||
4361 | function Suicidal() | |
4362 | hum.WalkSpeed = 0 | |
4363 | attack = true | |
4364 | local keptcolor = MAINRUINCOLOR | |
4365 | local locat = Instance.new("Part", char) | |
4366 | locat.CanCollide = false | |
4367 | locat.FormFactor = 3 | |
4368 | locat.Name = "Ring" | |
4369 | locat.Material = "Neon" | |
4370 | locat.Size = Vector3.new(1, 1, 1) | |
4371 | locat.Transparency = 1 | |
4372 | locat.TopSurface = 0 | |
4373 | locat.BottomSurface = 0 | |
4374 | locat.Anchored = true | |
4375 | locat.CFrame = root.CFrame*CFrame.new(0,-3,0) | |
4376 | local poste = 0 | |
4377 | local rotation = 0 | |
4378 | local upperpos = 0 | |
4379 | local rate = 0 | |
4380 | local x = locat | |
4381 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5, 1) | |
4382 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5, 1) | |
4383 | sphere2(8,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor) | |
4384 | CameraEnshaking(2,5) | |
4385 | for i = 0, 49 do | |
4386 | swait() | |
4387 | rotation = rotation + 5 | |
4388 | poste = poste + 1 | |
4389 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
4390 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
4391 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
4392 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1) | |
4393 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
4394 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
4395 | end | |
4396 | for i = 0, 49 do | |
4397 | swait() | |
4398 | rotation = rotation + 5 | |
4399 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
4400 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
4401 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
4402 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1) | |
4403 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
4404 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
4405 | end | |
4406 | ModeOfGlitch = 999 | |
4407 | storehumanoidWS = 300 | |
4408 | hum.WalkSpeed = 16 | |
4409 | rainbowmode = false | |
4410 | chaosmode = false | |
4411 | RecolorTextAndRename("ERrRoR",BrickColor.new("Black").Color,BrickColor.new("Really red").Color,"Antique") | |
4412 | newThemeCust("rbxassetid://1166635630",0,0.9,1.5) | |
4413 | MAINRUINCOLOR = BrickColor.new("Really red") | |
4414 | keptcolor = MAINRUINCOLOR | |
4415 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4416 | CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1) | |
4417 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.75) | |
4418 | sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("Navy blue")) | |
4419 | attack = false | |
4420 | hum.WalkSpeed = storehumanoidWS | |
4421 | for i = 0, 49 do | |
4422 | local rsiz = math.random(150,450) | |
4423 | end | |
4424 | coroutine.resume(coroutine.create(function() | |
4425 | local eff = Instance.new("ParticleEmitter",x) | |
4426 | eff.Texture = "rbxassetid://284205403" | |
4427 | eff.LightEmission = 0.95 | |
4428 | eff.Color = ColorSequence.new(BrickColor.new("Navy blue").Color) | |
4429 | eff.Rate = 50000 | |
4430 | eff.Lifetime = NumberRange.new(2.5) | |
4431 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,75,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
4432 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4433 | eff.Speed = NumberRange.new(250,1000) | |
4434 | eff.Drag = 5 | |
4435 | eff.Rotation = NumberRange.new(-500,500) | |
4436 | eff.VelocitySpread = 9000 | |
4437 | eff.RotSpeed = NumberRange.new(-500,500) | |
4438 | wait(0.5) | |
4439 | eff.Enabled = false | |
4440 | end)) | |
4441 | --[[for i, v in pairs(FindNearestHead(Torso.CFrame.p, 2000000000)) do | |
4442 | if v:FindFirstChild('Head') then | |
4443 | dmg(v) | |
4444 | end | |
4445 | end]]-- | |
4446 | CameraEnshaking(8,10) | |
4447 | for i = 0, 99 do | |
4448 | swait() | |
4449 | rotation = rotation + 5 | |
4450 | poste = poste + 1 | |
4451 | upperpos = upperpos + rate | |
4452 | rate = rate + 0.1 | |
4453 | end | |
4454 | x:Destroy() | |
4455 | end | |
4456 | ||
4457 | function BITCHPLEASE() | |
4458 | hum.WalkSpeed = 0 | |
4459 | attack = true | |
4460 | local keptcolor = MAINRUINCOLOR | |
4461 | local locat = Instance.new("Part", char) | |
4462 | locat.CanCollide = false | |
4463 | locat.FormFactor = 3 | |
4464 | locat.Name = "Ring" | |
4465 | locat.Material = "Neon" | |
4466 | locat.Size = Vector3.new(1, 1, 1) | |
4467 | locat.Transparency = 1 | |
4468 | locat.TopSurface = 0 | |
4469 | locat.BottomSurface = 0 | |
4470 | locat.Anchored = true | |
4471 | locat.CFrame = root.CFrame*CFrame.new(0,-3,0) | |
4472 | local poste = 0 | |
4473 | local rotation = 0 | |
4474 | local upperpos = 0 | |
4475 | local rate = 0 | |
4476 | local x = locat | |
4477 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5, 1) | |
4478 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5, 1) | |
4479 | sphere2(8,"Add",tors.CFrame,vt(1,1,1),5,5,5,keptcolor) | |
4480 | CameraEnshaking(2,5) | |
4481 | for i = 0, 49 do | |
4482 | swait() | |
4483 | rotation = rotation + 5 | |
4484 | poste = poste + 1 | |
4485 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
4486 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
4487 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
4488 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1) | |
4489 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
4490 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
4491 | end | |
4492 | for i = 0, 49 do | |
4493 | swait() | |
4494 | rotation = rotation + 5 | |
4495 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
4496 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
4497 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
4498 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1) | |
4499 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
4500 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
4501 | end | |
4502 | ModeOfGlitch = 6969 | |
4503 | storehumanoidWS = 300 | |
4504 | hum.WalkSpeed = 300 | |
4505 | rainbowmode = false | |
4506 | chaosmode = false | |
4507 | RecolorTextAndRename("MEME-WORTHY DERPZ",BrickColor.new("Pink").Color,BrickColor.new("Really blue").Color,"Antique") | |
4508 | newThemeCust("rbxassetid://2039029608",0,0,1.5) | |
4509 | MAINRUINCOLOR = BrickColor.new("Really blue") | |
4510 | keptcolor = MAINRUINCOLOR | |
4511 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4512 | CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1) | |
4513 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.75) | |
4514 | sphere2(1,"Add",x.CFrame*CFrame.new(0,0,0),vt(5,50000,5),1.5,1,1.5,BrickColor.new("Navy blue")) | |
4515 | attack = false | |
4516 | hum.WalkSpeed = storehumanoidWS | |
4517 | for i = 0, 49 do | |
4518 | local rsiz = math.random(150,450) | |
4519 | end | |
4520 | coroutine.resume(coroutine.create(function() | |
4521 | local eff = Instance.new("ParticleEmitter",x) | |
4522 | eff.Texture = "rbxassetid://284205403" | |
4523 | eff.LightEmission = 0.95 | |
4524 | eff.Color = ColorSequence.new(BrickColor.new("Navy blue").Color) | |
4525 | eff.Rate = 50000 | |
4526 | eff.Lifetime = NumberRange.new(2.5) | |
4527 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,75,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
4528 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4529 | eff.Speed = NumberRange.new(250,1000) | |
4530 | eff.Drag = 5 | |
4531 | eff.Rotation = NumberRange.new(-500,500) | |
4532 | eff.VelocitySpread = 9000 | |
4533 | eff.RotSpeed = NumberRange.new(-500,500) | |
4534 | wait(0.5) | |
4535 | eff.Enabled = false | |
4536 | end)) | |
4537 | --[[for i, v in pairs(FindNearestHead(Torso.CFrame.p, 2000000000)) do | |
4538 | if v:FindFirstChild('Head') then | |
4539 | dmg(v) | |
4540 | end | |
4541 | end]]-- | |
4542 | CameraEnshaking(8,10) | |
4543 | for i = 0, 99 do | |
4544 | swait() | |
4545 | rotation = rotation + 5 | |
4546 | poste = poste + 1 | |
4547 | upperpos = upperpos + rate | |
4548 | rate = rate + 0.1 | |
4549 | end | |
4550 | x:Destroy() | |
4551 | end | |
4552 | ||
4553 | function iNSaNITY() | |
4554 | ModeOfGlitch = 666 | |
4555 | storehumanoidWS = 9 | |
4556 | hum.WalkSpeed = 9 | |
4557 | rainbowmode = false | |
4558 | PartyMode = false | |
4559 | chaosmode = true | |
4560 | RecolorTextAndRename("INSANE",BrickColor.Random().Color,BrickColor.Random().Color,"Antique") | |
4561 | newThemeCust("rbxassetid://1275251078",2.9,0.9,1.5) | |
4562 | MAINRUINCOLOR = BrickColor.new("Really black") | |
4563 | RecolorThing(BrickColor.new("Really black"),BrickColor.new("Medium stone grey"),BrickColor.new("Institutional white"),BrickColor.new("Really black"),BrickColor.new("Medium stone grey"),1,MAINRUINCOLOR,1,BrickColor.new("Institutional white")) | |
4564 | end | |
4565 | ||
4566 | coroutine.resume(coroutine.create(function() | |
4567 | while true do | |
4568 | swait() | |
4569 | if chaosmode == true then | |
4570 | lolwut = {"HA HA HA HA","DIE","NO SPARE","FILE SPARE.EXE NOT FOUND",".....","......","......",".........",} | |
4571 | Sanicz = lolwut[math.random(1,#lolwut)] | |
4572 | RecolorTextAndRename(Sanicz,BrickColor.Random().Color,BrickColor.Random().Color,"Antique") | |
4573 | MAINRUINCOLOR = BrickColor.Random() | |
4574 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4575 | end | |
4576 | end | |
4577 | end)) | |
4578 | ||
4579 | coroutine.resume(coroutine.create(function() | |
4580 | while true do | |
4581 | if math.random(1,10) == 1 and PartyMode == true then | |
4582 | PartyMode = false | |
4583 | elseif math.random(1,10) == 10 and PartyMode == true then | |
4584 | PartyMode = true | |
4585 | end | |
4586 | ||
4587 | ||
4588 | swait() | |
4589 | if PartyMode == true then | |
4590 | RecolorThing(BrickColor.new("Dark stone grey"),BrickColor.new("Dark stone grey"),BrickColor.new("Medium stone grey"),BrickColor.new("Dark stone grey"),BrickColor.new("Medium stone grey"),1,MAINRUINCOLOR,1,BrickColor.new("Dark stone grey")) | |
4591 | wait() | |
4592 | RecolorThing(BrickColor.new("Institutional white"),BrickColor.new("Institutional white"),BrickColor.new("Really black"),BrickColor.new("Institutional white"),BrickColor.new("Medium stone grey"),1,MAINRUINCOLOR,1,BrickColor.new("Really black")) | |
4593 | wait() | |
4594 | RecolorThing(BrickColor.new("Dark stone grey"),BrickColor.new("Dark stone grey"),BrickColor.new("Medium stone grey"),BrickColor.new("Dark stone grey"),BrickColor.new("Medium stone grey"),1,MAINRUINCOLOR,1,BrickColor.new("Dark stone grey")) | |
4595 | wait() | |
4596 | RecolorThing(BrickColor.new("Really black"),BrickColor.new("Really black"),BrickColor.new("Institutional white"),BrickColor.new("Really black"),BrickColor.new("Medium stone grey"),1,MAINRUINCOLOR,1,BrickColor.new("Institutional white")) | |
4597 | wait() | |
4598 | end | |
4599 | end | |
4600 | end)) | |
4601 | ||
4602 | function loveydovey() | |
4603 | attack = true | |
4604 | local keptcolor = MAINRUINCOLOR | |
4605 | hum.WalkSpeed = 0 | |
4606 | for i = 0, 5, 0.1 do | |
4607 | swait() | |
4608 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-6)),.1) | |
4609 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0)),.1) | |
4610 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
4611 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(10),math.rad(0)),.1) | |
4612 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.45)*angles(math.rad(22),math.rad(0),math.rad(-37)),.1) | |
4613 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.45)*angles(math.rad(23),math.rad(0),math.rad(38)),.1) | |
4614 | end | |
4615 | CameraEnshaking(4,9) | |
4616 | CFuncs["Sound"].Create("rbxassetid://763717897", char, 0.75, 1.25) | |
4617 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 0.75, 1) | |
4618 | coroutine.resume(coroutine.create(function() | |
4619 | local eff = Instance.new("ParticleEmitter",root) | |
4620 | eff.Texture = "rbxassetid://363275192" | |
4621 | eff.LightEmission = 0.95 | |
4622 | eff.Color = ColorSequence.new(keptcolor.Color) | |
4623 | eff.Rate = 10000 | |
4624 | eff.Lifetime = NumberRange.new(1) | |
4625 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.8,50,0),NumberSequenceKeypoint.new(1,0,0)}) | |
4626 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4627 | eff.Speed = NumberRange.new(50,200) | |
4628 | eff.Drag = 5 | |
4629 | eff.Rotation = NumberRange.new(-500,500) | |
4630 | eff.VelocitySpread = 9000 | |
4631 | eff.RotSpeed = NumberRange.new(-50,50) | |
4632 | wait(0.5) | |
4633 | eff.Enabled = false | |
4634 | wait(5) | |
4635 | eff:Destroy() | |
4636 | end)) | |
4637 | for i = 0, 49 do | |
4638 | local rsiz = math.random(70,90) | |
4639 | end | |
4640 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
4641 | CFuncs["Sound"].Create("rbxassetid://543623779", root, 1.5,1) | |
4642 | newTheme("rbxassetid://1067833276",0,1,2) | |
4643 | ModeOfGlitch = 9600000000 | |
4644 | MAINRUINCOLOR = BrickColor.new("Hot pink") | |
4645 | for i = 0, 1, 0.2 do | |
4646 | swait() | |
4647 | RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8) | |
4648 | LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8) | |
4649 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8) | |
4650 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(20),math.rad(0)),.8) | |
4651 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(12),math.rad(0),math.rad(57)),.8) | |
4652 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(13),math.rad(0),math.rad(-58)),.8) | |
4653 | end | |
4654 | for i = 0, 9, 0.1 do | |
4655 | swait() | |
4656 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-6)),.1) | |
4657 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0)),.1) | |
4658 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
4659 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(10),math.rad(0)),.1) | |
4660 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.45)*angles(math.rad(22),math.rad(0),math.rad(-37)),.1) | |
4661 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.45)*angles(math.rad(23),math.rad(0),math.rad(38)),.1) | |
4662 | end | |
4663 | CameraEnshaking(2,11) | |
4664 | CFuncs["Sound"].Create("rbxassetid://763717897", char, 1, 1.125) | |
4665 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 0.75) | |
4666 | for i = 0, 49 do | |
4667 | local rsiz = math.random(70,90) | |
4668 | end | |
4669 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
4670 | for i = 0, 1, 0.2 do | |
4671 | swait() | |
4672 | RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8) | |
4673 | LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8) | |
4674 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8) | |
4675 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(20),math.rad(0)),.8) | |
4676 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(12),math.rad(0),math.rad(57)),.8) | |
4677 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(13),math.rad(0),math.rad(-58)),.8) | |
4678 | end | |
4679 | for i = 0, 1, 0.1 do | |
4680 | swait() | |
4681 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-6)),.1) | |
4682 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(0)),.1) | |
4683 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.05)*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
4684 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(10),math.rad(0)),.1) | |
4685 | RW.C0=clerp(RW.C0,cf(1,0.5,-0.45)*angles(math.rad(22),math.rad(0),math.rad(-37)),.1) | |
4686 | LW.C0=clerp(LW.C0,cf(-1,0.5,-0.45)*angles(math.rad(23),math.rad(0),math.rad(38)),.1) | |
4687 | end | |
4688 | CameraEnshaking(9,14) | |
4689 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
4690 | CFuncs["Sound"].Create("rbxassetid://763717897", char, 2.5, 1) | |
4691 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5) | |
4692 | for i = 0, 99 do | |
4693 | local rsiz = math.random(150,450) | |
4694 | end | |
4695 | coroutine.resume(coroutine.create(function() | |
4696 | local eff = Instance.new("ParticleEmitter",root) | |
4697 | eff.Texture = "rbxassetid://749327003" | |
4698 | eff.LightEmission = 1 | |
4699 | eff.Color = ColorSequence.new(BrickColor.new("Pink").Color) | |
4700 | eff.Rate = 50000 | |
4701 | eff.Lifetime = NumberRange.new(5) | |
4702 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.5,60,0),NumberSequenceKeypoint.new(1,0.1,0)}) | |
4703 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4704 | eff.Speed = NumberRange.new(250,1000) | |
4705 | eff.Drag = 5 | |
4706 | eff.Rotation = NumberRange.new(-50,50) | |
4707 | eff.VelocitySpread = 9000 | |
4708 | eff.RotSpeed = NumberRange.new(-50,50) | |
4709 | wait(0.5) | |
4710 | eff.Enabled = false | |
4711 | wait(5) | |
4712 | eff:Destroy() | |
4713 | end)) | |
4714 | storehumanoidWS = 20 | |
4715 | rainbowmode = false | |
4716 | chaosmode = false | |
4717 | RecolorTextAndRename("Love Guest",BrickColor.new("Pink").Color,BrickColor.new("Hot pink").Color,"Cartoon") | |
4718 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4719 | for i = 0, 10, 0.1 do | |
4720 | swait() | |
4721 | RH.C0=clerp(RH.C0,cf(1,-1.05,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7),math.rad(0),math.rad(-16)),.8) | |
4722 | LH.C0=clerp(LH.C0,cf(-1,-1.05,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3),math.rad(0),math.rad(10)),.8) | |
4723 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.1,0.05)*angles(math.rad(-10),math.rad(0),math.rad(0)),.8) | |
4724 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15),math.rad(0),math.rad(0)),.8) | |
4725 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(97)),.8) | |
4726 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-27),math.rad(0),math.rad(-98)),.8) | |
4727 | end | |
4728 | hum.WalkSpeed = 20 | |
4729 | attack = false | |
4730 | end | |
4731 | ------------------------------------- | |
4732 | ||
4733 | Humanoid.Animator.Parent = nil | |
4734 | ||
4735 | ------------------------------------- | |
4736 | ||
4737 | local attacktype = 1 | |
4738 | mouse.Button1Down:connect(function() | |
4739 | if attack == false and attacktype == 1 then | |
4740 | attacktype = 2 | |
4741 | attackone() | |
4742 | elseif attack == false and attacktype == 2 then | |
4743 | attacktype = 3 | |
4744 | attacktwo() | |
4745 | elseif attack == false and attacktype == 3 then | |
4746 | attacktype = 1 | |
4747 | attackthree() | |
4748 | elseif attack == false and attacktype == 4 then | |
4749 | attacktype = 1 | |
4750 | --attackfour() | |
4751 | end | |
4752 | end) | |
4753 | ||
4754 | local OVMID = 1702473314 | |
4755 | local OVMPIT = 1 | |
4756 | local OVMVOL = 1 | |
4757 | mouse.KeyDown:connect(function(k) | |
4758 | if k == "q" and attack == false and ModeOfGlitch ~= 1 then | |
4759 | resetmode() | |
4760 | end | |
4761 | if k == "e" and attack == false and ModeOfGlitch ~= 2 then | |
4762 | ModeOfGlitch = 2 | |
4763 | storehumanoidWS = 16 | |
4764 | hum.WalkSpeed = 16 | |
4765 | rainbowmode = false | |
4766 | chaosmode = false | |
4767 | - | RecolorTextAndRename("Mysterious Guest",Color3.new(0,0,0),BrickColor.new("Really red").Color,"Code") |
4767 | + | RecolorTextAndRename("UNKNOWN",Color3.new(0,0,0),BrickColor.new("Really red").Color,"Code") |
4768 | newTheme("rbxassetid://660801673",0,1.1,1.25) | |
4769 | MAINRUINCOLOR = BrickColor.new("Really black") | |
4770 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Really red"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4771 | end | |
4772 | if k == "m" and attack == false and ModeOfGlitch == 7 then | |
4773 | ModeOfGlitch = 7 | |
4774 | storehumanoidWS = 999 | |
4775 | hum.WalkSpeed = 999 | |
4776 | rainbowmode = false | |
4777 | chaosmode = false | |
4778 | - | RecolorTextAndRename("INSANELY FAST GUEST",Color3.new(0,0,0),BrickColor.new("Toothpaste").Color,"Cartoon") |
4778 | + | RecolorTextAndRename("SPEED OF LIGHT",Color3.new(0,0,0),BrickColor.new("Toothpaste").Color,"Cartoon") |
4779 | newTheme("rbxassetid://1312492868",0,2,1.25) | |
4780 | MAINRUINCOLOR = BrickColor.new("Really blue") | |
4781 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Navy blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4782 | end | |
4783 | if k == "m" and attack == false and ModeOfGlitch == 1 then | |
4784 | ModeOfGlitch = 6699 | |
4785 | storehumanoidWS = 16 | |
4786 | hum.WalkSpeed = 16 | |
4787 | rainbowmode = false | |
4788 | chaosmode = false | |
4789 | - | RecolorTextAndRename("Suggestable Behavior Guest...",Color3.new(0,0,0),BrickColor.new("Pink").Color,"Cartoon") |
4789 | + | RecolorTextAndRename("ANIME",Color3.new(0,0,0),BrickColor.new("Pink").Color,"Cartoon") |
4790 | newTheme("rbxassetid://1131624146",0,1,1.25) | |
4791 | MAINRUINCOLOR = BrickColor.new("Really blue") | |
4792 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4793 | end | |
4794 | if k == "r" and attack == false and ModeOfGlitch ~= 3 then | |
4795 | ModeOfGlitch = 3 | |
4796 | storehumanoidWS = 16 | |
4797 | hum.WalkSpeed = 16 | |
4798 | rainbowmode = false | |
4799 | chaosmode = false | |
4800 | RecolorTextAndRename("HACKER",Color3.new(0,0,0),Color3.new(0,0.5,0),"Code") | |
4801 | newTheme("rbxassetid://919231299",0,1.01,1.25) | |
4802 | MAINRUINCOLOR = BrickColor.new("Black") | |
4803 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Dark green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4804 | end | |
4805 | if k == "t" and attack == false and ModeOfGlitch ~= 4 then | |
4806 | ModeOfGlitch = 4 | |
4807 | storehumanoidWS = 16 | |
4808 | hum.WalkSpeed = 16 | |
4809 | rainbowmode = false | |
4810 | chaosmode = false | |
4811 | RecolorTextAndRename("V!IRUS",Color3.new(0,0,0.25),BrickColor.new("Really red").Color,"Code") | |
4812 | newTheme("rbxassetid://1430790805",1,1,10) | |
4813 | MAINRUINCOLOR = BrickColor.new("Navy blue") | |
4814 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4815 | end | |
4816 | if k == "y" and attack == false and ModeOfGlitch ~= 5 then | |
4817 | ModeOfGlitch = 5 | |
4818 | storehumanoidWS = 16 | |
4819 | hum.WalkSpeed = 16 | |
4820 | rainbowmode = false | |
4821 | chaosmode = false | |
4822 | RecolorTextAndRename("Solar Guest.",Color3.new(1,0.5,0),Color3.new(1,1,0),"Fantasy") | |
4823 | newTheme("rbxassetid://1146120545",0,1.2,1.25) | |
4824 | MAINRUINCOLOR = BrickColor.new("Deep orange") | |
4825 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4826 | end | |
4827 | if k == "m" and attack == false and ModeOfGlitch == 5 then | |
4828 | ModeOfGlitch = 7 | |
4829 | storehumanoidWS = 16 | |
4830 | hum.WalkSpeed = 16 | |
4831 | rainbowmode = false | |
4832 | chaosmode = false | |
4833 | RecolorTextAndRename("STARRY",Color3.new(0,0,0.3),Color3.new(0,0,0.2),"Code") | |
4834 | newTheme("rbxassetid://1146120545",0,1.2,1.25) | |
4835 | MAINRUINCOLOR = BrickColor.new("Toothpaste") | |
4836 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Really blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4837 | end | |
4838 | if k == "m" and attack == false and ModeOfGlitch == 9 then | |
4839 | ModeOfGlitch = 25 | |
4840 | storehumanoidWS = 16 | |
4841 | hum.WalkSpeed = 16 | |
4842 | rainbowmode = false | |
4843 | chaosmode = false | |
4844 | RecolorTextAndRename("?????",Color3.new(1,0,1),Color3.new(0,0,0.3),"Fantasy") | |
4845 | newTheme("rbxassetid://1146120545",0,1.2,1.25) | |
4846 | MAINRUINCOLOR = BrickColor.new("Really blue") | |
4847 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4848 | end | |
4849 | if k == "u" and attack == false and ModeOfGlitch ~= 6 then | |
4850 | ModeOfGlitch = 6 | |
4851 | storehumanoidWS = 100 | |
4852 | hum.WalkSpeed = 100 | |
4853 | rainbowmode = false | |
4854 | chaosmode = false | |
4855 | RecolorTextAndRename("Justice ",Color3.new(0,0,0.5),Color3.new(0.75,1,1),"Fantasy") | |
4856 | newTheme("rbxassetid://186267011",0,1.1,1) | |
4857 | MAINRUINCOLOR = BrickColor.new("Navy blue") | |
4858 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4859 | end | |
4860 | if k == "p" and attack == false and ModeOfGlitch ~= 7 then | |
4861 | ModeOfGlitch = 7 | |
4862 | storehumanoidWS = 175 | |
4863 | hum.WalkSpeed = 175 | |
4864 | rainbowmode = false | |
4865 | chaosmode = false | |
4866 | - | RecolorTextAndRename("Speedy Guest",BrickColor.new("Cyan").Color,BrickColor.new("Toothpaste").Color,"Code") |
4866 | + | RecolorTextAndRename("Speedy",BrickColor.new("Cyan").Color,BrickColor.new("Toothpaste").Color,"Code") |
4867 | newTheme("rbxassetid://1522980500",0,1.01,1.25) | |
4868 | MAINRUINCOLOR = BrickColor.new("Cyan") | |
4869 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4870 | end | |
4871 | if k == "g" and attack == false and ModeOfGlitch ~= 8 then | |
4872 | ModeOfGlitch = 8 | |
4873 | storehumanoidWS = 100 | |
4874 | hum.WalkSpeed = 100 | |
4875 | rainbowmode = false | |
4876 | chaosmode = false | |
4877 | RecolorTextAndRename("ENRAGED GUEST",BrickColor.new("Really red").Color,BrickColor.new("Deep blue").Color,"Antique") | |
4878 | newTheme("rbxassetid://183142252",0,1.2,1.65) | |
4879 | MAINRUINCOLOR = BrickColor.new("Really red") | |
4880 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4881 | end | |
4882 | if k == "h" and attack == false and ModeOfGlitch ~= 9 then | |
4883 | ModeOfGlitch = 9 | |
4884 | storehumanoidWS = 135 | |
4885 | hum.WalkSpeed = 135 | |
4886 | rainbowmode = false | |
4887 | chaosmode = false | |
4888 | RecolorTextAndRename("VISUALISER.",BrickColor.new("Navy blue").Color,BrickColor.new("Toothpaste").Color,"Arcade") | |
4889 | newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
4890 | MAINRUINCOLOR = BrickColor.new("Navy blue") | |
4891 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4892 | end | |
4893 | if k == "j" and attack == false and ModeOfGlitch ~= 10 then | |
4894 | ModeOfGlitch = 10 | |
4895 | storehumanoidWS = 12 | |
4896 | hum.WalkSpeed = 12 | |
4897 | rainbowmode = false | |
4898 | chaosmode = false | |
4899 | RecolorTextAndRename("NORMAL.",BrickColor.new("Navy blue").Color,BrickColor.new("Deep blue").Color,"Garamond") | |
4900 | newTheme("rbxassetid://328340676",0,1.01,1.65) | |
4901 | MAINRUINCOLOR = BrickColor.new("Black") | |
4902 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4903 | end | |
4904 | if k == "m" and attack == false and ModeOfGlitch == 10 then | |
4905 | ModeOfGlitch = 30 | |
4906 | storehumanoidWS = 12 | |
4907 | hum.WalkSpeed = 12 | |
4908 | rainbowmode = false | |
4909 | chaosmode = false | |
4910 | RecolorTextAndRename("FrozeN.",BrickColor.new("Toothpaste").Color,BrickColor.new("Light pastel blue").Color,"Garamond") | |
4911 | newTheme("rbxassetid://561833161",0,1.1,1.65) | |
4912 | MAINRUINCOLOR = BrickColor.new("Light pastel blue") | |
4913 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4914 | end | |
4915 | if k == "m" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 2000000000 then | |
4916 | ModeOfGlitch = 2000000000 | |
4917 | storehumanoidWS = 200 | |
4918 | hum.WalkSpeed = 200 | |
4919 | rainbowmode = false | |
4920 | chaosmode = false | |
4921 | RecolorTextAndRename("FINAL KILL",BrickColor.new("Navy blue").Color,BrickColor.new("Really red").Color,"Antique") | |
4922 | newThemeCust("rbxassetid://496055561",0.8, 0.8, 10) | |
4923 | MAINRUINCOLOR = BrickColor.new("Really red") | |
4924 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Really blue"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4925 | end | |
4926 | ||
4927 | if k == "b" and attack == false and ModeOfGlitch == 2000000000 then | |
4928 | ModeOfGlitch = 1346 | |
4929 | storehumanoidWS = 12 | |
4930 | hum.WalkSpeed = 12 | |
4931 | rainbowmode = false | |
4932 | chaosmode = false | |
4933 | RecolorTextAndRename("REVENGE",BrickColor.new("Really red").Color,BrickColor.new("Maroon").Color,"Cartoon") | |
4934 | newTheme("rbxassetid://1625328647",0,1,1.65) | |
4935 | MAINRUINCOLOR = BrickColor.new("Really red") | |
4936 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Maroon"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR) | |
4937 | end | |
4938 | ||
4939 | if k == "f" and attack == false and ModeOfGlitch ~= 9600000000 then | |
4940 | loveydovey() | |
4941 | end | |
4942 | if k == "m" and attack == false and ModeOfGlitch == 6 and ModeOfGlitch ~= 6000000000 then | |
4943 | UnknownA() | |
4944 | end | |
4945 | if k == "b" and ModeOfGlitch == 6000000000 and attack == false then | |
4946 | harmonytaunty() | |
4947 | elseif k == "b" and ModeOfGlitch == 9 and attack == false then | |
4948 | vistaunty() | |
4949 | elseif k == "b" and ModeOfGlitch == 9600000000 and attack == false then | |
4950 | shytaunty() | |
4951 | end | |
4952 | if k == "z" and ModeOfGlitch == 1 and attack == false then | |
4953 | Beams() | |
4954 | elseif k == "z" and ModeOfGlitch == 2 and attack == false then | |
4955 | smiter() | |
4956 | elseif k == "z" and ModeOfGlitch == 2000000000 and attack == false then | |
4957 | supsmiter() | |
4958 | elseif k == "z" and ModeOfGlitch == 6000000000 and ModeOfGlitch == 3 and attack == false then | |
4959 | BinaryE() | |
4960 | elseif k == "x" and ModeOfGlitch == 6000000000 and attack == false then | |
4961 | AZUREFINALE() | |
4962 | elseif k == "c" and ModeOfGlitch == 6000000000 and attack == false then | |
4963 | AZUREFINALE() | |
4964 | elseif k == "z" and ModeOfGlitch == 4 and attack == false then | |
4965 | BinaryBLINK() | |
4966 | elseif k == "x" and ModeOfGlitch == 4 and attack == false then | |
4967 | ExtinctiveHeartbreak() | |
4968 | elseif k == "z" and ModeOfGlitch == 5 and attack == false then | |
4969 | Fireball() | |
4970 | elseif k == "z" and ModeOfGlitch == 6 and attack == false then | |
4971 | GalacticalBeams() | |
4972 | elseif k == "z" and ModeOfGlitch == 7 and attack == false then | |
4973 | WarpedDash() | |
4974 | elseif k == "z" and ModeOfGlitch == 8 and attack == false then | |
4975 | BeamOfDeath() | |
4976 | elseif k == "z" and ModeOfGlitch == 9 and attack == false then | |
4977 | end | |
4978 | if k == "x" and ModeOfGlitch == 3 and attack == false then | |
4979 | BinaryBLINK() | |
4980 | end | |
4981 | if k == "v" and ModeOfGlitch == 2000000000 and attack == false then | |
4982 | AZUREFINALE() | |
4983 | end | |
4984 | if k == "k" and attack == false and ModeOfGlitch ~= 666 then | |
4985 | iNSaNITY() | |
4986 | end | |
4987 | if k == "l" and ModeOfGlitch ~= 2 and ModeOfGlitch ~= 999 and attack == false then | |
4988 | Suicidal() | |
4989 | end | |
4990 | if k == "l" and ModeOfGlitch == 2 and ModeOfGlitch ~= 6969 and attack == false then | |
4991 | BITCHPLEASE() | |
4992 | end | |
4993 | if k == "z" and ModeOfGlitch == 4 and ModeOfGlitch == 1 and attack == false then | |
4994 | ExtinctiveHeartbreak() | |
4995 | end | |
4996 | if k == "z" and ModeOfGlitch == 666 and attack == false then | |
4997 | ChaosGroundStrike() | |
4998 | end | |
4999 | if k == "z" and ModeOfGlitch == 999 and attack == false then | |
5000 | ChaosGroundStrike() | |
5001 | end | |
5002 | if k == "o" and mutedtog == false then | |
5003 | mutedtog = true | |
5004 | kan.Volume = 0.1 | |
5005 | elseif k == "o" and mutedtog == true then | |
5006 | mutedtog = false | |
5007 | kan.Volume = 1.25 | |
5008 | end | |
5009 | if k == "n" and toggleTag == false then | |
5010 | toggleTag = true | |
5011 | modet.TextTransparency = 0 | |
5012 | modet.TextStrokeTransparency = 0 | |
5013 | elseif k == "n" and toggleTag == true then | |
5014 | toggleTag = false | |
5015 | modet.TextTransparency = 0.8 | |
5016 | modet.TextStrokeTransparency = 0.8 | |
5017 | end | |
5018 | if k == "z" and attack == false and ModeOfGlitch == 1 then | |
5019 | end | |
5020 | end) | |
5021 | ||
5022 | plr.Chatted:connect(function(message) | |
5023 | if ModeOfGlitch == 9 then | |
5024 | if message:sub(1,5) == "play/" then | |
5025 | OVMID = message:sub(6) | |
5026 | newThemeCust("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
5027 | elseif message:sub(1,6) == "pitch/" then | |
5028 | OVMPIT = message:sub(7) | |
5029 | newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
5030 | elseif message:sub(1,4) == "vol/" then | |
5031 | OVMVOL = message:sub(5) | |
5032 | newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL) | |
5033 | elseif message:sub(1,7) == "skipto/" then | |
5034 | chatfunc("Skipped to "..message:sub(8).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
5035 | newThemeCust("rbxassetid://"..OVMID,message:sub(8),OVMPIT,OVMVOL) | |
5036 | elseif message:sub(1,9) == "telltime/" then | |
5037 | chatfunc("Current time pos: "..math.floor(kan.TimePosition).." out of "..math.floor(kan.TimeLength).." seconds.",MAINRUINCOLOR.Color,"Inverted","Arcade",1) | |
5038 | end | |
5039 | end | |
5040 | end) | |
5041 | local rotperm = 0 | |
5042 | coroutine.resume(coroutine.create(function() | |
5043 | while true do | |
5044 | swait() | |
5045 | if ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 then | |
5046 | swait(0.5) | |
5047 | sphereMK(5,math.random(8,14)/45,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.75,0.75,20,-0.0075,MAINRUINCOLOR,0) | |
5048 | elseif ModeOfGlitch == 5 then | |
5049 | swait(0.5) | |
5050 | local rsiz = math.random(1,3) | |
5051 | sphereMK(math.random(3,6),math.random(-25,25)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-20,20)/50,math.random(-20,20)/50,math.random(-20,20)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/10,rsiz/10,rsiz/10,0,MAINRUINCOLOR,0) | |
5052 | sphereMK(math.random(6,9),math.random(-10,10)/750,"Add",sorb2.CFrame*CFrame.new(math.random(-5,5)/50,math.random(-5,5)/50,math.random(-5,5)/50)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),rsiz/3,rsiz/3,rsiz/3,0,MAINRUINCOLOR,0) | |
5053 | elseif ModeOfGlitch == 9600000000 then | |
5054 | swait(0.25) | |
5055 | sphereMK(5,math.random(-14,-8)/45,"Add",root.CFrame*CFrame.new(math.random(-25,25),10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.25,0.25,7.5,-0.0025,MAINRUINCOLOR,0) | |
5056 | elseif ModeOfGlitch == 6000000000 then | |
5057 | coroutine.resume(coroutine.create(function() | |
5058 | swait(5) | |
5059 | sphereMK(10,math.random(15,45)/45,"Add",root.CFrame*CFrame.new(math.random(-50,50),-40,math.random(-50,50))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,60,-0.01,MAINRUINCOLOR,0) | |
5060 | end)) | |
5061 | swait(1) | |
5062 | rotperm = rotperm + 12 | |
5063 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,MAINRUINCOLOR) | |
5064 | sphere2(8,"Add",root.CFrame*CFrame.Angles(0,math.rad(180 + rotperm),0)*CFrame.new(0,0,10),vt(3,3,3),-0.03,-0.03,-0.03,BrickColor.new("Cool yellow")) | |
5065 | elseif ModeOfGlitch == 9 and kan.PlaybackLoudness >= 50 then | |
5066 | swait(25 - kan.PlaybackLoudness/80) | |
5067 | sphere2(4,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.25,0,0.25,MAINRUINCOLOR) | |
5068 | if kan.PlaybackLoudness >= 300 then | |
5069 | CameraEnshaking(1,3) | |
5070 | for i = 0, 4 do | |
5071 | sphereMK(5,math.random(15,35)/150,"Add",root.CFrame*CFrame.new(math.random(-15,15),-10,math.random(-15,15))*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,20,-0.01,MAINRUINCOLOR,0) | |
5072 | end | |
5073 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(1,1,1),0.5,0,0.5,MAINRUINCOLOR) | |
5074 | end | |
5075 | local notsp = Instance.new("Part", char) | |
5076 | notsp.CanCollide = false | |
5077 | notsp.FormFactor = 3 | |
5078 | notsp.Name = "Ring" | |
5079 | notsp.Material = "Neon" | |
5080 | notsp.Size = Vector3.new(10, 1, 10) | |
5081 | if kan.PlaybackLoudness >= 300 then | |
5082 | notsp.Size = Vector3.new(25, 1, 25) | |
5083 | end | |
5084 | notsp.Transparency = 1 | |
5085 | notsp.TopSurface = 0 | |
5086 | notsp.BottomSurface = 0 | |
5087 | notsp.Anchored = true | |
5088 | notsp.CFrame = root.CFrame*CFrame.new(0,-3,0) | |
5089 | coroutine.resume(coroutine.create(function() | |
5090 | local eff = Instance.new("ParticleEmitter",notsp) | |
5091 | eff.Texture = "rbxassetid://288898235" | |
5092 | eff.LightEmission = 0.5 | |
5093 | eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)) | |
5094 | eff.Rate = 300 | |
5095 | eff.Lifetime = NumberRange.new(1) | |
5096 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.5,0.5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5097 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
5098 | eff.Speed = NumberRange.new(20,40) | |
5099 | eff.Acceleration = vt(0,-75,0) | |
5100 | eff.Drag = 1 | |
5101 | eff.Rotation = NumberRange.new(-10,10) | |
5102 | eff.VelocitySpread = 20 | |
5103 | eff.RotSpeed = NumberRange.new(-1,1) | |
5104 | coroutine.resume(coroutine.create(function() | |
5105 | while true do | |
5106 | swait() | |
5107 | if eff.Parent ~= nil then | |
5108 | if ModeOfGlitch == 9 then | |
5109 | eff.Color = ColorSequence.new(Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000)) | |
5110 | elseif ModeOfGlitch ~= 9 then | |
5111 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5112 | end | |
5113 | else | |
5114 | break | |
5115 | end | |
5116 | end | |
5117 | end)) | |
5118 | wait(0.1) | |
5119 | eff.Enabled = false | |
5120 | end)) | |
5121 | game:GetService("Debris"):AddItem(notsp, 5) | |
5122 | end | |
5123 | end | |
5124 | end)) | |
5125 | ||
5126 | ||
5127 | Humanoid.Name = "GGLITCHER" | |
5128 | Humanoid.MaxHealth = math.huge | |
5129 | Humanoid.Health = math.huge | |
5130 | Instance.new("ForceField",char).Visible = false | |
5131 | ||
5132 | idleanim=.4 | |
5133 | while true do | |
5134 | Humanoid.MaxHealth = math.huge | |
5135 | Humanoid.Health = math.huge | |
5136 | if mutedtog == false and duringend == false then | |
5137 | kan.Volume = currentVol | |
5138 | elseif mutedtog == true and duringend == false then | |
5139 | kan.Volume = 0 | |
5140 | end | |
5141 | if duringend == false then | |
5142 | kan.PlaybackSpeed = currentPitch | |
5143 | kan.Pitch = currentPitch | |
5144 | end | |
5145 | kan.SoundId = currentThemePlaying | |
5146 | kan.Looped = true | |
5147 | kan.Parent = char | |
5148 | kan:Resume() | |
5149 | ||
5150 | modeteller.Text = string.upper(modet.Text) | |
5151 | modeteller.TextColor3 = MAINRUINCOLOR.Color | |
5152 | ||
5153 | swait() | |
5154 | handlexweld.C0=clerp(handlexweld.C0,cf(0 + 0.25 * math.cos(sine / 63),0 + 0.25 * math.cos(sine / 70),0 + 0.05 * math.cos(sine / 57))*angles(math.rad(0 + 2 * math.cos(sine / 55)),math.rad(0 + 2 * math.cos(sine / 46)),math.rad(0 + 2 * math.cos(sine / 32))),.3) | |
5155 | ||
5156 | lwing1weld.C1=clerp(lwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 42)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(90 + 5 * math.cos(sine / 56))),.3) | |
5157 | lwing2weld.C1=clerp(lwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(130 + 5 * math.cos(sine / 56))),.3) | |
5158 | lwing3weld.C1=clerp(lwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 48)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(50 + 5 * math.cos(sine / 56))),.3) | |
5159 | rwing1weld.C1=clerp(rwing1weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 36),0)*angles(math.rad(0 + 3 * math.cos(sine / 46)),math.rad(0 - 2 * math.cos(sine / 36)),math.rad(-90 - 5 * math.cos(sine / 56))),.3) | |
5160 | rwing2weld.C1=clerp(rwing2weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 38),0)*angles(math.rad(0 + 3 * math.cos(sine / 50)),math.rad(0 - 2 * math.cos(sine / 37)),math.rad(-130 - 5 * math.cos(sine / 56))),.3) | |
5161 | rwing3weld.C1=clerp(rwing3weld.C1,cf(0,1.85 + 0.15 * math.cos(sine / 41),0)*angles(math.rad(0 + 3 * math.cos(sine / 40)),math.rad(0 - 2 * math.cos(sine / 51)),math.rad(-50 - 5 * math.cos(sine / 56))),.3) | |
5162 | --------------- Visualiser Zone | |
5163 | if ModeOfGlitch == 9 then | |
5164 | modet.TextColor3 = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
5165 | for i, v in pairs(mw2:GetChildren()) do | |
5166 | if v:IsA("Part") then | |
5167 | v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
5168 | v.Material = "Neon" | |
5169 | end | |
5170 | end | |
5171 | for i, v in pairs(mw1:GetChildren()) do | |
5172 | if v:IsA("Part") then | |
5173 | v.Transparency = 0 | |
5174 | v.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
5175 | v.Material = "Neon" | |
5176 | end | |
5177 | end | |
5178 | end | |
5179 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
5180 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
5181 | --------------- | |
5182 | sine = sine + change | |
5183 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
5184 | local velderp=RootPart.Velocity.y | |
5185 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
5186 | if equipped==true or equipped==false then | |
5187 | if attack==false then | |
5188 | idle=idle+1 | |
5189 | else | |
5190 | idle=0 | |
5191 | end | |
5192 | if idle>=500 then | |
5193 | if attack==false then | |
5194 | --Sheath() | |
5195 | end | |
5196 | end | |
5197 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
5198 | Anim="Jump" | |
5199 | if attack==false then | |
5200 | RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
5201 | 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) | |
5202 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1) | |
5203 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
5204 | 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) | |
5205 | 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) | |
5206 | end | |
5207 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
5208 | Anim="Fall" | |
5209 | if attack==false then | |
5210 | RH.C0=clerp(RH.C0,cf(1,-0.35 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
5211 | 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) | |
5212 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-tors.Velocity.Y/6),math.rad(0),math.rad(0)),.1) | |
5213 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1) | |
5214 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(55)),.1) | |
5215 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-15),math.rad(0),math.rad(-55)),.1) | |
5216 | end | |
5217 | elseif torvel<1 and hitfloor~=nil then | |
5218 | Anim="Idle" | |
5219 | if attack==false then | |
5220 | if ModeOfGlitch == 1 then | |
5221 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.sin(sine / 14),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(2 + 1 * math.cos(sine / 14))),.1) | |
5222 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.sin(sine / 14),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(1 + 1 * math.cos(sine / 14))),.1) | |
5223 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.sin(sine / 14))*angles(math.rad(0 - 1 * math.sin(sine / 14)),math.rad(0),math.rad(-20)),.1) | |
5224 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5, 0.3 - 0.2 * math.sin(sine / 14)),math.rad(0),math.rad(20)),.1) | |
5225 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.2 * math.sin(sine / 14),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 14)),math.rad(0),math.rad(-100 - 2.5 * math.sin(sine / 14))),.1) | |
5226 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.2 * math.sin(sine / 14),-0.65)*angles(math.rad(40 - 1 * math.sin(sine / 14)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 14))),.1) | |
5227 | elseif ModeOfGlitch == 2 then | |
5228 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5 + 3 * math.cos(sine / 45)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1) | |
5229 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.03 * math.cos(sine / 45),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5 - 3 * math.cos(sine / 45)),math.rad(5),math.rad(0 + 2 * math.cos(sine / 34))),.1) | |
5230 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.03 * math.cos(sine / 45),0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0 + 3 * math.cos(sine / 45)),math.rad(0)),.1) | |
5231 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 2.5 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 99)),math.rad(0 + 10 * math.cos(sine / 78))),.1) | |
5232 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.01 * math.cos(sine / 28),0)*angles(math.rad(15 + 5 * math.cos(sine / 33)),math.rad(15 + 6 * math.cos(sine / 38)),math.rad(-10 - 3 * math.cos(sine / 42))),.1) | |
5233 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 5 * math.cos(sine / 28))),.1) | |
5234 | elseif ModeOfGlitch == 6969 then | |
5235 | RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(0,0,math.rad(0+5*math.cos(sine/16)))*RootCF,.1) | |
5236 | Torso.Neck.C0 = Torso.Neck.C0:lerp(necko*angles(0,0,-math.rad(0+5*math.cos(sine/16))),.1) | |
5237 | LH.C0 = LH.C0:lerp(cf(-1-math.rad(0+5*math.cos(sine/16)),-1+math.rad(0+5*math.cos(sine/16)),0)*angles(0,0,-math.rad(0+5*math.cos(sine/16)))*angles(math.rad(-15),math.rad(25),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
5238 | RH.C0 = RH.C0:lerp(cf(1-math.rad(0+5*math.cos(sine/16)),-1-math.rad(0+5*math.cos(sine/16)),0)*angles(0,0,-math.rad(0+5*math.cos(sine/16)))*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
5239 | LW.C0 = LW.C0:lerp(cf(-1.5,0.5,0)*cf(0,-.15,0)*angles(math.rad(15),0,math.rad(20)),.1) | |
5240 | RW.C0 = RW.C0:lerp(cf(1.5,0.5,0)*angles(0,0,math.rad(5+5*math.sin(sine/16))),.1) | |
5241 | elseif ModeOfGlitch == 666 then | |
5242 | 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) | |
5243 | 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) | |
5244 | 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) | |
5245 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
5246 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,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)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
5247 | LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,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)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
5248 | elseif ModeOfGlitch == 1346 then | |
5249 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1 + 4 * math.cos(sine / 50)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1) | |
5250 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5 - 4 * math.cos(sine / 50)),math.rad(18),math.rad(0 + 2 * math.cos(sine / 34))),.1) | |
5251 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.04 * math.cos(sine / 50),0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 + 4 * math.cos(sine / 50)),math.rad(-18)),.1) | |
5252 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(-5 - 2.5 * math.cos(sine / 57)),math.rad(18)),.1) | |
5253 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(36 - 3 * math.cos(sine / 34)),math.rad(0 - 2 * math.cos(sine / 45)),math.rad(-80 + 5 * math.cos(sine / 28))),.1) | |
5254 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(7 + 3 * math.cos(sine / 49)),math.rad(12 + 2 * math.cos(sine / 52)),math.rad(-16 - 6 * math.cos(sine / 39))),.1) | |
5255 | elseif ModeOfGlitch == 999 then | |
5256 | 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) | |
5257 | 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) | |
5258 | 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) | |
5259 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
5260 | 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) | |
5261 | 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) | |
5262 | elseif ModeOfGlitch == 10 then | |
5263 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, -0.1 + 0.1 * math.cos(sine / 20)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.15) | |
5264 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0)), 0.3) | |
5265 | RH.C0 = clerp(RH.C0, CFrame.new(1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * RHCF * angles(math.rad(-4.5), math.rad(0), math.rad(0)), 0.15) | |
5266 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -0.9 - 0.1 * math.cos(sine / 20), 0.025 * math.cos(sine / 20)) * LHCF * angles(math.rad(-6.5), math.rad(0), math.rad(0)), 0.15) | |
5267 | RW.C0 = clerp(RW.C0, CFrame.new(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1) | |
5268 | LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.4 + 0.05 * math.cos(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1) | |
5269 | elseif ModeOfGlitch == 3 then | |
5270 | 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(-5 - 2 * math.cos(sine / 34))),.1) | |
5271 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(20 - 2 * math.cos(sine / 72)),math.rad(0 + 2 * math.cos(sine / 34))),.1) | |
5272 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-20 + 2 * math.cos(sine / 72))),.1) | |
5273 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0 + 4 * math.cos(sine / 55)),math.rad(20 - 2 * math.cos(sine / 72))),.1) | |
5274 | RW.C0=clerp(RW.C0,cf(1.15,0.5 + 0.1 * math.cos(sine / 28),0.25)*angles(math.rad(-22 + 2 * math.cos(sine / 38)),math.rad(0),math.rad(-15 - 2 * math.cos(sine / 41))),.1) | |
5275 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(10 - 6 * math.cos(sine / 28)),math.rad(0 + 5 * math.cos(sine / 46)),math.rad(-20 + 5 * math.cos(sine / 34))),.1) | |
5276 | elseif ModeOfGlitch == 4 then | |
5277 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
5278 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
5279 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
5280 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(-25),0)*angles(math.rad(0 - 25 * math.cos(sine / 0.1164)),math.rad(0 - 30 * math.cos(sine / 0.25)),math.rad(0 - 30 * math.cos(sine / 0.465))),.1) | |
5281 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
5282 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
5283 | elseif ModeOfGlitch == 5 then | |
5284 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) - 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1 + 4 * math.cos(sine / 50)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 34))),.1) | |
5285 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) + 0.04 * math.cos(sine / 50),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5 - 4 * math.cos(sine / 50)),math.rad(18),math.rad(0 + 2 * math.cos(sine / 34))),.1) | |
5286 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 + 0.04 * math.cos(sine / 50),0 + 0.03 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 + 4 * math.cos(sine / 50)),math.rad(-18)),.1) | |
5287 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(-5 - 2.5 * math.cos(sine / 57)),math.rad(18)),.1) | |
5288 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.05 * math.cos(sine / 28),-0.65)*angles(math.rad(36 - 3 * math.cos(sine / 34)),math.rad(0 - 2 * math.cos(sine / 45)),math.rad(-80 + 5 * math.cos(sine / 28))),.1) | |
5289 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(7 + 3 * math.cos(sine / 49)),math.rad(12 + 2 * math.cos(sine / 52)),math.rad(-16 - 6 * math.cos(sine / 39))),.1) | |
5290 | elseif ModeOfGlitch == 6 then | |
5291 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-10 + 4 * math.cos(sine / 34))),.1) | |
5292 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(5 + 2 * math.cos(sine / 34))),.1) | |
5293 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-5 - 2 * math.cos(sine / 53))),.1) | |
5294 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 1 * math.cos(sine / 28)),math.rad(2 + 3 * math.cos(sine / 41)),math.rad(5 + 2 * math.cos(sine / 53))),.1) | |
5295 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 4 * math.cos(sine / 28)),math.rad(0),math.rad(14 + 8 * math.cos(sine / 28))),.1) | |
5296 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(5 + 3 * math.cos(sine / 46)),math.rad(10 + 5 * math.cos(sine / 52)),math.rad(-15 - 6 * math.cos(sine / 28))),.1) | |
5297 | elseif ModeOfGlitch == 7 then | |
5298 | 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(1),math.rad(0 - 1 * math.cos(sine / 34))),.1) | |
5299 | 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(5),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
5300 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.01 * math.cos(sine / 34),0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
5301 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0 + 1 * math.cos(sine / 71)),math.rad(0)),.1) | |
5302 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(4 - 4 * math.cos(sine / 28)),math.rad(-8),math.rad(10 - 5 * math.cos(sine / 34))),.1) | |
5303 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.02 * math.cos(sine / 28),0)*angles(math.rad(5),math.rad(5),math.rad(5)),.1) | |
5304 | elseif ModeOfGlitch == 8 then | |
5305 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(-10 + 5 * math.cos(sine / 34))),.1) | |
5306 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.25),math.rad(0),math.rad(6 + 2 * math.cos(sine / 34))),.1) | |
5307 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 2 * math.cos(sine / 34)),math.rad(0),math.rad(-26 + 2 * math.cos(sine / 44))),.1) | |
5308 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 - 1 * math.cos(sine / 28)),math.rad(-5 + 3 * math.cos(sine / 47)),math.rad(26 - 2 * math.cos(sine / 44))),.1) | |
5309 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-2 - 3 * math.cos(sine / 30)),math.rad(25 - 3 * math.cos(sine / 38)),math.rad(28 - 6 * math.cos(sine / 34))),.1) | |
5310 | LW.C0=clerp(LW.C0,cf(-0.95,0.65 + 0.075 * math.cos(sine / 28),-0.65)*angles(math.rad(90 + 2 * math.cos(sine / 73)),math.rad(25 + 5 * math.cos(sine / 24)),math.rad(73 - 3 * math.cos(sine / 65))),.1) | |
5311 | elseif ModeOfGlitch == 9 then | |
5312 | 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) | |
5313 | 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) | |
5314 | 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) | |
5315 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
5316 | 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) | |
5317 | 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) | |
5318 | elseif ModeOfGlitch == 2000000000 then | |
5319 | 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) | |
5320 | 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) | |
5321 | 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) | |
5322 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
5323 | 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) | |
5324 | 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) | |
5325 | elseif ModeOfGlitch == 6000000000 then | |
5326 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(2),math.rad(0),math.rad(-15 + 6 * math.cos(sine / 34))),.1) | |
5327 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(7.5 - 4 * math.cos(sine / 47))),.1) | |
5328 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0),math.rad(-1 + 4 * math.cos(sine / 62))),.1) | |
5329 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 28)),math.rad(5 - 6 * math.cos(sine / 79)),math.rad(1 - 4 * math.cos(sine / 62))),.1) | |
5330 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(38 + 2 * math.cos(sine / 33)),math.rad(0),math.rad(-95 - 3 * math.cos(sine / 28))),.1) | |
5331 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.01 * math.cos(sine / 28),-0.65)*angles(math.rad(45 - 3 * math.cos(sine / 37)),math.rad(0),math.rad(80 + 5 * math.cos(sine / 30))),.1) | |
5332 | elseif ModeOfGlitch == 9600000000 then | |
5333 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28) + 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(7 - 5 * math.cos(sine / 44)),math.rad(0),math.rad(-6 - 3 * math.cos(sine / 34))),.1) | |
5334 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28) - 0.05 * math.cos(sine / 44),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 + 5 * math.cos(sine / 44)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 34))),.1) | |
5335 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.05 * math.cos(sine / 44),0 + 0.03 * math.cos(sine / 34),-0.05 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 3 * math.cos(sine / 34)),math.rad(0 - 5 * math.cos(sine / 44)),math.rad(-5)),.1) | |
5336 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5 - 2.5 * math.cos(sine / 28)),math.rad(10 + 5 * math.cos(sine / 62)),math.rad(17 + 5 * math.cos(sine / 59))),.1) | |
5337 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(22 - 3 * math.cos(sine / 53)),math.rad(0),math.rad(-37 + 2 * math.cos(sine / 37))),.1) | |
5338 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),-0.45)*angles(math.rad(23 - 2 * math.cos(sine / 58)),math.rad(0),math.rad(38 - 3 * math.cos(sine / 57) )),.1) | |
5339 | end | |
5340 | end | |
5341 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
5342 | Anim="Walk" | |
5343 | if attack==false then | |
5344 | if ModeOfGlitch == 10 then | |
5345 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, -0.175 + 0.025 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(4-2.5 * math.cos(sine / 3.5)), math.rad(0) - root.RotVelocity.Y / 75, math.rad(5 * math.cos(sine / 7))), 0.15) | |
5346 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5 * math.sin(sine / 20)), math.rad(0), math.rad(0) - hed.RotVelocity.Y / 15), 0.3) | |
5347 | RH.C0 = clerp(RH.C0, cf(1, -0.925 - 0.5 * math.cos(sine / 7) / 2, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 - 5 * math.cos(sine / 7)) - rl.RotVelocity.Y / 75 + -math.sin(sine / 7) / 2.5, math.rad(90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3) | |
5348 | LH.C0 = clerp(LH.C0, cf(-1, -0.925 + 0.5 * math.cos(sine / 7) / 2, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-15 + 5 * math.cos(sine / 7)) + ll.RotVelocity.Y / 75 + math.sin(sine / 7) / 2.5, math.rad(-90 - 0.1 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 0.1 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.3) | |
5349 | RW.C0 = clerp(RW.C0, cf(1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(-0), math.rad(-30)), 0.1) | |
5350 | LW.C0 = clerp(LW.C0, cf(-1.1, 0.4 + 0.05 * math.sin(sine / 30), 0.025 * math.cos(sine / 20)) * angles(math.rad(-30), math.rad(0), math.rad(30)), 0.1) | |
5351 | elseif ModeOfGlitch == 666 then | |
5352 | RH.C0=clerp(RH.C0,cf(1,-.9-.4*math.cos(sine/8)/2,.4*math.cos(sine/8)/2)*angles(math.rad(2-2*math.cos(sine/10))-math.sin(sine/8)/2,0,0)*angles(0,math.rad(90),0),.1) | |
5353 | LH.C0=clerp(LH.C0,cf(-1,-.9+.4*math.cos(sine/8)/2,-.4*math.cos(sine/8)/2)*angles(math.rad(2+2*math.cos(sine/10))+math.sin(sine/8)/2,0,0)*angles(0,math.rad(-90),0),.1) | |
5354 | 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) | |
5355 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
5356 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,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)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
5357 | LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,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)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
5358 | elseif ModeOfGlitch == 999 then | |
5359 | 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) | |
5360 | 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) | |
5361 | 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) | |
5362 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
5363 | 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) | |
5364 | 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) | |
5365 | elseif ModeOfGlitch ~= 9600000000 then | |
5366 | RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1) | |
5367 | LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math.cos(sine / 8)),math.rad(0 + 35 * math.cos(sine / 8))),.1) | |
5368 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.05,-0.05 - 0.05 * math.cos(sine / 4))*angles(math.rad(5 + 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 5 * math.cos(sine / 8))),.1) | |
5369 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 5 * math.cos(sine / 8))),.1) | |
5370 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 50 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1) | |
5371 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 50 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1) | |
5372 | elseif ModeOfGlitch == 9600000000 then | |
5373 | RH.C0=clerp(RH.C0,cf(1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 10 * math.cos(sine / 8)),math.rad(0 + 65 * math.cos(sine / 8))),.1) | |
5374 | LH.C0=clerp(LH.C0,cf(-1,-1 + 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 10 * math.cos(sine / 8)),math.rad(0 + 65 * math.cos(sine / 8))),.1) | |
5375 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.1,-0.05 + 0.05 * math.cos(sine / 4))*angles(math.rad(15 - 3 * math.cos(sine / 4)),math.rad(0 + root.RotVelocity.Y/1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 8))),.1) | |
5376 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-15 + 3 * math.cos(sine / 4)),math.rad(0 - 10 * math.cos(sine / 8)),math.rad(0 - hed.RotVelocity.Y*2.5 + 10 * math.cos(sine / 8))),.1) | |
5377 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.25 * math.cos(sine / 8))*angles(math.rad(0 - 80 * math.cos(sine / 8)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 4))),.1) | |
5378 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.25 * math.cos(sine / 8))*angles(math.rad(0 + 80 * math.cos(sine / 8)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 4))),.1) | |
5379 | end | |
5380 | end | |
5381 | elseif torvel>=22 and hitfloor~=nil then | |
5382 | Anim="Run" | |
5383 | if attack==false then | |
5384 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 2000000000 and ModeOfGlitch ~= 6000000000 then | |
5385 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1) | |
5386 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 85 * math.cos(sine / 6))),.1) | |
5387 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(15 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 10 * math.cos(sine / 6))),.1) | |
5388 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5 + 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 10 * math.cos(sine / 6))),.1) | |
5389 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0 + 0.5 * math.cos(sine / 6))*angles(math.rad(0 - 140 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 20 * math.cos(sine / 3))),.1) | |
5390 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0 - 0.5 * math.cos(sine / 6))*angles(math.rad(0 + 140 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 20 * math.cos(sine / 3))),.1) | |
5391 | if ModeOfGlitch == 7 then | |
5392 | end | |
5393 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 2000000000 or ModeOfGlitch == 6000000000 then | |
5394 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(1.5),math.rad(0),math.rad(-20 - 5 * math.cos(sine / 34))),.2) | |
5395 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(1),math.rad(0),math.rad(20 + 2 * math.cos(sine / 38))),.2) | |
5396 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0 - 0.15 * math.cos(sine / 47),-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(70),math.rad(0 - root.RotVelocity.Y),math.rad(0 - root.RotVelocity.Y *4.5 + 3 * math.cos(sine / 47))),.2) | |
5397 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17 - 5 * math.cos(sine / 52)),math.rad(0 - 3 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 78))),.2) | |
5398 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.05 * math.cos(sine / 28),0)*angles(math.rad(-8 - 4 * math.cos(sine / 59)),math.rad(-20 + 7 * math.cos(sine / 62)),math.rad(20 + 5 * math.cos(sine / 50))),.2) | |
5399 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(-8 - 3 * math.cos(sine / 55)),math.rad(20 + 8 * math.cos(sine / 67)),math.rad(-20 - 4 * math.cos(sine / 29))),.2) | |
5400 | end | |
5401 | end | |
5402 | end | |
5403 | end | |
5404 | end |