SHOW:
|
|
- or go back to the newest paste.
1 | --TODO: add comments or something idk | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player = owner | |
4 | local Mouse,mouse,UserInputService,ContextActionService | |
5 | do | |
6 | script.Parent = Player.Character | |
7 | local CAS = {Actions={}} | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | Event.Parent = Player.Character | |
11 | local fakeEvent = function() | |
12 | local t = {_fakeEvent=true} | |
13 | t.Connect = function(self,f)self.Function=f end | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
18 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
19 | function CAS:BindAction(name,fun,touch,...) | |
20 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}} | |
21 | end | |
22 | function CAS:UnbindAction(name) | |
23 | CAS.Actions[name] = nil | |
24 | end | |
25 | local function te(self,ev,...) | |
26 | local t = m[ev] | |
27 | if t and t._fakeEvent and t.Function then | |
28 | t.Function(...) | |
29 | end | |
30 | end | |
31 | m.TrigEvent = te | |
32 | UIS.TrigEvent = te | |
33 | Event.OnServerEvent:Connect(function(plr,io) | |
34 | if plr~=Player then return end | |
35 | if io.isMouse then | |
36 | m.Target = io.Target | |
37 | m.Hit = io.Hit | |
38 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
39 | if io.UserInputState == Enum.UserInputState.Begin then | |
40 | m:TrigEvent("Button1Down") | |
41 | else | |
42 | m:TrigEvent("Button1Up") | |
43 | end | |
44 | else | |
45 | for n,t in pairs(CAS.Actions) do | |
46 | for _,k in pairs(t.Keys) do | |
47 | if k==io.KeyCode then | |
48 | t.Function(t.Name,io.UserInputState,io) | |
49 | end | |
50 | end | |
51 | end | |
52 | if io.UserInputState == Enum.UserInputState.Begin then | |
53 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) | |
54 | UIS:TrigEvent("InputBegan",io,false) | |
55 | else | |
56 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) | |
57 | UIS:TrigEvent("InputEnded",io,false) | |
58 | end | |
59 | end | |
60 | end) | |
61 | NLS([==[ | |
62 | local Player = game:GetService("Players").LocalPlayer | |
63 | ||
64 | local Char = Player.Character | |
65 | local Event = Char:WaitForChild("UserInput_Event") | |
66 | ||
67 | local UIS = game:GetService("UserInputService") | |
68 | ||
69 | local input = function(io,a) | |
70 | if a then return end | |
71 | local io = {KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState} | |
72 | Event:FireServer(io) | |
73 | end | |
74 | UIS.InputBegan:Connect(input) | |
75 | UIS.InputEnded:Connect(input) | |
76 | local Changed = false | |
77 | local Mouse = Player:GetMouse() | |
78 | local h,t = Mouse.Hit,Mouse.Target | |
79 | while wait(1/30) do | |
80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
81 | Event:FireServer({isMouse=true,Target=Mouse.Target,Hit=Mouse.Hit}) | |
82 | h,t=Mouse.Hit,Mouse.Target | |
83 | end | |
84 | end | |
85 | ]==],Player.Character) | |
86 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
87 | end | |
88 | ||
89 | ||
90 | wait(0.5) | |
91 | ||
92 | warn([[SG AWAKEN Loaded. | |
93 | The super switcher. | |
94 | Velnorum is one of the first wielders. | |
95 | ||
96 | Created, Reworked by NoobyGames12 and converted by Helkern | |
97 | ]]) | |
98 | ||
99 | ||
100 | ------------- ORIGINAL WIELDER OC: Velnorum | |
101 | print([[Icons: | |
102 | ! = New | |
103 | ? = Spoilers | |
104 | * = Exclusivity | |
105 | C = Changes | |
106 | ||
107 | ]]) | |
108 | warn([[V 4.1 Update Log: | |
109 | !C? - Mostly about 7-9 main modes added. | |
110 | ! - Non-canon [N] modes are added from few modes: | |
111 | > neutral: Big black | |
112 | > Cyber: BRIGHTNESS | |
113 | > Chaos: CRAZED | |
114 | > Fallen Angel: Golden | |
115 | > Universe Ruler: Overload | |
116 | ! - Added back CALAMITY and INFESTATION. | |
117 | C - Two main click attacks changed. | |
118 | !C - Moves are added back, with severe change and difference. | |
119 | C - Some modes got renamed because fat filter | |
120 | C - Toned down the effects to be compatible with fe without strong lag.]]) | |
121 | --- its obs smooth af do not touch | |
122 | ---- Sources and functions might be taken from others | |
123 | if game.PlaceId == 843468296 then | |
124 | error("This script has been banned. You cannot use it here. Please use Place 2.") | |
125 | end | |
126 | plr = owner | |
127 | char = plr.Character | |
128 | hum = char.Humanoid | |
129 | local cam = game.Workspace.CurrentCamera | |
130 | Camera = cam | |
131 | local CamInterrupt = false | |
132 | local TwoD = false | |
133 | local TargetInfo = {nil, nil} | |
134 | cam.CameraType = "Custom" | |
135 | t = char.Torso | |
136 | h = char.Head | |
137 | ra = char["Right Arm"] | |
138 | la = char["Left Arm"] | |
139 | rl = char["Right Leg"] | |
140 | ll = char["Left Leg"] | |
141 | tors = char.Torso | |
142 | lleg = char["Left Leg"] | |
143 | root = char.HumanoidRootPart | |
144 | hed = char.Head | |
145 | rleg = char["Right Leg"] | |
146 | rarm = char["Right Arm"] | |
147 | larm = char["Left Arm"] | |
148 | radian = math.rad | |
149 | random = math.random | |
150 | Vec3 = Vector3.new | |
151 | Inst = Instance.new | |
152 | cFrame = CFrame.new | |
153 | Euler = CFrame.fromEulerAnglesXYZ | |
154 | vt = Vector3.new | |
155 | bc = BrickColor.new | |
156 | br = BrickColor.random | |
157 | it = Instance.new | |
158 | cf = CFrame.new | |
159 | ||
160 | local Booleans = { | |
161 | CamFollow = true, | |
162 | GyroUse = true | |
163 | } | |
164 | ||
165 | function lerp(object, newCFrame, alpha) | |
166 | return object:lerp(newCFrame, alpha) | |
167 | end | |
168 | ||
169 | local Directer = Inst("BodyGyro", root) | |
170 | Directer.MaxTorque = Vec3(0, 0, 0) | |
171 | Directer.P = 600000 | |
172 | local CPart = Inst("Part") | |
173 | CPart.Anchored = true | |
174 | CPart.CanCollide = false | |
175 | CPart.Locked = true | |
176 | CPart.Transparency = 1 | |
177 | ||
178 | local rainbowmode = false | |
179 | local chaosmode = false | |
180 | ||
181 | local kan = Instance.new("Sound",char) | |
182 | kan.Volume = 1.25 | |
183 | kan.TimePosition = 0 | |
184 | kan.PlaybackSpeed = 1 | |
185 | kan.Pitch = 1 | |
186 | kan.SoundId = "rbxassetid://222585134" | |
187 | kan.Name = "wrecked" | |
188 | kan.Looped = true | |
189 | kan:Play() | |
190 | ||
191 | local currentThemePlaying = kan.SoundId | |
192 | local currentPitch = kan.Pitch | |
193 | local currentVol = kan.Volume | |
194 | function newTheme(ID,timepos,pitch,vol) | |
195 | local kanz = kan | |
196 | --kanz:Stop() | |
197 | kanz.Volume = vol | |
198 | --kanz.TimePosition = timepos | |
199 | kanz.PlaybackSpeed = pitch | |
200 | kanz.Pitch = pitch | |
201 | kanz.SoundId = ID | |
202 | kanz.Name = "wrecked" | |
203 | kanz.Looped = true | |
204 | currentThemePlaying = kanz.SoundId | |
205 | currentVol = kanz.Volume | |
206 | currentPitch = kanz.Pitch | |
207 | --kanz:Play() | |
208 | --coroutine.resume(coroutine.create(function() | |
209 | --wait(0.05) | |
210 | --end)) | |
211 | end | |
212 | ||
213 | ||
214 | function newThemeCust(ID,timepos,pitch,vol) | |
215 | local kanz = kan | |
216 | kanz:Stop() | |
217 | kanz.Volume = vol | |
218 | kanz.TimePosition = timepos | |
219 | kanz.PlaybackSpeed = pitch | |
220 | kanz.Pitch = pitch | |
221 | kanz.SoundId = ID | |
222 | kanz.Name = "wrecked" | |
223 | kanz.Looped = true | |
224 | currentThemePlaying = kanz.SoundId | |
225 | currentVol = kanz.Volume | |
226 | currentPitch = kanz.Pitch | |
227 | kanz:Play() | |
228 | coroutine.resume(coroutine.create(function() | |
229 | wait(0.05) | |
230 | end)) | |
231 | end | |
232 | ||
233 | local mutedtog = false | |
234 | ||
235 | function CameraEnshaking(Length,Intensity) | |
236 | coroutine.resume(coroutine.create(function() | |
237 | local intensity = 1*Intensity | |
238 | local rotM = 0.01*Intensity | |
239 | for i = 0, Length, 0.1 do | |
240 | swait() | |
241 | intensity = intensity - 0.05*Intensity/Length | |
242 | rotM = rotM - 0.0005*Intensity/Length | |
243 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
244 | 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) | |
245 | end | |
246 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
247 | end)) | |
248 | end | |
249 | CamShake=function(Part,Distan,Power,Times) | |
250 | local de=Part.Position | |
251 | for i,v in pairs(workspace:children()) do | |
252 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
253 | for _,c in pairs(v:children()) do | |
254 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
255 | local Noob=v.Humanoid | |
256 | if Noob~=nil then | |
257 | coroutine.resume(coroutine.create(function() | |
258 | FV = Instance.new("BoolValue", Noob) | |
259 | FV.Name = "CameraShake" | |
260 | for ShakeNum=1,Times do | |
261 | swait() | |
262 | local ef=Power | |
263 | if ef>=1 then | |
264 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
265 | else | |
266 | ef=Power*10 | |
267 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
268 | end | |
269 | end | |
270 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
271 | FV:Destroy() | |
272 | end)) | |
273 | CameraShake(Times, Power, Noob) | |
274 | end | |
275 | end | |
276 | end | |
277 | end | |
278 | end | |
279 | end | |
280 | ||
281 | local toggleTag = true | |
282 | local bilguit = Instance.new("BillboardGui", hed) | |
283 | bilguit.Adornee = nil | |
284 | bilguit.Name = "ModeName" | |
285 | bilguit.Size = UDim2.new(4, 0, 1.2, 0) | |
286 | bilguit.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
287 | local modet = Instance.new("TextLabel", bilguit) | |
288 | modet.Size = UDim2.new(10/2, 0, 7/2, 0) | |
289 | modet.FontSize = "Size8" | |
290 | modet.TextScaled = true | |
291 | modet.TextTransparency = 0 | |
292 | modet.BackgroundTransparency = 1 | |
293 | modet.TextTransparency = 0 | |
294 | modet.TextStrokeTransparency = 0 | |
295 | modet.Font = "Arcade" | |
296 | modet.TextStrokeColor3 = Color3.new(1,0,0) | |
297 | modet.TextColor3 = Color3.new(0.25,0,0) | |
298 | modet.Text = "Neutral" | |
299 | ||
300 | ||
301 | function chatfunc(text,color,typet,font,timeex) | |
302 | local chat = coroutine.wrap(function() | |
303 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
304 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
305 | end | |
306 | local naeeym2 = Instance.new("BillboardGui",Character) | |
307 | naeeym2.Size = UDim2.new(0,100,0,40) | |
308 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
309 | naeeym2.Adornee = Character.Head | |
310 | naeeym2.Name = "TalkingBillBoard" | |
311 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
312 | tecks2.BackgroundTransparency = 1 | |
313 | tecks2.BorderSizePixel = 0 | |
314 | tecks2.Text = "" | |
315 | tecks2.Font = font | |
316 | tecks2.TextSize = 30 | |
317 | tecks2.TextStrokeTransparency = 0 | |
318 | tecks2.TextColor3 = color | |
319 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
320 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
321 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
322 | tecks3.BackgroundTransparency = 1 | |
323 | tecks3.BorderSizePixel = 0 | |
324 | tecks3.Text = "" | |
325 | tecks3.Font = font | |
326 | tecks3.TextSize = 30 | |
327 | tecks3.TextStrokeTransparency = 0 | |
328 | if typet == "Inverted" then | |
329 | tecks3.TextColor3 = Color3.new(0,0,0) | |
330 | tecks3.TextStrokeColor3 = color | |
331 | elseif typet == "Normal" then | |
332 | tecks3.TextColor3 = color | |
333 | tecks3.TextStrokeColor3 = Color3.new(0,0,0) | |
334 | end | |
335 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
336 | coroutine.resume(coroutine.create(function() | |
337 | while true do | |
338 | swait(1) | |
339 | if chaosmode == true then | |
340 | tecks2.TextColor3 = BrickColor.random().Color | |
341 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
342 | end | |
343 | end | |
344 | end)) | |
345 | modet.TextTransparency = modet.TextTransparency + 1 | |
346 | modet.TextStrokeTransparency = modet.TextStrokeTransparency + 1 | |
347 | for i = 0, 74*timeex do | |
348 | swait() | |
349 | modet.TextTransparency = 1 | |
350 | modet.TextStrokeTransparency = 1 | |
351 | tecks2.Text = text | |
352 | tecks3.Text = text | |
353 | end | |
354 | local randomrot = math.random(1,2) | |
355 | if randomrot == 1 then | |
356 | for i = 1, 50 do | |
357 | swait() | |
358 | tecks2.Text = text | |
359 | tecks3.Text = text | |
360 | modet.TextTransparency = modet.TextTransparency - .02 | |
361 | modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02 | |
362 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
363 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
364 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
365 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
366 | end | |
367 | elseif randomrot == 2 then | |
368 | for i = 1, 50 do | |
369 | swait() | |
370 | tecks2.Text = text | |
371 | tecks3.Text = text | |
372 | modet.TextTransparency = modet.TextTransparency - .02 | |
373 | modet.TextStrokeTransparency = modet.TextStrokeTransparency - .02 | |
374 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
375 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
376 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
377 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
378 | end | |
379 | end | |
380 | modet.TextTransparency = 0 | |
381 | modet.TextStrokeTransparency = 0 | |
382 | if toggleTag == false then | |
383 | modet.TextTransparency = 1 | |
384 | modet.TextStrokeTransparency = 1 | |
385 | end | |
386 | naeeym2:Destroy() | |
387 | end) | |
388 | chat() | |
389 | end | |
390 | ||
391 | function bosschatfunc(text,color,watval) | |
392 | for i,v in pairs(game:GetService("Players"):GetPlayers()) do | |
393 | coroutine.resume(coroutine.create(function() | |
394 | if v.PlayerGui:FindFirstChild("Dialog")~= nil then | |
395 | v.PlayerGui:FindFirstChild("Dialog"):destroy() | |
396 | end | |
397 | local scrg = Instance.new("ScreenGui",v.PlayerGui) | |
398 | CFuncs["EchoSound"].Create("rbxassetid://525200869", scrg, 0.5, 1,0,10,0.1,0.25,1) | |
399 | scrg.Name = "Dialog" | |
400 | local txtlb = Instance.new("TextLabel",scrg) | |
401 | txtlb.Text = "" | |
402 | txtlb.Font = "Bodoni" | |
403 | txtlb.TextColor3 = Color3.new(0,0,0) | |
404 | txtlb.TextStrokeTransparency = 0 | |
405 | txtlb.BackgroundTransparency = 0.75 | |
406 | txtlb.BackgroundColor3 = Color3.new(0,0,0) | |
407 | txtlb.TextStrokeColor3 = color | |
408 | txtlb.TextScaled = true | |
409 | txtlb.Size = UDim2.new(1,0,0.25,0) | |
410 | txtlb.TextXAlignment = "Left" | |
411 | txtlb.Position = UDim2.new(0,0,0.75 + 1,0) | |
412 | local txtlb2 = Instance.new("TextLabel",scrg) | |
413 | txtlb2.Text = "?:" | |
414 | txtlb2.Font = "Arcade" | |
415 | txtlb2.TextColor3 = Color3.new(0,0,0) | |
416 | txtlb2.TextStrokeTransparency = 0 | |
417 | txtlb2.BackgroundTransparency = 1 | |
418 | txtlb2.TextStrokeColor3 = color | |
419 | txtlb2.TextSize = 40 | |
420 | txtlb2.Size = UDim2.new(1,0,0.25,0) | |
421 | txtlb2.TextXAlignment = "Left" | |
422 | txtlb2.Position = UDim2.new(0,0,1,0) | |
423 | local fvalen = 0.55 | |
424 | local fval = -0.49 | |
425 | coroutine.resume(coroutine.create(function() | |
426 | while true do | |
427 | swait() | |
428 | if chaosmode == true then | |
429 | txtlb.Rotation = math.random(-1,1) | |
430 | txtlb2.Rotation = math.random(-1,1) | |
431 | txtlb.Position = txtlb.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5) | |
432 | txtlb2.Position = txtlb2.Position + UDim2.new(0,math.random(-1,1)/5,0,math.random(-1,1)/5) | |
433 | txtlb.TextStrokeColor3 = BrickColor.random().Color | |
434 | txtlb2.TextStrokeColor3 = BrickColor.random().Color | |
435 | end | |
436 | end | |
437 | end)) | |
438 | coroutine.resume(coroutine.create(function() | |
439 | while true do | |
440 | swait() | |
441 | if scrg.Parent ~= nil then | |
442 | fvalen = fvalen - 0.0001 | |
443 | elseif scrg.Parent == nil then | |
444 | break | |
445 | end | |
446 | end | |
447 | end)) | |
448 | local flol = 1.75 | |
449 | local flil = 1.6 | |
450 | coroutine.resume(coroutine.create(function() | |
451 | for i = 0, 9 do | |
452 | swait() | |
453 | fval = fval + 0.05 | |
454 | flol = flol - 0.1 | |
455 | flil = flil - 0.1 | |
456 | txtlb.Text = "" | |
457 | txtlb.Position = UDim2.new(0,0,flol,0) | |
458 | txtlb2.Position = UDim2.new(0,0,flil,0) | |
459 | end | |
460 | txtlb.Text = text | |
461 | wait(watval) | |
462 | local valinc = 0 | |
463 | for i = 0, 99 do | |
464 | swait() | |
465 | valinc = valinc + 0.0001 | |
466 | flol = flol + valinc | |
467 | flil = flil + valinc | |
468 | txtlb.Rotation = txtlb.Rotation + valinc*20 | |
469 | txtlb2.Rotation = txtlb2.Rotation - valinc*50 | |
470 | txtlb.Position = UDim2.new(0,0,flol,0) | |
471 | txtlb2.Position = UDim2.new(0,0,flil,0) | |
472 | txtlb.TextStrokeTransparency = txtlb.TextStrokeTransparency + 0.01 | |
473 | txtlb.TextTransparency = txtlb.TextTransparency + 0.01 | |
474 | txtlb2.TextStrokeTransparency = txtlb2.TextStrokeTransparency + 0.01 | |
475 | txtlb2.TextTransparency = txtlb2.TextTransparency + 0.01 | |
476 | txtlb.BackgroundTransparency = txtlb.BackgroundTransparency + 0.0025 | |
477 | end | |
478 | scrg:Destroy() | |
479 | end)) | |
480 | end)) | |
481 | end | |
482 | end | |
483 | ||
484 | ||
485 | local Create = LoadLibrary("RbxUtility").Create | |
486 | ||
487 | CFuncs = { | |
488 | ["Part"] = { | |
489 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
490 | local Part = Create("Part"){ | |
491 | Parent = Parent, | |
492 | Reflectance = Reflectance, | |
493 | Transparency = Transparency, | |
494 | CanCollide = false, | |
495 | Locked = true, | |
496 | BrickColor = BrickColor.new(tostring(BColor)), | |
497 | Name = Name, | |
498 | Size = Size, | |
499 | Material = Material, | |
500 | } | |
501 | RemoveOutlines(Part) | |
502 | return Part | |
503 | end; | |
504 | }; | |
505 | ||
506 | ["Mesh"] = { | |
507 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
508 | local Msh = Create(Mesh){ | |
509 | Parent = Part, | |
510 | Offset = OffSet, | |
511 | Scale = Scale, | |
512 | } | |
513 | if Mesh == "SpecialMesh" then | |
514 | Msh.MeshType = MeshType | |
515 | Msh.MeshId = MeshId | |
516 | end | |
517 | return Msh | |
518 | end; | |
519 | }; | |
520 | ||
521 | ["Mesh"] = { | |
522 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
523 | local Msh = Create(Mesh){ | |
524 | Parent = Part, | |
525 | Offset = OffSet, | |
526 | Scale = Scale, | |
527 | } | |
528 | if Mesh == "SpecialMesh" then | |
529 | Msh.MeshType = MeshType | |
530 | Msh.MeshId = MeshId | |
531 | end | |
532 | return Msh | |
533 | end; | |
534 | }; | |
535 | ||
536 | ["Weld"] = { | |
537 | Create = function(Parent, Part0, Part1, C0, C1) | |
538 | local Weld = Create("Weld"){ | |
539 | Parent = Parent, | |
540 | Part0 = Part0, | |
541 | Part1 = Part1, | |
542 | C0 = C0, | |
543 | C1 = C1, | |
544 | } | |
545 | return Weld | |
546 | end; | |
547 | }; | |
548 | ||
549 | ["Sound"] = { | |
550 | Create = function(id, par, vol, pit) | |
551 | coroutine.resume(coroutine.create(function() | |
552 | local S = Create("Sound"){ | |
553 | Volume = vol, | |
554 | Name = "EffectSoundo", | |
555 | Pitch = pit or 1, | |
556 | SoundId = id, | |
557 | Parent = par or workspace, | |
558 | } | |
559 | wait() | |
560 | S:play() | |
561 | game:GetService("Debris"):AddItem(S, 10) | |
562 | end)) | |
563 | end; | |
564 | }; | |
565 | ||
566 | ["TimeSound"] = { | |
567 | Create = function(id, par, vol, pit, timepos) | |
568 | coroutine.resume(coroutine.create(function() | |
569 | local S = Create("Sound"){ | |
570 | Volume = vol, | |
571 | Name = "EffectSoundo", | |
572 | Pitch = pit or 1, | |
573 | SoundId = id, | |
574 | TimePosition = timepos, | |
575 | Parent = par or workspace, | |
576 | } | |
577 | wait() | |
578 | S:play() | |
579 | game:GetService("Debris"):AddItem(S, 10) | |
580 | end)) | |
581 | end; | |
582 | }; | |
583 | ["EchoSound"] = { | |
584 | Create = function(id, par, vol, pit, timepos,delays,echodelay,fedb,dryl) | |
585 | coroutine.resume(coroutine.create(function() | |
586 | local Sas = Create("Sound"){ | |
587 | Volume = vol, | |
588 | Name = "EffectSoundo", | |
589 | Pitch = pit or 1, | |
590 | SoundId = id, | |
591 | TimePosition = timepos, | |
592 | Parent = par or workspace, | |
593 | } | |
594 | local E = Create("EchoSoundEffect"){ | |
595 | Delay = echodelay, | |
596 | Name = "Echo", | |
597 | Feedback = fedb, | |
598 | DryLevel = dryl, | |
599 | Parent = Sas, | |
600 | } | |
601 | wait() | |
602 | Sas:play() | |
603 | game:GetService("Debris"):AddItem(Sas, delays) | |
604 | end)) | |
605 | end; | |
606 | }; | |
607 | ||
608 | ["LongSound"] = { | |
609 | Create = function(id, par, vol, pit) | |
610 | coroutine.resume(coroutine.create(function() | |
611 | local S = Create("Sound"){ | |
612 | Volume = vol, | |
613 | Pitch = pit or 1, | |
614 | SoundId = id, | |
615 | Parent = par or workspace, | |
616 | } | |
617 | wait() | |
618 | S:play() | |
619 | game:GetService("Debris"):AddItem(S, 60) | |
620 | end)) | |
621 | end; | |
622 | }; | |
623 | ||
624 | ["ParticleEmitter"] = { | |
625 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
626 | local fp = Create("ParticleEmitter"){ | |
627 | Parent = Parent, | |
628 | Color = ColorSequence.new(Color1, Color2), | |
629 | LightEmission = LightEmission, | |
630 | Size = Size, | |
631 | Texture = Texture, | |
632 | Transparency = Transparency, | |
633 | ZOffset = ZOffset, | |
634 | Acceleration = Accel, | |
635 | Drag = Drag, | |
636 | LockedToPart = LockedToPart, | |
637 | VelocityInheritance = VelocityInheritance, | |
638 | EmissionDirection = EmissionDirection, | |
639 | Enabled = Enabled, | |
640 | Lifetime = LifeTime, | |
641 | Rate = Rate, | |
642 | Rotation = Rotation, | |
643 | RotSpeed = RotSpeed, | |
644 | Speed = Speed, | |
645 | VelocitySpread = VelocitySpread, | |
646 | } | |
647 | return fp | |
648 | end; | |
649 | }; | |
650 | ||
651 | CreateTemplate = { | |
652 | ||
653 | }; | |
654 | } | |
655 | ||
656 | ||
657 | ||
658 | New = function(Object, Parent, Name, Data) | |
659 | local Object = Instance.new(Object) | |
660 | for Index, Value in pairs(Data or {}) do | |
661 | Object[Index] = Value | |
662 | end | |
663 | Object.Parent = Parent | |
664 | Object.Name = Name | |
665 | return Object | |
666 | end | |
667 | local halocolor = BrickColor.new("Pastel light blue") | |
668 | local halocolor2 = BrickColor.new("Cool yellow") | |
669 | local starcolor = BrickColor.new("Bright yellow") | |
670 | local lunacolor = BrickColor.new("Navy blue") | |
671 | local lunacolor2 = BrickColor.new("Bright blue") | |
672 | local wepcolor = BrickColor.new("Really black") | |
673 | local maincolor = BrickColor.new("Really black") | |
674 | local m = Instance.new("Model",char) | |
675 | local m2 = Instance.new("Model",char) | |
676 | local m3 = Instance.new("Model",char) | |
677 | local mw1 = Instance.new("Model",char) | |
678 | local mw2 = Instance.new("Model",char) | |
679 | ||
680 | ||
681 | gui = function(GuiType, parent, text, backtrans, backcol, pos, size) | |
682 | local gui = it(GuiType) | |
683 | gui.Parent = parent | |
684 | gui.Text = text | |
685 | gui.BackgroundTransparency = backtrans | |
686 | gui.BackgroundColor3 = backcol | |
687 | gui.SizeConstraint = "RelativeXY" | |
688 | gui.TextXAlignment = "Center" | |
689 | gui.TextYAlignment = "Center" | |
690 | gui.Position = pos | |
691 | gui.Size = size | |
692 | gui.Font = "SourceSans" | |
693 | gui.FontSize = "Size14" | |
694 | gui.TextWrapped = false | |
695 | gui.TextStrokeTransparency = 0 | |
696 | gui.TextColor = BrickColor.new("White") | |
697 | return gui | |
698 | end | |
699 | --------------------------- GUI STUFF | |
700 | local basgui = it("GuiMain") | |
701 | basgui.Parent = plr.PlayerGui | |
702 | basgui.Name = "VISgui" | |
703 | local fullscreenz = it("Frame") | |
704 | fullscreenz.Parent = basgui | |
705 | fullscreenz.BackgroundColor3 = Color3.new(255, 255, 255) | |
706 | fullscreenz.BackgroundTransparency = 1 | |
707 | fullscreenz.BorderColor3 = Color3.new(17, 17, 17) | |
708 | fullscreenz.Size = UDim2.new(1, 0, 1, 0) | |
709 | fullscreenz.Position = UDim2.new(0, 0, 0, 0) | |
710 | local imgl2 = Instance.new("ImageLabel",fullscreenz) | |
711 | imgl2.BackgroundTransparency = 1 | |
712 | imgl2.BorderSizePixel = 0 | |
713 | imgl2.ImageTransparency = 0.5 | |
714 | imgl2.ImageColor3 = Color3.new(1,0,0) | |
715 | imgl2.Position = UDim2.new(0.75,-200,0.55,-200) | |
716 | imgl2.Size = UDim2.new(0,1000,0,1000) | |
717 | imgl2.Image = "rbxassetid://2325939897" | |
718 | local techc = imgl2:Clone() | |
719 | techc.Parent = fullscreenz | |
720 | techc.ImageTransparency = 0 | |
721 | techc.Size = UDim2.new(0,900,0,900) | |
722 | techc.Position = UDim2.new(0.75,-150,0.55,-150) | |
723 | techc.ImageColor3 = Color3.new(1,0,0) | |
724 | techc.Image = "rbxassetid://2273224484" | |
725 | local circl = imgl2:Clone() | |
726 | circl.Parent = fullscreenz | |
727 | circl.ImageTransparency = 0 | |
728 | circl.Size = UDim2.new(0,550,0,550) | |
729 | circl.Position = UDim2.new(0.75,25,0.55,25) | |
730 | circl.ImageColor3 = Color3.new(0,0,0) | |
731 | circl.Image = "rbxassetid://2312119891" | |
732 | local circl2 = imgl2:Clone() | |
733 | circl2.Parent = fullscreenz | |
734 | circl2.ImageTransparency = 0 | |
735 | circl2.Size = UDim2.new(0,700,0,700) | |
736 | circl2.Position = UDim2.new(0.75,-50,0.55,-50) | |
737 | circl2.ImageColor3 = Color3.new(1,0,0) | |
738 | circl2.Image = "rbxassetid://2312119891" | |
739 | local imgl2b = imgl2:Clone() | |
740 | imgl2b.Parent = fullscreenz | |
741 | imgl2b.ImageTransparency = 0 | |
742 | imgl2b.Size = UDim2.new(0,800,0,800) | |
743 | imgl2b.Position = UDim2.new(0.75,-100,0.55,-100) | |
744 | imgl2b.ImageColor3 = Color3.new(0,0,0) | |
745 | local ned = Instance.new("TextLabel",fullscreenz) | |
746 | ned.ZIndex = 2 | |
747 | ned.Font = "Arcade" | |
748 | ned.BackgroundTransparency = 1 | |
749 | ned.BorderSizePixel = 0.65 | |
750 | ned.Size = UDim2.new(0.3,0,0.2,0) | |
751 | ned.Position = UDim2.new(0.7,0,0.8,0) | |
752 | ned.TextColor3 = BrickColor.new("Really red").Color | |
753 | ned.TextStrokeColor3 = BrickColor.new("Really black").Color | |
754 | ned.TextScaled = true | |
755 | ned.TextStrokeTransparency = 0 | |
756 | ned.Text = "MAYHEM" | |
757 | ned.TextSize = 24 | |
758 | ned.Rotation = 1 | |
759 | ned.TextXAlignment = "Right" | |
760 | ned.TextYAlignment = "Bottom" | |
761 | ||
762 | local extrawingmod1 = Instance.new("Model",char) | |
763 | local extrawingmod2 = Instance.new("Model",char) | |
764 | ||
765 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
766 | local p = Instance.new("Part") | |
767 | p.TopSurface = 0 | |
768 | p.BottomSurface = 0 | |
769 | p.Parent = parent | |
770 | p.Size = Vector3.new(0.1,0.1,0.1) | |
771 | p.Transparency = transparency | |
772 | p.Reflectance = reflectance | |
773 | p.CanCollide = false | |
774 | p.Locked = true | |
775 | p.BrickColor = brickcolor | |
776 | p.Material = material | |
777 | return p | |
778 | end | |
779 | ||
780 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
781 | local mesh = Instance.new("SpecialMesh",parent) | |
782 | mesh.MeshType = meshtype | |
783 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
784 | return mesh | |
785 | end | |
786 | ||
787 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
788 | local mesh = Instance.new("SpecialMesh",parent) | |
789 | mesh.MeshType = "FileMesh" | |
790 | mesh.MeshId = meshid | |
791 | mesh.Scale = Vector3.new(x1,y1,z1) | |
792 | return mesh | |
793 | end | |
794 | ||
795 | ||
796 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
797 | local mesh = Instance.new("SpecialMesh",parent) | |
798 | mesh.MeshType = "FileMesh" | |
799 | mesh.MeshId = meshid | |
800 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
801 | mesh.Scale = Vector3.new(x1,y1,z1) | |
802 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
803 | return mesh | |
804 | end | |
805 | ||
806 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
807 | local weld = Instance.new("Weld") | |
808 | weld.Parent = parent | |
809 | weld.Part0 = part0 | |
810 | weld.Part1 = part1 | |
811 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
812 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
813 | return weld | |
814 | end | |
815 | ||
816 | Player=game:GetService("Players").LocalPlayer | |
817 | Character=Player.Character | |
818 | PlayerGui=Player.PlayerGui | |
819 | Backpack=Player.Backpack | |
820 | Torso=Character.Torso | |
821 | Head=Character.Head | |
822 | Humanoid=Character.Humanoid | |
823 | LeftArm=Character["Left Arm"] | |
824 | LeftLeg=Character["Left Leg"] | |
825 | RightArm=Character["Right Arm"] | |
826 | RightLeg=Character["Right Leg"] | |
827 | cam=game.Workspace.CurrentCamera | |
828 | LS=Torso["Left Shoulder"] | |
829 | LH=Torso["Left Hip"] | |
830 | RS=Torso["Right Shoulder"] | |
831 | RH=Torso["Right Hip"] | |
832 | Face = Head.face | |
833 | Neck=Torso.Neck | |
834 | it=Instance.new | |
835 | attacktype=1 | |
836 | vt=Vector3.new | |
837 | cf=CFrame.new | |
838 | euler=CFrame.fromEulerAnglesXYZ | |
839 | angles=CFrame.Angles | |
840 | cloaked=false | |
841 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
842 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
843 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
844 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
845 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
846 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
847 | RootPart=Character.HumanoidRootPart | |
848 | RootJoint=RootPart.RootJoint | |
849 | RootCF=euler(-1.57,0,3.14) | |
850 | attack = false | |
851 | bounce=false | |
852 | cooldown=false | |
853 | deeznuts=false | |
854 | attackdebounce = false | |
855 | deb=false | |
856 | equipped=true | |
857 | hand=false | |
858 | MMouse=nil | |
859 | combo=0 | |
860 | mana=0 | |
861 | trispeed=.2 | |
862 | attackmode='none' | |
863 | local idle=0 | |
864 | local Anim="Idle" | |
865 | local Effects={} | |
866 | local gun=false | |
867 | local shoot=false | |
868 | player=nil | |
869 | mana=0 | |
870 | cam = workspace.CurrentCamera | |
871 | ZTarget = nil | |
872 | RocketTarget = nil | |
873 | local m = Instance.new("Model",Character) | |
874 | m.Name = "WeaponModel" | |
875 | ||
876 | mouse=Player:GetMouse() | |
877 | --save shoulders | |
878 | RSH, LSH=nil, nil | |
879 | --welds | |
880 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
881 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
882 | LH=Torso["Left Hip"] | |
883 | RH=Torso["Right Hip"] | |
884 | TorsoColor=Torso.BrickColor | |
885 | function NoOutline(Part) | |
886 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
887 | end | |
888 | player=Player | |
889 | ch=Character | |
890 | RSH=ch.Torso["Right Shoulder"] | |
891 | LSH=ch.Torso["Left Shoulder"] | |
892 | -- | |
893 | RSH.Parent=nil | |
894 | LSH.Parent=nil | |
895 | -- | |
896 | RW.Name="Right Shoulder" | |
897 | RW.Part0=ch.Torso | |
898 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
899 | RW.C1=cf(0, 0.5, 0) | |
900 | RW.Part1=ch["Right Arm"] | |
901 | RW.Parent=ch.Torso | |
902 | -- | |
903 | LW.Name="Left Shoulder" | |
904 | LW.Part0=ch.Torso | |
905 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
906 | LW.C1=cf(0, 0.5, 0) | |
907 | LW.Part1=ch["Left Arm"] | |
908 | LW.Parent=ch.Torso | |
909 | ||
910 | function swait(num) | |
911 | if num==0 or num==nil then | |
912 | game:service'RunService'.Heartbeat:wait(0) | |
913 | else | |
914 | for i=0,num do | |
915 | game:service'RunService'.Heartbeat:wait(0) | |
916 | end | |
917 | end | |
918 | end | |
919 | ||
920 | function nooutline(part) | |
921 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
922 | end | |
923 | ||
924 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
925 | local fp=it("Part") | |
926 | fp.formFactor=formfactor | |
927 | fp.Parent=parent | |
928 | fp.Reflectance=reflectance | |
929 | fp.Transparency=transparency | |
930 | fp.CanCollide=false | |
931 | fp.Locked=true | |
932 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
933 | fp.Name=name | |
934 | fp.Size=size | |
935 | fp.Position=Character.Torso.Position | |
936 | nooutline(fp) | |
937 | fp.Material=material | |
938 | fp:BreakJoints() | |
939 | return fp | |
940 | end | |
941 | ||
942 | function ppart(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
943 | local fp = it("Part") | |
944 | fp.formFactor = formfactor | |
945 | fp.Parent = parent | |
946 | fp.Reflectance = reflectance | |
947 | fp.Transparency = transparency | |
948 | fp.CanCollide = false | |
949 | fp.Locked=true | |
950 | fp.BrickColor = brickcolor | |
951 | fp.Name = name | |
952 | fp.Size = size | |
953 | fp.Position = EffectPart.Position | |
954 | NoOutline(fp) | |
955 | fp.Material="Neon" | |
956 | fp:BreakJoints() | |
957 | return fp | |
958 | end | |
959 | ||
960 | function wweld(parent,part0,part1,c0) | |
961 | local weld=it("Weld") | |
962 | weld.Parent=parent | |
963 | weld.Part0=part0 | |
964 | weld.Part1=part1 | |
965 | weld.C0=c0 | |
966 | return weld | |
967 | end | |
968 | ||
969 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
970 | local mesh=it(Mesh) | |
971 | mesh.Parent=part | |
972 | if Mesh=="SpecialMesh" then | |
973 | mesh.MeshType=meshtype | |
974 | mesh.MeshId=meshid | |
975 | end | |
976 | mesh.Offset=offset | |
977 | mesh.Scale=scale | |
978 | return mesh | |
979 | end | |
980 | ||
981 | function decal(part,face,texture,transparency,shiny,specular,name) | |
982 | local d=it("Decal",part) | |
983 | d.Shiny=shiny | |
984 | d.Face=face | |
985 | d.Specular=specular | |
986 | d.Transparency=transparency | |
987 | d.Texture=texture | |
988 | d.Name=name | |
989 | return d | |
990 | end | |
991 | ||
992 | function weld(parent,part0,part1,c0,c1) | |
993 | local weld=it("Weld") | |
994 | weld.Parent=parent | |
995 | weld.Part0=part0 | |
996 | weld.Part1=part1 | |
997 | weld.C0=c0 | |
998 | weld.C1=c1 | |
999 | return weld | |
1000 | end | |
1001 | ||
1002 | ||
1003 | local function CFrameFromTopBack(at, top, back) | |
1004 | local right = top:Cross(back) | |
1005 | return CFrame.new(at.x, at.y, at.z, | |
1006 | right.x, top.x, back.x, | |
1007 | right.y, top.y, back.y, | |
1008 | right.z, top.z, back.z) | |
1009 | end | |
1010 | ||
1011 | function Triangle(a, b, c) | |
1012 | local edg1 = (c-a):Dot((b-a).unit) | |
1013 | local edg2 = (a-b):Dot((c-b).unit) | |
1014 | local edg3 = (b-c):Dot((a-c).unit) | |
1015 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
1016 | a, b, c = a, b, c | |
1017 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
1018 | a, b, c = b, c, a | |
1019 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
1020 | a, b, c = c, a, b | |
1021 | else | |
1022 | assert(false, "unreachable") | |
1023 | end | |
1024 | ||
1025 | local len1 = (c-a):Dot((b-a).unit) | |
1026 | local len2 = (b-a).magnitude - len1 | |
1027 | local width = (a + (b-a).unit*len1 - c).magnitude | |
1028 | ||
1029 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
1030 | ||
1031 | local list = {} | |
1032 | ||
1033 | local TrailColor = ("Royal purple") | |
1034 | ||
1035 | if len1 > 0.01 then | |
1036 | local w1 = Instance.new('WedgePart', m) | |
1037 | game:GetService("Debris"):AddItem(w1,5) | |
1038 | w1.Material = "Neon" | |
1039 | w1.FormFactor = 'Custom' | |
1040 | w1.BrickColor = BrickColor.new(TrailColor) | |
1041 | w1.Transparency = 0 | |
1042 | w1.Reflectance = 0 | |
1043 | w1.Material = "Neon" | |
1044 | w1.CanCollide = false | |
1045 | NoOutline(w1) | |
1046 | local sz = Vector3.new(0.2, width, len1) | |
1047 | w1.Size = sz | |
1048 | local sp = Instance.new("SpecialMesh",w1) | |
1049 | sp.MeshType = "Wedge" | |
1050 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
1051 | w1:BreakJoints() | |
1052 | w1.Anchored = true | |
1053 | w1.Parent = workspace | |
1054 | w1.Transparency = 0.7 | |
1055 | table.insert(Effects,{w1,"Disappear",.01}) | |
1056 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
1057 | table.insert(list,w1) | |
1058 | end | |
1059 | ||
1060 | if len2 > 0.01 then | |
1061 | local w2 = Instance.new('WedgePart', m) | |
1062 | game:GetService("Debris"):AddItem(w2,5) | |
1063 | w2.Material = "Neon" | |
1064 | w2.FormFactor = 'Custom' | |
1065 | w2.BrickColor = BrickColor.new(TrailColor) | |
1066 | w2.Transparency = 0 | |
1067 | w2.Reflectance = 0 | |
1068 | w2.Material = "Neon" | |
1069 | w2.CanCollide = false | |
1070 | NoOutline(w2) | |
1071 | local sz = Vector3.new(0.2, width, len2) | |
1072 | w2.Size = sz | |
1073 | local sp = Instance.new("SpecialMesh",w2) | |
1074 | sp.MeshType = "Wedge" | |
1075 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
1076 | w2:BreakJoints() | |
1077 | w2.Anchored = true | |
1078 | w2.Parent = workspace | |
1079 | w2.Transparency = 0.7 | |
1080 | table.insert(Effects,{w2,"Disappear",.01}) | |
1081 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
1082 | table.insert(list,w2) | |
1083 | end | |
1084 | return unpack(list) | |
1085 | end | |
1086 | ||
1087 | ||
1088 | so = function(id,par,vol,pit) | |
1089 | coroutine.resume(coroutine.create(function() | |
1090 | local sou = Instance.new("Sound",par or workspace) | |
1091 | sou.Volume=vol | |
1092 | sou.Pitch=pit or 1 | |
1093 | sou.SoundId=id | |
1094 | swait() | |
1095 | sou:play() | |
1096 | game:GetService("Debris"):AddItem(sou,6) | |
1097 | end)) | |
1098 | end | |
1099 | ||
1100 | function clerp(a,b,t) | |
1101 | local qa = {QuaternionFromCFrame(a)} | |
1102 | local qb = {QuaternionFromCFrame(b)} | |
1103 | local ax, ay, az = a.x, a.y, a.z | |
1104 | local bx, by, bz = b.x, b.y, b.z | |
1105 | local _t = 1-t | |
1106 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
1107 | end | |
1108 | ||
1109 | function QuaternionFromCFrame(cf) | |
1110 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1111 | local trace = m00 + m11 + m22 | |
1112 | if trace > 0 then | |
1113 | local s = math.sqrt(1 + trace) | |
1114 | local recip = 0.5/s | |
1115 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
1116 | else | |
1117 | local i = 0 | |
1118 | if m11 > m00 then | |
1119 | i = 1 | |
1120 | end | |
1121 | if m22 > (i == 0 and m00 or m11) then | |
1122 | i = 2 | |
1123 | end | |
1124 | if i == 0 then | |
1125 | local s = math.sqrt(m00-m11-m22+1) | |
1126 | local recip = 0.5/s | |
1127 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
1128 | elseif i == 1 then | |
1129 | local s = math.sqrt(m11-m22-m00+1) | |
1130 | local recip = 0.5/s | |
1131 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
1132 | elseif i == 2 then | |
1133 | local s = math.sqrt(m22-m00-m11+1) | |
1134 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
1135 | end | |
1136 | end | |
1137 | end | |
1138 | ||
1139 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1140 | local xs, ys, zs = x + x, y + y, z + z | |
1141 | local wx, wy, wz = w*xs, w*ys, w*zs | |
1142 | local xx = x*xs | |
1143 | local xy = x*ys | |
1144 | local xz = x*zs | |
1145 | local yy = y*ys | |
1146 | local yz = y*zs | |
1147 | local zz = z*zs | |
1148 | 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)) | |
1149 | end | |
1150 | ||
1151 | function QuaternionSlerp(a, b, t) | |
1152 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
1153 | local startInterp, finishInterp; | |
1154 | if cosTheta >= 0.0001 then | |
1155 | if (1 - cosTheta) > 0.0001 then | |
1156 | local theta = math.acos(cosTheta) | |
1157 | local invSinTheta = 1/math.sin(theta) | |
1158 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
1159 | finishInterp = math.sin(t*theta)*invSinTheta | |
1160 | else | |
1161 | startInterp = 1-t | |
1162 | finishInterp = t | |
1163 | end | |
1164 | else | |
1165 | if (1+cosTheta) > 0.0001 then | |
1166 | local theta = math.acos(-cosTheta) | |
1167 | local invSinTheta = 1/math.sin(theta) | |
1168 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
1169 | finishInterp = math.sin(t*theta)*invSinTheta | |
1170 | else | |
1171 | startInterp = t-1 | |
1172 | finishInterp = t | |
1173 | end | |
1174 | end | |
1175 | 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 | |
1176 | end | |
1177 | ||
1178 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1179 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1180 | end | |
1181 | ||
1182 | Damagefunc=function(Part,hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
1183 | if hit.Parent==nil then | |
1184 | return | |
1185 | end | |
1186 | local h=hit.Parent:FindFirstChild("Humanoid") | |
1187 | for _,v in pairs(hit.Parent:children()) do | |
1188 | if v:IsA("Humanoid") then | |
1189 | h=v | |
1190 | end | |
1191 | end | |
1192 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then | |
1193 | h=hit.Parent.Parent:FindFirstChild("Humanoid") | |
1194 | end | |
1195 | if hit.Parent.className=="Hat" then | |
1196 | hit=hit.Parent.Parent:findFirstChild("Head") | |
1197 | end | |
1198 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then | |
1199 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end | |
1200 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
1201 | return | |
1202 | end]] | |
1203 | -- hs(hit,1.2) | |
1204 | local c=Instance.new("ObjectValue") | |
1205 | c.Name="creator" | |
1206 | c.Value=game:service("Players").LocalPlayer | |
1207 | c.Parent=h | |
1208 | game:GetService("Debris"):AddItem(c,.5) | |
1209 | local Damage=math.random(minim,maxim) | |
1210 | -- h:TakeDamage(Damage) | |
1211 | local blocked=false | |
1212 | local block=hit.Parent:findFirstChild("Block") | |
1213 | if block~=nil then | |
1214 | print(block.className) | |
1215 | if block.className=="NumberValue" then | |
1216 | if block.Value>0 then | |
1217 | blocked=true | |
1218 | if decreaseblock==nil then | |
1219 | block.Value=block.Value-1 | |
1220 | end | |
1221 | end | |
1222 | end | |
1223 | if block.className=="IntValue" then | |
1224 | if block.Value>0 then | |
1225 | blocked=true | |
1226 | if decreaseblock~=nil then | |
1227 | block.Value=block.Value-1 | |
1228 | end | |
1229 | end | |
1230 | end | |
1231 | end | |
1232 | if blocked==false then | |
1233 | -- h:TakeDamage(Damage) | |
1234 | h.Health=h.Health-Damage | |
1235 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, Part.BrickColor.Color) | |
1236 | else | |
1237 | h.Health=h.Health-(Damage/2) | |
1238 | ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Bright blue").Color) | |
1239 | end | |
1240 | if Type=="Knockdown" then | |
1241 | local hum=hit.Parent.Humanoid | |
1242 | hum.PlatformStand=true | |
1243 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1244 | swait(1) | |
1245 | HHumanoid.PlatformStand=false | |
1246 | end),hum) | |
1247 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
1248 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
1249 | local bodvol=Instance.new("BodyVelocity") | |
1250 | bodvol.velocity=angle*knockback | |
1251 | bodvol.P=5000 | |
1252 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
1253 | bodvol.Parent=hit | |
1254 | local rl=Instance.new("BodyAngularVelocity") | |
1255 | rl.P=3000 | |
1256 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
1257 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
1258 | rl.Parent=hit | |
1259 | game:GetService("Debris"):AddItem(bodvol,.5) | |
1260 | game:GetService("Debris"):AddItem(rl,.5) | |
1261 | elseif Type=="Normal" then | |
1262 | local vp=Instance.new("BodyVelocity") | |
1263 | vp.P=500 | |
1264 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
1265 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
1266 | if KnockbackType==1 then | |
1267 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
1268 | elseif KnockbackType==2 then | |
1269 | vp.velocity=Property.CFrame.lookVector*knockback | |
1270 | end | |
1271 | if knockback>0 then | |
1272 | vp.Parent=hit.Parent.Torso | |
1273 | end | |
1274 | game:GetService("Debris"):AddItem(vp,.5) | |
1275 | elseif Type=="Up" then | |
1276 | local bodyVelocity=Instance.new("BodyVelocity") | |
1277 | bodyVelocity.velocity=vt(0,60,0) | |
1278 | bodyVelocity.P=5000 | |
1279 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
1280 | bodyVelocity.Parent=hit | |
1281 | game:GetService("Debris"):AddItem(bodyVelocity,1) | |
1282 | local rl=Instance.new("BodyAngularVelocity") | |
1283 | rl.P=3000 | |
1284 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
1285 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
1286 | rl.Parent=hit | |
1287 | game:GetService("Debris"):AddItem(rl,.5) | |
1288 | elseif Type=="Snare" then | |
1289 | local bp=Instance.new("BodyPosition") | |
1290 | bp.P=2000 | |
1291 | bp.D=100 | |
1292 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
1293 | bp.position=hit.Parent.Torso.Position | |
1294 | bp.Parent=hit.Parent.Torso | |
1295 | game:GetService("Debris"):AddItem(bp,1) | |
1296 | elseif Type=="Target" then | |
1297 | local Targetting = false | |
1298 | if Targetting==false then | |
1299 | ZTarget=hit.Parent.Torso | |
1300 | coroutine.resume(coroutine.create(function(Part) | |
1301 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
1302 | swait(5) | |
1303 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) | |
1304 | end),ZTarget) | |
1305 | local TargHum=ZTarget.Parent:findFirstChild("Humanoid") | |
1306 | local targetgui=Instance.new("BillboardGui") | |
1307 | targetgui.Parent=ZTarget | |
1308 | targetgui.Size=UDim2.new(10,100,10,100) | |
1309 | local targ=Instance.new("ImageLabel") | |
1310 | targ.Parent=targetgui | |
1311 | targ.BackgroundTransparency=1 | |
1312 | targ.Image="rbxassetid://4834067" | |
1313 | targ.Size=UDim2.new(1,0,1,0) | |
1314 | cam.CameraType="Scriptable" | |
1315 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
1316 | local dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
1317 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
1318 | Targetting=true | |
1319 | RocketTarget=ZTarget | |
1320 | for i=1,Property do | |
1321 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
1322 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
1323 | swait() | |
1324 | end | |
1325 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
1326 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
1327 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
1328 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
1329 | end | |
1330 | Targetting=false | |
1331 | RocketTarget=nil | |
1332 | targetgui.Parent=nil | |
1333 | cam.CameraType="Custom" | |
1334 | end | |
1335 | end | |
1336 | local debounce=Instance.new("BoolValue") | |
1337 | debounce.Name="DebounceHit" | |
1338 | debounce.Parent=hit.Parent | |
1339 | debounce.Value=true | |
1340 | game:GetService("Debris"):AddItem(debounce,Delay) | |
1341 | c=Instance.new("ObjectValue") | |
1342 | c.Name="creator" | |
1343 | c.Value=Player | |
1344 | c.Parent=h | |
1345 | game:GetService("Debris"):AddItem(c,.5) | |
1346 | end | |
1347 | end | |
1348 | ||
1349 | ||
1350 | function ShowDamage(Pos, Text, Time, Color) | |
1351 | local Rate = (1 / 30) | |
1352 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
1353 | local Text = (Text or "") | |
1354 | local Time = (Time or 2) | |
1355 | local Color = (Color or Color3.new(1, 0, 0)) | |
1356 | local EffectPart = part("Custom",workspace,"SmoothPlastic",0,1,BrickColor.new(Color),"Effect",vt(0,0,0)) | |
1357 | EffectPart.Anchored = true | |
1358 | local BillboardGui = Instance.new("BillboardGui") | |
1359 | BillboardGui.Size = UDim2.new(3, 0, 3, 0) | |
1360 | BillboardGui.Adornee = EffectPart | |
1361 | local TextLabel = Instance.new("TextLabel") | |
1362 | TextLabel.BackgroundTransparency = 1 | |
1363 | TextLabel.Size = UDim2.new(1, 0, 1, 0) | |
1364 | TextLabel.Text = Text | |
1365 | TextLabel.TextColor3 = Color | |
1366 | TextLabel.TextScaled = true | |
1367 | TextLabel.Font = Enum.Font.ArialBold | |
1368 | TextLabel.Parent = BillboardGui | |
1369 | BillboardGui.Parent = EffectPart | |
1370 | game.Debris:AddItem(EffectPart, (Time + 0.1)) | |
1371 | EffectPart.Parent = game:GetService("Workspace") | |
1372 | Delay(0, function() | |
1373 | local Frames = (Time / Rate) | |
1374 | for Frame = 1, Frames do | |
1375 | wait(Rate) | |
1376 | local Percent = (Frame / Frames) | |
1377 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1378 | TextLabel.TextTransparency = Percent | |
1379 | end | |
1380 | if EffectPart and EffectPart.Parent then | |
1381 | EffectPart:Destroy() | |
1382 | end | |
1383 | end) | |
1384 | end | |
1385 | ||
1386 | handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Handle",Vector3.new(0.200000003, 1.61857152, 0.200000003)) | |
1387 | handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.995889783, -0.101109691, 0.0468789339, -5.23798153e-005, 0.99999994, -0.000210702419, -6.36925748e-008, -0.000210702419, -0.99999994, -1, -5.23798008e-005, 7.47295417e-008)) | |
1388 | mesh("CylinderMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 1, 0.857142746)) | |
1389 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.257142872, 0.911428571)) | |
1390 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00982296467, -0.128642559, 5.57254982, -1.21753502e-007, -2.87620594e-010, 1, -1, -1.04306673e-006, -1.2175461e-007, 1.04306673e-006, -1, -2.87123214e-010)) | |
1391 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1)) | |
1392 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.571428657)) | |
1393 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0100114346, 3.24283266, 2.64644623e-005, -2.98713599e-006, -1.63886575e-008, -1, -1.18017197e-005, -0.99999994, 1.64265153e-008, -0.99999994, 1.18017197e-005, 2.98713007e-006)) | |
1394 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1)) | |
1395 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 3.74285722, 0.514285743)) | |
1396 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00896048546, 3.24313331, -6.2584877e-006, -2.62832918e-006, -1.58840017e-008, -1, -1.16825104e-005, -0.99999994, 1.59122848e-008, -0.99999994, 1.16825104e-005, 2.62831986e-006)) | |
1397 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1)) | |
1398 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.914285779, 0.254285723)) | |
1399 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0080575943, -5.57459974, 0.127099097, -7.20826961e-007, -1.18548371e-009, 1, 6.25863322e-007, 1, 1.18891563e-009, -1, 6.25863322e-007, -7.20827984e-007)) | |
1400 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.571428537, 1, 1)) | |
1401 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 0.942857206, 0.28285715)) | |
1402 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00858414173, -5.58866072, 0.142816901, -5.41048905e-007, -8.99582631e-010, 1, -5.96046448e-007, 0.99999994, 9.00953978e-010, -0.99999994, -5.96046448e-007, -5.41057148e-007)) | |
1403 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1)) | |
1404 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.200000003, 0.285714328, 0.940000057)) | |
1405 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.011053443, -0.142930448, 5.58944941, 2.97432763e-007, 3.64387631e-010, 1, -1, 6.25863322e-007, 2.9743137e-007, -6.25863322e-007, -1, 3.63804986e-010)) | |
1406 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 1, 1)) | |
1407 | Part=part(Enum.FormFactor.Brick,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1, 1.20000005, 1)) | |
1408 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.57627869e-007, -0.809324801, 1.96695328e-006, 6.20105922e-008, 2.27451835e-010, -1, 1.81795622e-006, 1, 2.27856845e-010, 1, -1.81795622e-006, 6.2011928e-008)) | |
1409 | mesh("SpecialMesh",Part,Enum.MeshType.Head,"",Vector3.new(0, 0, 0),Vector3.new(0.285714298, 0.142857134, 0.285714298)) | |
1410 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601)) | |
1411 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00226664543, 0.69951874, 1.00827909, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007)) | |
1412 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179)) | |
1413 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422)) | |
1414 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487548, -0.00217807293, 3.74913216e-005, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008)) | |
1415 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.857145786, 1)) | |
1416 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.892679513, 0.539954185, 0.771299422)) | |
1417 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.19487882, -0.00217807293, 4.00543213e-005, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008)) | |
1418 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.571431458, 1.10000002)) | |
1419 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492851, 0.539954185, 0.539909601)) | |
1420 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00595891476, -1.00750566, 1.00747085, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007)) | |
1421 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714179)) | |
1422 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.483492821, 0.539954185, 0.539909601)) | |
1423 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00534570217, -1.00757694, -0.698815584, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007)) | |
1424 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269)) | |
1425 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.493492872, 0.539954185, 0.539909601)) | |
1426 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000260472298, 0.6988675, -0.698937058, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007)) | |
1427 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.285714179, 0.285714269)) | |
1428 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003)) | |
1429 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00927072763, -0.0121991634, 1.19311547, 0.999999881, -2.08614802e-006, 1.9306286e-007, -1.93059051e-007, -1.09411957e-007, 1, -2.08616257e-006, -0.999999881, -1.09408283e-007)) | |
1430 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1431 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003)) | |
1432 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.604586363, -0.0121991634, 1.02863288, 0.866026282, 0.499998033, 2.28958157e-007, -1.93872992e-007, -1.22099237e-007, 1, 0.499998033, -0.866026282, -8.79730777e-009)) | |
1433 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1434 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267962, 0.200000003, 0.200000003)) | |
1435 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.03790355, -0.0121991634, 0.588528812, 0.500001669, 0.866024196, 1.74744486e-007, -1.6279435e-007, -1.0777579e-007, 1, 0.866024196, -0.500001669, 8.71042545e-008)) | |
1436 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1437 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.662679553, 0.200000003, 0.200000003)) | |
1438 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.39311564, -0.0121991634, -0.00927072763, 2.08616257e-006, 0.999999881, 7.82298955e-008, -1.51383063e-007, -7.82268899e-008, 1, 0.999999881, -2.08614802e-006, 1.51386175e-007)) | |
1439 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1440 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.46267951, 0.200000003, 0.200000003)) | |
1441 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.02863288, -0.0121997595, -0.604586482, -0.499998093, 0.866026223, -6.44970513e-008, -1.45620604e-007, -9.60127267e-009, 1, 0.866026223, 0.499998093, 1.30918266e-007)) | |
1442 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1443 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.06267953, 0.200000003, 0.200000003)) | |
1444 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.588528991, -0.0121992826, -1.03790355, -0.866024137, 0.500001729, -9.11133142e-008, -1.16737233e-007, -1.99774206e-008, 1, 0.500001729, 0.866024137, 7.56750538e-008)) | |
1445 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1446 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.372464359, 0.762464345, 0.762464285)) | |
1447 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00338602066, -0.736121356, -0.540583551, 5.41296288e-007, 9.50464596e-010, -1, 0.707107663, -0.707105815, 3.8208583e-007, -0.707105815, -0.707107663, -3.83435292e-007)) | |
1448 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542364)) | |
1449 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.382464379, 0.762464345, 0.762464285)) | |
1450 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00803625584, -0.737174749, 0.736498654, 3.01447898e-007, 5.80818948e-010, -1, -0.707105994, -0.707107365, -2.13563524e-007, -0.707107365, 0.707106113, -2.12752497e-007)) | |
1451 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.913885474, 0.128561974, 0.128542408)) | |
1452 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285)) | |
1453 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00594449043, 0.540397167, 0.737201214, 2.4158129e-007, 4.89748686e-010, -1, -0.707107604, 0.707105875, -1.70486445e-007, 0.707105815, 0.707107544, 1.71177419e-007)) | |
1454 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366609, 0.128561974, 0.128542408)) | |
1455 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(0.40246433, 0.762464345, 0.762464285)) | |
1456 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00681877136, 0.540436149, -0.541088939, -1.81721958e-007, -3.98678424e-010, 1, -0.707107067, 0.707106411, -1.28216811e-007, -0.707106411, -0.707106948, -1.28784094e-007)) | |
1457 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.895366669, 0.128561974, 0.128542364)) | |
1458 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285)) | |
1459 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910848916, -0.00147974491, 0.000465214252, 2.29479338e-006, 1, 7.06279479e-012, -6.20287395e-008, -7.34701189e-012, 1, 1, -2.29479338e-006, 6.20337914e-008)) | |
1460 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.385687381, 0.642712057)) | |
1461 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Royal purple","SwordPart",Vector3.new(1.26045096, 0.762464345, 0.762464285)) | |
1462 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.910846829, -0.00147974491, 0.000467300415, 2.0563748e-006, 1, 1.14326326e-011, -6.20178255e-008, -1.28039801e-011, 1, 1, -2.0563748e-006, 6.20228633e-008)) | |
1463 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.10000002, 0.257125348, 0.706983268)) | |
1464 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","SwordPart",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
1465 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.98755074e-005, -0.86527884, -0.00526940823, 0.99999994, -3.33786011e-006, -1.61662047e-006, 3.33786011e-006, 0.99999994, -1.75251103e-009, 1.61662604e-006, 1.74897963e-009, 1)) | |
1466 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.857142806, 0.857145548, 0.857142746)) | |
1467 | Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","Hitbox",Vector3.new(0.650000036, 4.19999981, 0.200000003)) | |
1468 | Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0107657909, -3.95914412, 0.00325751305, 0.999999821, -0.000211339415, 2.39198562e-006, 0.000211339124, 0.999997795, -6.21902582e-005, -2.38056168e-006, 6.20116552e-005, 0.999992907)) | |
1469 | EffectPart=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Royal purple","EffectPart",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
1470 | EffectPartweld=weld(m,handle,EffectPart,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008)) | |
1471 | mesh("BlockMesh",EffectPart,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
1472 | EffectPart2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Black","EffectPart2",Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
1473 | EffectPart2weld=weld(m,Character["Left Arm"],EffectPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008)) | |
1474 | ||
1475 | DarkRiftF=function(par) | |
1476 | while lol == true do | |
1477 | wait() | |
1478 | local PWN={} | |
1479 | for _,v in pairs(game.Workspace:children()) do | |
1480 | if v.className=="Model" and v:FindFirstChild("Humanoid")~=nil then | |
1481 | if v.Humanoid.Health>0 and v:FindFirstChild("Torso")~=nil then | |
1482 | table.insert(PWN,v.Torso) | |
1483 | end | |
1484 | end | |
1485 | end | |
1486 | for _,t in pairs(PWN) do | |
1487 | local targ=par.Position-t.Position | |
1488 | local Mag=targ.magnitude | |
1489 | if not t:IsDescendantOf(Character) and t~=nil and Mag<=50 then | |
1490 | if Mag<=30 then | |
1491 | t.Parent.Humanoid:TakeDamage(.5) | |
1492 | local rl=Instance.new("BodyAngularVelocity") | |
1493 | rl.P=3000 | |
1494 | rl.maxTorque=Vector3.new(500000,500000,500000)*5000 | |
1495 | rl.angularvelocity=Vector3.new(math.random(-20,20),math.random(-20,20),math.random(-20,20))/10 | |
1496 | rl.Parent=t | |
1497 | game:GetService("Debris"):AddItem(rl,.1) | |
1498 | end | |
1499 | if Mag<=20 then | |
1500 | t.Parent.Humanoid:TakeDamage(.1) | |
1501 | else | |
1502 | local vl=Instance.new("BodyVelocity") | |
1503 | vl.P=3000 | |
1504 | vl.maxForce=Vector3.new(50000000000,50000000000,50000000000) | |
1505 | vl.velocity=(t.Position-par.Position).unit*-(70/(Mag)) | |
1506 | vl.Parent=t | |
1507 | game:GetService("Debris"):AddItem(vl,.1) | |
1508 | end | |
1509 | end | |
1510 | end | |
1511 | wait(.08) | |
1512 | end | |
1513 | end | |
1514 | ||
1515 | function DerpMagic(part,x1,y1,z1,x2,y2,z2,color) | |
1516 | local msh1 = Instance.new("BlockMesh") | |
1517 | msh1.Scale = Vector3.new(0.5,0.5,0.5) | |
1518 | local S=Instance.new("Part") | |
1519 | S.Name="Effect" | |
1520 | S.Material="Neon" | |
1521 | S.formFactor=0 | |
1522 | S.Size=Vector3.new(x1,y1,z1) | |
1523 | S.BrickColor=color | |
1524 | S.Reflectance = 0 | |
1525 | S.TopSurface=0 | |
1526 | S.BottomSurface=0 | |
1527 | S.Transparency=0 | |
1528 | S.Anchored=false | |
1529 | S.CanCollide=false | |
1530 | S.CFrame=part.CFrame | |
1531 | S.Parent=game.Workspace | |
1532 | msh1.Parent = S | |
1533 | local W=Instance.new("Weld") | |
1534 | W.Parent=S | |
1535 | W.Part0=S | |
1536 | W.Part1=part | |
1537 | W.C0=CFrame.new(x2,y2,z2) * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1538 | W.Parent=nil | |
1539 | S.Anchored=true | |
1540 | coroutine.resume(coroutine.create(function(Part,Weld) for i=1, 9 do Part.Mesh.Scale = Part.Mesh.Scale + Vector3.new(0.1,0.1,0.1) --[[Part.CFrame=Part.CFrame*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50))]] Part.Transparency=i*.1 wait() end Part.Parent=nil Weld.Parent=nil end),S,W) | |
1541 | end | |
1542 | ||
1543 | local function BlackHole(parent,cframe) | |
1544 | local effectsmsh = Instance.new("SpecialMesh") | |
1545 | effectsmsh.MeshId = "http://www.roblox.com/asset/?id=15887356" | |
1546 | --effectsmsh.Scale = Vector3.new(1,1,2.5) | |
1547 | effectsmsh.Scale = Vector3.new(3,3,3) | |
1548 | local effectsg = Instance.new("Part") | |
1549 | effectsg.formFactor = 3 | |
1550 | effectsg.CanCollide = false | |
1551 | effectsg.Name = "Effect" | |
1552 | effectsg.Locked = true | |
1553 | effectsg.Transparency = 1 | |
1554 | effectsg.Size = Vector3.new(0.2,0.2,0.2) | |
1555 | effectsg.Parent = parent | |
1556 | effectsg.BrickColor = BrickColor.new("Royal purple") | |
1557 | effectsg.Material="Neon" | |
1558 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1559 | local Mesh = Instance.new("SpecialMesh") | |
1560 | Mesh.Scale = Vector3.new(0.5,0.5,0.5) | |
1561 | Mesh.MeshType = "Sphere" | |
1562 | -- Mesh.TextureId="http://www.roblox.com/asset/?id=1529460" | |
1563 | Part=Instance.new("Part") | |
1564 | Part.Name="Effect" | |
1565 | Part.formFactor=0 | |
1566 | Part.Size=Vector3.new(1,1,1) | |
1567 | Part.BrickColor=BrickColor.new("Royal purple") | |
1568 | Part.Material="Neon" | |
1569 | Part.Reflectance = 0 | |
1570 | Part.TopSurface=0 | |
1571 | Part.BottomSurface=0 | |
1572 | Part.Transparency=0 | |
1573 | Part.Anchored=true | |
1574 | NoOutline(Part) | |
1575 | Part.CanCollide=false | |
1576 | Part.CFrame=cframe | |
1577 | Part.Parent=parent | |
1578 | Mesh.Parent = Part | |
1579 | lol=true | |
1580 | coroutine.resume(coroutine.create(function() | |
1581 | DarkRiftF(Part) | |
1582 | end)) | |
1583 | for i=0,200 do | |
1584 | wait() | |
1585 | DerpMagic(Part,1,i/3,1,0,i/3,0,BrickColor.new("Royal purple")) | |
1586 | Mesh.Scale=Mesh.Scale-Vector3.new(0.2,0.2,0.2) | |
1587 | Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1588 | end | |
1589 | local fff=200 | |
1590 | for i=0,100 do | |
1591 | wait() | |
1592 | DerpMagic(Part,1,fff/3,1,0,fff/3,0,BrickColor.new("Royal purple")) | |
1593 | Part.CFrame=cframe*CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1594 | end | |
1595 | for i=0,1,0.05 do | |
1596 | wait() | |
1597 | Part.Transparency=Part.Transparency+0.05 | |
1598 | Mesh.Scale=Mesh.Scale+Vector3.new(1.5,1.5,1.5) | |
1599 | end | |
1600 | lol=false | |
1601 | Part.Parent=nil | |
1602 | end),nil,nil) | |
1603 | end | |
1604 | ||
1605 | function makeShockwave(height,color,speed,range,pulse) | |
1606 | local range = range or 2000 | |
1607 | local p = Instance.new("Part") | |
1608 | p.Anchored = true | |
1609 | p.CanCollide = false | |
1610 | p.FormFactor = "Custom" | |
1611 | p.BrickColor = color | |
1612 | p.Parent = workspace | |
1613 | local m = Instance.new("SpecialMesh",p) | |
1614 | m.MeshId = "rbxassetid://3270017" | |
1615 | local estimateSurvival = math.floor(range/speed) * 0.03 | |
1616 | game:GetService("Debris"):AddItem(p,estimateSurvival) | |
1617 | Spawn(function () | |
1618 | for i = 1,range,speed do | |
1619 | p.Transparency = 1-math.min(0.5,3-(i/500)) | |
1620 | m.Scale = Vector3.new(i,i,i*height) | |
1621 | p.CFrame = CFrame.new(Torso.Position) * CFrame.Angles(math.rad(90),0,0) | |
1622 | wait() | |
1623 | end | |
1624 | p:Destroy() | |
1625 | end) | |
1626 | end | |
1627 | ||
1628 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1629 | local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1630 | prt.Anchored=true | |
1631 | prt.CFrame=cframe | |
1632 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(.1,.1,.1)) | |
1633 | game:GetService("Debris"):AddItem(prt,2) | |
1634 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1635 | for i=0,2,delay do | |
1636 | wait() | |
1637 | Part.CFrame=Part.CFrame | |
1638 | Part.Transparency=i | |
1639 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1640 | end | |
1641 | Part.Parent=nil | |
1642 | end),prt,msh) | |
1643 | end | |
1644 | ||
1645 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1646 | local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1647 | prt.Anchored=true | |
1648 | prt.CFrame=cframe | |
1649 | local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1650 | game:GetService("Debris"):AddItem(prt,5) | |
1651 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1652 | for i=0,1,delay do | |
1653 | wait() | |
1654 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1655 | Part.Transparency=i | |
1656 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1657 | end | |
1658 | Part.Parent=nil | |
1659 | end),prt,msh) | |
1660 | end | |
1661 | ||
1662 | local function MagicRing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,Type,parent) | |
1663 | local prt=ppart(3,game.Workspace,0,1,brickcolor,"Effect",vt()) | |
1664 | if Type~=2 then | |
1665 | prt.Anchored=true | |
1666 | end | |
1667 | prt.CFrame=cframe | |
1668 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1)) | |
1669 | game:GetService("Debris"):AddItem(prt,5) | |
1670 | coroutine.resume(coroutine.create(function(Part,Mesh,dur) | |
1671 | local wld=nil | |
1672 | if dur==2 then | |
1673 | wld=weld(Part,Part,parent,euler(0,0,0)*cf(0,0,0)) | |
1674 | end | |
1675 | for i=0,1,delay do | |
1676 | swait() | |
1677 | if dur==1 then | |
1678 | Part.CFrame=Part.CFrame | |
1679 | elseif dur==2 then | |
1680 | wld.C0=cframe | |
1681 | end | |
1682 | Part.Transparency=i | |
1683 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1684 | end | |
1685 | Part.Parent=nil | |
1686 | end),prt,msh,Type) | |
1687 | end | |
1688 | ||
1689 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1690 | local prt=ppart(3,game.Workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1691 | prt.Anchored=true | |
1692 | prt.CFrame=cframe | |
1693 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
1694 | game:GetService("Debris"):AddItem(prt,5) | |
1695 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1696 | for i=0,1,delay do | |
1697 | swait() | |
1698 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
1699 | Part.Transparency=i | |
1700 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1701 | end | |
1702 | Part.Parent=nil | |
1703 | end),prt,msh) | |
1704 | end | |
1705 | ||
1706 | function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1707 | local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2)) | |
1708 | prt.Anchored=true | |
1709 | prt.CFrame=cframe | |
1710 | local msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1)) | |
1711 | game:GetService("Debris"):AddItem(prt,5) | |
1712 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1713 | for i=0,1,delay do | |
1714 | wait() | |
1715 | Part.CFrame=Part.CFrame | |
1716 | Part.Transparency=i | |
1717 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1718 | end | |
1719 | Part.Parent=nil | |
1720 | end),prt,msh) | |
1721 | end | |
1722 | ||
1723 | function MagicWave(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1724 | local prt=ppart(3,workspace,0,0,brickcolor,"Effect",vt()) | |
1725 | prt.Anchored=true | |
1726 | prt.CFrame=cframe | |
1727 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
1728 | game:GetService("Debris"):AddItem(prt,5) | |
1729 | table.insert(Effects,{prt,"Cylinder",delay,x3,y3,z3}) | |
1730 | end | |
1731 | ||
1732 | function Blast(parent) | |
1733 | MagicBlock(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01) | |
1734 | MagicWaveThing(BrickColor.new("Black"),parent.CFrame,4,4,4,0.2,0.2,0.2,0.01) | |
1735 | end | |
1736 | ||
1737 | function ChargeBall(parent,t) | |
1738 | local counter=0 | |
1739 | local size=1 | |
1740 | for i=0,t,1 do | |
1741 | swait() | |
1742 | counter=counter+1 | |
1743 | if counter%10==0 then | |
1744 | if size==3 then | |
1745 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1746 | elseif size==2 then | |
1747 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1748 | end | |
1749 | end | |
1750 | if counter%5==0 then | |
1751 | if size==1 then | |
1752 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1753 | elseif size==2 then | |
1754 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1755 | elseif size==3 then | |
1756 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1757 | end | |
1758 | end | |
1759 | end | |
1760 | end | |
1761 | ||
1762 | function ChargeBall2(parent,t) | |
1763 | local counter=0 | |
1764 | local size=1 | |
1765 | for i=0,t,1 do | |
1766 | swait() | |
1767 | counter=counter+1 | |
1768 | if counter%10==0 then | |
1769 | if size==3 then | |
1770 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1771 | elseif size==2 then | |
1772 | MagicRing(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1773 | end | |
1774 | end | |
1775 | if counter%5==0 then | |
1776 | if size==1 then | |
1777 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1778 | MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05) | |
1779 | elseif size==2 then | |
1780 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1781 | MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05) | |
1782 | elseif size==3 then | |
1783 | MagicBlock(BrickColor.new("Black"),parent.CFrame,.5,.5,.5,1,1,1,0.1,3,parent) | |
1784 | MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),1,1,1,1,.5,1,0.05) | |
1785 | end | |
1786 | end | |
1787 | end | |
1788 | end | |
1789 | ||
1790 | function MagniDamage(Part,dis,mind,maxd,force,knock) | |
1791 | for _,c in pairs(workspace:children()) do | |
1792 | local hum=c:findFirstChild("Humanoid") | |
1793 | if hum~=nil then | |
1794 | local head=c:findFirstChild("Torso") | |
1795 | if head~=nil then | |
1796 | local targ=head.Position-Part.Position | |
1797 | local mag=targ.magnitude | |
1798 | if mag<=dis and c.Name~=Character.Name then | |
1799 | Damagefunc(Part,hum.Parent.Torso,mind,maxd,force,knock,RootPart,.2,1) | |
1800 | end | |
1801 | end | |
1802 | end | |
1803 | end | |
1804 | end | |
1805 | ||
1806 | function computeDirection(vec) | |
1807 | local lenSquared = vec.magnitude * vec.magnitude | |
1808 | local invSqrt = 1 / math.sqrt(lenSquared) | |
1809 | return Vector3.new(vec.x * invSqrt, vec.y * invSqrt, vec.z * invSqrt) | |
1810 | end | |
1811 | ||
1812 | function attackone() | |
1813 | attack = true | |
1814 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
1815 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end) | |
1816 | local fx=Hitbox.Touched:connect(function(part) | |
1817 | local human=part.Parent:findFirstChild("Humanoid") | |
1818 | if human~=nil and bounce==false then | |
1819 | bounce=true | |
1820 | local rndm=math.random(1,#hitsounds) | |
1821 | local r=rndm | |
1822 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1) | |
1823 | end | |
1824 | end) | |
1825 | for i = 0,1,0.1 do | |
1826 | swait() | |
1827 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-50)),0.4) | |
1828 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(50)),0.4) | |
1829 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(100)),0.4) | |
1830 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-60)),0.4) | |
1831 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(120),math.rad(0)),0.4) | |
1832 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),0.4) | |
1833 | end | |
1834 | so("http://www.roblox.com/asset/?id=199145841",handle,1,.9) | |
1835 | for i = 0,1,0.1 do | |
1836 | swait() | |
1837 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
1838 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1839 | local h = 5 | |
1840 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1841 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1842 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1843 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1844 | scfr = blcf | |
1845 | elseif not scfr then | |
1846 | scfr = blcf | |
1847 | end | |
1848 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.4) | |
1849 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-80)),0.4) | |
1850 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4) | |
1851 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4) | |
1852 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(0)),0.4) | |
1853 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),0.4) | |
1854 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4) | |
1855 | end | |
1856 | attack = false | |
1857 | bounce=false | |
1858 | scfr=nil | |
1859 | fx:disconnect() | |
1860 | con:disconnect() | |
1861 | end | |
1862 | ||
1863 | function attacktwo() | |
1864 | attack=true | |
1865 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
1866 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,4222,112222,math.random(5,5),"Normal",RootPart,.2,1) end) | |
1867 | local fx=Hitbox.Touched:connect(function(part) | |
1868 | local human=part.Parent:findFirstChild("Humanoid") | |
1869 | if human~=nil and bounce==false then | |
1870 | bounce=true | |
1871 | local rndm=math.random(1,#hitsounds) | |
1872 | local r=rndm | |
1873 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1) | |
1874 | end | |
1875 | end) | |
1876 | for i=0,1,.1 do | |
1877 | swait() | |
1878 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(70)),0.4) | |
1879 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(-10),math.rad(-70)),0.4) | |
1880 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(120), math.rad(90)),0.4) | |
1881 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-30)),0.4) | |
1882 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(40),math.rad(0)),0.4) | |
1883 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-10)),0.4) | |
1884 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-25),math.rad(0),math.rad(0)),.4) | |
1885 | end | |
1886 | so("http://www.roblox.com/asset/?id=199145887",handle,1,1) | |
1887 | for i = 0,1,0.1 do | |
1888 | swait() | |
1889 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
1890 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1891 | local h = 5 | |
1892 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1893 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1894 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1895 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1896 | scfr = blcf | |
1897 | elseif not scfr then | |
1898 | scfr = blcf | |
1899 | end | |
1900 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-80)),0.4) | |
1901 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(80)),0.4) | |
1902 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(10), math.rad(90)),0.4) | |
1903 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)),0.4) | |
1904 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(0)),0.4) | |
1905 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-40),math.rad(-10)),0.4) | |
1906 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
1907 | end | |
1908 | scfr=nil | |
1909 | attack=false | |
1910 | bounce=false | |
1911 | con:disconnect() | |
1912 | fx:disconnect() | |
1913 | end | |
1914 | ||
1915 | function attackthree() | |
1916 | attack=true | |
1917 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
1918 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,6222,152222,math.random(5,5),"Normal",RootPart,.2,1) end) | |
1919 | local fx=Hitbox.Touched:connect(function(part) | |
1920 | local human=part.Parent:findFirstChild("Humanoid") | |
1921 | if human~=nil and bounce==false then | |
1922 | bounce=true | |
1923 | local rndm=math.random(1,#hitsounds) | |
1924 | local r=rndm | |
1925 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1) | |
1926 | end | |
1927 | end) | |
1928 | for i=0,1,.1 do | |
1929 | swait() | |
1930 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-30)),0.4) | |
1931 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(30)),.3) | |
1932 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(20)),0.4) | |
1933 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(25), math.rad(0), math.rad(-30)),0.4) | |
1934 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(105),math.rad(0)),0.4) | |
1935 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-75),math.rad(-10)),0.4) | |
1936 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4) | |
1937 | end | |
1938 | so("http://www.roblox.com/asset/?id=199145913",handle,1,.9) | |
1939 | for i = 0,1,0.1 do | |
1940 | swait() | |
1941 | local blcf = Hitbox.CFrame*CFrame.new(0,.5,0) | |
1942 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1943 | local h = 5 | |
1944 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
1945 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1946 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
1947 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
1948 | scfr = blcf | |
1949 | elseif not scfr then | |
1950 | scfr = blcf | |
1951 | end | |
1952 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),0.4) | |
1953 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(-50)),.3) | |
1954 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)),0.4) | |
1955 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)),0.4) | |
1956 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(80),math.rad(0)),0.4) | |
1957 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-100),math.rad(-10)),0.4) | |
1958 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-40),math.rad(0),math.rad(0)),.4) | |
1959 | end | |
1960 | attack=false | |
1961 | bounce=false | |
1962 | scfr=nil | |
1963 | con:disconnect() | |
1964 | fx:disconnect() | |
1965 | end | |
1966 | ||
1967 | function attackfour() | |
1968 | attack = true | |
1969 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"} | |
1970 | local con=Hitbox.Touched:connect(function(hit) Damagefunc(Hitbox,hit,9222,18222,math.random(20,30),"Normal",RootPart,.2,1) end) | |
1971 | local fx=Hitbox.Touched:connect(function(part) | |
1972 | local human=part.Parent:findFirstChild("Humanoid") | |
1973 | if human~=nil and bounce==false then | |
1974 | bounce=true | |
1975 | local rndm=math.random(1,#hitsounds) | |
1976 | local r=rndm | |
1977 | so("http://www.roblox.com/asset/?id="..hitsounds[r],part.Parent,1,1) | |
1978 | end | |
1979 | end) | |
1980 | for i = 0,1,0.1 do | |
1981 | swait() | |
1982 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(-5),math.rad(-60)),.3) | |
1983 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(60)),.3) | |
1984 | RW.C0=clerp(RW.C0,cf(1.5, 0.8, 0.2) * angles(math.rad(5), math.rad(-15), math.rad(112)), 0.3) | |
1985 | LW.C0=clerp(LW.C0,cf(-1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(-20)), 0.3) | |
1986 | RH.C0=clerp(RH.C0,cf(1.1,-1,0)*angles(math.rad(-5),math.rad(120),math.rad(-8)),.3) | |
1987 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-60),math.rad(0)),.3) | |
1988 | handleweld.C0=clerp(handleweld.C0,cf(0,-.2,.5)*angles(math.rad(50),math.rad(-15),math.rad(0)),.3) | |
1989 | end | |
1990 | so("http://www.roblox.com/asset/?id=199145433",Hitbox,1,1.1) | |
1991 | local v=it("BodyVelocity",Torso) | |
1992 | v.maxForce=Vector3.new(4e+005,4e+005,4e+005)*1 | |
1993 | v.velocity=RootPart.CFrame.lookVector*50 | |
1994 | for i = 0,1,0.1 do | |
1995 | swait() | |
1996 | local blcf = Hitbox.CFrame*cf(0,0,0) | |
1997 | if scfr and (Hitbox.Position-scfr.p).magnitude > .1 then | |
1998 | local h = 5 | |
1999 | local a,b = Triangle((scfr*CFrame.new(0,h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p,(blcf*CFrame.new(0,h/2,0)).p) | |
2000 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
2001 | local a,b = Triangle((blcf*CFrame.new(0,h/2,0)).p,(blcf*CFrame.new(0,-h/2,0)).p,(scfr*CFrame.new(0,-h/2,0)).p) | |
2002 | if a then game.Debris:AddItem(a,1) end if b then game.Debris:AddItem(b,1) end | |
2003 | scfr = blcf | |
2004 | elseif not scfr then | |
2005 | scfr = blcf | |
2006 | end | |
2007 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(60)),.3) | |
2008 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3) | |
2009 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(60), math.rad(100)), 0.3) | |
2010 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-15)), 0.3) | |
2011 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3) | |
2012 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3) | |
2013 | handleweld.C0=clerp(handleweld.C0,cf(0,-1,-1)*angles(math.rad(-100),math.rad(0),math.rad(0)),.3) | |
2014 | end | |
2015 | v.Parent=nil | |
2016 | scfr=nil | |
2017 | attack = false | |
2018 | bounce=false | |
2019 | con:disconnect() | |
2020 | fx:disconnect() | |
2021 | end | |
2022 | ||
2023 | function LustrisFulgo() | |
2024 | attack=true | |
2025 | Humanoid.WalkSpeed=0 | |
2026 | for i=0,1,0.1 do | |
2027 | swait() | |
2028 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-15),math.rad(0),math.rad(10)),.3) | |
2029 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(-10)),.3) | |
2030 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(145), math.rad(0), math.rad(7)), 0.3) | |
2031 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(4), math.rad(-15)), 0.3) | |
2032 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-15),math.rad(90),math.rad(0)),.3) | |
2033 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-25),math.rad(-90),math.rad(0)),.3) | |
2034 | handleweld.C0=clerp(handleweld.C0,cf(0,0,-.5)*angles(math.rad(-60),math.rad(0),math.rad(0)),.3) | |
2035 | end | |
2036 | local function boom() | |
2037 | local pprt=ppart(3,game.Workspace,0,1,BrickColor.new("Black"),"Effect",vt(1,1,1)) | |
2038 | pprt.Anchored=true | |
2039 | pprt.CFrame=EffectPart.CFrame | |
2040 | game:GetService("Debris"):AddItem(pprt,2) | |
2041 | MagicCircle(BrickColor.new("Black"),EffectPart.CFrame,20,20,20,-0.01,-0.01,-0.01,0.01) | |
2042 | so("http://roblox.com/asset/?id=228343412",EffectPart,1,0.6) | |
2043 | so("http://roblox.com/asset/?id=228343408",EffectPart,1,1.4) | |
2044 | local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Black"),"Effect",vt(1,1,1)) | |
2045 | local waveweld=weld(game.Workspace,handle,wave,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00693154335, 0.014090538, 6.03910685, -5.23798153e-005, -6.36925748e-008, -1, 0.99999994, -0.000210702419, -5.23798008e-005, -0.000210702419, -0.99999994, 7.47295417e-008)) | |
2046 | local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1)) | |
2047 | MagniDamage(wave,20,15222,25222,math.random(20,30),"Knockdown",RootPart) | |
2048 | for i=0,80 do | |
2049 | swait() | |
2050 | MagicBlock(BrickColor.new("Black"),EffectPart.CFrame,7,7,7,-0.5,-0.5,-0.5,0.05) | |
2051 | MagicCircle(BrickColor.new("Black"),EffectPart.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,5,0),0.5,1,0.5,0.02,1,0.02,0.05) | |
2052 | wave.Size=vt(1+i,1+i,1+i) | |
2053 | wavemesh.Scale=vt(1+i,1+i,1+i) | |
2054 | wave.CFrame=EffectPart.CFrame | |
2055 | Humanoid.Health=Humanoid.Health+.15 | |
2056 | end | |
2057 | wave:Destroy() | |
2058 | end | |
2059 | boom() | |
2060 | attack=false | |
2061 | Humanoid.WalkSpeed=16 | |
2062 | end | |
2063 | ||
2064 | function LeviterGlomus() | |
2065 | attack=true | |
2066 | for i=0,1,.1 do | |
2067 | swait() | |
2068 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
2069 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-60)),.3) | |
2070 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(18), math.rad(-15), math.rad(15)), 0.3) | |
2071 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-75), math.rad(0), math.rad(-50)), 0.3) | |
2072 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-3),math.rad(65),math.rad(0)),.3) | |
2073 | LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(-25),math.rad(-110),math.rad(0))*angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
2074 | handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(-35),math.rad(-15),math.rad(0)),.3) | |
2075 | end | |
2076 | so("http://www.roblox.com/asset/?id=199145659",EffectPart2,1,1) | |
2077 | efprt=part(Enum.FormFactor.Custom,game.Workspace,Enum.Material.Neon,0,0,"Black","BallEffect",Vector3.new(2, 2, 2)) | |
2078 | weld(m,Character["Left Arm"],efprt,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.15575993, 0.00814216491, -0.0231294632, -5.23798153e-005, 0.999999821, -0.000210702419, -6.36925748e-008, -0.00021070239, -0.99999994, -1, -5.23797935e-005, 7.47295417e-008)) | |
2079 | mesh("SpecialMesh",efprt,"Sphere","",vt(0,0,0),vt(1,1,1)) | |
2080 | ChargeBall(EffectPart2,35) | |
2081 | for i=0,1,.1 do | |
2082 | swait() | |
2083 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-60)),.3) | |
2084 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
2085 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-18), math.rad(15), math.rad(15)), 0.3) | |
2086 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-65)), 0.3) | |
2087 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3) | |
2088 | LH.C0=clerp(LH.C0,cf(-1.1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3) | |
2089 | handleweld.C0=clerp(handleweld.C0,cf(0,.2,-.3)*angles(math.rad(0),math.rad(-15),math.rad(0)),.3) | |
2090 | end | |
2091 | so("http://www.roblox.com/asset/?id=199145534",EffectPart2,1,1.2) | |
2092 | efprt:BreakJoints() | |
2093 | local Target=mouse.Hit.p | |
2094 | local direction = Target - handle.Position | |
2095 | direction = computeDirection(direction) | |
2096 | local pos = handle.Position + (direction * 10.0) | |
2097 | efprt.CFrame = CFrame.new(pos, pos + direction) * CFrame.Angles(math.pi/2, 0, 0) | |
2098 | local floatForce = Instance.new("BodyForce") | |
2099 | floatForce.force = Vector3.new(0, efprt:GetMass() * 196.1, 0.0) | |
2100 | floatForce.Parent = efprt | |
2101 | efprt.Velocity = direction * 160 | |
2102 | efprt.Touched:connect(function(hit) | |
2103 | if not hit:IsDescendantOf(Character) then | |
2104 | if hit.Name~="Effect" then | |
2105 | MagniDamage(efprt,15,12225,22225,math.random(20,30),"Knockdown",RootPart) | |
2106 | floatForce.Parent=nil | |
2107 | efprt.Anchored=true | |
2108 | so("http://www.roblox.com/asset/?id=228343330",hit,1,.8) | |
2109 | Blast(efprt) | |
2110 | efprt:Destroy() | |
2111 | end | |
2112 | end | |
2113 | end) | |
2114 | game:GetService("Debris"):AddItem(efprt,6) | |
2115 | attack=false | |
2116 | end | |
2117 | ||
2118 | function PortalStorm() | |
2119 | Humanoid.WalkSpeed=0 | |
2120 | attack=true | |
2121 | for i=0,1,.1 do | |
2122 | swait() | |
2123 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
2124 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
2125 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(-40)), 0.3) | |
2126 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(75), math.rad(0), math.rad(40)), 0.3) | |
2127 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(5),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2128 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(5),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2129 | handleweld.C0=clerp(handleweld.C0,cf(-1,-2.3,-.4)*angles(math.rad(-165),math.rad(-15),math.rad(50)),.3) | |
2130 | end | |
2131 | so("http://www.roblox.com/asset/?id=199145446",handle,1,1) | |
2132 | ChargeBall2(handle,100) | |
2133 | makeShockwave(0.5,BrickColor.new("Royal purple"),30,1000,0) | |
2134 | MagicWave(BrickColor.new("Royal purple"),cf(Torso.Position)*cf(0,-1,0)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01) | |
2135 | so("http://www.roblox.com/asset/?id=280247455",game.Workspace,1,1) | |
2136 | wait(2) | |
2137 | so("http://www.roblox.com/asset/?id=110284742",game.Workspace,1,0) | |
2138 | delay(0.5,function () | |
2139 | MagniDamage(Torso,2000,32225,52220,math.random(50,70),"Knockdown",RootPart) | |
2140 | end) | |
2141 | Humanoid.Health=Humanoid.Health-0 | |
2142 | makeShockwave(4,BrickColor.new("Teal"),10,2000,1) | |
2143 | attack=false | |
2144 | Humanoid.WalkSpeed=9 | |
2145 | wait(4) | |
2146 | Humanoid.WalkSpeed=16 | |
2147 | end | |
2148 | ||
2149 | function SolSiderea() | |
2150 | Humanoid.WalkSpeed=0 | |
2151 | attack=true | |
2152 | so("http://www.roblox.com/asset/?id=280758833",Workspace,1,1.3) | |
2153 | for i=0,1,.1 do | |
2154 | swait() | |
2155 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2156 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
2157 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(95), math.rad(-10), math.rad(-17)), 0.3) | |
2158 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(95), math.rad(10), math.rad(17)), 0.3) | |
2159 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2160 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2161 | handleweld.C0=clerp(handleweld.C0,cf(0,-2,-.5)*angles(math.rad(0),math.rad(7.5),math.rad(-75)),.3) | |
2162 | end | |
2163 | for i=0,1,.1 do | |
2164 | swait() | |
2165 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
2166 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
2167 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(150), math.rad(-5), math.rad(8)), 0.3) | |
2168 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(150), math.rad(5), math.rad(-8)), 0.3) | |
2169 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-10),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2170 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-10),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2171 | handleweld.C0=clerp(handleweld.C0,cf(-1.1,-4,-2)*angles(math.rad(-72),math.rad(8.5),math.rad(-92)),.3) | |
2172 | end | |
2173 | coroutine.resume(coroutine.create(function() ChargeBall(EffectPart,120) end)) | |
2174 | local n=2 | |
2175 | local orb=ppart(3,Character,0,1,BrickColor.new("Royal purple"),"Orb",vt()) | |
2176 | local omsh=mesh("SpecialMesh",orb,"Sphere","",vt(0,0,0),vt(15,15,15)) | |
2177 | local owld=wweld(orb,orb,Torso,cf(-10,-150,0)) | |
2178 | for i=1,0.3,-0.01 do | |
2179 | wait() | |
2180 | orb.Transparency=i | |
2181 | omsh.Scale=omsh.Scale+vt(0.5,0.5,0.5) | |
2182 | MagicBlock(BrickColor.new("Royal purple"),orb.CFrame,15,15,15,2,2,2,0.1) | |
2183 | local ef=ppart(3,workspace,0,0,BrickColor.new("Royal purple"),"Effect",vt()) | |
2184 | ef.Anchored=true | |
2185 | local emsh=mesh("SpecialMesh",ef,"Sphere","",vt(0,0,0),vt(2,math.random(1000,1500)/100,2)) | |
2186 | local ceef=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cf(0,math.random(10,20),0) | |
2187 | ef.CFrame=orb.CFrame*ceef | |
2188 | game:GetService("Debris"):AddItem(ef,2) | |
2189 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2190 | for i=0,1,0.1 do | |
2191 | wait() | |
2192 | Part.Transparency=i | |
2193 | Part.CFrame=Part.CFrame*cf(0,-1,0) | |
2194 | end | |
2195 | Part.Parent=nil | |
2196 | end),ef,emsh) | |
2197 | end | |
2198 | local Pos=cf(orb.Position,Player:GetMouse().Hit.p).lookVector | |
2199 | wait(.5) | |
2200 | orb.Parent=nil | |
2201 | wait(1) | |
2202 | local hit,pos = rayCast(orb.Position,Pos,1000,Character) | |
2203 | local mag=(orb.Position-pos).magnitude | |
2204 | BlackHole(game.Workspace,cf(pos)) | |
2205 | coroutine.resume(coroutine.create(function() | |
2206 | local wave=part(3,game.Workspace,"Neon",0,.7,BrickColor.new("Black"),"Effect",vt(1,1,1)) | |
2207 | wweld(game.Workspace,wave,orb,Torso.CFrame) | |
2208 | local wavemesh=mesh("SpecialMesh",wave,"Sphere","",vt(0,0,0),vt(1,1,1)) | |
2209 | for i=1,100 do | |
2210 | swait() | |
2211 | wave.Size=vt(1+i,1+i,1+i) | |
2212 | wavemesh.Scale=vt(1+i,1+i,1+i) | |
2213 | wave.CFrame=cf(pos) | |
2214 | end | |
2215 | end)) | |
2216 | coroutine.resume(coroutine.create(function() | |
2217 | for i=0,20 do | |
2218 | swait(15) | |
2219 | local range = 1500 | |
2220 | local p = Instance.new("Part") | |
2221 | p.Anchored = true | |
2222 | p.CanCollide = false | |
2223 | p.FormFactor = "Custom" | |
2224 | p.BrickColor = BrickColor.new("Royal purple") | |
2225 | p.Parent = workspace | |
2226 | p.Name="Effect" | |
2227 | p.CFrame=cf(pos) | |
2228 | local m = Instance.new("SpecialMesh",p) | |
2229 | m.MeshId = "rbxassetid://3270017" | |
2230 | local estimateSurvival = math.floor(range/30) * 0.03 | |
2231 | game:GetService("Debris"):AddItem(p,estimateSurvival) | |
2232 | Spawn(function () | |
2233 | for i = 1,range,30 do | |
2234 | p.Transparency = 1-math.min(0.5,3-(i/500)) | |
2235 | m.Scale = Vector3.new(i,i,i*0.5) | |
2236 | p.CFrame = cf(pos) * CFrame.Angles(math.rad(90),0,0) | |
2237 | wait() | |
2238 | end | |
2239 | p:Destroy() | |
2240 | end) | |
2241 | end | |
2242 | end)) | |
2243 | MagicCylinder(BrickColor.new("Royal purple"),CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0),10,mag*5,10,0.5,0,0.5,0.01) | |
2244 | for i=1,2 do | |
2245 | end | |
2246 | for i=1,5 do | |
2247 | tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(mag/5)*(i/2),0) | |
2248 | end | |
2249 | for i=0,5 do | |
2250 | tehcf=CFrame.new((orb.Position+pos)/2,pos)*euler(1.57,0,0)*cf(0,(-mag/5)*(i/2),0) | |
2251 | end | |
2252 | local ref=ppart(3,workspace,0,1,BrickColor.new("Royal purple"),"Effect",vt()) | |
2253 | ref.CFrame=cf(pos) | |
2254 | coroutine.resume(coroutine.create(function(Part) | |
2255 | wait(1) | |
2256 | Part.Parent=nil | |
2257 | end),ref) | |
2258 | MagniDamage(ref,25,22220,32220,40,"Knockdown",ref) | |
2259 | if hit~=nil then | |
2260 | Damagefunc(ref,hit,5022,70222,60,"Knockdown",RootPart,0) | |
2261 | end | |
2262 | local n=2 | |
2263 | MagicWave(BrickColor.new("Royal purple"),cf(pos)*euler(0,math.random(-50,50),0),2,2,2,.5,.3,.5,0.01) | |
2264 | swait(75) | |
2265 | Humanoid.WalkSpeed=16 | |
2266 | attack=false | |
2267 | end | |
2268 | ||
2269 | attacktype=1 | |
2270 | mouse.Button1Down:connect(function() | |
2271 | if attacktype==1 and attack==false then | |
2272 | attacktype=2 | |
2273 | attackone() | |
2274 | elseif attacktype==2 and attack==false then | |
2275 | attacktype=3 | |
2276 | attacktwo() | |
2277 | elseif attacktype==3 and attack==false then | |
2278 | attacktype=4 | |
2279 | attackthree() | |
2280 | elseif attacktype==4 and attack==false then | |
2281 | attacktype=1 | |
2282 | attackfour() | |
2283 | end | |
2284 | end) | |
2285 | ||
2286 | mouse.KeyDown:connect(function(k) | |
2287 | k=k:lower() | |
2288 | if attack == false and k == 'e' then | |
2289 | LeviterGlomus() | |
2290 | ChargeBall(efprt,100) | |
2291 | end | |
2292 | if attack == false and k == 'q' then | |
2293 | LustrisFulgo() | |
2294 | end | |
2295 | if attack == false and k == 'f' and deeznuts==false then | |
2296 | deeznuts=true | |
2297 | SolSiderea() | |
2298 | deeznuts=false | |
2299 | end | |
2300 | if attack == false and k == 'r' and cooldown==false then | |
2301 | cooldown=true | |
2302 | PortalStorm() | |
2303 | cooldown=false | |
2304 | end | |
2305 | end) | |
2306 | ||
2307 | ||
2308 | local sine = 0 | |
2309 | local change = 1 | |
2310 | local val = 0 | |
2311 | ||
2312 | while true do | |
2313 | swait() | |
2314 | sine = sine + change | |
2315 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
2316 | local velderp=RootPart.Velocity.y | |
2317 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
2318 | if equipped==true or equipped==false then | |
2319 | if attack==false then | |
2320 | idle=idle+1 | |
2321 | else | |
2322 | idle=0 | |
2323 | end | |
2324 | if idle>=500 then | |
2325 | if attack==false then | |
2326 | end | |
2327 | end | |
2328 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
2329 | Anim="Jump" | |
2330 | if attack==false then | |
2331 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2332 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
2333 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(15)), 0.3) | |
2334 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-15)), 0.3) | |
2335 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-30),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2336 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-30),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2337 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
2338 | end | |
2339 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
2340 | Anim="Fall" | |
2341 | if attack==false then | |
2342 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
2343 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.3) | |
2344 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(20)), 0.3) | |
2345 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
2346 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2347 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-20))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
2348 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-15),math.rad(0),math.rad(0)),.3) | |
2349 | end | |
2350 | elseif torvel<1 and hitfloor~=nil then | |
2351 | Anim="Idle" | |
2352 | if attack==false then | |
2353 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-2),math.rad(0),math.rad(15)),.3) | |
2354 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(2),math.rad(0),math.rad(-15)),.3) | |
2355 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(15), math.rad(0), math.rad(0)), 0.3) | |
2356 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(0)), 0.3) | |
2357 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-2),math.rad(85),math.rad(0)),.3) | |
2358 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-4),math.rad(-95),math.rad(0)),.3) | |
2359 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-10),math.rad(-2),math.rad(0)),.2) | |
2360 | end | |
2361 | elseif torvel>2 and hitfloor~=nil then | |
2362 | Anim="Walk" | |
2363 | if attack==false then | |
2364 | change=3 | |
2365 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(-20)),.3) | |
2366 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10),math.rad(-5),math.rad(25)),.3) | |
2367 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(-25), math.rad(5)), 0.3) | |
2368 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(30)*math.cos(sine/10), math.rad(5), math.rad(0)), 0.3) | |
2369 | RH.C0=clerp(RH.C0,cf(1.1,-.9,0)*angles(math.rad(0),math.rad(110),math.rad(0)),.3) | |
2370 | LH.C0=clerp(LH.C0,cf(-1.1,-.9,0)*angles(math.rad(0),math.rad(-70),math.rad(0)),.3) | |
2371 | handleweld.C0=clerp(handleweld.C0,cf(0,0,.3)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
2372 | end | |
2373 | end | |
2374 | end | |
2375 | if #Effects>0 then | |
2376 | for e=1,#Effects do | |
2377 | if Effects[e]~=nil then | |
2378 | local Thing=Effects[e] | |
2379 | if Thing~=nil then | |
2380 | local Part=Thing[1] | |
2381 | local Mode=Thing[2] | |
2382 | local Delay=Thing[3] | |
2383 | local IncX=Thing[4] | |
2384 | local IncY=Thing[5] | |
2385 | local IncZ=Thing[6] | |
2386 | if Thing[1].Transparency<=1 then | |
2387 | if Thing[2]=="Block1" then | |
2388 | Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2389 | Mesh=Thing[1].Mesh | |
2390 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2391 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2392 | elseif Thing[2]=="Cylinder" then | |
2393 | Mesh=Thing[1].Mesh | |
2394 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2395 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2396 | elseif Thing[2]=="Blood" then | |
2397 | Mesh=Thing[7] | |
2398 | Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0) | |
2399 | Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6]) | |
2400 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2401 | elseif Thing[2]=="Elec" then | |
2402 | Mesh=Thing[1].Mesh | |
2403 | Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9]) | |
2404 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2405 | elseif Thing[2]=="Disappear" then | |
2406 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
2407 | end | |
2408 | else | |
2409 | Part.Parent=nil | |
2410 | table.remove(Effects,e) | |
2411 | end | |
2412 | ||
2413 | -------------- | |
2414 | -------------- | |
2415 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
2416 | 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)) | |
2417 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
2418 | 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)) | |
2419 | ||
2420 | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
2421 | CreateMesh(handle,"Brick",0,0,0) | |
2422 | 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)) | |
2423 | local valuaring = 10 | |
2424 | for i = 0, 49 do | |
2425 | valuaring = valuaring + 10 | |
2426 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
2427 | CreateMesh(rn,"Brick",0.25,0.1,0.1) | |
2428 | CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
2429 | end | |
2430 | ||
2431 | handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
2432 | CreateMesh(handle,"Brick",0,0,0) | |
2433 | CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
2434 | local valuaring = 10 | |
2435 | for i = 0, 49 do | |
2436 | valuaring = valuaring + 10 | |
2437 | rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
2438 | CreateMesh(rn,"Brick",0.5,0.2,0.2) | |
2439 | CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
2440 | end | |
2441 | ||
2442 | ||
2443 | local handle = CreateParta(m,1,1,"Neon",maincolor) | |
2444 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
2445 | 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)) | |
2446 | ||
2447 | --- Left wing. | |
2448 | ||
2449 | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
2450 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
2451 | 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)) | |
2452 | ||
2453 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
2454 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2455 | 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)) | |
2456 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
2457 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2458 | 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)) | |
2459 | A0 = Instance.new('Attachment',wed) | |
2460 | A0.Position = vt(0,0.25,0.25) | |
2461 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
2462 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
2463 | 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)) | |
2464 | A1 = Instance.new('Attachment',wed) | |
2465 | A1.Position = vt(0,-0.25,-2) | |
2466 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
2467 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
2468 | 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)) | |
2469 | ||
2470 | tl1 = Instance.new('Trail',wed) | |
2471 | tl1.Attachment0 = A1 | |
2472 | tl1.Attachment1 = A0 | |
2473 | tl1.Texture = "rbxassetid://2108945559" | |
2474 | tl1.LightEmission = 1 | |
2475 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
2476 | tl1.Color = ColorSequence.new(BrickColor.new('Really red').Color) | |
2477 | tl1.Lifetime = 0.6 | |
2478 | ||
2479 | ||
2480 | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
2481 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
2482 | 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)) | |
2483 | ||
2484 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
2485 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2486 | 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)) | |
2487 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
2488 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2489 | 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)) | |
2490 | A0 = Instance.new('Attachment',wed) | |
2491 | A0.Position = vt(0,0.25,0.25) | |
2492 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
2493 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
2494 | 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)) | |
2495 | A1 = Instance.new('Attachment',wed) | |
2496 | A1.Position = vt(0,-0.25,-2) | |
2497 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
2498 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
2499 | 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)) | |
2500 | ||
2501 | tl2 = Instance.new('Trail',wed) | |
2502 | tl2.Attachment0 = A1 | |
2503 | tl2.Attachment1 = A0 | |
2504 | tl2.Texture = "rbxassetid://2108945559" | |
2505 | tl2.LightEmission = 1 | |
2506 | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
2507 | tl2.Color = ColorSequence.new(BrickColor.new('Really red').Color) | |
2508 | tl2.Lifetime = 0.6 | |
2509 | ||
2510 | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
2511 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
2512 | 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)) | |
2513 | ||
2514 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
2515 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2516 | 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)) | |
2517 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
2518 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2519 | 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)) | |
2520 | A0 = Instance.new('Attachment',wed) | |
2521 | A0.Position = vt(0,0.25,0.25) | |
2522 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
2523 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
2524 | 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)) | |
2525 | A1 = Instance.new('Attachment',wed) | |
2526 | A1.Position = vt(0,-0.25,-2) | |
2527 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
2528 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
2529 | 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)) | |
2530 | ||
2531 | tl3 = Instance.new('Trail',wed) | |
2532 | tl3.Attachment0 = A1 | |
2533 | tl3.Attachment1 = A0 | |
2534 | tl3.Texture = "rbxassetid://2108945559" | |
2535 | tl3.LightEmission = 1 | |
2536 | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
2537 | tl3.Color = ColorSequence.new(BrickColor.new('Really red').Color) | |
2538 | tl3.Lifetime = 0.6 | |
2539 | ||
2540 | tl1.Enabled = false | |
2541 | tl2.Enabled = false | |
2542 | tl3.Enabled = false | |
2543 | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
2544 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
2545 | 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)) | |
2546 | ||
2547 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
2548 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2549 | 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)) | |
2550 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
2551 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2552 | 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)) | |
2553 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
2554 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
2555 | 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)) | |
2556 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
2557 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
2558 | 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)) | |
2559 | ||
2560 | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
2561 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
2562 | 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)) | |
2563 | ||
2564 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
2565 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2566 | 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)) | |
2567 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
2568 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2569 | 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)) | |
2570 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
2571 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
2572 | 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)) | |
2573 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
2574 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
2575 | 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)) | |
2576 | ||
2577 | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
2578 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
2579 | 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)) | |
2580 | ||
2581 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
2582 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2583 | 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)) | |
2584 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
2585 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2586 | 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)) | |
2587 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
2588 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
2589 | 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)) | |
2590 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
2591 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
2592 | 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)) | |
2593 | ||
2594 | -- Right wing. | |
2595 | ||
2596 | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
2597 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
2598 | 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)) | |
2599 | ||
2600 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
2601 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2602 | 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)) | |
2603 | A0 = Instance.new('Attachment',wed) | |
2604 | A0.Position = vt(0,0.25,0.25) | |
2605 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
2606 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2607 | 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)) | |
2608 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
2609 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
2610 | 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)) | |
2611 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
2612 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
2613 | 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)) | |
2614 | A1 = Instance.new('Attachment',wed) | |
2615 | A1.Position = vt(0,2,0.25) | |
2616 | ||
2617 | tr1 = Instance.new('Trail',wed) | |
2618 | tr1.Attachment0 = A1 | |
2619 | tr1.Attachment1 = A0 | |
2620 | tr1.Texture = "rbxassetid://2108945559" | |
2621 | tr1.LightEmission = 1 | |
2622 | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
2623 | tr1.Color = ColorSequence.new(BrickColor.new('Really red').Color) | |
2624 | tr1.Lifetime = 0.6 | |
2625 | ||
2626 | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
2627 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
2628 | 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)) | |
2629 | ||
2630 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
2631 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2632 | 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)) | |
2633 | A0 = Instance.new('Attachment',wed) | |
2634 | A0.Position = vt(0,0.25,0.25) | |
2635 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
2636 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2637 | 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)) | |
2638 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
2639 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
2640 | 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)) | |
2641 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
2642 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
2643 | 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)) | |
2644 | A1 = Instance.new('Attachment',wed) | |
2645 | A1.Position = vt(0,2,0.25) | |
2646 | ||
2647 | tr2 = Instance.new('Trail',wed) | |
2648 | tr2.Attachment0 = A1 | |
2649 | tr2.Attachment1 = A0 | |
2650 | tr2.Texture = "rbxassetid://2108945559" | |
2651 | tr2.LightEmission = 1 | |
2652 | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
2653 | tr2.Color = ColorSequence.new(BrickColor.new('Really red').Color) | |
2654 | tr2.Lifetime = 0.6 | |
2655 | ||
2656 | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
2657 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
2658 | 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)) | |
2659 | ||
2660 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
2661 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2662 | 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)) | |
2663 | A0 = Instance.new('Attachment',wed) | |
2664 | A0.Position = vt(0,0.25,0.25) | |
2665 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
2666 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2667 | 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)) | |
2668 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
2669 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
2670 | 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)) | |
2671 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
2672 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
2673 | 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)) | |
2674 | A1 = Instance.new('Attachment',wed) | |
2675 | A1.Position = vt(0,2,0.25) | |
2676 | ||
2677 | tr3 = Instance.new('Trail',wed) | |
2678 | tr3.Attachment0 = A1 | |
2679 | tr3.Attachment1 = A0 | |
2680 | tr3.Texture = "rbxassetid://2108945559" | |
2681 | tr3.LightEmission = 1 | |
2682 | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
2683 | tr3.Color = ColorSequence.new(BrickColor.new('Really red').Color) | |
2684 | tr3.Lifetime = 0.6 | |
2685 | ||
2686 | ||
2687 | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
2688 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
2689 | 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)) | |
2690 | ||
2691 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
2692 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2693 | 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)) | |
2694 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
2695 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2696 | 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)) | |
2697 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
2698 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
2699 | 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)) | |
2700 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
2701 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
2702 | 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)) | |
2703 | ||
2704 | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
2705 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
2706 | 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)) | |
2707 | ||
2708 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
2709 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2710 | 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)) | |
2711 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
2712 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2713 | 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)) | |
2714 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
2715 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
2716 | 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)) | |
2717 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
2718 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
2719 | 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)) | |
2720 | ||
2721 | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
2722 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
2723 | 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)) | |
2724 | ||
2725 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
2726 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2727 | 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)) | |
2728 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
2729 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
2730 | 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)) | |
2731 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
2732 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
2733 | 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)) | |
2734 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
2735 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
2736 | 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)) | |
2737 | ||
2738 | ---- HERES THE RING | |
2739 | ||
2740 | ||
2741 | --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
2742 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
2743 | 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)) | |
2744 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
2745 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
2746 | 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)) | |
2747 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
2748 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
2749 | 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)) | |
2750 | ||
2751 | ||
2752 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
2753 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
2754 | 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)) | |
2755 | ||
2756 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
2757 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
2758 | 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)) | |
2759 | ||
2760 | ||
2761 | ||
2762 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
2763 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
2764 | 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)) | |
2765 | ||
2766 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
2767 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
2768 | 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)) | |
2769 | ||
2770 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
2771 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
2772 | 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)) | |
2773 | ||
2774 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
2775 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
2776 | 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)) | |
2777 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
2778 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
2779 | 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)) | |
2780 | ||
2781 | --- second ring | |
2782 | ||
2783 | ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
2784 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
2785 | 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)) | |
2786 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
2787 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
2788 | 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)) | |
2789 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
2790 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
2791 | 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)) | |
2792 | ||
2793 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
2794 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
2795 | 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)) | |
2796 | ||
2797 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
2798 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
2799 | 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)) | |
2800 | ||
2801 | ||
2802 | ||
2803 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
2804 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
2805 | 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)) | |
2806 | ||
2807 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
2808 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
2809 | 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)) | |
2810 | ||
2811 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
2812 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
2813 | 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)) | |
2814 | ||
2815 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
2816 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
2817 | 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)) | |
2818 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
2819 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
2820 | 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))]]-- | |
2821 | ||
2822 | ||
2823 | ||
2824 | for i, v in pairs(m:GetChildren()) do | |
2825 | if v:IsA("Part") then | |
2826 | v.BrickColor = BrickColor.new("Really black") | |
2827 | v.Material = "Glass" | |
2828 | end | |
2829 | end | |
2830 | for i, v in pairs(m2:GetChildren()) do | |
2831 | if v:IsA("Part") then | |
2832 | v.BrickColor = BrickColor.new("Crimson") | |
2833 | v.Material = "Granite" | |
2834 | end | |
2835 | end | |
2836 | for i, v in pairs(m3:GetChildren()) do | |
2837 | if v:IsA("Part") then | |
2838 | v.BrickColor = BrickColor.new("Really red") | |
2839 | v.Material = "Neon" | |
2840 | end | |
2841 | end | |
2842 | for i, v in pairs(mw2:GetChildren()) do | |
2843 | if v:IsA("Part") then | |
2844 | v.BrickColor = BrickColor.new("Really red") | |
2845 | v.Material = "Neon" | |
2846 | end | |
2847 | end | |
2848 | for i, v in pairs(mw1:GetChildren()) do | |
2849 | if v:IsA("Part") then | |
2850 | v.Transparency = 1 | |
2851 | v.BrickColor = BrickColor.new("Really red") | |
2852 | v.Material = "Neon" | |
2853 | end | |
2854 | end | |
2855 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
2856 | if v:IsA("Part") then | |
2857 | v.Transparency = 1 | |
2858 | v.BrickColor = BrickColor.new("White") | |
2859 | v.Material = "Neon" | |
2860 | end | |
2861 | end | |
2862 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
2863 | if v:IsA("Part") then | |
2864 | v.Transparency = 1 | |
2865 | v.BrickColor = BrickColor.new("White") | |
2866 | v.Material = "Neon" | |
2867 | end | |
2868 | end | |
2869 | local MAINRUINCOLOR = BrickColor.new("Really red") | |
2870 | ------ | |
2871 | ||
2872 | ||
2873 | function RemoveOutlines(part) | |
2874 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
2875 | end | |
2876 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
2877 | local Part = Create("Part")({ | |
2878 | Parent = Parent, | |
2879 | Reflectance = Reflectance, | |
2880 | Transparency = Transparency, | |
2881 | CanCollide = false, | |
2882 | Locked = true, | |
2883 | BrickColor = BrickColor.new(tostring(BColor)), | |
2884 | Name = Name, | |
2885 | Size = Size, | |
2886 | Material = Material | |
2887 | }) | |
2888 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
2889 | RemoveOutlines(Part) | |
2890 | return Part | |
2891 | end | |
2892 | function CreateMesha(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
2893 | local Msh = Create(Mesh)({ | |
2894 | Parent = Part, | |
2895 | Offset = OffSet, | |
2896 | Scale = Scale | |
2897 | }) | |
2898 | if Mesh == "SpecialMesh" then | |
2899 | Msh.MeshType = MeshType | |
2900 | Msh.MeshId = MeshId | |
2901 | end | |
2902 | return Msh | |
2903 | end | |
2904 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
2905 | local Weld = Create("Weld")({ | |
2906 | Parent = Parent, | |
2907 | Part0 = Part0, | |
2908 | Part1 = Part1, | |
2909 | C0 = C0, | |
2910 | C1 = C1 | |
2911 | }) | |
2912 | return Weld | |
2913 | end | |
2914 | ||
2915 | Character=Player.Character | |
2916 | PlayerGui=Player.PlayerGui | |
2917 | Backpack=Player.Backpack | |
2918 | Torso=Character.Torso | |
2919 | Head=Character.Head | |
2920 | Humanoid=Character.Humanoid | |
2921 | m=Instance.new('Model',Character) | |
2922 | LeftArm=Character["Left Arm"] | |
2923 | LeftLeg=Character["Left Leg"] | |
2924 | RightArm=Character["Right Arm"] | |
2925 | RightLeg=Character["Right Leg"] | |
2926 | LS=Torso["Left Shoulder"] | |
2927 | LH=Torso["Left Hip"] | |
2928 | RS=Torso["Right Shoulder"] | |
2929 | RH=Torso["Right Hip"] | |
2930 | Face = Head.face | |
2931 | Neck=Torso.Neck | |
2932 | it=Instance.new | |
2933 | attacktype=1 | |
2934 | vt=Vector3.new | |
2935 | cf=CFrame.new | |
2936 | euler=CFrame.fromEulerAnglesXYZ | |
2937 | angles=CFrame.Angles | |
2938 | cloaked=false | |
2939 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
2940 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
2941 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
2942 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
2943 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
2944 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
2945 | RootPart=Character.HumanoidRootPart | |
2946 | RootJoint=RootPart.RootJoint | |
2947 | RootCF=euler(-1.57,0,3.14) | |
2948 | attack = false | |
2949 | attackdebounce = false | |
2950 | deb=false | |
2951 | equipped=true | |
2952 | hand=false | |
2953 | combo=0 | |
2954 | mana=0 | |
2955 | trispeed=.2 | |
2956 | attackmode='none' | |
2957 | local idle=0 | |
2958 | local Anim="Idle" | |
2959 | local Effects={} | |
2960 | local gun=false | |
2961 | local shoot=false | |
2962 | local sine = 0 | |
2963 | local change = 1 | |
2964 | ||
2965 | function RecolorTextAndRename(name,col1,col2,font) | |
2966 | modet.TextStrokeColor3 = col2 | |
2967 | modet.TextColor3 = col1 | |
2968 | modet.Font = font | |
2969 | modet.Text = name | |
2970 | techc.ImageColor3 = col2 | |
2971 | circl.ImageColor3 = col2 | |
2972 | circl2.ImageColor3 = col1 | |
2973 | imgl2.ImageColor3 = col1 | |
2974 | imgl2b.ImageColor3 = col2 | |
2975 | ned.Text = name | |
2976 | ned.TextColor3 = col1 | |
2977 | ned.TextStrokeColor3 = col2 | |
2978 | end | |
2979 | --save shoulders | |
2980 | RSH, LSH=nil, nil | |
2981 | --welds | |
2982 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
2983 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
2984 | LH=Torso["Left Hip"] | |
2985 | RH=Torso["Right Hip"] | |
2986 | TorsoColor=Torso.BrickColor | |
2987 | function NoOutline(Part) | |
2988 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
2989 | end | |
2990 | ch=Character | |
2991 | RSH=ch.Torso["Right Shoulder"] | |
2992 | LSH=ch.Torso["Left Shoulder"] | |
2993 | -- | |
2994 | RSH.Parent=nil | |
2995 | LSH.Parent=nil | |
2996 | -- | |
2997 | RW.Name="Right Shoulder" | |
2998 | RW.Part0=ch.Torso | |
2999 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
3000 | RW.C1=cf(0, 0.5, 0) | |
3001 | RW.Part1=ch["Right Arm"] | |
3002 | RW.Parent=ch.Torso | |
3003 | -- | |
3004 | LW.Name="Left Shoulder" | |
3005 | LW.Part0=ch.Torso | |
3006 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
3007 | LW.C1=cf(0, 0.5, 0) | |
3008 | LW.Part1=ch["Left Arm"] | |
3009 | LW.Parent=ch.Torso | |
3010 | ||
3011 | local Stats=Instance.new("BoolValue") | |
3012 | Stats.Name="Stats" | |
3013 | Stats.Parent=Character | |
3014 | local Atk=Instance.new("NumberValue") | |
3015 | Atk.Name="Damage" | |
3016 | Atk.Parent=Stats | |
3017 | Atk.Value=1 | |
3018 | local Def=Instance.new("NumberValue") | |
3019 | Def.Name="Defense" | |
3020 | Def.Parent=Stats | |
3021 | Def.Value=1 | |
3022 | local Speed=Instance.new("NumberValue") | |
3023 | Speed.Name="Speed" | |
3024 | Speed.Parent=Stats | |
3025 | Speed.Value=1 | |
3026 | local Mvmt=Instance.new("NumberValue") | |
3027 | Mvmt.Name="Movement" | |
3028 | Mvmt.Parent=Stats | |
3029 | Mvmt.Value=1 | |
3030 | ||
3031 | local donum=0 | |
3032 | ||
3033 | ||
3034 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
3035 | local fp=it("Part") | |
3036 | fp.formFactor=formfactor | |
3037 | fp.Parent=parent | |
3038 | fp.Reflectance=reflectance | |
3039 | fp.Transparency=transparency | |
3040 | fp.CanCollide=false | |
3041 | fp.Locked=true | |
3042 | fp.BrickColor=brickcolor | |
3043 | fp.Name=name | |
3044 | fp.Size=size | |
3045 | fp.Position=Torso.Position | |
3046 | NoOutline(fp) | |
3047 | fp.Material="SmoothPlastic" | |
3048 | fp:BreakJoints() | |
3049 | return fp | |
3050 | end | |
3051 | ||
3052 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
3053 | local mesh=it(Mesh) | |
3054 | mesh.Parent=part | |
3055 | if Mesh=="SpecialMesh" then | |
3056 | mesh.MeshType=meshtype | |
3057 | if meshid~="nil" then | |
3058 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
3059 | end | |
3060 | end | |
3061 | mesh.Offset=offset | |
3062 | mesh.Scale=scale | |
3063 | return mesh | |
3064 | end | |
3065 | ||
3066 | function weld(parent,part0,part1,c0) | |
3067 | local weld=it("Weld") | |
3068 | weld.Parent=parent | |
3069 | weld.Part0=part0 | |
3070 | weld.Part1=part1 | |
3071 | weld.C0=c0 | |
3072 | return weld | |
3073 | end | |
3074 | ||
3075 | local Color1=Torso.BrickColor | |
3076 | ||
3077 | local bodvel=Instance.new("BodyVelocity") | |
3078 | local bg=Instance.new("BodyGyro") | |
3079 | ||
3080 | --------- SazEreno's Artificial HB -------------- | |
3081 | ArtificialHB = Instance.new("BindableEvent", script) | |
3082 | ArtificialHB.Name = "ArtificialHB" | |
3083 | ||
3084 | script:WaitForChild("ArtificialHB") | |
3085 | Frame_Speed = 1 / 60 | |
3086 | frame = Frame_Speed | |
3087 | tf = 0 | |
3088 | allowframeloss = false | |
3089 | tossremainder = false | |
3090 | lastframe = tick() | |
3091 | script.ArtificialHB:Fire() | |
3092 | ||
3093 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
3094 | tf = tf + s | |
3095 | if tf >= frame then | |
3096 | if allowframeloss then | |
3097 | script.ArtificialHB:Fire() | |
3098 | lastframe = tick() | |
3099 | else | |
3100 | for i = 1, math.floor(tf / frame) do | |
3101 | script.ArtificialHB:Fire() | |
3102 | end | |
3103 | lastframe = tick() | |
3104 | end | |
3105 | if tossremainder then | |
3106 | tf = 0 | |
3107 | else | |
3108 | tf = tf - frame * math.floor(tf / frame) | |
3109 | end | |
3110 | end | |
3111 | end) | |
3112 | ||
3113 | ------------------ | |
3114 | function swait(num) | |
3115 | function swait(num) | |
3116 | if num==0 or num==nil then | |
3117 | game:service'RunService'.Stepped:wait(0) | |
3118 | else | |
3119 | for i=0,num do | |
3120 | game:service'RunService'.Stepped:wait(0) | |
3121 | end | |
3122 | end | |
3123 | end | |
3124 | end | |
3125 | ||
3126 | -------- RAINBOW LEAVE IT TO ME | |
3127 | local r = 255 | |
3128 | local g = 0 | |
3129 | local b = 0 | |
3130 | coroutine.resume(coroutine.create(function() | |
3131 | while wait() do | |
3132 | for i = 0, 254/5 do | |
3133 | swait() | |
3134 | g = g + 5 | |
3135 | end | |
3136 | for i = 0, 254/5 do | |
3137 | swait() | |
3138 | r = r - 5 | |
3139 | end | |
3140 | for i = 0, 254/5 do | |
3141 | swait() | |
3142 | b = b + 5 | |
3143 | end | |
3144 | for i = 0, 254/5 do | |
3145 | swait() | |
3146 | g = g - 5 | |
3147 | end | |
3148 | for i = 0, 254/5 do | |
3149 | swait() | |
3150 | r = r + 5 | |
3151 | end | |
3152 | for i = 0, 254/5 do | |
3153 | swait() | |
3154 | b = b - 5 | |
3155 | end | |
3156 | end | |
3157 | end)) | |
3158 | ||
3159 | ||
3160 | so = function(id,par,vol,pit) | |
3161 | coroutine.resume(coroutine.create(function() | |
3162 | local sou = Instance.new("Sound",par or workspace) | |
3163 | sou.Volume=vol | |
3164 | sou.Pitch=pit or 1 | |
3165 | sou.SoundId=id | |
3166 | swait() | |
3167 | sou:play() | |
3168 | game:GetService("Debris"):AddItem(sou,6) | |
3169 | end)) | |
3170 | end | |
3171 | ||
3172 | function clerp(a,b,t) | |
3173 | local qa = {QuaternionFromCFrame(a)} | |
3174 | local qb = {QuaternionFromCFrame(b)} | |
3175 | local ax, ay, az = a.x, a.y, a.z | |
3176 | local bx, by, bz = b.x, b.y, b.z | |
3177 | local _t = 1-t | |
3178 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
3179 | end | |
3180 | ||
3181 | function QuaternionFromCFrame(cf) | |
3182 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
3183 | local trace = m00 + m11 + m22 | |
3184 | if trace > 0 then | |
3185 | local s = math.sqrt(1 + trace) | |
3186 | local recip = 0.5/s | |
3187 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
3188 | else | |
3189 | local i = 0 | |
3190 | if m11 > m00 then | |
3191 | i = 1 | |
3192 | end | |
3193 | if m22 > (i == 0 and m00 or m11) then | |
3194 | i = 2 | |
3195 | end | |
3196 | if i == 0 then | |
3197 | local s = math.sqrt(m00-m11-m22+1) | |
3198 | local recip = 0.5/s | |
3199 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
3200 | elseif i == 1 then | |
3201 | local s = math.sqrt(m11-m22-m00+1) | |
3202 | local recip = 0.5/s | |
3203 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
3204 | elseif i == 2 then | |
3205 | local s = math.sqrt(m22-m00-m11+1) | |
3206 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
3207 | end | |
3208 | end | |
3209 | end | |
3210 | ||
3211 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
3212 | local xs, ys, zs = x + x, y + y, z + z | |
3213 | local wx, wy, wz = w*xs, w*ys, w*zs | |
3214 | local xx = x*xs | |
3215 | local xy = x*ys | |
3216 | local xz = x*zs | |
3217 | local yy = y*ys | |
3218 | local yz = y*zs | |
3219 | local zz = z*zs | |
3220 | 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)) | |
3221 | end | |
3222 | ||
3223 | function QuaternionSlerp(a, b, t) | |
3224 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
3225 | local startInterp, finishInterp; | |
3226 | if cosTheta >= 0.0001 then | |
3227 | if (1 - cosTheta) > 0.0001 then | |
3228 | local theta = math.acos(cosTheta) | |
3229 | local invSinTheta = 1/math.sin(theta) | |
3230 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
3231 | finishInterp = math.sin(t*theta)*invSinTheta | |
3232 | else | |
3233 | startInterp = 1-t | |
3234 | finishInterp = t | |
3235 | end | |
3236 | else | |
3237 | if (1+cosTheta) > 0.0001 then | |
3238 | local theta = math.acos(-cosTheta) | |
3239 | local invSinTheta = 1/math.sin(theta) | |
3240 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
3241 | finishInterp = math.sin(t*theta)*invSinTheta | |
3242 | else | |
3243 | startInterp = t-1 | |
3244 | finishInterp = t | |
3245 | end | |
3246 | end | |
3247 | 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 | |
3248 | end | |
3249 | ||
3250 | local function CFrameFromTopBack(at, top, back) | |
3251 | local right = top:Cross(back) | |
3252 | return CFrame.new(at.x, at.y, at.z, | |
3253 | right.x, top.x, back.x, | |
3254 | right.y, top.y, back.y, | |
3255 | right.z, top.z, back.z) | |
3256 | end | |
3257 | ||
3258 | function Triangle(a, b, c) | |
3259 | local edg1 = (c-a):Dot((b-a).unit) | |
3260 | local edg2 = (a-b):Dot((c-b).unit) | |
3261 | local edg3 = (b-c):Dot((a-c).unit) | |
3262 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
3263 | a, b, c = a, b, c | |
3264 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
3265 | a, b, c = b, c, a | |
3266 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
3267 | a, b, c = c, a, b | |
3268 | else | |
3269 | assert(false, "unreachable") | |
3270 | end | |
3271 | ||
3272 | local len1 = (c-a):Dot((b-a).unit) | |
3273 | local len2 = (b-a).magnitude - len1 | |
3274 | local width = (a + (b-a).unit*len1 - c).magnitude | |
3275 | ||
3276 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
3277 | ||
3278 | local list = {} | |
3279 | ||
3280 | if len1 > 0.01 then | |
3281 | local w1 = Instance.new('WedgePart', m) | |
3282 | game:GetService("Debris"):AddItem(w1,5) | |
3283 | w1.Material = "SmoothPlastic" | |
3284 | w1.FormFactor = 'Custom' | |
3285 | w1.BrickColor = BrickColor.new("Really red") | |
3286 | w1.Transparency = 0 | |
3287 | w1.Reflectance = 0 | |
3288 | w1.Material = "SmoothPlastic" | |
3289 | w1.CanCollide = false | |
3290 | local l1 = Instance.new("PointLight",w1) | |
3291 | l1.Color = Color3.new(170,0,0) | |
3292 | NoOutline(w1) | |
3293 | local sz = Vector3.new(0.2, width, len1) | |
3294 | w1.Size = sz | |
3295 | local sp = Instance.new("SpecialMesh",w1) | |
3296 | sp.MeshType = "Wedge" | |
3297 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
3298 | w1:BreakJoints() | |
3299 | w1.Anchored = true | |
3300 | w1.Parent = workspace | |
3301 | w1.Transparency = 0.7 | |
3302 | table.insert(Effects,{w1,"Disappear",.01}) | |
3303 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
3304 | table.insert(list,w1) | |
3305 | end | |
3306 | ||
3307 | if len2 > 0.01 then | |
3308 | local w2 = Instance.new('WedgePart', m) | |
3309 | game:GetService("Debris"):AddItem(w2,5) | |
3310 | w2.Material = "SmoothPlastic" | |
3311 | w2.FormFactor = 'Custom' | |
3312 | w2.BrickColor = BrickColor.new("Really red") | |
3313 | w2.Transparency = 0 | |
3314 | w2.Reflectance = 0 | |
3315 | w2.Material = "SmoothPlastic" | |
3316 | w2.CanCollide = false | |
3317 | local l2 = Instance.new("PointLight",w2) | |
3318 | l2.Color = Color3.new(170,0,0) | |
3319 | NoOutline(w2) | |
3320 | local sz = Vector3.new(0.2, width, len2) | |
3321 | w2.Size = sz | |
3322 | local sp = Instance.new("SpecialMesh",w2) | |
3323 | sp.MeshType = "Wedge" | |
3324 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
3325 | w2:BreakJoints() | |
3326 | w2.Anchored = true | |
3327 | w2.Parent = workspace | |
3328 | w2.Transparency = 0.7 | |
3329 | table.insert(Effects,{w2,"Disappear",.01}) | |
3330 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
3331 | table.insert(list,w2) | |
3332 | end | |
3333 | return unpack(list) | |
3334 | end | |
3335 | ||
3336 | ||
3337 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
3338 | if hit.Parent == nil then | |
3339 | return | |
3340 | end | |
3341 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
3342 | for _, v in pairs(hit.Parent:children()) do | |
3343 | if v:IsA("Humanoid") then | |
3344 | h = v | |
3345 | end | |
3346 | end | |
3347 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then | |
3348 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
3349 | return | |
3350 | end | |
3351 | local c = Create("ObjectValue")({ | |
3352 | Name = "creator", | |
3353 | Value = game:GetService("Players").LocalPlayer, | |
3354 | Parent = h | |
3355 | }) | |
3356 | game:GetService("Debris"):AddItem(c, 0.5) | |
3357 | if HitSound ~= nil and HitPitch ~= nil then | |
3358 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
3359 | end | |
3360 | local Damage = math.random(minim, maxim) | |
3361 | local blocked = false | |
3362 | local block = hit.Parent:findFirstChild("Block") | |
3363 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
3364 | blocked = true | |
3365 | block.Value = block.Value - 1 | |
3366 | print(block.Value) | |
3367 | end | |
3368 | if blocked == false then | |
3369 | HitHealth = h.Health | |
3370 | h.MaxHealth = 100 | |
3371 | h.Health = h.Health - Damage | |
3372 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
3373 | print("gained kill") | |
3374 | dmg(h.Parent) | |
3375 | end | |
3376 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
3377 | else | |
3378 | h.Health = h.Health - Damage / 2 | |
3379 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
3380 | end | |
3381 | if Type == "Knockdown" then | |
3382 | local hum = hit.Parent.Humanoid | |
3383 | hum.PlatformStand = true | |
3384 | coroutine.resume(coroutine.create(function(HHumanoid) | |
3385 | swait(1) | |
3386 | HHumanoid.PlatformStand = false | |
3387 | end), hum) | |
3388 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
3389 | local bodvol = Create("BodyVelocity")({ | |
3390 | velocity = angle * knockback, | |
3391 | P = 5000, | |
3392 | maxForce = Vector3.new(8000, 8000, 8000), | |
3393 | Parent = hit | |
3394 | }) | |
3395 | local rl = Create("BodyAngularVelocity")({ | |
3396 | P = 3000, | |
3397 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
3398 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
3399 | Parent = hit | |
3400 | }) | |
3401 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
3402 | game:GetService("Debris"):AddItem(rl, 0.5) | |
3403 | elseif Type == "Normal" then | |
3404 | local vp = Create("BodyVelocity")({ | |
3405 | P = 500, | |
3406 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
3407 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
3408 | }) | |
3409 | if knockback > 0 then | |
3410 | vp.Parent = hit.Parent.Head | |
3411 | end | |
3412 | game:GetService("Debris"):AddItem(vp, 0.5) | |
3413 | elseif Type == "Up" then | |
3414 | local bodyVelocity = Create("BodyVelocity")({ | |
3415 | velocity = Vector3.new(0, 20, 0), | |
3416 | P = 5000, | |
3417 | maxForce = Vector3.new(8000, 8000, 8000), | |
3418 | Parent = hit | |
3419 | }) | |
3420 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
3421 | local bodyVelocity = Create("BodyVelocity")({ | |
3422 | velocity = Vector3.new(0, 20, 0), | |
3423 | P = 5000, | |
3424 | maxForce = Vector3.new(8000, 8000, 8000), | |
3425 | Parent = hit | |
3426 | }) | |
3427 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
3428 | elseif Type == "Leech" then | |
3429 | local hum = hit.Parent.Humanoid | |
3430 | if hum ~= nil then | |
3431 | for i = 0, 2 do | |
3432 | 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) | |
3433 | end | |
3434 | Humanoid.Health = Humanoid.Health + 10 | |
3435 | end | |
3436 | elseif Type == "UpKnock" then | |
3437 | local hum = hit.Parent.Humanoid | |
3438 | hum.PlatformStand = true | |
3439 | if hum ~= nil then | |
3440 | hitr = true | |
3441 | end | |
3442 | coroutine.resume(coroutine.create(function(HHumanoid) | |
3443 | swait(5) | |
3444 | HHumanoid.PlatformStand = false | |
3445 | hitr = false | |
3446 | end), hum) | |
3447 | local bodyVelocity = Create("BodyVelocity")({ | |
3448 | velocity = Vector3.new(0, 20, 0), | |
3449 | P = 5000, | |
3450 | maxForce = Vector3.new(8000, 8000, 8000), | |
3451 | Parent = hit | |
3452 | }) | |
3453 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
3454 | local bodyVelocity = Create("BodyVelocity")({ | |
3455 | velocity = Vector3.new(0, 20, 0), | |
3456 | P = 5000, | |
3457 | maxForce = Vector3.new(8000, 8000, 8000), | |
3458 | Parent = hit | |
3459 | }) | |
3460 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
3461 | elseif Type == "Snare" then | |
3462 | local bp = Create("BodyPosition")({ | |
3463 | P = 2000, | |
3464 | D = 100, | |
3465 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
3466 | position = hit.Parent.Torso.Position, | |
3467 | Parent = hit.Parent.Torso | |
3468 | }) | |
3469 | game:GetService("Debris"):AddItem(bp, 1) | |
3470 | elseif Type == "Slashnare" then | |
3471 | 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) | |
3472 | for i = 1, math.random(4, 5) do | |
3473 | 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) | |
3474 | end | |
3475 | local bp = Create("BodyPosition")({ | |
3476 | P = 2000, | |
3477 | D = 100, | |
3478 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
3479 | position = hit.Parent.Torso.Position, | |
3480 | Parent = hit.Parent.Torso | |
3481 | }) | |
3482 | game:GetService("Debris"):AddItem(bp, 1) | |
3483 | elseif Type == "Spike" then | |
3484 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
3485 | local bp = Create("BodyPosition")({ | |
3486 | P = 2000, | |
3487 | D = 100, | |
3488 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
3489 | position = hit.Parent.Torso.Position, | |
3490 | Parent = hit.Parent.Torso | |
3491 | }) | |
3492 | game:GetService("Debris"):AddItem(bp, 1) | |
3493 | elseif Type == "Freeze" then | |
3494 | local BodPos = Create("BodyPosition")({ | |
3495 | P = 50000, | |
3496 | D = 1000, | |
3497 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
3498 | position = hit.Parent.Torso.Position, | |
3499 | Parent = hit.Parent.Torso | |
3500 | }) | |
3501 | local BodGy = Create("BodyGyro")({ | |
3502 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
3503 | P = 20000, | |
3504 | Parent = hit.Parent.Torso, | |
3505 | cframe = hit.Parent.Torso.CFrame | |
3506 | }) | |
3507 | hit.Parent.Torso.Anchored = true | |
3508 | coroutine.resume(coroutine.create(function(Part) | |
3509 | swait(1.5) | |
3510 | Part.Anchored = false | |
3511 | end), hit.Parent.Torso) | |
3512 | game:GetService("Debris"):AddItem(BodPos, 3) | |
3513 | game:GetService("Debris"):AddItem(BodGy, 3) | |
3514 | end | |
3515 | local debounce = Create("BoolValue")({ | |
3516 | Name = "DebounceHit", | |
3517 | Parent = hit.Parent, | |
3518 | Value = true | |
3519 | }) | |
3520 | game:GetService("Debris"):AddItem(debounce, Delay) | |
3521 | c = Instance.new("ObjectValue") | |
3522 | c.Name = "creator" | |
3523 | c.Value = Player | |
3524 | c.Parent = h | |
3525 | game:GetService("Debris"):AddItem(c, 0.5) | |
3526 | end | |
3527 | end | |
3528 | function ShowDamage(Pos, Text, Time, Color) | |
3529 | local Rate = 0.03333333333333333 | |
3530 | local Pos = Pos or Vector3.new(0, 0, 0) | |
3531 | local Text = Text or "" | |
3532 | local Time = Time or 2 | |
3533 | local Color = Color or Color3.new(1, 0, 1) | |
3534 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
3535 | EffectPart.Anchored = true | |
3536 | local BillboardGui = Create("BillboardGui")({ | |
3537 | Size = UDim2.new(3, 0, 3, 0), | |
3538 | Adornee = EffectPart, | |
3539 | Parent = EffectPart | |
3540 | }) | |
3541 | local TextLabel = Create("TextLabel")({ | |
3542 | BackgroundTransparency = 1, | |
3543 | Size = UDim2.new(1, 0, 1, 0), | |
3544 | Text = Text, | |
3545 | TextColor3 = Color, | |
3546 | TextScaled = true, | |
3547 | Font = Enum.Font.ArialBold, | |
3548 | Parent = BillboardGui | |
3549 | }) | |
3550 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
3551 | EffectPart.Parent = game:GetService("Workspace") | |
3552 | delay(0, function() | |
3553 | local Frames = Time / Rate | |
3554 | for Frame = 1, Frames do | |
3555 | wait(Rate) | |
3556 | local Percent = Frame / Frames | |
3557 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
3558 | TextLabel.TextTransparency = Percent | |
3559 | end | |
3560 | if EffectPart and EffectPart.Parent then | |
3561 | EffectPart:Destroy() | |
3562 | end | |
3563 | end) | |
3564 | end | |
3565 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
3566 | for _, c in pairs(workspace:children()) do | |
3567 | local hum = c:findFirstChildOfClass("Humanoid") | |
3568 | if hum ~= nil then | |
3569 | local head = c:findFirstChild("Head") | |
3570 | if head ~= nil then | |
3571 | local targ = head.Position - Part.Position | |
3572 | local mag = targ.magnitude | |
3573 | if magni >= mag and c.Name ~= Player.Name then | |
3574 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
3575 | end | |
3576 | end | |
3577 | end | |
3578 | end | |
3579 | end | |
3580 | ||
3581 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
3582 | for _, c in pairs(workspace:children()) do | |
3583 | local hum = c:findFirstChild("Humanoid") | |
3584 | if hum ~= nil then | |
3585 | local head = c:findFirstChild("Torso") | |
3586 | if head ~= nil then | |
3587 | local targ = head.Position - Part.Position | |
3588 | local mag = targ.magnitude | |
3589 | if magni >= mag and c.Name ~= Player.Name then | |
3590 | MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05) | |
3591 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
3592 | end | |
3593 | end | |
3594 | end | |
3595 | end | |
3596 | end | |
3597 | ||
3598 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
3599 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
3600 | end | |
3601 | ||
3602 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
3603 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3604 | prt.Anchored=true | |
3605 | prt.CFrame=cframe | |
3606 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
3607 | --http://www.roblox.com/asset/?id=4770560 | |
3608 | game:GetService("Debris"):AddItem(prt,2) | |
3609 | CF=prt.CFrame | |
3610 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
3611 | for i=0,1,0.2 do | |
3612 | wait() | |
3613 | Part.CFrame=CF*cf(0,0,-0.4) | |
3614 | end | |
3615 | for i=0,1,delay do | |
3616 | wait() | |
3617 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
3618 | Mesh.Scale=Mesh.Scale | |
3619 | end | |
3620 | for i=0,1,0.1 do | |
3621 | wait() | |
3622 | Part.Transparency=i | |
3623 | end | |
3624 | Part.Parent=nil | |
3625 | end),prt,msh,CF) | |
3626 | end | |
3627 | ||
3628 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
3629 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3630 | prt.Anchored=true | |
3631 | prt.Material = "Neon" | |
3632 | prt.CFrame=cframe | |
3633 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3634 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
3635 | game:GetService("Debris"):AddItem(prt,5) | |
3636 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3637 | for i=0,1,delay do | |
3638 | swait() | |
3639 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3640 | Part.Transparency=i | |
3641 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
3642 | end | |
3643 | Part.Parent=nil | |
3644 | end),prt,msh) | |
3645 | end | |
3646 | ||
3647 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
3648 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3649 | prt.Anchored=true | |
3650 | prt.Material = "Neon" | |
3651 | prt.CFrame=cframe | |
3652 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
3653 | game:GetService("Debris"):AddItem(prt,5) | |
3654 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3655 | local rtype = rottype | |
3656 | for i=0,1,delay do | |
3657 | swait() | |
3658 | if rtype == 1 then | |
3659 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
3660 | elseif rtype == 2 then | |
3661 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
3662 | end | |
3663 | Part.Transparency=i | |
3664 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
3665 | end | |
3666 | Part.Parent=nil | |
3667 | end),prt,msh) | |
3668 | end | |
3669 | ||
3670 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
3671 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3672 | prt.Anchored=true | |
3673 | prt.CFrame=cframe | |
3674 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3675 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
3676 | game:GetService("Debris"):AddItem(prt,5) | |
3677 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3678 | for i=0,1,delay do | |
3679 | wait() | |
3680 | Part.Transparency=i | |
3681 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
3682 | end | |
3683 | Part.Parent=nil | |
3684 | end),prt,msh) | |
3685 | end | |
3686 | ||
3687 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
3688 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3689 | prt.Anchored=true | |
3690 | prt.Material = "Neon" | |
3691 | prt.CFrame=cframe | |
3692 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
3693 | game:GetService("Debris"):AddItem(prt,5) | |
3694 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3695 | local rtype = rottype | |
3696 | for i=0,1,delay do | |
3697 | swait() | |
3698 | if rtype == 1 then | |
3699 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
3700 | elseif rtype == 2 then | |
3701 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
3702 | end | |
3703 | Part.Transparency=i | |
3704 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
3705 | end | |
3706 | Part.Parent=nil | |
3707 | end),prt,msh) | |
3708 | end | |
3709 | ||
3710 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
3711 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3712 | prt.Anchored=true | |
3713 | prt.Material = "Neon" | |
3714 | prt.CFrame=cframe | |
3715 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
3716 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
3717 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
3718 | game:GetService("Debris"):AddItem(prt,5) | |
3719 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3720 | local rtype = rottype | |
3721 | for i=0,1,delay do | |
3722 | swait() | |
3723 | if rtype == 1 then | |
3724 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
3725 | elseif rtype == 2 then | |
3726 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
3727 | end | |
3728 | dec.Transparency=i | |
3729 | dec2.Transparency=i | |
3730 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
3731 | end | |
3732 | Part.Parent=nil | |
3733 | end),prt,msh) | |
3734 | end | |
3735 | ||
3736 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
3737 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3738 | prt.Anchored=true | |
3739 | prt.Material = "Neon" | |
3740 | prt.CFrame=cframe | |
3741 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
3742 | game:GetService("Debris"):AddItem(prt,5) | |
3743 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3744 | local rtype = rottype | |
3745 | for i=0,1,delay do | |
3746 | swait() | |
3747 | if rtype == 1 then | |
3748 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
3749 | elseif rtype == 2 then | |
3750 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
3751 | end | |
3752 | prt.Transparency=i | |
3753 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
3754 | end | |
3755 | Part.Parent=nil | |
3756 | end),prt,msh) | |
3757 | end | |
3758 | ||
3759 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
3760 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3761 | prt.Anchored=true | |
3762 | prt.Material = "Neon" | |
3763 | prt.CFrame=cframe | |
3764 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1)) | |
3765 | game:GetService("Debris"):AddItem(prt,5) | |
3766 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3767 | local rtype = rottype | |
3768 | for i=0,1,delay do | |
3769 | swait() | |
3770 | if rtype == 1 then | |
3771 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
3772 | elseif rtype == 2 then | |
3773 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
3774 | end | |
3775 | prt.Transparency=i | |
3776 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
3777 | end | |
3778 | Part.Parent=nil | |
3779 | end),prt,msh) | |
3780 | end | |
3781 | ||
3782 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
3783 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3784 | prt.Anchored=true | |
3785 | prt.Material = "Neon" | |
3786 | prt.CFrame=cframe | |
3787 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
3788 | game:GetService("Debris"):AddItem(prt,5) | |
3789 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3790 | local rtype = rottype | |
3791 | for i=0,1,delay do | |
3792 | swait() | |
3793 | if rtype == 1 then | |
3794 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
3795 | elseif rtype == 2 then | |
3796 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
3797 | end | |
3798 | prt.Transparency=i | |
3799 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
3800 | end | |
3801 | Part.Parent=nil | |
3802 | end),prt,msh) | |
3803 | end | |
3804 | ||
3805 | function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
3806 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3807 | prt.Anchored=true | |
3808 | prt.Material = "Neon" | |
3809 | prt.CFrame=cframe | |
3810 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
3811 | game:GetService("Debris"):AddItem(prt,5) | |
3812 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3813 | local rtype = rottype | |
3814 | for i=0,1,delay do | |
3815 | swait() | |
3816 | if rtype == 1 then | |
3817 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
3818 | elseif rtype == 2 then | |
3819 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
3820 | end | |
3821 | prt.Transparency=i | |
3822 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
3823 | end | |
3824 | Part.Parent=nil | |
3825 | end),prt,msh) | |
3826 | end | |
3827 | ||
3828 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
3829 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3830 | prt.Anchored=false | |
3831 | prt.CFrame=cframe | |
3832 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
3833 | local wld=weld(prt,prt,Parent,cframe) | |
3834 | game:GetService("Debris"):AddItem(prt,5) | |
3835 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
3836 | for i=0,1,delay do | |
3837 | wait() | |
3838 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
3839 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3840 | Part.Transparency=i | |
3841 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
3842 | end | |
3843 | Part.Parent=nil | |
3844 | end),prt,msh,wld) | |
3845 | end | |
3846 | ||
3847 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
3848 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3849 | prt.Anchored=false | |
3850 | prt.CFrame=cframe | |
3851 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
3852 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
3853 | game:GetService("Debris"):AddItem(prt,5) | |
3854 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
3855 | for i=0,1,delay do | |
3856 | wait() | |
3857 | Weld.C0=euler(i*20,0,0) | |
3858 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3859 | Part.Transparency=i | |
3860 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
3861 | end | |
3862 | Part.Parent=nil | |
3863 | end),prt,msh,wld) | |
3864 | end | |
3865 | ||
3866 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
3867 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3868 | prt.Anchored=true | |
3869 | prt.CFrame=cframe | |
3870 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
3871 | game:GetService("Debris"):AddItem(prt,2) | |
3872 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3873 | for i=0,1,delay do | |
3874 | wait() | |
3875 | Part.CFrame=Part.CFrame | |
3876 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
3877 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3878 | prt2.Anchored=true | |
3879 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3880 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
3881 | game:GetService("Debris"):AddItem(prt2,2) | |
3882 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3883 | for i=0,1,0.1 do | |
3884 | wait() | |
3885 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
3886 | end | |
3887 | Part.Parent=nil | |
3888 | end),prt2,msh2) | |
3889 | end | |
3890 | for i=0,1,delay*2 do | |
3891 | wait() | |
3892 | Part.CFrame=Part.CFrame | |
3893 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
3894 | end | |
3895 | Part.Parent=nil | |
3896 | end),prt,msh) | |
3897 | end | |
3898 | ||
3899 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
3900 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3901 | prt.Anchored=true | |
3902 | prt.CFrame=cframe | |
3903 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
3904 | game:GetService("Debris"):AddItem(prt,2) | |
3905 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3906 | for i=0,1,delay do | |
3907 | wait() | |
3908 | Part.CFrame=Part.CFrame | |
3909 | Part.Transparency=i | |
3910 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
3911 | end | |
3912 | Part.Parent=nil | |
3913 | end),prt,msh) | |
3914 | end | |
3915 | ||
3916 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
3917 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3918 | prt.Anchored=true | |
3919 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
3920 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
3921 | game:GetService("Debris"):AddItem(prt,2) | |
3922 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
3923 | CF=Part.CFrame | |
3924 | Numbb=0 | |
3925 | randnumb=math.random()/10 | |
3926 | rand1=math.random()/10 | |
3927 | for i=0,1,rand1 do | |
3928 | wait() | |
3929 | CF=CF*cf(0,math.random()/2,0) | |
3930 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
3931 | Part.CFrame=CF*euler(Numbb,0,0) | |
3932 | Part.Transparency=i | |
3933 | Numbb=Numbb+randnumb | |
3934 | end | |
3935 | Part.Parent=nil | |
3936 | end),prt,CF,Numbb,randnumb) | |
3937 | end | |
3938 | ||
3939 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
3940 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3941 | prt.Anchored=true | |
3942 | prt.CFrame=cframe | |
3943 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
3944 | game:GetService("Debris"):AddItem(prt,5) | |
3945 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3946 | for i=0,1,delay do | |
3947 | wait() | |
3948 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
3949 | Part.Transparency=i | |
3950 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
3951 | end | |
3952 | Part.Parent=nil | |
3953 | end),prt,msh) | |
3954 | end | |
3955 | ||
3956 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
3957 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3958 | prt.Anchored=true | |
3959 | prt.CFrame=cframe | |
3960 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
3961 | game:GetService("Debris"):AddItem(prt,2) | |
3962 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
3963 | for i=0,1,delay do | |
3964 | wait() | |
3965 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
3966 | Part.Transparency=i | |
3967 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
3968 | end | |
3969 | Part.Parent=nil | |
3970 | end),prt,msh) | |
3971 | end | |
3972 | ||
3973 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
3974 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
3975 | prt.Anchored=true | |
3976 | prt.CFrame=cframe*cf(x,y,z) | |
3977 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
3978 | game:GetService("Debris"):AddItem(prt,5) | |
3979 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
3980 | local num=math.random() | |
3981 | local num2=math.random(-3,2)+math.random() | |
3982 | local numm=0 | |
3983 | for i=0,1,delay*2 do | |
3984 | swait() | |
3985 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
3986 | Part.Transparency=i | |
3987 | numm=numm+0.01 | |
3988 | end | |
3989 | Part.Parent=nil | |
3990 | Mesh.Parent=nil | |
3991 | end),prt,msh,x,y,z) | |
3992 | end | |
3993 | ||
3994 | function dmgstart(dmg,what) | |
3995 | hitcon = what.Touched:connect(function(hit) | |
3996 | local hum = hit.Parent:FindFirstChild("Humanoid") | |
3997 | if hum and not hum:IsDescendantOf(Character) then | |
3998 | hum:TakeDamage(dmg) | |
3999 | end | |
4000 | end) | |
4001 | end | |
4002 | ||
4003 | function dmgstop() | |
4004 | hitcon:disconnect() | |
4005 | end | |
4006 | ||
4007 | function Cloak() | |
4008 | Face.Parent=nil | |
4009 | cloaked=true | |
4010 | for _,v in pairs(Torso.Parent:children()) do | |
4011 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
4012 | coroutine.resume(coroutine.create(function() | |
4013 | for i=0,1,0.2 do | |
4014 | wait() | |
4015 | v.Transparency=i | |
4016 | end | |
4017 | v.Transparency=1 | |
4018 | end)) | |
4019 | end | |
4020 | if v.className=="Hat" then | |
4021 | hatp=v.Handle | |
4022 | coroutine.resume(coroutine.create(function(derp) | |
4023 | for i=0,1,0.2 do | |
4024 | wait() | |
4025 | derp.Transparency=i | |
4026 | end | |
4027 | derp.Transparency=1 | |
4028 | end),hatp) | |
4029 | end | |
4030 | end | |
4031 | for _,v in pairs(m:children()) do | |
4032 | if v.className=="Part" then | |
4033 | coroutine.resume(coroutine.create(function() | |
4034 | for i=0,1,0.2 do | |
4035 | wait() | |
4036 | v.Transparency=i | |
4037 | end | |
4038 | v.Transparency=1 | |
4039 | end)) | |
4040 | end | |
4041 | end | |
4042 | end | |
4043 | ||
4044 | function UnCloak() | |
4045 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) | |
4046 | Face.Parent=Head | |
4047 | cloaked=false | |
4048 | for _,v in pairs(Torso.Parent:children()) do | |
4049 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
4050 | coroutine.resume(coroutine.create(function() | |
4051 | for i=0,1,0.1 do | |
4052 | wait() | |
4053 | v.Transparency=v.Transparency-0.1 | |
4054 | end | |
4055 | v.Transparency=0 | |
4056 | end)) | |
4057 | end | |
4058 | if v.className=="Hat" then | |
4059 | hatp=v.Handle | |
4060 | coroutine.resume(coroutine.create(function(derp) | |
4061 | for i=0,1,0.1 do | |
4062 | wait() | |
4063 | derp.Transparency=derp.Transparency-0.1 | |
4064 | end | |
4065 | derp.Transparency=0 | |
4066 | end),hatp) | |
4067 | end | |
4068 | end | |
4069 | for _,v in pairs(m:children()) do | |
4070 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
4071 | coroutine.resume(coroutine.create(function() | |
4072 | for i=0,1,0.1 do | |
4073 | wait() | |
4074 | v.Transparency=v.Transparency-0.1 | |
4075 | end | |
4076 | v.Transparency=0 | |
4077 | end)) | |
4078 | v.Transparency=0 | |
4079 | end | |
4080 | end | |
4081 | end | |
4082 | ||
4083 | local origcolor = BrickColor.new("Pastel light blue") | |
4084 | ---- This section of explosions. | |
4085 | ||
4086 | ---- | |
4087 | ||
4088 | ||
4089 | function ring(type,pos,scale,value) | |
4090 | local type = type | |
4091 | local rng = Instance.new("Part", char) | |
4092 | rng.Anchored = true | |
4093 | rng.BrickColor = origcolor | |
4094 | rng.CanCollide = false | |
4095 | rng.FormFactor = 3 | |
4096 | rng.Name = "Ring" | |
4097 | rng.Size = Vector3.new(1, 1, 1) | |
4098 | rng.Transparency = 0 | |
4099 | rng.TopSurface = 0 | |
4100 | rng.BottomSurface = 0 | |
4101 | rng.CFrame = pos | |
4102 | local rngm = Instance.new("SpecialMesh", rng) | |
4103 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
4104 | rngm.Scale = scale | |
4105 | local scaler2 = 1 | |
4106 | if type == "Add" then | |
4107 | scaler2 = 1*value | |
4108 | elseif type == "Divide" then | |
4109 | scaler2 = 1/value | |
4110 | end | |
4111 | coroutine.resume(coroutine.create(function() | |
4112 | for i = 0,10,0.1 do | |
4113 | swait() | |
4114 | if type == "Add" then | |
4115 | scaler2 = scaler2 - 0.01*value | |
4116 | elseif type == "Divide" then | |
4117 | scaler2 = scaler2 - 0.01/value | |
4118 | end | |
4119 | rng.Transparency = rng.Transparency + 0.01 | |
4120 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
4121 | end | |
4122 | rng:Destroy() | |
4123 | end)) | |
4124 | end | |
4125 | ||
4126 | ||
4127 | function wave(type,pos,scale,value) | |
4128 | local type = type | |
4129 | local rng = Instance.new("Part", char) | |
4130 | rng.Anchored = true | |
4131 | rng.BrickColor = origcolor | |
4132 | rng.CanCollide = false | |
4133 | rng.FormFactor = 3 | |
4134 | rng.Name = "Ring" | |
4135 | rng.Size = Vector3.new(1, 1, 1) | |
4136 | rng.Transparency = 0 | |
4137 | rng.TopSurface = 0 | |
4138 | rng.BottomSurface = 0 | |
4139 | rng.CFrame = pos | |
4140 | local rngm = Instance.new("SpecialMesh", rng) | |
4141 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
4142 | rngm.Scale = scale | |
4143 | local scaler2 = 1 | |
4144 | if type == "Add" then | |
4145 | scaler2 = 1*value | |
4146 | elseif type == "Divide" then | |
4147 | scaler2 = 1/value | |
4148 | end | |
4149 | coroutine.resume(coroutine.create(function() | |
4150 | for i = 0,10,0.1 do | |
4151 | swait() | |
4152 | if type == "Add" then | |
4153 | scaler2 = scaler2 - 0.01*value | |
4154 | elseif type == "Divide" then | |
4155 | scaler2 = scaler2 - 0.01/value | |
4156 | end | |
4157 | rng.Transparency = rng.Transparency + 0.01 | |
4158 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
4159 | end | |
4160 | rng:Destroy() | |
4161 | end)) | |
4162 | end | |
4163 | ||
4164 | function wind(type,pos,scale,value,speed) | |
4165 | local type = type | |
4166 | local rng = Instance.new("Part", char) | |
4167 | rng.Anchored = true | |
4168 | rng.BrickColor = origcolor | |
4169 | rng.CanCollide = false | |
4170 | rng.FormFactor = 3 | |
4171 | rng.Name = "Ring" | |
4172 | rng.Size = Vector3.new(1, 1, 1) | |
4173 | rng.Transparency = 0 | |
4174 | rng.TopSurface = 0 | |
4175 | rng.BottomSurface = 0 | |
4176 | rng.CFrame = pos | |
4177 | local rngm = Instance.new("SpecialMesh", rng) | |
4178 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
4179 | rngm.Scale = scale | |
4180 | local scaler2 = 1 | |
4181 | if type == "Add" then | |
4182 | scaler2 = 1*value | |
4183 | elseif type == "Divide" then | |
4184 | scaler2 = 1/value | |
4185 | end | |
4186 | coroutine.resume(coroutine.create(function() | |
4187 | for i = 0,10,0.1 do | |
4188 | swait() | |
4189 | if type == "Add" then | |
4190 | scaler2 = scaler2 - 0.01*value | |
4191 | elseif type == "Divide" then | |
4192 | scaler2 = scaler2 - 0.01/value | |
4193 | end | |
4194 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
4195 | rng.Transparency = rng.Transparency + 0.01 | |
4196 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
4197 | end | |
4198 | rng:Destroy() | |
4199 | end)) | |
4200 | end | |
4201 | ||
4202 | function groundwind(type,pos,scale,value,speed) | |
4203 | local type = type | |
4204 | local rng = Instance.new("Part", char) | |
4205 | rng.Anchored = true | |
4206 | rng.BrickColor = origcolor | |
4207 | rng.CanCollide = false | |
4208 | rng.FormFactor = 3 | |
4209 | rng.Name = "Ring" | |
4210 | rng.Size = Vector3.new(1, 1, 1) | |
4211 | rng.Transparency = 0 | |
4212 | rng.TopSurface = 0 | |
4213 | rng.BottomSurface = 0 | |
4214 | rng.CFrame = pos | |
4215 | local rngm = Instance.new("SpecialMesh", rng) | |
4216 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
4217 | rngm.Scale = scale | |
4218 | local scaler2 = 1 | |
4219 | if type == "Add" then | |
4220 | scaler2 = 1*value | |
4221 | elseif type == "Divide" then | |
4222 | scaler2 = 1/value | |
4223 | end | |
4224 | coroutine.resume(coroutine.create(function() | |
4225 | for i = 0,10,0.1 do | |
4226 | swait() | |
4227 | if type == "Add" then | |
4228 | scaler2 = scaler2 - 0.01*value | |
4229 | elseif type == "Divide" then | |
4230 | scaler2 = scaler2 - 0.01/value | |
4231 | end | |
4232 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
4233 | rng.Transparency = rng.Transparency + 0.01 | |
4234 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2) | |
4235 | end | |
4236 | rng:Destroy() | |
4237 | end)) | |
4238 | end | |
4239 | ||
4240 | function CameraManager() | |
4241 | if TwoD and not CamInterrupt then | |
4242 | if Humanoid.Health > 0 then | |
4243 | Camera.CameraSubject = Humanoid | |
4244 | Camera.CameraType = "Scriptable" | |
4245 | Humanoid.AutoRotate = false | |
4246 | if Booleans.GyroUse then | |
4247 | Directer.MaxTorque = Vec3(0, huge, 0) | |
4248 | else | |
4249 | Directer.MaxTorque = Vec3(0, 0, 0) | |
4250 | end | |
4251 | if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then | |
4252 | if Booleans.CamFollow then | |
4253 | CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z)) | |
4254 | Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position) | |
4255 | else | |
4256 | CPart.Position = RootPart.Position | |
4257 | end | |
4258 | else | |
4259 | local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p | |
4260 | CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z)) | |
4261 | end | |
4262 | Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2) | |
4263 | else | |
4264 | Camera.CameraSubject = Humanoid | |
4265 | Camera.CameraType = "Custom" | |
4266 | Controller.Disabled = false | |
4267 | end | |
4268 | end | |
4269 | end | |
4270 | ||
4271 | function ring(type,pos,scale,value) | |
4272 | local type = type | |
4273 | local rng = Instance.new("Part", char) | |
4274 | rng.Anchored = true | |
4275 | rng.BrickColor = origcolor | |
4276 | rng.CanCollide = false | |
4277 | rng.FormFactor = 3 | |
4278 | rng.Name = "Ring" | |
4279 | rng.Size = Vector3.new(1, 1, 1) | |
4280 | rng.Transparency = 0 | |
4281 | rng.TopSurface = 0 | |
4282 | rng.BottomSurface = 0 | |
4283 | rng.CFrame = pos | |
4284 | local rngm = Instance.new("SpecialMesh", rng) | |
4285 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
4286 | rngm.Scale = scale | |
4287 | local scaler2 = 1 | |
4288 | if type == "Add" then | |
4289 | scaler2 = 1*value | |
4290 | elseif type == "Divide" then | |
4291 | scaler2 = 1/value | |
4292 | end | |
4293 | coroutine.resume(coroutine.create(function() | |
4294 | for i = 0,10,0.1 do | |
4295 | swait() | |
4296 | if type == "Add" then | |
4297 | scaler2 = scaler2 - 0.01*value | |
4298 | elseif type == "Divide" then | |
4299 | scaler2 = scaler2 - 0.01/value | |
4300 | end | |
4301 | rng.Transparency = rng.Transparency + 0.01 | |
4302 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
4303 | end | |
4304 | rng:Destroy() | |
4305 | end)) | |
4306 | end | |
4307 | ||
4308 | ||
4309 | function wave(type,pos,scale,value) | |
4310 | local type = type | |
4311 | local rng = Instance.new("Part", char) | |
4312 | rng.Anchored = true | |
4313 | rng.BrickColor = origcolor | |
4314 | rng.CanCollide = false | |
4315 | rng.FormFactor = 3 | |
4316 | rng.Name = "Ring" | |
4317 | rng.Size = Vector3.new(1, 1, 1) | |
4318 | rng.Transparency = 0 | |
4319 | rng.TopSurface = 0 | |
4320 | rng.BottomSurface = 0 | |
4321 | rng.CFrame = pos | |
4322 | local rngm = Instance.new("SpecialMesh", rng) | |
4323 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
4324 | rngm.Scale = scale | |
4325 | local scaler2 = 1 | |
4326 | if type == "Add" then | |
4327 | scaler2 = 1*value | |
4328 | elseif type == "Divide" then | |
4329 | scaler2 = 1/value | |
4330 | end | |
4331 | coroutine.resume(coroutine.create(function() | |
4332 | for i = 0,10,0.1 do | |
4333 | swait() | |
4334 | if type == "Add" then | |
4335 | scaler2 = scaler2 - 0.01*value | |
4336 | elseif type == "Divide" then | |
4337 | scaler2 = scaler2 - 0.01/value | |
4338 | end | |
4339 | rng.Transparency = rng.Transparency + 0.01 | |
4340 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
4341 | end | |
4342 | rng:Destroy() | |
4343 | end)) | |
4344 | end | |
4345 | ||
4346 | function sphere(bonuspeed,type,pos,scale,value,color) | |
4347 | local type = type | |
4348 | local rng = Instance.new("Part", char) | |
4349 | rng.Anchored = true | |
4350 | if ModeOfGlitch ~= 9 then | |
4351 | rng.BrickColor = color | |
4352 | elseif ModeOfGlitch == 9 then | |
4353 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
4354 | end | |
4355 | rng.CanCollide = false | |
4356 | rng.FormFactor = 3 | |
4357 | rng.Name = "Ring" | |
4358 | rng.Material = "Neon" | |
4359 | rng.Size = Vector3.new(1, 1, 1) | |
4360 | rng.Transparency = 0 | |
4361 | rng.TopSurface = 0 | |
4362 | rng.BottomSurface = 0 | |
4363 | rng.CFrame = pos | |
4364 | local rngm = Instance.new("SpecialMesh", rng) | |
4365 | rngm.MeshType = "Sphere" | |
4366 | rngm.Scale = scale | |
4367 | if rainbowmode == true then | |
4368 | rng.Color = Color3.new(r/255,g/255,b/255) | |
4369 | end | |
4370 | if ModeOfGlitch == 9 then | |
4371 | coroutine.resume(coroutine.create(function() | |
4372 | while true do | |
4373 | swait() | |
4374 | if rng.Parent ~= nil then | |
4375 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
4376 | else | |
4377 | break | |
4378 | end | |
4379 | end | |
4380 | end)) | |
4381 | end | |
4382 | local scaler2 = 1 | |
4383 | if type == "Add" then | |
4384 | scaler2 = 1*value | |
4385 | elseif type == "Divide" then | |
4386 | scaler2 = 1/value | |
4387 | end | |
4388 | coroutine.resume(coroutine.create(function() | |
4389 | for i = 0,10/bonuspeed,0.1 do | |
4390 | swait() | |
4391 | if rainbowmode == true then | |
4392 | rng.Color = Color3.new(r/255,g/255,b/255) | |
4393 | end | |
4394 | if type == "Add" then | |
4395 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
4396 | elseif type == "Divide" then | |
4397 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
4398 | end | |
4399 | if chaosmode == true then | |
4400 | rng.BrickColor = BrickColor.random() | |
4401 | end | |
4402 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
4403 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
4404 | end | |
4405 | rng:Destroy() | |
4406 | end)) | |
4407 | end | |
4408 | ||
4409 | function sphere2(bonuspeed,type,pos,scale,value,value2,value3,color) | |
4410 | local type = type | |
4411 | local rng = Instance.new("Part", char) | |
4412 | rng.Anchored = true | |
4413 | if ModeOfGlitch ~= 9 then | |
4414 | rng.BrickColor = color | |
4415 | elseif ModeOfGlitch == 9 then | |
4416 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
4417 | end | |
4418 | rng.CanCollide = false | |
4419 | rng.FormFactor = 3 | |
4420 | rng.Name = "Ring" | |
4421 | rng.Material = "Neon" | |
4422 | rng.Size = Vector3.new(1, 1, 1) | |
4423 | rng.Transparency = 0 | |
4424 | rng.TopSurface = 0 | |
4425 | rng.BottomSurface = 0 | |
4426 | rng.CFrame = pos | |
4427 | local rngm = Instance.new("SpecialMesh", rng) | |
4428 | rngm.MeshType = "Sphere" | |
4429 | rngm.Scale = scale | |
4430 | local scaler2 = 1 | |
4431 | local scaler2b = 1 | |
4432 | local scaler2c = 1 | |
4433 | if type == "Add" then | |
4434 | scaler2 = 1*value | |
4435 | scaler2b = 1*value2 | |
4436 | scaler2c = 1*value3 | |
4437 | elseif type == "Divide" then | |
4438 | scaler2 = 1/value | |
4439 | scaler2b = 1/value2 | |
4440 | scaler2c = 1/value3 | |
4441 | end | |
4442 | if ModeOfGlitch == 9 then | |
4443 | coroutine.resume(coroutine.create(function() | |
4444 | while true do | |
4445 | swait() | |
4446 | if rng.Parent ~= nil then | |
4447 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
4448 | else | |
4449 | break | |
4450 | end | |
4451 | end | |
4452 | end)) | |
4453 | end | |
4454 | coroutine.resume(coroutine.create(function() | |
4455 | for i = 0,10/bonuspeed,0.1 do | |
4456 | swait() | |
4457 | if type == "Add" then | |
4458 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
4459 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
4460 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
4461 | elseif type == "Divide" then | |
4462 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
4463 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
4464 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
4465 | end | |
4466 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
4467 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
4468 | end | |
4469 | rng:Destroy() | |
4470 | end)) | |
4471 | end | |
4472 | ||
4473 | function slash(bonuspeed,rotspeed,rotatingop,typeofshape,type,typeoftrans,pos,scale,value,color) | |
4474 | local type = type | |
4475 | local rotenable = rotatingop | |
4476 | local rng = Instance.new("Part", char) | |
4477 | rng.Anchored = true | |
4478 | rng.BrickColor = color | |
4479 | rng.CanCollide = false | |
4480 | rng.FormFactor = 3 | |
4481 | rng.Name = "Ring" | |
4482 | rng.Material = "Neon" | |
4483 | rng.Size = Vector3.new(1, 1, 1) | |
4484 | rng.Transparency = 0 | |
4485 | if typeoftrans == "In" then | |
4486 | rng.Transparency = 1 | |
4487 | end | |
4488 | rng.TopSurface = 0 | |
4489 | rng.BottomSurface = 0 | |
4490 | rng.CFrame = pos | |
4491 | local rngm = Instance.new("SpecialMesh", rng) | |
4492 | rngm.MeshType = "FileMesh" | |
4493 | if typeofshape == "Normal" then | |
4494 | rngm.MeshId = "rbxassetid://662586858" | |
4495 | elseif typeofshape == "Round" then | |
4496 | rngm.MeshId = "rbxassetid://662585058" | |
4497 | end | |
4498 | rngm.Scale = scale | |
4499 | local scaler2 = 1/10 | |
4500 | if type == "Add" then | |
4501 | scaler2 = 1*value/10 | |
4502 | elseif type == "Divide" then | |
4503 | scaler2 = 1/value/10 | |
4504 | end | |
4505 | local randomrot = math.random(1,2) | |
4506 | coroutine.resume(coroutine.create(function() | |
4507 | for i = 0,10/bonuspeed,0.1 do | |
4508 | swait() | |
4509 | if type == "Add" then | |
4510 | scaler2 = scaler2 - 0.01*value/bonuspeed/10 | |
4511 | elseif type == "Divide" then | |
4512 | scaler2 = scaler2 - 0.01/value*bonuspeed/10 | |
4513 | end | |
4514 | if rotenable == true then | |
4515 | if randomrot == 1 then | |
4516 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(rotspeed*bonuspeed/2),0) | |
4517 | elseif randomrot == 2 then | |
4518 | rng.CFrame = rng.CFrame*CFrame.Angles(0,math.rad(-rotspeed*bonuspeed/2),0) | |
4519 | end | |
4520 | end | |
4521 | if typeoftrans == "Out" then | |
4522 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
4523 | elseif typeoftrans == "In" then | |
4524 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
4525 | end | |
4526 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed/10, 0, scaler2*bonuspeed/10) | |
4527 | end | |
4528 | rng:Destroy() | |
4529 | end)) | |
4530 | end | |
4531 | ||
4532 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
4533 | local type = type | |
4534 | local rng = Instance.new("Part", char) | |
4535 | rng.Anchored = true | |
4536 | rng.BrickColor = color | |
4537 | rng.CanCollide = false | |
4538 | rng.FormFactor = 3 | |
4539 | rng.Name = "Ring" | |
4540 | rng.Material = "Neon" | |
4541 | rng.Size = Vector3.new(1, 1, 1) | |
4542 | rng.Transparency = 0 | |
4543 | rng.TopSurface = 0 | |
4544 | rng.BottomSurface = 0 | |
4545 | rng.CFrame = pos | |
4546 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
4547 | local rngm = Instance.new("SpecialMesh", rng) | |
4548 | rngm.MeshType = "Brick" | |
4549 | rngm.Scale = vt(x1,y1,z1) | |
4550 | if rainbowmode == true then | |
4551 | rng.Color = Color3.new(r/255,g/255,b/255) | |
4552 | end | |
4553 | local scaler2 = 1 | |
4554 | local speeder = FastSpeed/10 | |
4555 | if type == "Add" then | |
4556 | scaler2 = 1*value | |
4557 | elseif type == "Divide" then | |
4558 | scaler2 = 1/value | |
4559 | end | |
4560 | coroutine.resume(coroutine.create(function() | |
4561 | for i = 0,10/bonuspeed,0.1 do | |
4562 | swait() | |
4563 | if rainbowmode == true then | |
4564 | rng.Color = Color3.new(r/255,g/255,b/255) | |
4565 | end | |
4566 | if type == "Add" then | |
4567 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
4568 | elseif type == "Divide" then | |
4569 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
4570 | end | |
4571 | if chaosmode == true then | |
4572 | rng.BrickColor = BrickColor.random() | |
4573 | end | |
4574 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
4575 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
4576 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
4577 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
4578 | end | |
4579 | rng:Destroy() | |
4580 | end)) | |
4581 | end | |
4582 | ||
4583 | function PixelBlockX(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
4584 | local type = type | |
4585 | local rng = Instance.new("Part", char) | |
4586 | rng.Anchored = true | |
4587 | rng.BrickColor = color | |
4588 | rng.CanCollide = false | |
4589 | rng.FormFactor = 3 | |
4590 | rng.Name = "Ring" | |
4591 | rng.Material = "Neon" | |
4592 | rng.Size = Vector3.new(1, 1, 1) | |
4593 | rng.Transparency = 0 | |
4594 | rng.TopSurface = 0 | |
4595 | rng.BottomSurface = 0 | |
4596 | rng.CFrame = pos | |
4597 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
4598 | local rngm = Instance.new("SpecialMesh", rng) | |
4599 | rngm.MeshType = "Brick" | |
4600 | rngm.Scale = vt(x1,y1,z1) | |
4601 | if rainbowmode == true then | |
4602 | rng.Color = Color3.new(r/255,g/255,b/255) | |
4603 | end | |
4604 | local scaler2 = 1 | |
4605 | local speeder = FastSpeed/10 | |
4606 | if type == "Add" then | |
4607 | scaler2 = 1*value | |
4608 | elseif type == "Divide" then | |
4609 | scaler2 = 1/value | |
4610 | end | |
4611 | coroutine.resume(coroutine.create(function() | |
4612 | for i = 0,10/bonuspeed,0.1 do | |
4613 | swait() | |
4614 | if rainbowmode == true then | |
4615 | rng.Color = Color3.new(r/255,g/255,b/255) | |
4616 | end | |
4617 | if type == "Add" then | |
4618 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
4619 | elseif type == "Divide" then | |
4620 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
4621 | end | |
4622 | if chaosmode == true then | |
4623 | rng.BrickColor = BrickColor.random() | |
4624 | end | |
4625 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
4626 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
4627 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
4628 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
4629 | end | |
4630 | rng:Destroy() | |
4631 | end)) | |
4632 | end | |
4633 | ||
4634 | function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
4635 | local type = type | |
4636 | local rng = Instance.new("Part", char) | |
4637 | rng.Anchored = true | |
4638 | rng.BrickColor = color | |
4639 | rng.CanCollide = false | |
4640 | rng.FormFactor = 3 | |
4641 | rng.Name = "Ring" | |
4642 | rng.Material = "Neon" | |
4643 | rng.Size = Vector3.new(1, 1, 1) | |
4644 | rng.Transparency = 0 | |
4645 | rng.TopSurface = 0 | |
4646 | rng.BottomSurface = 0 | |
4647 | rng.CFrame = pos | |
4648 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
4649 | local rngm = Instance.new("SpecialMesh", rng) | |
4650 | rngm.MeshType = "Brick" | |
4651 | rngm.Scale = vt(x1,y1,z1) | |
4652 | if rainbowmode == true then | |
4653 | rng.Color = Color3.new(r/255,g/255,b/255) | |
4654 | end | |
4655 | local scaler2 = 0 | |
4656 | local speeder = FastSpeed/10 | |
4657 | if type == "Add" then | |
4658 | scaler2 = 1*value | |
4659 | elseif type == "Divide" then | |
4660 | scaler2 = 1/value | |
4661 | end | |
4662 | coroutine.resume(coroutine.create(function() | |
4663 | for i = 0,10/bonuspeed,0.1 do | |
4664 | swait() | |
4665 | if rainbowmode == true then | |
4666 | rng.Color = Color3.new(r/255,g/255,b/255) | |
4667 | end | |
4668 | if type == "Add" then | |
4669 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
4670 | elseif type == "Divide" then | |
4671 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
4672 | end | |
4673 | if chaosmode == true then | |
4674 | rng.BrickColor = BrickColor.random() | |
4675 | end | |
4676 | speeder = speeder + 0.01*FastSpeed*bonuspeed/10 | |
4677 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
4678 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
4679 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
4680 | end | |
4681 | rng:Destroy() | |
4682 | end)) | |
4683 | end | |
4684 | ||
4685 | function block(bonuspeed,type,pos,scale,value,value2,value3,color,color3) | |
4686 | local type = type | |
4687 | local rng = Instance.new("Part", char) | |
4688 | rng.Anchored = true | |
4689 | rng.BrickColor = color | |
4690 | rng.Color = color3 | |
4691 | rng.CanCollide = false | |
4692 | rng.FormFactor = 3 | |
4693 | rng.Name = "Ring" | |
4694 | rng.Material = "Neon" | |
4695 | rng.Size = Vector3.new(1, 1, 1) | |
4696 | rng.Transparency = 0 | |
4697 | rng.TopSurface = 0 | |
4698 | rng.BottomSurface = 0 | |
4699 | rng.CFrame = pos | |
4700 | local rngm = Instance.new("SpecialMesh", rng) | |
4701 | rngm.MeshType = "Brick" | |
4702 | rngm.Scale = scale | |
4703 | local scaler2 = 1 | |
4704 | local scaler2b = 1 | |
4705 | local scaler2c = 1 | |
4706 | if type == "Add" then | |
4707 | scaler2 = 1*value | |
4708 | scaler2b = 1*value2 | |
4709 | scaler2c = 1*value3 | |
4710 | elseif type == "Divide" then | |
4711 | scaler2 = 1/value | |
4712 | scaler2b = 1/value2 | |
4713 | scaler2c = 1/value3 | |
4714 | end | |
4715 | coroutine.resume(coroutine.create(function() | |
4716 | for i = 0,10/bonuspeed,0.1 do | |
4717 | swait() | |
4718 | if type == "Add" then | |
4719 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
4720 | scaler2b = scaler2b - 0.01*value/bonuspeed | |
4721 | scaler2c = scaler2c - 0.01*value/bonuspeed | |
4722 | elseif type == "Divide" then | |
4723 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
4724 | scaler2b = scaler2b - 0.01/value*bonuspeed | |
4725 | scaler2c = scaler2c - 0.01/value*bonuspeed | |
4726 | end | |
4727 | rng.CFrame = rng.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
4728 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
4729 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2b*bonuspeed, scaler2c*bonuspeed) | |
4730 | end | |
4731 | rng:Destroy() | |
4732 | end)) | |
4733 | end | |
4734 | ||
4735 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
4736 | local type = type | |
4737 | local rng = Instance.new("Part", char) | |
4738 | rng.Anchored = true | |
4739 | if ModeOfGlitch ~= 9 then | |
4740 | rng.BrickColor = color | |
4741 | elseif ModeOfGlitch == 9 then | |
4742 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
4743 | end | |
4744 | rng.CanCollide = false | |
4745 | rng.FormFactor = 3 | |
4746 | rng.Name = "Ring" | |
4747 | rng.Material = "Neon" | |
4748 | rng.Size = Vector3.new(1, 1, 1) | |
4749 | rng.Transparency = 0 | |
4750 | rng.TopSurface = 0 | |
4751 | rng.BottomSurface = 0 | |
4752 | rng.CFrame = pos | |
4753 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
4754 | local rngm = Instance.new("SpecialMesh", rng) | |
4755 | rngm.MeshType = "Sphere" | |
4756 | rngm.Scale = vt(x1,y1,z1) | |
4757 | if rainbowmode == true then | |
4758 | rng.Color = Color3.new(r/255,g/255,b/255) | |
4759 | end | |
4760 | if ModeOfGlitch == 9 then | |
4761 | coroutine.resume(coroutine.create(function() | |
4762 | while true do | |
4763 | swait() | |
4764 | if rng.Parent ~= nil then | |
4765 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
4766 | else | |
4767 | break | |
4768 | end | |
4769 | end | |
4770 | end)) | |
4771 | end | |
4772 | local scaler2 = 1 | |
4773 | local speeder = FastSpeed | |
4774 | if type == "Add" then | |
4775 | scaler2 = 1*value | |
4776 | elseif type == "Divide" then | |
4777 | scaler2 = 1/value | |
4778 | end | |
4779 | coroutine.resume(coroutine.create(function() | |
4780 | for i = 0,10/bonuspeed,0.1 do | |
4781 | swait() | |
4782 | if rainbowmode == true then | |
4783 | rng.Color = Color3.new(r/255,g/255,b/255) | |
4784 | end | |
4785 | if type == "Add" then | |
4786 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
4787 | elseif type == "Divide" then | |
4788 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
4789 | end | |
4790 | if chaosmode == true then | |
4791 | rng.BrickColor = BrickColor.random() | |
4792 | end | |
4793 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
4794 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
4795 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
4796 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
4797 | end | |
4798 | rng:Destroy() | |
4799 | end)) | |
4800 | end | |
4801 | ||
4802 | ||
4803 | function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
4804 | local type = type | |
4805 | local rng = Instance.new("Part", char) | |
4806 | rng.Anchored = true | |
4807 | if ModeOfGlitch ~= 9 then | |
4808 | rng.BrickColor = color | |
4809 | elseif ModeOfGlitch == 9 then | |
4810 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
4811 | end | |
4812 | rng.CanCollide = false | |
4813 | rng.FormFactor = 3 | |
4814 | rng.Name = "Ring" | |
4815 | rng.Material = "Neon" | |
4816 | rng.Size = Vector3.new(1, 1, 1) | |
4817 | rng.Transparency = 1 | |
4818 | rng.TopSurface = 0 | |
4819 | rng.BottomSurface = 0 | |
4820 | rng.CFrame = pos | |
4821 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
4822 | local rngm = Instance.new("SpecialMesh", rng) | |
4823 | rngm.MeshType = "Sphere" | |
4824 | rngm.Scale = vt(x1,y1,z1) | |
4825 | if rainbowmode == true then | |
4826 | rng.Color = Color3.new(r/255,g/255,b/255) | |
4827 | end | |
4828 | if ModeOfGlitch == 9 then | |
4829 | coroutine.resume(coroutine.create(function() | |
4830 | while true do | |
4831 | swait() | |
4832 | if rng.Parent ~= nil then | |
4833 | rng.Color = Color3.new(kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000,kan.PlaybackLoudness/1000) | |
4834 | else | |
4835 | break | |
4836 | end | |
4837 | end | |
4838 | end)) | |
4839 | end | |
4840 | local scaler2 = 1 | |
4841 | local speeder = FastSpeed | |
4842 | if type == "Add" then | |
4843 | scaler2 = 1*value | |
4844 | elseif type == "Divide" then | |
4845 | scaler2 = 1/value | |
4846 | end | |
4847 | coroutine.resume(coroutine.create(function() | |
4848 | for i = 0,10/bonuspeed,0.1 do | |
4849 | swait() | |
4850 | if rainbowmode == true then | |
4851 | rng.Color = Color3.new(r/255,g/255,b/255) | |
4852 | end | |
4853 | if type == "Add" then | |
4854 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
4855 | elseif type == "Divide" then | |
4856 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
4857 | end | |
4858 | if chaosmode == true then | |
4859 | rng.BrickColor = BrickColor.random() | |
4860 | end | |
4861 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
4862 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
4863 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
4864 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
4865 | end | |
4866 | rng:Destroy() | |
4867 | end)) | |
4868 | end | |
4869 | ||
4870 | function dmg(dude) | |
4871 | if dude.Name ~= Character then | |
4872 | local keptcolor = MAINRUINCOLOR | |
4873 | local bgf = Instance.new("BodyGyro",dude.Head) | |
4874 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
4875 | --[[local val = Instance.new("BoolValue",dude) | |
4876 | val.Name = "IsHit"]]-- | |
4877 | local ds = coroutine.wrap(function() | |
4878 | dude:WaitForChild("Head"):BreakJoints() | |
4879 | for i, v in pairs(dude:GetChildren()) do | |
4880 | if v:IsA("Part") or v:IsA("MeshPart") then | |
4881 | v.Name = "DEMINISHED" | |
4882 | end | |
4883 | end | |
4884 | wait(0.5) | |
4885 | targetted = nil | |
4886 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.75, 0.285) | |
4887 | coroutine.resume(coroutine.create(function() | |
4888 | for i, v in pairs(dude:GetChildren()) do | |
4889 | if v:IsA("Accessory") then | |
4890 | v:Destroy() | |
4891 | end | |
4892 | if v:IsA("Humanoid") then | |
4893 | v:Destroy() | |
4894 | end | |
4895 | if v:IsA("CharacterMesh") then | |
4896 | v:Destroy() | |
4897 | end | |
4898 | if v:IsA("Model") then | |
4899 | v:Destroy() | |
4900 | end | |
4901 | if v:IsA("Part") or v:IsA("MeshPart") then | |
4902 | for x, o in pairs(v:GetChildren()) do | |
4903 | if o:IsA("Decal") then | |
4904 | o:Destroy() | |
4905 | end | |
4906 | end | |
4907 | coroutine.resume(coroutine.create(function() | |
4908 | v.Material = "Neon" | |
4909 | v.CanCollide = false | |
4910 | v.Anchored = false | |
4911 | local bld = Instance.new("ParticleEmitter",v) | |
4912 | bld.LightEmission = 0.75 | |
4913 | bld.Texture = "rbxassetid://363275192" ---284205403 | |
4914 | bld.Color = ColorSequence.new(keptcolor.Color) | |
4915 | bld.Rate = 500 | |
4916 | bld.Lifetime = NumberRange.new(1) | |
4917 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(0.8,2.25,0),NumberSequenceKeypoint.new(1,0,0)}) | |
4918 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.5,0),NumberSequenceKeypoint.new(0.8,0.75,0),NumberSequenceKeypoint.new(1,1,0)}) | |
4919 | bld.Speed = NumberRange.new(2,5) | |
4920 | bld.VelocitySpread = 50000 | |
4921 | bld.Rotation = NumberRange.new(-500,500) | |
4922 | bld.RotSpeed = NumberRange.new(-500,500) | |
4923 | local sbs = Instance.new("BodyPosition", v) | |
4924 | sbs.P = 3000 | |
4925 | sbs.D = 1000 | |
4926 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
4927 | sbs.position = v.Position + Vector3.new(math.random(-2,2),10 + math.random(-2,2),math.random(-2,2)) | |
4928 | v.Color = keptcolor.Color | |
4929 | coroutine.resume(coroutine.create(function() | |
4930 | for i = 0, 49 do | |
4931 | swait(1) | |
4932 | v:BreakJoints() | |
4933 | v.Transparency = v.Transparency + 0.02 | |
4934 | end | |
4935 | v:BreakJoints() | |
4936 | sphere2(1,"Add",v.CFrame,vt(0,0,0),0.1,0.1,0.1,keptcolor) | |
4937 | CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.5, 0.75) | |
4938 | bld.Speed = NumberRange.new(10,25) | |
4939 | bld.Drag = 5 | |
4940 | bld.Acceleration = vt(0,2,0) | |
4941 | wait(0.5) | |
4942 | bld.Enabled = false | |
4943 | wait(8) | |
4944 | v:Destroy() | |
4945 | dude:Destroy() | |
4946 | end)) | |
4947 | end)) | |
4948 | end | |
4949 | end | |
4950 | end)) | |
4951 | end) | |
4952 | ds() | |
4953 | end | |
4954 | end | |
4955 | ||
4956 | ||
4957 | function FindNearestHead(Position, Distance, SinglePlayer) | |
4958 | if SinglePlayer then | |
4959 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
4960 | end | |
4961 | local List = {} | |
4962 | for i, v in pairs(workspace:GetChildren()) do | |
4963 | if v:IsA("Model") then | |
4964 | if v:findFirstChild("Head") then | |
4965 | if v ~= Character then | |
4966 | if (v.Head.Position - Position).magnitude <= Distance then | |
4967 | table.insert(List, v) | |
4968 | end | |
4969 | end | |
4970 | end | |
4971 | end | |
4972 | end | |
4973 | return List | |
4974 | end | |
4975 | ||
4976 | function FaceMouse() | |
4977 | Cam = workspace.CurrentCamera | |
4978 | return { | |
4979 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
4980 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
4981 | } | |
4982 | end | |
4983 | ||
4984 | function FaceMouse2() | |
4985 | Cam = workspace.CurrentCamera | |
4986 | return { | |
4987 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
4988 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
4989 | } | |
4990 | end | |
4991 | ||
4992 | local ModeOfGlitch = 1 | |
4993 | -- Functions are ready. | |
4994 | local storehumanoidWS = 16 | |
4995 | ||
4996 | function CorruptBlink() | |
4997 | for i = 0, 14 do | |
4998 | PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0) | |
4999 | end | |
5000 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5001 | CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1) | |
5002 | RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0) | |
5003 | CameraEnshaking(2,10) | |
5004 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do | |
5005 | if v:FindFirstChild('Head') then | |
5006 | dmg(v) | |
5007 | end | |
5008 | end | |
5009 | for i = 0, 14 do | |
5010 | PixelBlock(3,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.03,MAINRUINCOLOR,0) | |
5011 | end | |
5012 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5013 | end | |
5014 | function PureBomb() | |
5015 | attack = true | |
5016 | hum.WalkSpeed = 0 | |
5017 | local orb = Instance.new("Part", char) | |
5018 | orb.Anchored = true | |
5019 | orb.BrickColor = BrickColor.new("Toothpaste") | |
5020 | orb.CanCollide = false | |
5021 | orb.FormFactor = 3 | |
5022 | orb.Name = "Ring" | |
5023 | orb.Material = "Neon" | |
5024 | orb.Size = Vector3.new(1, 1, 1) | |
5025 | orb.Transparency = 0 | |
5026 | orb.TopSurface = 0 | |
5027 | orb.BottomSurface = 0 | |
5028 | local orbm = Instance.new("SpecialMesh", orb) | |
5029 | orbm.MeshType = "Sphere" | |
5030 | orbm.Name = "SizeMesh" | |
5031 | orbm.Scale = vt(0,0,0) | |
5032 | local scaled = 0.1 | |
5033 | local posid = 0 | |
5034 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1) | |
5035 | for i = 0, 5, 0.1 do | |
5036 | swait() | |
5037 | scaled = scaled - 0.001 | |
5038 | posid = posid - scaled | |
5039 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
5040 | local scaled = 0.1 | |
5041 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
5042 | sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Toothpaste"),10) | |
5043 | PixelBlockNeg(2,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,BrickColor.new("Toothpaste"),0) | |
5044 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1) | |
5045 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1) | |
5046 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
5047 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
5048 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
5049 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1) | |
5050 | end | |
5051 | for i = 0, 2, 0.1 do | |
5052 | swait() | |
5053 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
5054 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
5055 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
5056 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4) | |
5057 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
5058 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
5059 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
5060 | end | |
5061 | coroutine.resume(coroutine.create(function() | |
5062 | orb.Anchored = false | |
5063 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1) | |
5064 | local a = Instance.new("Part",workspace) | |
5065 | a.Name = "Direction" | |
5066 | a.Anchored = true | |
5067 | a.BrickColor = bc("Bright red") | |
5068 | a.Material = "Neon" | |
5069 | a.Transparency = 1 | |
5070 | a.CanCollide = false | |
5071 | local ray = Ray.new( | |
5072 | orb.CFrame.p, -- origin | |
5073 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
5074 | ) | |
5075 | local ignore = orb | |
5076 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5077 | a.BottomSurface = 10 | |
5078 | a.TopSurface = 10 | |
5079 | local distance = (orb.CFrame.p - position).magnitude | |
5080 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
5081 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
5082 | orb.CFrame = a.CFrame | |
5083 | a:Destroy() | |
5084 | local bv = Instance.new("BodyVelocity") | |
5085 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
5086 | bv.velocity = orb.CFrame.lookVector*125 | |
5087 | bv.Parent = orb | |
5088 | local hitted = false | |
5089 | game:GetService("Debris"):AddItem(orb, 15) | |
5090 | wait() | |
5091 | local hit =orb.Touched:connect(function(hit) | |
5092 | if hitted == false then | |
5093 | hitted = true | |
5094 | CameraEnshaking(10,2.5) | |
5095 | CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1) | |
5096 | MagniDamage(orb, 65, 65,90, 0, "Normal") | |
5097 | sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste")) | |
5098 | sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste")) | |
5099 | for i = 0, 49 do | |
5100 | PixelBlock(1,math.random(1,30),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Toothpaste"),0) | |
5101 | end | |
5102 | for i = 0, 9 do | |
5103 | sphereMK(1,2.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0) | |
5104 | sphereMK(2,5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.05,BrickColor.new("Toothpaste"),0) | |
5105 | end | |
5106 | orb.Anchored = true | |
5107 | orb.Transparency = 1 | |
5108 | wait(8) | |
5109 | orb:Destroy() | |
5110 | end | |
5111 | end) | |
5112 | end)) | |
5113 | for i = 0, 1, 0.1 do | |
5114 | swait() | |
5115 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
5116 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
5117 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4) | |
5118 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
5119 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
5120 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
5121 | end | |
5122 | hum.WalkSpeed = storehumanoidWS | |
5123 | attack = false | |
5124 | end | |
5125 | ||
5126 | function BanishingOrb() | |
5127 | attack = true | |
5128 | hum.WalkSpeed = 0 | |
5129 | local orb = Instance.new("Part", char) | |
5130 | orb.Anchored = true | |
5131 | orb.BrickColor = BrickColor.new("Black") | |
5132 | orb.CanCollide = false | |
5133 | orb.FormFactor = 3 | |
5134 | orb.Name = "Ring" | |
5135 | orb.Material = "Neon" | |
5136 | orb.Size = Vector3.new(1, 1, 1) | |
5137 | orb.Transparency = 0 | |
5138 | orb.TopSurface = 0 | |
5139 | orb.BottomSurface = 0 | |
5140 | local orbm = Instance.new("SpecialMesh", orb) | |
5141 | orbm.MeshType = "Sphere" | |
5142 | orbm.Name = "SizeMesh" | |
5143 | orbm.Scale = vt(0,0,0) | |
5144 | local scaled = 0.1 | |
5145 | local posid = 0 | |
5146 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5,0.9) | |
5147 | for i = 0, 5, 0.1 do | |
5148 | swait() | |
5149 | scaled = scaled - 0.001 | |
5150 | posid = posid - scaled | |
5151 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
5152 | local scaled = 0.1 | |
5153 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
5154 | sphereMKCharge(5,-0.25,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,BrickColor.new("Black"),10) | |
5155 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1) | |
5156 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1) | |
5157 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
5158 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
5159 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
5160 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.1) | |
5161 | end | |
5162 | for i = 0, 2, 0.1 do | |
5163 | swait() | |
5164 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
5165 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
5166 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
5167 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(-50)),.4) | |
5168 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
5169 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
5170 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
5171 | end | |
5172 | coroutine.resume(coroutine.create(function() | |
5173 | orb.Anchored = false | |
5174 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,0.75) | |
5175 | local a = Instance.new("Part",workspace) | |
5176 | a.Name = "Direction" | |
5177 | a.Anchored = true | |
5178 | a.BrickColor = bc("Bright red") | |
5179 | a.Material = "Neon" | |
5180 | a.Transparency = 1 | |
5181 | a.CanCollide = false | |
5182 | local ray = Ray.new( | |
5183 | orb.CFrame.p, -- origin | |
5184 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
5185 | ) | |
5186 | local ignore = orb | |
5187 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5188 | a.BottomSurface = 10 | |
5189 | a.TopSurface = 10 | |
5190 | local distance = (orb.CFrame.p - position).magnitude | |
5191 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
5192 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
5193 | orb.CFrame = a.CFrame | |
5194 | a:Destroy() | |
5195 | local bv = Instance.new("BodyVelocity") | |
5196 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
5197 | bv.velocity = orb.CFrame.lookVector*0 | |
5198 | bv.Parent = orb | |
5199 | local hitted = false | |
5200 | local rate = 0 | |
5201 | coroutine.resume(coroutine.create(function() | |
5202 | for i = 0, 24 do | |
5203 | wait(0.1) | |
5204 | rate = rate + 0.25 | |
5205 | bv.velocity = bv.velocity + orb.CFrame.lookVector*rate | |
5206 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 15)) do | |
5207 | if v:FindFirstChild('Head') then | |
5208 | dmg(v) | |
5209 | end | |
5210 | end | |
5211 | CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 2.5,0.9) | |
5212 | sphere(2,"Add",orb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR) | |
5213 | sphere(3,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
5214 | end | |
5215 | orb.Anchored = true | |
5216 | orb.Transparency = 1 | |
5217 | for i, v in pairs(FindNearestHead(orb.CFrame.p, 32)) do | |
5218 | if v:FindFirstChild('Head') then | |
5219 | dmg(v) | |
5220 | end | |
5221 | end | |
5222 | local eff = Instance.new("ParticleEmitter",orb) | |
5223 | eff.Texture = "rbxassetid://296874871" | |
5224 | eff.LightEmission = 0.95 | |
5225 | eff.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5226 | eff.Rate = 1000000000 | |
5227 | eff.Lifetime = NumberRange.new(3) | |
5228 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,50,0),NumberSequenceKeypoint.new(0.1,10,0),NumberSequenceKeypoint.new(0.8,9,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5229 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(0.8,0.5,0),NumberSequenceKeypoint.new(1,1,0)}) | |
5230 | eff.Speed = NumberRange.new(30) | |
5231 | eff.Acceleration = vt(0,-15,0) | |
5232 | eff.Rotation = NumberRange.new(-500,500) | |
5233 | eff.VelocitySpread = 100000 | |
5234 | eff.RotSpeed = NumberRange.new(-500,500) | |
5235 | coroutine.resume(coroutine.create(function() | |
5236 | wait(0.6) | |
5237 | eff.Enabled = false | |
5238 | end)) | |
5239 | CFuncs["Sound"].Create("rbxassetid://1177785010", orb, 8,0.6) | |
5240 | CFuncs["Sound"].Create("rbxassetid://438666141", orb, 7.5,0.9) | |
5241 | sphere(1,"Add",orb.CFrame,vt(0,0,0),0.75,MAINRUINCOLOR) | |
5242 | sphere(1.5,"Add",orb.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5243 | sphere(2,"Add",orb.CFrame,vt(0,0,0),1.25,MAINRUINCOLOR) | |
5244 | game:GetService("Debris"):AddItem(orb, 15) | |
5245 | end)) | |
5246 | end)) | |
5247 | for i = 0, 1, 0.1 do | |
5248 | swait() | |
5249 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
5250 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.4) | |
5251 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.4) | |
5252 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
5253 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
5254 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
5255 | end | |
5256 | hum.WalkSpeed = storehumanoidWS | |
5257 | attack = false | |
5258 | end | |
5259 | ||
5260 | ||
5261 | function ChaosGroundStrike() | |
5262 | attack = true | |
5263 | for i = 0, 2, 0.1 do | |
5264 | swait() | |
5265 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
5266 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
5267 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
5268 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
5269 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
5270 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
5271 | end | |
5272 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1) | |
5273 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
5274 | CameraEnshaking(4,12) | |
5275 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
5276 | if v:FindFirstChild('Head') then | |
5277 | dmg(v) | |
5278 | end | |
5279 | end | |
5280 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random()) | |
5281 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random()) | |
5282 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random()) | |
5283 | for i = 0, 2, 0.1 do | |
5284 | swait() | |
5285 | 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) | |
5286 | 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) | |
5287 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
5288 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
5289 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
5290 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
5291 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
5292 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
5293 | end | |
5294 | attack = false | |
5295 | end | |
5296 | ||
5297 | ||
5298 | ||
5299 | function Starfall() | |
5300 | attack = true | |
5301 | hum.WalkSpeed = 0 | |
5302 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1) | |
5303 | for i = 0, 5, 0.1 do | |
5304 | swait() | |
5305 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
5306 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
5307 | 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) | |
5308 | 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) | |
5309 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
5310 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
5311 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1) | |
5312 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1) | |
5313 | end | |
5314 | local Overed = false | |
5315 | CameraEnshaking(2,20) | |
5316 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
5317 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
5318 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
5319 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1) | |
5320 | local orb = Instance.new("Part", char) | |
5321 | orb.Anchored = true | |
5322 | orb.BrickColor = BrickColor.new("Toothpaste") | |
5323 | orb.CanCollide = false | |
5324 | orb.FormFactor = 3 | |
5325 | orb.Name = "Remenant" | |
5326 | orb.Material = "Neon" | |
5327 | orb.CFrame = root.CFrame*CFrame.new(0,150,0) | |
5328 | orb.Size = Vector3.new(1, 1, 1) | |
5329 | orb.Transparency = 1 | |
5330 | orb.TopSurface = 0 | |
5331 | orb.BottomSurface = 0 | |
5332 | hum.WalkSpeed = storehumanoidWS | |
5333 | coroutine.resume(coroutine.create(function() | |
5334 | for i = 0, 9 do | |
5335 | swait(10) | |
5336 | local lb = Instance.new("Part") | |
5337 | lb.Color = MAINRUINCOLOR.Color | |
5338 | lb.CanCollide = false | |
5339 | lb.Material = "Neon" | |
5340 | lb.Anchored = true | |
5341 | lb.TopSurface = 0 | |
5342 | lb.BottomSurface = 0 | |
5343 | lb.Transparency = 0 | |
5344 | lb.Size = vt(1,1,1) | |
5345 | lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15))) | |
5346 | lb.Anchored = false | |
5347 | lb.Parent = char | |
5348 | local thingery = Instance.new("SpecialMesh",lb) | |
5349 | thingery.MeshType = "Sphere" | |
5350 | thingery.Scale = vt(20,20,20) | |
5351 | game:GetService("Debris"):AddItem(lb, 10) | |
5352 | local bv = Instance.new("BodyVelocity") | |
5353 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
5354 | bv.velocity = lb.CFrame.lookVector*math.random(75,250) | |
5355 | bv.Parent = lb | |
5356 | sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR) | |
5357 | sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR) | |
5358 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1) | |
5359 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1) | |
5360 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1) | |
5361 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1) | |
5362 | local hitted = false | |
5363 | coroutine.resume(coroutine.create(function() | |
5364 | while true do | |
5365 | swait(1) | |
5366 | if lb.Parent ~= nil and hitted == false then | |
5367 | PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),10,10,10,0.1,MAINRUINCOLOR,-2) | |
5368 | elseif lb.Parent == nil then | |
5369 | break | |
5370 | end | |
5371 | end | |
5372 | end)) | |
5373 | ||
5374 | game:GetService("Debris"):AddItem(a, 0.1) | |
5375 | ||
5376 | coroutine.resume(coroutine.create(function() | |
5377 | swait(1) | |
5378 | lb.Touched:connect(function(hit) | |
5379 | if hitted == false then | |
5380 | hitted = true | |
5381 | lb.Transparency = 1 | |
5382 | lb.Anchored = true | |
5383 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1) | |
5384 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7) | |
5385 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75) | |
5386 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75) | |
5387 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1) | |
5388 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85) | |
5389 | MagniDamage(lb, 45, 45,85, 0, "Normal") | |
5390 | CameraEnshaking(1,5) | |
5391 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
5392 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
5393 | for i = 0, 9 do | |
5394 | sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,50,-0.1,MAINRUINCOLOR,0) | |
5395 | end | |
5396 | for i = 0, 49 do | |
5397 | swait() | |
5398 | MagniDamage(lb, 30, 2,4, 0, "Normal") | |
5399 | PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),16,16,16,0.16,MAINRUINCOLOR,0) | |
5400 | end | |
5401 | end | |
5402 | end) | |
5403 | end)) | |
5404 | end | |
5405 | Overed = true | |
5406 | orb:Destroy() | |
5407 | end)) | |
5408 | ||
5409 | attack = false | |
5410 | end | |
5411 | ||
5412 | function StarfallEX() | |
5413 | attack = true | |
5414 | hum.WalkSpeed = 0 | |
5415 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 0.7) | |
5416 | for i = 0, 10, 0.1 do | |
5417 | swait() | |
5418 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
5419 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
5420 | 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) | |
5421 | 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) | |
5422 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(-5 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
5423 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
5424 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(70 + 2.5 * math.cos(sine / 28))),.1) | |
5425 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(130),math.rad(0),math.rad(-70 - 2.5 * math.cos(sine / 28))),.1) | |
5426 | end | |
5427 | local Overed = false | |
5428 | CameraEnshaking(2,20) | |
5429 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR) | |
5430 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.5,MAINRUINCOLOR) | |
5431 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
5432 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 0.9) | |
5433 | local orb = Instance.new("Part", char) | |
5434 | orb.Anchored = true | |
5435 | orb.BrickColor = BrickColor.new("Toothpaste") | |
5436 | orb.CanCollide = false | |
5437 | orb.FormFactor = 3 | |
5438 | orb.Name = "Remenant" | |
5439 | orb.Material = "Neon" | |
5440 | orb.CFrame = root.CFrame*CFrame.new(0,250,0) | |
5441 | orb.Size = Vector3.new(1, 1, 1) | |
5442 | orb.Transparency = 1 | |
5443 | orb.TopSurface = 0 | |
5444 | orb.BottomSurface = 0 | |
5445 | hum.WalkSpeed = storehumanoidWS | |
5446 | coroutine.resume(coroutine.create(function() | |
5447 | for i = 0, 4 do | |
5448 | swait(15) | |
5449 | local lb = Instance.new("Part") | |
5450 | lb.Color = MAINRUINCOLOR.Color | |
5451 | lb.CanCollide = false | |
5452 | lb.Material = "Neon" | |
5453 | lb.Anchored = true | |
5454 | lb.TopSurface = 0 | |
5455 | lb.BottomSurface = 0 | |
5456 | lb.Transparency = 0 | |
5457 | lb.Size = vt(1,1,1) | |
5458 | lb.CFrame = orb.CFrame*CFrame.new(math.random(-150,150),0,math.random(-150,150))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15))) | |
5459 | lb.Anchored = false | |
5460 | lb.Parent = char | |
5461 | local thingery = Instance.new("SpecialMesh",lb) | |
5462 | thingery.MeshType = "Sphere" | |
5463 | thingery.Scale = vt(50,50,50) | |
5464 | game:GetService("Debris"):AddItem(lb, 10) | |
5465 | local bv = Instance.new("BodyVelocity") | |
5466 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
5467 | bv.velocity = lb.CFrame.lookVector*math.random(50,420) | |
5468 | bv.Parent = lb | |
5469 | sphere(2.5,"Add",lb.CFrame,vt(100,100,0),0.25,MAINRUINCOLOR) | |
5470 | sphere(5,"Add",lb.CFrame,vt(100,100,0),0.5,MAINRUINCOLOR) | |
5471 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 0.9) | |
5472 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 0.9) | |
5473 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 0.9) | |
5474 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 0.9) | |
5475 | local hitted = false | |
5476 | coroutine.resume(coroutine.create(function() | |
5477 | while true do | |
5478 | swait(1) | |
5479 | if lb.Parent ~= nil and hitted == false then | |
5480 | PixelBlockNeg(5,math.random(1,2),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),25,25,25,0.25,MAINRUINCOLOR,-2) | |
5481 | elseif lb.Parent == nil then | |
5482 | break | |
5483 | end | |
5484 | end | |
5485 | end)) | |
5486 | ||
5487 | game:GetService("Debris"):AddItem(a, 0.1) | |
5488 | ||
5489 | coroutine.resume(coroutine.create(function() | |
5490 | swait(1) | |
5491 | lb.Touched:connect(function(hit) | |
5492 | if hitted == false then | |
5493 | hitted = true | |
5494 | lb.Transparency = 1 | |
5495 | lb.Anchored = true | |
5496 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 0.9) | |
5497 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.6) | |
5498 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.65) | |
5499 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.65) | |
5500 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 0.9) | |
5501 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.75) | |
5502 | MagniDamage(lb, 50, 60,99, 0, "Normal") | |
5503 | CameraEnshaking(1,5) | |
5504 | sphere(4,"Add",lb.CFrame,vt(50,50,50),2,MAINRUINCOLOR) | |
5505 | sphere(8,"Add",lb.CFrame,vt(50,50,50),4,MAINRUINCOLOR) | |
5506 | for i = 0, 9 do | |
5507 | sphereMK(1,math.random(1,3),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,100,-0.1,MAINRUINCOLOR,0) | |
5508 | end | |
5509 | for i = 0, 99 do | |
5510 | swait() | |
5511 | MagniDamage(lb, 30, 6,18, 0, "Normal") | |
5512 | PixelBlock(4,math.random(1,30),"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),32,32,32,0.32,MAINRUINCOLOR,0) | |
5513 | end | |
5514 | end | |
5515 | end) | |
5516 | end)) | |
5517 | end | |
5518 | Overed = true | |
5519 | orb:Destroy() | |
5520 | end)) | |
5521 | ||
5522 | attack = false | |
5523 | end | |
5524 | ||
5525 | function DivineBlast() | |
5526 | attack = true | |
5527 | hum.WalkSpeed = 0 | |
5528 | local elocacenter = CreateParta(sorb,1,1,"SmoothPlastic",BrickColor.random()) | |
5529 | elocacenter.Anchored = true | |
5530 | elocacenter.CFrame = sorb.CFrame | |
5531 | local eloca1 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
5532 | eloca1.Anchored = true | |
5533 | eloca1.CFrame = elocacenter.CFrame | |
5534 | local eloca2 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
5535 | eloca2.Anchored = true | |
5536 | eloca2.CFrame = elocacenter.CFrame | |
5537 | local eloca3 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
5538 | eloca3.Anchored = true | |
5539 | eloca3.CFrame = elocacenter.CFrame | |
5540 | local eloca4 = CreateParta(elocacenter,1,1,"SmoothPlastic",BrickColor.random()) | |
5541 | eloca4.Anchored = true | |
5542 | eloca4.CFrame = elocacenter.CFrame | |
5543 | local lookavec = 0 | |
5544 | local speeds = 0 | |
5545 | CFuncs["Sound"].Create("rbxassetid://1192402877", sorb, 1.5, 1) | |
5546 | for i = 0, 3, 0.1 do | |
5547 | swait() | |
5548 | --- | |
5549 | lookavec = lookavec + 0.1 | |
5550 | speeds = speeds + 10 | |
5551 | elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
5552 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
5553 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
5554 | ||
5555 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
5556 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
5557 | ||
5558 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
5559 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
5560 | ||
5561 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
5562 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
5563 | --- | |
5564 | root.CFrame = FaceMouse()[1] | |
5565 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
5566 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
5567 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
5568 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
5569 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1) | |
5570 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1) | |
5571 | end | |
5572 | for i = 0, 3, 0.1 do | |
5573 | swait() | |
5574 | --- | |
5575 | speeds = speeds + 10 | |
5576 | elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
5577 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
5578 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
5579 | ||
5580 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
5581 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
5582 | ||
5583 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
5584 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
5585 | ||
5586 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
5587 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
5588 | --- | |
5589 | root.CFrame = FaceMouse()[1] | |
5590 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
5591 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
5592 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
5593 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
5594 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.1) | |
5595 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1) | |
5596 | end | |
5597 | CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 1,1) | |
5598 | for i = 0, 3, 0.1 do | |
5599 | swait() | |
5600 | --- | |
5601 | speeds = speeds + 10 | |
5602 | elocacenter.CFrame = sorb.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
5603 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
5604 | PixelBlockNeg(2,0.1,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
5605 | ||
5606 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
5607 | PixelBlockNeg(2,0.1,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
5608 | ||
5609 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
5610 | PixelBlockNeg(2,0.1,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
5611 | ||
5612 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
5613 | PixelBlockNeg(2,0.1,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),0.5,0.5,0.5,0.005,MAINRUINCOLOR,-2) | |
5614 | --- | |
5615 | root.CFrame = FaceMouse()[1] | |
5616 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
5617 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
5618 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(40)),.1) | |
5619 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(-40)),.1) | |
5620 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(40)),.1) | |
5621 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1) | |
5622 | end | |
5623 | coroutine.resume(coroutine.create(function() | |
5624 | local a = Instance.new("Part",Character) | |
5625 | a.Name = "Direction" | |
5626 | a.Anchored = true | |
5627 | a.BrickColor = bc("White") | |
5628 | a.Material = "Neon" | |
5629 | a.Transparency = 0 | |
5630 | a.Shape = "Cylinder" | |
5631 | a.CanCollide = false | |
5632 | local a2 = Instance.new("Part",Character) | |
5633 | a2.Name = "Direction" | |
5634 | a2.Anchored = true | |
5635 | a2.BrickColor = bc("Bright yellow") | |
5636 | a2.Material = "Neon" | |
5637 | a2.Transparency = 0 | |
5638 | a2.Shape = "Cylinder" | |
5639 | a2.CanCollide = false | |
5640 | local b = Instance.new("Part",Character) | |
5641 | b.Name = "HitDirect" | |
5642 | b.Anchored = true | |
5643 | b.BrickColor = bc("Cool yellow") | |
5644 | b.Material = "Neon" | |
5645 | b.Transparency = 1 | |
5646 | b.CanCollide = false | |
5647 | local ray = Ray.new( | |
5648 | elocacenter.CFrame.p, -- origin | |
5649 | (mouse.Hit.p - elocacenter.CFrame.p).unit * 1000 -- direction | |
5650 | ) | |
5651 | local ignore = Character | |
5652 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5653 | a.BottomSurface = 10 | |
5654 | a.TopSurface = 10 | |
5655 | a2.BottomSurface = 10 | |
5656 | a2.TopSurface = 10 | |
5657 | local distance = (elocacenter.CFrame.p - position).magnitude | |
5658 | a.Size = Vector3.new(distance, 1, 1) | |
5659 | a.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5660 | a2.Size = Vector3.new(distance, 1, 1) | |
5661 | a2.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
5662 | b.CFrame = CFrame.new(elocacenter.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
5663 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5664 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
5665 | game:GetService("Debris"):AddItem(a, 10) | |
5666 | game:GetService("Debris"):AddItem(a2, 10) | |
5667 | game:GetService("Debris"):AddItem(b, 10) | |
5668 | local msh = Instance.new("SpecialMesh",a) | |
5669 | msh.MeshType = "Cylinder" | |
5670 | msh.Scale = vt(1,2,2) | |
5671 | local msh2 = Instance.new("SpecialMesh",a2) | |
5672 | msh2.MeshType = "Cylinder" | |
5673 | msh2.Scale = vt(1,2.5,2.5) | |
5674 | CFuncs["Sound"].Create("rbxassetid://376970418", sorb, 2, 0.75) | |
5675 | coroutine.resume(coroutine.create(function() | |
5676 | for i = 0,10,0.1 do | |
5677 | swait() | |
5678 | msh.Scale = msh.Scale + vt(0,0.05,0.05) | |
5679 | a.Transparency = a.Transparency + 0.025 | |
5680 | msh2.Scale = msh2.Scale + vt(0,0.25,0.25) | |
5681 | a2.Transparency = a2.Transparency + 0.05 | |
5682 | end | |
5683 | a:Destroy() | |
5684 | a2:Destroy() | |
5685 | end)) | |
5686 | CFuncs["Sound"].Create("rbxassetid://1177785010", b, 3, 1) | |
5687 | CFuncs["Sound"].Create("rbxassetid://192410089", b, 3, 0.7) | |
5688 | CFuncs["Sound"].Create("rbxassetid://579687077", b, 0.5, 0.75) | |
5689 | CFuncs["Sound"].Create("rbxassetid://1060191237", b, 1, 0.75) | |
5690 | CFuncs["Sound"].Create("rbxassetid://164881112", b, 3, 1) | |
5691 | CFuncs["Sound"].Create("rbxassetid://429123896", b, 1.5, 0.85) | |
5692 | MagniDamage(b, 25, 40,65, 0, "Normal") | |
5693 | for i = 0, 49 do | |
5694 | PixelBlock(2,math.random(10,20),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.04,BrickColor.new("Bright yellow"),0) | |
5695 | PixelBlock(1,math.random(1,10),"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),4,4,4,0.08,BrickColor.new("Bright yellow"),0) | |
5696 | end | |
5697 | sphere(1,"Add",b.CFrame,vt(4,4,4),0.1,BrickColor.new("White")) | |
5698 | sphere(1,"Add",b.CFrame,vt(5,5,5),0.25,BrickColor.new("Bright yellow")) | |
5699 | sphere(1,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow")) | |
5700 | sphere(2,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow")) | |
5701 | sphere(3,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow")) | |
5702 | sphere(4,"Add",b.CFrame,vt(5,5,5),0.5,BrickColor.new("Bright yellow")) | |
5703 | end)) | |
5704 | game:GetService("Debris"):AddItem(elocacenter, 5) | |
5705 | hum.WalkSpeed = storehumanoidWS | |
5706 | attack = false | |
5707 | end | |
5708 | ||
5709 | function StarDivision() | |
5710 | attack = true | |
5711 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5) | |
5712 | for i = 0, 2, 0.1 do | |
5713 | swait() | |
5714 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
5715 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
5716 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
5717 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
5718 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6) | |
5719 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(30)),.1) | |
5720 | end | |
5721 | local orb = Instance.new("Part", char) | |
5722 | orb.BrickColor = MAINRUINCOLOR | |
5723 | orb.CanCollide = false | |
5724 | orb.FormFactor = 3 | |
5725 | orb.Name = "Ring" | |
5726 | orb.Material = "Neon" | |
5727 | orb.Size = Vector3.new(1, 1, 1) | |
5728 | orb.Transparency = 0 | |
5729 | orb.TopSurface = 0 | |
5730 | orb.BottomSurface = 0 | |
5731 | local orbm = Instance.new("SpecialMesh", orb) | |
5732 | orbm.MeshType = "Sphere" | |
5733 | orbm.Name = "SizeMesh" | |
5734 | orbm.Scale = vt(2,2,2) | |
5735 | local a = Instance.new("Part",workspace) | |
5736 | a.Name = "Direction" | |
5737 | a.Anchored = true | |
5738 | a.BrickColor = bc("Bright red") | |
5739 | a.Material = "Neon" | |
5740 | a.Transparency = 1 | |
5741 | a.CanCollide = false | |
5742 | local ray = Ray.new( | |
5743 | sorb.CFrame.p, -- origin | |
5744 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
5745 | ) | |
5746 | local ignore = sorb | |
5747 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
5748 | a.BottomSurface = 10 | |
5749 | a.TopSurface = 10 | |
5750 | local distance = (sorb.CFrame.p - position).magnitude | |
5751 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
5752 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
5753 | orb.CFrame = a.CFrame | |
5754 | a:Destroy() | |
5755 | local bv = Instance.new("BodyVelocity") | |
5756 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
5757 | bv.velocity = orb.CFrame.lookVector*100 | |
5758 | bv.Parent = orb | |
5759 | local hitted = false | |
5760 | game:GetService("Debris"):AddItem(orb, 10) | |
5761 | CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15) | |
5762 | CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15) | |
5763 | CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15) | |
5764 | CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15) | |
5765 | CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15) | |
5766 | coroutine.resume(coroutine.create(function() | |
5767 | while true do | |
5768 | swait(1) | |
5769 | if orb.Parent ~= nil and hitted == false then | |
5770 | PixelBlockNeg(1,math.random(1,2),"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1,1,1,0.02,MAINRUINCOLOR,-2) | |
5771 | elseif orb.Parent == nil then | |
5772 | break | |
5773 | end | |
5774 | end | |
5775 | end)) | |
5776 | coroutine.resume(coroutine.create(function() | |
5777 | swait(1) | |
5778 | orb.Touched:connect(function(hit) | |
5779 | if hitted == false then | |
5780 | hitted = true | |
5781 | game:GetService("Debris"):AddItem(orb, 5) | |
5782 | orb.Transparency = 1 | |
5783 | orb.Anchored = true | |
5784 | local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
5785 | elocacenter.Anchored = true | |
5786 | elocacenter.CFrame = orb.CFrame | |
5787 | elocacenter.Orientation = vt(0,0,0) | |
5788 | local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
5789 | eloca1.Anchored = true | |
5790 | eloca1.CFrame = elocacenter.CFrame | |
5791 | local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
5792 | eloca2.Anchored = true | |
5793 | eloca2.CFrame = elocacenter.CFrame | |
5794 | local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
5795 | eloca3.Anchored = true | |
5796 | eloca3.CFrame = elocacenter.CFrame | |
5797 | local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
5798 | eloca4.Anchored = true | |
5799 | eloca4.CFrame = elocacenter.CFrame | |
5800 | local lookavec = 0 | |
5801 | local speeds = 0 | |
5802 | CameraEnshaking(1,1) | |
5803 | CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1) | |
5804 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5805 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5806 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5807 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5808 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5809 | for i = 0, 99 do | |
5810 | swait() | |
5811 | lookavec = lookavec + 1 | |
5812 | speeds = speeds + 0.1 | |
5813 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
5814 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
5815 | PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5816 | ||
5817 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
5818 | PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5819 | ||
5820 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
5821 | PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5822 | ||
5823 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
5824 | PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5825 | end | |
5826 | ||
5827 | for i = 0, 149 do | |
5828 | swait() | |
5829 | speeds = speeds + 0.1 | |
5830 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
5831 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
5832 | PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5833 | ||
5834 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
5835 | PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5836 | ||
5837 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
5838 | PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5839 | ||
5840 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
5841 | PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5842 | end | |
5843 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do | |
5844 | if v:FindFirstChild('Head') then | |
5845 | dmg(v) | |
5846 | end | |
5847 | end | |
5848 | CameraEnshaking(7,30) | |
5849 | MagniDamage(elocacenter, 225, 50,75, 0, "Normal") | |
5850 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1) | |
5851 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75) | |
5852 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1) | |
5853 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1) | |
5854 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR) | |
5855 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR) | |
5856 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
5857 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
5858 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
5859 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
5860 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
5861 | for i = 0, 24 do | |
5862 | sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0) | |
5863 | sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0) | |
5864 | sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0) | |
5865 | sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0) | |
5866 | end | |
5867 | coroutine.resume(coroutine.create(function() | |
5868 | for i = 0, 499 do | |
5869 | swait(1) | |
5870 | MagniDamage(elocacenter, 90, 1,5, 0, "Normal") | |
5871 | PixelBlockNeg(2,math.random(1,10),"Add",elocacenter.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-30,30)),math.rad(math.random(-30,30)),math.rad(math.random(-30,30))),15,15,15,0.15,MAINRUINCOLOR,-5) | |
5872 | end | |
5873 | elocacenter:Destroy() | |
5874 | eloca1:Destroy() | |
5875 | eloca2:Destroy() | |
5876 | eloca3:Destroy() | |
5877 | eloca4:Destroy() | |
5878 | end)) | |
5879 | end | |
5880 | end) | |
5881 | end)) | |
5882 | attack = false | |
5883 | end | |
5884 | ||
5885 | ||
5886 | function THE_TRUE_POWER_OF_VIOLENCE() | |
5887 | attack = true | |
5888 | hum.WalkSpeed = 0 | |
5889 | CFuncs["Sound"].Create("rbxassetid://136007472", sorb, 2.5,0.7) | |
5890 | for i = 0, 10, 0.1 do | |
5891 | swait() | |
5892 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
5893 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.4) | |
5894 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.4) | |
5895 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(40)),.4) | |
5896 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-40)),.4) | |
5897 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4) | |
5898 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.4) | |
5899 | end | |
5900 | local orb = Instance.new("Part", char) | |
5901 | orb.BrickColor = MAINRUINCOLOR | |
5902 | orb.CanCollide = false | |
5903 | orb.FormFactor = 3 | |
5904 | orb.Name = "Ring" | |
5905 | orb.Material = "Neon" | |
5906 | orb.Size = Vector3.new(1, 1, 1) | |
5907 | orb.Transparency = 0 | |
5908 | orb.TopSurface = 0 | |
5909 | orb.BottomSurface = 0 | |
5910 | orb.CFrame = sorb.CFrame | |
5911 | local orbm = Instance.new("SpecialMesh", orb) | |
5912 | orbm.MeshType = "Sphere" | |
5913 | orbm.Name = "SizeMesh" | |
5914 | orbm.Scale = vt(0,0,0) | |
5915 | local sbs = Instance.new("BodyPosition", orb) | |
5916 | sbs.P = 3000 | |
5917 | sbs.D = 1000 | |
5918 | sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000) | |
5919 | sbs.position = RootPart.CFrame.p + Vector3.new(0, 250, 0) | |
5920 | CFuncs["Sound"].Create("rbxassetid://419447292", rarm, 5,1) | |
5921 | sphere(1,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
5922 | sphere(2,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
5923 | sphere(3,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
5924 | sphere(4,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
5925 | sphere(5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
5926 | for i = 0, 10, 0.1 do | |
5927 | swait() | |
5928 | PixelBlockNeg(1,0.01,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),6,6,6,0.12,MAINRUINCOLOR,0) | |
5929 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6) | |
5930 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6) | |
5931 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6) | |
5932 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6) | |
5933 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4) | |
5934 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6) | |
5935 | end | |
5936 | orb.Anchored = true | |
5937 | local elocacenter = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
5938 | elocacenter.Anchored = true | |
5939 | elocacenter.CFrame = orb.CFrame | |
5940 | elocacenter.Orientation = vt(0,0,0) | |
5941 | local eloca1 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
5942 | eloca1.Anchored = true | |
5943 | eloca1.CFrame = elocacenter.CFrame | |
5944 | local eloca2 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
5945 | eloca2.Anchored = true | |
5946 | eloca2.CFrame = elocacenter.CFrame | |
5947 | local eloca3 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
5948 | eloca3.Anchored = true | |
5949 | eloca3.CFrame = elocacenter.CFrame | |
5950 | local eloca4 = CreateParta(orb,1,1,"SmoothPlastic",BrickColor.random()) | |
5951 | eloca4.Anchored = true | |
5952 | eloca4.CFrame = elocacenter.CFrame | |
5953 | local lookavec = 0 | |
5954 | local speeds = 0 | |
5955 | CameraEnshaking(1,1) | |
5956 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 3,1) | |
5957 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 1.5,1) | |
5958 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 2.5, 1) | |
5959 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 1) | |
5960 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5961 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5962 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5963 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5964 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5965 | for i = 0, 99 do | |
5966 | swait() | |
5967 | lookavec = lookavec + 2.5 | |
5968 | speeds = speeds + 0.25 | |
5969 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
5970 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
5971 | PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5972 | ||
5973 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
5974 | PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5975 | ||
5976 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
5977 | PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5978 | ||
5979 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
5980 | PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5981 | end | |
5982 | ||
5983 | for i = 0, 149 do | |
5984 | swait() | |
5985 | speeds = speeds + 0.25 | |
5986 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
5987 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
5988 | PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5989 | ||
5990 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
5991 | PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5992 | ||
5993 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
5994 | PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5995 | ||
5996 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
5997 | PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
5998 | end | |
5999 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 5, 0.75) | |
6000 | for i = 0, 99 do | |
6001 | swait() | |
6002 | lookavec = lookavec - 2.5 | |
6003 | speeds = speeds + 0.25 | |
6004 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
6005 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
6006 | PixelBlockNeg(2,0,"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
6007 | ||
6008 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
6009 | PixelBlockNeg(2,0,"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
6010 | ||
6011 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
6012 | PixelBlockNeg(2,0,"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
6013 | ||
6014 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
6015 | PixelBlockNeg(2,0,"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
6016 | end | |
6017 | local scaled = 0.1*75 | |
6018 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,1) | |
6019 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5,1) | |
6020 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 2.5,0.5) | |
6021 | CFuncs["Sound"].Create("rbxassetid://151304356", char, 1,0.5) | |
6022 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 3.5, 0.75) | |
6023 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 2.5, 0.5) | |
6024 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6025 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6026 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6027 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6028 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6029 | for i = 0, 10, 0.1 do | |
6030 | swait() | |
6031 | scaled = scaled - 0.001*75 | |
6032 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
6033 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
6034 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6) | |
6035 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6) | |
6036 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(60)),.6) | |
6037 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-60)),.6) | |
6038 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(0)),.4) | |
6039 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-10),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6) | |
6040 | end | |
6041 | for x = 0, 4 do | |
6042 | for i = 0, 9 do | |
6043 | sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0) | |
6044 | end | |
6045 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,0.75) | |
6046 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 2.5, 0.5) | |
6047 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6048 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6049 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6050 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6051 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6052 | for i = 0, 5, 0.1 do | |
6053 | swait() | |
6054 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
6055 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
6056 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.1) | |
6057 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
6058 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
6059 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.1) | |
6060 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.1) | |
6061 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.1) | |
6062 | end | |
6063 | end | |
6064 | local speedearn = 0 | |
6065 | CFuncs["Sound"].Create("rbxassetid://136007472", char, 5,0.2) | |
6066 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.75) | |
6067 | CFuncs["Sound"].Create("rbxassetid://163619849", char, 2.5, 0.25) | |
6068 | for i = 0, 30, 0.1 do | |
6069 | swait() | |
6070 | scaled = scaled - 0.001*75/10 | |
6071 | speedearn = speedearn + 0.5 | |
6072 | for i = 0, 4 do | |
6073 | sphereMK(1+speedearn,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
6074 | end | |
6075 | PixelBlock(1,speedearn,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1*speedearn/10,1*speedearn/10,1*speedearn/10,0.02*speedearn/10,MAINRUINCOLOR,0) | |
6076 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
6077 | PixelBlockNeg(1,math.random(1,2),"Add",sorb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
6078 | PixelBlockNeg(1,math.random(1,2),"Add",sorb2.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.02,MAINRUINCOLOR,0) | |
6079 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6) | |
6080 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6) | |
6081 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(0)),.6) | |
6082 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.6) | |
6083 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(-10)),.4) | |
6084 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(170),math.rad(0),math.rad(10)),.6) | |
6085 | end | |
6086 | orb.Transparency = 1 | |
6087 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125000000)) do | |
6088 | if v:FindFirstChild('Head') then | |
6089 | dmg(v) | |
6090 | end | |
6091 | end | |
6092 | CameraEnshaking(7,30) | |
6093 | MagniDamage(elocacenter, 9999999, 5000000,99999999, 0, "Normal") | |
6094 | CFuncs["Sound"].Create("rbxassetid://167115397", char, 5,1) | |
6095 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 5,0.5) | |
6096 | CFuncs["Sound"].Create("rbxassetid://163619849", char, 3, 0.25) | |
6097 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 10, 1) | |
6098 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75) | |
6099 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 6,1) | |
6100 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1) | |
6101 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 5, 1) | |
6102 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 5, 1) | |
6103 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 7.5, 0.5) | |
6104 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 5, 0.85) | |
6105 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 1) | |
6106 | CFuncs["Sound"].Create("rbxassetid://919941001", char, 5,1.05) | |
6107 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6108 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6109 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6110 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6111 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6112 | for i = 0, 99 do | |
6113 | PixelBlock(1,math.random(50,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0) | |
6114 | PixelBlock(2,math.random(250,1000),"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0) | |
6115 | end | |
6116 | for i = 0, 24 do | |
6117 | sphereMK(0.5,0,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,100000,0,MAINRUINCOLOR,0) | |
6118 | sphereMK(1,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.5,MAINRUINCOLOR,0) | |
6119 | sphereMK(2,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0) | |
6120 | sphereMK(3,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0) | |
6121 | sphereMK(4,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0) | |
6122 | end | |
6123 | game:GetService("Debris"):AddItem(orb, 10) | |
6124 | hum.WalkSpeed = storehumanoidWS | |
6125 | attack = false | |
6126 | end | |
6127 | ||
6128 | ||
6129 | function ViolentRing() | |
6130 | attack = true | |
6131 | CFuncs["Sound"].Create("rbxassetid://136007472", rarm, 1, 1) | |
6132 | for i = 0, 2, 0.1 do | |
6133 | swait() | |
6134 | local snap = math.random(1,10) | |
6135 | if snap == 1 then | |
6136 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(-50 + math.random(-10,10))),1) | |
6137 | end | |
6138 | PixelBlockX(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0) | |
6139 | PixelBlockNeg(5,0.5,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,1,0.01,MAINRUINCOLOR,0) | |
6140 | PixelBlockX(5,0.25,"Add",larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(90 + math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.65,0.65,0.65,0.0065,MAINRUINCOLOR,0) | |
6141 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-2 - 1 * math.cos(sine / 32))),.6) | |
6142 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3 + 1 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.6) | |
6143 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(0),math.rad(0),math.rad(50)),.6) | |
6144 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.6) | |
6145 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(70),math.rad(20),math.rad(50)),.4) | |
6146 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-30 + 5 * math.cos(sine / 30)),math.rad(-20)),.6) | |
6147 | RootPart.CFrame = FaceMouse()[1] | |
6148 | end | |
6149 | local orb = Instance.new("Part", char) | |
6150 | orb.BrickColor = MAINRUINCOLOR | |
6151 | orb.CanCollide = false | |
6152 | orb.FormFactor = 3 | |
6153 | orb.Name = "Ring" | |
6154 | orb.Material = "Neon" | |
6155 | orb.Size = Vector3.new(1, 1, 1) | |
6156 | orb.Transparency = 0 | |
6157 | orb.TopSurface = 0 | |
6158 | orb.BottomSurface = 0 | |
6159 | local orbm = Instance.new("SpecialMesh", orb) | |
6160 | orbm.MeshType = "Sphere" | |
6161 | orbm.Name = "SizeMesh" | |
6162 | orbm.Scale = vt(2,2,2) | |
6163 | orb.CFrame = mouse.Hit | |
6164 | local bv = Instance.new("BodyVelocity") | |
6165 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
6166 | bv.velocity = orb.CFrame.lookVector*100 | |
6167 | bv.Parent = orb | |
6168 | local hitted = false | |
6169 | coroutine.resume(coroutine.create(function() | |
6170 | game:GetService("Debris"):AddItem(orb, 5) | |
6171 | orb.Transparency = 1 | |
6172 | orb.Anchored = true | |
6173 | local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
6174 | elocacenter.Anchored = true | |
6175 | elocacenter.CFrame = orb.CFrame | |
6176 | elocacenter.Orientation = vt(0,0,0) | |
6177 | local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
6178 | eloca1.Anchored = true | |
6179 | eloca1.CFrame = elocacenter.CFrame | |
6180 | local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
6181 | eloca2.Anchored = true | |
6182 | eloca2.CFrame = elocacenter.CFrame | |
6183 | local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
6184 | eloca3.Anchored = true | |
6185 | eloca3.CFrame = elocacenter.CFrame | |
6186 | local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
6187 | eloca4.Anchored = true | |
6188 | eloca4.CFrame = elocacenter.CFrame | |
6189 | local lookavec = 0 | |
6190 | local speeds = 0 | |
6191 | CameraEnshaking(1,1) | |
6192 | CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1) | |
6193 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
6194 | sphere(6,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
6195 | sphere(7,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
6196 | sphere(8,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
6197 | sphere(9,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
6198 | for i = 0, 24 do | |
6199 | swait() | |
6200 | lookavec = lookavec + 3.5 | |
6201 | speeds = speeds + 1 | |
6202 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
6203 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
6204 | PixelBlockNeg(2,math.random(1,2),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
6205 | ||
6206 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
6207 | PixelBlockNeg(2,math.random(1,2),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
6208 | ||
6209 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
6210 | PixelBlockNeg(2,math.random(1,2),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
6211 | ||
6212 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
6213 | PixelBlockNeg(2,math.random(1,2),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
6214 | end | |
6215 | ||
6216 | local risen = 0 | |
6217 | for i = 0, 49 do | |
6218 | swait() | |
6219 | risen = risen + 0.05 | |
6220 | speeds = speeds + 0.1 | |
6221 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
6222 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
6223 | PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca1.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
6224 | ||
6225 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
6226 | PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca2.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
6227 | ||
6228 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
6229 | PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca3.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
6230 | ||
6231 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
6232 | PixelBlockNeg(2,math.random(1+risen,2+risen),"Add",eloca4.CFrame*CFrame.Angles(math.rad(90 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),5,5,5,0.05,MAINRUINCOLOR,-2) | |
6233 | end | |
6234 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 100)) do | |
6235 | if v:FindFirstChild('Head') then | |
6236 | dmg(v) | |
6237 | end | |
6238 | end | |
6239 | CameraEnshaking(4,10) | |
6240 | MagniDamage(elocacenter, 150, 50,75, 0, "Normal") | |
6241 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 2, 1) | |
6242 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 2.5, 0.75) | |
6243 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 0.25,1) | |
6244 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 0.25,1) | |
6245 | CFuncs["Sound"].Create("rbxassetid://919941001", char, 1.5,1.05) | |
6246 | sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),-0.25,MAINRUINCOLOR) | |
6247 | sphere(1,"Add",elocacenter.CFrame,vt(100,90000,100),0.5,MAINRUINCOLOR) | |
6248 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6249 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6250 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6251 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6252 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6253 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),500,MAINRUINCOLOR) | |
6254 | for i = 0, 24 do | |
6255 | sphereMK(2,2,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,100,-0.25,MAINRUINCOLOR,0) | |
6256 | sphereMK(4,4,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75,-0.25,MAINRUINCOLOR,0) | |
6257 | sphereMK(6,6,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,50,-0.25,MAINRUINCOLOR,0) | |
6258 | sphereMK(8,8,"Add",elocacenter.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,25,-0.25,MAINRUINCOLOR,0) | |
6259 | end | |
6260 | coroutine.resume(coroutine.create(function() | |
6261 | wait(10) | |
6262 | elocacenter:Destroy() | |
6263 | eloca1:Destroy() | |
6264 | eloca2:Destroy() | |
6265 | eloca3:Destroy() | |
6266 | eloca4:Destroy() | |
6267 | end)) | |
6268 | end)) | |
6269 | attack = false | |
6270 | end | |
6271 | ||
6272 | function UniversalCollapse() | |
6273 | attack = true | |
6274 | local speedearn = 0 | |
6275 | hum.WalkSpeed = 0 | |
6276 | local sbs = Instance.new("BodyPosition", root) | |
6277 | sbs.P = 3000 | |
6278 | sbs.D = 1000 | |
6279 | sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000) | |
6280 | sbs.position = RootPart.CFrame.p + Vector3.new(0, 200, 0) | |
6281 | CFuncs["LongSound"].Create("rbxassetid://489657591", char, 10, 1) | |
6282 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1) | |
6283 | for i = 0, 110, 0.1 do | |
6284 | swait() | |
6285 | speedearn = speedearn + 0.1 | |
6286 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
6287 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
6288 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
6289 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
6290 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,10*speedearn,-0.05,MAINRUINCOLOR,0) | |
6291 | sphere(25,"Add",root.CFrame,vt(speedearn*2,speedearn*2,speedearn*2),0.01,MAINRUINCOLOR) | |
6292 | RH.C0=clerp(RH.C0,cf(1,-0.05,-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.1) | |
6293 | LH.C0=clerp(LH.C0,cf(-1,-0.5,-0.25)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.1) | |
6294 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(20 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
6295 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
6296 | 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) | |
6297 | 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) | |
6298 | end | |
6299 | CameraEnshaking(5,50) | |
6300 | sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR) | |
6301 | for i = 0, 2 do | |
6302 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1) | |
6303 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 10, 0.75) | |
6304 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 5,1) | |
6305 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 5,1) | |
6306 | end | |
6307 | for i = 0, 49 do | |
6308 | sphereMK(1,3,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,200,-1,MAINRUINCOLOR,0) | |
6309 | sphereMK(2,6,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,150,-0.5,MAINRUINCOLOR,0) | |
6310 | sphereMK(3,9,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,100,-0.5,MAINRUINCOLOR,0) | |
6311 | sphereMK(4,12,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),50,50,50,-0.5,MAINRUINCOLOR,0) | |
6312 | end | |
6313 | sphere(1,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
6314 | sphere(2,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
6315 | sphere(3,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
6316 | sphere(4,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
6317 | sphere(5,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
6318 | sphere(6,"Add",root.CFrame,vt(0,0,0),15,MAINRUINCOLOR) | |
6319 | sphere(1,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6320 | sphere(2,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6321 | sphere(3,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6322 | sphere(4,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6323 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6324 | sphere(6,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6325 | for i = 0, 99 do | |
6326 | PixelBlock(1,math.random(50,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),20,20,20,0.4,MAINRUINCOLOR,0) | |
6327 | PixelBlock(2,math.random(250,1000),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,10,0.2,MAINRUINCOLOR,0) | |
6328 | end | |
6329 | for i, v in pairs(FindNearestHead(root.CFrame.p, 9999999)) do | |
6330 | if v:FindFirstChild('Head') then | |
6331 | dmg(v) | |
6332 | end | |
6333 | end | |
6334 | MagniDamage(root, 9999999, 1000000,9999999, 0, "Normal") | |
6335 | sbs:Destroy() | |
6336 | hum.WalkSpeed = storehumanoidWS | |
6337 | attack = false | |
6338 | end | |
6339 | ||
6340 | ||
6341 | function ChaosEND() | |
6342 | attack = true | |
6343 | local speedearn = 0 | |
6344 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.5) | |
6345 | for i = 0, 15, 0.1 do | |
6346 | swait() | |
6347 | speedearn = speedearn + 0.25 | |
6348 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
6349 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
6350 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
6351 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
6352 | sphereMK(1+speedearn,speedearn,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,10*speedearn,-0.25,BrickColor.random(),0) | |
6353 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
6354 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
6355 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
6356 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
6357 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
6358 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
6359 | end | |
6360 | CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1) | |
6361 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1) | |
6362 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 0.75) | |
6363 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 5, 0.5) | |
6364 | CameraEnshaking(5,25) | |
6365 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
6366 | if v:FindFirstChild('Head') then | |
6367 | dmg(v) | |
6368 | end | |
6369 | end | |
6370 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random()) | |
6371 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random()) | |
6372 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random()) | |
6373 | for i = 0, 3, 0.1 do | |
6374 | swait() | |
6375 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0) | |
6376 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0) | |
6377 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0) | |
6378 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),25,25,250,-0.25,BrickColor.random(),0) | |
6379 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
6380 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(10)),.4) | |
6381 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
6382 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
6383 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
6384 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
6385 | end | |
6386 | attack = false | |
6387 | end | |
6388 | ||
6389 | function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon) | |
6390 | local orb = Instance.new("Part", char) | |
6391 | orb.Anchored = true | |
6392 | orb.BrickColor = color | |
6393 | orb.CanCollide = false | |
6394 | orb.FormFactor = 3 | |
6395 | orb.Name = "Ring" | |
6396 | orb.Material = "Neon" | |
6397 | orb.Size = Vector3.new(1, 1, 1) | |
6398 | orb.Transparency = 0 | |
6399 | orb.TopSurface = 0 | |
6400 | orb.BottomSurface = 0 | |
6401 | local orbm = Instance.new("SpecialMesh", orb) | |
6402 | orbm.MeshType = "Sphere" | |
6403 | orb.CFrame = positted | |
6404 | orbm.Name = "SizeMesh" | |
6405 | orbm.Scale = vt(1,1,1) | |
6406 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1) | |
6407 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor) | |
6408 | --[[for i = 0, 2 do | |
6409 | sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0) | |
6410 | end]]-- | |
6411 | coroutine.resume(coroutine.create(function() | |
6412 | wait(timer) | |
6413 | CameraEnshaking(3,ShakePower) | |
6414 | orb.Transparency = 1 | |
6415 | MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal") | |
6416 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor) | |
6417 | --[[for i = 0, 4 do | |
6418 | sphereMK(5,0.15*MagniBoost,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0) | |
6419 | end]]-- | |
6420 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7) | |
6421 | wait(3) | |
6422 | orb:Destroy() | |
6423 | end)) | |
6424 | end | |
6425 | ||
6426 | function orb_spawn(positted,timer) | |
6427 | local randomcol = math.random(1,2) | |
6428 | local orb = Instance.new("Part", char) | |
6429 | orb.Anchored = true | |
6430 | if randomcol == 1 then | |
6431 | orb.BrickColor = BrickColor.new("White") | |
6432 | elseif randomcol == 2 then | |
6433 | orb.BrickColor = BrickColor.new("Really black") | |
6434 | end | |
6435 | orb.CanCollide = false | |
6436 | orb.FormFactor = 3 | |
6437 | orb.Name = "Ring" | |
6438 | orb.Material = "Neon" | |
6439 | orb.Size = Vector3.new(1, 1, 1) | |
6440 | orb.Transparency = 0 | |
6441 | orb.TopSurface = 0 | |
6442 | orb.BottomSurface = 0 | |
6443 | local orbm = Instance.new("SpecialMesh", orb) | |
6444 | orbm.MeshType = "Sphere" | |
6445 | orb.CFrame = positted | |
6446 | orbm.Name = "SizeMesh" | |
6447 | orbm.Scale = vt(1,1,1) | |
6448 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1) | |
6449 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor) | |
6450 | for i = 0, 2 do | |
6451 | sphereMK(5,0.15,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1.5,1.5,7.5,-0.015,orb.BrickColor,0) | |
6452 | end | |
6453 | coroutine.resume(coroutine.create(function() | |
6454 | wait(timer) | |
6455 | CameraEnshaking(3,2) | |
6456 | orb.Transparency = 1 | |
6457 | MagniDamage(orb, 17.5, 10,50, 0, "Normal") | |
6458 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor) | |
6459 | for i = 0, 4 do | |
6460 | sphereMK(5,0.65,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,orb.BrickColor,0) | |
6461 | end | |
6462 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7) | |
6463 | wait(3) | |
6464 | orb:Destroy() | |
6465 | end)) | |
6466 | end | |
6467 | ||
6468 | function scattercorrupt() | |
6469 | attack = true | |
6470 | local rot = 0 | |
6471 | local randomrotations = math.random(1,2) | |
6472 | local lookv = 2.5 | |
6473 | local power = 5 | |
6474 | sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple")) | |
6475 | sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple")) | |
6476 | for i = 0, 9 do | |
6477 | sphereMK(1,1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,45,-0.1,BrickColor.new("Royal purple"),0) | |
6478 | end | |
6479 | CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6) | |
6480 | CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5) | |
6481 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1) | |
6482 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75) | |
6483 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5) | |
6484 | local hite = Instance.new("Part", char) | |
6485 | hite.Anchored = true | |
6486 | hite.CanCollide = false | |
6487 | hite.FormFactor = 3 | |
6488 | hite.Name = "Ring" | |
6489 | hite.Material = "Neon" | |
6490 | hite.Size = Vector3.new(1, 1, 1) | |
6491 | hite.Transparency = 1 | |
6492 | hite.TopSurface = 0 | |
6493 | hite.BottomSurface = 0 | |
6494 | hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0) | |
6495 | local rem = Instance.new("Part", char) | |
6496 | rem.Anchored = true | |
6497 | rem.CanCollide = false | |
6498 | rem.FormFactor = 3 | |
6499 | rem.Name = "Ring" | |
6500 | rem.Material = "Neon" | |
6501 | rem.Size = Vector3.new(1, 1, 1) | |
6502 | rem.Transparency = 1 | |
6503 | rem.TopSurface = 0 | |
6504 | rem.BottomSurface = 0 | |
6505 | rem.CFrame = hite.CFrame | |
6506 | local rem2 = rem:Clone() | |
6507 | rem2.Parent = char | |
6508 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
6509 | local rem3 = rem:Clone() | |
6510 | rem3.Parent = char | |
6511 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
6512 | local rem4 = rem:Clone() | |
6513 | rem4.Parent = char | |
6514 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
6515 | hite:Destroy() | |
6516 | coroutine.resume(coroutine.create(function() | |
6517 | for i = 0, 24 do | |
6518 | swait(1) | |
6519 | if randomrotations == 1 then | |
6520 | rot = rot + 1 | |
6521 | elseif randomrotations == 2 then | |
6522 | rot = rot - 1 | |
6523 | end | |
6524 | power = power + 0.5 | |
6525 | lookv = lookv + 7.5 | |
6526 | rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
6527 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
6528 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
6529 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
6530 | orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
6531 | orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
6532 | orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
6533 | orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
6534 | end | |
6535 | end)) | |
6536 | attack = false | |
6537 | end | |
6538 | function yinyangi() | |
6539 | attack = true | |
6540 | for i = 0, 2, 0.1 do | |
6541 | swait() | |
6542 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.2) | |
6543 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.2) | |
6544 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(75),math.rad(0),math.rad(0)),.2) | |
6545 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
6546 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2) | |
6547 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
6548 | end | |
6549 | local bv = Instance.new("BodyVelocity") | |
6550 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
6551 | bv.velocity = root.CFrame.lookVector*175 | |
6552 | bv.Parent = root | |
6553 | for Rotations = 0, 9 do | |
6554 | for i = 0, 1, 0.5 do | |
6555 | swait() | |
6556 | bv.velocity = root.CFrame.lookVector*175 | |
6557 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
6558 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5) | |
6559 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(90)),.5) | |
6560 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
6561 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
6562 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
6563 | end | |
6564 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
6565 | for i = 0, 1, 0.5 do | |
6566 | swait() | |
6567 | bv.velocity = root.CFrame.lookVector*175 | |
6568 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
6569 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5) | |
6570 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(180)),.5) | |
6571 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
6572 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
6573 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
6574 | end | |
6575 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
6576 | for i = 0, 1, 0.5 do | |
6577 | swait() | |
6578 | bv.velocity = root.CFrame.lookVector*175 | |
6579 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
6580 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5) | |
6581 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(270)),.5) | |
6582 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
6583 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
6584 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
6585 | end | |
6586 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
6587 | for i = 0, 1, 0.5 do | |
6588 | swait() | |
6589 | bv.velocity = root.CFrame.lookVector*175 | |
6590 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-20)),.5) | |
6591 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(20)),.5) | |
6592 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(90),math.rad(0),math.rad(360)),.5) | |
6593 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
6594 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
6595 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
6596 | end | |
6597 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
6598 | end | |
6599 | bv:Destroy() | |
6600 | attack = false | |
6601 | end | |
6602 | ||
6603 | function createBGCircle(size,parent,color) | |
6604 | - | chatfunc("Be gone",MAINRUINCOLOR.Color,"Inverted","Arcade",3) |
6604 | + | |
6605 | bgui.Size = UDim2.new(size, 0, size, 0) | |
6606 | local imgc = Instance.new("ImageLabel",bgui) | |
6607 | imgc.BackgroundTransparency = 1 | |
6608 | imgc.ImageTransparency = 0 | |
6609 | imgc.Size = UDim2.new(1,0,1,0) | |
6610 | imgc.Image = "rbxassetid://997291547" --997291547,521073910 | |
6611 | imgc.ImageColor3 = color | |
6612 | return bgui,imgc | |
6613 | end | |
6614 | ||
6615 | function symbolizeBlink(guipar,size,img,color,bonussize,vol,pit,soundid,spar,rotationenabled,rotsp,delay) | |
6616 | local bgui,imgc = createBGCircle(size,guipar,color) | |
6617 | bgui.AlwaysOnTop = true | |
6618 | imgc.Image = "rbxassetid://" ..img | |
6619 | local rrot = math.random(1,2) | |
6620 | CFuncs["Sound"].Create("rbxassetid://" ..soundid, spar, vol,pit) | |
6621 | coroutine.resume(coroutine.create(function() | |
6622 | for i = 0, 24*delay do | |
6623 | swait() | |
6624 | if rotationenabled == true then | |
6625 | if rrot == 1 then | |
6626 | imgc.Rotation = imgc.Rotation + rotsp | |
6627 | elseif rrot == 2 then | |
6628 | imgc.Rotation = imgc.Rotation - rotsp | |
6629 | end | |
6630 | end | |
6631 | bgui.Size = bgui.Size + UDim2.new(1*bonussize/delay,0,1*bonussize/delay,0) | |
6632 | imgc.ImageTransparency = imgc.ImageTransparency + 0.04/delay | |
6633 | end | |
6634 | bgui:Destroy() | |
6635 | end)) | |
6636 | end | |
6637 | function RecolorThing(one,two,three,four,five,exonetran,exone,extwotran,extwo,secondaryenabled) | |
6638 | for i, v in pairs(mw2:GetChildren()) do | |
6639 | if v:IsA("Part") then | |
6640 | v.BrickColor = one | |
6641 | v.Material = "Neon" | |
6642 | end | |
6643 | end | |
6644 | CFuncs["EchoSound"].Create("rbxassetid://847061203", root, 1, 1,0,10,0.25,0.25,1) | |
6645 | symbolizeBlink(root,0,2092248396,one.Color,5,3,1,847061203,root,true,10,1) | |
6646 | symbolizeBlink(root,0,2092248396,one.Color,4,0,0,0,root,true,-5,1) | |
6647 | tr1.Color = ColorSequence.new(one.Color) | |
6648 | tr2.Color = ColorSequence.new(one.Color) | |
6649 | tr3.Color = ColorSequence.new(one.Color) | |
6650 | for i, v in pairs(mw1:GetChildren()) do | |
6651 | if v:IsA("Part") then | |
6652 | if secondaryenabled == false then | |
6653 | v.Transparency = 1 | |
6654 | elseif secondaryenabled == true then | |
6655 | v.Transparency = 0 | |
6656 | end | |
6657 | v.BrickColor = two | |
6658 | v.Material = "Neon" | |
6659 | end | |
6660 | end | |
6661 | if secondaryenabled == false then | |
6662 | tl1.Enabled = false | |
6663 | tl2.Enabled = false | |
6664 | - | chatfunc("Get out here",MAINRUINCOLOR.Color,"Inverted","Arcade",3) |
6664 | + | |
6665 | elseif secondaryenabled == true then | |
6666 | tl1.Enabled = true | |
6667 | tl2.Enabled = true | |
6668 | tl3.Enabled = true | |
6669 | end | |
6670 | tl1.Color = ColorSequence.new(two.Color) | |
6671 | tl2.Color = ColorSequence.new(two.Color) | |
6672 | tl3.Color = ColorSequence.new(two.Color) | |
6673 | for i, v in pairs(m:GetChildren()) do | |
6674 | if v:IsA("Part") then | |
6675 | v.BrickColor = three | |
6676 | v.Material = "Ice" | |
6677 | end | |
6678 | end | |
6679 | for i, v in pairs(m2:GetChildren()) do | |
6680 | if v:IsA("Part") then | |
6681 | v.BrickColor = four | |
6682 | v.Material = "Ice" | |
6683 | end | |
6684 | end | |
6685 | for i, v in pairs(m3:GetChildren()) do | |
6686 | if v:IsA("Part") then | |
6687 | v.BrickColor = five | |
6688 | v.Material = "Neon" | |
6689 | end | |
6690 | end | |
6691 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6692 | if v:IsA("Part") then | |
6693 | v.Transparency = exonetran | |
6694 | v.BrickColor = exone | |
6695 | v.Material = "Neon" | |
6696 | end | |
6697 | end | |
6698 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6699 | if v:IsA("Part") then | |
6700 | v.Transparency = extwotran | |
6701 | v.BrickColor = extwo | |
6702 | v.Material = "Neon" | |
6703 | end | |
6704 | end | |
6705 | end | |
6706 | ||
6707 | ||
6708 | function normalmog() | |
6709 | attack = true | |
6710 | hum.WalkSpeed = 0 | |
6711 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1.25) | |
6712 | for i = 0,6,0.1 do | |
6713 | swait() | |
6714 | sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,-0.035,MAINRUINCOLOR,100) | |
6715 | slash(math.random(30,60)/10,5,true,"Round","Add","In",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.5,0.01,0.5),-0.5,MAINRUINCOLOR) | |
6716 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.2) | |
6717 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.2) | |
6718 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.15)*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
6719 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30),math.rad(0),math.rad(0 - 5 * math.cos(sine / 0.2))),.2) | |
6720 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
6721 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
6722 | end | |
6723 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 7.5,1) | |
6724 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 10,1) | |
6725 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 7.5,1) | |
6726 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 7.5,0.75) | |
6727 | CFuncs["Sound"].Create("rbxassetid://1368637781", root, 10,1) | |
6728 | CFuncs["Sound"].Create("rbxassetid://763718160", root, 7.5, 1.1) | |
6729 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 7.5, 1) | |
6730 | rainbowmode = false | |
6731 | chaosmode = false | |
6732 | ModeOfGlitch = 1 | |
6733 | storehumanoidWS = 16 | |
6734 | newTheme("rbxassetid://614032233",48.6,1,1.25) | |
6735 | RecolorTextAndRename("Neutral",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique") | |
6736 | CameraEnshaking(5,2.5) | |
6737 | MAINRUINCOLOR = BrickColor.new("Really red") | |
6738 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
6739 | for i = 0, 49 do | |
6740 | PixelBlock(1,math.random(1,20),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2,2,2,0.04,MAINRUINCOLOR,0) | |
6741 | end | |
6742 | for i = 0, 24 do | |
6743 | sphere2(2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,7,-0.01,MAINRUINCOLOR) | |
6744 | slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(150,350)/250,BrickColor.new("White")) | |
6745 | end | |
6746 | for i = 0,3,0.1 do | |
6747 | sphereMK(2.5,-1,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,25,-0.025,MAINRUINCOLOR,0) | |
6748 | end | |
6749 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false) | |
6750 | for i = 0,2,0.1 do | |
6751 | swait() | |
6752 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-30)),.5) | |
6753 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(30)),.5) | |
6754 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.3,-0.15)*angles(math.rad(-30),math.rad(0),math.rad(0)),.5) | |
6755 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.5) | |
6756 | RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.5) | |
6757 | LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.5) | |
6758 | end | |
6759 | hum.WalkSpeed = storehumanoidWS | |
6760 | attack = false | |
6761 | end | |
6762 | ||
6763 | function attackone() | |
6764 | attack = true | |
6765 | local keptcolor = MAINRUINCOLOR | |
6766 | for i = 0,1,0.1 do | |
6767 | swait() | |
6768 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(-10),math.rad(-20)),0.3) | |
6769 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(10),math.rad(20)),.3) | |
6770 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(30)), 0.3) | |
6771 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
6772 | 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) | |
6773 | 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) | |
6774 | end | |
6775 | local distlook = 5 | |
6776 | coroutine.resume(coroutine.create(function() | |
6777 | for i = 0, 4 do | |
6778 | swait(2) | |
6779 | CameraEnshaking(2,3) | |
6780 | local hite = Instance.new("Part", char) | |
6781 | hite.Anchored = true | |
6782 | hite.CanCollide = false | |
6783 | hite.FormFactor = 3 | |
6784 | hite.Name = "Ring" | |
6785 | hite.Material = "Neon" | |
6786 | hite.Size = Vector3.new(1, 1, 1) | |
6787 | hite.Transparency = 1 | |
6788 | hite.TopSurface = 0 | |
6789 | hite.BottomSurface = 0 | |
6790 | hite.CFrame = root.CFrame*CFrame.new(0,-3,-distlook) | |
6791 | 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) | |
6792 | 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) | |
6793 | 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) | |
6794 | 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) | |
6795 | MagniDamage(hite, 9, 10,25, 0, "Normal") | |
6796 | for i = 0, 14 do | |
6797 | local rsiz = math.random(5,20) | |
6798 | 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) | |
6799 | end | |
6800 | CFuncs["Sound"].Create("rbxassetid://178452221", hite, 1, 1) | |
6801 | CFuncs["Sound"].Create("rbxassetid://1042722746", hite, 0.5, 1) | |
6802 | game:GetService("Debris"):AddItem(hite, 5) | |
6803 | distlook = distlook + 10 | |
6804 | end | |
6805 | end)) | |
6806 | for i = 0,1,0.1 do | |
6807 | swait() | |
6808 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(5),math.rad(90)),0.5) | |
6809 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.5) | |
6810 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(120)), 0.5) | |
6811 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.5) | |
6812 | 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) | |
6813 | 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) | |
6814 | end | |
6815 | attack = false | |
6816 | end | |
6817 | ||
6818 | function attacktwo() | |
6819 | attack = true | |
6820 | hum.WalkSpeed = 2 | |
6821 | local keptcolor = MAINRUINCOLOR | |
6822 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1) | |
6823 | sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color) | |
6824 | sphere2(5,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(1,1,1),0.2,0.2,0.2,keptcolor,keptcolor.Color) | |
6825 | for i = 0, 14 do | |
6826 | end | |
6827 | for i = 0,1,0.1 do | |
6828 | swait() | |
6829 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
6830 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3) | |
6831 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3) | |
6832 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
6833 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.3) | |
6834 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3) | |
6835 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3) | |
6836 | end | |
6837 | for i = 0, 1 do | |
6838 | CFuncs["Sound"].Create("rbxassetid://763755889", root, 3,1.1) | |
6839 | for i = 0,1,0.6 do | |
6840 | swait() | |
6841 | sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
6842 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
6843 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
6844 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6) | |
6845 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6) | |
6846 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6) | |
6847 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6) | |
6848 | end | |
6849 | for i = 0,1,0.6 do | |
6850 | swait() | |
6851 | sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
6852 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
6853 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
6854 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.6) | |
6855 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6) | |
6856 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6) | |
6857 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6) | |
6858 | end | |
6859 | for i = 0,1,0.6 do | |
6860 | swait() | |
6861 | sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
6862 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
6863 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
6864 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-180)),.6) | |
6865 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6) | |
6866 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6) | |
6867 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6) | |
6868 | end | |
6869 | for i = 0,1,0.6 do | |
6870 | swait() | |
6871 | sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
6872 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
6873 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
6874 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-270)),.6) | |
6875 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.6) | |
6876 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(-60)),.6) | |
6877 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.6) | |
6878 | end | |
6879 | local rot = 0 | |
6880 | local dis = CreateParta(char,0.5,1,"Neon",keptcolor) | |
6881 | CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1) | |
6882 | dis.CFrame = root.CFrame*CFrame.new(0,2,-3) | |
6883 | CreateMesh(dis,"Sphere",10,1,10) | |
6884 | local at1 = Instance.new("Attachment",dis) | |
6885 | at1.Position = vt(-5,0,0) | |
6886 | local at2 = Instance.new("Attachment",dis) | |
6887 | at2.Position = vt(5,0,0) | |
6888 | local trl = Instance.new('Trail',wed) | |
6889 | trl.Attachment0 = at1 | |
6890 | trl.Attachment1 = at2 | |
6891 | trl.Texture = "rbxassetid://1049219073" | |
6892 | trl.LightEmission = 1 | |
6893 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
6894 | trl.Color = ColorSequence.new(dis.Color) | |
6895 | trl.Lifetime = 0.6 | |
6896 | local a = Instance.new("Part",workspace) | |
6897 | a.Name = "Direction" | |
6898 | a.Anchored = true | |
6899 | a.BrickColor = bc("Bright red") | |
6900 | a.Material = "Neon" | |
6901 | a.Transparency = 1 | |
6902 | a.CanCollide = false | |
6903 | local ray = Ray.new( | |
6904 | dis.CFrame.p, -- origin | |
6905 | (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction | |
6906 | ) | |
6907 | local ignore = dis | |
6908 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
6909 | a.BottomSurface = 10 | |
6910 | a.TopSurface = 10 | |
6911 | local distance = (dis.CFrame.p - position).magnitude | |
6912 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
6913 | a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0) | |
6914 | dis.CFrame = a.CFrame | |
6915 | dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
6916 | a:Destroy() | |
6917 | local bv = Instance.new("BodyVelocity") | |
6918 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
6919 | bv.velocity = dis.CFrame.lookVector*250 | |
6920 | bv.Parent = dis | |
6921 | game:GetService("Debris"):AddItem(dis, 5) | |
6922 | local hitted = false | |
6923 | coroutine.resume(coroutine.create(function() | |
6924 | dis.Touched:connect(function(hit) | |
6925 | if hitted == false and hit.Parent ~= char then | |
6926 | hitted = true | |
6927 | CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1) | |
6928 | MagniDamage(dis, 30, 33,56, 0, "Normal") | |
6929 | sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color) | |
6930 | sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color) | |
6931 | sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color) | |
6932 | coroutine.resume(coroutine.create(function() | |
6933 | for i = 0, 9 do | |
6934 | local disr = CreateParta(char,1,1,"Neon",keptcolor) | |
6935 | disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
6936 | local at1 = Instance.new("Attachment",disr) | |
6937 | at1.Position = vt(-5,0,0) | |
6938 | local at2 = Instance.new("Attachment",disr) | |
6939 | at2.Position = vt(5,0,0) | |
6940 | local trl = Instance.new('Trail',disr) | |
6941 | trl.Attachment0 = at1 | |
6942 | trl.FaceCamera = true | |
6943 | trl.Attachment1 = at2 | |
6944 | trl.Texture = "rbxassetid://2342682798" | |
6945 | trl.LightEmission = 1 | |
6946 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
6947 | trl.Color = ColorSequence.new(keptcolor.Color) | |
6948 | trl.Lifetime = 0.5 | |
6949 | local bv = Instance.new("BodyVelocity") | |
6950 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
6951 | bv.velocity = disr.CFrame.lookVector*math.random(50,200) | |
6952 | bv.Parent = disr | |
6953 | local val = 0 | |
6954 | coroutine.resume(coroutine.create(function() | |
6955 | swait(30) | |
6956 | for i = 0, 9 do | |
6957 | swait() | |
6958 | val = val + 0.1 | |
6959 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)}) | |
6960 | end | |
6961 | game:GetService("Debris"):AddItem(disr, 3) | |
6962 | end)) | |
6963 | end | |
6964 | local eff = Instance.new("ParticleEmitter",dis) | |
6965 | eff.Texture = "rbxassetid://2273224484" | |
6966 | eff.LightEmission = 1 | |
6967 | eff.Color = ColorSequence.new(keptcolor.Color) | |
6968 | eff.Rate = 50 | |
6969 | eff.Lifetime = NumberRange.new(0.5,2) | |
6970 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
6971 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
6972 | eff.Speed = NumberRange.new(20,250) | |
6973 | eff.Drag = 5 | |
6974 | eff.Rotation = NumberRange.new(-500,500) | |
6975 | eff.VelocitySpread = 9000 | |
6976 | eff.RotSpeed = NumberRange.new(-50,50) | |
6977 | wait(0.25) | |
6978 | eff.Enabled = false | |
6979 | end)) | |
6980 | for i = 0, 9 do | |
6981 | end | |
6982 | for i = 0, 19 do | |
6983 | end | |
6984 | coroutine.resume(coroutine.create(function() | |
6985 | for i = 0, 19 do | |
6986 | swait() | |
6987 | hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70) | |
6988 | end | |
6989 | hum.CameraOffset = vt(0,0,0) | |
6990 | end)) | |
6991 | dis.Anchored = true | |
6992 | dis.Transparency = 1 | |
6993 | wait(8) | |
6994 | dis:Destroy() | |
6995 | end | |
6996 | end) | |
6997 | end)) | |
6998 | rot = rot - 15 | |
6999 | end | |
7000 | for i = 0,2,0.1 do | |
7001 | swait() | |
7002 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3) | |
7003 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3) | |
7004 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3) | |
7005 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(50)),.3) | |
7006 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(60)),.3) | |
7007 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(-10)),.3) | |
7008 | end | |
7009 | attack = false | |
7010 | hum.WalkSpeed = storehumanoidWS | |
7011 | end | |
7012 | ||
7013 | function attackthree() | |
7014 | attack = true | |
7015 | local keptcolor = MAINRUINCOLOR | |
7016 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5) | |
7017 | for i = 0,2,0.1 do | |
7018 | swait() | |
7019 | sphere2(5,"Add",larm.CFrame*CFrame.new(0,-1.5,0),vt(1,1,1),0.025,0.025,0.025,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
7020 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(50)),0.3) | |
7021 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-50)),.3) | |
7022 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(10), math.rad(60)), 0.3) | |
7023 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-70)), 0.3) | |
7024 | 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(-50),math.rad(-10)),.3) | |
7025 | 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(40)),.3) | |
7026 | end | |
7027 | CFuncs["Sound"].Create("rbxassetid://763716870", root, 3,1) | |
7028 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 5,0.9) | |
7029 | CFuncs["Sound"].Create("rbxassetid://782225570", root, 4,0.5) | |
7030 | CFuncs["Sound"].Create("rbxassetid://763717569", root, 3,1) | |
7031 | sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR) | |
7032 | sphere2(5,"Add",root.CFrame,vt(1,1,1),0.5,0.5,0.5,MAINRUINCOLOR) | |
7033 | for i = 0, 24 do | |
7034 | end | |
7035 | for i = 0,4,0.1 do | |
7036 | swait() | |
7037 | root.CFrame = root.CFrame + root.CFrame.lookVector*5 | |
7038 | local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR) | |
7039 | CreateMesh(dis,"Sphere",1,1,1) | |
7040 | dis.Anchored = true | |
7041 | dis.CFrame = larm.CFrame*CFrame.new(0,-3,0) | |
7042 | sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color) | |
7043 | coroutine.resume(coroutine.create(function() | |
7044 | swait(30) | |
7045 | dis.Transparency = 1 | |
7046 | coroutine.resume(coroutine.create(function() | |
7047 | for i = 0, 19 do | |
7048 | swait() | |
7049 | hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40) | |
7050 | end | |
7051 | hum.CameraOffset = vt(0,0,0) | |
7052 | end)) | |
7053 | coroutine.resume(coroutine.create(function() | |
7054 | local eff = Instance.new("ParticleEmitter",dis) | |
7055 | eff.Texture = "rbxassetid://2273224484" | |
7056 | eff.LightEmission = 1 | |
7057 | eff.Color = ColorSequence.new(dis.Color) | |
7058 | eff.Rate = 500000 | |
7059 | eff.Lifetime = NumberRange.new(0.5,2) | |
7060 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
7061 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
7062 | eff.Speed = NumberRange.new(50,450) | |
7063 | eff.Drag = 5 | |
7064 | eff.Rotation = NumberRange.new(-500,500) | |
7065 | eff.VelocitySpread = 9000 | |
7066 | eff.RotSpeed = NumberRange.new(-50,50) | |
7067 | wait(0.125) | |
7068 | eff.Enabled = false | |
7069 | end)) | |
7070 | MagniDamage(dis, 30, 45,50, 0, "Normal") | |
7071 | for i = 0, 2 do | |
7072 | --slash(math.random(10,80)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,150)/250,dis.BrickColor) | |
7073 | end | |
7074 | CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,1) | |
7075 | CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.5) | |
7076 | CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.65) | |
7077 | sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.4,0.4,0.4,dis.BrickColor,dis.Color) | |
7078 | end)) | |
7079 | game:GetService("Debris"):AddItem(dis, 5) | |
7080 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(89),math.rad(-8),math.rad(-5)),0.5) | |
7081 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(8)),.5) | |
7082 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-14), math.rad(1), math.rad(17)), 0.5) | |
7083 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.85, 0) * angles(math.rad(180), math.rad(0), math.rad(-8)), 0.5) | |
7084 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.6)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-8),math.rad(0),math.rad(-20)),.5) | |
7085 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(9),math.rad(0),math.rad(20)),.5) | |
7086 | end | |
7087 | attack = false | |
7088 | end | |
7089 | ----------------------------------- Abilities | |
7090 | ||
7091 | function ExtinctiveHeartbreak() | |
7092 | local targetted = nil | |
7093 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
7094 | targetted = mouse.Target.Parent | |
7095 | end | |
7096 | if targetted ~= nil then | |
7097 | attack = true | |
7098 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
7099 | for i = 0, 9 do | |
7100 | --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0) | |
7101 | end | |
7102 | for i = 0, 24 do | |
7103 | -- | |
7104 | end | |
7105 | --sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red")) | |
7106 | local originalpos = root.CFrame | |
7107 | RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2) | |
7108 | for i = 0, 9 do | |
7109 | --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0) | |
7110 | end | |
7111 | for i = 0, 24 do | |
7112 | end | |
7113 | hum.WalkSpeed = 0 | |
7114 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red")) | |
7115 | local radm = math.random(1,3) | |
7116 | if radm == 1 then | |
7117 | --bosschatfunc("YOU WON'T BE NECCESSARY.",MAINRUINCOLOR.Color,2) | |
7118 | elseif radm == 2 then | |
7119 | --bosschatfunc("YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,2) | |
7120 | elseif radm == 3 then | |
7121 | --bosschatfunc("DIE!",MAINRUINCOLOR.Color,2) | |
7122 | end | |
7123 | for i = 0,2,0.1 do | |
7124 | swait() | |
7125 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-10),math.rad(0)),.4) | |
7126 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
7127 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(80)),.4) | |
7128 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
7129 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.4) | |
7130 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(60)),.4) | |
7131 | end | |
7132 | CFuncs["Sound"].Create("rbxassetid://153092227", root, 5,1) | |
7133 | CFuncs["EchoSound"].Create("rbxassetid://153092227", root, 10, 1,0,10,0.25,0.5,1) | |
7134 | for i = 0,2,0.1 do | |
7135 | swait() | |
7136 | coroutine.resume(coroutine.create(function() | |
7137 | targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0) | |
7138 | for i,v in pairs(targetted:GetChildren()) do | |
7139 | if v:IsA("Part") or v:IsA("MeshPart") then | |
7140 | v.Velocity = vt(0,0,0) | |
7141 | end | |
7142 | end | |
7143 | end)) | |
7144 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
7145 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8) | |
7146 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
7147 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8) | |
7148 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
7149 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(90),math.rad(0),math.rad(-80)),.8) | |
7150 | end | |
7151 | CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1,0,10,0.25,0.5,1) | |
7152 | CFuncs["EchoSound"].Create("rbxassetid://153092227", char, 1.5, 0.9,0,10,0.25,0.5,1) | |
7153 | for i = 0, 1 do | |
7154 | CFuncs["EchoSound"].Create("rbxassetid://1690476035", char, 1.5, 1,0.1,10,0.15,0.5,1) | |
7155 | end | |
7156 | CFuncs["EchoSound"].Create("rbxassetid://1690476035", root, 10, 1,0.1,10,0.15,0.5,1) | |
7157 | --chatfunc("RRRRROOAGHH!",Color3.new(1,0,0),"Inverted","Antique",0.75) | |
7158 | for i = 0,4,0.1 do | |
7159 | swait() | |
7160 | coroutine.resume(coroutine.create(function() | |
7161 | local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR) | |
7162 | dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
7163 | local at1 = Instance.new("Attachment",dis) | |
7164 | at1.Position = vt(-25000,0,0) | |
7165 | local at2 = Instance.new("Attachment",dis) | |
7166 | at2.Position = vt(25000,0,0) | |
7167 | local trl = Instance.new('Trail',dis) | |
7168 | trl.Attachment0 = at1 | |
7169 | trl.FaceCamera = true | |
7170 | trl.Attachment1 = at2 | |
7171 | trl.Texture = "rbxassetid://1049219073" | |
7172 | trl.LightEmission = 1 | |
7173 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
7174 | trl.Color = ColorSequence.new(Color3.new(1,0,0)) | |
7175 | trl.Lifetime = 5 | |
7176 | local bv = Instance.new("BodyVelocity") | |
7177 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
7178 | bv.velocity = dis.CFrame.lookVector*math.random(500,2500) | |
7179 | bv.Parent = dis | |
7180 | game:GetService("Debris"):AddItem(dis, 5) | |
7181 | targetted.Head.CFrame = larm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-90),0,0) | |
7182 | CFuncs["Sound"].Create("rbxassetid://782353443", targetted.Head, 4,1) | |
7183 | CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 6, 1) | |
7184 | CFuncs["Sound"].Create("rbxassetid://153092227", targetted.Head,6,math.random(75,150)/150) | |
7185 | CFuncs["Sound"].Create("rbxassetid://163680447", targetted.Head, 3,math.random(75,150)/150) | |
7186 | CFuncs["Sound"].Create("rbxassetid://782354021", targetted.Head, 2.5,0.75) | |
7187 | sphere2(5,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(3,3,3),-0.03,15,-0.03,MAINRUINCOLOR) | |
7188 | targetted:FindFirstChildOfClass("Humanoid").CameraOffset = vt(math.random(-10,10)/5,math.random(-10,10)/5,math.random(-10,10)/5) | |
7189 | for i = 0, 2 do | |
7190 | --slash(5,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(50,350)/250,BrickColor.new("Crimson")) | |
7191 | end | |
7192 | symbolizeBlink(targetted.Head,0,2092248396,Color3.new(1,0,0),math.random(3,35),0,0,0,targetted.Head,true,math.random(3,9),0.25) | |
7193 | for i,v in pairs(targetted:GetChildren()) do | |
7194 | if v:IsA("Part") or v:IsA("MeshPart") then | |
7195 | v.Velocity = vt(0,0,0) | |
7196 | end | |
7197 | end | |
7198 | end)) | |
7199 | hum.CameraOffset = vt(math.random(-10,10)/25,math.random(-10,10)/25,math.random(-10,10)/25) | |
7200 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
7201 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.8) | |
7202 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0),math.rad(0),math.rad(-80)),.8) | |
7203 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(80)),.8) | |
7204 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(20),math.rad(0),math.rad(40)),.8) | |
7205 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.1 * math.cos(sine / 28),0)*angles(math.rad(170),math.rad(0),math.rad(-30)),.8) | |
7206 | end | |
7207 | hum.CameraOffset = vt(0,0,0) | |
7208 | for i = 0, 49 do | |
7209 | local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR) | |
7210 | dis.CFrame = targetted.Head.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
7211 | local at1 = Instance.new("Attachment",dis) | |
7212 | at1.Position = vt(-50000,0,0) | |
7213 | local at2 = Instance.new("Attachment",dis) | |
7214 | at2.Position = vt(50000,0,0) | |
7215 | local trl = Instance.new('Trail',dis) | |
7216 | trl.Attachment0 = at1 | |
7217 | trl.FaceCamera = true | |
7218 | trl.Attachment1 = at2 | |
7219 | trl.Texture = "rbxassetid://1049219073" | |
7220 | trl.LightEmission = 1 | |
7221 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
7222 | trl.Color = ColorSequence.new(Color3.new(1,0.1,0.1)) | |
7223 | trl.Lifetime = 5 | |
7224 | local bv = Instance.new("BodyVelocity") | |
7225 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
7226 | bv.velocity = dis.CFrame.lookVector*math.random(500,2500) | |
7227 | bv.Parent = dis | |
7228 | game:GetService("Debris"):AddItem(dis, 5) | |
7229 | end | |
7230 | for i = 0, 49 do | |
7231 | sphere2(math.random(10,75)/10,"Add",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,5,5),-0.05,50,-0.05,MAINRUINCOLOR) | |
7232 | --slash(math.random(10,30)/15,5,true,"Round","Add","Out",targetted.Head.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(40,500)/250,BrickColor.new("Really red")) | |
7233 | end | |
7234 | CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 0.9,0,10,0.25,0.5,1) | |
7235 | for i = 0, 1 do | |
7236 | CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 5,0.9) | |
7237 | CFuncs["Sound"].Create("rbxassetid://221920821", targetted.Head, 7.5,0.75) | |
7238 | end | |
7239 | for i = 0, 4 do | |
7240 | CFuncs["Sound"].Create("rbxassetid://824687369", targetted.Head, 10, 1) | |
7241 | end | |
7242 | symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,1) | |
7243 | symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,2) | |
7244 | symbolizeBlink(targetted.Head,0,2109052855,Color3.new(1,0,0),30,0,0,0,root,false,0,4) | |
7245 | dmg(targetted) | |
7246 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
7247 | for i = 0, 9 do | |
7248 | --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0) | |
7249 | end | |
7250 | for i = 0, 24 do | |
7251 | end | |
7252 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red")) | |
7253 | root.CFrame = originalpos | |
7254 | for i = 0, 9 do | |
7255 | --sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really red"),0) | |
7256 | end | |
7257 | for i = 0, 24 do | |
7258 | end | |
7259 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really red")) | |
7260 | attack = false | |
7261 | hum.WalkSpeed = storehumanoidWS | |
7262 | end | |
7263 | end | |
7264 | ||
7265 | function CorruptionEvent() | |
7266 | attack = true | |
7267 | hum.WalkSpeed = 0 | |
7268 | CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1) | |
7269 | CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1) | |
7270 | local keptcolor = MAINRUINCOLOR | |
7271 | for i = 0,4,0.1 do | |
7272 | swait() | |
7273 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
7274 | block(10,"Add",rleg.CFrame*CFrame.new(0,-1,0),vt(1,1,1),0.01,0.01,0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
7275 | RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5),math.rad(-20)),.1) | |
7276 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1) | |
7277 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(10)),.1) | |
7278 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-10)),.1) | |
7279 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-5),math.rad(-10),math.rad(20)),.1) | |
7280 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1) | |
7281 | end | |
7282 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1) | |
7283 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1.5) | |
7284 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,3) | |
7285 | CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1) | |
7286 | CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1) | |
7287 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1) | |
7288 | CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1.1,0,10,0.25,0.5,1) | |
7289 | CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 1.5, 1.1,0,10,0.25,0.5,1) | |
7290 | hum.CameraOffset = vt(0,0,0) | |
7291 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
7292 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
7293 | for i = 0, 24 do | |
7294 | --slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black")) | |
7295 | end | |
7296 | local rrot = 0 | |
7297 | coroutine.resume(coroutine.create(function() | |
7298 | for i = 0, 4 do | |
7299 | rrot = rrot + 45 | |
7300 | local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
7301 | xa.Anchored = true | |
7302 | local xb = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
7303 | xb.Anchored = true | |
7304 | local xc = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
7305 | xc.Anchored = true | |
7306 | local xd = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
7307 | xd.Anchored = true | |
7308 | CFuncs["Sound"].Create("rbxassetid://824687369", xa, 1,0.75) | |
7309 | CFuncs["Sound"].Create("rbxassetid://822968467", xa, 2,0.95) | |
7310 | CFuncs["Sound"].Create("rbxassetid://822969951", xa, 3,1) | |
7311 | CFuncs["Sound"].Create("rbxassetid://824687369", xb, 1,0.75) | |
7312 | CFuncs["Sound"].Create("rbxassetid://822968467", xb, 2,0.95) | |
7313 | CFuncs["Sound"].Create("rbxassetid://822969951", xb, 3,1) | |
7314 | CFuncs["Sound"].Create("rbxassetid://824687369", xc, 1,0.75) | |
7315 | CFuncs["Sound"].Create("rbxassetid://822968467", xc, 2,0.95) | |
7316 | CFuncs["Sound"].Create("rbxassetid://822969951", xc, 3,1) | |
7317 | CFuncs["Sound"].Create("rbxassetid://824687369", xd, 1,0.75) | |
7318 | CFuncs["Sound"].Create("rbxassetid://822968467", xd, 2,0.95) | |
7319 | CFuncs["Sound"].Create("rbxassetid://822969951", xd, 3,1) | |
7320 | xa.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,-rrot/1.75) | |
7321 | xb.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(0,-3,rrot/1.75) | |
7322 | xc.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(-rrot/1.75,-3,0) | |
7323 | xd.CFrame = root.CFrame*CFrame.Angles(0,math.rad(rrot),0)*CFrame.new(rrot/1.75,-3,0) | |
7324 | MagniDamage(xa, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal") | |
7325 | MagniDamage(xb, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal") | |
7326 | MagniDamage(xc, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal") | |
7327 | MagniDamage(xd, 30, 39*rrot/5,65*rrot/2.5, 0, "Normal") | |
7328 | block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
7329 | block(1.5,"Add",xb.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
7330 | block(1.5,"Add",xc.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
7331 | block(1.5,"Add",xd.CFrame*CFrame.new(0,-10,0),vt(30,30,30),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
7332 | sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color) | |
7333 | sphere2(2,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color) | |
7334 | sphere2(2,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color) | |
7335 | sphere2(2,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25,1,25),0.05,1.5,0.05,keptcolor,keptcolor.Color) | |
7336 | sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0)) | |
7337 | sphere2(4,"Add",xb.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0)) | |
7338 | sphere2(4,"Add",xc.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0)) | |
7339 | sphere2(4,"Add",xd.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30,1,30),0.05,1.5,0.05,BrickColor.new("Really black"),Color3.new(0,0,0)) | |
7340 | game:GetService("Debris"):AddItem(xa, 5) | |
7341 | game:GetService("Debris"):AddItem(xb, 5) | |
7342 | game:GetService("Debris"):AddItem(xc, 5) | |
7343 | game:GetService("Debris"):AddItem(xd, 5) | |
7344 | coroutine.resume(coroutine.create(function() | |
7345 | for i = 0, 19 do | |
7346 | swait() | |
7347 | hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50) | |
7348 | end | |
7349 | hum.CameraOffset = vt(0,0,0) | |
7350 | end)) | |
7351 | swait(9) | |
7352 | end | |
7353 | end)) | |
7354 | for i = 0,2,0.1 do | |
7355 | swait() | |
7356 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0),math.rad(10)),.8) | |
7357 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(10)),.8) | |
7358 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.05)*angles(math.rad(10),math.rad(0),math.rad(0)),.8) | |
7359 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(40),math.rad(0),math.rad(0)),.8) | |
7360 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(-35),math.rad(-10),math.rad(60)),.8) | |
7361 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8) | |
7362 | end | |
7363 | attack = false | |
7364 | hum.WalkSpeed = storehumanoidWS | |
7365 | end | |
7366 | ||
7367 | function EndGROUND() | |
7368 | attack = true | |
7369 | hum.WalkSpeed = 0 | |
7370 | bosschatfunc("THIS IS IT!",MAINRUINCOLOR.Color,1) | |
7371 | --CFuncs["Sound"].Create("rbxassetid://838392947", root, 10, 1) | |
7372 | CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 1) | |
7373 | CFuncs["EchoSound"].Create("rbxassetid://1690475123", char, 1.5, 1,0,10,0.15,0.5,1) | |
7374 | CFuncs["EchoSound"].Create("rbxassetid://1690475123", root, 10, 1,0,10,0.15,0.5,1) | |
7375 | local keptcolor = MAINRUINCOLOR | |
7376 | for i = 0,4,0.1 do | |
7377 | swait() | |
7378 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
7379 | block(10,"Add",rarm.CFrame*CFrame.new(0,-6,0),vt(4,4,4),0.05,0.05,0.05,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
7380 | --slash(math.random(25,50)/10,5,true,"Round","Add","Out",rarm.CFrame*CFrame.new(0,-6,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.1,0.01,0.1),-0.1,BrickColor.new("Really black")) | |
7381 | RH.C0=clerp(RH.C0,cf(1,-0.15,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-15),math.rad(-20)),.1) | |
7382 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.1) | |
7383 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.25,-0.05)*angles(math.rad(-20),math.rad(0),math.rad(30)),.1) | |
7384 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-30)),.1) | |
7385 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(170),math.rad(-5),math.rad(10)),.1) | |
7386 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-5),math.rad(10),math.rad(-20)),.1) | |
7387 | end | |
7388 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,25,0,0,0,root,false,0,1) | |
7389 | CFuncs["Sound"].Create("rbxassetid://1368637781", root, 3,1) | |
7390 | CFuncs["Sound"].Create("rbxassetid://763718160", root, 4, 1.1) | |
7391 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 6, 1) | |
7392 | CFuncs["EchoSound"].Create("rbxassetid://824687369", root, 10, 1,0,10,0.25,0.5,1) | |
7393 | CFuncs["EchoSound"].Create("rbxassetid://824687369", char, 2, 1,0,10,0.25,0.5,1) | |
7394 | coroutine.resume(coroutine.create(function() | |
7395 | local shval = 10 | |
7396 | for i = 0, 99 do | |
7397 | swait() | |
7398 | shval = shval - 0.1 | |
7399 | hum.CameraOffset = vt(math.random(-shval,shval)/15,math.random(-shval,shval)/15,math.random(-shval,shval)/15) | |
7400 | end | |
7401 | hum.CameraOffset = vt(0,0,0) | |
7402 | end)) | |
7403 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),1,0.01,1,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
7404 | sphere2(5,"Add",root.CFrame*CFrame.new(0,-3,0),vt(10,1,10),2,0.01,2,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
7405 | for i = 0, 24 do | |
7406 | --slash(math.random(15,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.new("Really black")) | |
7407 | end | |
7408 | local rrot = 0 | |
7409 | local xam = 1 | |
7410 | coroutine.resume(coroutine.create(function() | |
7411 | for i = 0, 14 do | |
7412 | --swait() | |
7413 | rrot = rrot + 40*xam | |
7414 | xam = xam + 0.25 | |
7415 | local bonus = xam | |
7416 | local xa = CreateParta(char,0.5,1,"Neon",BrickColor.random()) | |
7417 | xa.Anchored = true | |
7418 | xa.Color = Color3.new(0,0,0) | |
7419 | xa.CFrame = root.CFrame*CFrame.new(0,-3,-rrot/1.75) | |
7420 | CreateMesh(xa,"Sphere",30*bonus,1,30*bonus) | |
7421 | local xc = 0 | |
7422 | coroutine.resume(coroutine.create(function() | |
7423 | for i = 0, 99 do | |
7424 | swait() | |
7425 | xc = xc + 0.01 | |
7426 | xa.Color = Color3.new(xc,0,0) | |
7427 | end | |
7428 | xa.Transparency = 1 | |
7429 | CFuncs["Sound"].Create("rbxassetid://331666100", xa, 5,0.75) | |
7430 | MagniDamage(xa, 30*bonus, 78*bonus,99*bonus, 0, "Normal") | |
7431 | for i = 0, 9 do | |
7432 | --slash(math.random(15,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(0.01*bonus,0.01,0.01*bonus),math.random(50,125)/250*bonus,BrickColor.new("Really black")) | |
7433 | end | |
7434 | block(1.5,"Add",xa.CFrame*CFrame.new(0,-10,0),vt(30*bonus,30*bonus,30*bonus),0.3,0.3,0.3,keptcolor,keptcolor.Color) | |
7435 | sphere2(2,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(25*bonus,1,25*bonus),0.05*bonus,1.5*bonus,0.05*bonus,keptcolor,keptcolor.Color) | |
7436 | sphere2(4,"Add",xa.CFrame*CFrame.Angles(math.rad(math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),vt(30*bonus,1,30*bonus),0.05*bonus,1.5*bonus,0.05*bonus,BrickColor.new("Really black"),Color3.new(0,0,0)) | |
7437 | game:GetService("Debris"):AddItem(xa, 5) | |
7438 | coroutine.resume(coroutine.create(function() | |
7439 | for i = 0, 19 do | |
7440 | swait() | |
7441 | hum.CameraOffset = vt(math.random(-10,10)/50,math.random(-10,10)/50,math.random(-10,10)/50) | |
7442 | end | |
7443 | hum.CameraOffset = vt(0,0,0) | |
7444 | end)) | |
7445 | end)) | |
7446 | end | |
7447 | end)) | |
7448 | for i = 0,2,0.1 do | |
7449 | swait() | |
7450 | RH.C0=clerp(RH.C0,cf(1,-0.5,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-25),math.rad(30)),.8) | |
7451 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(1),math.rad(20)),.8) | |
7452 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25,-0.5)*angles(math.rad(30),math.rad(0),math.rad(50)),.8) | |
7453 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.8) | |
7454 | RW.C0=clerp(RW.C0,cf(1.45,0.5,0.1)*angles(math.rad(35),math.rad(-10),math.rad(30)),.8) | |
7455 | LW.C0=clerp(LW.C0,cf(-1.4,0.5,0.1)*angles(math.rad(-35),math.rad(10),math.rad(-50)),.8) | |
7456 | end | |
7457 | attack = false | |
7458 | hum.WalkSpeed = storehumanoidWS | |
7459 | end | |
7460 | ||
7461 | function HeavenlyDisk() | |
7462 | attack = true | |
7463 | hum.WalkSpeed = 2 | |
7464 | local keptcolor = MAINRUINCOLOR | |
7465 | local radm = math.random(1,3) | |
7466 | if radm == 1 then | |
7467 | --bosschatfunc("Don't make this too easy for you.",MAINRUINCOLOR.Color,1) | |
7468 | elseif radm == 2 then | |
7469 | --bosschatfunc("Heavenly Disks!",MAINRUINCOLOR.Color,1) | |
7470 | elseif radm == 3 then | |
7471 | --bosschatfunc("Take it!",MAINRUINCOLOR.Color,1) | |
7472 | end | |
7473 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1) | |
7474 | CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1) | |
7475 | for i = 0, 14 do | |
7476 | -- | |
7477 | end | |
7478 | for i = 0,2,0.1 do | |
7479 | swait() | |
7480 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
7481 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3) | |
7482 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3) | |
7483 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3) | |
7484 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3) | |
7485 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3) | |
7486 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3) | |
7487 | end | |
7488 | CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1) | |
7489 | for i = 0,1,0.6 do | |
7490 | swait() | |
7491 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
7492 | --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
7493 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
7494 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
7495 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6) | |
7496 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
7497 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
7498 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
7499 | end | |
7500 | for i = 0,1,0.6 do | |
7501 | swait() | |
7502 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
7503 | --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
7504 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
7505 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
7506 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6) | |
7507 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
7508 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
7509 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
7510 | end | |
7511 | for i = 0,1,0.6 do | |
7512 | swait() | |
7513 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
7514 | --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
7515 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
7516 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
7517 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6) | |
7518 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
7519 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
7520 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
7521 | end | |
7522 | for i = 0,1,0.6 do | |
7523 | swait() | |
7524 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
7525 | --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
7526 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
7527 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
7528 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6) | |
7529 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
7530 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
7531 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
7532 | end | |
7533 | local rot = 15 | |
7534 | for i = 0, 2 do | |
7535 | local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Toothpaste")) | |
7536 | CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1) | |
7537 | dis.CFrame = root.CFrame*CFrame.new(0,2,-3) | |
7538 | CreateMesh(dis,"Sphere",10,1,10) | |
7539 | local at1 = Instance.new("Attachment",dis) | |
7540 | at1.Position = vt(-5,0,0) | |
7541 | local at2 = Instance.new("Attachment",dis) | |
7542 | at2.Position = vt(5,0,0) | |
7543 | local trl = Instance.new('Trail',wed) | |
7544 | trl.Attachment0 = at1 | |
7545 | trl.Attachment1 = at2 | |
7546 | trl.Texture = "rbxassetid://1049219073" | |
7547 | trl.LightEmission = 1 | |
7548 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
7549 | trl.Color = ColorSequence.new(dis.Color) | |
7550 | trl.Lifetime = 0.6 | |
7551 | local a = Instance.new("Part",workspace) | |
7552 | a.Name = "Direction" | |
7553 | a.Anchored = true | |
7554 | a.BrickColor = bc("Bright red") | |
7555 | a.Material = "Neon" | |
7556 | a.Transparency = 1 | |
7557 | a.CanCollide = false | |
7558 | local ray = Ray.new( | |
7559 | dis.CFrame.p, -- origin | |
7560 | (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction | |
7561 | ) | |
7562 | local ignore = dis | |
7563 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
7564 | a.BottomSurface = 10 | |
7565 | a.TopSurface = 10 | |
7566 | local distance = (dis.CFrame.p - position).magnitude | |
7567 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
7568 | a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0) | |
7569 | dis.CFrame = a.CFrame | |
7570 | dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
7571 | a:Destroy() | |
7572 | local bv = Instance.new("BodyVelocity") | |
7573 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
7574 | bv.velocity = dis.CFrame.lookVector*250 | |
7575 | bv.Parent = dis | |
7576 | game:GetService("Debris"):AddItem(dis, 5) | |
7577 | local hitted = false | |
7578 | coroutine.resume(coroutine.create(function() | |
7579 | dis.Touched:connect(function(hit) | |
7580 | if hitted == false and hit.Parent ~= char then | |
7581 | hitted = true | |
7582 | CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1) | |
7583 | MagniDamage(dis, 30, 82,34575, 0, "Normal") | |
7584 | --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color) | |
7585 | --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color) | |
7586 | --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1)) | |
7587 | coroutine.resume(coroutine.create(function() | |
7588 | for i = 0, 9 do | |
7589 | local disr = CreateParta(char,1,1,"Neon",keptcolor) | |
7590 | disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
7591 | local at1 = Instance.new("Attachment",disr) | |
7592 | at1.Position = vt(-2,0,0) | |
7593 | local at2 = Instance.new("Attachment",disr) | |
7594 | at2.Position = vt(2,0,0) | |
7595 | local trl = Instance.new('Trail',disr) | |
7596 | trl.Attachment0 = at1 | |
7597 | trl.FaceCamera = true | |
7598 | trl.Attachment1 = at2 | |
7599 | trl.Texture = "rbxassetid://2342682798" | |
7600 | trl.LightEmission = 1 | |
7601 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
7602 | trl.Color = ColorSequence.new(Color3.new(0.3,1,1)) | |
7603 | trl.Lifetime = 0.5 | |
7604 | local bv = Instance.new("BodyVelocity") | |
7605 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
7606 | bv.velocity = disr.CFrame.lookVector*math.random(50,200) | |
7607 | bv.Parent = disr | |
7608 | local val = 0 | |
7609 | coroutine.resume(coroutine.create(function() | |
7610 | swait(30) | |
7611 | for i = 0, 9 do | |
7612 | swait() | |
7613 | val = val + 0.1 | |
7614 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)}) | |
7615 | end | |
7616 | game:GetService("Debris"):AddItem(disr, 3) | |
7617 | end)) | |
7618 | end | |
7619 | local eff = Instance.new("ParticleEmitter",dis) | |
7620 | eff.Texture = "rbxassetid://2273224484" | |
7621 | eff.LightEmission = 1 | |
7622 | eff.Color = ColorSequence.new(Color3.new(0.3,1,1)) | |
7623 | eff.Rate = 500000 | |
7624 | eff.Lifetime = NumberRange.new(0.5,2) | |
7625 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
7626 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
7627 | eff.Speed = NumberRange.new(20,250) | |
7628 | eff.Drag = 5 | |
7629 | eff.Rotation = NumberRange.new(-500,500) | |
7630 | eff.VelocitySpread = 9000 | |
7631 | eff.RotSpeed = NumberRange.new(-50,50) | |
7632 | wait(0.25) | |
7633 | eff.Enabled = false | |
7634 | end)) | |
7635 | for i = 0, 9 do | |
7636 | --slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White")) | |
7637 | end | |
7638 | for i = 0, 19 do | |
7639 | -- | |
7640 | end | |
7641 | coroutine.resume(coroutine.create(function() | |
7642 | for i = 0, 19 do | |
7643 | swait() | |
7644 | hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70) | |
7645 | end | |
7646 | hum.CameraOffset = vt(0,0,0) | |
7647 | end)) | |
7648 | dis.Anchored = true | |
7649 | dis.Transparency = 1 | |
7650 | wait(8) | |
7651 | dis:Destroy() | |
7652 | end | |
7653 | end) | |
7654 | end)) | |
7655 | rot = rot - 15 | |
7656 | end | |
7657 | for i = 0,2,0.1 do | |
7658 | swait() | |
7659 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3) | |
7660 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3) | |
7661 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
7662 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3) | |
7663 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3) | |
7664 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3) | |
7665 | end | |
7666 | attack = false | |
7667 | hum.WalkSpeed = storehumanoidWS | |
7668 | end | |
7669 | ||
7670 | function RapidBurst() | |
7671 | attack = true | |
7672 | hum.WalkSpeed = 0 | |
7673 | CFuncs["Sound"].Create("rbxassetid://1368598393", char, 2.5, 0.5) | |
7674 | CFuncs["Sound"].Create("rbxassetid://1368598393", root, 10, 0.5) | |
7675 | CFuncs["EchoSound"].Create("rbxassetid://1718412034", char, 4, 1,0,10,0.15,0.5,1) | |
7676 | bosschatfunc("SHATTER!",MAINRUINCOLOR.Color,2) | |
7677 | local keptcolor = MAINRUINCOLOR | |
7678 | for i = 0,8,0.1 do | |
7679 | swait() | |
7680 | hum.CameraOffset = vt(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100) | |
7681 | --slash(math.random(25,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,25,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(2,0.01,2),-2,BrickColor.random()) | |
7682 | block(10,"Add",root.CFrame*CFrame.new(0,25,0),vt(0,0,0),0.5,0.5,0.5,BrickColor.random(),BrickColor.random().Color) | |
7683 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-15 - 2 * math.cos(sine / 32))),.1) | |
7684 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 2 * math.cos(sine / 32))),.1) | |
7685 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.15 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(-15 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
7686 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
7687 | RW.C0=clerp(RW.C0,cf(1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-10 + 3 * math.cos(sine / 45))),.1) | |
7688 | LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(165 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(13 - 3 * math.cos(sine / 45))),.1) | |
7689 | end | |
7690 | for i = 0, 99 do | |
7691 | local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR) | |
7692 | dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
7693 | local at1 = Instance.new("Attachment",dis) | |
7694 | at1.Position = vt(-25000,0,0) | |
7695 | local at2 = Instance.new("Attachment",dis) | |
7696 | at2.Position = vt(25000,0,0) | |
7697 | local trl = Instance.new('Trail',dis) | |
7698 | trl.Attachment0 = at1 | |
7699 | trl.FaceCamera = true | |
7700 | trl.Attachment1 = at2 | |
7701 | trl.Texture = "rbxassetid://1049219073" | |
7702 | trl.LightEmission = 1 | |
7703 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
7704 | trl.Color = ColorSequence.new(BrickColor.random().Color) | |
7705 | trl.Lifetime = 5 | |
7706 | local bv = Instance.new("BodyVelocity") | |
7707 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
7708 | bv.velocity = dis.CFrame.lookVector*math.random(500,2500) | |
7709 | bv.Parent = dis | |
7710 | game:GetService("Debris"):AddItem(dis, 5) | |
7711 | end | |
7712 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1) | |
7713 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,1.5) | |
7714 | symbolizeBlink(root,0,2109052855,MAINRUINCOLOR.Color,125,0,0,0,root,false,0,3) | |
7715 | sphere2(2,"Add",root.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color) | |
7716 | sphere2(2,"Add",root.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color) | |
7717 | sphere2(2,"Add",root.CFrame,vt(1,1,1),4,4,4,BrickColor.random(),BrickColor.random().Color) | |
7718 | sphere2(2,"Add",root.CFrame,vt(1,1,1),8,8,8,BrickColor.random(),BrickColor.random().Color) | |
7719 | CFuncs["Sound"].Create("rbxassetid://1841058541", root, 10,1) | |
7720 | CFuncs["Sound"].Create("rbxassetid://2095993595", char, 5,0.8) | |
7721 | CFuncs["Sound"].Create("rbxassetid://1841058541", char, 5,1) | |
7722 | hum.CameraOffset = vt(0,0,0) | |
7723 | for i = 0, 24 do | |
7724 | --slash(math.random(10,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(500,1500)/250,BrickColor.random()) | |
7725 | end | |
7726 | local distam = 0 | |
7727 | coroutine.resume(coroutine.create(function() | |
7728 | for i = 0, 99 do | |
7729 | wait() | |
7730 | distam = distam + 1 | |
7731 | local xa = CreateParta(char,1,1,"SmoothPlastic",BrickColor.random()) | |
7732 | xa.Anchored = true | |
7733 | xa.CFrame = root.CFrame*CFrame.new(math.random(-distam,distam),math.random(-distam,distam),math.random(-distam,distam)) | |
7734 | game:GetService("Debris"):AddItem(xa, 5) | |
7735 | for i = 0, 4 do | |
7736 | --slash(math.random(25,50)/10,5,true,"Round","Add","Out",xa.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(200,500)/250,BrickColor.random()) | |
7737 | end | |
7738 | coroutine.resume(coroutine.create(function() | |
7739 | local eff = Instance.new("ParticleEmitter",xa) | |
7740 | eff.Texture = "rbxassetid://2273224484" | |
7741 | eff.LightEmission = 1 | |
7742 | eff.Color = ColorSequence.new(BrickColor.random().Color) | |
7743 | eff.Rate = 500000 | |
7744 | eff.Lifetime = NumberRange.new(1,3) | |
7745 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,30,0),NumberSequenceKeypoint.new(0.2,5,0),NumberSequenceKeypoint.new(0.8,5,0),NumberSequenceKeypoint.new(1,0,0)}) | |
7746 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
7747 | eff.Speed = NumberRange.new(50,500) | |
7748 | eff.Drag = 5 | |
7749 | eff.Rotation = NumberRange.new(-500,500) | |
7750 | eff.VelocitySpread = 9000 | |
7751 | eff.RotSpeed = NumberRange.new(-50,50) | |
7752 | wait(0.25) | |
7753 | eff.Enabled = false | |
7754 | end)) | |
7755 | coroutine.resume(coroutine.create(function() | |
7756 | for i = 0, 19 do | |
7757 | swait() | |
7758 | hum.CameraOffset = vt(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) | |
7759 | end | |
7760 | hum.CameraOffset = vt(0,0,0) | |
7761 | end)) | |
7762 | CFuncs["Sound"].Create("rbxassetid://675172759", xa, 7,math.random(100,200)/200) | |
7763 | --sphere2(5,"Add",xa.CFrame,vt(1,1,1),1,1,1,BrickColor.random(),BrickColor.random().Color) | |
7764 | --sphere2(5,"Add",xa.CFrame,vt(1,1,1),2,2,2,BrickColor.random(),BrickColor.random().Color) | |
7765 | MagniDamage(xa, 60, 9999,99999, 0, "Normal") | |
7766 | end | |
7767 | end)) | |
7768 | attack = false | |
7769 | hum.WalkSpeed = storehumanoidWS | |
7770 | end | |
7771 | ||
7772 | ||
7773 | function FallenOrbs() | |
7774 | attack = true | |
7775 | hum.WalkSpeed = 2 | |
7776 | local keptcolor = MAINRUINCOLOR | |
7777 | CFuncs["EchoSound"].Create("rbxassetid://1448033299", char, 1.5, 1,0,10,0.15,0.5,1) | |
7778 | CFuncs["EchoSound"].Create("rbxassetid://1448033299", root, 10, 1,0,10,0.15,0.5,1) | |
7779 | local radm = math.random(1,3) | |
7780 | if radm == 1 then | |
7781 | bosschatfunc("This won't be easy for you.",MAINRUINCOLOR.Color,1) | |
7782 | elseif radm == 2 then | |
7783 | bosschatfunc("How about this?",MAINRUINCOLOR.Color,1) | |
7784 | elseif radm == 3 then | |
7785 | bosschatfunc("Swarm!",MAINRUINCOLOR.Color,1) | |
7786 | end | |
7787 | coroutine.resume(coroutine.create(function() | |
7788 | for i = 0, 29 do | |
7789 | swait(2) | |
7790 | local dis = CreateParta(char,0.5,1,"Neon",MAINRUINCOLOR) | |
7791 | dis.Anchored = true | |
7792 | CFuncs["Sound"].Create("rbxassetid://137463716", dis, 2.5,1.5) | |
7793 | dis.CFrame = root.CFrame*CFrame.new(math.random(-35,35),math.random(5,35),math.random(-35,35)) | |
7794 | CreateMesh(dis,"Sphere",2,2,2) | |
7795 | --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,keptcolor,keptcolor.Color) | |
7796 | --slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(10,50)/250,BrickColor.new("White")) | |
7797 | coroutine.resume(coroutine.create(function() | |
7798 | wait(0.5) | |
7799 | dis.Anchored = false | |
7800 | CFuncs["EchoSound"].Create("rbxassetid://1602800656", dis, 5, 1,0,2,0.15,0.1,1) | |
7801 | local at1 = Instance.new("Attachment",dis) | |
7802 | at1.Position = vt(-1,0,0) | |
7803 | local at2 = Instance.new("Attachment",dis) | |
7804 | at2.Position = vt(1,0,0) | |
7805 | local trl = Instance.new('Trail',dis) | |
7806 | trl.Attachment0 = at1 | |
7807 | trl.FaceCamera = true | |
7808 | trl.Attachment1 = at2 | |
7809 | trl.Texture = "rbxassetid://1049219073" | |
7810 | trl.LightEmission = 1 | |
7811 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
7812 | trl.Color = ColorSequence.new(dis.Color) | |
7813 | trl.Lifetime = 0.6 | |
7814 | local a = Instance.new("Part",workspace) | |
7815 | a.Name = "Direction" | |
7816 | a.Anchored = true | |
7817 | a.BrickColor = bc("Bright red") | |
7818 | a.Material = "Neon" | |
7819 | a.Transparency = 1 | |
7820 | a.CanCollide = false | |
7821 | local ray = Ray.new( | |
7822 | dis.CFrame.p, -- origin | |
7823 | (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction | |
7824 | ) | |
7825 | local ignore = dis | |
7826 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
7827 | a.BottomSurface = 10 | |
7828 | a.TopSurface = 10 | |
7829 | local distance = (dis.CFrame.p - position).magnitude | |
7830 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
7831 | a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0) | |
7832 | dis.CFrame = a.CFrame | |
7833 | a:Destroy() | |
7834 | local bv = Instance.new("BodyVelocity") | |
7835 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
7836 | bv.velocity = dis.CFrame.lookVector*500 | |
7837 | bv.Parent = dis | |
7838 | game:GetService("Debris"):AddItem(dis, 5) | |
7839 | local hitted = false | |
7840 | coroutine.resume(coroutine.create(function() | |
7841 | dis.Touched:connect(function(hit) | |
7842 | if hitted == false and hit.Parent ~= char then | |
7843 | hitted = true | |
7844 | CFuncs["EchoSound"].Create("rbxassetid://675172759", dis, 2.5, 0.8,0,10,0.15,0.5,1) | |
7845 | MagniDamage(dis, 60, 25456,124672, 0, "Normal") | |
7846 | --sphere2(1,"Add",dis.CFrame,vt(1,1,1),1,1,1,keptcolor,keptcolor.Color) | |
7847 | --sphere2(8,"Add",dis.CFrame,vt(1,1,1),1.25,1.25,1.25,BrickColor.new("White"),Color3.new(1,1,1)) | |
7848 | coroutine.resume(coroutine.create(function() | |
7849 | for i = 0, 4 do | |
7850 | local disr = CreateParta(char,1,1,"Neon",keptcolor) | |
7851 | disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
7852 | local at1 = Instance.new("Attachment",disr) | |
7853 | at1.Position = vt(-10,0,0) | |
7854 | local at2 = Instance.new("Attachment",disr) | |
7855 | at2.Position = vt(10,0,0) | |
7856 | local trl = Instance.new('Trail',disr) | |
7857 | trl.Attachment0 = at1 | |
7858 | trl.FaceCamera = true | |
7859 | trl.Attachment1 = at2 | |
7860 | trl.Texture = "rbxassetid://2342682798" | |
7861 | trl.LightEmission = 1 | |
7862 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
7863 | trl.Color = ColorSequence.new(disr.Color) | |
7864 | trl.Lifetime = 0.5 | |
7865 | local bv = Instance.new("BodyVelocity") | |
7866 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
7867 | bv.velocity = disr.CFrame.lookVector*math.random(125,250) | |
7868 | bv.Parent = disr | |
7869 | local val = 0 | |
7870 | coroutine.resume(coroutine.create(function() | |
7871 | swait(30) | |
7872 | for i = 0, 9 do | |
7873 | swait() | |
7874 | val = val + 0.1 | |
7875 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)}) | |
7876 | end | |
7877 | game:GetService("Debris"):AddItem(disr, 3) | |
7878 | end)) | |
7879 | end | |
7880 | local eff = Instance.new("ParticleEmitter",dis) | |
7881 | eff.Texture = "rbxassetid://2273224484" | |
7882 | eff.LightEmission = 1 | |
7883 | eff.Color = ColorSequence.new(dis.Color) | |
7884 | eff.Rate = 500000 | |
7885 | eff.Lifetime = NumberRange.new(0.5,2) | |
7886 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
7887 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
7888 | eff.Speed = NumberRange.new(20,250) | |
7889 | eff.Drag = 5 | |
7890 | eff.Rotation = NumberRange.new(-500,500) | |
7891 | eff.VelocitySpread = 9000 | |
7892 | eff.RotSpeed = NumberRange.new(-50,50) | |
7893 | wait(0.5) | |
7894 | eff.Enabled = false | |
7895 | end)) | |
7896 | for i = 0, 4 do | |
7897 | --slash(math.random(20,50)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White")) | |
7898 | end | |
7899 | coroutine.resume(coroutine.create(function() | |
7900 | for i = 0, 19 do | |
7901 | swait() | |
7902 | hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70) | |
7903 | end | |
7904 | hum.CameraOffset = vt(0,0,0) | |
7905 | end)) | |
7906 | dis.Anchored = true | |
7907 | dis.Transparency = 1 | |
7908 | wait(8) | |
7909 | dis:Destroy() | |
7910 | end | |
7911 | end) | |
7912 | end)) | |
7913 | end)) | |
7914 | end | |
7915 | end)) | |
7916 | for i = 0,9,0.1 do | |
7917 | swait() | |
7918 | sphere2(8,"Add",rarm.CFrame*CFrame.new(0,-1,0)*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(1,1,1),-0.01,0.05,-0.01,MAINRUINCOLOR,MAINRUINCOLOR.Color) | |
7919 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.3) | |
7920 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.3) | |
7921 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(90)),.3) | |
7922 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(-15 + 1 * math.cos(sine / 58)),math.rad(-90 + 2 * math.cos(sine / 53))),.3) | |
7923 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(90 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(90 + 2 * math.cos(sine / 45))),.3) | |
7924 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(8 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(-9 - 4 * math.cos(sine / 45))),.3) | |
7925 | end | |
7926 | attack = false | |
7927 | hum.WalkSpeed = storehumanoidWS | |
7928 | end | |
7929 | ||
7930 | function EquinoxOrbs() | |
7931 | hum.WalkSpeed = 0 | |
7932 | attack = true | |
7933 | for i = 0,1,0.1 do | |
7934 | swait() | |
7935 | 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)),.2) | |
7936 | 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) | |
7937 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
7938 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2) | |
7939 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(5),math.rad(40)),.3) | |
7940 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-40)),.3) | |
7941 | end | |
7942 | --sphere2(5,"Add",root.CFrame,vt(1,1,1),1.5,1.5,1.5,MAINRUINCOLOR) | |
7943 | --sphere2(5,"Add",root.CFrame,vt(1,1,1),1,1,1,MAINRUINCOLOR) | |
7944 | for i = 0, 24 do | |
7945 | --slash(math.random(10,50)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(90),math.rad(math.random(-360,360)),math.rad(0)),vt(0.01,0.01,0.01),math.random(100,400)/250,BrickColor.new("White")) | |
7946 | end | |
7947 | CFuncs["Sound"].Create("rbxassetid://763716870", root, 8,1) | |
7948 | CFuncs["Sound"].Create("rbxassetid://782353443", root, 10,0.8) | |
7949 | CFuncs["Sound"].Create("rbxassetid://782225570", root, 9,0.5) | |
7950 | CFuncs["Sound"].Create("rbxassetid://763717569", root, 8,0.9) | |
7951 | for i = 0,4,0.1 do | |
7952 | swait() | |
7953 | root.CFrame = root.CFrame + root.CFrame.lookVector*7.5 | |
7954 | local dis = CreateParta(char,0.25,1,"Neon",MAINRUINCOLOR) | |
7955 | CreateMesh(dis,"Sphere",1,1,1) | |
7956 | dis.Anchored = true | |
7957 | dis.CFrame = larm.CFrame*CFrame.new(0,-3,0) | |
7958 | local dis2 = CreateParta(char,0.25,1,"Neon",BrickColor.new("Really black")) | |
7959 | CreateMesh(dis2,"Sphere",1,1,1) | |
7960 | dis2.Anchored = true | |
7961 | dis2.CFrame = rarm.CFrame*CFrame.new(0,-3,0) | |
7962 | --sphere2(5,"Add",dis.CFrame,vt(1,1,1),0.1,0.1,0.1,dis.BrickColor,dis.Color) | |
7963 | --sphere2(5,"Add",dis2.CFrame,vt(1,1,1),0.1,0.1,0.1,dis2.BrickColor,dis2.Color) | |
7964 | coroutine.resume(coroutine.create(function() | |
7965 | swait(60) | |
7966 | dis.Transparency = 1 | |
7967 | dis2.Transparency = 1 | |
7968 | coroutine.resume(coroutine.create(function() | |
7969 | for i = 0, 19 do | |
7970 | swait() | |
7971 | hum.CameraOffset = vt(math.random(-10,10)/40,math.random(-10,10)/40,math.random(-10,10)/40) | |
7972 | end | |
7973 | hum.CameraOffset = vt(0,0,0) | |
7974 | end)) | |
7975 | coroutine.resume(coroutine.create(function() | |
7976 | local eff = Instance.new("ParticleEmitter",dis) | |
7977 | eff.Texture = "rbxassetid://2273224484" | |
7978 | eff.LightEmission = 1 | |
7979 | eff.Color = ColorSequence.new(dis.Color) | |
7980 | eff.Rate = 500000 | |
7981 | eff.Lifetime = NumberRange.new(0.5,2) | |
7982 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
7983 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
7984 | eff.Speed = NumberRange.new(50,450) | |
7985 | eff.Drag = 5 | |
7986 | eff.Rotation = NumberRange.new(-500,500) | |
7987 | eff.VelocitySpread = 9000 | |
7988 | eff.RotSpeed = NumberRange.new(-50,50) | |
7989 | local eff2 = eff:Clone() | |
7990 | eff2.Parent = dis2 | |
7991 | eff2.LightEmission = 0 | |
7992 | eff2.Color = ColorSequence.new(dis2.Color) | |
7993 | wait(0.25) | |
7994 | eff.Enabled = false | |
7995 | eff2.Enabled = false | |
7996 | end)) | |
7997 | MagniDamage(dis, 55, 89,219788936, 0, "Normal") | |
7998 | MagniDamage(dis2, 55, 89,219788936, 0, "Normal") | |
7999 | CFuncs["Sound"].Create("rbxassetid://782353117", dis, 1,0.75) | |
8000 | CFuncs["Sound"].Create("rbxassetid://782353117", dis2, 1,0.75) | |
8001 | CFuncs["Sound"].Create("rbxassetid://1666361078", dis, 1,1.25) | |
8002 | CFuncs["Sound"].Create("rbxassetid://1666361078", dis2, 1,1.25) | |
8003 | CFuncs["Sound"].Create("rbxassetid://782353443", dis, 2,1.15) | |
8004 | CFuncs["Sound"].Create("rbxassetid://782353443", dis2, 2,1.15) | |
8005 | sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.8,0.8,0.8,dis.BrickColor,dis.Color) | |
8006 | sphere2(3,"Add",dis2.CFrame,vt(1,1,1),0.8,0.8,0.8,dis2.BrickColor,dis2.Color) | |
8007 | end)) | |
8008 | game:GetService("Debris"):AddItem(dis, 5) | |
8009 | game:GetService("Debris"):AddItem(dis2, 5) | |
8010 | 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)),.2) | |
8011 | 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) | |
8012 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.5,0.5)*angles(math.rad(90),math.rad(0),math.rad(0)),.2) | |
8013 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-17),math.rad(0),math.rad(0)),.2) | |
8014 | RW.C0=clerp(RW.C0,cf(1.4,1.5,0)*angles(math.rad(0),math.rad(5),math.rad(210)),.1) | |
8015 | LW.C0=clerp(LW.C0,cf(-1.4,1.5,0)*angles(math.rad(0),math.rad(-5),math.rad(-210)),.1) | |
8016 | end | |
8017 | attack = false | |
8018 | hum.WalkSpeed = storehumanoidWS | |
8019 | end | |
8020 | function FallenDEMISE() | |
8021 | attack = true | |
8022 | hum.WalkSpeed = 0 | |
8023 | local keptcolor = MAINRUINCOLOR | |
8024 | --bosschatfunc("ALL OF YOUR EXISTANCE WILL BE GONE.",MAINRUINCOLOR.Color,3) | |
8025 | CFuncs["Sound"].Create("rbxassetid://289315275", char, 2.5,0.75) | |
8026 | CFuncs["Sound"].Create("rbxassetid://136007472", char, 2,0.5) | |
8027 | for i = 0, 15, 0.1 do | |
8028 | swait() | |
8029 | local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR) | |
8030 | dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
8031 | local at1 = Instance.new("Attachment",dis) | |
8032 | at1.Position = vt(-25000,0,0) | |
8033 | local at2 = Instance.new("Attachment",dis) | |
8034 | at2.Position = vt(25000,0,0) | |
8035 | local trl = Instance.new('Trail',dis) | |
8036 | trl.Attachment0 = at1 | |
8037 | trl.FaceCamera = true | |
8038 | trl.Attachment1 = at2 | |
8039 | trl.Texture = "rbxassetid://1049219073" | |
8040 | trl.LightEmission = 1 | |
8041 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
8042 | trl.Color = ColorSequence.new(dis.Color) | |
8043 | trl.Lifetime = 5 | |
8044 | local bv = Instance.new("BodyVelocity") | |
8045 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
8046 | bv.velocity = dis.CFrame.lookVector*math.random(500,2500) | |
8047 | bv.Parent = dis | |
8048 | game:GetService("Debris"):AddItem(dis, 1) | |
8049 | sphere2(15,"Add",root.CFrame,vt(8,8,8),2,2,2,MAINRUINCOLOR) | |
8050 | --slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Toothpaste")) | |
8051 | --slash(math.random(30,150)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(1,0.01,1),math.random(100,500)/250,BrickColor.new("Deep orange")) | |
8052 | RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1) | |
8053 | LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1) | |
8054 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1) | |
8055 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
8056 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1) | |
8057 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1) | |
8058 | end | |
8059 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 10,1) | |
8060 | for i = 0, 30, 0.1 do | |
8061 | swait() | |
8062 | coroutine.resume(coroutine.create(function() | |
8063 | for i, v in pairs(FindNearestHead(root.CFrame.p, 10000000)) do | |
8064 | if v:FindFirstChild('Head') then | |
8065 | dmg(v) | |
8066 | end | |
8067 | end | |
8068 | end)) | |
8069 | local dis = CreateParta(char,1,1,"Neon",MAINRUINCOLOR) | |
8070 | dis.CFrame = root.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
8071 | local at1 = Instance.new("Attachment",dis) | |
8072 | at1.Position = vt(-50000,0,0) | |
8073 | local at2 = Instance.new("Attachment",dis) | |
8074 | at2.Position = vt(50000,0,0) | |
8075 | local trl = Instance.new('Trail',dis) | |
8076 | trl.Attachment0 = at1 | |
8077 | trl.FaceCamera = true | |
8078 | trl.Attachment1 = at2 | |
8079 | trl.Texture = "rbxassetid://1049219073" | |
8080 | trl.LightEmission = 1 | |
8081 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
8082 | trl.Color = ColorSequence.new(dis.Color) | |
8083 | trl.Lifetime = 10 | |
8084 | local bv = Instance.new("BodyVelocity") | |
8085 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
8086 | bv.velocity = dis.CFrame.lookVector*math.random(1500,10000) | |
8087 | bv.Parent = dis | |
8088 | game:GetService("Debris"):AddItem(dis, math.random(1,4)) | |
8089 | --sphere2(15,"Add",root.CFrame,vt(8,80000,8),5,1,5,MAINRUINCOLOR) | |
8090 | --sphere2(15,"Add",root.CFrame,vt(8,8,8),8,8,8,MAINRUINCOLOR) | |
8091 | --sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Deep orange")) | |
8092 | --sphere2(2,"Add",root.CFrame*CFrame.new(math.random(-2000,2000),math.random(-2000,2000),math.random(-2000,2000)),vt(0,0,0),5,5,5,BrickColor.new("Toothpaste")) | |
8093 | --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Deep orange")) | |
8094 | --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),vt(5,0.01,5),math.random(500,5000)/250,BrickColor.new("Toothpaste")) | |
8095 | for i = 0, 2 do | |
8096 | --slash(math.random(50,100)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.new(0,math.random(-3,1000),0)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-360,360)),math.rad(math.random(-5,5))),vt(2,0.01,2),math.random(250,750)/250,MAINRUINCOLOR) | |
8097 | end | |
8098 | RH.C0=clerp(RH.C0,cf(1,-0.35,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(-35)),.1) | |
8099 | LH.C0=clerp(LH.C0,cf(-1,-0.45,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1),math.rad(0),math.rad(35)),.1) | |
8100 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0)),.1) | |
8101 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
8102 | RW.C0=clerp(RW.C0,cf(1.15,0.5,-0.5)*angles(math.rad(92),math.rad(0),math.rad(-67)),.1) | |
8103 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(68)),.1) | |
8104 | end | |
8105 | attack = false | |
8106 | hum.WalkSpeed = storehumanoidWS | |
8107 | end | |
8108 | ------------------------------------- | |
8109 | ||
8110 | Humanoid.Animator.Parent = nil | |
8111 | ||
8112 | ------------------------------------- | |
8113 | ||
8114 | local attacktype = 1 | |
8115 | mouse.Button1Down:connect(function() | |
8116 | if attack == false and attacktype == 1 then | |
8117 | attacktype = 2 | |
8118 | attackone() | |
8119 | elseif attack == false and attacktype == 2 then | |
8120 | attacktype = 3 | |
8121 | attacktwo() | |
8122 | elseif attack == false and attacktype == 3 then | |
8123 | attacktype = 1 | |
8124 | attackthree() | |
8125 | elseif attack == false and attacktype == 4 then | |
8126 | attacktype = 1 | |
8127 | --attackfour() | |
8128 | end | |
8129 | end) | |
8130 | mouse.KeyDown:connect(function(k) | |
8131 | if k == "q" and attack == false and ModeOfGlitch ~= 1 then | |
8132 | --normalmog() ---Disabled due to crashing... only in VSB | |
8133 | ModeOfGlitch = 1 | |
8134 | storehumanoidWS = 16 | |
8135 | hum.WalkSpeed = 16 | |
8136 | rainbowmode = false | |
8137 | chaosmode = false | |
8138 | newTheme("rbxassetid://519067542",48.6,1,1.25) | |
8139 | RecolorTextAndRename("Neutral",Color3.new(0.25,0,0),Color3.new(1,0,0),"Antique") | |
8140 | MAINRUINCOLOR = BrickColor.new("Really red") | |
8141 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,false) | |
8142 | end | |
8143 | if k == "e" and attack == false and ModeOfGlitch ~= 2 then | |
8144 | ModeOfGlitch = 2 | |
8145 | storehumanoidWS = 16 | |
8146 | hum.WalkSpeed = 16 | |
8147 | rainbowmode = false | |
8148 | chaosmode = false | |
8149 | RecolorTextAndRename("Cyber",Color3.new(0,1,1),Color3.new(1,1,1),"Code") | |
8150 | newTheme("rbxassetid://263010749",0,1,1.25) | |
8151 | chatfunc("Well hello there",MAINRUINCOLOR.Color,"Inverted","Arcade",3) | |
8152 | MAINRUINCOLOR = BrickColor.new("Lime green") | |
8153 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8154 | end | |
8155 | if k == "r" and attack == false and ModeOfGlitch ~= 3 then | |
8156 | ModeOfGlitch = 3 | |
8157 | storehumanoidWS = 16 | |
8158 | hum.WalkSpeed = 99 | |
8159 | rainbowmode = true | |
8160 | chaosmode = true | |
8161 | RecolorTextAndRename("CORRUPTION",Color3.new(0,0,0),Color3.new(0.35,0,1),"Antique") | |
8162 | newTheme("rbxassetid://1283869370",58.15,0.98,1.25) | |
8163 | chatfunc("You are making me mad",MAINRUINCOLOR.Color,"Inverted","Arcade",3) | |
8164 | MAINRUINCOLOR = BrickColor.new("Royal purple") | |
8165 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8166 | end | |
8167 | if k == "t" and attack == false and ModeOfGlitch ~= 4 then | |
8168 | ModeOfGlitch = 4 | |
8169 | storehumanoidWS = 16 | |
8170 | hum.WalkSpeed = 16 | |
8171 | rainbowmode = false | |
8172 | chaosmode = true | |
8173 | RecolorTextAndRename("InSaNiTy",Color3.new(0,0,0),Color3.new(1,1,1),"Arcade") | |
8174 | newTheme("rbxassetid://222585134",0,1.01,1.25) | |
8175 | chatfunc("Hehehe....",MAINRUINCOLOR.Color,"Inverted","Arcade",3) | |
8176 | MAINRUINCOLOR = BrickColor.new("Toothpaste") | |
8177 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8178 | end | |
8179 | if k == "y" and attack == false and ModeOfGlitch ~= 5 then | |
8180 | ModeOfGlitch = 5 | |
8181 | storehumanoidWS = 16 | |
8182 | hum.WalkSpeed = 16 | |
8183 | rainbowmode = false | |
8184 | chaosmode = false | |
8185 | RecolorTextAndRename("Till its over...",Color3.new(1,1,1),Color3.new(1,1,0.5),"Arcade") | |
8186 | newTheme("rbxassetid://2478467412",0,1.02,1.25) | |
8187 | chatfunc("ITS NOT OVER!!",MAINRUINCOLOR.Color,"Inverted","Arcade",3) | |
8188 | MAINRUINCOLOR = BrickColor.new("Baby blue") | |
8189 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8190 | end | |
8191 | if k == "u" and attack == false and ModeOfGlitch ~= 6 then | |
8192 | ModeOfGlitch = 6 | |
8193 | storehumanoidWS = 100 | |
8194 | hum.WalkSpeed = 100 | |
8195 | rainbowmode = false | |
8196 | chaosmode = false | |
8197 | RecolorTextAndRename("Solitude",Color3.new(0,0,0),Color3.new(1,1,1),"Fantasy") | |
8198 | newTheme("rbxassetid://723652641",0,1.01,1.25) | |
8199 | chatfunc("So you finally came ",MAINRUINCOLOR.Color,"Inverted","Arcade",3) | |
8200 | MAINRUINCOLOR = BrickColor.new("White") | |
8201 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8202 | end | |
8203 | if k == "f" and attack == false and ModeOfGlitch ~= 8 then | |
8204 | ModeOfGlitch = 8 | |
8205 | storehumanoidWS = 140 | |
8206 | hum.WalkSpeed = 140 | |
8207 | rainbowmode = false | |
8208 | chaosmode = false | |
8209 | RecolorTextAndRename("Dubstep",Color3.new(1,1,1),BrickColor.new("Navy blue").Color,"Code") | |
8210 | newTheme("rbxassetid://736912084",0,1.01,1.25) | |
8211 | chatfunc("This Party is just getting started!",MAINRUINCOLOR.Color,"Inverted","Arcade",3) | |
8212 | MAINRUINCOLOR = BrickColor.new("Lime green") | |
8213 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8214 | end | |
8215 | if k == "g" and attack == false and ModeOfGlitch ~= 9 then | |
8216 | ModeOfGlitch = 9 | |
8217 | storehumanoidWS = 150 | |
8218 | hum.WalkSpeed = 150 | |
8219 | rainbowmode = false | |
8220 | chaosmode = false | |
8221 | RecolorTextAndRename("Down Under",Color3.new(0,1,0),Color3.new(0.8,1,0.5),"Bodoni") | |
8222 | newTheme("rbxassetid://2385137061",0,1.01,1.25) | |
8223 | chatfunc("Dont you dare mess with me",MAINRUINCOLOR.Color,"Inverted","Arcade",3) | |
8224 | MAINRUINCOLOR = BrickColor.new("Forest green") | |
8225 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Lime green"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8226 | end | |
8227 | if k == "m" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 8889 then | |
8228 | ModeOfGlitch = 8889 | |
8229 | storehumanoidWS = 180 | |
8230 | hum.WalkSpeed = 180 | |
8231 | rainbowmode = false | |
8232 | chaosmode = false | |
8233 | RecolorTextAndRename("CALAMITY",BrickColor.new("Alder").Color,BrickColor.new("Lilac").Color,"Antique") | |
8234 | newTheme("rbxassetid://1359036559",0,1.01,1.25) | |
8235 | MAINRUINCOLOR = BrickColor.new("Lilac") | |
8236 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Alder"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8237 | end | |
8238 | if k == "n" and attack == false and ModeOfGlitch == 1 and ModeOfGlitch ~= 55469696922 then | |
8239 | ModeOfGlitch = 55469696922 | |
8240 | storehumanoidWS = 275 | |
8241 | hum.WalkSpeed = 275 | |
8242 | rainbowmode = false | |
8243 | chaosmode = false | |
8244 | RecolorTextAndRename("THE BIG BLACK",Color3.new(0.25,0,0.1),BrickColor.new("Black").Color,"Antique") | |
8245 | newTheme("rbxassetid://183142252",0,1.005,1.25) | |
8246 | chatfunc("Riddle me this riddle me that Who is afraid of THE BIG BLACK?",MAINRUINCOLOR.Color,"Inverted","Arcade",3) | |
8247 | MAINRUINCOLOR = BrickColor.new("Black") | |
8248 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8249 | end | |
8250 | if k == "n" and attack == false and ModeOfGlitch == 2 and ModeOfGlitch ~= 4367677813 then | |
8251 | ModeOfGlitch = 4367677813 | |
8252 | storehumanoidWS = 225 | |
8253 | hum.WalkSpeed = 225 | |
8254 | rainbowmode = false | |
8255 | chaosmode = false | |
8256 | RecolorTextAndRename("Galaxy",Color3.new(0.75,0.9,1),BrickColor.new("Royal purple").Color,"Arcade") | |
8257 | newTheme("rbxassetid://2743813268",0,1.01,1.25) | |
8258 | chatfunc("Your not welcome here",MAINRUINCOLOR.Color,"Inverted","Arcade",3) | |
8259 | MAINRUINCOLOR = BrickColor.new("Navy blue") | |
8260 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Pink"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8261 | end | |
8262 | if k == "n" and attack == false and ModeOfGlitch == 8 and ModeOfGlitch ~= 9999999921111 then | |
8263 | ModeOfGlitch = 9999999921111 | |
8264 | storehumanoidWS = 300 | |
8265 | hum.WalkSpeed = 300 | |
8266 | rainbowmode = false | |
8267 | chaosmode = false | |
8268 | RecolorTextAndRename("Overload",BrickColor.new("Really black").Color,BrickColor.new("Really red").Color,"Arcade") | |
8269 | newTheme("rbxassetid://877619753",0,1.01,1.25) | |
8270 | chatfunc("You dont understand who your messing with...",MAINRUINCOLOR.Color,"Inverted","Arcade",3) | |
8271 | MAINRUINCOLOR = BrickColor.new("Dark indigo") | |
8272 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8273 | end | |
8274 | if k == "n" and attack == false and ModeOfGlitch == 4 and ModeOfGlitch ~= 999999999556 then | |
8275 | ModeOfGlitch = 999999999556 | |
8276 | storehumanoidWS = 500 | |
8277 | hum.WalkSpeed = 500 | |
8278 | rainbowmode = false | |
8279 | chaosmode = false | |
8280 | RecolorTextAndRename("Chronos",BrickColor.new("Really black").Color,BrickColor.new("Navy blue").Color,"Code") | |
8281 | newTheme("rbxassetid://2776200078",0,1.02,1.25) | |
8282 | chatfunc("Time and space are getting messy because of you",MAINRUINCOLOR.Color,"Inverted","Arcade",3) | |
8283 | chatfunc("Now feel my wrath",MAINRUINCOLOR.Color,"Inverted","Arcade",3) | |
8284 | MAINRUINCOLOR = BrickColor.new("Navy blue") | |
8285 | RecolorThing(MAINRUINCOLOR,BrickColor.new("Really black"),MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8286 | end | |
8287 | if k == "n" and attack == false and ModeOfGlitch == 5 and ModeOfGlitch ~= 1264532489 then | |
8288 | ModeOfGlitch = 1264532489 | |
8289 | storehumanoidWS = 250 | |
8290 | hum.WalkSpeed = 250 | |
8291 | rainbowmode = false | |
8292 | chaosmode = false | |
8293 | RecolorTextAndRename("Skid",Color3.new(0.5,1,1),BrickColor.new("Deep orange").Color,"Arcade") | |
8294 | newTheme("rbxassetid://322621962",0,1.01,1.25) | |
8295 | chatfunc("Oh you real scary bro",MAINRUINCOLOR.Color,"Inverted","Arcade",3) | |
8296 | MAINRUINCOLOR = BrickColor.new("Pastel green") | |
8297 | RecolorThing(MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,MAINRUINCOLOR,1,MAINRUINCOLOR,1,MAINRUINCOLOR,true) | |
8298 | end | |
8299 | if k == "l" and mutedtog == false then | |
8300 | mutedtog = true | |
8301 | kan.Volume = 0 | |
8302 | elseif k == "l" and mutedtog == true then | |
8303 | mutedtog = false | |
8304 | kan.Volume = 1.25 | |
8305 | end | |
8306 | if k == "p" and toggleTag == false then | |
8307 | toggleTag = true | |
8308 | modet.TextTransparency = 0 | |
8309 | modet.TextStrokeTransparency = 0 | |
8310 | elseif k == "p" and toggleTag == true then | |
8311 | toggleTag = false | |
8312 | modet.TextTransparency = 1 | |
8313 | modet.TextStrokeTransparency = 1 | |
8314 | end | |
8315 | if k == "z" and attack == false and ModeOfGlitch == 1 then | |
8316 | ExtinctiveHeartbreak() | |
8317 | elseif k == "z" and attack == false and ModeOfGlitch == 2 then | |
8318 | HeavenlyDisk() | |
8319 | elseif k == "z" and attack == false and ModeOfGlitch == 3 then | |
8320 | CorruptionEvent() | |
8321 | elseif k == "z" and attack == false and ModeOfGlitch == 4 then | |
8322 | RapidBurst() | |
8323 | elseif k == "z" and attack == false and ModeOfGlitch == 5 then | |
8324 | --DivineLights() | |
8325 | elseif k == "z" and attack == false and ModeOfGlitch == 6 then | |
8326 | EquinoxOrbs() | |
8327 | elseif k == "z" and attack == false and ModeOfGlitch == 1264532489 then | |
8328 | FallenOrbs() | |
8329 | end | |
8330 | if k == "v" and attack == false and ModeOfGlitch == 1264532489 then | |
8331 | FallenDEMISE() | |
8332 | end | |
8333 | if k == "x" and attack == false and ModeOfGlitch == 1 then | |
8334 | EndGROUND() | |
8335 | end | |
8336 | end) | |
8337 | ||
8338 | --[[coroutine.resume(coroutine.create(function() | |
8339 | while true do | |
8340 | swait(2) | |
8341 | if chaosmode == true then | |
8342 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
8343 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
8344 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
8345 | RecolorTextAndRename("InSaNiTy",Color3.new(0,0,0),BrickColor.random().Color,"Arcade") | |
8346 | for i, v in pairs(mw1:GetChildren()) do | |
8347 | if v:IsA("Part") then | |
8348 | v.Transparency = 0.75 | |
8349 | v.BrickColor = BrickColor.random() | |
8350 | v.Material = "Neon" | |
8351 | end | |
8352 | end | |
8353 | for i, v in pairs(m2:GetChildren()) do | |
8354 | if v:IsA("Part") then | |
8355 | v.BrickColor = BrickColor.random() | |
8356 | v.Material = "Neon" | |
8357 | end | |
8358 | end | |
8359 | end | |
8360 | end | |
8361 | end))]]-- | |
8362 | Humanoid.Name = "STARGLITCHER" | |
8363 | Humanoid.MaxHealth = math.huge | |
8364 | Humanoid.Health = math.huge | |
8365 | Instance.new("ForceField",char).Visible = false | |
8366 | ||
8367 | local bguis = Instance.new("BillboardGui",tors) | |
8368 | bguis.Size = UDim2.new(25, 0, 25, 0) | |
8369 | local imgca = Instance.new("ImageLabel",bguis) | |
8370 | imgca.BackgroundTransparency = 1 | |
8371 | imgca.ImageTransparency = 1 | |
8372 | imgca.Size = UDim2.new(1,0,1,0) | |
8373 | imgca.Image = "rbxassetid://2312119891" --997291547,521073910,2312119891 | |
8374 | imgca.ImageColor3 = Color3.new(0,0,0) | |
8375 | ||
8376 | idleanim=.4 | |
8377 | while true do | |
8378 | if mutedtog == false then | |
8379 | kan.Volume = currentVol | |
8380 | elseif mutedtog == true then | |
8381 | kan.Volume = 0 | |
8382 | end | |
8383 | kan.PlaybackSpeed = currentPitch | |
8384 | kan.Pitch = currentPitch | |
8385 | kan.SoundId = currentThemePlaying | |
8386 | kan.Looped = true | |
8387 | kan.Parent = char | |
8388 | kan:Resume() | |
8389 | if ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 then | |
8390 | imgca.ImageTransparency = 1 | |
8391 | elseif ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 then | |
8392 | imgca.ImageColor3 = MAINRUINCOLOR.Color | |
8393 | imgca.ImageTransparency = 0 + 0.25 * math.cos(sine / 30) | |
8394 | end | |
8395 | imgca.Rotation = imgca.Rotation + 5 + kan.PlaybackLoudness/25 | |
8396 | bguis.Size = UDim2.new(12 + 3 * math.cos(sine / 30),0, 12 + 3 * math.cos(sine / 30),0) | |
8397 | coroutine.resume(coroutine.create(function() | |
8398 | if chaosmode == true then | |
8399 | for i, v in pairs(mw1:GetChildren()) do | |
8400 | if v:IsA("Part") then | |
8401 | v.Transparency = 0 | |
8402 | v.BrickColor = BrickColor.random() | |
8403 | v.Material = "Neon" | |
8404 | end | |
8405 | end | |
8406 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
8407 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
8408 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
8409 | RecolorTextAndRename("InSaNiTy",Color3.new(0,0,0),BrickColor.random().Color,"Arcade") | |
8410 | end | |
8411 | end)) | |
8412 | if chaosmode == false then | |
8413 | modet.Position = UDim2.new(0,0,0,0) | |
8414 | modet.Rotation = -5 * math.cos(sine / 32) | |
8415 | techc.Rotation = techc.Rotation + 1 | |
8416 | circl.Rotation = circl.Rotation - kan.PlaybackLoudness/75 - 1 | |
8417 | circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/50 + 1 | |
8418 | imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/50 + 1 | |
8419 | imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/25 - 1 | |
8420 | ned.Rotation = 0 - 2 * math.cos(sine / 24) | |
8421 | ned.Position = UDim2.new(0.7,0 - 10 * math.cos(sine / 32),0.8,0 - 10 * math.cos(sine / 45)) | |
8422 | else | |
8423 | techc.Rotation = techc.Rotation + 1 | |
8424 | circl.Rotation = circl.Rotation - kan.PlaybackLoudness/50 + math.random(-5,5) | |
8425 | circl2.Rotation = circl2.Rotation + kan.PlaybackLoudness/25 + math.random(-5,5) | |
8426 | imgl2.Rotation = imgl2.Rotation - kan.PlaybackLoudness/25 + math.random(-5,5) | |
8427 | imgl2b.Rotation = imgl2b.Rotation + kan.PlaybackLoudness/12.5 + math.random(-5,5) | |
8428 | ned.Rotation = 0 -2 * math.cos(sine / 1) + math.random(-3,3) | |
8429 | ned.Position = UDim2.new(0.7,0 + math.random(-3,3),0.8,0 + math.random(-3,3)) | |
8430 | modet.Position = UDim2.new(0,math.random(-1,1),0,math.random(-1,1)) | |
8431 | modet.Rotation = -2 * math.cos(sine / 1) + math.random(-3,3) | |
8432 | end | |
8433 | CameraManager() | |
8434 | swait() | |
8435 | lwing1weld.C1=clerp(lwing1weld.C1,cf(2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(12.5 + 5 * math.cos(sine / 32))),.3) | |
8436 | lwing2weld.C1=clerp(lwing2weld.C1,cf(3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(25 + 7.5 * math.cos(sine / 32))),.3) | |
8437 | lwing3weld.C1=clerp(lwing3weld.C1,cf(3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(37.5 + 10 * math.cos(sine / 32))),.3) | |
8438 | lwing4weld.C1=clerp(lwing4weld.C1,cf(4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(50 + 12.5 * math.cos(sine / 32))),.3) | |
8439 | lwing5weld.C1=clerp(lwing5weld.C1,cf(5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(62.5 + 15 * math.cos(sine / 32))),.3) | |
8440 | lwing6weld.C1=clerp(lwing6weld.C1,cf(6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(75 + 17.5 * math.cos(sine / 32))),.3) | |
8441 | rwing1weld.C1=clerp(rwing1weld.C1,cf(-2,0,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(5 + 10 * math.cos(sine / 32)),math.rad(0),math.rad(-12.5 - 5 * math.cos(sine / 32))),.3) | |
8442 | rwing2weld.C1=clerp(rwing2weld.C1,cf(-3,1,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(10 + 15 * math.cos(sine / 32)),math.rad(0),math.rad(-25 - 7.5 * math.cos(sine / 32))),.3) | |
8443 | rwing3weld.C1=clerp(rwing3weld.C1,cf(-3.75,2,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(15 + 20 * math.cos(sine / 32)),math.rad(0),math.rad(-37.5 - 10 * math.cos(sine / 32))),.3) | |
8444 | rwing4weld.C1=clerp(rwing4weld.C1,cf(-4.75,3,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(20 + 25 * math.cos(sine / 32)),math.rad(0),math.rad(-50 - 12.5 * math.cos(sine / 32))),.3) | |
8445 | rwing5weld.C1=clerp(rwing5weld.C1,cf(-5.75,4,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(25 + 30 * math.cos(sine / 32)),math.rad(0),math.rad(-62.5 - 15 * math.cos(sine / 32))),.3) | |
8446 | rwing6weld.C1=clerp(rwing6weld.C1,cf(-6.75,5,0)*angles(math.rad(0),math.rad(0),math.rad(0))*angles(math.rad(30 + 35 * math.cos(sine / 32)),math.rad(0),math.rad(-75 - 17.5 * math.cos(sine / 32))),.3) | |
8447 | sine = sine + change | |
8448 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
8449 | local velderp=RootPart.Velocity.y | |
8450 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
8451 | if equipped==true or equipped==false then | |
8452 | if attack==false then | |
8453 | idle=idle+1 | |
8454 | else | |
8455 | idle=0 | |
8456 | end | |
8457 | if idle>=500 then | |
8458 | if attack==false then | |
8459 | --Sheath() | |
8460 | end | |
8461 | end | |
8462 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
8463 | Anim="Jump" | |
8464 | if attack==false then | |
8465 | 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) | |
8466 | 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) | |
8467 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
8468 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
8469 | 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) | |
8470 | 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) | |
8471 | end | |
8472 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
8473 | Anim="Fall" | |
8474 | if attack==false then | |
8475 | 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) | |
8476 | 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) | |
8477 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(10),math.rad(0),math.rad(0)),.1) | |
8478 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(2.5),math.rad(0),math.rad(0)),.1) | |
8479 | 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) | |
8480 | 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) | |
8481 | end | |
8482 | elseif torvel<1 and hitfloor~=nil then | |
8483 | Anim="Idle" | |
8484 | if attack==false then | |
8485 | if ModeOfGlitch == 1 then | |
8486 | local snap = math.random(1,10) | |
8487 | if snap == 1 then | |
8488 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 + math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(22 + math.random(-5,5))),1) | |
8489 | end | |
8490 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-5.5 - 2 * math.cos(sine / 56)),math.rad(-12 - 2 * math.cos(sine / 32))),.1) | |
8491 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-6),math.rad(22 - 2 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1) | |
8492 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.01 + 0.03 * math.cos(sine / 32),0 + 0.1 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-22 + 2 * math.cos(sine / 56))),.1) | |
8493 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 2 * math.cos(sine / 37)),math.rad(0 + 5 * math.cos(sine / 43) - 5 * math.cos(sine / 0.25)),math.rad(22 - 2 * math.cos(sine / 56))),.1) | |
8494 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 + 3 * math.cos(sine / 43)),math.rad(-16 - 5 * math.cos(sine / 52)),math.rad(13 + 9 * math.cos(sine / 45))),.1) | |
8495 | LW.C0=clerp(LW.C0,cf(-1.35,1 + 0.025 * math.cos(sine / 45),-0.2)*angles(math.rad(148 - 2 * math.cos(sine / 51)),math.rad(0 - 4 * math.cos(sine / 64)),math.rad(22 - 2 * math.cos(sine / 45))),.1) | |
8496 | elseif ModeOfGlitch == 2 then | |
8497 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-6),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1) | |
8498 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1) | |
8499 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.01 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(1 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 + 3 * math.cos(sine / 42))),.1) | |
8500 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(0 + 1 * math.cos(sine / 53))),.1) | |
8501 | RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1) | |
8502 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1) | |
8503 | elseif ModeOfGlitch == 3 then | |
8504 | local snap = math.random(1,32) | |
8505 | if snap == 1 then | |
8506 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 + math.random(-10,10)),math.rad(math.random(-10,10)),math.rad(math.random(-10,10))),1) | |
8507 | end | |
8508 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(1 - 2 * math.cos(sine / 32))),.1) | |
8509 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-1 + 2 * math.cos(sine / 32))),.1) | |
8510 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0.02 + 0.02 * math.cos(sine / 32),0 + 0.05 * math.cos(sine / 32))*angles(math.rad(2 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 1 * math.cos(sine / 44))),.1) | |
8511 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(22 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
8512 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 3 * math.cos(sine / 45))),.1) | |
8513 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(33 - 3 * math.cos(sine / 45))),.1) | |
8514 | elseif ModeOfGlitch == 4 then | |
8515 | local snap = math.random(1,5) | |
8516 | if snap == 1 then | |
8517 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 + math.random(-1,1)),math.rad(math.random(-1,1)),math.rad(math.random(-1,1))),0.6) | |
8518 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74) + math.random(-1,1)),math.rad(1 - 3 * math.cos(sine / 53) + math.random(-1,1)),math.rad(1 + 3 * math.cos(sine / 45) + math.random(-1,1))),.6) | |
8519 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73) + math.random(-1,1)),math.rad(2 - 1 * math.cos(sine / 55) + math.random(-1,1)),math.rad(-3 - 3 * math.cos(sine / 45) + math.random(-1,1))),.6) | |
8520 | end | |
8521 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(25 - 2 * math.cos(sine / 32))),.1) | |
8522 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-25 + 2 * math.cos(sine / 32))),.1) | |
8523 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.25 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(25 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
8524 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
8525 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(1 + 3 * math.cos(sine / 45))),.1) | |
8526 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(25 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-3 - 3 * math.cos(sine / 45))),.1) | |
8527 | elseif ModeOfGlitch == 5 then | |
8528 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
8529 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
8530 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-10)),.1) | |
8531 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(10 + 2 * math.cos(sine / 53))),.1) | |
8532 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(8 + 3 * math.cos(sine / 45))),.1) | |
8533 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1) | |
8534 | elseif ModeOfGlitch == 6 then | |
8535 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 7 * math.cos(sine / 56))),.1) | |
8536 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 52))),.1) | |
8537 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
8538 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
8539 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(14 + 5 * math.cos(sine / 32))),.1) | |
8540 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-14 - 6 * math.cos(sine / 33))),.1) | |
8541 | elseif ModeOfGlitch == 8 then | |
8542 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 39))),.1) | |
8543 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 6 * math.cos(sine / 31))),.1) | |
8544 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-20)),.1) | |
8545 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(20 + 2 * math.cos(sine / 53))),.1) | |
8546 | RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1) | |
8547 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1) | |
8548 | elseif ModeOfGlitch == 9 then | |
8549 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(-4 - 2 * math.cos(sine / 53)),math.rad(0 - 2 * math.cos(sine / 32))),.1) | |
8550 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(9 - 2 * math.cos(sine / 53)),math.rad(0 + 2 * math.cos(sine / 32))),.1) | |
8551 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),-0.1 + 0.05 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0 - 2 * math.cos(sine / 53))),.1) | |
8552 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(19 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
8553 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(2 + 5 * math.cos(sine / 74)),math.rad(18 - 3 * math.cos(sine / 53)),math.rad(17 + 3 * math.cos(sine / 45))),.1) | |
8554 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(5 - 3 * math.cos(sine / 73)),math.rad(-11 - 1 * math.cos(sine / 55)),math.rad(-14 - 3 * math.cos(sine / 45))),.1) | |
8555 | elseif ModeOfGlitch == 8889 then | |
8556 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 5 * math.cos(sine / 51))),.1) | |
8557 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 44))),.1) | |
8558 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(-36)),.1) | |
8559 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(13 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(36 + 2 * math.cos(sine / 53))),.1) | |
8560 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(3 + 7 * math.cos(sine / 79)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(33 + 10 * math.cos(sine / 73))),.1) | |
8561 | LW.C0=clerp(LW.C0,cf(-1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(15 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(-27 - 6 * math.cos(sine / 33))),.1) | |
8562 | elseif ModeOfGlitch == 1264532489 then | |
8563 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-14 - 5 * math.cos(sine / 48))),.1) | |
8564 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(15 + 7 * math.cos(sine / 51))),.1) | |
8565 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
8566 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(21 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
8567 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(13 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(28 + 2 * math.cos(sine / 45))),.1) | |
8568 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1) | |
8569 | elseif ModeOfGlitch == 9999999921111 then | |
8570 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(8 - 6 * math.cos(sine / 67)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-18 - 5 * math.cos(sine / 32))),.1) | |
8571 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-15 - 8 * math.cos(sine / 74)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(31 + 8 * math.cos(sine / 38))),.1) | |
8572 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-21 - 2 * math.cos(sine / 32)),math.rad(8),math.rad(0)),.1) | |
8573 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 6 * math.cos(sine / 37)),math.rad(-14 + 5 * math.cos(sine / 58)),math.rad(0 + 2 * math.cos(sine / 53))),.1) | |
8574 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(-24 + 9 * math.cos(sine / 72)),math.rad(3 - 5 * math.cos(sine / 58)),math.rad(38 + 7 * math.cos(sine / 45))),.1) | |
8575 | LW.C0=clerp(LW.C0,cf(-0.8,0.35 + 0.025 * math.cos(sine / 45),-0.75)*angles(math.rad(160 - 2 * math.cos(sine / 66)),math.rad(5 - 8 * math.cos(sine / 59)),math.rad(87 - 3 * math.cos(sine / 45))),.1) | |
8576 | elseif ModeOfGlitch == 4367677813 then | |
8577 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 2 * math.cos(sine / 32))),.1) | |
8578 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 2 * math.cos(sine / 32))),.1) | |
8579 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(10)),.1) | |
8580 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2 * math.cos(sine / 37)),math.rad(0 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1) | |
8581 | RW.C0=clerp(RW.C0,cf(1.5,0.5 + 0.025 * math.cos(sine / 45),0)*angles(math.rad(4 + 3 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(19 + 2 * math.cos(sine / 45))),.1) | |
8582 | LW.C0=clerp(LW.C0,cf(-1.25,0.5 + 0.025 * math.cos(sine / 45),-0.15)*angles(math.rad(10 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(13 - 4 * math.cos(sine / 45))),.1) | |
8583 | elseif ModeOfGlitch == 55469696922 then | |
8584 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(19 + 8 * math.cos(sine / 62)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-20 - 3 * math.cos(sine / 34))),.1) | |
8585 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(3 - 1 * math.cos(sine / 55)),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(26 + 5 * math.cos(sine / 41))),.1) | |
8586 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(-13 - 2 * math.cos(sine / 32)),math.rad(3),math.rad(10 - 4 * math.cos(sine / 67))),.1) | |
8587 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(23 - 8 * math.cos(sine / 37)),math.rad(-21 + 2 * math.cos(sine / 58)),math.rad(-10 + 2 * math.cos(sine / 53))),.1) | |
8588 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-33 + 5 * math.cos(sine / 74)),math.rad(1 - 3 * math.cos(sine / 53)),math.rad(-33 + 14 * math.cos(sine / 45))),.1) | |
8589 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),0.45)*angles(math.rad(-23 - 3 * math.cos(sine / 73)),math.rad(2 - 1 * math.cos(sine / 55)),math.rad(35 - 8 * math.cos(sine / 51))),.1) | |
8590 | elseif ModeOfGlitch == 999999999556 then | |
8591 | RH.C0=clerp(RH.C0,cf(1,-0.4,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(-10 - 6 * math.cos(sine / 39))),.1) | |
8592 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-3),math.rad(0 - 1 * math.cos(sine / 56)),math.rad(10 + 3 * math.cos(sine / 45))),.1) | |
8593 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0 + 0.02 * math.cos(sine / 32),1 + 0.15 * math.cos(sine / 32))*angles(math.rad(0 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(17)),.1) | |
8594 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(29 - 2 * math.cos(sine / 37)),math.rad(0 + 1 * math.cos(sine / 58)),math.rad(-17 + 2 * math.cos(sine / 53))),.1) | |
8595 | RW.C0=clerp(RW.C0,cf(1,0.35 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(62 + 6 * math.cos(sine / 72)),math.rad(3 - 2 * math.cos(sine / 58)),math.rad(-82 + 2 * math.cos(sine / 45))),.1) | |
8596 | LW.C0=clerp(LW.C0,cf(-1,0.5 + 0.025 * math.cos(sine / 45),-0.5)*angles(math.rad(89 - 7 * math.cos(sine / 66)),math.rad(4 - 3 * math.cos(sine / 59)),math.rad(67 - 4 * math.cos(sine / 45))),.1) | |
8597 | end | |
8598 | end | |
8599 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
8600 | Anim="Walk" | |
8601 | if attack==false then | |
8602 | 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) | |
8603 | 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) | |
8604 | 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) | |
8605 | 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) | |
8606 | 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) | |
8607 | 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) | |
8608 | end | |
8609 | elseif torvel>=22 and hitfloor~=nil then | |
8610 | Anim="Run" | |
8611 | if attack==false then | |
8612 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8 and ModeOfGlitch ~= 1264532489 and ModeOfGlitch ~= 55469696922 and ModeOfGlitch ~= 4367677813 and ModeOfGlitch ~= 9999999921111 and ModeOfGlitch ~= 999999999556 and ModeOfGlitch ~= 8889 then | |
8613 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
8614 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.15 * math.cos(sine / 3),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
8615 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,-0.3,-0.05 + 0.15 * math.cos(sine / 3))*angles(math.rad(25 - 4 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - root.RotVelocity.Y - 1 * math.cos(sine / 6))),.1) | |
8616 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-6 + 2 * math.cos(sine / 3)),math.rad(0 + root.RotVelocity.Y*1.5),math.rad(0 - hed.RotVelocity.Y*1.5 + 1 * math.cos(sine / 6))),.1) | |
8617 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(-10),math.rad(7 + 5 * math.cos(sine / 6))),.1) | |
8618 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0.3)*angles(math.rad(-50 + 10 * math.cos(sine / 3)),math.rad(10),math.rad(-7 - 5 * math.cos(sine / 6))),.1) | |
8619 | if ModeOfGlitch == 9 then | |
8620 | -- | |
8621 | end | |
8622 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 8 or ModeOfGlitch == 1264532489 or ModeOfGlitch == 55469696922 or ModeOfGlitch == 4367677813 or ModeOfGlitch == 9999999921111 or ModeOfGlitch == 999999999556 or ModeOfGlitch == 8889 then | |
8623 | 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) | |
8624 | 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) | |
8625 | 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) | |
8626 | 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) | |
8627 | 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) | |
8628 | 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) | |
8629 | end | |
8630 | end | |
8631 | end | |
8632 | end | |
8633 | end |