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