SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
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,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do | |
6 | print("FE Compatibility code V2 by Mokiros") | |
7 | local RealPlayer = RealPlayer | |
8 | script.Parent = RealPlayer.Character | |
9 | ||
10 | --Fake event to make stuff like Mouse.KeyDown work | |
11 | local Disconnect_Function = function(this) | |
12 | this[1].Functions[this[2]] = nil | |
13 | end | |
14 | - | ! - Changed Chaos's "B" (Chaos Begone) to a keystroke. (ddawas) |
14 | + | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}} |
15 | local FakeEvent_Metatable = {__index={ | |
16 | Connect = function(this,f) | |
17 | local i = tostring(math.random(0,10000)) | |
18 | while this.Functions[i] do | |
19 | i = tostring(math.random(0,10000)) | |
20 | end | |
21 | this.Functions[i] = f | |
22 | - | local cam = game.Workspace.CurrentCamera |
22 | + | return setmetatable({this,i},Disconnect_Metatable) |
23 | - | local Controller = plr.PlayerScripts:WaitForChild("ControlScript") |
23 | + | end |
24 | - | Camera = cam |
24 | + | }} |
25 | - | local CamInterrupt = false |
25 | + | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect |
26 | - | local TwoD = false |
26 | + | local function fakeEvent() |
27 | - | local TargetInfo = {nil, nil} |
27 | + | return setmetatable({Functions={}},FakeEvent_Metatable) |
28 | - | cam.CameraType = "Custom" |
28 | + | end |
29 | ||
30 | --Creating fake input objects with fake variables | |
31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
37 | end} | |
38 | --Merged 2 functions into one by checking amount of arguments | |
39 | CAS.UnbindAction = CAS.BindAction | |
40 | ||
41 | --This function will trigger the events that have been :Connect()'ed | |
42 | local function TriggerEvent(self,ev,...) | |
43 | for _,f in pairs(self[ev].Functions) do | |
44 | f(...) | |
45 | end | |
46 | end | |
47 | FakeMouse.TriggerEvent = TriggerEvent | |
48 | UIS.TriggerEvent = TriggerEvent | |
49 | ||
50 | --Client communication | |
51 | local Event = Instance.new("RemoteEvent") | |
52 | Event.Name = "UserInput_Event" | |
53 | Event.OnServerEvent:Connect(function(plr,io) | |
54 | if plr~=RealPlayer then return end | |
55 | FakeMouse.Target = io.Target | |
56 | FakeMouse.Hit = io.Hit | |
57 | if not io.isMouse then | |
58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
61 | end | |
62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
64 | end | |
65 | for _,t in pairs(CAS.Actions) do | |
66 | for _,k in pairs(t.Keys) do | |
67 | if k==io.KeyCode then | |
68 | t.Function(t.Name,io.UserInputState,io) | |
69 | end | |
70 | end | |
71 | end | |
72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
74 | end | |
75 | end) | |
76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event") | |
77 | local Mouse = owner:GetMouse() | |
78 | local UIS = game:GetService("UserInputService") | |
79 | local input = function(io,RobloxHandled) | |
80 | if RobloxHandled then return end | |
81 | --Since InputObject is a client-side instance, we create and pass table instead | |
82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
83 | end | |
84 | UIS.InputBegan:Connect(input) | |
85 | UIS.InputEnded:Connect(input) | |
86 | local h,t | |
87 | --Give the server mouse data every second frame, but only if the values changed | |
88 | --If player is not moving their mouse, client won't fire events | |
89 | local HB = game:GetService("RunService").Heartbeat | |
90 | while true do | |
91 | if h~=Mouse.Hit or t~=Mouse.Target then | |
92 | h,t=Mouse.Hit,Mouse.Target | |
93 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
94 | end | |
95 | --Wait 2 frames | |
96 | for i=1,2 do | |
97 | HB:Wait() | |
98 | end | |
99 | end]==],script) | |
100 | ||
101 | ----Sandboxed game object that allows the usage of client-side methods and services | |
102 | --Real game object | |
103 | local RealGame = game | |
104 | ||
105 | --Metatable for fake service | |
106 | local FakeService_Metatable = { | |
107 | __index = function(self,k) | |
108 | local s = rawget(self,"_RealService") | |
109 | if s then | |
110 | return typeof(s[k])=="function" | |
111 | and function(_,...)return s[k](s,...)end or s[k] | |
112 | end | |
113 | end, | |
114 | __newindex = function(self,k,v) | |
115 | local s = rawget(self,"_RealService") | |
116 | if s then s[k]=v end | |
117 | end | |
118 | } | |
119 | local function FakeService(t,RealService) | |
120 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
121 | return setmetatable(t,FakeService_Metatable) | |
122 | end | |
123 | ||
124 | --Fake game object | |
125 | local FakeGame = { | |
126 | GetService = function(self,s) | |
127 | return rawget(self,s) or RealGame:GetService(s) | |
128 | end, | |
129 | Players = FakeService({ | |
130 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player) | |
131 | },"Players"), | |
132 | UserInputService = FakeService(UIS,"UserInputService"), | |
133 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
134 | RunService = FakeService({ | |
135 | _btrs = {}, | |
136 | RenderStepped = RealGame:GetService("RunService").Heartbeat, | |
137 | BindToRenderStep = function(self,name,_,fun) | |
138 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
139 | end, | |
140 | UnbindFromRenderStep = function(self,name) | |
141 | self._btrs[name]:Disconnect() | |
142 | end, | |
143 | },"RunService") | |
144 | } | |
145 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
146 | FakeGame.service = FakeGame.GetService | |
147 | FakeService(FakeGame,game) | |
148 | --Changing owner to fake player object to support owner:GetMouse() | |
149 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
150 | end | |
151 | warn'Star Glitcher Loaded.' | |
152 | warn'All purpose switcher...' | |
153 | warn'Created by Noobygames12' | |
154 | warn'Edited by Neubla_Zorua' | |
155 | warn([[Icons: | |
156 | ! = New | |
157 | ? = Spoilers | |
158 | * = Exclusivity]]) | |
159 | print([[V 3.21 (ON PROGRESS) Update Log: | |
160 | ! - Changed Judgement back to Justice | |
161 | ! - Gave Divinity an attack named Judgement. Credit to XXUNORIB | |
162 | ! - Replaced Corruption with Glitchy | |
163 | ! - Fixed some bugs, too | |
164 | ! - Changed Chaos "B" (Chaos Begone) to a keystroke. (ddawas) | |
165 | ]]) | |
166 | ||
167 | --- its obs smooth af do not touch | |
168 | ---- Sources and functions might be taken from others | |
169 | plr = game:GetService("Players").LocalPlayer | |
170 | char = plr.Character | |
171 | hum = char:FindFirstChildOfClass'Humanoid' | |
172 | t = char.Torso | |
173 | h = char.Head | |
174 | ra = char["Right Arm"] | |
175 | la = char["Left Arm"] | |
176 | rl = char["Right Leg"] | |
177 | ll = char["Left Leg"] | |
178 | tors = char.Torso | |
179 | lleg = char["Left Leg"] | |
180 | root = char.HumanoidRootPart | |
181 | hed = char.Head | |
182 | rleg = char["Right Leg"] | |
183 | rarm = char["Right Arm"] | |
184 | larm = char["Left Arm"] | |
185 | radian = math.rad | |
186 | random = math.random | |
187 | Vec3 = Vector3.new | |
188 | Inst = Instance.new | |
189 | cFrame = CFrame.new | |
190 | Euler = CFrame.fromEulerAnglesXYZ | |
191 | vt = Vector3.new | |
192 | bc = BrickColor.new | |
193 | br = BrickColor.random | |
194 | it = Instance.new | |
195 | cf = CFrame.new | |
196 | ||
197 | local ODers = {} | |
198 | ||
199 | local AllowRape = false; | |
200 | local AllowCata = false; | |
201 | ||
202 | local Booleans = { | |
203 | CamFollow = true, | |
204 | GyroUse = true | |
205 | } | |
206 | ||
207 | function lerp(object, newCFrame, alpha) | |
208 | return object:lerp(newCFrame, alpha) | |
209 | end | |
210 | ||
211 | local Directer = Inst("BodyGyro", root) | |
212 | Directer.MaxTorque = Vec3(0, 0, 0) | |
213 | Directer.P = 600000 | |
214 | local CPart = Inst("Part") | |
215 | CPart.Anchored = true | |
216 | CPart.CanCollide = false | |
217 | CPart.Locked = true | |
218 | CPart.Transparency = 1 | |
219 | ||
220 | local rainbowmode = false | |
221 | local chaosmode = false | |
222 | local glitchymode = false | |
223 | kan = Instance.new("Sound",char) | |
224 | kan.Volume = 1.25 | |
225 | kan.TimePosition = 0 | |
226 | kan.PlaybackSpeed = 1 | |
227 | kan.Pitch = 1 | |
228 | kan.SoundId = "rbxassetid://1564523997" | |
229 | kan.Name = "wrecked" | |
230 | kan.Looped = true | |
231 | kan:Play() | |
232 | ||
233 | local MID = "rbxassetid://1564523997"; | |
234 | local Pitch = 1; | |
235 | ||
236 | function newTheme(ID,timepos,pitch,vol) | |
237 | local kanz = kan | |
238 | --kanz:Stop() | |
239 | --kanz.Volume = vol | |
240 | --kanz.TimePosition = timepos | |
241 | kanz.PlaybackSpeed = pitch | |
242 | kanz.Pitch = pitch | |
243 | kanz.SoundId = ID | |
244 | kanz.Name = "wrecked" | |
245 | kanz.Looped = true | |
246 | Pitch = pitch | |
247 | MID = ID | |
248 | --kanz:Play() | |
249 | --coroutine.resume(coroutine.create(function() | |
250 | --wait(0.05) | |
251 | --end)) | |
252 | end | |
253 | ||
254 | function newThemeCust(ID,timepos,pitch,vol) | |
255 | local kanz = kan | |
256 | kanz:Stop() | |
257 | kanz.Volume = vol | |
258 | kanz.TimePosition = timepos | |
259 | kanz.PlaybackSpeed = pitch | |
260 | kanz.Pitch = pitch | |
261 | MID = ID | |
262 | kanz.SoundId = ID | |
263 | kanz.Name = "wrecked" | |
264 | kanz.Looped = true | |
265 | kanz:Play() | |
266 | coroutine.resume(coroutine.create(function() | |
267 | wait(0.05) | |
268 | end)) | |
269 | end | |
270 | ||
271 | ||
272 | ||
273 | function CameraShake(Times, Power, PlayerTarget) | |
274 | coroutine.resume(coroutine.create(function() | |
275 | FV = Instance.new("BoolValue", PlayerTarget) | |
276 | FV.Name = "CameraShake" | |
277 | for ShakeNum=1,Times do | |
278 | swait() | |
279 | local ef=Power | |
280 | if ef>=1 then | |
281 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
282 | else | |
283 | ef=Power*10 | |
284 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
285 | end | |
286 | end | |
287 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
288 | FV:Destroy() | |
289 | end)) | |
290 | end | |
291 | ||
292 | function CameraEnshaking(Length,Intensity) | |
293 | coroutine.resume(coroutine.create(function() | |
294 | local intensity = 1*Intensity | |
295 | local rotM = 0.01*Intensity | |
296 | for i = 0, Length, 0.1 do | |
297 | swait() | |
298 | intensity = intensity - 0.05*Intensity/Length | |
299 | rotM = rotM - 0.0005*Intensity/Length | |
300 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
301 | 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) | |
302 | end | |
303 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
304 | end)) | |
305 | end | |
306 | CamShake=function(Part,Distan,Power,Times) | |
307 | local de=Part.Position | |
308 | for i,v in pairs(workspace:children()) do | |
309 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
310 | for _,c in pairs(v:children()) do | |
311 | if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then | |
312 | local Noob=vFindFirstChildOfClass'Humanoid' | |
313 | if Noob~=nil then | |
314 | coroutine.resume(coroutine.create(function() | |
315 | FV = Instance.new("BoolValue", Noob) | |
316 | FV.Name = "CameraShake" | |
317 | for ShakeNum=1,Times do | |
318 | swait() | |
319 | local ef=Power | |
320 | if ef>=1 then | |
321 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef)) | |
322 | else | |
323 | ef=Power*10 | |
324 | Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10) | |
325 | end | |
326 | end | |
327 | Humanoid.CameraOffset = Vector3.new(0,0,0) | |
328 | FV:Destroy() | |
329 | end)) | |
330 | CameraShake(Times, Power, Noob) | |
331 | end | |
332 | end | |
333 | end | |
334 | end | |
335 | end | |
336 | end | |
337 | ||
338 | function chatfunc(text,color) | |
339 | local chat = coroutine.wrap(function() | |
340 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
341 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
342 | end | |
343 | local naeeym2 = Instance.new("BillboardGui",Character) | |
344 | naeeym2.Size = UDim2.new(0,100,0,40) | |
345 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
346 | naeeym2.Adornee = Character.Head | |
347 | naeeym2.Name = "TalkingBillBoard" | |
348 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
349 | tecks2.BackgroundTransparency = 1 | |
350 | tecks2.BorderSizePixel = 0 | |
351 | tecks2.Text = "" | |
352 | tecks2.Font = "SciFi" | |
353 | tecks2.TextSize = 30 | |
354 | tecks2.TextStrokeTransparency = 0 | |
355 | tecks2.TextColor3 = color | |
356 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
357 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
358 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
359 | tecks3.BackgroundTransparency = 1 | |
360 | tecks3.BorderSizePixel = 0 | |
361 | tecks3.Text = "" | |
362 | tecks3.Font = "SciFi" | |
363 | tecks3.TextSize = 30 | |
364 | tecks3.TextStrokeTransparency = 0 | |
365 | tecks3.TextColor3 = Color3.new(0,0,0) | |
366 | tecks3.TextStrokeColor3 = color | |
367 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
368 | coroutine.resume(coroutine.create(function() | |
369 | while true do | |
370 | swait(1) | |
371 | if chaosmode == true then | |
372 | tecks2.TextColor3 = BrickColor.random().Color | |
373 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
374 | end | |
375 | if(glitchymode)then | |
376 | local val = math.random(1,255) | |
377 | local color = Color3.fromRGB(val,val,val) | |
378 | tecks2.TextColor3 = color | |
379 | tecks3.TextStrokeColor3 = color | |
380 | end | |
381 | tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
382 | tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5)) | |
383 | tecks2.Rotation = math.random(-5,5) | |
384 | tecks3.Rotation = math.random(-5,5) | |
385 | end | |
386 | end)) | |
387 | for i = 1,string.len(text),1 do | |
388 | CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115) | |
389 | tecks2.Text = string.sub(text,1,i) | |
390 | tecks3.Text = string.sub(text,1,i) | |
391 | swait(1) | |
392 | end | |
393 | wait(1) | |
394 | local randomrot = math.random(1,2) | |
395 | if randomrot == 1 then | |
396 | for i = 1, 50 do | |
397 | swait() | |
398 | tecks2.Rotation = tecks2.Rotation - .75 | |
399 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
400 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
401 | tecks3.Rotation = tecks2.Rotation + .75 | |
402 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
403 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
404 | end | |
405 | elseif randomrot == 2 then | |
406 | for i = 1, 50 do | |
407 | swait() | |
408 | tecks2.Rotation = tecks2.Rotation + .75 | |
409 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
410 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
411 | tecks3.Rotation = tecks2.Rotation - .75 | |
412 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
413 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
414 | end | |
415 | end | |
416 | naeeym2:Destroy() | |
417 | end) | |
418 | chat() | |
419 | end | |
420 | ||
421 | ||
422 | local Create = LoadLibrary("RbxUtility").Create | |
423 | ||
424 | CFuncs = { | |
425 | ["Part"] = { | |
426 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
427 | local Part = Create("Part"){ | |
428 | Parent = Parent, | |
429 | Reflectance = Reflectance, | |
430 | Transparency = Transparency, | |
431 | CanCollide = false, | |
432 | Locked = true, | |
433 | BrickColor = BrickColor.new(tostring(BColor)), | |
434 | Name = Name, | |
435 | Size = Size, | |
436 | Material = Material, | |
437 | } | |
438 | RemoveOutlines(Part) | |
439 | return Part | |
440 | end; | |
441 | }; | |
442 | ||
443 | ["Mesh"] = { | |
444 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
445 | local Msh = Create(Mesh){ | |
446 | Parent = Part, | |
447 | Offset = OffSet, | |
448 | Scale = Scale, | |
449 | } | |
450 | if Mesh == "SpecialMesh" then | |
451 | Msh.MeshType = MeshType | |
452 | Msh.MeshId = MeshId | |
453 | end | |
454 | return Msh | |
455 | end; | |
456 | }; | |
457 | ||
458 | ["Mesh"] = { | |
459 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
460 | local Msh = Create(Mesh){ | |
461 | Parent = Part, | |
462 | Offset = OffSet, | |
463 | Scale = Scale, | |
464 | } | |
465 | if Mesh == "SpecialMesh" then | |
466 | Msh.MeshType = MeshType | |
467 | Msh.MeshId = MeshId | |
468 | end | |
469 | return Msh | |
470 | end; | |
471 | }; | |
472 | ||
473 | ["Weld"] = { | |
474 | Create = function(Parent, Part0, Part1, C0, C1) | |
475 | local Weld = Create("Weld"){ | |
476 | Parent = Parent, | |
477 | Part0 = Part0, | |
478 | Part1 = Part1, | |
479 | C0 = C0, | |
480 | C1 = C1, | |
481 | } | |
482 | return Weld | |
483 | end; | |
484 | }; | |
485 | ||
486 | ["Sound"] = { | |
487 | Create = function(id, par, vol, pit) | |
488 | return coroutine.wrap(function() | |
489 | local S = Create("Sound"){ | |
490 | Volume = vol, | |
491 | Name = "EffectSoundo", | |
492 | Pitch = pit or 1, | |
493 | SoundId = id, | |
494 | Parent = par or workspace, | |
495 | } | |
496 | S:Play() | |
497 | S.Ended:connect(function() | |
498 | S:Destroy() | |
499 | end) | |
500 | return S; | |
501 | end)() | |
502 | end; | |
503 | }; | |
504 | ||
505 | ["LongSound"] = { | |
506 | Create = function(id, par, vol, pit) | |
507 | coroutine.resume(coroutine.create(function() | |
508 | local S = Create("Sound"){ | |
509 | Volume = vol, | |
510 | Pitch = pit or 1, | |
511 | SoundId = id, | |
512 | Parent = par or workspace, | |
513 | } | |
514 | wait() | |
515 | S:play() | |
516 | game:GetService("Debris"):AddItem(S, 30) | |
517 | end)) | |
518 | end; | |
519 | }; | |
520 | ||
521 | ["ParticleEmitter"] = { | |
522 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
523 | local fp = Create("ParticleEmitter"){ | |
524 | Parent = Parent, | |
525 | Color = ColorSequence.new(Color1, Color2), | |
526 | LightEmission = LightEmission, | |
527 | Size = Size, | |
528 | Texture = Texture, | |
529 | Transparency = Transparency, | |
530 | ZOffset = ZOffset, | |
531 | Acceleration = Accel, | |
532 | Drag = Drag, | |
533 | LockedToPart = LockedToPart, | |
534 | VelocityInheritance = VelocityInheritance, | |
535 | EmissionDirection = EmissionDirection, | |
536 | Enabled = Enabled, | |
537 | Lifetime = LifeTime, | |
538 | Rate = Rate, | |
539 | Rotation = Rotation, | |
540 | RotSpeed = RotSpeed, | |
541 | Speed = Speed, | |
542 | VelocitySpread = VelocitySpread, | |
543 | } | |
544 | return fp | |
545 | end; | |
546 | }; | |
547 | ||
548 | CreateTemplate = { | |
549 | ||
550 | }; | |
551 | } | |
552 | ||
553 | ||
554 | ||
555 | New = function(Object, Parent, Name, Data) | |
556 | local Object = Instance.new(Object) | |
557 | for Index, Value in pairs(Data or {}) do | |
558 | Object[Index] = Value | |
559 | end | |
560 | Object.Parent = Parent | |
561 | Object.Name = Name | |
562 | return Object | |
563 | end | |
564 | local halocolor = BrickColor.new("Pastel light blue") | |
565 | local halocolor2 = BrickColor.new("Cool yellow") | |
566 | local starcolor = BrickColor.new("Bright yellow") | |
567 | local lunacolor = BrickColor.new("Navy blue") | |
568 | local lunacolor2 = BrickColor.new("Bright blue") | |
569 | local wepcolor = BrickColor.new("Really black") | |
570 | local maincolor = BrickColor.new("Really black") | |
571 | local m = Instance.new("Model",char) | |
572 | local m2 = Instance.new("Model",char) | |
573 | local m3 = Instance.new("Model",char) | |
574 | local mw1 = Instance.new("Model",char) | |
575 | local mw2 = Instance.new("Model",char) | |
576 | ||
577 | local extrawingmod1 = Instance.new("Model",char) | |
578 | local extrawingmod2 = Instance.new("Model",char) | |
579 | ||
580 | function CreateParta(parent,transparency,reflectance,material,brickcolor) | |
581 | local p = Instance.new("Part") | |
582 | p.TopSurface = 0 | |
583 | p.BottomSurface = 0 | |
584 | p.Parent = parent | |
585 | p.Size = Vector3.new(0.1,0.1,0.1) | |
586 | p.Transparency = transparency | |
587 | p.Reflectance = reflectance | |
588 | p.CanCollide = false | |
589 | p.Locked = true | |
590 | p.BrickColor = brickcolor | |
591 | p.Material = material | |
592 | return p | |
593 | end | |
594 | ||
595 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
596 | local mesh = Instance.new("SpecialMesh",parent) | |
597 | mesh.MeshType = meshtype | |
598 | mesh.Scale = Vector3.new(x1*10,y1*10,z1*10) | |
599 | return mesh | |
600 | end | |
601 | ||
602 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
603 | local mesh = Instance.new("SpecialMesh",parent) | |
604 | mesh.MeshType = "FileMesh" | |
605 | mesh.MeshId = meshid | |
606 | mesh.Scale = Vector3.new(x1,y1,z1) | |
607 | return mesh | |
608 | end | |
609 | ||
610 | ||
611 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
612 | local mesh = Instance.new("SpecialMesh",parent) | |
613 | mesh.MeshType = "FileMesh" | |
614 | mesh.MeshId = meshid | |
615 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
616 | mesh.Scale = Vector3.new(x1,y1,z1) | |
617 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
618 | return mesh | |
619 | end | |
620 | ||
621 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
622 | local weld = Instance.new("Weld") | |
623 | weld.Parent = parent | |
624 | weld.Part0 = part0 | |
625 | weld.Part1 = part1 | |
626 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
627 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
628 | return weld | |
629 | end | |
630 | ||
631 | local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
632 | CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
633 | local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
634 | CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
635 | ||
636 | local handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
637 | CreateMesh(handle,"Brick",0,0,0) | |
638 | local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
639 | local valuaring = 10 | |
640 | for i = 0, 49 do | |
641 | valuaring = valuaring + 10 | |
642 | rn = CreateParta(mw2,0,0,"Neon",halocolor) | |
643 | CreateMesh(rn,"Brick",0.25,0.1,0.1) | |
644 | CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
645 | end | |
646 | ||
647 | handlex = CreateParta(mw2,1,1,"Neon",maincolor) | |
648 | CreateMesh(handle,"Brick",0,0,0) | |
649 | CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
650 | local valuaring = 10 | |
651 | for i = 0, 49 do | |
652 | valuaring = valuaring + 10 | |
653 | rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
654 | CreateMesh(rn,"Brick",0.5,0.2,0.2) | |
655 | CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
656 | end | |
657 | ||
658 | ||
659 | local handle = CreateParta(m,1,1,"Neon",maincolor) | |
660 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
661 | local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
662 | ||
663 | --- Left wing. | |
664 | ||
665 | local lwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
666 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
667 | local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
668 | ||
669 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
670 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
671 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
672 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
673 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
674 | CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
675 | A0 = Instance.new('Attachment',wed) | |
676 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
677 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
678 | CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
679 | A1 = Instance.new('Attachment',wed) | |
680 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
681 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
682 | CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
683 | ||
684 | tl1 = Instance.new('Trail',wed) | |
685 | tl1.Attachment0 = A0 | |
686 | tl1.Attachment1 = A1 | |
687 | --tl1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
688 | tl1.LightEmission = 1 | |
689 | tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
690 | tl1.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
691 | tl1.Lifetime = 0.6 | |
692 | ||
693 | ||
694 | local lwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
695 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
696 | local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
697 | ||
698 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
699 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
700 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
701 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
702 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
703 | CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
704 | A0 = Instance.new('Attachment',wed) | |
705 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
706 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
707 | CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
708 | A1 = Instance.new('Attachment',wed) | |
709 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
710 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
711 | CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
712 | ||
713 | tl2 = Instance.new('Trail',wed) | |
714 | tl2.Attachment0 = A0 | |
715 | tl2.Attachment1 = A1 | |
716 | --tl2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
717 | tl2.LightEmission = 1 | |
718 | tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
719 | tl2.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
720 | tl2.Lifetime = 0.6 | |
721 | ||
722 | local lwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
723 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
724 | local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
725 | ||
726 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
727 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
728 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
729 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
730 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
731 | CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
732 | A0 = Instance.new('Attachment',wed) | |
733 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
734 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
735 | CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
736 | A1 = Instance.new('Attachment',wed) | |
737 | wed = CreateParta(mw1,0,0,"Neon",halocolor) | |
738 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
739 | CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
740 | ||
741 | tl3 = Instance.new('Trail',wed) | |
742 | tl3.Attachment0 = A0 | |
743 | tl3.Attachment1 = A1 | |
744 | --tl3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
745 | tl3.LightEmission = 1 | |
746 | tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
747 | tl3.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
748 | tl3.Lifetime = 0.6 | |
749 | ||
750 | tl1.Enabled = false | |
751 | tl2.Enabled = false | |
752 | tl3.Enabled = false | |
753 | local lwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
754 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
755 | local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
756 | ||
757 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
758 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
759 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
760 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
761 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
762 | CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
763 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
764 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
765 | CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
766 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
767 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
768 | CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
769 | ||
770 | local lwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
771 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
772 | local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
773 | ||
774 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
775 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
776 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
777 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
778 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
779 | CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
780 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
781 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
782 | CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
783 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
784 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
785 | CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
786 | ||
787 | local lwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
788 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
789 | local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
790 | ||
791 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
792 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
793 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
794 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
795 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
796 | CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
797 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
798 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
799 | CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
800 | wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor) | |
801 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
802 | CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
803 | ||
804 | -- Right wing. | |
805 | ||
806 | local rwing1 = CreateParta(m,1,1,"Neon",maincolor) | |
807 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
808 | local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
809 | ||
810 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
811 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
812 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
813 | A0 = Instance.new('Attachment',wed) | |
814 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
815 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
816 | CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
817 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
818 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
819 | CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
820 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
821 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
822 | CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
823 | A1 = Instance.new('Attachment',wed) | |
824 | ||
825 | tr1 = Instance.new('Trail',wed) | |
826 | tr1.Attachment0 = A0 | |
827 | tr1.Attachment1 = A1 | |
828 | --tr1.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
829 | tr1.LightEmission = 1 | |
830 | tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
831 | tr1.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
832 | tr1.Lifetime = 0.6 | |
833 | ||
834 | local rwing2 = CreateParta(m,1,1,"Neon",maincolor) | |
835 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
836 | local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
837 | ||
838 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
839 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
840 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
841 | A0 = Instance.new('Attachment',wed) | |
842 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
843 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
844 | CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
845 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
846 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
847 | CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
848 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
849 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
850 | CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
851 | A1 = Instance.new('Attachment',wed) | |
852 | ||
853 | tr2 = Instance.new('Trail',wed) | |
854 | tr2.Attachment0 = A0 | |
855 | tr2.Attachment1 = A1 | |
856 | --tr2.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
857 | tr2.LightEmission = 1 | |
858 | tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
859 | tr2.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
860 | tr2.Lifetime = 0.6 | |
861 | ||
862 | local rwing3 = CreateParta(m,1,1,"Neon",maincolor) | |
863 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
864 | local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
865 | ||
866 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
867 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
868 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
869 | A0 = Instance.new('Attachment',wed) | |
870 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
871 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
872 | CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
873 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
874 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
875 | CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
876 | wed = CreateParta(mw2,0,0,"Neon",halocolor) | |
877 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
878 | CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
879 | A1 = Instance.new('Attachment',wed) | |
880 | ||
881 | tr3 = Instance.new('Trail',wed) | |
882 | tr3.Attachment0 = A0 | |
883 | tr3.Attachment1 = A1 | |
884 | --tr3.Texture = "http://www.roblox.com/asset/?id=1049219073" | |
885 | tr3.LightEmission = 1 | |
886 | tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
887 | tr3.Color = ColorSequence.new(BrickColor.new('Black').Color) | |
888 | tr3.Lifetime = 0.6 | |
889 | ||
890 | ||
891 | local rwing4 = CreateParta(m,1,1,"Neon",maincolor) | |
892 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
893 | local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
894 | ||
895 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
896 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
897 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
898 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
899 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
900 | CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
901 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
902 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
903 | CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
904 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
905 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
906 | CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
907 | ||
908 | local rwing5 = CreateParta(m,1,1,"Neon",maincolor) | |
909 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
910 | local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
911 | ||
912 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
913 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
914 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
915 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
916 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
917 | CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
918 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
919 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
920 | CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
921 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
922 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
923 | CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
924 | ||
925 | local rwing6 = CreateParta(m,1,1,"Neon",maincolor) | |
926 | CreateMesh(handle,"Brick",0.5,0.5,0.5) | |
927 | local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
928 | ||
929 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
930 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
931 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
932 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
933 | CreateMesh(wed,"Wedge",0.05,0.5,0.5) | |
934 | CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
935 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
936 | CreateMesh(wed,"Wedge",0.05,0.5,3) | |
937 | CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
938 | wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor) | |
939 | CreateMesh(wed,"Wedge",0.05,3,0.5) | |
940 | CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
941 | ||
942 | ---- HERES THE RING | |
943 | ||
944 | ||
945 | --[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
946 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
947 | CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
948 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
949 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
950 | CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
951 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
952 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
953 | CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
954 | ||
955 | ||
956 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
957 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
958 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
959 | ||
960 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
961 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
962 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
963 | ||
964 | ||
965 | ||
966 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
967 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
968 | CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
969 | ||
970 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
971 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
972 | CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
973 | ||
974 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
975 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
976 | CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
977 | ||
978 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
979 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
980 | CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
981 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
982 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
983 | CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
984 | ||
985 | -- S section A | |
986 | ||
987 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
988 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
989 | CreateWeld(dotsec,larm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
990 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
991 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
992 | CreateWeld(dotseca,larm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
993 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
994 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
995 | CreateWeld(dotsecb,larm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
996 | ||
997 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
998 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
999 | CreateWeld(dotsec,larm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1000 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1001 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1002 | CreateWeld(dotseca,larm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1003 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1004 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1005 | CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1006 | ||
1007 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1008 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1009 | CreateWeld(dotsec,larm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1010 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1011 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1012 | CreateWeld(dotseca,larm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1013 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1014 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1015 | CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1016 | ||
1017 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1018 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1019 | CreateWeld(dotsec,larm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1020 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1021 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1022 | CreateWeld(dotseca,larm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1023 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1024 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1025 | CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1026 | ||
1027 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1028 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1029 | CreateWeld(dotsec,larm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1030 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1031 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1032 | CreateWeld(dotseca,larm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1033 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1034 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1035 | CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1036 | ||
1037 | -- S section B | |
1038 | ||
1039 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1040 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1041 | CreateWeld(dotsec,larm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1042 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1043 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1044 | CreateWeld(dotseca,larm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1045 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1046 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1047 | CreateWeld(dotsecb,larm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1048 | ||
1049 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1050 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1051 | CreateWeld(dotsec,larm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1052 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1053 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1054 | CreateWeld(dotseca,larm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1055 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1056 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1057 | CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1058 | ||
1059 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1060 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1061 | CreateWeld(dotsec,larm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1062 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1063 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1064 | CreateWeld(dotseca,larm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1065 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1066 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1067 | CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1068 | ||
1069 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1070 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1071 | CreateWeld(dotsec,larm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1072 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1073 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1074 | CreateWeld(dotseca,larm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1075 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1076 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1077 | CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1078 | ||
1079 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1080 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1081 | CreateWeld(dotsec,larm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1082 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1083 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1084 | CreateWeld(dotseca,larm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1085 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1086 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1087 | CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1088 | ||
1089 | --- second ring | |
1090 | ||
1091 | ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor) | |
1092 | CreateMesh(ran,"Wedge",1.02,1.02,1.02) | |
1093 | 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)) | |
1094 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1095 | CreateMesh(ran,"Wedge",0.9,0.9,1.025) | |
1096 | 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)) | |
1097 | ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1098 | CreateMesh(ran,"Wedge",1.025,0.9,0.9) | |
1099 | 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)) | |
1100 | ||
1101 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1102 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1103 | 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)) | |
1104 | ||
1105 | gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1106 | CreateMesh(gan,"Brick",1.075,0.1,1.075) | |
1107 | 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)) | |
1108 | ||
1109 | ||
1110 | ||
1111 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1112 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1113 | 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)) | |
1114 | ||
1115 | gan = CreateParta(m2,0,0,"Neon",halocolor2) | |
1116 | CreateMesh(gan,"Brick",1.095,0.035,1.095) | |
1117 | 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)) | |
1118 | ||
1119 | gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2) | |
1120 | CreateMesh(gane,"Brick",1.0625,0.2,1.0625) | |
1121 | 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)) | |
1122 | ||
1123 | star = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1124 | CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5) | |
1125 | 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)) | |
1126 | starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor) | |
1127 | CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95) | |
1128 | 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)) | |
1129 | ||
1130 | -- S section A | |
1131 | ||
1132 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1133 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1134 | CreateWeld(dotsec,rarm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1135 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1136 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1137 | CreateWeld(dotseca,rarm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1138 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1139 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1140 | CreateWeld(dotsecb,rarm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1141 | ||
1142 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1143 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1144 | CreateWeld(dotsec,rarm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1145 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1146 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1147 | CreateWeld(dotseca,rarm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1148 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1149 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1150 | CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1151 | ||
1152 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1153 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1154 | CreateWeld(dotsec,rarm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1155 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1156 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1157 | CreateWeld(dotseca,rarm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1158 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1159 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1160 | CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1161 | ||
1162 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1163 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1164 | CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1165 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1166 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1167 | CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1168 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1169 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1170 | CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1171 | ||
1172 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1173 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1174 | CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1175 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1176 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1177 | CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1178 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1179 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1180 | CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1181 | ||
1182 | -- S section B | |
1183 | ||
1184 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1185 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1186 | CreateWeld(dotsec,rarm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1187 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1188 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1189 | CreateWeld(dotseca,rarm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1190 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1191 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1192 | CreateWeld(dotsecb,rarm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1193 | ||
1194 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1195 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1196 | CreateWeld(dotsec,rarm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1197 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1198 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1199 | CreateWeld(dotseca,rarm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1200 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1201 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1202 | CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1203 | ||
1204 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1205 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1206 | CreateWeld(dotsec,rarm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1207 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1208 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1209 | CreateWeld(dotseca,rarm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1210 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1211 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1212 | CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1213 | ||
1214 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1215 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1216 | CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1217 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1218 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1219 | CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1220 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1221 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1222 | CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1223 | ||
1224 | dotsec = CreateParta(m3,0,0,"Neon",halocolor) | |
1225 | CreateMesh(dotsec,"Sphere",0.1,0.1,0.15) | |
1226 | CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1227 | dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor) | |
1228 | CreateMesh(dotseca,"Sphere",0.2,0.2,0.1) | |
1229 | CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
1230 | dotsecb = CreateParta(m2,0,0,"SmoothPlastic",lunacolor) | |
1231 | CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125) | |
1232 | CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]-- | |
1233 | ||
1234 | ||
1235 | for i, v in pairs(m:GetChildren()) do | |
1236 | if v:IsA("Part") then | |
1237 | v.BrickColor = BrickColor.new("Really black") | |
1238 | v.Material = "Glass" | |
1239 | end | |
1240 | end | |
1241 | for i, v in pairs(m2:GetChildren()) do | |
1242 | if v:IsA("Part") then | |
1243 | v.BrickColor = BrickColor.new("Dark stone grey") | |
1244 | v.Material = "Granite" | |
1245 | end | |
1246 | end | |
1247 | for i, v in pairs(m3:GetChildren()) do | |
1248 | if v:IsA("Part") then | |
1249 | v.BrickColor = BrickColor.new("Really black") | |
1250 | v.Material = "Neon" | |
1251 | end | |
1252 | end | |
1253 | for i, v in pairs(mw2:GetChildren()) do | |
1254 | if v:IsA("Part") then | |
1255 | v.BrickColor = BrickColor.new("Really black") | |
1256 | v.Material = "Neon" | |
1257 | end | |
1258 | end | |
1259 | for i, v in pairs(mw1:GetChildren()) do | |
1260 | if v:IsA("Part") then | |
1261 | v.Transparency = 1 | |
1262 | v.BrickColor = BrickColor.new("Really black") | |
1263 | v.Material = "Neon" | |
1264 | end | |
1265 | end | |
1266 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
1267 | if v:IsA("Part") then | |
1268 | v.Transparency = 1 | |
1269 | v.BrickColor = BrickColor.new("White") | |
1270 | v.Material = "Neon" | |
1271 | end | |
1272 | end | |
1273 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
1274 | if v:IsA("Part") then | |
1275 | v.Transparency = 1 | |
1276 | v.BrickColor = BrickColor.new("White") | |
1277 | v.Material = "Neon" | |
1278 | end | |
1279 | end | |
1280 | local MAINRUINCOLOR = BrickColor.new("Really black") | |
1281 | ------ | |
1282 | ||
1283 | ||
1284 | function RemoveOutlines(part) | |
1285 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1286 | end | |
1287 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1288 | local Part = Create("Part")({ | |
1289 | Parent = Parent, | |
1290 | Reflectance = Reflectance, | |
1291 | Transparency = Transparency, | |
1292 | CanCollide = false, | |
1293 | Locked = true, | |
1294 | BrickColor = BrickColor.new(tostring(BColor)), | |
1295 | Name = Name, | |
1296 | Size = Size, | |
1297 | Material = Material | |
1298 | }) | |
1299 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1300 | RemoveOutlines(Part) | |
1301 | return Part | |
1302 | end | |
1303 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1304 | local Msh = Create(Mesh)({ | |
1305 | Parent = Part, | |
1306 | Offset = OffSet, | |
1307 | Scale = Scale | |
1308 | }) | |
1309 | if Mesh == "SpecialMesh" then | |
1310 | Msh.MeshType = MeshType | |
1311 | Msh.MeshId = MeshId | |
1312 | end | |
1313 | return Msh | |
1314 | end | |
1315 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
1316 | local Weld = Create("Weld")({ | |
1317 | Parent = Parent, | |
1318 | Part0 = Part0, | |
1319 | Part1 = Part1, | |
1320 | C0 = C0, | |
1321 | C1 = C1 | |
1322 | }) | |
1323 | return Weld | |
1324 | end | |
1325 | ||
1326 | Player=game:GetService("Players").LocalPlayer | |
1327 | Character=Player.Character | |
1328 | PlayerGui=Player.PlayerGui | |
1329 | Backpack=Player.Backpack | |
1330 | Torso=Character.Torso | |
1331 | Head=Character.Head | |
1332 | Humanoid=Character:FindFirstChildOfClass'Humanoid' | |
1333 | m=Instance.new('Model',Character) | |
1334 | LeftArm=Character["Left Arm"] | |
1335 | LeftLeg=Character["Left Leg"] | |
1336 | RightArm=Character["Right Arm"] | |
1337 | RightLeg=Character["Right Leg"] | |
1338 | LS=Torso["Left Shoulder"] | |
1339 | LH=Torso["Left Hip"] | |
1340 | RS=Torso["Right Shoulder"] | |
1341 | RH=Torso["Right Hip"] | |
1342 | Face = Head.face | |
1343 | Neck=Torso.Neck | |
1344 | it=Instance.new | |
1345 | attacktype=1 | |
1346 | vt=Vector3.new | |
1347 | cf=CFrame.new | |
1348 | euler=CFrame.fromEulerAnglesXYZ | |
1349 | angles=CFrame.Angles | |
1350 | cloaked=false | |
1351 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1352 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
1353 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
1354 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
1355 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
1356 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
1357 | RootPart=Character.HumanoidRootPart | |
1358 | RootJoint=RootPart.RootJoint | |
1359 | RootCF=euler(-1.57,0,3.14) | |
1360 | attack = false | |
1361 | attackdebounce = false | |
1362 | deb=false | |
1363 | equipped=true | |
1364 | hand=false | |
1365 | MMouse=nil | |
1366 | combo=0 | |
1367 | mana=0 | |
1368 | trispeed=.2 | |
1369 | attackmode='none' | |
1370 | local idle=0 | |
1371 | local Anim="Idle" | |
1372 | local Effects={} | |
1373 | local gun=false | |
1374 | local shoot=false | |
1375 | local sine = 0 | |
1376 | local change = 1 | |
1377 | player=nil | |
1378 | pcall(function()char.LeftWing:destroy()end) | |
1379 | pcall(function()char.Halo:destroy()end) | |
1380 | local toggleTag = true | |
1381 | local txt = Instance.new("BillboardGui", Head) | |
1382 | txt.Adornee = nil | |
1383 | txt.Name = "NameDetect" | |
1384 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
1385 | txt.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
1386 | local text = Instance.new("TextLabel", txt) | |
1387 | text.Size = UDim2.new(10/2, 0, 7/2, 0) | |
1388 | text.FontSize = "Size8" | |
1389 | text.TextScaled = true | |
1390 | text.TextTransparency = 0 | |
1391 | text.BackgroundTransparency = 1 | |
1392 | text.TextTransparency = 0 | |
1393 | text.TextStrokeTransparency = 0 | |
1394 | text.Font = "Fantasy" | |
1395 | text.TextStrokeColor3 = Color3.new(1,1,1) | |
1396 | text.TextColor3 = Color3.new(0,0,0) | |
1397 | text.Text = "Solitude" | |
1398 | ||
1399 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Really red' end) | |
1400 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Really red' end) | |
1401 | ||
1402 | function RecolorTextAndRename(name,col1,col2) | |
1403 | text.TextStrokeColor3 = col2 | |
1404 | text.TextColor3 = col1 | |
1405 | text.Text = name | |
1406 | end | |
1407 | mouse=Player:GetMouse() | |
1408 | --save shoulders | |
1409 | RSH, LSH=nil, nil | |
1410 | --welds | |
1411 | RW, LW=Instance.new("Weld"), Instance.new("Weld") | |
1412 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
1413 | LH=Torso["Left Hip"] | |
1414 | RH=Torso["Right Hip"] | |
1415 | TorsoColor=Torso.BrickColor | |
1416 | function NoOutline(Part) | |
1417 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
1418 | end | |
1419 | player=Player | |
1420 | ch=Character | |
1421 | RSH=ch.Torso["Right Shoulder"] | |
1422 | LSH=ch.Torso["Left Shoulder"] | |
1423 | -- | |
1424 | RSH.Parent=nil | |
1425 | LSH.Parent=nil | |
1426 | -- | |
1427 | RW.Name="Right Shoulder" | |
1428 | RW.Part0=ch.Torso | |
1429 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
1430 | RW.C1=cf(0, 0.5, 0) | |
1431 | RW.Part1=ch["Right Arm"] | |
1432 | RW.Parent=ch.Torso | |
1433 | -- | |
1434 | LW.Name="Left Shoulder" | |
1435 | LW.Part0=ch.Torso | |
1436 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
1437 | LW.C1=cf(0, 0.5, 0) | |
1438 | LW.Part1=ch["Left Arm"] | |
1439 | LW.Parent=ch.Torso | |
1440 | ||
1441 | local Stats=Instance.new("BoolValue") | |
1442 | Stats.Name="Stats" | |
1443 | Stats.Parent=Character | |
1444 | local Atk=Instance.new("NumberValue") | |
1445 | Atk.Name="Damage" | |
1446 | Atk.Parent=Stats | |
1447 | Atk.Value=1 | |
1448 | local Def=Instance.new("NumberValue") | |
1449 | Def.Name="Defense" | |
1450 | Def.Parent=Stats | |
1451 | Def.Value=1 | |
1452 | local Speed=Instance.new("NumberValue") | |
1453 | Speed.Name="Speed" | |
1454 | Speed.Parent=Stats | |
1455 | Speed.Value=1 | |
1456 | local Mvmt=Instance.new("NumberValue") | |
1457 | Mvmt.Name="Movement" | |
1458 | Mvmt.Parent=Stats | |
1459 | Mvmt.Value=1 | |
1460 | ||
1461 | local donum=0 | |
1462 | ||
1463 | ||
1464 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
1465 | local fp=it("Part") | |
1466 | fp.formFactor=formfactor | |
1467 | fp.Parent=parent | |
1468 | fp.Reflectance=reflectance | |
1469 | fp.Transparency=transparency | |
1470 | fp.CanCollide=false | |
1471 | fp.Locked=true | |
1472 | fp.BrickColor=brickcolor | |
1473 | fp.Name=name | |
1474 | fp.Size=size | |
1475 | fp.Position=Torso.Position | |
1476 | NoOutline(fp) | |
1477 | fp.Material="SmoothPlastic" | |
1478 | fp:BreakJoints() | |
1479 | return fp | |
1480 | end | |
1481 | ||
1482 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
1483 | local mesh=it(Mesh) | |
1484 | mesh.Parent=part | |
1485 | if Mesh=="SpecialMesh" then | |
1486 | mesh.MeshType=meshtype | |
1487 | if meshid~="nil" then | |
1488 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
1489 | end | |
1490 | end | |
1491 | mesh.Offset=offset | |
1492 | mesh.Scale=scale | |
1493 | return mesh | |
1494 | end | |
1495 | ||
1496 | function weld(parent,part0,part1,c0) | |
1497 | local weld=it("Weld") | |
1498 | weld.Parent=parent | |
1499 | weld.Part0=part0 | |
1500 | weld.Part1=part1 | |
1501 | weld.C0=c0 | |
1502 | return weld | |
1503 | end | |
1504 | ||
1505 | local Color1=Torso.BrickColor | |
1506 | ||
1507 | local bodvel=Instance.new("BodyVelocity") | |
1508 | local bg=Instance.new("BodyGyro") | |
1509 | ||
1510 | --// Artificial HB \\-- | |
1511 | ||
1512 | local ArtificialHB = Instance.new("BindableEvent", script) | |
1513 | ArtificialHB.Name = "Heartbeat" | |
1514 | ||
1515 | script:WaitForChild("Heartbeat") | |
1516 | ||
1517 | local tf = 0 | |
1518 | local allowframeloss = false | |
1519 | local tossremainder = false | |
1520 | local lastframe = tick() | |
1521 | local frame = 1/60 | |
1522 | ArtificialHB:Fire() | |
1523 | ||
1524 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
1525 | tf = tf + s | |
1526 | if tf >= frame then | |
1527 | if allowframeloss then | |
1528 | script.Heartbeat:Fire() | |
1529 | lastframe = tick() | |
1530 | else | |
1531 | for i = 1, math.floor(tf / frame) do | |
1532 | ArtificialHB:Fire() | |
1533 | end | |
1534 | lastframe = tick() | |
1535 | end | |
1536 | if tossremainder then | |
1537 | tf = 0 | |
1538 | else | |
1539 | tf = tf - frame * math.floor(tf / frame) | |
1540 | end | |
1541 | end | |
1542 | end) | |
1543 | ||
1544 | function swait(num) | |
1545 | if num == 0 or num == nil then | |
1546 | ArtificialHB.Event:wait() | |
1547 | else | |
1548 | for i = 0, num do | |
1549 | ArtificialHB.Event:wait() | |
1550 | end | |
1551 | end | |
1552 | end | |
1553 | ||
1554 | -------- RAINBOW LEAVE IT TO ME | |
1555 | local r = 255 | |
1556 | local g = 0 | |
1557 | local b = 0 | |
1558 | coroutine.resume(coroutine.create(function() | |
1559 | while wait() do | |
1560 | for i = 0, 254/5 do | |
1561 | swait() | |
1562 | g = g + 5 | |
1563 | end | |
1564 | for i = 0, 254/5 do | |
1565 | swait() | |
1566 | r = r - 5 | |
1567 | end | |
1568 | for i = 0, 254/5 do | |
1569 | swait() | |
1570 | b = b + 5 | |
1571 | end | |
1572 | for i = 0, 254/5 do | |
1573 | swait() | |
1574 | g = g - 5 | |
1575 | end | |
1576 | for i = 0, 254/5 do | |
1577 | swait() | |
1578 | r = r + 5 | |
1579 | end | |
1580 | for i = 0, 254/5 do | |
1581 | swait() | |
1582 | b = b - 5 | |
1583 | end | |
1584 | end | |
1585 | end)) | |
1586 | ||
1587 | ||
1588 | so = function(id,par,vol,pit) | |
1589 | coroutine.resume(coroutine.create(function() | |
1590 | local sou = Instance.new("Sound",par or workspace) | |
1591 | sou.Volume=vol | |
1592 | sou.Pitch=pit or 1 | |
1593 | sou.SoundId=id | |
1594 | swait() | |
1595 | sou:play() | |
1596 | game:GetService("Debris"):AddItem(sou,6) | |
1597 | end)) | |
1598 | end | |
1599 | ||
1600 | function clerp(a,b,t) | |
1601 | return a:lerp(b,t) | |
1602 | end | |
1603 | ||
1604 | local function CFrameFromTopBack(at, top, back) | |
1605 | local right = top:Cross(back) | |
1606 | return CFrame.new(at.x, at.y, at.z, | |
1607 | right.x, top.x, back.x, | |
1608 | right.y, top.y, back.y, | |
1609 | right.z, top.z, back.z) | |
1610 | end | |
1611 | ||
1612 | function Triangle(a, b, c) | |
1613 | local edg1 = (c-a):Dot((b-a).unit) | |
1614 | local edg2 = (a-b):Dot((c-b).unit) | |
1615 | local edg3 = (b-c):Dot((a-c).unit) | |
1616 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
1617 | a, b, c = a, b, c | |
1618 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
1619 | a, b, c = b, c, a | |
1620 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
1621 | a, b, c = c, a, b | |
1622 | else | |
1623 | assert(false, "unreachable") | |
1624 | end | |
1625 | ||
1626 | local len1 = (c-a):Dot((b-a).unit) | |
1627 | local len2 = (b-a).magnitude - len1 | |
1628 | local width = (a + (b-a).unit*len1 - c).magnitude | |
1629 | ||
1630 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
1631 | ||
1632 | local list = {} | |
1633 | ||
1634 | if len1 > 0.01 then | |
1635 | local w1 = Instance.new('WedgePart', m) | |
1636 | game:GetService("Debris"):AddItem(w1,5) | |
1637 | w1.Material = "SmoothPlastic" | |
1638 | w1.FormFactor = 'Custom' | |
1639 | w1.BrickColor = BrickColor.new("Really black") | |
1640 | w1.Transparency = 0 | |
1641 | w1.Reflectance = 0 | |
1642 | w1.Material = "SmoothPlastic" | |
1643 | w1.CanCollide = false | |
1644 | local l1 = Instance.new("PointLight",w1) | |
1645 | l1.Color = Color3.new(170,0,0) | |
1646 | NoOutline(w1) | |
1647 | local sz = Vector3.new(0.2, width, len1) | |
1648 | w1.Size = sz | |
1649 | local sp = Instance.new("SpecialMesh",w1) | |
1650 | sp.MeshType = "Wedge" | |
1651 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
1652 | w1:BreakJoints() | |
1653 | w1.Anchored = true | |
1654 | w1.Parent = workspace | |
1655 | w1.Transparency = 0.7 | |
1656 | table.insert(Effects,{w1,"Disappear",.01}) | |
1657 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
1658 | table.insert(list,w1) | |
1659 | end | |
1660 | ||
1661 | if len2 > 0.01 then | |
1662 | local w2 = Instance.new('WedgePart', m) | |
1663 | game:GetService("Debris"):AddItem(w2,5) | |
1664 | w2.Material = "SmoothPlastic" | |
1665 | w2.FormFactor = 'Custom' | |
1666 | w2.BrickColor = BrickColor.new("Really black") | |
1667 | w2.Transparency = 0 | |
1668 | w2.Reflectance = 0 | |
1669 | w2.Material = "SmoothPlastic" | |
1670 | w2.CanCollide = false | |
1671 | local l2 = Instance.new("PointLight",w2) | |
1672 | l2.Color = Color3.new(170,0,0) | |
1673 | NoOutline(w2) | |
1674 | local sz = Vector3.new(0.2, width, len2) | |
1675 | w2.Size = sz | |
1676 | local sp = Instance.new("SpecialMesh",w2) | |
1677 | sp.MeshType = "Wedge" | |
1678 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
1679 | w2:BreakJoints() | |
1680 | w2.Anchored = true | |
1681 | w2.Parent = workspace | |
1682 | w2.Transparency = 0.7 | |
1683 | table.insert(Effects,{w2,"Disappear",.01}) | |
1684 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
1685 | table.insert(list,w2) | |
1686 | end | |
1687 | return unpack(list) | |
1688 | end | |
1689 | ||
1690 | ||
1691 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1692 | if hit.Parent == nil then | |
1693 | return | |
1694 | end | |
1695 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1696 | for _, v in pairs(hit.Parent:children()) do | |
1697 | if v:IsA("Humanoid") then | |
1698 | h = v | |
1699 | end | |
1700 | end | |
1701 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then | |
1702 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1703 | return | |
1704 | end | |
1705 | local c = Create("ObjectValue")({ | |
1706 | Name = "creator", | |
1707 | Value = game:service("Players").LocalPlayer, | |
1708 | Parent = h | |
1709 | }) | |
1710 | game:GetService("Debris"):AddItem(c, 0.5) | |
1711 | if HitSound ~= nil and HitPitch ~= nil then | |
1712 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1713 | end | |
1714 | local Damage = math.random(minim, maxim) | |
1715 | local blocked = false | |
1716 | local block = hit.Parent:findFirstChild("Block") | |
1717 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1718 | blocked = true | |
1719 | block.Value = block.Value - 1 | |
1720 | print(block.Value) | |
1721 | end | |
1722 | if blocked == false then | |
1723 | HitHealth = h.Health | |
1724 | h.Health = h.Health - Damage | |
1725 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
1726 | print("gained kill") | |
1727 | end | |
1728 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1729 | else | |
1730 | h.Health = h.Health - Damage / 2 | |
1731 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1732 | end | |
1733 | if Type == "Knockdown" then | |
1734 | local hum = hit.Parent:FindFirstChildOfClass'Humanoid' | |
1735 | hum.PlatformStand = true | |
1736 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1737 | swait(1) | |
1738 | HHumanoid.PlatformStand = false | |
1739 | end), hum) | |
1740 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1741 | local bodvol = Create("BodyVelocity")({ | |
1742 | velocity = angle * knockback, | |
1743 | P = 5000, | |
1744 | maxForce = Vector3.new(8000, 8000, 8000), | |
1745 | Parent = hit | |
1746 | }) | |
1747 | local rl = Create("BodyAngularVelocity")({ | |
1748 | P = 3000, | |
1749 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1750 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1751 | Parent = hit | |
1752 | }) | |
1753 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
1754 | game:GetService("Debris"):AddItem(rl, 0.5) | |
1755 | elseif Type == "Normal" then | |
1756 | local vp = Create("BodyVelocity")({ | |
1757 | P = 500, | |
1758 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1759 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1760 | }) | |
1761 | if knockback > 0 then | |
1762 | vp.Parent = hit.Parent.Head | |
1763 | end | |
1764 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1765 | elseif Type == "Up" then | |
1766 | local bodyVelocity = Create("BodyVelocity")({ | |
1767 | velocity = Vector3.new(0, 20, 0), | |
1768 | P = 5000, | |
1769 | maxForce = Vector3.new(8000, 8000, 8000), | |
1770 | Parent = hit | |
1771 | }) | |
1772 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1773 | local bodyVelocity = Create("BodyVelocity")({ | |
1774 | velocity = Vector3.new(0, 20, 0), | |
1775 | P = 5000, | |
1776 | maxForce = Vector3.new(8000, 8000, 8000), | |
1777 | Parent = hit | |
1778 | }) | |
1779 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1780 | elseif Type == "Leech" then | |
1781 | local hum = hit.Parent:FindFirstChildOfClass'Humanoid' | |
1782 | if hum ~= nil then | |
1783 | for i = 0, 2 do | |
1784 | 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) | |
1785 | end | |
1786 | Humanoid.Health = Humanoid.Health + 10 | |
1787 | end | |
1788 | elseif Type == "UpKnock" then | |
1789 | local hum = hit.Parent:FindFirstChildOfClass'Humanoid' | |
1790 | hum.PlatformStand = true | |
1791 | if hum ~= nil then | |
1792 | hitr = true | |
1793 | end | |
1794 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1795 | swait(5) | |
1796 | HHumanoid.PlatformStand = false | |
1797 | hitr = false | |
1798 | end), hum) | |
1799 | local bodyVelocity = Create("BodyVelocity")({ | |
1800 | velocity = Vector3.new(0, 20, 0), | |
1801 | P = 5000, | |
1802 | maxForce = Vector3.new(8000, 8000, 8000), | |
1803 | Parent = hit | |
1804 | }) | |
1805 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1806 | local bodyVelocity = Create("BodyVelocity")({ | |
1807 | velocity = Vector3.new(0, 20, 0), | |
1808 | P = 5000, | |
1809 | maxForce = Vector3.new(8000, 8000, 8000), | |
1810 | Parent = hit | |
1811 | }) | |
1812 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1813 | elseif Type == "Snare" then | |
1814 | local bp = Create("BodyPosition")({ | |
1815 | P = 2000, | |
1816 | D = 100, | |
1817 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1818 | position = hit.Parent.Torso.Position, | |
1819 | Parent = hit.Parent.Torso | |
1820 | }) | |
1821 | game:GetService("Debris"):AddItem(bp, 1) | |
1822 | elseif Type == "Slashnare" then | |
1823 | 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) | |
1824 | for i = 1, math.random(4, 5) do | |
1825 | 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) | |
1826 | end | |
1827 | local bp = Create("BodyPosition")({ | |
1828 | P = 2000, | |
1829 | D = 100, | |
1830 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1831 | position = hit.Parent.Torso.Position, | |
1832 | Parent = hit.Parent.Torso | |
1833 | }) | |
1834 | game:GetService("Debris"):AddItem(bp, 1) | |
1835 | elseif Type == "Spike" then | |
1836 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
1837 | local bp = Create("BodyPosition")({ | |
1838 | P = 2000, | |
1839 | D = 100, | |
1840 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1841 | position = hit.Parent.Torso.Position, | |
1842 | Parent = hit.Parent.Torso | |
1843 | }) | |
1844 | game:GetService("Debris"):AddItem(bp, 1) | |
1845 | elseif Type == "Freeze" then | |
1846 | local BodPos = Create("BodyPosition")({ | |
1847 | P = 50000, | |
1848 | D = 1000, | |
1849 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1850 | position = hit.Parent.Torso.Position, | |
1851 | Parent = hit.Parent.Torso | |
1852 | }) | |
1853 | local BodGy = Create("BodyGyro")({ | |
1854 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
1855 | P = 20000, | |
1856 | Parent = hit.Parent.Torso, | |
1857 | cframe = hit.Parent.Torso.CFrame | |
1858 | }) | |
1859 | hit.Parent.Torso.Anchored = true | |
1860 | coroutine.resume(coroutine.create(function(Part) | |
1861 | swait(1.5) | |
1862 | Part.Anchored = false | |
1863 | end), hit.Parent.Torso) | |
1864 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1865 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1866 | end | |
1867 | local debounce = Create("BoolValue")({ | |
1868 | Name = "DebounceHit", | |
1869 | Parent = hit.Parent, | |
1870 | Value = true | |
1871 | }) | |
1872 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1873 | c = Instance.new("ObjectValue") | |
1874 | c.Name = "creator" | |
1875 | c.Value = Player | |
1876 | c.Parent = h | |
1877 | game:GetService("Debris"):AddItem(c, 0.5) | |
1878 | end | |
1879 | end | |
1880 | function ShowDamage(Pos, Text, Time, Color) | |
1881 | local Rate = 0.03333333333333333 | |
1882 | local Pos = Pos or Vector3.new(0, 0, 0) | |
1883 | local Text = Text or "" | |
1884 | local Time = Time or 2 | |
1885 | local Color = Color or Color3.new(1, 0, 1) | |
1886 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1887 | EffectPart.Anchored = true | |
1888 | local BillboardGui = Create("BillboardGui")({ | |
1889 | Size = UDim2.new(3, 0, 3, 0), | |
1890 | Adornee = EffectPart, | |
1891 | Parent = EffectPart | |
1892 | }) | |
1893 | local TextLabel = Create("TextLabel")({ | |
1894 | BackgroundTransparency = 1, | |
1895 | Size = UDim2.new(1, 0, 1, 0), | |
1896 | Text = Text, | |
1897 | TextColor3 = Color, | |
1898 | TextScaled = true, | |
1899 | Font = Enum.Font.ArialBold, | |
1900 | Parent = BillboardGui | |
1901 | }) | |
1902 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1903 | EffectPart.Parent = game:GetService("Workspace") | |
1904 | delay(0, function() | |
1905 | local Frames = Time / Rate | |
1906 | for Frame = 1, Frames do | |
1907 | wait(Rate) | |
1908 | local Percent = Frame / Frames | |
1909 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1910 | TextLabel.TextTransparency = Percent | |
1911 | end | |
1912 | if EffectPart and EffectPart.Parent then | |
1913 | EffectPart:Destroy() | |
1914 | end | |
1915 | end) | |
1916 | end | |
1917 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
1918 | for _, c in pairs(workspace:children()) do | |
1919 | local hum = c:findFirstChildOfClass("Humanoid") | |
1920 | if hum ~= nil then | |
1921 | local head = c:findFirstChild("Head") | |
1922 | if head ~= nil then | |
1923 | local targ = head.Position - Part.Position | |
1924 | local mag = targ.magnitude | |
1925 | if magni >= mag and c.Name ~= Player.Name then | |
1926 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1927 | end | |
1928 | end | |
1929 | end | |
1930 | end | |
1931 | end | |
1932 | ||
1933 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
1934 | for _, c in pairs(workspace:children()) do | |
1935 | local hum = c:findFirstChild("Humanoid") | |
1936 | if hum ~= nil then | |
1937 | local head = c:findFirstChild("Torso") | |
1938 | if head ~= nil then | |
1939 | local targ = head.Position - Part.Position | |
1940 | local mag = targ.magnitude | |
1941 | if magni >= mag and c.Name ~= Player.Name then | |
1942 | MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05) | |
1943 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1944 | end | |
1945 | end | |
1946 | end | |
1947 | end | |
1948 | end | |
1949 | ||
1950 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
1951 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1952 | end | |
1953 | ||
1954 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
1955 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1956 | prt.Anchored=true | |
1957 | prt.CFrame=cframe | |
1958 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1)) | |
1959 | --http://www.roblox.com/asset/?id=4770560 | |
1960 | game:GetService("Debris"):AddItem(prt,2) | |
1961 | CF=prt.CFrame | |
1962 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
1963 | for i=0,1,0.2 do | |
1964 | wait() | |
1965 | Part.CFrame=CF*cf(0,0,-0.4) | |
1966 | end | |
1967 | for i=0,1,delay do | |
1968 | wait() | |
1969 | --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) | |
1970 | Mesh.Scale=Mesh.Scale | |
1971 | end | |
1972 | for i=0,1,0.1 do | |
1973 | wait() | |
1974 | Part.Transparency=i | |
1975 | end | |
1976 | Part.Parent=nil | |
1977 | end),prt,msh,CF) | |
1978 | end | |
1979 | ||
1980 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
1981 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
1982 | prt.Anchored=true | |
1983 | prt.Material = "Neon" | |
1984 | prt.CFrame=cframe | |
1985 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1986 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
1987 | game:GetService("Debris"):AddItem(prt,5) | |
1988 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
1989 | for i=0,1,delay do | |
1990 | swait() | |
1991 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
1992 | Part.Transparency=i | |
1993 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
1994 | end | |
1995 | Part.Parent=nil | |
1996 | end),prt,msh) | |
1997 | end | |
1998 | ||
1999 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
2000 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2001 | prt.Anchored=true | |
2002 | prt.Material = "Neon" | |
2003 | prt.CFrame=cframe | |
2004 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2005 | game:GetService("Debris"):AddItem(prt,5) | |
2006 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2007 | local rtype = rottype | |
2008 | for i=0,1,delay do | |
2009 | swait() | |
2010 | if rtype == 1 then | |
2011 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2012 | elseif rtype == 2 then | |
2013 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2014 | end | |
2015 | Part.Transparency=i | |
2016 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2017 | end | |
2018 | Part.Parent=nil | |
2019 | end),prt,msh) | |
2020 | end | |
2021 | ||
2022 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2023 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2024 | prt.Anchored=true | |
2025 | prt.CFrame=cframe | |
2026 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2027 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2028 | game:GetService("Debris"):AddItem(prt,5) | |
2029 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2030 | for i=0,1,delay do | |
2031 | wait() | |
2032 | Part.Transparency=i | |
2033 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2034 | end | |
2035 | Part.Parent=nil | |
2036 | end),prt,msh) | |
2037 | end | |
2038 | ||
2039 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
2040 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2041 | prt.Anchored=true | |
2042 | prt.Material = "Neon" | |
2043 | prt.CFrame=cframe | |
2044 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2045 | game:GetService("Debris"):AddItem(prt,5) | |
2046 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2047 | local rtype = rottype | |
2048 | for i=0,1,delay do | |
2049 | swait() | |
2050 | if rtype == 1 then | |
2051 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2052 | elseif rtype == 2 then | |
2053 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2054 | end | |
2055 | Part.Transparency=i | |
2056 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2057 | end | |
2058 | Part.Parent=nil | |
2059 | end),prt,msh) | |
2060 | end | |
2061 | ||
2062 | function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
2063 | local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2064 | prt.Anchored=true | |
2065 | prt.Material = "Neon" | |
2066 | prt.CFrame=cframe | |
2067 | local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
2068 | local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt) | |
2069 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
2070 | game:GetService("Debris"):AddItem(prt,5) | |
2071 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2072 | local rtype = rottype | |
2073 | for i=0,1,delay do | |
2074 | swait() | |
2075 | if rtype == 1 then | |
2076 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2077 | elseif rtype == 2 then | |
2078 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2079 | end | |
2080 | dec.Transparency=i | |
2081 | dec2.Transparency=i | |
2082 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
2083 | end | |
2084 | Part.Parent=nil | |
2085 | end),prt,msh) | |
2086 | end | |
2087 | ||
2088 | function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype) | |
2089 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2090 | prt.Anchored=true | |
2091 | prt.Material = "Neon" | |
2092 | prt.CFrame=cframe | |
2093 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01)) | |
2094 | game:GetService("Debris"):AddItem(prt,5) | |
2095 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2096 | local rtype = rottype | |
2097 | for i=0,1,delay do | |
2098 | swait() | |
2099 | if rtype == 1 then | |
2100 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2101 | elseif rtype == 2 then | |
2102 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2103 | end | |
2104 | prt.Transparency=i | |
2105 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
2106 | end | |
2107 | Part.Parent=nil | |
2108 | end),prt,msh) | |
2109 | end | |
2110 | ||
2111 | function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype) | |
2112 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2113 | prt.Anchored=true | |
2114 | prt.Material = "Neon" | |
2115 | prt.CFrame=cframe | |
2116 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1)) | |
2117 | game:GetService("Debris"):AddItem(prt,5) | |
2118 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2119 | local rtype = rottype | |
2120 | for i=0,1,delay do | |
2121 | swait() | |
2122 | if rtype == 1 then | |
2123 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0) | |
2124 | elseif rtype == 2 then | |
2125 | prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0) | |
2126 | end | |
2127 | prt.Transparency=i | |
2128 | Mesh.Scale=Mesh.Scale+vt(x3,0,z3) | |
2129 | end | |
2130 | Part.Parent=nil | |
2131 | end),prt,msh) | |
2132 | end | |
2133 | ||
2134 | function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype) | |
2135 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2136 | prt.Anchored=true | |
2137 | prt.Material = "Neon" | |
2138 | prt.CFrame=cframe | |
2139 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2140 | game:GetService("Debris"):AddItem(prt,5) | |
2141 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2142 | local rtype = rottype | |
2143 | for i=0,1,delay do | |
2144 | swait() | |
2145 | if rtype == 1 then | |
2146 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2147 | elseif rtype == 2 then | |
2148 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2149 | end | |
2150 | prt.Transparency=i | |
2151 | Mesh.Scale=Mesh.Scale+vt(x3,y3,0) | |
2152 | end | |
2153 | Part.Parent=nil | |
2154 | end),prt,msh) | |
2155 | end | |
2156 | ||
2157 | function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
2158 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2159 | prt.Anchored=true | |
2160 | prt.Material = "Neon" | |
2161 | prt.CFrame=cframe | |
2162 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2163 | game:GetService("Debris"):AddItem(prt,5) | |
2164 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2165 | local rtype = rottype | |
2166 | for i=0,1,delay do | |
2167 | swait() | |
2168 | if rtype == 1 then | |
2169 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
2170 | elseif rtype == 2 then | |
2171 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
2172 | end | |
2173 | prt.Transparency=i | |
2174 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2175 | end | |
2176 | Part.Parent=nil | |
2177 | end),prt,msh) | |
2178 | end | |
2179 | ||
2180 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
2181 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2182 | prt.Anchored=false | |
2183 | prt.CFrame=cframe | |
2184 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2185 | local wld=weld(prt,prt,Parent,cframe) | |
2186 | game:GetService("Debris"):AddItem(prt,5) | |
2187 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
2188 | for i=0,1,delay do | |
2189 | wait() | |
2190 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
2191 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2192 | Part.Transparency=i | |
2193 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2194 | end | |
2195 | Part.Parent=nil | |
2196 | end),prt,msh,wld) | |
2197 | end | |
2198 | ||
2199 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
2200 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2201 | prt.Anchored=false | |
2202 | prt.CFrame=cframe | |
2203 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2204 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
2205 | game:GetService("Debris"):AddItem(prt,5) | |
2206 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
2207 | for i=0,1,delay do | |
2208 | wait() | |
2209 | Weld.C0=euler(i*20,0,0) | |
2210 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2211 | Part.Transparency=i | |
2212 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2213 | end | |
2214 | Part.Parent=nil | |
2215 | end),prt,msh,wld) | |
2216 | end | |
2217 | ||
2218 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2219 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2220 | prt.Anchored=true | |
2221 | prt.CFrame=cframe | |
2222 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1)) | |
2223 | game:GetService("Debris"):AddItem(prt,2) | |
2224 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2225 | for i=0,1,delay do | |
2226 | wait() | |
2227 | Part.CFrame=Part.CFrame | |
2228 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2229 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2230 | prt2.Anchored=true | |
2231 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2232 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5)) | |
2233 | game:GetService("Debris"):AddItem(prt2,2) | |
2234 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2235 | for i=0,1,0.1 do | |
2236 | wait() | |
2237 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
2238 | end | |
2239 | Part.Parent=nil | |
2240 | end),prt2,msh2) | |
2241 | end | |
2242 | for i=0,1,delay*2 do | |
2243 | wait() | |
2244 | Part.CFrame=Part.CFrame | |
2245 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
2246 | end | |
2247 | Part.Parent=nil | |
2248 | end),prt,msh) | |
2249 | end | |
2250 | ||
2251 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2252 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2253 | prt.Anchored=true | |
2254 | prt.CFrame=cframe | |
2255 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2256 | game:GetService("Debris"):AddItem(prt,2) | |
2257 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2258 | for i=0,1,delay do | |
2259 | wait() | |
2260 | Part.CFrame=Part.CFrame | |
2261 | Part.Transparency=i | |
2262 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2263 | end | |
2264 | Part.Parent=nil | |
2265 | end),prt,msh) | |
2266 | end | |
2267 | ||
2268 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
2269 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2270 | prt.Anchored=true | |
2271 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
2272 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1)) | |
2273 | game:GetService("Debris"):AddItem(prt,2) | |
2274 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
2275 | CF=Part.CFrame | |
2276 | Numbb=0 | |
2277 | randnumb=math.random()/10 | |
2278 | rand1=math.random()/10 | |
2279 | for i=0,1,rand1 do | |
2280 | wait() | |
2281 | CF=CF*cf(0,math.random()/2,0) | |
2282 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
2283 | Part.CFrame=CF*euler(Numbb,0,0) | |
2284 | Part.Transparency=i | |
2285 | Numbb=Numbb+randnumb | |
2286 | end | |
2287 | Part.Parent=nil | |
2288 | end),prt,CF,Numbb,randnumb) | |
2289 | end | |
2290 | ||
2291 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2292 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2293 | prt.Anchored=true | |
2294 | prt.CFrame=cframe | |
2295 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1)) | |
2296 | game:GetService("Debris"):AddItem(prt,5) | |
2297 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2298 | for i=0,1,delay do | |
2299 | wait() | |
2300 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
2301 | Part.Transparency=i | |
2302 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2303 | end | |
2304 | Part.Parent=nil | |
2305 | end),prt,msh) | |
2306 | end | |
2307 | ||
2308 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
2309 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2310 | prt.Anchored=true | |
2311 | prt.CFrame=cframe | |
2312 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1)) | |
2313 | game:GetService("Debris"):AddItem(prt,2) | |
2314 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
2315 | for i=0,1,delay do | |
2316 | wait() | |
2317 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
2318 | Part.Transparency=i | |
2319 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
2320 | end | |
2321 | Part.Parent=nil | |
2322 | end),prt,msh) | |
2323 | end | |
2324 | ||
2325 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
2326 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
2327 | prt.Anchored=true | |
2328 | prt.CFrame=cframe*cf(x,y,z) | |
2329 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1)) | |
2330 | game:GetService("Debris"):AddItem(prt,5) | |
2331 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
2332 | local num=math.random() | |
2333 | local num2=math.random(-3,2)+math.random() | |
2334 | local numm=0 | |
2335 | for i=0,1,delay*2 do | |
2336 | swait() | |
2337 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
2338 | Part.Transparency=i | |
2339 | numm=numm+0.01 | |
2340 | end | |
2341 | Part.Parent=nil | |
2342 | Mesh.Parent=nil | |
2343 | end),prt,msh,x,y,z) | |
2344 | end | |
2345 | ||
2346 | function dmgstart(dmg,what) | |
2347 | hitcon = what.Touched:connect(function(hit) | |
2348 | local hum = hit.Parent:FindFirstChild("Humanoid") | |
2349 | if hum and not hum:IsDescendantOf(Character) then | |
2350 | hum:TakeDamage(dmg) | |
2351 | end | |
2352 | end) | |
2353 | end | |
2354 | ||
2355 | function dmgstop() | |
2356 | hitcon:disconnect() | |
2357 | end | |
2358 | ||
2359 | function Cloak() | |
2360 | Face.Parent=nil | |
2361 | cloaked=true | |
2362 | for _,v in pairs(Torso.Parent:children()) do | |
2363 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
2364 | coroutine.resume(coroutine.create(function() | |
2365 | for i=0,1,0.2 do | |
2366 | wait() | |
2367 | v.Transparency=i | |
2368 | end | |
2369 | v.Transparency=1 | |
2370 | end)) | |
2371 | end | |
2372 | if v.className=="Hat" then | |
2373 | hatp=v.Handle | |
2374 | coroutine.resume(coroutine.create(function(derp) | |
2375 | for i=0,1,0.2 do | |
2376 | wait() | |
2377 | derp.Transparency=i | |
2378 | end | |
2379 | derp.Transparency=1 | |
2380 | end),hatp) | |
2381 | end | |
2382 | end | |
2383 | for _,v in pairs(m:children()) do | |
2384 | if v.className=="Part" then | |
2385 | coroutine.resume(coroutine.create(function() | |
2386 | for i=0,1,0.2 do | |
2387 | wait() | |
2388 | v.Transparency=i | |
2389 | end | |
2390 | v.Transparency=1 | |
2391 | end)) | |
2392 | end | |
2393 | end | |
2394 | end | |
2395 | ||
2396 | function UnCloak() | |
2397 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) | |
2398 | Face.Parent=Head | |
2399 | cloaked=false | |
2400 | for _,v in pairs(Torso.Parent:children()) do | |
2401 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
2402 | coroutine.resume(coroutine.create(function() | |
2403 | for i=0,1,0.1 do | |
2404 | wait() | |
2405 | v.Transparency=v.Transparency-0.1 | |
2406 | end | |
2407 | v.Transparency=0 | |
2408 | end)) | |
2409 | end | |
2410 | if v.className=="Hat" then | |
2411 | hatp=v.Handle | |
2412 | coroutine.resume(coroutine.create(function(derp) | |
2413 | for i=0,1,0.1 do | |
2414 | wait() | |
2415 | derp.Transparency=derp.Transparency-0.1 | |
2416 | end | |
2417 | derp.Transparency=0 | |
2418 | end),hatp) | |
2419 | end | |
2420 | end | |
2421 | for _,v in pairs(m:children()) do | |
2422 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
2423 | coroutine.resume(coroutine.create(function() | |
2424 | for i=0,1,0.1 do | |
2425 | wait() | |
2426 | v.Transparency=v.Transparency-0.1 | |
2427 | end | |
2428 | v.Transparency=0 | |
2429 | end)) | |
2430 | v.Transparency=0 | |
2431 | end | |
2432 | end | |
2433 | end | |
2434 | ||
2435 | local origcolor = BrickColor.new("Pastel light blue") | |
2436 | ---- This section of explosions. | |
2437 | function Explode(rad,par,pitch,vol,mindam,maxdam) | |
2438 | local expart = Instance.new("Part",char) | |
2439 | local expart2 = Instance.new("Part",char) | |
2440 | local rin = Instance.new("Part",char) | |
2441 | local rin2 = Instance.new("Part",char) | |
2442 | local partMesh = Instance.new("SpecialMesh",expart) | |
2443 | partMesh.MeshType = "Sphere" | |
2444 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
2445 | partMesh2.MeshType = "Sphere" | |
2446 | local partMesh3 = Instance.new("SpecialMesh",rin) | |
2447 | partMesh3.MeshType = "Brick" | |
2448 | local partMesh4 = Instance.new("SpecialMesh",rin2) | |
2449 | partMesh4.MeshType = "Brick" | |
2450 | CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch) | |
2451 | partMesh.Scale = vt(rad,rad,rad) | |
2452 | expart.Size = vt(1,1,1) | |
2453 | expart.Transparency = 0 | |
2454 | expart.Anchored = true | |
2455 | expart.Material = "Neon" | |
2456 | expart.BrickColor = bc("White") | |
2457 | expart.CFrame = par.CFrame | |
2458 | partMesh2.Scale = vt(rad,rad,rad) | |
2459 | expart2.Size = vt(1.15,1.15,1.15) | |
2460 | expart2.Transparency = 0.5 | |
2461 | expart2.Anchored = true | |
2462 | expart2.Material = "Neon" | |
2463 | expart2.BrickColor = par.BrickColor | |
2464 | expart2.CFrame = par.CFrame | |
2465 | rin.Size = vt(1.15,1.15,1.15) | |
2466 | rin.Transparency = 1 | |
2467 | rin.Anchored = true | |
2468 | rin.Material = "Neon" | |
2469 | rin.BrickColor = par.BrickColor | |
2470 | rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2471 | rin2.Size = vt(1.15,1.15,1.15) | |
2472 | rin2.Transparency = 1 | |
2473 | rin2.Anchored = true | |
2474 | rin2.Material = "Neon" | |
2475 | rin2.BrickColor = par.BrickColor | |
2476 | rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
2477 | partMesh3.Scale = vt(0,1,0) | |
2478 | partMesh4.Scale = vt(0,1,0) | |
2479 | local dec2 = Instance.new("Decal", rin) | |
2480 | dec2.Face = "Top" | |
2481 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2482 | dec2.Parent = rin | |
2483 | local dec2b = dec2:Clone() | |
2484 | dec2b.Face = "Bottom" | |
2485 | dec2b.Parent = rin | |
2486 | ||
2487 | local dec2a = Instance.new("Decal", rin2) | |
2488 | dec2a.Face = "Top" | |
2489 | dec2a.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2490 | dec2a.Parent = rin2 | |
2491 | local dec2ab = dec2a:Clone() | |
2492 | dec2ab.Face = "Bottom" | |
2493 | dec2ab.Parent = rin2 | |
2494 | expart.CanCollide = false | |
2495 | expart2.CanCollide = false | |
2496 | rin.CanCollide = false | |
2497 | rin2.CanCollide = false | |
2498 | MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal") | |
2499 | local value = 1*rad/6.5 | |
2500 | for i = 0, 199 do | |
2501 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2502 | expart.CFrame = expart.CFrame | |
2503 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
2504 | expart2.CFrame = expart.CFrame | |
2505 | value = value - 0.035*rad/30 | |
2506 | if value < 7.5 then | |
2507 | partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5) | |
2508 | rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0) | |
2509 | partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5) | |
2510 | rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0) | |
2511 | end | |
2512 | if value < 0 then | |
2513 | dec2.Transparency = dec2.Transparency + 0.025 | |
2514 | dec2a.Transparency = dec2a.Transparency + 0.025 | |
2515 | dec2b.Transparency = dec2b.Transparency + 0.025 | |
2516 | dec2ab.Transparency = dec2ab.Transparency + 0.025 | |
2517 | expart.Transparency = expart.Transparency + 0.025 | |
2518 | expart2.Transparency = expart2.Transparency + 0.025 | |
2519 | rin.Transparency = rin.Transparency + 0.025 | |
2520 | rin2.Transparency = rin2.Transparency + 0.025 | |
2521 | end | |
2522 | swait() | |
2523 | end | |
2524 | game:GetService("Debris"):AddItem(expart, 1) | |
2525 | game:GetService("Debris"):AddItem(expart2, 1) | |
2526 | game:GetService("Debris"):AddItem(rin, 1) | |
2527 | game:GetService("Debris"):AddItem(rin2, 1) | |
2528 | end | |
2529 | ||
2530 | function ExplodeShort(rad,par,pitch,vol,mindam,maxdam) | |
2531 | local expart = Instance.new("Part",char) | |
2532 | local expart2 = Instance.new("Part",char) | |
2533 | local partMesh = Instance.new("SpecialMesh",expart) | |
2534 | partMesh.MeshType = "Sphere" | |
2535 | local partMesh2 = Instance.new("SpecialMesh",expart2) | |
2536 | partMesh2.MeshType = "Sphere" | |
2537 | CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch) | |
2538 | partMesh.Scale = vt(rad,rad,rad) | |
2539 | expart.Size = vt(1,1,1) | |
2540 | expart.Transparency = 0 | |
2541 | expart.Anchored = true | |
2542 | expart.Material = "Neon" | |
2543 | expart.BrickColor = bc("White") | |
2544 | expart.CFrame = par.CFrame | |
2545 | partMesh2.Scale = vt(rad,rad,rad) | |
2546 | expart2.Size = vt(1.15,1.15,1.15) | |
2547 | expart2.Transparency = 0.5 | |
2548 | expart2.Anchored = true | |
2549 | expart2.Material = "Neon" | |
2550 | expart2.BrickColor = par.BrickColor | |
2551 | expart2.CFrame = par.CFrame | |
2552 | expart.CanCollide = false | |
2553 | expart2.CanCollide = false | |
2554 | MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal") | |
2555 | local value = 1*rad/6.5 | |
2556 | for i = 0, 75 do | |
2557 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2558 | expart.CFrame = expart.CFrame | |
2559 | partMesh2.Scale = partMesh2.Scale + vt(value,value,value) | |
2560 | expart2.CFrame = expart.CFrame | |
2561 | value = value - 0.035*rad/5 | |
2562 | if value < 0 then | |
2563 | value = 0 | |
2564 | expart.Transparency = expart.Transparency + 0.05 | |
2565 | expart2.Transparency = expart2.Transparency + 0.05 | |
2566 | end | |
2567 | swait() | |
2568 | end | |
2569 | game:GetService("Debris"):AddItem(expart, 1) | |
2570 | game:GetService("Debris"):AddItem(expart2, 1) | |
2571 | end | |
2572 | ||
2573 | function AreaDanger(rad,par,mindam,maxdam) | |
2574 | local expart = Instance.new("Part",char) | |
2575 | local partMesh = Instance.new("SpecialMesh",expart) | |
2576 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15) | |
2577 | partMesh.MeshType = "Sphere" | |
2578 | partMesh.Scale = vt(rad,rad,rad) | |
2579 | expart.Size = vt(1,1,1) | |
2580 | expart.Transparency = 0.5 | |
2581 | expart.Anchored = true | |
2582 | expart.Material = "Neon" | |
2583 | expart.CanCollide = false | |
2584 | expart.BrickColor = par.BrickColor | |
2585 | expart.CFrame = par.CFrame | |
2586 | local value = 1*rad/5 | |
2587 | MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1) | |
2588 | for i = 0, 14 do | |
2589 | wait() | |
2590 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2591 | expart.CFrame = expart.CFrame | |
2592 | value = value - 0.035*rad | |
2593 | if value < 0 then | |
2594 | value = 0 | |
2595 | end | |
2596 | end | |
2597 | wait(0.25) | |
2598 | CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1) | |
2599 | wait(0.5) | |
2600 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1) | |
2601 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75) | |
2602 | MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal") | |
2603 | MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025) | |
2604 | for i = 0, 14 do | |
2605 | wait() | |
2606 | partMesh.Scale = partMesh.Scale + vt(value,value,value) | |
2607 | expart.CFrame = expart.CFrame | |
2608 | value = value - 0.035*rad/2 | |
2609 | end | |
2610 | expart.Transparency = 1 | |
2611 | game:GetService("Debris"):AddItem(expart, 5) | |
2612 | end | |
2613 | ||
2614 | function Swarmsplosions(negrad,rad,par,mindam,maxdam) | |
2615 | CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2) | |
2616 | CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1) | |
2617 | CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1) | |
2618 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1) | |
2619 | MagniDamageWithEffect(par, 25, 5,10, 0, "Normal") | |
2620 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025) | |
2621 | for i = 0, 24 do | |
2622 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2)) | |
2623 | end | |
2624 | for i = 0, 24 do | |
2625 | local expart = Instance.new("Part",char) | |
2626 | expart.Transparency = 1 | |
2627 | expart.Anchored = true | |
2628 | expart.CanCollide = false | |
2629 | expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad)) | |
2630 | CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2) | |
2631 | CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15) | |
2632 | MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal") | |
2633 | MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025) | |
2634 | for i = 0, 9 do | |
2635 | MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2)) | |
2636 | end | |
2637 | game:GetService("Debris"):AddItem(expart, 2) | |
2638 | wait(0.1) | |
2639 | end | |
2640 | end | |
2641 | ||
2642 | function EXterPlosion(par) | |
2643 | CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1) | |
2644 | CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85) | |
2645 | CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2) | |
2646 | CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1) | |
2647 | MagniDamageWithEffect(par, 500, 80,99, 0, "Normal") | |
2648 | MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005) | |
2649 | MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1) | |
2650 | for i = 0, 24 do | |
2651 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2)) | |
2652 | end | |
2653 | for i = 0, 24 do | |
2654 | MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2)) | |
2655 | end | |
2656 | end | |
2657 | ---- | |
2658 | ||
2659 | ||
2660 | function ring(type,pos,scale,value) | |
2661 | local type = type | |
2662 | local rng = Instance.new("Part", char) | |
2663 | rng.Anchored = true | |
2664 | rng.BrickColor = origcolor | |
2665 | rng.CanCollide = false | |
2666 | rng.FormFactor = 3 | |
2667 | rng.Name = "Ring" | |
2668 | rng.Size = Vector3.new(1, 1, 1) | |
2669 | rng.Transparency = 0 | |
2670 | rng.TopSurface = 0 | |
2671 | rng.BottomSurface = 0 | |
2672 | rng.CFrame = pos | |
2673 | local rngm = Instance.new("SpecialMesh", rng) | |
2674 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
2675 | rngm.Scale = scale | |
2676 | local scaler2 = 1 | |
2677 | if type == "Add" then | |
2678 | scaler2 = 1*value | |
2679 | elseif type == "Divide" then | |
2680 | scaler2 = 1/value | |
2681 | end | |
2682 | coroutine.resume(coroutine.create(function() | |
2683 | for i = 0,10,0.1 do | |
2684 | swait() | |
2685 | if type == "Add" then | |
2686 | scaler2 = scaler2 - 0.01*value | |
2687 | elseif type == "Divide" then | |
2688 | scaler2 = scaler2 - 0.01/value | |
2689 | end | |
2690 | rng.Transparency = rng.Transparency + 0.01 | |
2691 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2692 | end | |
2693 | rng:Destroy() | |
2694 | end)) | |
2695 | end | |
2696 | ||
2697 | ||
2698 | function wave(type,pos,scale,value) | |
2699 | local type = type | |
2700 | local rng = Instance.new("Part", char) | |
2701 | rng.Anchored = true | |
2702 | rng.BrickColor = origcolor | |
2703 | rng.CanCollide = false | |
2704 | rng.FormFactor = 3 | |
2705 | rng.Name = "Ring" | |
2706 | rng.Size = Vector3.new(1, 1, 1) | |
2707 | rng.Transparency = 0 | |
2708 | rng.TopSurface = 0 | |
2709 | rng.BottomSurface = 0 | |
2710 | rng.CFrame = pos | |
2711 | local rngm = Instance.new("SpecialMesh", rng) | |
2712 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2713 | rngm.Scale = scale | |
2714 | local scaler2 = 1 | |
2715 | if type == "Add" then | |
2716 | scaler2 = 1*value | |
2717 | elseif type == "Divide" then | |
2718 | scaler2 = 1/value | |
2719 | end | |
2720 | coroutine.resume(coroutine.create(function() | |
2721 | for i = 0,10,0.1 do | |
2722 | swait() | |
2723 | if type == "Add" then | |
2724 | scaler2 = scaler2 - 0.01*value | |
2725 | elseif type == "Divide" then | |
2726 | scaler2 = scaler2 - 0.01/value | |
2727 | end | |
2728 | rng.Transparency = rng.Transparency + 0.01 | |
2729 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2730 | end | |
2731 | rng:Destroy() | |
2732 | end)) | |
2733 | end | |
2734 | ||
2735 | function wind(type,pos,scale,value,speed) | |
2736 | local type = type | |
2737 | local rng = Instance.new("Part", char) | |
2738 | rng.Anchored = true | |
2739 | rng.BrickColor = origcolor | |
2740 | rng.CanCollide = false | |
2741 | rng.FormFactor = 3 | |
2742 | rng.Name = "Ring" | |
2743 | rng.Size = Vector3.new(1, 1, 1) | |
2744 | rng.Transparency = 0 | |
2745 | rng.TopSurface = 0 | |
2746 | rng.BottomSurface = 0 | |
2747 | rng.CFrame = pos | |
2748 | local rngm = Instance.new("SpecialMesh", rng) | |
2749 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2750 | rngm.Scale = scale | |
2751 | local scaler2 = 1 | |
2752 | if type == "Add" then | |
2753 | scaler2 = 1*value | |
2754 | elseif type == "Divide" then | |
2755 | scaler2 = 1/value | |
2756 | end | |
2757 | coroutine.resume(coroutine.create(function() | |
2758 | for i = 0,10,0.1 do | |
2759 | swait() | |
2760 | if type == "Add" then | |
2761 | scaler2 = scaler2 - 0.01*value | |
2762 | elseif type == "Divide" then | |
2763 | scaler2 = scaler2 - 0.01/value | |
2764 | end | |
2765 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
2766 | rng.Transparency = rng.Transparency + 0.01 | |
2767 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2768 | end | |
2769 | rng:Destroy() | |
2770 | end)) | |
2771 | end | |
2772 | ||
2773 | function groundwind(type,pos,scale,value,speed) | |
2774 | local type = type | |
2775 | local rng = Instance.new("Part", char) | |
2776 | rng.Anchored = true | |
2777 | rng.BrickColor = origcolor | |
2778 | rng.CanCollide = false | |
2779 | rng.FormFactor = 3 | |
2780 | rng.Name = "Ring" | |
2781 | rng.Size = Vector3.new(1, 1, 1) | |
2782 | rng.Transparency = 0 | |
2783 | rng.TopSurface = 0 | |
2784 | rng.BottomSurface = 0 | |
2785 | rng.CFrame = pos | |
2786 | local rngm = Instance.new("SpecialMesh", rng) | |
2787 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2788 | rngm.Scale = scale | |
2789 | local scaler2 = 1 | |
2790 | if type == "Add" then | |
2791 | scaler2 = 1*value | |
2792 | elseif type == "Divide" then | |
2793 | scaler2 = 1/value | |
2794 | end | |
2795 | coroutine.resume(coroutine.create(function() | |
2796 | for i = 0,10,0.1 do | |
2797 | swait() | |
2798 | if type == "Add" then | |
2799 | scaler2 = scaler2 - 0.01*value | |
2800 | elseif type == "Divide" then | |
2801 | scaler2 = scaler2 - 0.01/value | |
2802 | end | |
2803 | rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0) | |
2804 | rng.Transparency = rng.Transparency + 0.01 | |
2805 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2) | |
2806 | end | |
2807 | rng:Destroy() | |
2808 | end)) | |
2809 | end | |
2810 | ||
2811 | function CameraManager() | |
2812 | if TwoD and not CamInterrupt then | |
2813 | if Humanoid.Health > 0 then | |
2814 | Camera.CameraSubject = Humanoid | |
2815 | Camera.CameraType = "Scriptable" | |
2816 | Humanoid.AutoRotate = false | |
2817 | if Booleans.GyroUse then | |
2818 | Directer.MaxTorque = Vec3(0, huge, 0) | |
2819 | else | |
2820 | Directer.MaxTorque = Vec3(0, 0, 0) | |
2821 | end | |
2822 | if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then | |
2823 | if Booleans.CamFollow then | |
2824 | CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z)) | |
2825 | Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position) | |
2826 | else | |
2827 | CPart.Position = RootPart.Position | |
2828 | end | |
2829 | else | |
2830 | local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p | |
2831 | CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z)) | |
2832 | end | |
2833 | Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2) | |
2834 | else | |
2835 | Camera.CameraSubject = Humanoid | |
2836 | Camera.CameraType = "Custom" | |
2837 | Controller.Disabled = false | |
2838 | end | |
2839 | end | |
2840 | end | |
2841 | ||
2842 | function sphere(bonuspeed,type,pos,scale,value,color,heart,invert,notaffectbychaosrainbow) | |
2843 | local type = type | |
2844 | local rng = Instance.new("Part", char) | |
2845 | rng.Anchored = true | |
2846 | rng.BrickColor = color | |
2847 | rng.CanCollide = false | |
2848 | rng.FormFactor = 3 | |
2849 | rng.Name = "Ring" | |
2850 | rng.Material = "Neon" | |
2851 | rng.Size = Vector3.new(1, 1, 1) | |
2852 | rng.Transparency = 0 | |
2853 | rng.TopSurface = 0 | |
2854 | rng.BottomSurface = 0 | |
2855 | rng.CFrame = pos | |
2856 | local rngm = Instance.new("SpecialMesh", rng) | |
2857 | rngm.MeshType = "Sphere" | |
2858 | ||
2859 | ||
2860 | if(heart)then | |
2861 | rngm.MeshType = Enum.MeshType.FileMesh | |
2862 | rngm.MeshId = "rbxassetid://105992239" | |
2863 | rngm.Offset = Vector3.new(0,0,-.25) | |
2864 | end | |
2865 | rngm.Scale = scale | |
2866 | if rainbowmode == true and not notaffectbychaosrainbow then | |
2867 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2868 | end | |
2869 | local scaler2 = 1 | |
2870 | if type == "Add" then | |
2871 | scaler2 = 1*value | |
2872 | elseif type == "Divide" then | |
2873 | scaler2 = 1/value | |
2874 | end | |
2875 | coroutine.resume(coroutine.create(function() | |
2876 | for i = 0,10/bonuspeed,0.1 do | |
2877 | swait() | |
2878 | if rainbowmode == true and not notaffectbychaosrainbow then | |
2879 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2880 | end | |
2881 | if type == "Add" then | |
2882 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2883 | elseif type == "Divide" then | |
2884 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2885 | end | |
2886 | if chaosmode == true and not notaffectbychaosrainbow then | |
2887 | rng.BrickColor = BrickColor.random() | |
2888 | end | |
2889 | if glitchymode then | |
2890 | local val = math.random(1,255) | |
2891 | local color = Color3.fromRGB(val,val,val) | |
2892 | rng.Color = color | |
2893 | end | |
2894 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2895 | if(invert)then | |
2896 | if(heart)then | |
2897 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
2898 | else | |
2899 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2900 | end | |
2901 | else | |
2902 | if(heart)then | |
2903 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
2904 | else | |
2905 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2906 | end | |
2907 | end | |
2908 | rng.CFrame = pos | |
2909 | end | |
2910 | rng:Destroy() | |
2911 | end)) | |
2912 | end | |
2913 | ||
2914 | function newBezier(startpos, pos2, pos3, endpos, t) | |
2915 | local A = clerp(startpos, pos2, t) | |
2916 | local B = clerp(pos2, pos3, t) | |
2917 | local C = clerp(pos3, endpos, t) | |
2918 | local lerp1 = clerp(A, B, t) | |
2919 | local lerp2 = clerp(B, C, t) | |
2920 | local cubic = clerp(lerp1, lerp2, t) | |
2921 | return cubic | |
2922 | end | |
2923 | ||
2924 | ||
2925 | function PixelBlock(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos,heart,invert) | |
2926 | local type = type | |
2927 | local rng = Instance.new("Part", char) | |
2928 | rng.Anchored = true | |
2929 | rng.BrickColor = color | |
2930 | rng.CanCollide = false | |
2931 | rng.FormFactor = 3 | |
2932 | rng.Name = "Ring" | |
2933 | rng.Material = "Neon" | |
2934 | rng.Size = Vector3.new(1, 1, 1) | |
2935 | rng.Transparency = 0 | |
2936 | rng.TopSurface = 0 | |
2937 | rng.BottomSurface = 0 | |
2938 | rng.CFrame = pos | |
2939 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
2940 | local rngm = Instance.new("SpecialMesh", rng) | |
2941 | rngm.MeshType = "Brick" | |
2942 | if(heart)then | |
2943 | rngm.MeshType = Enum.MeshType.FileMesh | |
2944 | rngm.MeshId = "rbxassetid://105992239" | |
2945 | rngm.Offset = Vector3.new(0,0,-.25) | |
2946 | end | |
2947 | rngm.Scale = vt(x1,y1,z1) | |
2948 | if rainbowmode == true then | |
2949 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2950 | end | |
2951 | local scaler2 = 1 | |
2952 | local speeder = FastSpeed/10 | |
2953 | if type == "Add" then | |
2954 | scaler2 = 1*value | |
2955 | elseif type == "Divide" then | |
2956 | scaler2 = 1/value | |
2957 | end | |
2958 | coroutine.resume(coroutine.create(function() | |
2959 | for i = 0,10/bonuspeed,0.1 do | |
2960 | swait() | |
2961 | if rainbowmode == true then | |
2962 | rng.Color = Color3.new(r/255,g/255,b/255) | |
2963 | end | |
2964 | if type == "Add" then | |
2965 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
2966 | elseif type == "Divide" then | |
2967 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
2968 | end | |
2969 | if chaosmode == true then | |
2970 | rng.BrickColor = BrickColor.random() | |
2971 | end | |
2972 | if glitchymode then | |
2973 | local val = math.random(1,255) | |
2974 | local color = Color3.fromRGB(val,val,val) | |
2975 | rng.Color = color | |
2976 | end | |
2977 | speeder = speeder - 0.01*FastSpeed*bonuspeed/10 | |
2978 | if(invert)then rng.CFrame = rng.CFrame - rng.CFrame.lookVector*speeder*bonuspeed else rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed end | |
2979 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
2980 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
2981 | end | |
2982 | rng:Destroy() | |
2983 | end)) | |
2984 | end | |
2985 | ||
2986 | ||
2987 | function PixelBlockNeg(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos,heart,invert) | |
2988 | local type = type | |
2989 | local rng = Instance.new("Part", char) | |
2990 | rng.Anchored = true | |
2991 | rng.BrickColor = color | |
2992 | rng.CanCollide = false | |
2993 | rng.FormFactor = 3 | |
2994 | rng.Name = "Ring" | |
2995 | rng.Material = "Neon" | |
2996 | rng.Size = Vector3.new(1, 1, 1) | |
2997 | rng.Transparency = 0 | |
2998 | rng.TopSurface = 0 | |
2999 | rng.BottomSurface = 0 | |
3000 | rng.CFrame = pos | |
3001 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
3002 | local rngm = Instance.new("SpecialMesh", rng) | |
3003 | rngm.MeshType = "Brick" | |
3004 | if(heart)then | |
3005 | rngm.MeshType = Enum.MeshType.FileMesh | |
3006 | rngm.MeshId = "rbxassetid://105992239" | |
3007 | rngm.Offset = Vector3.new(0,0,-.25) | |
3008 | end | |
3009 | rngm.Scale = vt(x1,y1,z1) | |
3010 | if rainbowmode == true then | |
3011 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3012 | end | |
3013 | local scaler2 = 0 | |
3014 | local speeder = FastSpeed/10 | |
3015 | if type == "Add" then | |
3016 | scaler2 = 1*value | |
3017 | elseif type == "Divide" then | |
3018 | scaler2 = 1/value | |
3019 | end | |
3020 | coroutine.resume(coroutine.create(function() | |
3021 | for i = 0,10/bonuspeed,0.1 do | |
3022 | swait() | |
3023 | if rainbowmode == true then | |
3024 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3025 | end | |
3026 | if type == "Add" then | |
3027 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
3028 | elseif type == "Divide" then | |
3029 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
3030 | end | |
3031 | if chaosmode == true then | |
3032 | rng.BrickColor = BrickColor.random() | |
3033 | end | |
3034 | if glitchymode then | |
3035 | local val = math.random(1,255) | |
3036 | local color = Color3.fromRGB(val,val,val) | |
3037 | rng.Color = color | |
3038 | end | |
3039 | speeder = speeder + 0.01*FastSpeed*bonuspeed/10 | |
3040 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
3041 | if(invert)then rng.CFrame = rng.CFrame - rng.CFrame.lookVector*speeder*bonuspeed else rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed end | |
3042 | --rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
3043 | rngm.Scale = rngm.Scale - Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed) | |
3044 | end | |
3045 | rng:Destroy() | |
3046 | end)) | |
3047 | end | |
3048 | ||
3049 | function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
3050 | local type = type | |
3051 | local rng = Instance.new("Part", char) | |
3052 | rng.Anchored = true | |
3053 | rng.BrickColor = color | |
3054 | rng.CanCollide = false | |
3055 | rng.FormFactor = 3 | |
3056 | rng.Name = "Ring" | |
3057 | rng.Material = "Neon" | |
3058 | rng.Size = Vector3.new(1, 1, 1) | |
3059 | rng.Transparency = 0 | |
3060 | rng.TopSurface = 0 | |
3061 | rng.BottomSurface = 0 | |
3062 | rng.CFrame = pos | |
3063 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
3064 | local rngm = Instance.new("SpecialMesh", rng) | |
3065 | rngm.MeshType = "Sphere" | |
3066 | rngm.Scale = vt(x1,y1,z1) | |
3067 | if rainbowmode == true then | |
3068 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3069 | end | |
3070 | local scaler2 = 1 | |
3071 | local speeder = FastSpeed | |
3072 | if type == "Add" then | |
3073 | scaler2 = 1*value | |
3074 | elseif type == "Divide" then | |
3075 | scaler2 = 1/value | |
3076 | end | |
3077 | coroutine.resume(coroutine.create(function() | |
3078 | for i = 0,10/bonuspeed,0.1 do | |
3079 | swait() | |
3080 | if rainbowmode == true then | |
3081 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3082 | end | |
3083 | if type == "Add" then | |
3084 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
3085 | elseif type == "Divide" then | |
3086 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
3087 | end | |
3088 | if chaosmode == true then | |
3089 | rng.BrickColor = BrickColor.random() | |
3090 | end | |
3091 | if glitchymode then | |
3092 | local val = math.random(1,255) | |
3093 | local color = Color3.fromRGB(val,val,val) | |
3094 | rng.Color = color | |
3095 | end | |
3096 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
3097 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
3098 | rng.Transparency = rng.Transparency + 0.01*bonuspeed | |
3099 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
3100 | end | |
3101 | rng:Destroy() | |
3102 | end)) | |
3103 | end | |
3104 | ||
3105 | ||
3106 | function sphereMKCharge(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos) | |
3107 | local type = type | |
3108 | local rng = Instance.new("Part", char) | |
3109 | rng.Anchored = true | |
3110 | rng.BrickColor = color | |
3111 | rng.CanCollide = false | |
3112 | rng.FormFactor = 3 | |
3113 | rng.Name = "Ring" | |
3114 | rng.Material = "Neon" | |
3115 | rng.Size = Vector3.new(1, 1, 1) | |
3116 | rng.Transparency = 1 | |
3117 | rng.TopSurface = 0 | |
3118 | rng.BottomSurface = 0 | |
3119 | rng.CFrame = pos | |
3120 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos | |
3121 | local rngm = Instance.new("SpecialMesh", rng) | |
3122 | rngm.MeshType = "Sphere" | |
3123 | rngm.Scale = vt(x1,y1,z1) | |
3124 | if rainbowmode == true then | |
3125 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3126 | end | |
3127 | local scaler2 = 1 | |
3128 | local speeder = FastSpeed | |
3129 | if type == "Add" then | |
3130 | scaler2 = 1*value | |
3131 | elseif type == "Divide" then | |
3132 | scaler2 = 1/value | |
3133 | end | |
3134 | coroutine.resume(coroutine.create(function() | |
3135 | for i = 0,10/bonuspeed,0.1 do | |
3136 | swait() | |
3137 | if rainbowmode == true then | |
3138 | rng.Color = Color3.new(r/255,g/255,b/255) | |
3139 | end | |
3140 | if type == "Add" then | |
3141 | scaler2 = scaler2 - 0.01*value/bonuspeed | |
3142 | elseif type == "Divide" then | |
3143 | scaler2 = scaler2 - 0.01/value*bonuspeed | |
3144 | end | |
3145 | if chaosmode == true then | |
3146 | rng.BrickColor = BrickColor.random() | |
3147 | end | |
3148 | if glitchymode then | |
3149 | local val = math.random(1,255) | |
3150 | local color = Color3.fromRGB(val,val,val) | |
3151 | rng.Color = color | |
3152 | end | |
3153 | speeder = speeder - 0.01*FastSpeed*bonuspeed | |
3154 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed | |
3155 | rng.Transparency = rng.Transparency - 0.01*bonuspeed | |
3156 | rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0) | |
3157 | end | |
3158 | rng:Destroy() | |
3159 | end)) | |
3160 | end | |
3161 | ||
3162 | function dmg(dude) | |
3163 | if dude.Name ~= Character then | |
3164 | local bgf = Instance.new("BodyGyro",dude.Head) | |
3165 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90),0,0) | |
3166 | local val = Instance.new("BoolValue",dude) | |
3167 | val.Name = "IsHit" | |
3168 | local ds = coroutine.wrap(function() | |
3169 | local torso = dude:FindFirstChild'Torso' or dude:FindFirstChild'UpperTorso' | |
3170 | for i = 1, 10 do | |
3171 | sphereMK(1.5,2,"Add",torso.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,25,-.01,BrickColor.new("White"),0,true) | |
3172 | end | |
3173 | dude:WaitForChild("Head"):BreakJoints() | |
3174 | wait(0.5) | |
3175 | targetted = nil | |
3176 | CFuncs["Sound"].Create("rbxassetid://62339698", char, 0.5, 0.3) | |
3177 | ||
3178 | coroutine.resume(coroutine.create(function() | |
3179 | for i, v in pairs(dude:GetChildren()) do | |
3180 | if v:IsA("Accessory") then | |
3181 | v:Destroy() | |
3182 | end | |
3183 | if v:IsA("Humanoid") then | |
3184 | v:Destroy() | |
3185 | end | |
3186 | if v:IsA("CharacterMesh") then | |
3187 | v:Destroy() | |
3188 | end | |
3189 | if v:IsA("Model") then | |
3190 | v:Destroy() | |
3191 | end | |
3192 | if v:IsA("Part") or v:IsA("MeshPart") then | |
3193 | for x, o in pairs(v:GetChildren()) do | |
3194 | if o:IsA("Decal") then | |
3195 | o:Destroy() | |
3196 | end | |
3197 | end | |
3198 | coroutine.resume(coroutine.create(function() | |
3199 | v.Material = "Neon" | |
3200 | v.CanCollide = false | |
3201 | local bld = Instance.new("ParticleEmitter",v) | |
3202 | bld.LightEmission = 1 | |
3203 | bld.Texture = "rbxassetid://284205403" | |
3204 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
3205 | bld.Rate = 50 | |
3206 | bld.Lifetime = NumberRange.new(1) | |
3207 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0.75,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3208 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3209 | bld.Speed = NumberRange.new(0,0) | |
3210 | bld.VelocitySpread = 50000 | |
3211 | bld.Rotation = NumberRange.new(-500,500) | |
3212 | bld.RotSpeed = NumberRange.new(-500,500) | |
3213 | local sbs = Instance.new("BodyPosition", v) | |
3214 | sbs.P = 3000 | |
3215 | sbs.D = 1000 | |
3216 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
3217 | sbs.position = v.Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
3218 | v.Color = Color3.new(1,1,1) | |
3219 | coroutine.resume(coroutine.create(function() | |
3220 | for i = 0, 49 do | |
3221 | swait(1) | |
3222 | v.Transparency = v.Transparency + 0.02 | |
3223 | end | |
3224 | CFuncs["Sound"].Create("rbxassetid://1192402877", v, 0.25, 1) | |
3225 | bld.Speed = NumberRange.new(1,5) | |
3226 | bld.Acceleration = vt(0,10,0) | |
3227 | wait(0.5) | |
3228 | bld.Enabled = false | |
3229 | wait(3) | |
3230 | v:Destroy() | |
3231 | dude:Destroy() | |
3232 | end)) | |
3233 | end)) | |
3234 | end | |
3235 | end | |
3236 | end)) | |
3237 | end) | |
3238 | ds() | |
3239 | end | |
3240 | end | |
3241 | ||
3242 | ||
3243 | function FindNearestHead(Position, Distance, SinglePlayer) | |
3244 | if SinglePlayer then | |
3245 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
3246 | end | |
3247 | local List = {} | |
3248 | for i, v in pairs(workspace:GetChildren()) do | |
3249 | if v:IsA("Model") then | |
3250 | if v:findFirstChild("Head") then | |
3251 | if v ~= Character then | |
3252 | if (v.Head.Position - Position).magnitude <= Distance then | |
3253 | table.insert(List, v) | |
3254 | end | |
3255 | end | |
3256 | end | |
3257 | end | |
3258 | end | |
3259 | return List | |
3260 | end | |
3261 | ||
3262 | function FaceMouse() | |
3263 | Cam = workspace.CurrentCamera | |
3264 | return { | |
3265 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
3266 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
3267 | } | |
3268 | end | |
3269 | ||
3270 | function FaceMouse2() | |
3271 | Cam = workspace.CurrentCamera | |
3272 | return { | |
3273 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
3274 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
3275 | } | |
3276 | end | |
3277 | ||
3278 | local ModeOfGlitch = 1 | |
3279 | -- Functions are ready. | |
3280 | local storehumanoidWS = 16 | |
3281 | ||
3282 | function CorruptBlink() | |
3283 | for i = 0, 14 do | |
3284 | 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) | |
3285 | end | |
3286 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3287 | CFuncs["Sound"].Create("rbxassetid://1177785010", root, 10,1) | |
3288 | RootPart.CFrame = mouse.Hit *CFrame.new(0,2,0) | |
3289 | CameraEnshaking(2,10) | |
3290 | if(ModeOfGlitch == 1 or ModeOfGlitch == 3 or ModeOfGlitch == 4 or ModeOfGlitch == 666666)then for i, v in pairs(FindNearestHead(Torso.CFrame.p, 20)) do | |
3291 | if v:FindFirstChild('Head') then | |
3292 | dmg(v) | |
3293 | end | |
3294 | end end | |
3295 | for i = 0, 14 do | |
3296 | 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) | |
3297 | end | |
3298 | sphere(10,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3299 | end | |
3300 | ||
3301 | function ExtinctiveHeartbreak() | |
3302 | local targetted = nil | |
3303 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
3304 | targetted = mouse.Target.Parent | |
3305 | end | |
3306 | if targetted ~= nil then | |
3307 | attack = true | |
3308 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3309 | for i = 0, 9 do | |
3310 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really black"),0) | |
3311 | end | |
3312 | for i = 0, 24 do | |
3313 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really black"),0) | |
3314 | end | |
3315 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black")) | |
3316 | local originalpos = root.CFrame | |
3317 | RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0,-2,2) | |
3318 | for i = 0, 9 do | |
3319 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really black"),0) | |
3320 | end | |
3321 | for i = 0, 24 do | |
3322 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really black"),0) | |
3323 | end | |
3324 | hum.WalkSpeed = 0 | |
3325 | targetted.Head.Anchored = true | |
3326 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black")) | |
3327 | for i = 0,2,0.1 do | |
3328 | swait() | |
3329 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.4) | |
3330 | 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) | |
3331 | 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) | |
3332 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(10)),.8) | |
3333 | 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) | |
3334 | 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) | |
3335 | end | |
3336 | coroutine.resume(coroutine.create(function() | |
3337 | bld = Instance.new("ParticleEmitter",targetted:WaitForChild("Torso")) | |
3338 | bld.LightEmission = 0.1 | |
3339 | bld.Texture = "rbxassetid://284205403" | |
3340 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
3341 | bld.Rate = 500 | |
3342 | bld.Lifetime = NumberRange.new(1) | |
3343 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3344 | bld.Acceleration = vt(0,-25,0) | |
3345 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3346 | bld.Speed = NumberRange.new(10,50) | |
3347 | bld.EmissionDirection = "Front" | |
3348 | bld.VelocitySpread = 25 | |
3349 | bld.Rotation = NumberRange.new(-500,500) | |
3350 | bld.RotSpeed = NumberRange.new(-500,500) | |
3351 | end)) | |
3352 | coroutine.resume(coroutine.create(function() | |
3353 | bld = Instance.new("ParticleEmitter",targetted:WaitForChild("UpperTorso")) | |
3354 | bld.LightEmission = 0.1 | |
3355 | bld.Texture = "rbxassetid://284205403" | |
3356 | bld.Color = ColorSequence.new(Color3.new(0.5,0,0)) | |
3357 | bld.Rate = 500 | |
3358 | bld.Lifetime = NumberRange.new(1) | |
3359 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3360 | bld.Acceleration = vt(0,-25,0) | |
3361 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3362 | bld.Speed = NumberRange.new(10,50) | |
3363 | bld.EmissionDirection = "Front" | |
3364 | bld.VelocitySpread = 25 | |
3365 | bld.Rotation = NumberRange.new(-500,500) | |
3366 | bld.RotSpeed = NumberRange.new(-500,500) | |
3367 | end)) | |
3368 | CameraEnshaking(5,5) | |
3369 | game:GetService("Debris"):AddItem(bld,3) | |
3370 | dmg(targetted) | |
3371 | CFuncs["Sound"].Create("rbxassetid://429400881", targetted.Head, 1,1) | |
3372 | for i = 0,1,0.1 do | |
3373 | swait() | |
3374 | 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) | |
3375 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.8) | |
3376 | 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) | |
3377 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(80)),.8) | |
3378 | 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) | |
3379 | 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) | |
3380 | end | |
3381 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
3382 | for i = 0, 9 do | |
3383 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really black"),0) | |
3384 | end | |
3385 | for i = 0, 24 do | |
3386 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really black"),0) | |
3387 | end | |
3388 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black")) | |
3389 | root.CFrame = originalpos | |
3390 | for i = 0, 9 do | |
3391 | sphereMK(3,0.25,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),1,1,10,-0.01,BrickColor.new("Really black"),0) | |
3392 | end | |
3393 | for i = 0, 24 do | |
3394 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Really black"),0) | |
3395 | end | |
3396 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Really black")) | |
3397 | bld.Enabled = false | |
3398 | attack = false | |
3399 | hum.WalkSpeed = storehumanoidWS | |
3400 | end | |
3401 | end | |
3402 | function PureBomb() | |
3403 | attack = true | |
3404 | ||
3405 | local orb = Instance.new("Part", char) | |
3406 | orb.Anchored = true | |
3407 | orb.BrickColor = BrickColor.new("Toothpaste") | |
3408 | orb.CanCollide = false | |
3409 | orb.FormFactor = 3 | |
3410 | orb.Name = "Ring" | |
3411 | orb.Material = "Neon" | |
3412 | orb.Size = Vector3.new(1, 1, 1) | |
3413 | orb.Transparency = 0 | |
3414 | orb.TopSurface = 0 | |
3415 | orb.BottomSurface = 0 | |
3416 | local orbm = Instance.new("SpecialMesh", orb) | |
3417 | orbm.MeshType = "Sphere" | |
3418 | orbm.Name = "SizeMesh" | |
3419 | orbm.Scale = vt(0,0,0) | |
3420 | local scaled = 0.1 | |
3421 | local posid = 0 | |
3422 | CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1,1) | |
3423 | for i = 0, 5, 0.1 do | |
3424 | swait() | |
3425 | scaled = scaled - 0.001 | |
3426 | posid = posid - scaled | |
3427 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3428 | orbm.Scale = orbm.Scale + vt(scaled,scaled,scaled) | |
3429 | 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) | |
3430 | 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) | |
3431 | 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) | |
3432 | 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) | |
3433 | 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) | |
3434 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
3435 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(180),math.rad(20),math.rad(0)),.1) | |
3436 | 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) | |
3437 | end | |
3438 | for i = 0, 2, 0.1 do | |
3439 | swait() | |
3440 | orb.CFrame = rarm.CFrame*CFrame.new(0,-0.1+posid/1.05,0) | |
3441 | 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) | |
3442 | 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) | |
3443 | 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) | |
3444 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(20)),.4) | |
3445 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(220),math.rad(20),math.rad(0)),.4) | |
3446 | 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) | |
3447 | end | |
3448 | coroutine.resume(coroutine.create(function() | |
3449 | orb.Anchored = false | |
3450 | CFuncs["Sound"].Create("rbxassetid://260433768", root, 1.25,1) | |
3451 | local a = Instance.new("Part",workspace) | |
3452 | a.Name = "Direction" | |
3453 | a.Anchored = true | |
3454 | a.BrickColor = bc("Bright red") | |
3455 | a.Material = "Neon" | |
3456 | a.Transparency = 1 | |
3457 | a.CanCollide = false | |
3458 | local ray = Ray.new( | |
3459 | orb.CFrame.p, -- origin | |
3460 | (mouse.Hit.p - orb.CFrame.p).unit * 500 -- direction | |
3461 | ) | |
3462 | local ignore = orb | |
3463 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3464 | a.BottomSurface = 10 | |
3465 | a.TopSurface = 10 | |
3466 | local distance = (orb.CFrame.p - position).magnitude | |
3467 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
3468 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3469 | orb.CFrame = a.CFrame | |
3470 | a:Destroy() | |
3471 | local bv = Instance.new("BodyVelocity") | |
3472 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3473 | bv.velocity = orb.CFrame.lookVector*125 | |
3474 | bv.Parent = orb | |
3475 | local hitted = false | |
3476 | game:GetService("Debris"):AddItem(orb, 15) | |
3477 | wait() | |
3478 | local hit =orb.Touched:connect(function(hit) | |
3479 | if hitted == false then | |
3480 | hitted = true | |
3481 | CameraEnshaking(10,2.5) | |
3482 | CFuncs["Sound"].Create("rbxassetid://151304356", orb, 5,1) | |
3483 | MagniDamage(orb, 65, 65,90, 0, "Normal") | |
3484 | sphere(1,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),1,BrickColor.new("Toothpaste")) | |
3485 | sphere(2,"Add",orb.CFrame,vt(orbm.Scale.x,orbm.Scale.y,orbm.Scale.z),2,BrickColor.new("Toothpaste")) | |
3486 | for i = 0, 49 do | |
3487 | 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) | |
3488 | end | |
3489 | for i = 0, 9 do | |
3490 | 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) | |
3491 | 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) | |
3492 | end | |
3493 | orb.Anchored = true | |
3494 | orb.Transparency = 1 | |
3495 | wait(8) | |
3496 | orb:Destroy() | |
3497 | end | |
3498 | end) | |
3499 | end)) | |
3500 | for i = 0, 1, 0.1 do | |
3501 | swait() | |
3502 | 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) | |
3503 | 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) | |
3504 | 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) | |
3505 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(-50)),.4) | |
3506 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(20),math.rad(50)),.4) | |
3507 | 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) | |
3508 | end | |
3509 | attack = false | |
3510 | end | |
3511 | ||
3512 | function ChaosGroundStrike() | |
3513 | attack = true | |
3514 | for i = 0, 2, 0.1 do | |
3515 | swait() | |
3516 | 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) | |
3517 | 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) | |
3518 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3519 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3520 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
3521 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
3522 | end | |
3523 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1) | |
3524 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3525 | CameraEnshaking(4,12) | |
3526 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
3527 | if v:FindFirstChild('Head') then | |
3528 | dmg(v) | |
3529 | end | |
3530 | end | |
3531 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random()) | |
3532 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random()) | |
3533 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100,0.1,100),0.01,BrickColor.random()) | |
3534 | for i = 0, 2, 0.1 do | |
3535 | swait() | |
3536 | 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) | |
3537 | 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) | |
3538 | 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) | |
3539 | 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) | |
3540 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3541 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3542 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
3543 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
3544 | end | |
3545 | attack = false | |
3546 | end | |
3547 | ||
3548 | function InsaneGroundStrike() | |
3549 | attack = true | |
3550 | chatfunc("Succumb to the insanity!",Color3.new(0,0,0)) | |
3551 | for i = 0, 8, 0.1 do | |
3552 | swait() | |
3553 | PixelBlockNeg(2,1,"Add",RightLeg.CFrame*cf(0,-1.35,0)*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) | |
3554 | ||
3555 | 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) | |
3556 | 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) | |
3557 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3558 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
3559 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
3560 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
3561 | end | |
3562 | CFuncs["Sound"].Create("rbxassetid://438666141", root, 7.5,1) | |
3563 | CFuncs["Sound"].Create("rbxassetid://1208650519", root, 7.5, 1) | |
3564 | CameraEnshaking(8,24) | |
3565 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 105)) do | |
3566 | if v:FindFirstChild('Head') then | |
3567 | dmg(v) | |
3568 | end | |
3569 | end | |
3570 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1,BrickColor.random()) | |
3571 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2,BrickColor.random()) | |
3572 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(200,0.1,200),0.01,BrickColor.random()) | |
3573 | CFuncs["Sound"].Create("rbxassetid://907329669", root, 10, 1) | |
3574 | chatfunc("Leave the dead where they fall!",Color3.new(0,0,0)) | |
3575 | for i = 0, 2, 0.1 do | |
3576 | swait() | |
3577 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-105,105),-5,math.random(-105,105))*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) | |
3578 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-105,105),-5,math.random(-105,105))*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) | |
3579 | 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) | |
3580 | 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) | |
3581 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3582 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
3583 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
3584 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
3585 | end | |
3586 | attack = false | |
3587 | end | |
3588 | ||
3589 | function Starfall() | |
3590 | attack = true | |
3591 | hum.WalkSpeed = 0 | |
3592 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1) | |
3593 | for i = 0, 5, 0.1 do | |
3594 | swait() | |
3595 | 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) | |
3596 | 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) | |
3597 | 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) | |
3598 | 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) | |
3599 | 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) | |
3600 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
3601 | 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) | |
3602 | 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) | |
3603 | end | |
3604 | local Overed = false | |
3605 | CameraEnshaking(2,20) | |
3606 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3607 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3608 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
3609 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1) | |
3610 | local orb = Instance.new("Part", char) | |
3611 | orb.Anchored = true | |
3612 | orb.BrickColor = BrickColor.new("Toothpaste") | |
3613 | orb.CanCollide = false | |
3614 | orb.FormFactor = 3 | |
3615 | orb.Name = "Remenant" | |
3616 | orb.Material = "Neon" | |
3617 | orb.CFrame = root.CFrame*CFrame.new(0,150,0) | |
3618 | orb.Size = Vector3.new(1, 1, 1) | |
3619 | orb.Transparency = 1 | |
3620 | orb.TopSurface = 0 | |
3621 | orb.BottomSurface = 0 | |
3622 | hum.WalkSpeed = storehumanoidWS | |
3623 | coroutine.resume(coroutine.create(function() | |
3624 | for i = 0, 9 do | |
3625 | swait(10) | |
3626 | local lb = Instance.new("Part") | |
3627 | lb.Color = MAINRUINCOLOR.Color | |
3628 | lb.CanCollide = false | |
3629 | lb.Material = "Neon" | |
3630 | lb.Anchored = true | |
3631 | lb.TopSurface = 0 | |
3632 | lb.BottomSurface = 0 | |
3633 | lb.Transparency = 0 | |
3634 | lb.Size = vt(1,1,1) | |
3635 | 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))) | |
3636 | lb.Anchored = false | |
3637 | lb.Parent = char | |
3638 | local thingery = Instance.new("SpecialMesh",lb) | |
3639 | thingery.MeshType = "Sphere" | |
3640 | thingery.Scale = vt(20,20,20) | |
3641 | game:GetService("Debris"):AddItem(lb, 10) | |
3642 | local bv = Instance.new("BodyVelocity") | |
3643 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3644 | bv.velocity = lb.CFrame.lookVector*math.random(75,250) | |
3645 | bv.Parent = lb | |
3646 | sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR) | |
3647 | sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR) | |
3648 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1) | |
3649 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1) | |
3650 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1) | |
3651 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1) | |
3652 | local hitted = false | |
3653 | coroutine.resume(coroutine.create(function() | |
3654 | while true do | |
3655 | swait(1) | |
3656 | if lb.Parent ~= nil and hitted == false then | |
3657 | 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) | |
3658 | elseif lb.Parent == nil then | |
3659 | break | |
3660 | end | |
3661 | end | |
3662 | end)) | |
3663 | ||
3664 | game:GetService("Debris"):AddItem(a, 0.1) | |
3665 | ||
3666 | coroutine.resume(coroutine.create(function() | |
3667 | swait(1) | |
3668 | lb.Touched:connect(function(hit) | |
3669 | if hitted == false then | |
3670 | hitted = true | |
3671 | lb.Transparency = 1 | |
3672 | lb.Anchored = true | |
3673 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1) | |
3674 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7) | |
3675 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75) | |
3676 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75) | |
3677 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1) | |
3678 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85) | |
3679 | MagniDamage(lb, 45, 45,85, 0, "Normal") | |
3680 | CameraEnshaking(1,5) | |
3681 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
3682 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
3683 | for i = 0, 9 do | |
3684 | 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) | |
3685 | end | |
3686 | for i = 0, 49 do | |
3687 | swait() | |
3688 | MagniDamage(lb, 30, 2,4, 0, "Normal") | |
3689 | 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) | |
3690 | end | |
3691 | end | |
3692 | end) | |
3693 | end)) | |
3694 | end | |
3695 | Overed = true | |
3696 | orb:Destroy() | |
3697 | end)) | |
3698 | ||
3699 | attack = false | |
3700 | end | |
3701 | ||
3702 | function StarfallEX() | |
3703 | attack = true | |
3704 | hum.WalkSpeed = 0 | |
3705 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 5, 1) | |
3706 | for i = 0, 5, 0.1 do | |
3707 | swait() | |
3708 | 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) | |
3709 | 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) | |
3710 | 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) | |
3711 | 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) | |
3712 | 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) | |
3713 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.1) | |
3714 | 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) | |
3715 | 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) | |
3716 | end | |
3717 | local Overed = false | |
3718 | CameraEnshaking(2,20) | |
3719 | sphere(1.5,"Add",sorb.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3720 | sphere(1.5,"Add",sorb2.CFrame,vt(0,0,0),0.25,MAINRUINCOLOR) | |
3721 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
3722 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 1, 1) | |
3723 | local orb = Instance.new("Part", char) | |
3724 | orb.Anchored = true | |
3725 | orb.BrickColor = BrickColor.new("Toothpaste") | |
3726 | orb.CanCollide = false | |
3727 | orb.FormFactor = 3 | |
3728 | orb.Name = "Remenant" | |
3729 | orb.Material = "Neon" | |
3730 | orb.CFrame = root.CFrame*CFrame.new(0,150,0) | |
3731 | orb.Size = Vector3.new(1, 1, 1) | |
3732 | orb.Transparency = 1 | |
3733 | orb.TopSurface = 0 | |
3734 | orb.BottomSurface = 0 | |
3735 | hum.WalkSpeed = storehumanoidWS | |
3736 | coroutine.resume(coroutine.create(function() | |
3737 | for i = 1, 5 do | |
3738 | swait(10) | |
3739 | local lb = Instance.new("Part") | |
3740 | lb.Color = MAINRUINCOLOR.Color | |
3741 | lb.CanCollide = false | |
3742 | lb.Material = "Neon" | |
3743 | lb.Anchored = true | |
3744 | lb.TopSurface = 0 | |
3745 | lb.BottomSurface = 0 | |
3746 | lb.Transparency = 0 | |
3747 | lb.Size = vt(1,1,1) | |
3748 | lb.CFrame = orb.CFrame*CFrame.new(math.random(-75,75),0,math.random(-75,75))*CFrame.Angles(math.rad(-90 + math.random(-15,15)),0,math.rad(math.random(-15,15))) | |
3749 | lb.Anchored = false | |
3750 | lb.Parent = char | |
3751 | local thingery = Instance.new("SpecialMesh",lb) | |
3752 | thingery.MeshType = "Sphere" | |
3753 | thingery.Scale = vt(20,20,20) | |
3754 | game:GetService("Debris"):AddItem(lb, 10) | |
3755 | local bv = Instance.new("BodyVelocity") | |
3756 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3757 | bv.velocity = lb.CFrame.lookVector*math.random(75,250) | |
3758 | bv.Parent = lb | |
3759 | sphere(2.5,"Add",lb.CFrame,vt(50,50,0),0.25,MAINRUINCOLOR) | |
3760 | sphere(5,"Add",lb.CFrame,vt(50,50,0),0.5,MAINRUINCOLOR) | |
3761 | CFuncs["Sound"].Create("rbxassetid://633627961",lb, 5, 1) | |
3762 | CFuncs["Sound"].Create("rbxassetid://1002081188", lb, 5, 1) | |
3763 | CFuncs["Sound"].Create("rbxassetid://741272936", lb, 5, 1) | |
3764 | CFuncs["Sound"].Create("rbxassetid://1192402877", lb, 5, 1) | |
3765 | local hitted = false | |
3766 | coroutine.resume(coroutine.create(function() | |
3767 | while true do | |
3768 | swait(1) | |
3769 | if lb.Parent ~= nil and hitted == false then | |
3770 | 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) | |
3771 | elseif lb.Parent == nil then | |
3772 | break | |
3773 | end | |
3774 | end | |
3775 | end)) | |
3776 | ||
3777 | game:GetService("Debris"):AddItem(a, 0.1) | |
3778 | ||
3779 | coroutine.resume(coroutine.create(function() | |
3780 | swait(5) | |
3781 | lb.Touched:connect(function(hit) | |
3782 | if hitted == false and not hit:IsDescendantOf(Character) then | |
3783 | hitted = true | |
3784 | lb.Transparency = 1 | |
3785 | lb.Anchored = true | |
3786 | CFuncs["Sound"].Create("rbxassetid://1177785010", lb, 5, 1) | |
3787 | CFuncs["Sound"].Create("rbxassetid://192410089", lb, 5, 0.7) | |
3788 | CFuncs["Sound"].Create("rbxassetid://579687077", lb, 2.5, 0.75) | |
3789 | CFuncs["Sound"].Create("rbxassetid://1060191237", lb, 3, 0.75) | |
3790 | CFuncs["Sound"].Create("rbxassetid://164881112", lb, 5, 1) | |
3791 | CFuncs["Sound"].Create("rbxassetid://429123896", lb, 3.5, 0.85) | |
3792 | MagniDamage(lb, 45, 90,170, 0, "Normal") | |
3793 | CameraEnshaking(1,5) | |
3794 | sphere(8,"Add",lb.CFrame,vt(20,20,20),1,MAINRUINCOLOR) | |
3795 | sphere(16,"Add",lb.CFrame,vt(20,20,20),2,MAINRUINCOLOR) | |
3796 | for i = 0, 9 do | |
3797 | 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) | |
3798 | end | |
3799 | for i = 0, 49 do | |
3800 | swait() | |
3801 | MagniDamage(lb, 60, 20,40, 0, "Normal") | |
3802 | 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) | |
3803 | end | |
3804 | end | |
3805 | end) | |
3806 | end)) | |
3807 | end | |
3808 | Overed = true | |
3809 | orb:Destroy() | |
3810 | end)) | |
3811 | ||
3812 | attack = false | |
3813 | end | |
3814 | ||
3815 | ||
3816 | function StarDivision() | |
3817 | attack = true | |
3818 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2, 1.5) | |
3819 | for i = 0, 2, 0.1 do | |
3820 | swait() | |
3821 | 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) | |
3822 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-10)),.6) | |
3823 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(10)),.6) | |
3824 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90)),.6) | |
3825 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-90)),.6) | |
3826 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.6) | |
3827 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.6) | |
3828 | end | |
3829 | local orb = Instance.new("Part", char) | |
3830 | orb.BrickColor = MAINRUINCOLOR | |
3831 | orb.CanCollide = false | |
3832 | orb.FormFactor = 3 | |
3833 | orb.Name = "Ring" | |
3834 | orb.Material = "Neon" | |
3835 | orb.Size = Vector3.new(1, 1, 1) | |
3836 | orb.Transparency = 0 | |
3837 | orb.TopSurface = 0 | |
3838 | orb.BottomSurface = 0 | |
3839 | local orbm = Instance.new("SpecialMesh", orb) | |
3840 | orbm.MeshType = "Sphere" | |
3841 | orbm.Name = "SizeMesh" | |
3842 | orbm.Scale = vt(2,2,2) | |
3843 | local a = Instance.new("Part",workspace) | |
3844 | a.Name = "Direction" | |
3845 | a.Anchored = true | |
3846 | a.BrickColor = bc("Bright red") | |
3847 | a.Material = "Neon" | |
3848 | a.Transparency = 1 | |
3849 | a.CanCollide = false | |
3850 | local ray = Ray.new( | |
3851 | sorb.CFrame.p, -- origin | |
3852 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
3853 | ) | |
3854 | local ignore = sorb | |
3855 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3856 | a.BottomSurface = 10 | |
3857 | a.TopSurface = 10 | |
3858 | local distance = (sorb.CFrame.p - position).magnitude | |
3859 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
3860 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3861 | orb.CFrame = a.CFrame | |
3862 | a:Destroy() | |
3863 | local bv = Instance.new("BodyVelocity") | |
3864 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3865 | bv.velocity = orb.CFrame.lookVector*100 | |
3866 | bv.Parent = orb | |
3867 | local hitted = false | |
3868 | game:GetService("Debris"):AddItem(orb, 10) | |
3869 | CFuncs["Sound"].Create("rbxassetid://376970418",orb, 1.5, 1.15) | |
3870 | CFuncs["Sound"].Create("rbxassetid://633627961",orb, 1, 1.15) | |
3871 | CFuncs["Sound"].Create("rbxassetid://1002081188", orb, 1, 1.15) | |
3872 | CFuncs["Sound"].Create("rbxassetid://741272936", orb, 1, 1.15) | |
3873 | CFuncs["Sound"].Create("rbxassetid://1192402877", orb, 1, 1.15) | |
3874 | coroutine.resume(coroutine.create(function() | |
3875 | while true do | |
3876 | swait(1) | |
3877 | if orb.Parent ~= nil and hitted == false then | |
3878 | 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) | |
3879 | elseif orb.Parent == nil then | |
3880 | break | |
3881 | end | |
3882 | end | |
3883 | end)) | |
3884 | coroutine.resume(coroutine.create(function() | |
3885 | swait(1) | |
3886 | orb.Touched:connect(function(hit) | |
3887 | if hitted == false then | |
3888 | hitted = true | |
3889 | game:GetService("Debris"):AddItem(orb, 5) | |
3890 | orb.Transparency = 1 | |
3891 | orb.Anchored = true | |
3892 | local elocacenter = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3893 | elocacenter.Anchored = true | |
3894 | elocacenter.CFrame = orb.CFrame | |
3895 | elocacenter.Orientation = vt(0,0,0) | |
3896 | local eloca1 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3897 | eloca1.Anchored = true | |
3898 | eloca1.CFrame = elocacenter.CFrame | |
3899 | local eloca2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3900 | eloca2.Anchored = true | |
3901 | eloca2.CFrame = elocacenter.CFrame | |
3902 | local eloca3 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3903 | eloca3.Anchored = true | |
3904 | eloca3.CFrame = elocacenter.CFrame | |
3905 | local eloca4 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random()) | |
3906 | eloca4.Anchored = true | |
3907 | eloca4.CFrame = elocacenter.CFrame | |
3908 | local lookavec = 0 | |
3909 | local speeds = 0 | |
3910 | CameraEnshaking(1,1) | |
3911 | CFuncs["Sound"].Create("rbxassetid://419447292", elocacenter, 10,1) | |
3912 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3913 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3914 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3915 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3916 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
3917 | for i = 0, 99 do | |
3918 | swait() | |
3919 | lookavec = lookavec + 1 | |
3920 | speeds = speeds + 0.1 | |
3921 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
3922 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
3923 | 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) | |
3924 | ||
3925 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
3926 | 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) | |
3927 | ||
3928 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
3929 | 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) | |
3930 | ||
3931 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
3932 | 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) | |
3933 | end | |
3934 | ||
3935 | for i = 0, 149 do | |
3936 | swait() | |
3937 | speeds = speeds + 0.1 | |
3938 | elocacenter.CFrame = elocacenter.CFrame*CFrame.Angles(0,math.rad(speeds),0) | |
3939 | eloca1.CFrame = elocacenter.CFrame*CFrame.new(lookavec,0,0) | |
3940 | 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) | |
3941 | ||
3942 | eloca2.CFrame = elocacenter.CFrame*CFrame.new(-lookavec,0,0) | |
3943 | 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) | |
3944 | ||
3945 | eloca3.CFrame = elocacenter.CFrame*CFrame.new(0,0,lookavec) | |
3946 | 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) | |
3947 | ||
3948 | eloca4.CFrame = elocacenter.CFrame*CFrame.new(0,0,-lookavec) | |
3949 | 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) | |
3950 | end | |
3951 | for i, v in pairs(FindNearestHead(elocacenter.CFrame.p, 125)) do | |
3952 | if v:FindFirstChild('Head') then | |
3953 | dmg(v) | |
3954 | end | |
3955 | end | |
3956 | CameraEnshaking(7,30) | |
3957 | MagniDamage(elocacenter, 225, 50,75, 0, "Normal") | |
3958 | CFuncs["Sound"].Create("rbxassetid://468991944", char, 4, 1) | |
3959 | CFuncs["Sound"].Create("rbxassetid://533636230", char, 5, 0.75) | |
3960 | CFuncs["Sound"].Create("rbxassetid://419447292", char, 1,1) | |
3961 | CFuncs["Sound"].Create("rbxassetid://421328847", char, 1,1) | |
3962 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),-0.25,MAINRUINCOLOR) | |
3963 | sphere(1,"Add",elocacenter.CFrame,vt(125,90000,125),0.5,MAINRUINCOLOR) | |
3964 | sphere(1,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
3965 | sphere(2,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
3966 | sphere(3,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
3967 | sphere(4,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
3968 | sphere(5,"Add",elocacenter.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
3969 | for i = 0, 24 do | |
3970 | 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) | |
3971 | 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) | |
3972 | 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) | |
3973 | 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) | |
3974 | end | |
3975 | coroutine.resume(coroutine.create(function() | |
3976 | for i = 0, 499 do | |
3977 | swait(1) | |
3978 | MagniDamage(elocacenter, 90, 1,5, 0, "Normal") | |
3979 | 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) | |
3980 | end | |
3981 | elocacenter:Destroy() | |
3982 | eloca1:Destroy() | |
3983 | eloca2:Destroy() | |
3984 | eloca3:Destroy() | |
3985 | eloca4:Destroy() | |
3986 | end)) | |
3987 | end | |
3988 | end) | |
3989 | end)) | |
3990 | attack = false | |
3991 | end | |
3992 | ||
3993 | ||
3994 | function UniversalCollapse() | |
3995 | attack = true | |
3996 | local speedearn = 0 | |
3997 | hum.WalkSpeed = 0 | |
3998 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 1) | |
3999 | for i = 0, 10, 0.1 do | |
4000 | swait() | |
4001 | speedearn = speedearn + 0.1 | |
4002 | 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) | |
4003 | 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) | |
4004 | 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) | |
4005 | 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) | |
4006 | 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) | |
4007 | 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) | |
4008 | 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) | |
4009 | 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) | |
4010 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
4011 | 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) | |
4012 | 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) | |
4013 | end | |
4014 | CameraEnshaking(5,45) | |
4015 | sphere(5,"Add",root.CFrame,vt(0,0,0),25,MAINRUINCOLOR) | |
4016 | CFuncs["Sound"].Create("rbxassetid://1177785010", char, 10, 1) | |
4017 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
4018 | if v:FindFirstChild('Head') then | |
4019 | dmg(v) | |
4020 | end | |
4021 | end | |
4022 | hum.WalkSpeed = storehumanoidWS | |
4023 | attack = false | |
4024 | end | |
4025 | function ChaosBegone() | |
4026 | attack = true | |
4027 | local speedearn = 0 | |
4028 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 10, 0.75) | |
4029 | for i = 0, 10, 0.1 do | |
4030 | swait() | |
4031 | speedearn = speedearn + 0.1 | |
4032 | 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) | |
4033 | 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) | |
4034 | 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) | |
4035 | 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) | |
4036 | 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) | |
4037 | RH.C0=clerp(RH.C0,cf(1,-0.25,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(20)),.2) | |
4038 | 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) | |
4039 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4040 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4041 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(-20)),.2) | |
4042 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(140),math.rad(0),math.rad(20)),.2) | |
4043 | end | |
4044 | CFuncs["Sound"].Create("rbxassetid://438666141", char, 7.5,1) | |
4045 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 7.5, 1) | |
4046 | CameraEnshaking(5,25) | |
4047 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
4048 | if v:FindFirstChild('Head') then | |
4049 | dmg(v) | |
4050 | end | |
4051 | end | |
4052 | sphere(5,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),1*1000,BrickColor.random()) | |
4053 | sphere(10,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(0,0,0),2*1000,BrickColor.random()) | |
4054 | sphere(1,"Add",root.CFrame*CFrame.new(0,-2.9,0),vt(100*1000,0.1,100*1000),0.01,BrickColor.random()) | |
4055 | for i = 0, 3, 0.1 do | |
4056 | swait() | |
4057 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
4058 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
4059 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
4060 | sphereMK(2.5,0.75,"Add",root.CFrame*CFrame.new(math.random(-52.5*10,52.5*10),-5,math.random(-52.5*10,52.5*10))*CFrame.Angles(math.rad(90 + math.rad(math.random(-45,45))),math.rad(math.random(-45,45)),math.rad(math.random(-45,45))),2.5,2.5,25,-0.025,BrickColor.random(),0) | |
4061 | 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) | |
4062 | 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) | |
4063 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
4064 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.4) | |
4065 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(30)),.4) | |
4066 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-30)),.4) | |
4067 | end | |
4068 | attack = false | |
4069 | end | |
4070 | ||
4071 | function orb_spawn_norm(positted,timer,color,MagniBoost,min,max,volEx,ShakePower,volSummon) | |
4072 | local orb = Instance.new("Part", char) | |
4073 | orb.Anchored = true | |
4074 | orb.BrickColor = color | |
4075 | orb.CanCollide = false | |
4076 | orb.FormFactor = 3 | |
4077 | orb.Name = "Ring" | |
4078 | orb.Material = "Neon" | |
4079 | orb.Size = Vector3.new(1, 1, 1) | |
4080 | orb.Transparency = 0 | |
4081 | orb.TopSurface = 0 | |
4082 | orb.BottomSurface = 0 | |
4083 | local orbm = Instance.new("SpecialMesh", orb) | |
4084 | orbm.MeshType = "Sphere" | |
4085 | orb.CFrame = positted | |
4086 | orbm.Name = "SizeMesh" | |
4087 | orbm.Scale = vt(1,1,1) | |
4088 | coroutine.wrap(function() | |
4089 | while orb and orb.Parent do | |
4090 | if glitchymode then | |
4091 | local val = math.random(1,255) | |
4092 | local color = Color3.fromRGB(val,val,val) | |
4093 | orb.Color = color | |
4094 | end | |
4095 | swait() | |
4096 | end | |
4097 | end)() | |
4098 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, volSummon, 1) | |
4099 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.05,orb.BrickColor) | |
4100 | --[[for i = 0, 2 do | |
4101 | 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) | |
4102 | end]]-- | |
4103 | coroutine.resume(coroutine.create(function() | |
4104 | wait(timer) | |
4105 | CameraEnshaking(3,ShakePower) | |
4106 | orb.Transparency = 1 | |
4107 | MagniDamage(orb, 3.5*MagniBoost, min,max, 0, "Normal") | |
4108 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.1*MagniBoost,orb.BrickColor) | |
4109 | --[[for i = 0, 4 do | |
4110 | 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) | |
4111 | end]]-- | |
4112 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, volEx, 0.7) | |
4113 | wait(3) | |
4114 | orb:Destroy() | |
4115 | end)) | |
4116 | end | |
4117 | ||
4118 | function orb_spawn(positted,timer) | |
4119 | local orb = Instance.new("Part", char) | |
4120 | orb.Anchored = true | |
4121 | orb.BrickColor = BrickColor.new("White") | |
4122 | ||
4123 | orb.CanCollide = false | |
4124 | orb.FormFactor = 3 | |
4125 | orb.Name = "Ring" | |
4126 | orb.Material = "Neon" | |
4127 | orb.Size = Vector3.new(1, 1, 1) | |
4128 | orb.Transparency = 0 | |
4129 | orb.TopSurface = 0 | |
4130 | orb.BottomSurface = 0 | |
4131 | local orbm = Instance.new("SpecialMesh", orb) | |
4132 | orbm.MeshType = "Sphere" | |
4133 | orb.CFrame = positted | |
4134 | orbm.Name = "SizeMesh" | |
4135 | orbm.Scale = vt(1,1,1) | |
4136 | CFuncs["Sound"].Create("rbxassetid://183763506", orb, 1.5, 1) | |
4137 | sphere(2.5,"Add",orb.CFrame,vt(1,1,1),0.025,orb.BrickColor) | |
4138 | coroutine.wrap(function() | |
4139 | while orb and orb.Parent do | |
4140 | if glitchymode then | |
4141 | local val = math.random(1,255) | |
4142 | local color = Color3.fromRGB(val,val,val) | |
4143 | orb.Color = color | |
4144 | end | |
4145 | swait() | |
4146 | end | |
4147 | end)() | |
4148 | for i = 0, 2 do | |
4149 | 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) | |
4150 | end | |
4151 | ||
4152 | coroutine.resume(coroutine.create(function() | |
4153 | wait(timer) | |
4154 | CameraEnshaking(3,2) | |
4155 | orb.Transparency = 1 | |
4156 | MagniDamage(orb, 17.5, 10,50, 0, "Normal") | |
4157 | sphere(5,"Add",orb.CFrame,vt(1,1,1),0.5,orb.BrickColor) | |
4158 | for i = 0, 4 do | |
4159 | 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) | |
4160 | end | |
4161 | CFuncs["Sound"].Create("rbxassetid://192410089", orb, 2, 0.7) | |
4162 | wait(3) | |
4163 | orb:Destroy() | |
4164 | end)) | |
4165 | end | |
4166 | ||
4167 | function scattercorrupt() | |
4168 | attack = true | |
4169 | local rot = 0 | |
4170 | local randomrotations = math.random(1,2) | |
4171 | local lookv = 2.5 | |
4172 | local power = 5 | |
4173 | sphere(1,"Add",root.CFrame,vt(1,100000,1),0.5,BrickColor.new("Royal purple")) | |
4174 | sphere(1,"Add",root.CFrame,vt(1,1,1),0.75,BrickColor.new("Royal purple")) | |
4175 | for i = 0, 9 do | |
4176 | 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) | |
4177 | end | |
4178 | CFuncs["Sound"].Create("rbxassetid://180204650", char, 2.5, 0.6) | |
4179 | CFuncs["Sound"].Create("rbxassetid://233856079", char, 1, 0.5) | |
4180 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 2.5, 1) | |
4181 | CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,0.75) | |
4182 | CFuncs["Sound"].Create("rbxassetid://579687077", char, 0.5,0.5) | |
4183 | local hite = Instance.new("Part", char) | |
4184 | hite.Anchored = true | |
4185 | hite.CanCollide = false | |
4186 | hite.FormFactor = 3 | |
4187 | hite.Name = "Ring" | |
4188 | hite.Material = "Neon" | |
4189 | hite.Size = Vector3.new(1, 1, 1) | |
4190 | hite.Transparency = 1 | |
4191 | hite.TopSurface = 0 | |
4192 | hite.BottomSurface = 0 | |
4193 | hite.CFrame = root.CFrame*CFrame.new(0,-2.5,0) | |
4194 | local rem = Instance.new("Part", char) | |
4195 | rem.Anchored = true | |
4196 | rem.CanCollide = false | |
4197 | rem.FormFactor = 3 | |
4198 | rem.Name = "Ring" | |
4199 | rem.Material = "Neon" | |
4200 | rem.Size = Vector3.new(1, 1, 1) | |
4201 | rem.Transparency = 1 | |
4202 | rem.TopSurface = 0 | |
4203 | rem.BottomSurface = 0 | |
4204 | rem.CFrame = hite.CFrame | |
4205 | local rem2 = rem:Clone() | |
4206 | rem2.Parent = char | |
4207 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4208 | local rem3 = rem:Clone() | |
4209 | rem3.Parent = char | |
4210 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
4211 | local rem4 = rem:Clone() | |
4212 | rem4.Parent = char | |
4213 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
4214 | hite:Destroy() | |
4215 | coroutine.resume(coroutine.create(function() | |
4216 | for i = 0, 24 do | |
4217 | swait(1) | |
4218 | if randomrotations == 1 then | |
4219 | rot = rot + 1 | |
4220 | elseif randomrotations == 2 then | |
4221 | rot = rot - 1 | |
4222 | end | |
4223 | power = power + 0.5 | |
4224 | lookv = lookv + 7.5 | |
4225 | rem.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
4226 | rem2.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4227 | rem3.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(180),0) | |
4228 | rem4.CFrame = rem.CFrame*CFrame.Angles(0,math.rad(270),0) | |
4229 | orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4230 | orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4231 | orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4232 | orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector*lookv,3,BrickColor.new("Royal purple"),power,25,75,10,power/5,7.5) | |
4233 | end | |
4234 | end)) | |
4235 | attack = false | |
4236 | end | |
4237 | function yinyangi() | |
4238 | attack = true | |
4239 | for i = 0, 2, 0.1 do | |
4240 | swait() | |
4241 | 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) | |
4242 | 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) | |
4243 | 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) | |
4244 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
4245 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.2) | |
4246 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.2) | |
4247 | end | |
4248 | local bv = Instance.new("BodyVelocity") | |
4249 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
4250 | bv.velocity = root.CFrame.lookVector*175 | |
4251 | bv.Parent = root | |
4252 | for Rotations = 0, 9 do | |
4253 | ||
4254 | for i = 0, 1, 0.5 do | |
4255 | swait() | |
4256 | bv.velocity = root.CFrame.lookVector*175 | |
4257 | 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) | |
4258 | 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) | |
4259 | 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) | |
4260 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4261 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4262 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4263 | end | |
4264 | ||
4265 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4266 | for i = 0, 1, 0.5 do | |
4267 | swait() | |
4268 | bv.velocity = root.CFrame.lookVector*175 | |
4269 | 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) | |
4270 | 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) | |
4271 | 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) | |
4272 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4273 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4274 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4275 | end | |
4276 | ||
4277 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4278 | for i = 0, 1, 0.5 do | |
4279 | swait() | |
4280 | bv.velocity = root.CFrame.lookVector*175 | |
4281 | 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) | |
4282 | 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) | |
4283 | 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) | |
4284 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4285 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4286 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4287 | end | |
4288 | ||
4289 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4290 | for i = 0, 1, 0.5 do | |
4291 | swait() | |
4292 | bv.velocity = root.CFrame.lookVector*175 | |
4293 | 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) | |
4294 | 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) | |
4295 | 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) | |
4296 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.5) | |
4297 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.5) | |
4298 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0),math.rad(0),math.rad(-90)),.5) | |
4299 | end | |
4300 | ||
4301 | orb_spawn(rarm.CFrame*CFrame.new(0,-1,0),2.5) | |
4302 | end | |
4303 | bv:Destroy() | |
4304 | attack = false | |
4305 | end | |
4306 | ||
4307 | function JusticeBeam() | |
4308 | attack = true | |
4309 | ||
4310 | local rngb = Instance.new("Part", char) | |
4311 | rngb.Anchored = true | |
4312 | rngb.BrickColor = origcolor | |
4313 | rngb.CanCollide = false | |
4314 | rngb.FormFactor = 3 | |
4315 | rngb.Name = "Ring" | |
4316 | rngb.Material = "Neon" | |
4317 | rngb.Size = Vector3.new(1, 0.05, 1) | |
4318 | rngb.Transparency = 1 | |
4319 | rngb.TopSurface = 0 | |
4320 | rngb.BottomSurface = 0 | |
4321 | local rngmb = Instance.new("SpecialMesh", rngb) | |
4322 | rngmb.MeshType = "Brick" | |
4323 | rngmb.Name = "SizeMesh" | |
4324 | rngmb.Scale = vt(0,1,0) | |
4325 | ||
4326 | local orb = rngb:Clone() | |
4327 | orb.Parent = char | |
4328 | orb.Transparency = 0 | |
4329 | orb.BrickColor = BrickColor.new("White") | |
4330 | orb.Size = vt(1,1,1) | |
4331 | local orbmish = orb.SizeMesh | |
4332 | orbmish.Scale = vt(0,0,0) | |
4333 | orbmish.MeshType = "Sphere" | |
4334 | ||
4335 | local orbe = rngb:Clone() | |
4336 | orbe.Parent = char | |
4337 | orbe.Transparency = 0.5 | |
4338 | orbe.BrickColor = BrickColor.new("New Yeller") | |
4339 | orbe.Size = vt(1,1,1) | |
4340 | local orbmish2 = orbe.SizeMesh | |
4341 | orbmish2.Scale = vt(0,0,0) | |
4342 | orbmish2.MeshType = "Sphere" | |
4343 | orbe.Color = Color3.new(1,1,1) | |
4344 | ||
4345 | rngb:Destroy() | |
4346 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1) | |
4347 | local scaled = 1 | |
4348 | for i = 0,5,0.1 do | |
4349 | swait() | |
4350 | scaled = scaled - 0.02 | |
4351 | if rainbowmode == true then | |
4352 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4353 | end | |
4354 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
4355 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
4356 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4357 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4358 | sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25) | |
4359 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4360 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4361 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4362 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4363 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
4364 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
4365 | RootPart.CFrame = FaceMouse()[1] | |
4366 | end]]-- | |
4367 | for i = 0,5,0.1 do | |
4368 | swait() | |
4369 | if rainbowmode == true then | |
4370 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4371 | end | |
4372 | if glitchymode then | |
4373 | local val = math.random(1,255) | |
4374 | local color = Color3.fromRGB(val,val,val) | |
4375 | orbe.Color = color | |
4376 | end | |
4377 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4378 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4379 | 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) | |
4380 | 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) | |
4381 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
4382 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
4383 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),0,math.rad(20 + 2.5 * math.cos(sine / 28))),.1) | |
4384 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),0,math.rad(-20 - 2.5 * math.cos(sine / 28))),.1) | |
4385 | end | |
4386 | orbe.Transparency = 1 | |
4387 | orb.Transparency = 1 | |
4388 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
4389 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1) | |
4390 | local a2 = Instance.new("Part",Character) | |
4391 | a2.Name = "Direction" | |
4392 | a2.Anchored = true | |
4393 | a2.BrickColor = bc("New Yeller") | |
4394 | a2.Color = Color3.new(1,1,1) | |
4395 | a2.Material = "Neon" | |
4396 | a2.Transparency = 0.5 | |
4397 | a2.Shape = "Cylinder" | |
4398 | a2.CanCollide = false | |
4399 | local ba = Instance.new("Part",Character) | |
4400 | ba.Name = "HitDirect" | |
4401 | ba.Anchored = true | |
4402 | ba.BrickColor = bc("Cool yellow") | |
4403 | ba.Material = "Neon" | |
4404 | ba.Transparency = 1 | |
4405 | ba.CanCollide = false | |
4406 | local ray = Ray.new( | |
4407 | orb.CFrame.p, -- origin | |
4408 | root.CFrame.lookVector.unit * 1000 -- direction | |
4409 | ) | |
4410 | local ignore = Character | |
4411 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4412 | a2.Transparency = .75 | |
4413 | a2.BottomSurface = 10 | |
4414 | a2.TopSurface = 10 | |
4415 | local distance = (orb.CFrame.p - position).magnitude | |
4416 | a2.Size = Vector3.new(distance, 1, 1) | |
4417 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4418 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4419 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4420 | game:GetService("Debris"):AddItem(a2, 20) | |
4421 | game:GetService("Debris"):AddItem(ba, 20) | |
4422 | local msh2 = Instance.new("SpecialMesh",a2) | |
4423 | msh2.MeshType = "Cylinder" | |
4424 | msh2.Scale = vt(1,6*5,6*5) | |
4425 | ||
4426 | local snd = CFuncs.Sound.Create("rbxassetid://294188875", Torso, 10, 1) | |
4427 | for i = 1, 80*2 do | |
4428 | 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) | |
4429 | 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) | |
4430 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
4431 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
4432 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),0,math.rad(20 + 2.5 * math.cos(sine / 28))),.1) | |
4433 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),0,math.rad(-20 - 2.5 * math.cos(sine / 28))),.1) | |
4434 | swait() | |
4435 | CameraEnshaking(1,5) | |
4436 | a2.Color = Color3.new(1,1,1) | |
4437 | a2.Transparency = .25 | |
4438 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4439 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4440 | ray = Ray.new( | |
4441 | orb.CFrame.p, -- origin | |
4442 | root.CFrame.lookVector.unit * 1000 -- direction | |
4443 | ) | |
4444 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4445 | distance = (orb.CFrame.p - position).magnitude | |
4446 | if typrot == 1 then | |
4447 | rotation = rotation + 2.5 | |
4448 | elseif typrot == 2 then | |
4449 | rotation = rotation - 2.5 | |
4450 | end | |
4451 | a2.Size = Vector3.new(distance, 1, 1) | |
4452 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4453 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4454 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4455 | msh2.Scale = msh2.Scale - vt(0,.19,.19) | |
4456 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
4457 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
4458 | MagniDamage(ba, 30, 5,25, 0, "Normal") | |
4459 | end | |
4460 | a2:Destroy() | |
4461 | ba:Destroy() | |
4462 | orb:Destroy() | |
4463 | orbe:Destroy() | |
4464 | attack = false | |
4465 | end | |
4466 | ||
4467 | function Wip() | |
4468 | attack = true | |
4469 | ||
4470 | local rngb = Instance.new("Part", char) | |
4471 | rngb.Anchored = true | |
4472 | rngb.BrickColor = origcolor | |
4473 | rngb.CanCollide = false | |
4474 | rngb.FormFactor = 3 | |
4475 | rngb.Name = "Ring" | |
4476 | rngb.Material = "Neon" | |
4477 | rngb.Size = Vector3.new(1, 0.05, 1) | |
4478 | rngb.Transparency = 1 | |
4479 | rngb.TopSurface = 0 | |
4480 | rngb.BottomSurface = 0 | |
4481 | local rngmb = Instance.new("SpecialMesh", rngb) | |
4482 | rngmb.MeshType = "Brick" | |
4483 | rngmb.Name = "SizeMesh" | |
4484 | rngmb.Scale = vt(0,1,0) | |
4485 | ||
4486 | local orb = rngb:Clone() | |
4487 | orb.Parent = char | |
4488 | orb.Transparency = 0 | |
4489 | orb.BrickColor = BrickColor.new("White") | |
4490 | orb.Size = vt(1,1,1) | |
4491 | local orbmish = orb.SizeMesh | |
4492 | orbmish.Scale = vt(0,0,0) | |
4493 | orbmish.MeshType = "Sphere" | |
4494 | ||
4495 | local orbe = rngb:Clone() | |
4496 | orbe.Parent = char | |
4497 | orbe.Transparency = 0.5 | |
4498 | orbe.BrickColor = BrickColor.new("New Yeller") | |
4499 | orbe.Size = vt(1,1,1) | |
4500 | local orbmish2 = orbe.SizeMesh | |
4501 | orbmish2.Scale = vt(0,0,0) | |
4502 | orbmish2.MeshType = "Sphere" | |
4503 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4504 | ||
4505 | hum.AutoRotate = false | |
4506 | rngb:Destroy() | |
4507 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1) | |
4508 | local scaled = 1 | |
4509 | for i = 0,5,0.1 do | |
4510 | swait() | |
4511 | scaled = scaled - 0.02 | |
4512 | if rainbowmode == true then | |
4513 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4514 | end | |
4515 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
4516 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
4517 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4518 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4519 | sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25) | |
4520 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4521 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4522 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4523 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4524 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
4525 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
4526 | RootPart.CFrame = FaceMouse()[1] | |
4527 | end]]-- | |
4528 | for i = 0,5,0.1 do | |
4529 | swait() | |
4530 | if rainbowmode == true then | |
4531 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4532 | end | |
4533 | if glitchymode then | |
4534 | local val = math.random(1,255) | |
4535 | local color = Color3.fromRGB(val,val,val) | |
4536 | orbe.Color = color | |
4537 | end | |
4538 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4539 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4540 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4541 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4542 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4543 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4544 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
4545 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
4546 | RootPart.CFrame = FaceMouse()[1] | |
4547 | end | |
4548 | orbe.Transparency = 1 | |
4549 | orb.Transparency = 1 | |
4550 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
4551 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1) | |
4552 | local a = Instance.new("Part",Character) | |
4553 | a.Name = "Direction" | |
4554 | a.Anchored = true | |
4555 | a.BrickColor = bc("White") | |
4556 | a.Material = "Neon" | |
4557 | a.Transparency = 0 | |
4558 | a.Shape = "Cylinder" | |
4559 | a.CanCollide = false | |
4560 | local a2 = Instance.new("Part",Character) | |
4561 | a2.Name = "Direction" | |
4562 | a2.Anchored = true | |
4563 | a2.BrickColor = bc("New Yeller") | |
4564 | a2.Color = Color3.new(r/255,g/255,b/255) | |
4565 | a2.Material = "Neon" | |
4566 | a2.Transparency = 0.5 | |
4567 | a2.Shape = "Cylinder" | |
4568 | a2.CanCollide = false | |
4569 | local ba = Instance.new("Part",Character) | |
4570 | ba.Name = "HitDirect" | |
4571 | ba.Anchored = true | |
4572 | ba.BrickColor = bc("Cool yellow") | |
4573 | ba.Material = "Neon" | |
4574 | ba.Transparency = 1 | |
4575 | ba.CanCollide = false | |
4576 | local ray = Ray.new( | |
4577 | orb.CFrame.p, -- origin | |
4578 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4579 | ) | |
4580 | local ignore = Character | |
4581 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4582 | a.BottomSurface = 10 | |
4583 | a.TopSurface = 10 | |
4584 | a2.BottomSurface = 10 | |
4585 | a2.TopSurface = 10 | |
4586 | local distance = (orb.CFrame.p - position).magnitude | |
4587 | a.Size = Vector3.new(distance, 1, 1) | |
4588 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4589 | a2.Size = Vector3.new(distance, 1, 1) | |
4590 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4591 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4592 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4593 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4594 | game:GetService("Debris"):AddItem(a, 20) | |
4595 | game:GetService("Debris"):AddItem(a2, 20) | |
4596 | game:GetService("Debris"):AddItem(ba, 20) | |
4597 | local msh = Instance.new("SpecialMesh",a) | |
4598 | msh.MeshType = "Cylinder" | |
4599 | msh.Scale = vt(1,5*5,5*5) | |
4600 | local msh2 = Instance.new("SpecialMesh",a2) | |
4601 | msh2.MeshType = "Cylinder" | |
4602 | msh2.Scale = vt(1,6*5,6*5) | |
4603 | ||
4604 | for i = 0,10,0.1 do | |
4605 | swait() | |
4606 | CameraEnshaking(1,5) | |
4607 | a2.Color = Color3.new(r/255,g/255,b/255) | |
4608 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4609 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4610 | ray = Ray.new( | |
4611 | orb.CFrame.p, -- origin | |
4612 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4613 | ) | |
4614 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4615 | distance = (orb.CFrame.p - position).magnitude | |
4616 | if typrot == 1 then | |
4617 | rotation = rotation + 2.5 | |
4618 | elseif typrot == 2 then | |
4619 | rotation = rotation - 2.5 | |
4620 | end | |
4621 | RootPart.CFrame = FaceMouse()[1] | |
4622 | a.Size = Vector3.new(distance, 1, 1) | |
4623 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4624 | a2.Size = Vector3.new(distance, 1, 1) | |
4625 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4626 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4627 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4628 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4629 | msh.Scale = msh.Scale - vt(0,0.05*5,0.05*5) | |
4630 | msh2.Scale = msh2.Scale - vt(0,0.06*5,0.06*5) | |
4631 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
4632 | sphereMK(5,1.5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,MAINRUINCOLOR,0) | |
4633 | MagniDamage(ba, 30, 5,25, 0, "Normal") | |
4634 | end | |
4635 | a:Destroy() | |
4636 | a2:Destroy() | |
4637 | ba:Destroy() | |
4638 | orb:Destroy() | |
4639 | orbe:Destroy() | |
4640 | hum.AutoRotate = true | |
4641 | attack = false | |
4642 | end | |
4643 | ||
4644 | ||
4645 | function UniversalSpark() | |
4646 | attack = true | |
4647 | ||
4648 | local rngb = Instance.new("Part", char) | |
4649 | rngb.Anchored = true | |
4650 | rngb.BrickColor = origcolor | |
4651 | rngb.CanCollide = false | |
4652 | rngb.FormFactor = 3 | |
4653 | rngb.Name = "Ring" | |
4654 | rngb.Material = "Neon" | |
4655 | rngb.Size = Vector3.new(1, 0.05, 1) | |
4656 | rngb.Transparency = 1 | |
4657 | rngb.TopSurface = 0 | |
4658 | rngb.BottomSurface = 0 | |
4659 | local rngmb = Instance.new("SpecialMesh", rngb) | |
4660 | rngmb.MeshType = "Brick" | |
4661 | rngmb.Name = "SizeMesh" | |
4662 | rngmb.Scale = vt(0,1,0) | |
4663 | ||
4664 | local orb = rngb:Clone() | |
4665 | orb.Parent = char | |
4666 | orb.Transparency = 0 | |
4667 | orb.BrickColor = BrickColor.new("White") | |
4668 | orb.Size = vt(1,1,1) | |
4669 | local orbmish = orb.SizeMesh | |
4670 | orbmish.Scale = vt(0,0,0) | |
4671 | orbmish.MeshType = "Sphere" | |
4672 | ||
4673 | local orbe = rngb:Clone() | |
4674 | orbe.Parent = char | |
4675 | orbe.Transparency = 0.5 | |
4676 | orbe.BrickColor = BrickColor.new("New Yeller") | |
4677 | orbe.Size = vt(1,1,1) | |
4678 | local orbmish2 = orbe.SizeMesh | |
4679 | orbmish2.Scale = vt(0,0,0) | |
4680 | orbmish2.MeshType = "Sphere" | |
4681 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4682 | ||
4683 | rngb:Destroy() | |
4684 | --[[CFuncs["Sound"].Create("rbxassetid://136007472", orb, 1.5, 1) | |
4685 | local scaled = 1 | |
4686 | for i = 0,5,0.1 do | |
4687 | swait() | |
4688 | scaled = scaled - 0.02 | |
4689 | if rainbowmode == true then | |
4690 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4691 | end | |
4692 | orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5) | |
4693 | orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5) | |
4694 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4695 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4696 | sphereMKCharge(2.5,-0.5,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,25) | |
4697 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4698 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4699 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4700 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4701 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
4702 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
4703 | RootPart.CFrame = FaceMouse()[1] | |
4704 | end]]-- | |
4705 | for i = 0,5,0.1 do | |
4706 | swait() | |
4707 | if rainbowmode == true then | |
4708 | orbe.Color = Color3.new(r/255,g/255,b/255) | |
4709 | end | |
4710 | if glitchymode then | |
4711 | local val = math.random(1,255) | |
4712 | local color = Color3.fromRGB(val,val,val) | |
4713 | orbe.Color = color | |
4714 | end | |
4715 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4716 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*11.5 | |
4717 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.3) | |
4718 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
4719 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
4720 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4721 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
4722 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
4723 | RootPart.CFrame = FaceMouse()[1] | |
4724 | end | |
4725 | orbe.Transparency = 1 | |
4726 | orb.Transparency = 1 | |
4727 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*5 | |
4728 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1) | |
4729 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1) | |
4730 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
4731 | ||
4732 | CFuncs["Sound"].Create("rbxassetid://294188875", char, 1, 1) | |
4733 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1) | |
4734 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
4735 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1) | |
4736 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1) | |
4737 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85) | |
4738 | CFuncs["Sound"].Create("rbxassetid://164178927", char, 1, 1) | |
4739 | local xd= Instance.new("Sound",char) | |
4740 | xd.SoundId = "rbxassetid://445796828" | |
4741 | xd.Pitch = 0.75 | |
4742 | xd.Looped = true | |
4743 | xd.Volume = 1.25 | |
4744 | xd:Play() | |
4745 | local a = Instance.new("Part",Character) | |
4746 | a.Name = "Direction" | |
4747 | a.Anchored = true | |
4748 | a.BrickColor = bc("Alder") | |
4749 | a.Color = MAINRUINCOLOR.Color | |
4750 | a.Material = "Neon" | |
4751 | a.Transparency = 0.5 | |
4752 | a.Shape = "Cylinder" | |
4753 | a.CanCollide = false | |
4754 | local a2 = Instance.new("Part",Character) | |
4755 | a2.Name = "Direction" | |
4756 | a2.Anchored = true | |
4757 | a2.BrickColor = bc("New Yeller") | |
4758 | a2.Color = MAINRUINCOLOR.Color | |
4759 | a2.Material = "Neon" | |
4760 | a2.Transparency = 0.5 | |
4761 | a2.Shape = "Cylinder" | |
4762 | a2.CanCollide = false | |
4763 | local ba = Instance.new("Part",Character) | |
4764 | ba.Name = "HitDirect" | |
4765 | ba.Anchored = true | |
4766 | ba.BrickColor = bc("Cool yellow") | |
4767 | ba.Material = "Neon" | |
4768 | ba.Transparency = 1 | |
4769 | ba.CanCollide = false | |
4770 | local ray = Ray.new( | |
4771 | orb.CFrame.p, -- origin | |
4772 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4773 | ) | |
4774 | local ignore = Character | |
4775 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4776 | a.BottomSurface = 10 | |
4777 | a.TopSurface = 10 | |
4778 | a2.BottomSurface = 10 | |
4779 | a2.TopSurface = 10 | |
4780 | local distance = (orb.CFrame.p - position).magnitude | |
4781 | a.Size = Vector3.new(distance, 1, 1) | |
4782 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4783 | a2.Size = Vector3.new(distance, 1, 1) | |
4784 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4785 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4786 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4787 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4788 | game:GetService("Debris"):AddItem(a, 60) | |
4789 | game:GetService("Debris"):AddItem(a2, 60) | |
4790 | game:GetService("Debris"):AddItem(ba, 60) | |
4791 | local outerscale = 0 | |
4792 | local msh = Instance.new("SpecialMesh",a) | |
4793 | msh.MeshType = "Cylinder" | |
4794 | msh.Scale = vt(1,0,0) | |
4795 | local msh2 = Instance.new("SpecialMesh",a2) | |
4796 | msh2.MeshType = "Cylinder" | |
4797 | msh2.Scale = vt(1,0,0) | |
4798 | for i = 0,2,0.1 do | |
4799 | swait() | |
4800 | CameraEnshaking(1,1) | |
4801 | msh2.Scale = msh2.Scale + vt(0,outerscale*20,outerscale*20) | |
4802 | msh.Scale = msh.Scale + vt(0,outerscale*15,outerscale*15) | |
4803 | outerscale = outerscale - 0.015 | |
4804 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4805 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4806 | ray = Ray.new( | |
4807 | orb.CFrame.p, -- origin | |
4808 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4809 | ) | |
4810 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4811 | distance = (orb.CFrame.p - position).magnitude | |
4812 | if typrot == 1 then | |
4813 | rotation = rotation + 2.5 | |
4814 | elseif typrot == 2 then | |
4815 | rotation = rotation - 2.5 | |
4816 | end | |
4817 | RootPart.CFrame = FaceMouse()[1] | |
4818 | a.Size = Vector3.new(distance, 1, 1) | |
4819 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4820 | a2.Size = Vector3.new(distance, 1, 1) | |
4821 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4822 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4823 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4824 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4825 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4826 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4827 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
4828 | end | |
4829 | for z = 0, 2 do | |
4830 | for i = 0,4,0.1 do | |
4831 | swait() | |
4832 | CameraEnshaking(1,1) | |
4833 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
4834 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
4835 | outerscale = outerscale + 0.015 | |
4836 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4837 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4838 | ray = Ray.new( | |
4839 | orb.CFrame.p, -- origin | |
4840 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4841 | ) | |
4842 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4843 | distance = (orb.CFrame.p - position).magnitude | |
4844 | if typrot == 1 then | |
4845 | rotation = rotation + 2.5 | |
4846 | elseif typrot == 2 then | |
4847 | rotation = rotation - 2.5 | |
4848 | end | |
4849 | RootPart.CFrame = FaceMouse()[1] | |
4850 | a.Size = Vector3.new(distance, 1, 1) | |
4851 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4852 | a2.Size = Vector3.new(distance, 1, 1) | |
4853 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4854 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4855 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4856 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4857 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4858 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4859 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
4860 | end | |
4861 | for i = 0,4,0.1 do | |
4862 | swait() | |
4863 | CameraEnshaking(1,1) | |
4864 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
4865 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
4866 | outerscale = outerscale - 0.015 | |
4867 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4868 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4869 | ray = Ray.new( | |
4870 | orb.CFrame.p, -- origin | |
4871 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4872 | ) | |
4873 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4874 | distance = (orb.CFrame.p - position).magnitude | |
4875 | if typrot == 1 then | |
4876 | rotation = rotation + 2.5 | |
4877 | elseif typrot == 2 then | |
4878 | rotation = rotation - 2.5 | |
4879 | end | |
4880 | RootPart.CFrame = FaceMouse()[1] | |
4881 | a.Size = Vector3.new(distance, 1, 1) | |
4882 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4883 | a2.Size = Vector3.new(distance, 1, 1) | |
4884 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4885 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4886 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4887 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4888 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4889 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4890 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
4891 | end | |
4892 | end | |
4893 | for i = 0,4,0.1 do | |
4894 | swait() | |
4895 | CameraEnshaking(1,1) | |
4896 | msh2.Scale = msh2.Scale + vt(0,outerscale,outerscale) | |
4897 | msh.Scale = msh.Scale - vt(0,outerscale,outerscale) | |
4898 | xd.Volume = xd.Volume - 0.025 | |
4899 | a.Transparency = a.Transparency + 0.025 | |
4900 | a2.Transparency = a2.Transparency + 0.025 | |
4901 | outerscale = outerscale - 0.015 | |
4902 | orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4903 | orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*4 | |
4904 | ray = Ray.new( | |
4905 | orb.CFrame.p, -- origin | |
4906 | (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction | |
4907 | ) | |
4908 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
4909 | distance = (orb.CFrame.p - position).magnitude | |
4910 | if typrot == 1 then | |
4911 | rotation = rotation + 2.5 | |
4912 | elseif typrot == 2 then | |
4913 | rotation = rotation - 2.5 | |
4914 | end | |
4915 | RootPart.CFrame = FaceMouse()[1] | |
4916 | a.Size = Vector3.new(distance, 1, 1) | |
4917 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4918 | a2.Size = Vector3.new(distance, 1, 1) | |
4919 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2) | |
4920 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
4921 | a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4922 | a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0) | |
4923 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4924 | sphereMK(5,5,"Add",ba.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25*3,25*3,75*3,-0.25*3,MAINRUINCOLOR,0) | |
4925 | MagniDamage(ba, 100, 500,60000, 0, "Normal") | |
4926 | end | |
4927 | xd:Destroy() | |
4928 | a:Destroy() | |
4929 | a2:Destroy() | |
4930 | ba:Destroy() | |
4931 | orb:Destroy() | |
4932 | orbe:Destroy() | |
4933 | attack = false | |
4934 | end | |
4935 | ||
4936 | ||
4937 | ||
4938 | function attackone() | |
4939 | attack = true | |
4940 | for i = 0,1,0.1 do | |
4941 | swait() | |
4942 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(-40)),0.2) | |
4943 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(40)),.2) | |
4944 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
4945 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
4946 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2) | |
4947 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2) | |
4948 | end | |
4949 | CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1.1) | |
4950 | ||
4951 | local hitb = Instance.new("Part", char) | |
4952 | hitb.Anchored = true | |
4953 | hitb.CanCollide = false | |
4954 | hitb.FormFactor = 3 | |
4955 | hitb.Name = "Ring" | |
4956 | hitb.Material = "Neon" | |
4957 | hitb.Size = Vector3.new(1, 1, 1) | |
4958 | hitb.Transparency = 1 | |
4959 | hitb.TopSurface = 0 | |
4960 | hitb.BottomSurface = 0 | |
4961 | hitb.CFrame = root.CFrame + root.CFrame.lookVector*2 | |
4962 | MagniDamage(hitb, 3, 10,30, 0, "Normal") | |
4963 | hitb:Destroy() | |
4964 | for i = 0,1,0.1 do | |
4965 | swait() | |
4966 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(70)),0.4) | |
4967 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-70)),.4) | |
4968 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4) | |
4969 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4) | |
4970 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4) | |
4971 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4) | |
4972 | end | |
4973 | ||
4974 | attack = false | |
4975 | end | |
4976 | ||
4977 | function attacktwo() | |
4978 | attack = true | |
4979 | for i = 0,1,0.1 do | |
4980 | swait() | |
4981 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(40)),0.2) | |
4982 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-40)),.2) | |
4983 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
4984 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
4985 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),-0.75)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.2) | |
4986 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(10)),.2) | |
4987 | end | |
4988 | CFuncs["Sound"].Create("rbxassetid://200632136", root, 1, 1) | |
4989 | local hitb = Instance.new("Part", char) | |
4990 | hitb.Anchored = true | |
4991 | hitb.CanCollide = false | |
4992 | hitb.FormFactor = 3 | |
4993 | hitb.Name = "Ring" | |
4994 | hitb.Material = "Neon" | |
4995 | hitb.Size = Vector3.new(1, 1, 1) | |
4996 | hitb.Transparency = 1 | |
4997 | hitb.TopSurface = 0 | |
4998 | hitb.BottomSurface = 0 | |
4999 | hitb.CFrame = root.CFrame + root.CFrame.lookVector*2 | |
5000 | MagniDamage(hitb, 3, 10,30, 0, "Normal") | |
5001 | hitb:Destroy() | |
5002 | for i = 0,1,0.1 do | |
5003 | swait() | |
5004 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(-70)),0.4) | |
5005 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(70)),.4) | |
5006 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4) | |
5007 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4) | |
5008 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-40)),.4) | |
5009 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-10)),.4) | |
5010 | end | |
5011 | attack = false | |
5012 | end | |
5013 | ||
5014 | function attackthree() | |
5015 | attack = true | |
5016 | for i = 0,1,0.1 do | |
5017 | swait() | |
5018 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(80)),0.3) | |
5019 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(-80)),.3) | |
5020 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3) | |
5021 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
5022 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3) | |
5023 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(0)),.3) | |
5024 | end | |
5025 | local distlook = 5 | |
5026 | for i = 0, 4 do | |
5027 | swait(2) | |
5028 | CameraEnshaking(2,3) | |
5029 | local hite = Instance.new("Part", char) | |
5030 | hite.Anchored = true | |
5031 | hite.CanCollide = false | |
5032 | hite.FormFactor = 3 | |
5033 | hite.Name = "Ring" | |
5034 | hite.Material = "Neon" | |
5035 | hite.Size = Vector3.new(1, 1, 1) | |
5036 | hite.Transparency = 1 | |
5037 | hite.TopSurface = 0 | |
5038 | hite.BottomSurface = 0 | |
5039 | hite.CFrame = root.CFrame + root.CFrame.lookVector*distlook | |
5040 | sphere(3,"Add",hite.CFrame,vt(0,0,0),0.15,MAINRUINCOLOR) | |
5041 | sphere(6,"Add",hite.CFrame,vt(0,0,0),0.3,MAINRUINCOLOR) | |
5042 | MagniDamage(hite, 10, 15,35, 0, "Normal") | |
5043 | for i = 0, 2 do | |
5044 | sphereMK(2,0.2,"Add",rarm.CFrame*CFrame.Angles(math.rad(-90+math.random(-20,20)),math.rad(math.random(-20,20)),math.rad(math.random(-20,20))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0) | |
5045 | sphereMK(3,0.2,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0) | |
5046 | sphereMK(6,0.35,"Add",hite.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),0.5,0.5,5,-0.005,MAINRUINCOLOR,0) | |
5047 | end | |
5048 | CFuncs["Sound"].Create("rbxassetid://183763506", hite, 2.5, 1) | |
5049 | CFuncs["Sound"].Create("rbxassetid://178452221", hite, 0.25, 0.6) | |
5050 | game:GetService("Debris"):AddItem(hite, 5) | |
5051 | distlook = distlook + 10 | |
5052 | end | |
5053 | attack = false | |
5054 | end | |
5055 | ||
5056 | function FinalCalamity() | |
5057 | end | |
5058 | ||
5059 | function resetmode() | |
5060 | rainbowmode = false | |
5061 | chaosmode = false | |
5062 | glitchymode = false | |
5063 | tl1.Enabled = false | |
5064 | tl2.Enabled = false | |
5065 | tl3.Enabled = false | |
5066 | local lust = ModeOfGlitch == 69 | |
5067 | ModeOfGlitch = 1 | |
5068 | storehumanoidWS = 16 | |
5069 | if(not lust)then | |
5070 | newTheme("rbxassetid://1564523997",48.6,1,1) | |
5071 | end | |
5072 | coroutine.resume(coroutine.create(function() | |
5073 | attack = true | |
5074 | hum.WalkSpeed = 0 | |
5075 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25) | |
5076 | for i = 0,4,0.1 do | |
5077 | swait() | |
5078 | 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) | |
5079 | 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) | |
5080 | 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) | |
5081 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5082 | 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) | |
5083 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5084 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5085 | end | |
5086 | if(lust)then | |
5087 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
5088 | sphere(2.5,"Add",root.CFrame*angles(0,0,0),vt(100,100,2),1.25,BrickColor.new'Pink',true,true) | |
5089 | for i = 0, 49 do | |
5090 | PixelBlock(1,15,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))*cf(0,0,-80),6,6,6,0.12,BrickColor.new("Pink"),0,true,true) | |
5091 | end | |
5092 | ||
5093 | for i = 0,4,0.05 do | |
5094 | swait() | |
5095 | Pitch = 1-i/4 | |
5096 | 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) | |
5097 | 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) | |
5098 | 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) | |
5099 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5100 | 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) | |
5101 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5102 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5103 | end | |
5104 | for i = 0,3,0.1 do | |
5105 | swait() | |
5106 | 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) | |
5107 | 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) | |
5108 | 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) | |
5109 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5110 | 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) | |
5111 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5112 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5113 | end | |
5114 | newTheme("rbxassetid://1564523997",48.6,1,1) | |
5115 | end | |
5116 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1) | |
5117 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
5118 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1) | |
5119 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75) | |
5120 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Really red' end) | |
5121 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Really red' end) | |
5122 | RecolorTextAndRename("Solitude",Color3.new(0,0,0),Color3.new(1,1,1)) | |
5123 | CameraEnshaking(5,2.5) | |
5124 | MAINRUINCOLOR = BrickColor.new("Really black") | |
5125 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5126 | for i = 0, 49 do | |
5127 | 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) | |
5128 | end | |
5129 | for i = 0,3,0.1 do | |
5130 | 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) | |
5131 | end | |
5132 | for i, v in pairs(mw2:GetChildren()) do | |
5133 | if v:IsA("Part") then | |
5134 | v.BrickColor = BrickColor.new("Really black") | |
5135 | v.Material = "Neon" | |
5136 | end | |
5137 | end | |
5138 | for i, v in pairs(mw1:GetChildren()) do | |
5139 | if v:IsA("Part") then | |
5140 | v.Transparency = 1 | |
5141 | v.BrickColor = BrickColor.new("Really black") | |
5142 | v.Material = "Neon" | |
5143 | end | |
5144 | end | |
5145 | for i, v in pairs(m:GetChildren()) do | |
5146 | if v:IsA("Part") then | |
5147 | v.BrickColor = BrickColor.new("Really black") | |
5148 | v.Material = "Glass" | |
5149 | end | |
5150 | end | |
5151 | for i, v in pairs(m2:GetChildren()) do | |
5152 | if v:IsA("Part") then | |
5153 | v.BrickColor = BrickColor.new("Dark stone grey") | |
5154 | v.Material = "Granite" | |
5155 | end | |
5156 | end | |
5157 | for i, v in pairs(m3:GetChildren()) do | |
5158 | if v:IsA("Part") then | |
5159 | v.BrickColor = BrickColor.new("Really black") | |
5160 | v.Material = "Neon" | |
5161 | end | |
5162 | end | |
5163 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5164 | if v:IsA("Part") then | |
5165 | v.Transparency = 1 | |
5166 | v.BrickColor = BrickColor.new("White") | |
5167 | v.Material = "Neon" | |
5168 | end | |
5169 | end | |
5170 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5171 | if v:IsA("Part") then | |
5172 | v.Transparency = 1 | |
5173 | v.BrickColor = BrickColor.new("White") | |
5174 | v.Material = "Neon" | |
5175 | end | |
5176 | end | |
5177 | for i = 0,2,0.1 do | |
5178 | swait() | |
5179 | 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) | |
5180 | 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) | |
5181 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
5182 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.2) | |
5183 | RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.2) | |
5184 | LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.2) | |
5185 | end | |
5186 | hum.WalkSpeed = storehumanoidWS | |
5187 | attack = false | |
5188 | end)) | |
5189 | end | |
5190 | ||
5191 | function lustmode() | |
5192 | ||
5193 | ModeOfGlitch = 69 | |
5194 | storehumanoidWS = 16 | |
5195 | rainbowmode = false | |
5196 | chaosmode = false | |
5197 | glitchymode = false | |
5198 | tl1.Enabled = false | |
5199 | tl2.Enabled = false | |
5200 | tl3.Enabled = false | |
5201 | newTheme("rbxassetid://1203355187",0,1,1) | |
5202 | coroutine.wrap(function() | |
5203 | attack = true | |
5204 | hum.WalkSpeed = 0 | |
5205 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25) | |
5206 | for i = 0,4,0.1 do | |
5207 | swait() | |
5208 | 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) | |
5209 | 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) | |
5210 | 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) | |
5211 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5212 | 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) | |
5213 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5214 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5215 | end | |
5216 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
5217 | sphere(2.5,"Add",root.CFrame*cf(0,0,0),vt(0,0,2),1.5,BrickColor.new'Pink',true) | |
5218 | ||
5219 | for i = 0,4,0.1 do | |
5220 | swait() | |
5221 | 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) | |
5222 | 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) | |
5223 | 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) | |
5224 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5225 | 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) | |
5226 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5227 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5228 | end | |
5229 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1) | |
5230 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
5231 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1) | |
5232 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75) | |
5233 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Pink' end) | |
5234 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Pink' end) | |
5235 | CameraEnshaking(5,2.5) | |
5236 | MAINRUINCOLOR = BrickColor.new("Pink") | |
5237 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5238 | for i = 0, 49 do | |
5239 | 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))),6,6,6,0.12,MAINRUINCOLOR,0,true) | |
5240 | end | |
5241 | for i = 0,3,0.1 do | |
5242 | 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,true) | |
5243 | end | |
5244 | RecolorTextAndRename("Loost",Color3.new(1,1,1),BrickColor.new'Pink'.Color) | |
5245 | for i, v in pairs(mw2:GetChildren()) do | |
5246 | if v:IsA("Part") then | |
5247 | v.BrickColor = MAINRUINCOLOR | |
5248 | v.Material = "Neon" | |
5249 | end | |
5250 | end | |
5251 | for i, v in pairs(mw1:GetChildren()) do | |
5252 | if v:IsA("Part") then | |
5253 | v.Transparency = 1 | |
5254 | v.BrickColor = MAINRUINCOLOR | |
5255 | v.Material = "Neon" | |
5256 | end | |
5257 | end | |
5258 | for i, v in pairs(m:GetChildren()) do | |
5259 | if v:IsA("Part") then | |
5260 | v.BrickColor = BrickColor.new("Pink") | |
5261 | v.Material = "Ice" | |
5262 | end | |
5263 | end | |
5264 | for i, v in pairs(m2:GetChildren()) do | |
5265 | if v:IsA("Part") then | |
5266 | v.BrickColor = BrickColor.new("Pink") | |
5267 | v.Material = "Glass" | |
5268 | end | |
5269 | end | |
5270 | for i, v in pairs(m3:GetChildren()) do | |
5271 | if v:IsA("Part") then | |
5272 | v.BrickColor = BrickColor.new("Pink") | |
5273 | v.Material = "Neon" | |
5274 | end | |
5275 | end | |
5276 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5277 | if v:IsA("Part") then | |
5278 | v.Transparency = 1 | |
5279 | v.BrickColor = BrickColor.new("Pink") | |
5280 | v.Material = "Neon" | |
5281 | end | |
5282 | end | |
5283 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5284 | if v:IsA("Part") then | |
5285 | v.Transparency = 1 | |
5286 | v.BrickColor = BrickColor.new("Pink") | |
5287 | v.Material = "Neon" | |
5288 | end | |
5289 | end | |
5290 | for i = 0,2,0.1 do | |
5291 | swait() | |
5292 | 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) | |
5293 | 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) | |
5294 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
5295 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.2) | |
5296 | RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.2) | |
5297 | LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.2) | |
5298 | end | |
5299 | hum.WalkSpeed = storehumanoidWS | |
5300 | attack = false | |
5301 | end)() | |
5302 | end | |
5303 | ||
5304 | function insanitymode() | |
5305 | storehumanoidWS = 16 | |
5306 | hum.WalkSpeed = 0 | |
5307 | rainbowmode = false | |
5308 | glitchymode = false | |
5309 | chaosmode = true | |
5310 | tl1.Enabled = true | |
5311 | tl2.Enabled = true | |
5312 | tl3.Enabled = true | |
5313 | local lust = ModeOfGlitch == 69 | |
5314 | newTheme("rbxassetid://919231299",0,1,1) | |
5315 | coroutine.resume(coroutine.create(function() | |
5316 | tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5317 | tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5318 | tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
5319 | attack = true | |
5320 | hum.WalkSpeed = 0 | |
5321 | CFuncs["Sound"].Create("rbxassetid://136007472", root, 2.5, 1.25) | |
5322 | for i = 0,4,0.1 do | |
5323 | swait() | |
5324 | 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) | |
5325 | 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) | |
5326 | 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) | |
5327 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5328 | 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) | |
5329 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5330 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5331 | end | |
5332 | for i = 0,8,0.1 do | |
5333 | swait() | |
5334 | 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) | |
5335 | sphereMK(2.5,-1.5,"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3.5,3.5,45,.035,MAINRUINCOLOR,0) | |
5336 | 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) | |
5337 | 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) | |
5338 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5339 | 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) | |
5340 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5341 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5342 | end | |
5343 | ||
5344 | for i = 0,3,0.1 do | |
5345 | swait() | |
5346 | 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) | |
5347 | 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) | |
5348 | 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) | |
5349 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(30),math.rad(0),math.rad(0)),.2) | |
5350 | 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) | |
5351 | RW.C0=clerp(RW.C0,cf(1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(-50)),.2) | |
5352 | LW.C0=clerp(LW.C0,cf(-1.05,0.4,-0.5)*angles(math.rad(140),math.rad(0),math.rad(50)),.2) | |
5353 | end | |
5354 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1) | |
5355 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
5356 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1) | |
5357 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75) | |
5358 | CameraEnshaking(5,2.5) | |
5359 | MAINRUINCOLOR = BrickColor.new("Black") | |
5360 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5361 | for i = 0, 49 do | |
5362 | 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) | |
5363 | end | |
5364 | for i = 0,3,0.1 do | |
5365 | 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) | |
5366 | end | |
5367 | ModeOfGlitch = 666666 | |
5368 | for i, v in pairs(mw2:GetChildren()) do | |
5369 | if v:IsA("Part") then | |
5370 | v.BrickColor = MAINRUINCOLOR | |
5371 | v.Material = "Neon" | |
5372 | end | |
5373 | end | |
5374 | for i, v in pairs(mw1:GetChildren()) do | |
5375 | if v:IsA("Part") then | |
5376 | v.Transparency = 0.75 | |
5377 | v.BrickColor = BrickColor.random() | |
5378 | v.Material = "Neon" | |
5379 | end | |
5380 | end | |
5381 | for i, v in pairs(m:GetChildren()) do | |
5382 | if v:IsA("Part") then | |
5383 | v.BrickColor = BrickColor.new("Black") | |
5384 | v.Material = "Neon" | |
5385 | end | |
5386 | end | |
5387 | for i, v in pairs(m2:GetChildren()) do | |
5388 | if v:IsA("Part") then | |
5389 | v.BrickColor = BrickColor.random() | |
5390 | v.Material = "Neon" | |
5391 | end | |
5392 | end | |
5393 | for i, v in pairs(m3:GetChildren()) do | |
5394 | if v:IsA("Part") then | |
5395 | v.BrickColor = BrickColor.new("Black") | |
5396 | v.Material = "Neon" | |
5397 | end | |
5398 | end | |
5399 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5400 | if v:IsA("Part") then | |
5401 | v.Transparency = .75 | |
5402 | v.BrickColor = BrickColor.Random() | |
5403 | v.Material = "Neon" | |
5404 | end | |
5405 | end | |
5406 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5407 | if v:IsA("Part") then | |
5408 | v.Transparency = 0 | |
5409 | v.BrickColor = BrickColor.new("Black") | |
5410 | v.Material = "Neon" | |
5411 | end | |
5412 | end | |
5413 | for i = 0,2,0.1 do | |
5414 | swait() | |
5415 | 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) | |
5416 | 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) | |
5417 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
5418 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 10 * math.cos(sine / 0.2))),.2) | |
5419 | RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2)))*angles(0,0,math.rad(0 - 10 * math.cos(sine / 0.2))),.2) | |
5420 | LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2)))*angles(0,0,math.rad(0 - 10 * math.cos(sine / 0.2))),.2) | |
5421 | end | |
5422 | hum.WalkSpeed = storehumanoidWS | |
5423 | attack = false | |
5424 | end)) | |
5425 | end | |
5426 | ||
5427 | local attacktype = 1 | |
5428 | mouse.Button1Down:connect(function() | |
5429 | if attack == false and attacktype == 1 then | |
5430 | attacktype = 2 | |
5431 | attackone() | |
5432 | elseif attack == false and attacktype == 2 then | |
5433 | attacktype = 3 | |
5434 | attacktwo() | |
5435 | elseif attack == false and attacktype == 3 then | |
5436 | attacktype = 1 | |
5437 | attackthree() | |
5438 | elseif attack == false and attacktype == 4 then | |
5439 | attacktype = 1 | |
5440 | --attackfour() | |
5441 | end | |
5442 | end) | |
5443 | ||
5444 | function Judgement() | |
5445 | attack = true | |
5446 | hum.WalkSpeed = 0 | |
5447 | local p = Instance.new("Part",root) | |
5448 | p.Anchored = true | |
5449 | p.CanCollide = false | |
5450 | p.BrickColor = MAINRUINCOLOR | |
5451 | p.Material = Enum.Material.Neon | |
5452 | p.Size = Vector3.new(1,1,1) | |
5453 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
5454 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
5455 | local m = Instance.new("SpecialMesh",p) | |
5456 | m.MeshType = "Cylinder" | |
5457 | m.Scale = Vector3.new(2000,2,2) | |
5458 | local targ = Instance.new("Part",root) | |
5459 | targ.Transparency = 1 | |
5460 | targ.CanCollide = false | |
5461 | targ.Size = Vector3.new(1,1,1) | |
5462 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
5463 | CFuncs.Sound.Create("rbxassetid://164178927", targ, 5, 1) | |
5464 | CFuncs.Sound.Create("rbxassetid://1208650519", targ, 10, 1) | |
5465 | for i = 1,15 do | |
5466 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
5467 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-20),math.rad(0),math.rad(0)),0.2) | |
5468 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-15),math.rad(0),math.rad(0)),.2) | |
5469 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(100)), 0.2) | |
5470 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-100)), 0.2) | |
5471 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(-20)),.2) | |
5472 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(10),math.rad(20)),.2) | |
5473 | sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.05, MAINRUINCOLOR) | |
5474 | sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 7, -0.005, MAINRUINCOLOR, 0) | |
5475 | m.Scale = m.Scale+Vector3.new(0,1,1) | |
5476 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
5477 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
5478 | swait() | |
5479 | end | |
5480 | sphereMK(3, 0.2, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 0.5, 0.5, 5, -0.005, MAINRUINCOLOR, 0) | |
5481 | for i = 1,200 do | |
5482 | targ.CFrame = p.CFrame-Vector3.new(0,1000,0) | |
5483 | sphereMK(3, 0.5, "Add", targ.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 3, 3, 15, -0.005, MAINRUINCOLOR, 0) | |
5484 | sphere(10, "Add", targ.CFrame, vt(15, 15, 15), 0.15, MAINRUINCOLOR) | |
5485 | p.CFrame = CFrame.new(mouse.Hit.p)+Vector3.new(0,1000,0) | |
5486 | p.CFrame = p.CFrame * CFrame.Angles(0,0,89.5354) | |
5487 | MagniDamage(targ, 25, 5, 8, 0, "Normal") | |
5488 | swait() | |
5489 | end | |
5490 | for i =1,15 do | |
5491 | m.Scale = m.Scale-Vector3.new(1,1,1) | |
5492 | p.Transparency = i / 15 | |
5493 | swait() | |
5494 | end | |
5495 | p:Destroy() | |
5496 | hum.WalkSpeed = storehumanoidWS | |
5497 | attack = false | |
5498 | end | |
5499 | ||
5500 | local ODerDB = false | |
5501 | function ChooseODer() | |
5502 | if(not ODerDB)then | |
5503 | coroutine.wrap(function() | |
5504 | ||
5505 | local allowOD = true | |
5506 | local whom = (mouse.Target and mouse.Target.Parent) | |
5507 | if(whom and whom:FindFirstChildOfClass'Humanoid' and whom:FindFirstChild'Head')then | |
5508 | ODerDB = true | |
5509 | for _,v in next, ODers do | |
5510 | if(v == whom)then | |
5511 | print'nO OD SELF' | |
5512 | allowOD = false | |
5513 | end | |
5514 | end | |
5515 | if(allowOD)then | |
5516 | local ref=CFuncs.Part.Create(m,Enum.Material.Neon,0,.4,(whom.Name == 'Nebula_Zorua' and 'Royal purple' or MAINRUINCOLOR),"ref",Vector3.new(0.05,0.05,0.05)) | |
5517 | local refz = CFuncs.Mesh.Create("SpecialMesh",ref,"Sphere","",Vector3.new(0, 0, 0),Vector3.new(14, 14, 14)) | |
5518 | ||
5519 | ref.CFrame = Torso.CFrame | |
5520 | ref.Anchored = true | |
5521 | local e1 = Torso.CFrame:Lerp(whom.Head.CFrame, 0.25) * CFrame.new(math.random(-15, 15), math.random(0, 15), math.random(-15, 15)) | |
5522 | local e2 = Torso.CFrame:Lerp(whom.Head.CFrame, 0.75) * CFrame.new(math.random(-15, 15), math.random(0, 15), math.random(-15, 15)) | |
5523 | local MPos = whom.Head.CFrame*cf(0,4,0) | |
5524 | for i = 0, 1, .05 do | |
5525 | swait() | |
5526 | ref.CFrame = newBezier(Torso.CFrame, e1, e2, MPos, i) | |
5527 | ||
5528 | sphere(10,"Add",ref.CFrame,vt(6,6,3),0,(whom.Name == 'Nebula_Zorua' and BrickColor.new'Royal purple' or MAINRUINCOLOR),true) | |
5529 | if whom:FindFirstChild'Head' == nil then | |
5530 | break | |
5531 | end | |
5532 | end | |
5533 | ref:destroy() | |
5534 | if whom:FindFirstChild'Head' then | |
5535 | table.insert(ODers,whom) | |
5536 | if(#ODers > 2)then | |
5537 | table.remove(ODers,1) | |
5538 | end | |
5539 | sphere(1.5,"Add",whom.Head.CFrame * cf(0,4,0),vt(6,6,3),.15,(whom.Name == 'Nebula_Zorua' and BrickColor.new'Royal purple' or MAINRUINCOLOR),true) | |
5540 | end | |
5541 | end | |
5542 | ODerDB = false | |
5543 | end | |
5544 | end)() | |
5545 | end | |
5546 | end | |
5547 | ||
5548 | function RiddleMeThisRiddleMeThat()-- Who's afraid of the big black IUSFGEYUI8TY8RUFETUYERFYAERFE7RFWAE9RASEVR7YTRWW65ERAY | |
5549 | attack = true | |
5550 | hum.WalkSpeed = 0 | |
5551 | storehumanoidWS = 75 | |
5552 | hum.JumpPower = 0 | |
5553 | newThemeCust("rbxassetid://1420353940",0,1,1) | |
5554 | kan.TimePosition = 0 | |
5555 | ModeOfGlitch = 8376532578634534 | |
5556 | repeat swait() until kan.IsLoaded | |
5557 | chatfunc("Riddle me this..",text.TextStrokeColor3) | |
5558 | for i = 0, 14, .1 do | |
5559 | swait() | |
5560 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
5561 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
5562 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
5563 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1) | |
5564 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
5565 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
5566 | end | |
5567 | chatfunc("Riddle me that..",text.TextStrokeColor3) | |
5568 | for i = 0, 12, .1 do | |
5569 | swait() | |
5570 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
5571 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
5572 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
5573 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(25),0),.1) | |
5574 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
5575 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
5576 | end | |
5577 | chatfunc("Who's afraid of the big black..",Color3.new(1,1,1)) | |
5578 | for i = 0, 16, .1 do | |
5579 | swait() | |
5580 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
5581 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
5582 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
5583 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1) | |
5584 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
5585 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
5586 | end | |
5587 | CFuncs["Sound"].Create("rbxassetid://206082327", root, 2.5,1) | |
5588 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 5,1) | |
5589 | CFuncs["Sound"].Create("rbxassetid://239000203", root, 2.5,1) | |
5590 | CFuncs["Sound"].Create("rbxassetid://579687077", root, 2.5,0.75) | |
5591 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Black' end) | |
5592 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Black' end) | |
5593 | RecolorTextAndRename("The Big Black",Color3.new(0,0,0),Color3.new(1,1,1)) | |
5594 | CameraEnshaking(5,2.5) | |
5595 | MAINRUINCOLOR = BrickColor.new("Really black") | |
5596 | sphere(2.5,"Add",root.CFrame,vt(0,0,0),1,MAINRUINCOLOR) | |
5597 | tl1.Enabled = true | |
5598 | tl2.Enabled = true | |
5599 | tl3.Enabled = true | |
5600 | for i = 0, 49 do | |
5601 | 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) | |
5602 | end | |
5603 | for i = 0,3,0.1 do | |
5604 | 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) | |
5605 | end | |
5606 | for i, v in pairs(mw2:GetChildren()) do | |
5607 | if v:IsA("Part") then | |
5608 | v.BrickColor = BrickColor.new("Really black") | |
5609 | v.Material = "Glass" | |
5610 | end | |
5611 | end | |
5612 | for i, v in pairs(mw1:GetChildren()) do | |
5613 | if v:IsA("Part") then | |
5614 | v.Transparency = 0 | |
5615 | v.BrickColor = BrickColor.new("Really black") | |
5616 | v.Material = "Glass" | |
5617 | end | |
5618 | end | |
5619 | for i, v in pairs(m:GetChildren()) do | |
5620 | if v:IsA("Part") then | |
5621 | v.BrickColor = BrickColor.new("Really black") | |
5622 | v.Material = "Glass" | |
5623 | end | |
5624 | end | |
5625 | for i, v in pairs(m2:GetChildren()) do | |
5626 | if v:IsA("Part") then | |
5627 | v.BrickColor = BrickColor.new("Dark stone grey") | |
5628 | v.Material = "Granite" | |
5629 | end | |
5630 | end | |
5631 | for i, v in pairs(m3:GetChildren()) do | |
5632 | if v:IsA("Part") then | |
5633 | v.BrickColor = BrickColor.new("Really black") | |
5634 | v.Material = "Glass" | |
5635 | end | |
5636 | end | |
5637 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5638 | if v:IsA("Part") then | |
5639 | v.Transparency = 0 | |
5640 | v.BrickColor = BrickColor.new("Dark stone grey") | |
5641 | v.Material = "Glass" | |
5642 | end | |
5643 | end | |
5644 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5645 | if v:IsA("Part") then | |
5646 | v.Transparency = 0 | |
5647 | v.BrickColor = BrickColor.new("Dark stone grey") | |
5648 | v.Material = "Glass" | |
5649 | end | |
5650 | end | |
5651 | for i = 0,2,0.1 do | |
5652 | swait() | |
5653 | 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) | |
5654 | 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) | |
5655 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(-30),math.rad(0),math.rad(0)),.2) | |
5656 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-30),math.rad(0),math.rad(0 - 2.5 * math.cos(sine / 0.2))),.2) | |
5657 | RW.C0=clerp(RW.C0,cf(1.45,0.4,0)*angles(math.rad(-20),math.rad(0 - 2 * math.cos(sine / 0.2)),math.rad(80 + 2 * math.cos(sine / 0.2))),.2) | |
5658 | LW.C0=clerp(LW.C0,cf(-1.45,0.4,0)*angles(math.rad(-20),math.rad(0 + 2 * math.cos(sine / 0.2)),math.rad(-80 - 2 * math.cos(sine / 0.2))),.2) | |
5659 | end | |
5660 | hum.JumpPower = 50 | |
5661 | hum.WalkSpeed = storehumanoidWS | |
5662 | attack = false | |
5663 | end | |
5664 | ||
5665 | function FuckMeSidewaysAndCallMeGay() | |
5666 | local whom = (mouse.Target and mouse.Target.Parent) | |
5667 | --[[local fuckThisBoi = false | |
5668 | if(whom and whom:FindFirstChildOfClass'Humanoid')then | |
5669 | for _,v in next, ODers do | |
5670 | if(v == whom)then | |
5671 | fuckThisBoi = false | |
5672 | end | |
5673 | end | |
5674 | end | |
5675 | if(not fuckThisBoi)then | |
5676 | attack = false | |
5677 | warn'to fuck that boi you need to target them with z' | |
5678 | else]] | |
5679 | if(whom and whom:FindFirstChildOfClass'Humanoid' and whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso')then | |
5680 | local hed = whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' | |
5681 | local hum = whom:FindFirstChildOfClass'Humanoid' | |
5682 | local ocf = RootPart.CFrame | |
5683 | hum.WalkSpeed = 0 | |
5684 | hum.JumpPower = 0 | |
5685 | hed.Anchored = true | |
5686 | RootPart.Anchored = true | |
5687 | Humanoid.WalkSpeed = 0 | |
5688 | Humanoid.JumpPower = 0 | |
5689 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5690 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
5691 | for i = 0, 9 do | |
5692 | 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("Pink"),0) | |
5693 | end | |
5694 | for i = 0, 24 do | |
5695 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0) | |
5696 | end | |
5697 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink")) | |
5698 | attack = true | |
5699 | local speed = 1 | |
5700 | local heck; | |
5701 | local stopitlol = false; | |
5702 | heck = mouse.KeyUp:connect(function(k) | |
5703 | if(k:lower() == 'm')then | |
5704 | stopitlol = true | |
5705 | heck:disconnect() | |
5706 | end | |
5707 | end) | |
5708 | local times = 0 | |
5709 | repeat swait() | |
5710 | speed = speed - .01 | |
5711 | times = times + 1 | |
5712 | if(speed < .1)then | |
5713 | speed = .1 | |
5714 | end | |
5715 | for i = 0, speed, .05 do | |
5716 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5717 | swait() | |
5718 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4) | |
5719 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4) | |
5720 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4) | |
5721 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
5722 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4) | |
5723 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4) | |
5724 | end | |
5725 | CameraEnshaking(5,5) | |
5726 | ||
5727 | CFuncs["Sound"].Create("rbxassetid://836796971", Torso, 10,1) | |
5728 | ||
5729 | for i = 0, speed, .05 do | |
5730 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5731 | swait() | |
5732 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4) | |
5733 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4) | |
5734 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4) | |
5735 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
5736 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
5737 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
5738 | end | |
5739 | until stopitlol and times >= 3 | |
5740 | for i = 1, 3 do | |
5741 | for i = 0, 1.5, .05 do | |
5742 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5743 | swait() | |
5744 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(50),0,0)*angles(0,math.rad(90),0),.4) | |
5745 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4) | |
5746 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(-25),0,0)*RootCF,.4) | |
5747 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
5748 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.4) | |
5749 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.4) | |
5750 | end | |
5751 | CameraEnshaking(5,25) | |
5752 | ||
5753 | CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75) | |
5754 | ||
5755 | ||
5756 | coroutine.resume(coroutine.create(function() | |
5757 | bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso")) | |
5758 | bld.LightEmission = 0.1 | |
5759 | bld.Texture = "rbxassetid://284205403" | |
5760 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
5761 | bld.Rate = 500 | |
5762 | bld.Lifetime = NumberRange.new(1) | |
5763 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5764 | bld.Acceleration = vt(0,-25,0) | |
5765 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5766 | bld.Speed = NumberRange.new(10,50) | |
5767 | bld.EmissionDirection = "Back" | |
5768 | bld.VelocitySpread = 25 | |
5769 | bld.Rotation = NumberRange.new(-500,500) | |
5770 | bld.RotSpeed = NumberRange.new(-500,500) | |
5771 | bld.Enabled = false | |
5772 | bld:Emit(250) | |
5773 | end)) | |
5774 | coroutine.resume(coroutine.create(function() | |
5775 | bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso")) | |
5776 | bld.LightEmission = 0.1 | |
5777 | bld.Texture = "rbxassetid://284205403" | |
5778 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
5779 | bld.Rate = 500 | |
5780 | bld.Lifetime = NumberRange.new(1) | |
5781 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5782 | bld.Acceleration = vt(0,-25,0) | |
5783 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5784 | bld.Speed = NumberRange.new(10,50) | |
5785 | bld.EmissionDirection = "Back" | |
5786 | bld.VelocitySpread = 25 | |
5787 | bld.Rotation = NumberRange.new(-500,500) | |
5788 | bld.RotSpeed = NumberRange.new(-500,500) | |
5789 | bld.Enabled = false | |
5790 | bld:Emit(250) | |
5791 | end)) | |
5792 | for i = 0, 1.5, .05 do | |
5793 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5794 | swait() | |
5795 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-50),0,0)*angles(0,math.rad(90),0),.4) | |
5796 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-50),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4) | |
5797 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.1,0)*angles(math.rad(25),0,0)*RootCF,.4) | |
5798 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
5799 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
5800 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
5801 | end | |
5802 | end | |
5803 | for i = 0, 4, .05 do | |
5804 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5805 | swait() | |
5806 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(100),0,0)*angles(0,math.rad(90),0),.1) | |
5807 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
5808 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(-50),0,0)*RootCF,.1) | |
5809 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.1) | |
5810 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(75),0,0),.1) | |
5811 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(75),0,0),.1) | |
5812 | end | |
5813 | CameraEnshaking(5,25) | |
5814 | CFuncs["Sound"].Create("rbxassetid://429400881", hed, 3,1) | |
5815 | CFuncs["Sound"].Create("rbxassetid://1430568042", Torso, 10,.75) | |
5816 | ||
5817 | dmg(whom) | |
5818 | coroutine.resume(coroutine.create(function() | |
5819 | bld = Instance.new("ParticleEmitter",whom:WaitForChild("Torso")) | |
5820 | bld.LightEmission = 0.1 | |
5821 | bld.Texture = "rbxassetid://284205403" | |
5822 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
5823 | bld.Rate = 500 | |
5824 | bld.Lifetime = NumberRange.new(1) | |
5825 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5826 | bld.Acceleration = vt(0,-25,0) | |
5827 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5828 | bld.Speed = NumberRange.new(10,50) | |
5829 | bld.EmissionDirection = "Back" | |
5830 | bld.VelocitySpread = 25 | |
5831 | bld.Rotation = NumberRange.new(-500,500) | |
5832 | bld.RotSpeed = NumberRange.new(-500,500) | |
5833 | bld.Enabled = true | |
5834 | end)) | |
5835 | coroutine.resume(coroutine.create(function() | |
5836 | bld = Instance.new("ParticleEmitter",whom:WaitForChild("LowerTorso")) | |
5837 | bld.LightEmission = 0.1 | |
5838 | bld.Texture = "rbxassetid://284205403" | |
5839 | bld.Color = ColorSequence.new(Color3.new(1,1,1)) | |
5840 | bld.Rate = 500 | |
5841 | bld.Lifetime = NumberRange.new(1) | |
5842 | bld.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5843 | bld.Acceleration = vt(0,-25,0) | |
5844 | bld.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,0,0)}) | |
5845 | bld.Speed = NumberRange.new(10,50) | |
5846 | bld.EmissionDirection = "Back" | |
5847 | bld.VelocitySpread = 25 | |
5848 | bld.Rotation = NumberRange.new(-500,500) | |
5849 | bld.RotSpeed = NumberRange.new(-500,500) | |
5850 | bld.Enabled = true | |
5851 | end)) | |
5852 | for i = 0, 3, .05 do | |
5853 | RootPart.CFrame = hed.CFrame*cf(0,0,1.35) | |
5854 | swait() | |
5855 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-100),0,0)*angles(0,math.rad(90),0),.4) | |
5856 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-100),0,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.4) | |
5857 | RootJoint.C0=clerp(RootJoint.C0,cf(0,-.75,0)*angles(math.rad(50),0,0)*RootCF,.4) | |
5858 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,0,0),.8) | |
5859 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
5860 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-75),0,0),.4) | |
5861 | end | |
5862 | ||
5863 | RootPart.CFrame = ocf | |
5864 | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2.5,1) | |
5865 | for i = 0, 9 do | |
5866 | 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("Pink"),0) | |
5867 | end | |
5868 | for i = 0, 24 do | |
5869 | PixelBlock(1,math.random(4,8),"Add",root.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),3,3,3,0.06,BrickColor.new("Pink"),0) | |
5870 | end | |
5871 | sphere(3,"Add",root.CFrame,vt(0,0,0),0.25,BrickColor.new("Pink")) | |
5872 | RootPart.Anchored = false | |
5873 | Humanoid.WalkSpeed = storehumanoidWS | |
5874 | Humanoid.JumpPower = 50 | |
5875 | attack = false | |
5876 | end | |
5877 | end | |
5878 | ||
5879 | local input = "" | |
5880 | ||
5881 | mouse.KeyDown:connect(function(k) | |
5882 | if(k == "w" or k == "a" or k == "s" or k == "d")then | |
5883 | input = input .. k | |
5884 | local newInput = input | |
5885 | coroutine.wrap(function() | |
5886 | for i = 1, 25 do | |
5887 | if(newInput ~= input)then break end | |
5888 | swait() | |
5889 | end | |
5890 | if(newInput == input)then input = "" end | |
5891 | end)() | |
5892 | if(input == "wwssadad" and not AllowRape)then | |
5893 | AllowRape = true | |
5894 | warn("Rape unlocked! Have fun ;)") | |
5895 | elseif(input == "wwaassdd" and not AllowCata)then | |
5896 | AllowCata = true | |
5897 | warn("You unlocked CATASTROPHE.") | |
5898 | elseif(input == 'ddawas' and ModeOfGlitch == 4 and not attack)then | |
5899 | ChaosBegone() | |
5900 | end | |
5901 | end | |
5902 | end) | |
5903 | ||
5904 | mouse.KeyDown:connect(function(k) | |
5905 | if k == "h" then | |
5906 | ||
5907 | end | |
5908 | ||
5909 | if k == "q" and attack == false and ModeOfGlitch ~= 2 then | |
5910 | ModeOfGlitch = 2 | |
5911 | storehumanoidWS = 16 | |
5912 | hum.WalkSpeed = 16 | |
5913 | rainbowmode = false | |
5914 | chaosmode = false | |
5915 | glitchymode = false | |
5916 | tl1.Enabled = false | |
5917 | tl2.Enabled = false | |
5918 | tl3.Enabled = false | |
5919 | RecolorTextAndRename("Purity",Color3.new(1,1,1),Color3.new(0,1,1)) | |
5920 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Teal' end) | |
5921 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Teal' end) | |
5922 | newTheme("rbxassetid://1539245059",0,1,1) | |
5923 | MAINRUINCOLOR = BrickColor.new("Toothpaste") | |
5924 | for i, v in pairs(mw2:GetChildren()) do | |
5925 | if v:IsA("Part") then | |
5926 | v.BrickColor = MAINRUINCOLOR | |
5927 | v.Material = "Neon" | |
5928 | end | |
5929 | end | |
5930 | for i, v in pairs(mw1:GetChildren()) do | |
5931 | if v:IsA("Part") then | |
5932 | v.Transparency = 1 | |
5933 | v.BrickColor = MAINRUINCOLOR | |
5934 | v.Material = "Neon" | |
5935 | end | |
5936 | end | |
5937 | for i, v in pairs(m:GetChildren()) do | |
5938 | if v:IsA("Part") then | |
5939 | v.BrickColor = BrickColor.new("White") | |
5940 | v.Material = "Ice" | |
5941 | end | |
5942 | end | |
5943 | for i, v in pairs(m2:GetChildren()) do | |
5944 | if v:IsA("Part") then | |
5945 | v.BrickColor = BrickColor.new("Pastel light blue") | |
5946 | v.Material = "Glass" | |
5947 | end | |
5948 | end | |
5949 | for i, v in pairs(m3:GetChildren()) do | |
5950 | if v:IsA("Part") then | |
5951 | v.BrickColor = BrickColor.new("Toothpaste") | |
5952 | v.Material = "Neon" | |
5953 | end | |
5954 | end | |
5955 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
5956 | if v:IsA("Part") then | |
5957 | v.Transparency = 1 | |
5958 | v.BrickColor = BrickColor.new("White") | |
5959 | v.Material = "Neon" | |
5960 | end | |
5961 | end | |
5962 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
5963 | if v:IsA("Part") then | |
5964 | v.Transparency = 1 | |
5965 | v.BrickColor = BrickColor.new("White") | |
5966 | v.Material = "Neon" | |
5967 | end | |
5968 | end | |
5969 | elseif k == "q" and attack == false and ModeOfGlitch == 2 then | |
5970 | resetmode() | |
5971 | end | |
5972 | if k == "f" and attack == false and ModeOfGlitch ~= 69 then | |
5973 | lustmode() | |
5974 | elseif k == "f" and attack == false and ModeOfGlitch == 69 then | |
5975 | resetmode() | |
5976 | end | |
5977 | if k == "m" and attack == false and ModeOfGlitch == 1 then | |
5978 | RiddleMeThisRiddleMeThat() | |
5979 | elseif k == "m" and attack == false and ModeOfGlitch == 8376532578634534 then | |
5980 | resetmode() | |
5981 | end | |
5982 | if k == "e" and attack == false and ModeOfGlitch ~= 3 then | |
5983 | ModeOfGlitch = 3 | |
5984 | storehumanoidWS = 16 | |
5985 | hum.WalkSpeed = 16 | |
5986 | rainbowmode = false | |
5987 | chaosmode = false | |
5988 | glitchymode = true | |
5989 | tl1.Enabled = true | |
5990 | tl2.Enabled = true | |
5991 | tl3.Enabled = true | |
5992 | RecolorTextAndRename("gLiTcHy",Color3.new(0,0,0),Color3.new(0.35,0,1)) | |
5993 | newTheme("rbxassetid://1274310715",0,.93,1.25) -- 474074203 | |
5994 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'White' end) | |
5995 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'White' end) | |
5996 | MAINRUINCOLOR = BrickColor.new("White") | |
5997 | for i, v in pairs(mw2:GetChildren()) do | |
5998 | if v:IsA("Part") then | |
5999 | v.BrickColor = MAINRUINCOLOR | |
6000 | v.Material = "Neon" | |
6001 | end | |
6002 | end | |
6003 | for i, v in pairs(mw1:GetChildren()) do | |
6004 | if v:IsA("Part") then | |
6005 | v.Transparency = 0 | |
6006 | v.BrickColor = MAINRUINCOLOR | |
6007 | v.Material = "Neon" | |
6008 | end | |
6009 | end | |
6010 | for i, v in pairs(m:GetChildren()) do | |
6011 | if v:IsA("Part") then | |
6012 | v.BrickColor = BrickColor.new("Really black") | |
6013 | v.Material = "Ice" | |
6014 | end | |
6015 | end | |
6016 | for i, v in pairs(m2:GetChildren()) do | |
6017 | if v:IsA("Part") then | |
6018 | v.BrickColor = BrickColor.new("Dark indigo") | |
6019 | v.Material = "Glass" | |
6020 | end | |
6021 | end | |
6022 | for i, v in pairs(m3:GetChildren()) do | |
6023 | if v:IsA("Part") then | |
6024 | v.Transparency = 1 | |
6025 | v.BrickColor = BrickColor.new("Royal purple") | |
6026 | v.Material = "Neon" | |
6027 | end | |
6028 | end | |
6029 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6030 | if v:IsA("Part") then | |
6031 | v.Transparency = 1 | |
6032 | v.BrickColor = BrickColor.new("White") | |
6033 | v.Material = "Neon" | |
6034 | end | |
6035 | end | |
6036 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6037 | if v:IsA("Part") then | |
6038 | v.Transparency = 1 | |
6039 | v.BrickColor = BrickColor.new("White") | |
6040 | v.Material = "Neon" | |
6041 | end | |
6042 | end | |
6043 | elseif k == "e" and attack == false and ModeOfGlitch == 3 then | |
6044 | resetmode() | |
6045 | end | |
6046 | if k == "r" and attack == false and ModeOfGlitch ~= 4 then | |
6047 | ModeOfGlitch = 4 | |
6048 | storehumanoidWS = 16 | |
6049 | hum.WalkSpeed = 16 | |
6050 | rainbowmode = false | |
6051 | glitchymode = false | |
6052 | chaosmode = true | |
6053 | tl1.Enabled = true | |
6054 | tl2.Enabled = true | |
6055 | tl3.Enabled = true | |
6056 | RecolorTextAndRename("CHAOS",Color3.new(0,0,0),BrickColor.random().Color) | |
6057 | newTheme("rbxassetid://1369263130",0,1,1) | |
6058 | MAINRUINCOLOR = BrickColor.new("Black") | |
6059 | tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6060 | tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6061 | tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6062 | for i, v in pairs(mw2:GetChildren()) do | |
6063 | if v:IsA("Part") then | |
6064 | v.BrickColor = MAINRUINCOLOR | |
6065 | v.Material = "Neon" | |
6066 | end | |
6067 | end | |
6068 | for i, v in pairs(mw1:GetChildren()) do | |
6069 | if v:IsA("Part") then | |
6070 | v.Transparency = 0.75 | |
6071 | v.BrickColor = BrickColor.random() | |
6072 | v.Material = "Neon" | |
6073 | end | |
6074 | end | |
6075 | for i, v in pairs(m:GetChildren()) do | |
6076 | if v:IsA("Part") then | |
6077 | v.BrickColor = BrickColor.new("Black") | |
6078 | v.Material = "Neon" | |
6079 | end | |
6080 | end | |
6081 | for i, v in pairs(m2:GetChildren()) do | |
6082 | if v:IsA("Part") then | |
6083 | v.BrickColor = BrickColor.random() | |
6084 | v.Material = "Neon" | |
6085 | end | |
6086 | end | |
6087 | for i, v in pairs(m3:GetChildren()) do | |
6088 | if v:IsA("Part") then | |
6089 | v.BrickColor = BrickColor.new("Black") | |
6090 | v.Material = "Neon" | |
6091 | end | |
6092 | end | |
6093 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6094 | if v:IsA("Part") then | |
6095 | v.Transparency = 1 | |
6096 | v.BrickColor = BrickColor.new("White") | |
6097 | v.Material = "Neon" | |
6098 | end | |
6099 | end | |
6100 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6101 | if v:IsA("Part") then | |
6102 | v.Transparency = 1 | |
6103 | v.BrickColor = BrickColor.new("White") | |
6104 | v.Material = "Neon" | |
6105 | end | |
6106 | end | |
6107 | elseif k == "r" and attack == false and ModeOfGlitch == 4 then | |
6108 | resetmode() | |
6109 | end | |
6110 | ||
6111 | if k == "m" and attack == false and ModeOfGlitch == 4 then | |
6112 | insanitymode() | |
6113 | elseif k == "m" and attack == false and ModeOfGlitch == 666666 then | |
6114 | resetmode() | |
6115 | end | |
6116 | if k == "t" and attack == false and ModeOfGlitch ~= 5 then | |
6117 | ModeOfGlitch = 5 | |
6118 | storehumanoidWS = 16 | |
6119 | hum.WalkSpeed = 16 | |
6120 | rainbowmode = false | |
6121 | chaosmode = false | |
6122 | glitchymode = false | |
6123 | tl1.Enabled = true | |
6124 | tl2.Enabled = true | |
6125 | tl3.Enabled = true | |
6126 | RecolorTextAndRename("Divinity",Color3.new(1,1,1),Color3.new(1,1,0.5)) | |
6127 | newTheme("rbxassetid://661079869",0,1.02,1) | |
6128 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'New Yeller' end) | |
6129 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'New Yeller' end) | |
6130 | MAINRUINCOLOR = BrickColor.new("Bright yellow") | |
6131 | for i, v in pairs(mw2:GetChildren()) do | |
6132 | if v:IsA("Part") then | |
6133 | v.BrickColor = MAINRUINCOLOR | |
6134 | v.Material = "Neon" | |
6135 | end | |
6136 | end | |
6137 | for i, v in pairs(mw1:GetChildren()) do | |
6138 | if v:IsA("Part") then | |
6139 | v.Transparency = 0 | |
6140 | v.BrickColor = MAINRUINCOLOR | |
6141 | v.Material = "Neon" | |
6142 | end | |
6143 | end | |
6144 | for i, v in pairs(m:GetChildren()) do | |
6145 | if v:IsA("Part") then | |
6146 | v.BrickColor = BrickColor.new("Cool yellow") | |
6147 | v.Material = "Ice" | |
6148 | end | |
6149 | end | |
6150 | for i, v in pairs(m2:GetChildren()) do | |
6151 | if v:IsA("Part") then | |
6152 | v.BrickColor = BrickColor.new("Bright yellow") | |
6153 | v.Material = "Ice" | |
6154 | end | |
6155 | end | |
6156 | for i, v in pairs(m3:GetChildren()) do | |
6157 | if v:IsA("Part") then | |
6158 | v.BrickColor = BrickColor.new("Bright yellow") | |
6159 | v.Material = "Neon" | |
6160 | end | |
6161 | end | |
6162 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6163 | if v:IsA("Part") then | |
6164 | v.Transparency = 1 | |
6165 | v.BrickColor = BrickColor.new("White") | |
6166 | v.Material = "Neon" | |
6167 | end | |
6168 | end | |
6169 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6170 | if v:IsA("Part") then | |
6171 | v.Transparency = 1 | |
6172 | v.BrickColor = BrickColor.new("White") | |
6173 | v.Material = "Neon" | |
6174 | end | |
6175 | end | |
6176 | elseif k == "t" and attack == false and ModeOfGlitch == 5 then | |
6177 | resetmode() | |
6178 | end | |
6179 | if k == "y" and attack == false and ModeOfGlitch ~= 6 then | |
6180 | ModeOfGlitch = 6 | |
6181 | storehumanoidWS = 75 | |
6182 | hum.WalkSpeed = 75 | |
6183 | rainbowmode = false | |
6184 | chaosmode = false | |
6185 | glitchymode = false | |
6186 | tl1.Enabled = true | |
6187 | tl2.Enabled = true | |
6188 | tl3.Enabled = true | |
6189 | RecolorTextAndRename("Justice",Color3.new(0,0,0),Color3.new(1,1,1)) | |
6190 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'White' end) | |
6191 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'White' end) | |
6192 | newTheme("rbxassetid://1102271169",0,1,1) | |
6193 | MAINRUINCOLOR = BrickColor.new("White") | |
6194 | for i, v in pairs(mw2:GetChildren()) do | |
6195 | if v:IsA("Part") then | |
6196 | v.BrickColor = MAINRUINCOLOR | |
6197 | v.Material = "Neon" | |
6198 | end | |
6199 | end | |
6200 | for i, v in pairs(mw1:GetChildren()) do | |
6201 | if v:IsA("Part") then | |
6202 | v.Transparency = 0 | |
6203 | v.BrickColor = MAINRUINCOLOR | |
6204 | v.Material = "Neon" | |
6205 | end | |
6206 | end | |
6207 | for i, v in pairs(m:GetChildren()) do | |
6208 | if v:IsA("Part") then | |
6209 | v.BrickColor = BrickColor.new("White") | |
6210 | v.Material = "Ice" | |
6211 | end | |
6212 | end | |
6213 | for i, v in pairs(m2:GetChildren()) do | |
6214 | if v:IsA("Part") then | |
6215 | v.BrickColor = BrickColor.new("White") | |
6216 | v.Material = "Ice" | |
6217 | end | |
6218 | end | |
6219 | for i, v in pairs(m3:GetChildren()) do | |
6220 | if v:IsA("Part") then | |
6221 | v.BrickColor = BrickColor.new("White") | |
6222 | v.Material = "Neon" | |
6223 | end | |
6224 | end | |
6225 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6226 | if v:IsA("Part") then | |
6227 | v.Transparency = 1 | |
6228 | v.BrickColor = BrickColor.new("White") | |
6229 | v.Material = "Neon" | |
6230 | end | |
6231 | end | |
6232 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6233 | if v:IsA("Part") then | |
6234 | v.Transparency = 1 | |
6235 | v.BrickColor = BrickColor.new("White") | |
6236 | v.Material = "Neon" | |
6237 | end | |
6238 | end | |
6239 | elseif k == "y" and attack == false and ModeOfGlitch == 6 then | |
6240 | resetmode() | |
6241 | end | |
6242 | if k == "u" and attack == false then | |
6243 | ||
6244 | storehumanoidWS = 50 | |
6245 | hum.WalkSpeed = 50 | |
6246 | rainbowmode = true | |
6247 | chaosmode = false | |
6248 | glitchymode = false | |
6249 | tl1.Enabled = true | |
6250 | tl2.Enabled = true | |
6251 | tl3.Enabled = true | |
6252 | ||
6253 | if(ModeOfGlitch == 6127843)then | |
6254 | vaporwave = not vaporwave | |
6255 | end | |
6256 | ||
6257 | if(not vaporwave)then | |
6258 | RecolorTextAndRename("RAINBOW",Color3.new(1,1,1),Color3.new(1,1,1)) | |
6259 | newTheme("rbxassetid://147930134",0,1,1) | |
6260 | else | |
6261 | RecolorTextAndRename("Vaporwave",Color3.new(1,1,1),Color3.new(1,1,1)) | |
6262 | newTheme("rbxassetid://1308711379",0,1,1) | |
6263 | end | |
6264 | ||
6265 | ||
6266 | ModeOfGlitch = 6127843 | |
6267 | MAINRUINCOLOR = BrickColor.new("White") | |
6268 | for i, v in pairs(mw2:GetChildren()) do | |
6269 | if v:IsA("Part") then | |
6270 | v.BrickColor = MAINRUINCOLOR | |
6271 | v.Material = "Neon" | |
6272 | end | |
6273 | end | |
6274 | for i, v in pairs(mw1:GetChildren()) do | |
6275 | if v:IsA("Part") then | |
6276 | v.Transparency = 0 | |
6277 | v.BrickColor = MAINRUINCOLOR | |
6278 | v.Material = "Neon" | |
6279 | end | |
6280 | end | |
6281 | for i, v in pairs(m:GetChildren()) do | |
6282 | if v:IsA("Part") then | |
6283 | v.BrickColor = BrickColor.new("White") | |
6284 | v.Material = "Neon" | |
6285 | end | |
6286 | end | |
6287 | for i, v in pairs(m2:GetChildren()) do | |
6288 | if v:IsA("Part") then | |
6289 | v.BrickColor = BrickColor.new("White") | |
6290 | v.Material = "Neon" | |
6291 | end | |
6292 | end | |
6293 | for i, v in pairs(m3:GetChildren()) do | |
6294 | if v:IsA("Part") then | |
6295 | v.BrickColor = BrickColor.new("White") | |
6296 | v.Material = "Neon" | |
6297 | end | |
6298 | end | |
6299 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6300 | if v:IsA("Part") then | |
6301 | v.Transparency = 1 | |
6302 | v.BrickColor = BrickColor.new("White") | |
6303 | v.Material = "Neon" | |
6304 | end | |
6305 | end | |
6306 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6307 | if v:IsA("Part") then | |
6308 | v.Transparency = 1 | |
6309 | v.BrickColor = BrickColor.new("White") | |
6310 | v.Material = "Neon" | |
6311 | end | |
6312 | end | |
6313 | elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then | |
6314 | resetmode() | |
6315 | end | |
6316 | if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then | |
6317 | ModeOfGlitch = 1000000 | |
6318 | storehumanoidWS = 100 | |
6319 | hum.WalkSpeed = 100 | |
6320 | rainbowmode = false | |
6321 | chaosmode = false | |
6322 | glitchymode = false | |
6323 | tl1.Enabled = true | |
6324 | tl2.Enabled = true | |
6325 | tl3.Enabled = true | |
6326 | RecolorTextAndRename("CALAMITY",Color3.new(0.25,0,1),Color3.new(0.5,0,1)) | |
6327 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Bright violet' end) | |
6328 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Bright violet' end) | |
6329 | newTheme("rbxassetid://1359036559",0,1,1) | |
6330 | MAINRUINCOLOR = BrickColor.new("Bright violet") | |
6331 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6332 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6333 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6334 | for i, v in pairs(mw2:GetChildren()) do | |
6335 | if v:IsA("Part") then | |
6336 | v.BrickColor = MAINRUINCOLOR | |
6337 | v.Material = "Neon" | |
6338 | end | |
6339 | end | |
6340 | for i, v in pairs(mw1:GetChildren()) do | |
6341 | if v:IsA("Part") then | |
6342 | v.Transparency = 0 | |
6343 | v.BrickColor = MAINRUINCOLOR | |
6344 | v.Material = "Neon" | |
6345 | end | |
6346 | end | |
6347 | for i, v in pairs(m:GetChildren()) do | |
6348 | if v:IsA("Part") then | |
6349 | v.Color = Color3.new(0.5,0,1) | |
6350 | v.Material = "Neon" | |
6351 | end | |
6352 | end | |
6353 | for i, v in pairs(m2:GetChildren()) do | |
6354 | if v:IsA("Part") then | |
6355 | v.Color = Color3.new(0.25,0,1) | |
6356 | v.Material = "Neon" | |
6357 | end | |
6358 | end | |
6359 | for i, v in pairs(m3:GetChildren()) do | |
6360 | if v:IsA("Part") then | |
6361 | v.Color = Color3.new(0.45,0,1) | |
6362 | v.Material = "Neon" | |
6363 | end | |
6364 | end | |
6365 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6366 | if v:IsA("Part") then | |
6367 | v.Transparency = 0.75 | |
6368 | v.Color = Color3.new(0.25,0,1) | |
6369 | v.Material = "Neon" | |
6370 | end | |
6371 | end | |
6372 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6373 | if v:IsA("Part") then | |
6374 | v.Transparency = 0.75 | |
6375 | v.Color = Color3.new(0.5,0,1) | |
6376 | v.Material = "Neon" | |
6377 | end | |
6378 | end | |
6379 | elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then | |
6380 | resetmode() | |
6381 | end | |
6382 | if k == "m" and attack == false and ModeOfGlitch == 1000000 and ModeOfGlitch ~= 12345678987654321 and (plr.Name == 'Noobygames12' or plr.UserId == 5719877 or AllowCata) then | |
6383 | newThemeCust("rbxassetid://1504604335",0,1,1) | |
6384 | attack = true | |
6385 | hum.WalkSpeed = 0 | |
6386 | MAINRUINCOLOR = BrickColor.new("Royal purple") | |
6387 | for i = 0, 24, 0.1 do | |
6388 | swait() | |
6389 | sphereMK(1,-2,"Add",tors.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,MAINRUINCOLOR,100) | |
6390 | 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) | |
6391 | 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) | |
6392 | 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) | |
6393 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(55),math.rad(0),math.rad(0)),.1) | |
6394 | 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) | |
6395 | 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) | |
6396 | end | |
6397 | CameraEnshaking(1,1) | |
6398 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
6399 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 0.5,1) | |
6400 | wait(0.55) | |
6401 | CameraEnshaking(1,2) | |
6402 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
6403 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6404 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
6405 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 1,1) | |
6406 | wait(0.55) | |
6407 | CameraEnshaking(1,3) | |
6408 | sphere(5,"Add",root.CFrame,vt(0,0,0),12.5,MAINRUINCOLOR) | |
6409 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6410 | sphere(5,"Add",root.CFrame,vt(0,0,0),7.5,MAINRUINCOLOR) | |
6411 | sphere(5,"Add",root.CFrame,vt(0,0,0),5,MAINRUINCOLOR) | |
6412 | sphere(5,"Add",root.CFrame,vt(0,0,0),2.5,MAINRUINCOLOR) | |
6413 | CFuncs["Sound"].Create("rbxassetid://847061203", char, 2,1) | |
6414 | wait(0.55) | |
6415 | CameraEnshaking(10,5) | |
6416 | CFuncs["Sound"].Create("rbxassetid://741272936", char, 1, 1) | |
6417 | CFuncs["Sound"].Create("rbxassetid://164881112", char, 1, 1) | |
6418 | CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1) | |
6419 | CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85) | |
6420 | CFuncs["Sound"].Create("rbxassetid://1208650519", char, 1, 1) | |
6421 | sphere(1,"Add",root.CFrame,vt(0,0,0),2,MAINRUINCOLOR) | |
6422 | sphere(2,"Add",root.CFrame,vt(0,0,0),4,MAINRUINCOLOR) | |
6423 | sphere(3,"Add",root.CFrame,vt(0,0,0),6,MAINRUINCOLOR) | |
6424 | sphere(4,"Add",root.CFrame,vt(0,0,0),8,MAINRUINCOLOR) | |
6425 | sphere(5,"Add",root.CFrame,vt(0,0,0),10,MAINRUINCOLOR) | |
6426 | sphere(6,"Add",root.CFrame,vt(0,0,0),12,MAINRUINCOLOR) | |
6427 | sphere(7,"Add",root.CFrame,vt(0,0,0),14,MAINRUINCOLOR) | |
6428 | sphere(8,"Add",root.CFrame,vt(0,0,0),16,MAINRUINCOLOR) | |
6429 | sphere(9,"Add",root.CFrame,vt(0,0,0),18,MAINRUINCOLOR) | |
6430 | sphere(10,"Add",root.CFrame,vt(0,0,0),20,MAINRUINCOLOR) | |
6431 | for i = 0, 49 do | |
6432 | 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) | |
6433 | 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) | |
6434 | 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) | |
6435 | 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) | |
6436 | end | |
6437 | ModeOfGlitch = 12345678987654321 | |
6438 | storehumanoidWS = 200 | |
6439 | hum.WalkSpeed = 200 | |
6440 | rainbowmode = false | |
6441 | chaosmode = false | |
6442 | glitchymode = false | |
6443 | tl1.Enabled = true | |
6444 | tl2.Enabled = true | |
6445 | tl3.Enabled = true | |
6446 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Dark indigo' end) | |
6447 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Dark indigo' end) | |
6448 | RecolorTextAndRename("CATASTROPHE",Color3.new(0.5,0,1),Color3.new(0.75,0,1)) | |
6449 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6450 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6451 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6452 | for i, v in pairs(mw2:GetChildren()) do | |
6453 | if v:IsA("Part") then | |
6454 | v.BrickColor = MAINRUINCOLOR | |
6455 | v.Material = "Neon" | |
6456 | end | |
6457 | end | |
6458 | for i, v in pairs(mw1:GetChildren()) do | |
6459 | if v:IsA("Part") then | |
6460 | v.Transparency = 0 | |
6461 | v.BrickColor = MAINRUINCOLOR | |
6462 | v.Material = "Neon" | |
6463 | end | |
6464 | end | |
6465 | for i, v in pairs(m:GetChildren()) do | |
6466 | if v:IsA("Part") then | |
6467 | v.Color = Color3.new(0.5,0,1) | |
6468 | v.Material = "Neon" | |
6469 | end | |
6470 | end | |
6471 | for i, v in pairs(m2:GetChildren()) do | |
6472 | if v:IsA("Part") then | |
6473 | v.Color = Color3.new(0.5,0,1) | |
6474 | v.Material = "Neon" | |
6475 | end | |
6476 | end | |
6477 | for i, v in pairs(m3:GetChildren()) do | |
6478 | if v:IsA("Part") then | |
6479 | v.Color = Color3.new(0.5,0,1) | |
6480 | v.Material = "Neon" | |
6481 | end | |
6482 | end | |
6483 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6484 | if v:IsA("Part") then | |
6485 | v.Transparency = 0 | |
6486 | v.Color = Color3.new(0.5,0,1) | |
6487 | v.Material = "Neon" | |
6488 | end | |
6489 | end | |
6490 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
6491 | if v:IsA("Part") then | |
6492 | v.Transparency = 0 | |
6493 | v.Color = Color3.new(0.5,0,1) | |
6494 | v.Material = "Neon" | |
6495 | end | |
6496 | attack = false | |
6497 | end | |
6498 | elseif k == "m" and attack == false and ModeOfGlitch == 12345678987654321 then | |
6499 | resetmode() | |
6500 | end | |
6501 | if k == "l" and toggleTag == false then | |
6502 | toggleTag = true | |
6503 | text.TextTransparency = 0 | |
6504 | text.TextStrokeTransparency = 0 | |
6505 | elseif k == "l" and toggleTag == true then | |
6506 | toggleTag = false | |
6507 | text.TextTransparency = 1 | |
6508 | text.TextStrokeTransparency = 1 | |
6509 | end | |
6510 | if k == "z" and attack == false and (ModeOfGlitch == 1 or ModeOfGlitch == 8376532578634534) then | |
6511 | ExtinctiveHeartbreak() | |
6512 | elseif k == "z" and attack == false and ModeOfGlitch == 2 then | |
6513 | PureBomb() | |
6514 | elseif k == "z" and attack == false and ModeOfGlitch == 3 then | |
6515 | scattercorrupt() | |
6516 | elseif k == "z" and attack == false and ModeOfGlitch == 5 then | |
6517 | Judgement() | |
6518 | elseif k == "z" and attack == false and ModeOfGlitch == 4 then | |
6519 | ChaosGroundStrike() | |
6520 | elseif k == "z" and attack == false and ModeOfGlitch == 666666 then | |
6521 | InsaneGroundStrike() | |
6522 | ||
6523 | elseif k == "z" and attack == false and ModeOfGlitch == 69 then | |
6524 | ChooseODer() | |
6525 | elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then | |
6526 | Starfall() | |
6527 | elseif k == "z" and attack == false and ModeOfGlitch == 6 then | |
6528 | yinyangi() | |
6529 | elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then | |
6530 | Wip() | |
6531 | elseif k == "z" and attack == false and ModeOfGlitch == 12345678987654321 then | |
6532 | StarfallEX() | |
6533 | end | |
6534 | if k == "x" and attack == false and ModeOfGlitch == 1000000 then | |
6535 | StarDivision() | |
6536 | elseif k == "x" and attack == false and ModeOfGlitch == 6 then | |
6537 | JusticeBeam() | |
6538 | end | |
6539 | if k == "v" and attack == false and ModeOfGlitch == 12345678987654321 then | |
6540 | UniversalCollapse() | |
6541 | end | |
6542 | if k == "b" and attack == false and ModeOfGlitch == 4 then | |
6543 | ||
6544 | end | |
6545 | if k == "n" and attack == false then | |
6546 | CorruptBlink() | |
6547 | end | |
6548 | if k == "m" and attack == false and ModeOfGlitch == 69 and AllowRape then | |
6549 | FuckMeSidewaysAndCallMeGay() | |
6550 | end | |
6551 | end) | |
6552 | coroutine.resume(coroutine.create(function() | |
6553 | while true do | |
6554 | swait(2) | |
6555 | if rainbowmode == true or ModeOfGlitch == 6 or glitchymode then | |
6556 | sphereMK(5,0.15,"Add",root.CFrame*CFrame.new(math.random(-5,5),-6,math.random(-5,5))*CFrame.Angles(math.rad(90),0,0),1.5,1.5,10,-0.015,MAINRUINCOLOR,0) | |
6557 | end | |
6558 | ||
6559 | end | |
6560 | end)) | |
6561 | ||
6562 | ||
6563 | coroutine.resume(coroutine.create(function() | |
6564 | while true do | |
6565 | if ModeOfGlitch == 1000000 then | |
6566 | swait(0.5) | |
6567 | end | |
6568 | swait() | |
6569 | if ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 then | |
6570 | sphereMK(5,0.5,"Add",root.CFrame*CFrame.new(math.random(-25,25),-10,math.random(-25,25))*CFrame.Angles(math.rad(90 + math.random(-15,15)),math.rad(math.random(-15,15)),0),1,1,15,-0.01,MAINRUINCOLOR,0) | |
6571 | end | |
6572 | if ModeOfGlitch == 12345678987654321 then | |
6573 | sphereMK(5,math.random(1,2),"Add",root.CFrame*CFrame.new(math.random(-75,75),-25,math.random(-75,75))*CFrame.Angles(math.rad(90 + math.random(-25,25)),math.rad(math.random(-25,25)),0),1,1,50,-0.01,MAINRUINCOLOR,0) | |
6574 | end | |
6575 | end | |
6576 | end)) | |
6577 | ||
6578 | ||
6579 | function RandomMaterial() | |
6580 | local getRandom; | |
6581 | local material; | |
6582 | local function IsTerrainMaterial(mat) | |
6583 | local isMaterial = pcall(function() workspace:FindFirstChildOfClass'Terrain':GetMaterialColor(mat) end) | |
6584 | return isMaterial | |
6585 | end | |
6586 | getRandom = function() | |
6587 | local mat = Enum.Material:GetEnumItems()[math.random(1,#Enum.Material:GetEnumItems())] | |
6588 | if(not IsTerrainMaterial(mat))then material = mat else getRandom() end | |
6589 | end | |
6590 | getRandom() | |
6591 | repeat wait() until material | |
6592 | return material | |
6593 | end | |
6594 | function RandomCaps(str) | |
6595 | local new = "" | |
6596 | for i = 1, #str do | |
6597 | if(math.random(1,2) == 1)then | |
6598 | new = new .. (str:sub(i,i):upper()) | |
6599 | else | |
6600 | new = new .. str:sub(i,i) | |
6601 | end | |
6602 | end | |
6603 | return new | |
6604 | end | |
6605 | ||
6606 | coroutine.resume(coroutine.create(function() | |
6607 | while true do | |
6608 | for i = 1, #ODers do | |
6609 | local ODer = ODers[i] | |
6610 | if(ODer)then | |
6611 | local hed = ODer:FindFirstChild'Head' | |
6612 | if(ODer.Parent and hed)then | |
6613 | sphere(10,"Add",hed.CFrame * cf(0,4,0),vt(6,6,3),0,(ODer.Name == 'Nebula_Zorua' and BrickColor.new'Royal purple' or MAINRUINCOLOR),true,false,true) | |
6614 | else | |
6615 | table.remove(ODers,i) | |
6616 | end | |
6617 | else | |
6618 | table.remove(ODers,i) | |
6619 | end | |
6620 | end | |
6621 | if(not kan)then | |
6622 | kan = Instance.new("Sound",char) | |
6623 | end | |
6624 | kan.Parent = char | |
6625 | if(plr.UserId == 5719877)then kan.Volume = 3 else kan.Volume = 1 end | |
6626 | kan.Pitch = Pitch | |
6627 | kan.SoundId = MID | |
6628 | kan.Name = "wrecked" | |
6629 | kan.Looped = true | |
6630 | kan:Resume() | |
6631 | swait() | |
6632 | if glitchymode == true then | |
6633 | local val = math.random(1,255) | |
6634 | local color = Color3.fromRGB(val,val,val) | |
6635 | pcall(function() Character.ReaperShadowHead.Eye1.Color = color end) | |
6636 | pcall(function() Character.ReaperShadowHead.Eye2.Color = color end) | |
6637 | tl1.Color = ColorSequence.new(color) | |
6638 | tl2.Color = ColorSequence.new(color) | |
6639 | tl3.Color = ColorSequence.new(color) | |
6640 | tr1.Color = ColorSequence.new(color) | |
6641 | tr2.Color = ColorSequence.new(color) | |
6642 | tr3.Color = ColorSequence.new(color) | |
6643 | for i, v in pairs(mw1:GetChildren()) do | |
6644 | if v:IsA("Part") then | |
6645 | v.Transparency = 0 | |
6646 | v.Color = color | |
6647 | v.Material = "Neon" | |
6648 | end | |
6649 | end | |
6650 | for i, v in pairs(mw2:GetChildren()) do | |
6651 | if v:IsA("Part") then | |
6652 | v.Color = color | |
6653 | v.Material = "Neon" | |
6654 | end | |
6655 | end | |
6656 | for i, v in pairs(m2:GetChildren()) do | |
6657 | if v:IsA("Part") then | |
6658 | v.Color = color | |
6659 | v.Material = "Neon" | |
6660 | end | |
6661 | end | |
6662 | RecolorTextAndRename((ModeOfGlitch == 3 and RandomCaps"glitchy"),Color3.new(0,0,0),color) | |
6663 | end | |
6664 | if chaosmode or glitchymode then | |
6665 | pcall(function() Character.ReaperShadowHead.Eye1.Material = Enum.Material:GetEnumItems()[math.random(1,#Enum.Material:GetEnumItems())] end) | |
6666 | pcall(function() Character.ReaperShadowHead.Eye2.Material = Enum.Material:GetEnumItems()[math.random(1,#Enum.Material:GetEnumItems())] end) | |
6667 | else | |
6668 | pcall(function() Character.ReaperShadowHead.Eye1.Material = Enum.Material.Neon end) | |
6669 | pcall(function() Character.ReaperShadowHead.Eye2.Material = Enum.Material.Neon end) | |
6670 | end | |
6671 | if chaosmode == true then | |
6672 | tl1.Color = ColorSequence.new(BrickColor.random().Color) | |
6673 | tl2.Color = ColorSequence.new(BrickColor.random().Color) | |
6674 | tl3.Color = ColorSequence.new(BrickColor.random().Color) | |
6675 | RecolorTextAndRename((ModeOfGlitch == 666666 and "INSANITY" or "CHAOS"),Color3.new(0,0,0),BrickColor.random().Color) | |
6676 | pcall(function() Character.ReaperShadowHead.Eye1.BrickColor = BrickColor.random() end) | |
6677 | pcall(function() Character.ReaperShadowHead.Eye2.BrickColor = BrickColor.random() end) | |
6678 | for i, v in pairs(mw1:GetChildren()) do | |
6679 | if v:IsA("Part") then | |
6680 | v.Transparency = 0.75 | |
6681 | v.BrickColor = BrickColor.random() | |
6682 | v.Material = "Neon" | |
6683 | end | |
6684 | end | |
6685 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
6686 | if v:IsA("Part") and ModeOfGlitch == 666666 then | |
6687 | v.Transparency = 0.75 | |
6688 | v.BrickColor = BrickColor.random() | |
6689 | v.Material = "Neon" | |
6690 | elseif v:IsA("Part") then | |
6691 | v.Transparency = 1 | |
6692 | end | |
6693 | end | |
6694 | for i, v in pairs(m2:GetChildren()) do | |
6695 | if v:IsA("Part") then | |
6696 | v.BrickColor = BrickColor.random() | |
6697 | v.Material = "Neon" | |
6698 | end | |
6699 | end | |
6700 | end | |
6701 | end | |
6702 | end)) | |
6703 | Humanoid.Name = "STARGLITCHER" | |
6704 | Humanoid.MaxHealth = math.huge | |
6705 | Humanoid.Health = math.huge | |
6706 | Instance.new("ForceField",char).Visible = false | |
6707 | Humanoid.Animator.Parent = nil | |
6708 | idleanim=.4 | |
6709 | while true do | |
6710 | if rainbowmode == false and chaosmode == false and glitchymode == false then | |
6711 | tr1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6712 | tr2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6713 | tr3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6714 | tl1.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6715 | tl2.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6716 | tl3.Color = ColorSequence.new(MAINRUINCOLOR.Color) | |
6717 | end | |
6718 | if rainbowmode == true then | |
6719 | pcall(function() Character.ReaperShadowHead.Eye1.Color = Color3.new(r/255,g/255,b/255) end) | |
6720 | pcall(function() Character.ReaperShadowHead.Eye2.Color = Color3.new(r/255,g/255,b/255) end) | |
6721 | if(not vaporwave)then | |
6722 | RecolorTextAndRename("RAINBOW",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500)) | |
6723 | else | |
6724 | RecolorTextAndRename("Vaporwave",Color3.new(r/255,g/255,b/255),Color3.new(r/500,g/500,b/500)) | |
6725 | end | |
6726 | MAINRUINCOLOR = BrickColor.new("White") | |
6727 | tr1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6728 | tr2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6729 | tr3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6730 | tl1.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6731 | tl2.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6732 | tl3.Color = ColorSequence.new(Color3.new(r/255,g/255,b/255)) | |
6733 | for i, v in pairs(m:GetChildren()) do | |
6734 | if v:IsA("Part") then | |
6735 | v.Color = Color3.new(r/255,g/255,b/255) | |
6736 | end | |
6737 | end | |
6738 | for i, v in pairs(m2:GetChildren()) do | |
6739 | if v:IsA("Part") then | |
6740 | v.Color = Color3.new(r/255,g/255,b/255) | |
6741 | end | |
6742 | end | |
6743 | for i, v in pairs(m3:GetChildren()) do | |
6744 | if v:IsA("Part") then | |
6745 | v.Color = Color3.new(r/255,g/255,b/255) | |
6746 | end | |
6747 | end | |
6748 | for i, v in pairs(mw1:GetChildren()) do | |
6749 | if v:IsA("Part") then | |
6750 | v.Color = Color3.new(r/255,g/255,b/255) | |
6751 | v.Material = "Neon" | |
6752 | end | |
6753 | end | |
6754 | for i, v in pairs(mw2:GetChildren()) do | |
6755 | if v:IsA("Part") then | |
6756 | v.Color = Color3.new(r/255,g/255,b/255) | |
6757 | v.Material = "Neon" | |
6758 | end | |
6759 | end | |
6760 | end | |
6761 | CameraManager() | |
6762 | swait() | |
6763 | 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) | |
6764 | 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) | |
6765 | 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) | |
6766 | 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) | |
6767 | 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) | |
6768 | 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) | |
6769 | ||
6770 | 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) | |
6771 | 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) | |
6772 | 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) | |
6773 | 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) | |
6774 | 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) | |
6775 | 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) | |
6776 | sine = sine + change | |
6777 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
6778 | local velderp=RootPart.Velocity.y | |
6779 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
6780 | if equipped==true or equipped==false then | |
6781 | if attack==false then | |
6782 | idle=idle+1 | |
6783 | else | |
6784 | idle=0 | |
6785 | end | |
6786 | if idle>=500 then | |
6787 | if attack==false then | |
6788 | --Sheath() | |
6789 | end | |
6790 | end | |
6791 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
6792 | Anim="Jump" | |
6793 | if attack==false then | |
6794 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
6795 | 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) | |
6796 | 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) | |
6797 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1) | |
6798 | 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) | |
6799 | 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) | |
6800 | end | |
6801 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
6802 | Anim="Fall" | |
6803 | if attack==false then | |
6804 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1) | |
6805 | 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) | |
6806 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
6807 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1) | |
6808 | RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1) | |
6809 | LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1) | |
6810 | end | |
6811 | elseif torvel<1 and hitfloor~=nil then | |
6812 | Anim="Idle" | |
6813 | if attack==false then | |
6814 | if ModeOfGlitch == 1 then | |
6815 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-10 - 2.5 * math.cos(sine / 32)),math.rad(-20),math.rad(0)),.1) | |
6816 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.1 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-10 + 2.5 * math.cos(sine / 32))),.1) | |
6817 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.1 * math.cos(sine / 32))*angles(math.rad(10 - 2 * math.cos(sine / 32)),math.rad(0),math.rad(20)),.1) | |
6818 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25 - 2.5 * math.cos(sine / 32)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(-20 - 5 * math.cos(sine / 0.465))),.1) | |
6819 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(-20),math.rad(30 + 2.5 * math.cos(sine / 25))),.1) | |
6820 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1) | |
6821 | ||
6822 | elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then | |
6823 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-7.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
6824 | 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) | |
6825 | 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) | |
6826 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(0)),.1) | |
6827 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1) | |
6828 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
6829 | ||
6830 | elseif ModeOfGlitch == 3 then | |
6831 | 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) | |
6832 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(20),math.rad(0 + 1 * math.cos(sine / 34))),.1) | |
6833 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1) | |
6834 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1) | |
6835 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(math.random(5,15)),math.rad(-5),math.rad(15 + 7.5 * math.cos(sine / 12.5))),.1) | |
6836 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(math.random(5,15)),math.rad(5),math.rad(-15 - 7.5 * math.cos(sine / 12.5))),.1) | |
6837 | elseif ModeOfGlitch == 4 then | |
6838 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1) | |
6839 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1) | |
6840 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
6841 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1) | |
6842 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1) | |
6843 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1) | |
6844 | elseif ModeOfGlitch == 69 then | |
6845 | RootJoint.C0 = RootJoint.C0:lerp(cf(0,0,0)*angles(0,0,math.rad(0+5*math.cos(sine/16)))*RootCF,.1) | |
6846 | Torso.Neck.C0 = Torso.Neck.C0:lerp(necko*angles(0,0,-math.rad(0+5*math.cos(sine/16))),.1) | |
6847 | LH.C0 = LH.C0:lerp(cf(-1-math.rad(0+5*math.cos(sine/16)),-1+math.rad(0+5*math.cos(sine/16)),0)*angles(0,0,-math.rad(0+5*math.cos(sine/16)))*angles(math.rad(-15),math.rad(25),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
6848 | RH.C0 = RH.C0:lerp(cf(1-math.rad(0+5*math.cos(sine/16)),-1-math.rad(0+5*math.cos(sine/16)),0)*angles(0,0,-math.rad(0+5*math.cos(sine/16)))*angles(math.rad(0),math.rad(90),math.rad(0)),.1) | |
6849 | LW.C0 = LW.C0:lerp(cf(-1.5,0.5,0)*cf(0,-.15,0)*angles(math.rad(15),0,math.rad(20)),.1) | |
6850 | RW.C0 = RW.C0:lerp(cf(1.5,0.5,0)*angles(0,0,math.rad(5+5*math.sin(sine/16))),.1) | |
6851 | elseif ModeOfGlitch == 8376532578634534 then | |
6852 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
6853 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
6854 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
6855 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(-25),0)*angles(math.rad(0 - 25 * math.cos(sine / 0.1164)),math.rad(0 - 30 * math.cos(sine / 0.25)),math.rad(0 - 30 * math.cos(sine / 0.465))),.1) | |
6856 | RW.C0=clerp(RW.C0,cf(1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(45),0,math.rad(-90)),.1) | |
6857 | LW.C0=clerp(LW.C0,cf(-1,0.5+.2*math.cos(sine/16),-.65)*angles(math.rad(-45),0,math.rad(100)),.1) | |
6858 | ||
6859 | elseif ModeOfGlitch == 666666 then | |
6860 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(20)),.1) | |
6861 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.025 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-1.5),math.rad(0),math.rad(-20)),.1) | |
6862 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.025 * math.cos(sine / 32))*angles(math.rad(20 - 0.5 * math.cos(sine / 32)),math.rad(0),math.rad(0)),.1) | |
6863 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6864 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6865 | LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6866 | ||
6867 | elseif ModeOfGlitch == 5 then | |
6868 | 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) | |
6869 | 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) | |
6870 | 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) | |
6871 | 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) | |
6872 | RW.C0=clerp(RW.C0,cf(1,0.5 + 0.1 * math.cos(sine / 28),0.45)*angles(math.rad(-30),math.rad(0),math.rad(-30)),.1) | |
6873 | 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) | |
6874 | ||
6875 | elseif ModeOfGlitch == 1000000 or ModeOfGlitch == 6 then | |
6876 | 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) | |
6877 | 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) | |
6878 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(0)),.1) | |
6879 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(0)),.1) | |
6880 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(20 + 2.5 * math.cos(sine / 28))),.1) | |
6881 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10),math.rad(0),math.rad(-20 - 2.5 * math.cos(sine / 28))),.1) | |
6882 | ||
6883 | elseif ModeOfGlitch == 12345678987654321 then | |
6884 | 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) | |
6885 | 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) | |
6886 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1.5 + 0.1 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-40)),.1) | |
6887 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1) | |
6888 | RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1) | |
6889 | LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1) | |
6890 | end | |
6891 | end | |
6892 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
6893 | Anim="Walk" | |
6894 | if attack==false then | |
6895 | if ModeOfGlitch == 1 then | |
6896 | RH.C0=clerp(RH.C0,cf(1,-.9-.4*math.cos(sine/8)/1.5,.4*math.cos(sine/8)/2)*angles(math.rad(2-2*math.cos(sine/8))-math.sin(sine/8)/2,0,0)*angles(0,math.rad(90),0),.1) | |
6897 | LH.C0=clerp(LH.C0,cf(-1,-.9+.4*math.cos(sine/8)/1.5,-.4*math.cos(sine/8)/2)*angles(math.rad(2+2*math.cos(sine/8))+math.sin(sine/8)/2,0,0)*angles(0,math.rad(-90),0),.1) | |
6898 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.1 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1) | |
6899 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6900 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1) | |
6901 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(25)),.1) | |
6902 | elseif ModeOfGlitch == 4 then | |
6903 | RH.C0=clerp(RH.C0,cf(1,-.9-.4*math.cos(sine/8)/2,.4*math.cos(sine/4)/2)*angles(math.rad(2-4*math.cos(sine/10))-math.sin(sine/10)/2,0,0)*angles(0,math.rad(90),0),.1) | |
6904 | LH.C0=clerp(LH.C0,cf(-1,-.9+.4*math.cos(sine/8)/2,-.4*math.cos(sine/4)/2)*angles(math.rad(2+3*math.cos(sine/10))+math.sin(sine/10)/2,0,0)*angles(0,math.rad(-90),0),.1) | |
6905 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1) | |
6906 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 5 * math.cos(sine / 0.25)),math.rad(0 - 5 * math.cos(sine / 0.465))),.1) | |
6907 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(10 - 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6))),.1) | |
6908 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(10 + 15 * math.cos(sine / 12)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23))),.1) | |
6909 | elseif ModeOfGlitch == 666666 then | |
6910 | RH.C0=clerp(RH.C0,cf(1,-.9-.4*math.cos(sine/8)/2,.4*math.cos(sine/8)/2)*angles(math.rad(2-2*math.cos(sine/10))-math.sin(sine/8)/2,0,0)*angles(0,math.rad(90),0),.1) | |
6911 | LH.C0=clerp(LH.C0,cf(-1,-.9+.4*math.cos(sine/8)/2,-.4*math.cos(sine/8)/2)*angles(math.rad(2+2*math.cos(sine/10))+math.sin(sine/8)/2,0,0)*angles(0,math.rad(-90),0),.1) | |
6912 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 8))*angles(math.rad(12.5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 12))),.1) | |
6913 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6914 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6915 | LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6916 | ||
6917 | elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then | |
6918 | RH.C0=clerp(RH.C0,cf(1,-.85-.4*math.cos(sine/8)/1.5,.4*math.cos(sine/8)/2)*angles(math.rad(2-2*math.cos(sine/8))-math.sin(sine/8)/2,0,0)*angles(0,math.rad(90),0),.1) | |
6919 | LH.C0=clerp(LH.C0,cf(-1,-.85+.4*math.cos(sine/8)/1.5,-.4*math.cos(sine/8)/2)*angles(math.rad(2+2*math.cos(sine/8))+math.sin(sine/8)/2,0,0)*angles(0,math.rad(-90),0),.1) | |
6920 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 4))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 8))),.1) | |
6921 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 8))),.1) | |
6922 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 + 45 * math.cos(sine / 8)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 4))),.1) | |
6923 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 - 45 * math.cos(sine / 8)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 4))),.1) | |
6924 | end | |
6925 | end | |
6926 | elseif torvel>=22 and hitfloor~=nil then | |
6927 | Anim="Run" | |
6928 | if attack==false then | |
6929 | if ModeOfGlitch ~= 1000000 and ModeOfGlitch ~= 12345678987654321 and ModeOfGlitch ~= 4 and ModeOfGlitch ~= 6 and ModeOfGlitch ~= 8376532578634534 then | |
6930 | RH.C0=clerp(RH.C0,cf(1,-1-.4*math.cos(sine/6)/2,.8*math.cos(sine/6)/2)*angles(math.rad(0-65*math.cos(sine/6))-math.sin(sine/6)/1.5,0,0)*angles(0,math.rad(90),0),.1) | |
6931 | LH.C0=clerp(LH.C0,cf(-1,-1+.4*math.cos(sine/6)/2,-.8*math.cos(sine/6)/2)*angles(math.rad(0+65*math.cos(sine/6))+math.sin(sine/6)/1.5,0,0)*angles(0,math.rad(-90),0),.1) | |
6932 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1) | |
6933 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1) | |
6934 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 + 105 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1) | |
6935 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 - 105 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1) | |
6936 | elseif ModeOfGlitch == 666666 then | |
6937 | RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
6938 | LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1) | |
6939 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + .125 * math.cos(sine / 3))*angles(math.rad(25),math.rad(0),math.rad(0 - 5 * math.cos(sine / 6))),.1) | |
6940 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(30 - 5 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6941 | RW.C0=clerp(RW.C0,cf(1.3,0.5,0)*angles(math.rad(180),math.rad(-90),math.rad(15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.252)),math.rad(0 + 2.5 * math.cos(sine / 0.123)),math.rad(5 + 2.5 * math.cos(sine / 0.6)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6942 | LW.C0=clerp(LW.C0,cf(-1.3,0.5,0)*angles(math.rad(180),math.rad(90),math.rad(-15))*angles(math.rad(-35),0,0)*angles(math.rad(10 + 2.5 * math.cos(sine / 0.568)),math.rad(0 + 2.5 * math.cos(sine / 0.664)),math.rad(-5 + 2.5 * math.cos(sine / 0.23)))*angles(0,math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465))),.1) | |
6943 | ||
6944 | elseif ModeOfGlitch == 1000000 or ModeOfGlitch == 12345678987654321 or ModeOfGlitch == 4 or ModeOfGlitch == 6 or ModeOfGlitch == 8376532578634534 then | |
6945 | 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) | |
6946 | 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) | |
6947 | 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) | |
6948 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-20),math.rad(0),math.rad(0)),.2) | |
6949 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(30 + 2.5 * math.cos(sine / 28))),.2) | |
6950 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-30),math.rad(0),math.rad(-30 - 2.5 * math.cos(sine / 28))),.2) | |
6951 | end | |
6952 | end | |
6953 | end | |
6954 | end | |
6955 | end |