SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end | |
2 | print("FE Compatibility: by WaverlyCole & Mokiros") | |
3 | InternalData = {} | |
4 | do | |
5 | script.Parent = owner.Character | |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput" | |
8 | local function NewFakeEvent() | |
9 | local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect | |
10 | return Fake | |
11 | end | |
12 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
13 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
14 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
15 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
16 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
17 | local function TriggerEvent(self,Event,...) | |
18 | local Trigger = Mouse[Event] | |
19 | if Trigger and Trigger.fakeEvent and Trigger.Function then | |
20 | Trigger.Function(...) | |
21 | end | |
22 | end | |
23 | Mouse.TrigEvent = TriggerEvent | |
24 | UserInputService.TrigEvent = TriggerEvent | |
25 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
26 | if FiredBy.Name ~= owner.Name then end | |
27 | if Input.MouseEvent then | |
28 | Mouse.Target = Input.Target | |
29 | Mouse.Hit = Input.Hit | |
30 | else | |
31 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
32 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then | |
33 | return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") | |
34 | end | |
35 | for _,Action in pairs(ContextActionService.Actions) do | |
36 | for _,Key in pairs(Action.Keys) do | |
37 | if Key==Input.KeyCode then | |
38 | Action.Function(Action.Name,Input.UserInputState,Input) | |
39 | end | |
40 | end | |
41 | end | |
42 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
43 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
44 | end | |
45 | end) | |
46 | InternalData["Mouse"] = Mouse | |
47 | InternalData["ContextActionService"] = ContextActionService | |
48 | InternalData["UserInputService"] = UserInputService | |
49 | Event.Parent = NLS([[ | |
50 | local Player = owner | |
51 | local Event = script:WaitForChild("UserInput") | |
52 | local UserInputService = game:GetService("UserInputService") | |
53 | local Mouse = Player:GetMouse() | |
54 | local Input = function(Input,gameProcessedEvent) | |
55 | if gameProcessedEvent then return end | |
56 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
57 | end | |
58 | UserInputService.InputBegan:Connect(Input) | |
59 | UserInputService.InputEnded:Connect(Input) | |
60 | local Hit,Target | |
61 | while wait(1/30) do | |
62 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
63 | Hit,Target = Mouse.Hit,Mouse.Target | |
64 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
65 | end | |
66 | end | |
67 | ]],owner.Character) | |
68 | end | |
69 | RealGame = game;game = setmetatable({},{ | |
70 | __index = function (self,Index) | |
71 | local Sandbox = function (Thing) | |
72 | if Thing:IsA("Player") then | |
73 | local RealPlayer = Thing | |
74 | return setmetatable({},{ | |
75 | __index = function (self,Index) | |
76 | local Type = type(RealPlayer[Index]) | |
77 | if Type == "function" then | |
78 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
79 | return function (self) | |
80 | return InternalData["Mouse"] | |
81 | end | |
82 | end | |
83 | return function (self,...) | |
84 | return RealPlayer[Index](RealPlayer,...) | |
85 | end | |
86 | else | |
87 | if Index == "PlrObj" then | |
88 | return RealPlayer | |
89 | end | |
90 | return RealPlayer[Index] | |
91 | end | |
92 | end; | |
93 | __tostring = function(self) | |
94 | return RealPlayer.Name | |
95 | end | |
96 | }) | |
97 | end | |
98 | end | |
99 | if RealGame[Index] then | |
100 | local Type = type(RealGame[Index]) | |
101 | if Type == "function" then | |
102 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
103 | return function (self,Service) | |
104 | if Service:lower() == "players" then | |
105 | return setmetatable({},{ | |
106 | __index = function (self2,Index2) | |
107 | local RealService = RealGame:GetService(Service) | |
108 | local Type2 = type(Index2) | |
109 | if Type2 == "function" then | |
110 | return function (self,...) | |
111 | return RealService[Index2](RealService,...) | |
112 | end | |
113 | else | |
114 | if Index2:lower() == "localplayer" then | |
115 | return Sandbox(owner) | |
116 | end | |
117 | return RealService[Index2] | |
118 | end | |
119 | end; | |
120 | __tostring = function(self) | |
121 | return RealGame:GetService(Service).Name | |
122 | end | |
123 | }) | |
124 | elseif Service:lower() == "contextactionservice" then | |
125 | return InternalData["ContextActionService"] | |
126 | elseif Service:lower() == "contextactionservice" then | |
127 | return InternalData["UserInputService"] | |
128 | elseif Service:lower() == "runservice" then | |
129 | return setmetatable({},{ | |
130 | __index = function(self2,Index2) | |
131 | local RealService = RealGame:GetService(Service) | |
132 | local Type2 = type(Index2) | |
133 | if Type2 == "function" then | |
134 | return function (self,...) | |
135 | return RealService[Index2](RealService,...) | |
136 | end | |
137 | else | |
138 | if Index2:lower() == "bindtorenderstep" then | |
139 | return function (self,Name,Priority,Function) | |
140 | return RealGame:GetService("RunService").Stepped:Connect(Function) | |
141 | end | |
142 | end | |
143 | if Index2:lower() == "renderstepped" then | |
144 | return RealService["Stepped"] | |
145 | end | |
146 | return RealService[Index2] | |
147 | end | |
148 | end | |
149 | }) | |
150 | else | |
151 | return RealGame:GetService(Service) | |
152 | end | |
153 | end | |
154 | end | |
155 | return function (self,...) | |
156 | return RealGame[Index](RealGame,...) | |
157 | end | |
158 | else | |
159 | if game:GetService(Index) then | |
160 | return game:GetService(Index) | |
161 | end | |
162 | return RealGame[Index] | |
163 | end | |
164 | else | |
165 | return nil | |
166 | end | |
167 | end | |
168 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = {} | |
169 | print("Complete! Running...") | |
170 | ||
171 | ||
172 | --//Paste script below this line. | |
173 | ||
174 | warn("Derpz (FE) Glitcher Loaded") | |
175 | warn("All of what I did is useless thanks to Roblox...") | |
176 | warn("I want it undone, But it won't happen.") | |
177 | warn("I failed everyone... I'm so sorry... This is my FINAL Edit...") | |
178 | warn("Please enjoy it, Whoever has it... Thank you...") | |
179 | warn("-DerpzDeNugget (Derpz)") | |
180 | plr = game.Players.LocalPlayer | |
181 | char = plr.Character | |
182 | hum = char.Humanoid | |
183 | local cam = game.Workspace.CurrentCamera | |
184 | Camera = cam | |
185 | local CamInterrupt = false | |
186 | local TwoD = false | |
187 | local TargetInfo = {nil, nil} | |
188 | cam.CameraType = "Custom" | |
189 | t = char.Torso | |
190 | h = char.Head | |
191 | ra = char["Right Arm"] | |
192 | la = char["Left Arm"] | |
193 | rl = char["Right Leg"] | |
194 | ll = char["Left Leg"] | |
195 | tors = char.Torso | |
196 | lleg = char["Left Leg"] | |
197 | root = char.HumanoidRootPart | |
198 | hed = char.Head | |
199 | rleg = char["Right Leg"] | |
200 | rarm = char["Right Arm"] | |
201 | larm = char["Left Arm"] | |
202 | radian = math.rad | |
203 | random = math.random | |
204 | Vec3 = Vector3.new | |
205 | Inst = Instance.new | |
206 | cFrame = CFrame.new | |
207 | Euler = CFrame.fromEulerAnglesXYZ | |
208 | vt = Vector3.new | |
209 | bc = BrickColor.new | |
210 | br = BrickColor.random | |
211 | it = Instance.new | |
212 | cf = CFrame.new | |
213 | local Booleans = {CamFollow = true, GyroUse = true} | |
214 | function lerp(object, newCFrame, alpha) | |
215 | return object:lerp(newCFrame, alpha) | |
216 | end | |
217 | ||
218 | ff = Instance.new("ForceField", game.Players.LocalPlayer.Character) | |
219 | ff.Visible = false | |
220 | ||
221 | ||
222 | local Directer = Inst("BodyGyro", root) | |
223 | Directer.MaxTorque = Vec3(0, 0, 0) | |
224 | Directer.P = 600000 | |
225 | local CPart = Inst("Part") | |
226 | CPart.Anchored = true | |
227 | CPart.CanCollide = false | |
228 | CPart.Locked = true | |
229 | CPart.Transparency = 1 | |
230 | local rainbowmode = false | |
231 | local chaosmode = false | |
232 | kan = Instance.new("Sound", char) | |
233 | kan.Volume = 1.98 | |
234 | kan.TimePosition = 0 | |
235 | kan.PlaybackSpeed = 1 | |
236 | kan.Pitch = 1.1 | |
237 | kan.SoundId = "rbxassetid://1564523997" | |
238 | kan.Name = "wrecked" | |
239 | kan.Looped = true | |
240 | kan:Play() | |
241 | function newTheme(ID, timepos, pitch, vol) | |
242 | local kanz = kan | |
243 | kanz.PlaybackSpeed = pitch | |
244 | kanz.Pitch = pitch | |
245 | kanz.SoundId = ID | |
246 | kanz.Name = "Derpz's Theme(s)" | |
247 | kanz.Looped = true | |
248 | end | |
249 | function CameraShake(Times, Power, PlayerTarget) | |
250 | coroutine.resume(coroutine.create(function() | |
251 | FV = Instance.new("BoolValue", PlayerTarget) | |
252 | FV.Name = "CameraShake" | |
253 | for ShakeNum = 1, Times do | |
254 | swait() | |
255 | local ef = Power | |
256 | if ef >= 1 then | |
257 | Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef)) | |
258 | else | |
259 | ef = Power * 10 | |
260 | Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10) | |
261 | end | |
262 | end | |
263 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
264 | FV:Destroy() | |
265 | end)) | |
266 | end | |
267 | function CameraEnshaking(Length, Intensity) | |
268 | coroutine.resume(coroutine.create(function() | |
269 | local intensity = 1 * Intensity | |
270 | local rotM = 0.01 * Intensity | |
271 | for i = 0, Length, 0.1 do | |
272 | swait() | |
273 | intensity = intensity - 0.05 * Intensity / Length | |
274 | rotM = rotM - 5.0E-4 * Intensity / Length | |
275 | hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) | |
276 | 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) | |
277 | end | |
278 | Humanoid.CameraOffset = Vec3(0, 0, 0) | |
279 | end)) | |
280 | end | |
281 | function CamShake(Part, Distan, Power, Times) | |
282 | local de = Part.Position | |
283 | for i, v in pairs(workspace:children()) do | |
284 | if v:IsA("Model") and v:findFirstChild("Humanoid") then | |
285 | for _, c in pairs(v:children()) do | |
286 | if c.ClassName == "Part" and Distan > (c.Position - de).magnitude then | |
287 | do | |
288 | local Noob = v.Humanoid | |
289 | if Noob ~= nil then | |
290 | coroutine.resume(coroutine.create(function() | |
291 | FV = Instance.new("BoolValue", Noob) | |
292 | FV.Name = "CameraShake" | |
293 | for ShakeNum = 1, Times do | |
294 | swait() | |
295 | local ef = Power | |
296 | if ef >= 1 then | |
297 | Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef), math.random(-ef, ef), math.random(-ef, ef)) | |
298 | else | |
299 | ef = Power * 10 | |
300 | Humanoid.CameraOffset = Vector3.new(math.random(-ef, ef) / 10, math.random(-ef, ef) / 10, math.random(-ef, ef) / 10) | |
301 | end | |
302 | end | |
303 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
304 | FV:Destroy() | |
305 | end)) | |
306 | CameraShake(Times, Power, Noob) | |
307 | end | |
308 | end | |
309 | end | |
310 | end | |
311 | end | |
312 | end | |
313 | end | |
314 | function chatfunc(text, color) | |
315 | local chat = coroutine.wrap(function() | |
316 | if Character:FindFirstChild("TalkingBillBoard") ~= nil then | |
317 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
318 | end | |
319 | local naeeym2 = Instance.new("BillboardGui", Character) | |
320 | naeeym2.Size = UDim2.new(0, 100, 0, 40) | |
321 | naeeym2.StudsOffset = Vector3.new(0, 3, 0) | |
322 | naeeym2.Adornee = Character.Head | |
323 | naeeym2.Name = "TalkingBillBoard" | |
324 | local tecks2 = Instance.new("TextLabel", naeeym2) | |
325 | tecks2.BackgroundTransparency = 1 | |
326 | tecks2.BorderSizePixel = 0 | |
327 | tecks2.Text = "" | |
328 | tecks2.Font = "Code" | |
329 | tecks2.TextSize = 30 | |
330 | tecks2.TextStrokeTransparency = 0 | |
331 | tecks2.TextColor3 = color | |
332 | tecks2.TextStrokeColor3 = Color3.new(0, 0, 0) | |
333 | tecks2.Size = UDim2.new(1, 0, 0.5, 0) | |
334 | local tecks3 = Instance.new("TextLabel", naeeym2) | |
335 | tecks3.BackgroundTransparency = 1 | |
336 | tecks3.BorderSizePixel = 0 | |
337 | tecks3.Text = "" | |
338 | tecks3.Font = "Code" | |
339 | tecks3.TextSize = 30 | |
340 | tecks3.TextStrokeTransparency = 0 | |
341 | tecks3.TextColor3 = Color3.new(0, 0, 0) | |
342 | tecks3.TextStrokeColor3 = color | |
343 | tecks3.Size = UDim2.new(1, 0, 0.5, 0) | |
344 | coroutine.resume(coroutine.create(function() | |
345 | while true do | |
346 | swait(1) | |
347 | if chaosmode == true then | |
348 | tecks2.TextColor3 = BrickColor.random().Color | |
349 | tecks3.TextStrokeColor3 = BrickColor.random().Color | |
350 | end | |
351 | tecks2.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
352 | tecks3.Position = UDim2.new(0, math.random(-5, 5), 0, math.random(-5, 5)) | |
353 | tecks2.Rotation = math.random(-5, 5) | |
354 | tecks3.Rotation = math.random(-5, 5) | |
355 | end | |
356 | end)) | |
357 | for i = 1, string.len(text) do | |
358 | CFuncs.Sound.Create("rbxassetid://274118116", char, 0.25, 0.115) | |
359 | tecks2.Text = string.sub(text, 1, i) | |
360 | tecks3.Text = string.sub(text, 1, i) | |
361 | swait(1) | |
362 | end | |
363 | wait(1) | |
364 | local randomrot = math.random(1, 2) | |
365 | if randomrot == 1 then | |
366 | for i = 1, 50 do | |
367 | swait() | |
368 | tecks2.Rotation = tecks2.Rotation - 0.75 | |
369 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
370 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
371 | tecks3.Rotation = tecks2.Rotation + 0.75 | |
372 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
373 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
374 | end | |
375 | elseif randomrot == 2 then | |
376 | for i = 1, 50 do | |
377 | swait() | |
378 | tecks2.Rotation = tecks2.Rotation + 0.75 | |
379 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
380 | tecks2.TextTransparency = tecks2.TextTransparency + 0.04 | |
381 | tecks3.Rotation = tecks2.Rotation - 0.75 | |
382 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency + 0.04 | |
383 | tecks3.TextTransparency = tecks2.TextTransparency + 0.04 | |
384 | end | |
385 | end | |
386 | naeeym2:Destroy() | |
387 | end) | |
388 | chat() | |
389 | end | |
390 | local Create = LoadLibrary("RbxUtility").Create | |
391 | CFuncs = { | |
392 | Part = { | |
393 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
394 | local Part = Create("Part")({ | |
395 | Parent = Parent, | |
396 | Reflectance = Reflectance, | |
397 | Transparency = Transparency, | |
398 | CanCollide = false, | |
399 | Locked = true, | |
400 | BrickColor = BrickColor.new(tostring(BColor)), | |
401 | Name = Name, | |
402 | Size = Size, | |
403 | Material = Material | |
404 | }) | |
405 | RemoveOutlines(Part) | |
406 | return Part | |
407 | end | |
408 | }, | |
409 | Mesh = { | |
410 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
411 | local Msh = Create(Mesh)({ | |
412 | Parent = Part, | |
413 | Offset = OffSet, | |
414 | Scale = Scale | |
415 | }) | |
416 | if Mesh == "SpecialMesh" then | |
417 | Msh.MeshType = MeshType | |
418 | Msh.MeshId = MeshId | |
419 | end | |
420 | return Msh | |
421 | end | |
422 | }, | |
423 | Mesh = { | |
424 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
425 | local Msh = Create(Mesh)({ | |
426 | Parent = Part, | |
427 | Offset = OffSet, | |
428 | Scale = Scale | |
429 | }) | |
430 | if Mesh == "SpecialMesh" then | |
431 | Msh.MeshType = MeshType | |
432 | Msh.MeshId = MeshId | |
433 | end | |
434 | return Msh | |
435 | end | |
436 | }, | |
437 | Weld = { | |
438 | Create = function(Parent, Part0, Part1, C0, C1) | |
439 | local Weld = Create("Weld")({ | |
440 | Parent = Parent, | |
441 | Part0 = Part0, | |
442 | Part1 = Part1, | |
443 | C0 = C0, | |
444 | C1 = C1 | |
445 | }) | |
446 | return Weld | |
447 | end | |
448 | }, | |
449 | Sound = { | |
450 | Create = function(id, par, vol, pit) | |
451 | coroutine.resume(coroutine.create(function() | |
452 | local S = Create("Sound")({ | |
453 | Volume = vol, | |
454 | Pitch = pit or 1, | |
455 | SoundId = id, | |
456 | Parent = par or workspace | |
457 | }) | |
458 | wait() | |
459 | S:play() | |
460 | game:GetService("Debris"):AddItem(S, 10) | |
461 | end)) | |
462 | end | |
463 | }, | |
464 | LongSound = { | |
465 | Create = function(id, par, vol, pit) | |
466 | coroutine.resume(coroutine.create(function() | |
467 | local S = Create("Sound")({ | |
468 | Volume = vol, | |
469 | Pitch = pit or 1, | |
470 | SoundId = id, | |
471 | Parent = par or workspace | |
472 | }) | |
473 | wait() | |
474 | S:play() | |
475 | game:GetService("Debris"):AddItem(S, 30) | |
476 | end)) | |
477 | end | |
478 | }, | |
479 | ParticleEmitter = { | |
480 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
481 | local fp = Create("ParticleEmitter")({ | |
482 | Parent = Parent, | |
483 | Color = ColorSequence.new(Color1, Color2), | |
484 | LightEmission = LightEmission, | |
485 | Size = Size, | |
486 | Texture = Texture, | |
487 | Transparency = Transparency, | |
488 | ZOffset = ZOffset, | |
489 | Acceleration = Accel, | |
490 | Drag = Drag, | |
491 | LockedToPart = LockedToPart, | |
492 | VelocityInheritance = VelocityInheritance, | |
493 | EmissionDirection = EmissionDirection, | |
494 | Enabled = Enabled, | |
495 | Lifetime = LifeTime, | |
496 | Rate = Rate, | |
497 | Rotation = Rotation, | |
498 | RotSpeed = RotSpeed, | |
499 | Speed = Speed, | |
500 | VelocitySpread = VelocitySpread | |
501 | }) | |
502 | return fp | |
503 | end | |
504 | }, | |
505 | CreateTemplate = {} | |
506 | } | |
507 | function New(Object, Parent, Name, Data) | |
508 | local Object = Instance.new(Object) | |
509 | for Index, Value in pairs(Data or {}) do | |
510 | Object[Index] = Value | |
511 | end | |
512 | Object.Parent = Parent | |
513 | Object.Name = Name | |
514 | return Object | |
515 | end | |
516 | ||
517 | --clothes | |
518 | local Hair = Instance.new("Part", char) | |
519 | Hair.Name = "Hair" | |
520 | Hair.CanCollide = false | |
521 | Hair.BrickColor = BrickColor.new("Institutional white") | |
522 | Hair.Transparency = 0 | |
523 | Hair.Material = "Plastic" | |
524 | Hair.Size = Vector3.new(1, 1, 2) | |
525 | Hair.TopSurface = Enum.SurfaceType.Smooth | |
526 | Hair.BottomSurface = Enum.SurfaceType.Smooth | |
527 | ||
528 | local Weld = Instance.new("Weld", Hair) | |
529 | Weld.Part0 = hed | |
530 | Weld.Part1 = Hair | |
531 | Weld.C1 = CFrame.new(0, -.6, 0) | |
532 | Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0) | |
533 | ||
534 | local M2 = Instance.new("SpecialMesh") | |
535 | M2.Parent = Hair | |
536 | M2.MeshId = "http://www.roblox.com/asset/?id=16627529" | |
537 | M2.TextureId = "http://www.roblox.com/asset/?id=16627494" | |
538 | M2.Scale = Vector3.new(1, 1, 1) | |
539 | ||
540 | for i,v in pairs(char:children()) do | |
541 | if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then | |
542 | v:Remove() | |
543 | end | |
544 | end | |
545 | shirt = Instance.new("Shirt", Character) | |
546 | shirt.Name = "Shirt" | |
547 | pants = Instance.new("Pants", Character) | |
548 | pants.Name = "Pants" | |
549 | char.Shirt.ShirtTemplate = "rbxassetid://760717023" | |
550 | char.Pants.PantsTemplate = "rbxassetid://770508500" | |
551 | ||
552 | local halocolor = BrickColor.new("Pastel light blue") | |
553 | local halocolor2 = BrickColor.new("Really black") | |
554 | local starcolor = BrickColor.new("Really black") | |
555 | local lunacolor = BrickColor.new("Navy blue") | |
556 | local lunacolor2 = BrickColor.new("Bright blue") | |
557 | local wepcolor = BrickColor.new("Really black") | |
558 | local maincolor = BrickColor.new("Really black") | |
559 | local m = Instance.new("Model", char) | |
560 | local m2 = Instance.new("Model", char) | |
561 | local m3 = Instance.new("Model", char) | |
562 | local mw1 = Instance.new("Model", char) | |
563 | local mw2 = Instance.new("Model", char) | |
564 | local extrawingmod1 = Instance.new("Model", char) | |
565 | local extrawingmod2 = Instance.new("Model", char) | |
566 | function CreateParta(parent, transparency, reflectance, material, brickcolor) | |
567 | local p = Instance.new("Part") | |
568 | p.TopSurface = 0 | |
569 | p.BottomSurface = 0 | |
570 | p.Parent = parent | |
571 | p.Size = Vector3.new(0.1, 0.1, 0.1) | |
572 | p.Transparency = transparency | |
573 | p.Reflectance = reflectance | |
574 | p.CanCollide = false | |
575 | p.Locked = true | |
576 | p.BrickColor = brickcolor | |
577 | p.Material = material | |
578 | return p | |
579 | end | |
580 | function CreateMesh(parent, meshtype, x1, y1, z1) | |
581 | local mesh = Instance.new("SpecialMesh", parent) | |
582 | mesh.MeshType = meshtype | |
583 | mesh.Scale = Vector3.new(x1 * 10, y1 * 10, z1 * 10) | |
584 | return mesh | |
585 | end | |
586 | function CreateSpecialMesh(parent, meshid, x1, y1, z1) | |
587 | local mesh = Instance.new("SpecialMesh", parent) | |
588 | mesh.MeshType = "FileMesh" | |
589 | mesh.MeshId = meshid | |
590 | mesh.Scale = Vector3.new(x1, y1, z1) | |
591 | return mesh | |
592 | end | |
593 | function CreateSpecialGlowMesh(parent, meshid, x1, y1, z1) | |
594 | local mesh = Instance.new("SpecialMesh", parent) | |
595 | mesh.MeshType = "FileMesh" | |
596 | mesh.MeshId = meshid | |
597 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
598 | mesh.Scale = Vector3.new(x1, y1, z1) | |
599 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
600 | return mesh | |
601 | end | |
602 | function CreateWeld(parent, part0, part1, C1X, C1Y, C1Z, C1Xa, C1Ya, C1Za, C0X, C0Y, C0Z, C0Xa, C0Ya, C0Za) | |
603 | local weld = Instance.new("Weld") | |
604 | weld.Parent = parent | |
605 | weld.Part0 = part0 | |
606 | weld.Part1 = part1 | |
607 | weld.C1 = CFrame.new(C1X, C1Y, C1Z) * CFrame.Angles(C1Xa, C1Ya, C1Za) | |
608 | weld.C0 = CFrame.new(C0X, C0Y, C0Z) * CFrame.Angles(C0Xa, C0Ya, C0Za) | |
609 | return weld | |
610 | end | |
611 | local handlex = CreateParta(mw2, 1, 1, "Neon", maincolor) | |
612 | CreateMesh(handle, "Brick", 0, 0, 0) | |
613 | 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)) | |
614 | local valuaring = 10 | |
615 | for i = 0, 49 do | |
616 | valuaring = valuaring + 10 | |
617 | rn = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
618 | CreateMesh(rn, "Brick", 0.25, 0.1, 0.1) | |
619 | 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)) | |
620 | end | |
621 | local handle = CreateParta(m, 1, 1, "Neon", maincolor) | |
622 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
623 | 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)) | |
624 | local lwing1 = CreateParta(m, 1, 1, "Neon", maincolor) | |
625 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
626 | 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)) | |
627 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
628 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
629 | 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)) | |
630 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
631 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
632 | 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)) | |
633 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
634 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
635 | 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)) | |
636 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
637 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
638 | 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)) | |
639 | local lwing2 = CreateParta(m, 1, 1, "Neon", maincolor) | |
640 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
641 | 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)) | |
642 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
643 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
644 | 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)) | |
645 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
646 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
647 | 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)) | |
648 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
649 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
650 | 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)) | |
651 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
652 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
653 | 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)) | |
654 | local lwing3 = CreateParta(m, 1, 1, "Neon", maincolor) | |
655 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
656 | 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)) | |
657 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
658 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
659 | 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)) | |
660 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
661 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
662 | 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)) | |
663 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
664 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
665 | 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)) | |
666 | wed = CreateParta(mw1, 0, 0, "Neon", halocolor) | |
667 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
668 | 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)) | |
669 | local lwing4 = CreateParta(m, 1, 1, "Neon", maincolor) | |
670 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
671 | 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)) | |
672 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
673 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
674 | 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)) | |
675 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
676 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
677 | 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)) | |
678 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
679 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
680 | 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)) | |
681 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
682 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
683 | 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)) | |
684 | local lwing5 = CreateParta(m, 1, 1, "Neon", maincolor) | |
685 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
686 | 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)) | |
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 | local lwing6 = CreateParta(m, 1, 1, "Neon", maincolor) | |
700 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
701 | 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)) | |
702 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
703 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
704 | 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)) | |
705 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
706 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
707 | 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)) | |
708 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
709 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
710 | 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)) | |
711 | wed = CreateParta(extrawingmod1, 0, 0, "Neon", halocolor) | |
712 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
713 | 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)) | |
714 | local rwing1 = CreateParta(m, 1, 1, "Neon", maincolor) | |
715 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
716 | 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)) | |
717 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
718 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
719 | 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)) | |
720 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
721 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
722 | 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)) | |
723 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
724 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
725 | 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)) | |
726 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
727 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
728 | 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)) | |
729 | local rwing2 = CreateParta(m, 1, 1, "Neon", maincolor) | |
730 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
731 | 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)) | |
732 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
733 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
734 | 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)) | |
735 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
736 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
737 | 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)) | |
738 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
739 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
740 | 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)) | |
741 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
742 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
743 | 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)) | |
744 | local rwing3 = CreateParta(m, 1, 1, "Neon", maincolor) | |
745 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
746 | 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)) | |
747 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
748 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
749 | 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)) | |
750 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
751 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
752 | 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)) | |
753 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
754 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
755 | 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)) | |
756 | wed = CreateParta(mw2, 0, 0, "Neon", halocolor) | |
757 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
758 | 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)) | |
759 | local rwing4 = CreateParta(m, 1, 1, "Neon", maincolor) | |
760 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
761 | 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)) | |
762 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
763 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
764 | 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)) | |
765 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
766 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
767 | 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)) | |
768 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
769 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
770 | 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)) | |
771 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
772 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
773 | 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)) | |
774 | local rwing5 = CreateParta(m, 1, 1, "Neon", maincolor) | |
775 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
776 | 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)) | |
777 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
778 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
779 | 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)) | |
780 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
781 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
782 | 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)) | |
783 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
784 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
785 | 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)) | |
786 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
787 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
788 | 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)) | |
789 | local rwing6 = CreateParta(m, 1, 1, "Neon", maincolor) | |
790 | CreateMesh(handle, "Brick", 0.5, 0.5, 0.5) | |
791 | 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)) | |
792 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
793 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
794 | 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)) | |
795 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
796 | CreateMesh(wed, "Wedge", 0.05, 0.5, 0.5) | |
797 | 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)) | |
798 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
799 | CreateMesh(wed, "Wedge", 0.05, 0.5, 3) | |
800 | 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)) | |
801 | wed = CreateParta(extrawingmod2, 0, 0, "Neon", halocolor) | |
802 | CreateMesh(wed, "Wedge", 0.05, 3, 0.5) | |
803 | 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)) | |
804 | ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor) | |
805 | CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02) | |
806 | 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)) | |
807 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
808 | CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025) | |
809 | 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)) | |
810 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
811 | CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9) | |
812 | 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)) | |
813 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
814 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
815 | 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)) | |
816 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
817 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
818 | 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)) | |
819 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
820 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
821 | 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)) | |
822 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
823 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
824 | 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)) | |
825 | gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2) | |
826 | CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625) | |
827 | 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)) | |
828 | star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
829 | CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5) | |
830 | 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)) | |
831 | starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor) | |
832 | CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95) | |
833 | 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)) | |
834 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
835 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
836 | CreateWeld(dotsec, larm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
837 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
838 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
839 | CreateWeld(dotseca, larm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
840 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
841 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
842 | CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
843 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
844 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
845 | CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
846 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
847 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
848 | CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
849 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
850 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
851 | CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
852 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
853 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
854 | CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
855 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
856 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
857 | CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
858 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
859 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
860 | CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
861 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
862 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
863 | CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
864 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
865 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
866 | CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
867 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
868 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
869 | CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
870 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
871 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
872 | CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
873 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
874 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
875 | CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
876 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
877 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
878 | CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
879 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
880 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
881 | CreateWeld(dotsec, larm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
882 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
883 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
884 | CreateWeld(dotseca, larm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
885 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
886 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
887 | CreateWeld(dotsecb, larm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
888 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
889 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
890 | CreateWeld(dotsec, larm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
891 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
892 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
893 | CreateWeld(dotseca, larm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
894 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
895 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
896 | CreateWeld(dotsecb, larm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
897 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
898 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
899 | CreateWeld(dotsec, larm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
900 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
901 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
902 | CreateWeld(dotseca, larm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
903 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
904 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
905 | CreateWeld(dotsecb, larm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
906 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
907 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
908 | CreateWeld(dotsec, larm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
909 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
910 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
911 | CreateWeld(dotseca, larm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
912 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
913 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
914 | CreateWeld(dotsecb, larm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
915 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
916 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
917 | CreateWeld(dotsec, larm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
918 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
919 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
920 | CreateWeld(dotseca, larm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
921 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
922 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
923 | CreateWeld(dotsecb, larm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
924 | ran = CreateParta(m2, 0, 0, "SmoothPlastic", wepcolor) | |
925 | CreateMesh(ran, "Wedge", 1.02, 1.02, 1.02) | |
926 | 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)) | |
927 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
928 | CreateMesh(ran, "Wedge", 0.9, 0.9, 1.025) | |
929 | 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)) | |
930 | ran = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
931 | CreateMesh(ran, "Wedge", 1.025, 0.9, 0.9) | |
932 | 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)) | |
933 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
934 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
935 | 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)) | |
936 | gan = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
937 | CreateMesh(gan, "Brick", 1.075, 0.1, 1.075) | |
938 | 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)) | |
939 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
940 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
941 | 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)) | |
942 | gan = CreateParta(m2, 0, 0, "Neon", halocolor2) | |
943 | CreateMesh(gan, "Brick", 1.095, 0.035, 1.095) | |
944 | 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)) | |
945 | gane = CreateParta(m3, 0, 0, "SmoothPlastic", lunacolor2) | |
946 | CreateMesh(gane, "Brick", 1.0625, 0.2, 1.0625) | |
947 | 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)) | |
948 | star = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
949 | CreateSpecialMesh(star, "http://www.roblox.com/asset/?id=45428961", 2.5, 2.5, 2.5) | |
950 | 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)) | |
951 | starl = CreateParta(m3, 0, 0, "SmoothPlastic", starcolor) | |
952 | CreateSpecialMesh(starl, "http://www.roblox.com/asset/?id=45428961", 1.95, 2.55, 1.95) | |
953 | 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)) | |
954 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
955 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
956 | CreateWeld(dotsec, rarm, dotsec, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
957 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
958 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
959 | CreateWeld(dotseca, rarm, dotseca, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
960 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
961 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
962 | CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
963 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
964 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
965 | CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
966 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
967 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
968 | CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
969 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
970 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
971 | CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
972 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
973 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
974 | CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
975 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
976 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
977 | CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
978 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
979 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
980 | CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
981 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
982 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
983 | CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
984 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
985 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
986 | CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
987 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
988 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
989 | CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
990 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
991 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
992 | CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
993 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
994 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
995 | CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
996 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
997 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
998 | CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, -0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
999 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
1000 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
1001 | CreateWeld(dotsec, rarm, dotsec, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1002 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
1003 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
1004 | CreateWeld(dotseca, rarm, dotseca, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1005 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
1006 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
1007 | CreateWeld(dotsecb, rarm, dotsecb, 0, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1008 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
1009 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
1010 | CreateWeld(dotsec, rarm, dotsec, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1011 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
1012 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
1013 | CreateWeld(dotseca, rarm, dotseca, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1014 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
1015 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
1016 | CreateWeld(dotsecb, rarm, dotsecb, 0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1017 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
1018 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
1019 | CreateWeld(dotsec, rarm, dotsec, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1020 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
1021 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
1022 | CreateWeld(dotseca, rarm, dotseca, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1023 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
1024 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
1025 | CreateWeld(dotsecb, rarm, dotsecb, 0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1026 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
1027 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
1028 | CreateWeld(dotsec, rarm, dotsec, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1029 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
1030 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
1031 | CreateWeld(dotseca, rarm, dotseca, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1032 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
1033 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
1034 | CreateWeld(dotsecb, rarm, dotsecb, -0.2, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1035 | dotsec = CreateParta(m3, 0, 0, "Neon", halocolor) | |
1036 | CreateMesh(dotsec, "Sphere", 0.1, 0.1, 0.15) | |
1037 | CreateWeld(dotsec, rarm, dotsec, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1038 | dotseca = CreateParta(m, 0, 0, "SmoothPlastic", wepcolor) | |
1039 | CreateMesh(dotseca, "Sphere", 0.2, 0.2, 0.1) | |
1040 | CreateWeld(dotseca, rarm, dotseca, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1041 | dotsecb = CreateParta(m2, 0, 0, "SmoothPlastic", lunacolor) | |
1042 | CreateMesh(dotsecb, "Sphere", 0.15, 0.15, 0.125) | |
1043 | CreateWeld(dotsecb, rarm, dotsecb, -0.4, 0.635, 0.5, math.rad(0), math.rad(0), math.rad(0), 0, 0, 0, math.rad(0), math.rad(0), math.rad(0)) | |
1044 | for i, v in pairs(m:GetChildren()) do | |
1045 | if v:IsA("Part") then | |
1046 | v.BrickColor = BrickColor.new("Really black") | |
1047 | v.Material = "Glass" | |
1048 | end | |
1049 | end | |
1050 | for i, v in pairs(m2:GetChildren()) do | |
1051 | if v:IsA("Part") then | |
1052 | v.BrickColor = BrickColor.new("Crimson") | |
1053 | v.Material = "Granite" | |
1054 | end | |
1055 | end | |
1056 | for i, v in pairs(m3:GetChildren()) do | |
1057 | if v:IsA("Part") then | |
1058 | v.BrickColor = BrickColor.new("Really red") | |
1059 | v.Material = "Neon" | |
1060 | end | |
1061 | end | |
1062 | for i, v in pairs(mw2:GetChildren()) do | |
1063 | if v:IsA("Part") then | |
1064 | v.BrickColor = BrickColor.new("Really red") | |
1065 | v.Material = "Neon" | |
1066 | end | |
1067 | end | |
1068 | for i, v in pairs(mw1:GetChildren()) do | |
1069 | if v:IsA("Part") then | |
1070 | v.Transparency = 1 | |
1071 | v.BrickColor = BrickColor.new("Really red") | |
1072 | v.Material = "Neon" | |
1073 | end | |
1074 | end | |
1075 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
1076 | if v:IsA("Part") then | |
1077 | v.Transparency = 1 | |
1078 | v.BrickColor = BrickColor.new("White") | |
1079 | v.Material = "Neon" | |
1080 | end | |
1081 | end | |
1082 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
1083 | if v:IsA("Part") then | |
1084 | v.Transparency = 1 | |
1085 | v.BrickColor = BrickColor.new("White") | |
1086 | v.Material = "Neon" | |
1087 | end | |
1088 | end | |
1089 | ||
1090 | FHead = New("Part",char,"FHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
1091 | Mesh = New("SpecialMesh",FHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),}) | |
1092 | Weld = New("Weld",FHead,"mot",{Part0 = FHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
1093 | FHead.CanCollide = false | |
1094 | ||
1095 | ||
1096 | ||
1097 | local MAINRUINCOLOR = BrickColor.new("Really red") | |
1098 | function RemoveOutlines(part) | |
1099 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1100 | end | |
1101 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
1102 | local Part = Create("Part")({ | |
1103 | Parent = Parent, | |
1104 | Reflectance = Reflectance, | |
1105 | Transparency = Transparency, | |
1106 | CanCollide = false, | |
1107 | Locked = true, | |
1108 | BrickColor = BrickColor.new(tostring(BColor)), | |
1109 | Name = Name, | |
1110 | Size = Size, | |
1111 | Material = Material | |
1112 | }) | |
1113 | Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001) | |
1114 | RemoveOutlines(Part) | |
1115 | return Part | |
1116 | end | |
1117 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
1118 | local Msh = Create(Mesh)({ | |
1119 | Parent = Part, | |
1120 | Offset = OffSet, | |
1121 | Scale = Scale | |
1122 | }) | |
1123 | if Mesh == "SpecialMesh" then | |
1124 | Msh.MeshType = MeshType | |
1125 | Msh.MeshId = MeshId | |
1126 | end | |
1127 | return Msh | |
1128 | end | |
1129 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
1130 | local Weld = Create("Weld")({ | |
1131 | Parent = Parent, | |
1132 | Part0 = Part0, | |
1133 | Part1 = Part1, | |
1134 | C0 = C0, | |
1135 | C1 = C1 | |
1136 | }) | |
1137 | return Weld | |
1138 | end | |
1139 | Player = game:GetService("Players").LocalPlayer | |
1140 | Character = Player.Character | |
1141 | PlayerGui = Player.PlayerGui | |
1142 | Backpack = Player.Backpack | |
1143 | Torso = Character.Torso | |
1144 | Head = Character.Head | |
1145 | Humanoid = Character.Humanoid | |
1146 | m = Instance.new("Model", Character) | |
1147 | LeftArm = Character["Left Arm"] | |
1148 | LeftLeg = Character["Left Leg"] | |
1149 | RightArm = Character["Right Arm"] | |
1150 | RightLeg = Character["Right Leg"] | |
1151 | LS = Torso["Left Shoulder"] | |
1152 | LH = Torso["Left Hip"] | |
1153 | RS = Torso["Right Shoulder"] | |
1154 | RH = Torso["Right Hip"] | |
1155 | Face = Head.face | |
1156 | Neck = Torso.Neck | |
1157 | it = Instance.new | |
1158 | attacktype = 1 | |
1159 | vt = Vector3.new | |
1160 | cf = CFrame.new | |
1161 | euler = CFrame.fromEulerAnglesXYZ | |
1162 | angles = CFrame.Angles | |
1163 | cloaked = false | |
1164 | necko = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1165 | necko2 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
1166 | LHC0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1167 | LHC1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
1168 | RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1169 | RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
1170 | RootPart = Character.HumanoidRootPart | |
1171 | RootJoint = RootPart.RootJoint | |
1172 | RootCF = euler(-1.57, 0, 3.14) | |
1173 | attack = false | |
1174 | attackdebounce = false | |
1175 | deb = false | |
1176 | equipped = true | |
1177 | hand = false | |
1178 | MMouse = nil | |
1179 | combo = 0 | |
1180 | mana = 0 | |
1181 | trispeed = 0.2 | |
1182 | attackmode = "none" | |
1183 | local idle = 0 | |
1184 | local Anim = "Idle" | |
1185 | local Effects = {} | |
1186 | local gun = false | |
1187 | local shoot = false | |
1188 | local sine = 0 | |
1189 | local change = 1 | |
1190 | player = nil | |
1191 | local toggleTag = true | |
1192 | local txt = Instance.new("BillboardGui", Head) | |
1193 | txt.Adornee = nil | |
1194 | txt.Name = "NameDetect" | |
1195 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
1196 | txt.StudsOffset = Vector3.new(-8, 5.333333333333333, 0) | |
1197 | local text = Instance.new("TextLabel", txt) | |
1198 | text.Size = UDim2.new(5, 0, 3.5, 0) | |
1199 | text.FontSize = "Size8" | |
1200 | text.TextScaled = true | |
1201 | text.TextTransparency = 0 | |
1202 | text.BackgroundTransparency = 1 | |
1203 | text.TextTransparency = 0 | |
1204 | text.TextStrokeTransparency = 0 | |
1205 | text.Font = "Code" | |
1206 | text.TextStrokeColor3 = Color3.new(1, 0, 0) | |
1207 | text.TextColor3 = Color3.new(0, 0, 0) | |
1208 | text.Text = "EDIT BY MICHEAL2358" | |
1209 | function RecolorTextAndRename(name, col1, col2) | |
1210 | text.TextStrokeColor3 = col2 | |
1211 | text.TextColor3 = col1 | |
1212 | text.Text = name | |
1213 | end | |
1214 | mouse = Player:GetMouse() | |
1215 | RSH, LSH = nil, nil | |
1216 | RW, LW = Instance.new("Weld"), Instance.new("Weld") | |
1217 | RW.Name = "Right Shoulder" | |
1218 | LW.Name = "Left Shoulder" | |
1219 | LH = Torso["Left Hip"] | |
1220 | RH = Torso["Right Hip"] | |
1221 | TorsoColor = Torso.BrickColor | |
1222 | function NoOutline(Part) | |
1223 | Part.TopSurface, Part.BottomSurface, Part.LeftSurface, Part.RightSurface, Part.FrontSurface, Part.BackSurface = 10, 10, 10, 10, 10, 10 | |
1224 | end | |
1225 | player = Player | |
1226 | ch = Character | |
1227 | RSH = ch.Torso["Right Shoulder"] | |
1228 | LSH = ch.Torso["Left Shoulder"] | |
1229 | RSH.Parent = nil | |
1230 | LSH.Parent = nil | |
1231 | RW.Name = "Right Shoulder" | |
1232 | RW.Part0 = ch.Torso | |
1233 | RW.C0 = cf(1.5, 0.5, 0) | |
1234 | RW.C1 = cf(0, 0.5, 0) | |
1235 | RW.Part1 = ch["Right Arm"] | |
1236 | RW.Parent = ch.Torso | |
1237 | LW.Name = "Left Shoulder" | |
1238 | LW.Part0 = ch.Torso | |
1239 | LW.C0 = cf(-1.5, 0.5, 0) | |
1240 | LW.C1 = cf(0, 0.5, 0) | |
1241 | LW.Part1 = ch["Left Arm"] | |
1242 | LW.Parent = ch.Torso | |
1243 | local Stats = Instance.new("BoolValue") | |
1244 | Stats.Name = "Stats" | |
1245 | Stats.Parent = Character | |
1246 | local Atk = Instance.new("NumberValue") | |
1247 | Atk.Name = "Damage" | |
1248 | Atk.Parent = Stats | |
1249 | Atk.Value = 1 | |
1250 | local Def = Instance.new("NumberValue") | |
1251 | Def.Name = "Defense" | |
1252 | Def.Parent = Stats | |
1253 | Def.Value = 1 | |
1254 | local Speed = Instance.new("NumberValue") | |
1255 | Speed.Name = "Speed" | |
1256 | Speed.Parent = Stats | |
1257 | Speed.Value = 1 | |
1258 | local Mvmt = Instance.new("NumberValue") | |
1259 | Mvmt.Name = "Movement" | |
1260 | Mvmt.Parent = Stats | |
1261 | Mvmt.Value = 1 | |
1262 | local donum = 0 | |
1263 | local Alpha = .3 | |
1264 | function part(formfactor, parent, reflectance, transparency, brickcolor, name, size) | |
1265 | local fp = it("Part") | |
1266 | fp.formFactor = formfactor | |
1267 | fp.Parent = parent | |
1268 | fp.Reflectance = reflectance | |
1269 | fp.Transparency = transparency | |
1270 | fp.CanCollide = false | |
1271 | fp.Locked = true | |
1272 | fp.BrickColor = brickcolor | |
1273 | fp.Name = name | |
1274 | fp.Size = size | |
1275 | fp.Position = Torso.Position | |
1276 | NoOutline(fp) | |
1277 | fp.Material = "SmoothPlastic" | |
1278 | fp:BreakJoints() | |
1279 | return fp | |
1280 | end | |
1281 | function mesh(Mesh, part, meshtype, meshid, offset, scale) | |
1282 | local mesh = it(Mesh) | |
1283 | mesh.Parent = part | |
1284 | if Mesh == "SpecialMesh" then | |
1285 | mesh.MeshType = meshtype | |
1286 | if meshid ~= "nil" then | |
1287 | mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid | |
1288 | end | |
1289 | end | |
1290 | mesh.Offset = offset | |
1291 | mesh.Scale = scale | |
1292 | return mesh | |
1293 | end | |
1294 | function weld(parent, part0, part1, c0) | |
1295 | local weld = it("Weld") | |
1296 | weld.Parent = parent | |
1297 | weld.Part0 = part0 | |
1298 | weld.Part1 = part1 | |
1299 | weld.C0 = c0 | |
1300 | return weld | |
1301 | end | |
1302 | local Color1 = Torso.BrickColor | |
1303 | local bodvel = Instance.new("BodyVelocity") | |
1304 | local bg = Instance.new("BodyGyro") | |
1305 | function swait(num) | |
1306 | if num == 0 or num == nil then | |
1307 | game:service("RunService").Stepped:wait(0) | |
1308 | else | |
1309 | for i = 0, num do | |
1310 | game:service("RunService").Stepped:wait(0) | |
1311 | end | |
1312 | end | |
1313 | end | |
1314 | local r = 255 | |
1315 | local g = 0 | |
1316 | local b = 0 | |
1317 | coroutine.resume(coroutine.create(function() | |
1318 | while wait() do | |
1319 | for i = 0, 50.8 do | |
1320 | swait() | |
1321 | g = g + 5 | |
1322 | end | |
1323 | for i = 0, 50.8 do | |
1324 | swait() | |
1325 | r = r - 5 | |
1326 | end | |
1327 | for i = 0, 50.8 do | |
1328 | swait() | |
1329 | b = b + 5 | |
1330 | end | |
1331 | for i = 0, 50.8 do | |
1332 | swait() | |
1333 | g = g - 5 | |
1334 | end | |
1335 | for i = 0, 50.8 do | |
1336 | swait() | |
1337 | r = r + 5 | |
1338 | end | |
1339 | for i = 0, 50.8 do | |
1340 | swait() | |
1341 | b = b - 5 | |
1342 | end | |
1343 | end | |
1344 | end)) | |
1345 | function so(id, par, vol, pit) | |
1346 | coroutine.resume(coroutine.create(function() | |
1347 | local sou = Instance.new("Sound", par or workspace) | |
1348 | sou.Volume = vol | |
1349 | sou.Pitch = pit or 1 | |
1350 | sou.SoundId = id | |
1351 | swait() | |
1352 | sou:play() | |
1353 | game:GetService("Debris"):AddItem(sou, 6) | |
1354 | end)) | |
1355 | end | |
1356 | function clerp(a, b, t) | |
1357 | local qa = { | |
1358 | QuaternionFromCFrame(a) | |
1359 | } | |
1360 | local qb = { | |
1361 | QuaternionFromCFrame(b) | |
1362 | } | |
1363 | local ax, ay, az = a.x, a.y, a.z | |
1364 | local bx, by, bz = b.x, b.y, b.z | |
1365 | local _t = 1 - t | |
1366 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1367 | end | |
1368 | function QuaternionFromCFrame(cf) | |
1369 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
1370 | local trace = m00 + m11 + m22 | |
1371 | if trace > 0 then | |
1372 | local s = math.sqrt(1 + trace) | |
1373 | local recip = 0.5 / s | |
1374 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
1375 | else | |
1376 | local i = 0 | |
1377 | if m00 < m11 then | |
1378 | i = 1 | |
1379 | end | |
1380 | if m22 > (i == 0 and m00 or m11) then | |
1381 | i = 2 | |
1382 | end | |
1383 | if i == 0 then | |
1384 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
1385 | local recip = 0.5 / s | |
1386 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
1387 | elseif i == 1 then | |
1388 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
1389 | local recip = 0.5 / s | |
1390 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
1391 | elseif i == 2 then | |
1392 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
1393 | local recip = 0.5 / s | |
1394 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
1395 | end | |
1396 | end | |
1397 | end | |
1398 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
1399 | local xs, ys, zs = x + x, y + y, z + z | |
1400 | local wx, wy, wz = w * xs, w * ys, w * zs | |
1401 | local xx = x * xs | |
1402 | local xy = x * ys | |
1403 | local xz = x * zs | |
1404 | local yy = y * ys | |
1405 | local yz = y * zs | |
1406 | local zz = z * zs | |
1407 | 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)) | |
1408 | end | |
1409 | function QuaternionSlerp(a, b, t) | |
1410 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
1411 | local startInterp, finishInterp | |
1412 | if cosTheta >= 1.0E-4 then | |
1413 | if 1 - cosTheta > 1.0E-4 then | |
1414 | local theta = math.acos(cosTheta) | |
1415 | local invSinTheta = 1 / math.sin(theta) | |
1416 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
1417 | finishInterp = math.sin(t * theta) * invSinTheta | |
1418 | else | |
1419 | startInterp = 1 - t | |
1420 | finishInterp = t | |
1421 | end | |
1422 | elseif 1 + cosTheta > 1.0E-4 then | |
1423 | local theta = math.acos(-cosTheta) | |
1424 | local invSinTheta = 1 / math.sin(theta) | |
1425 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
1426 | finishInterp = math.sin(t * theta) * invSinTheta | |
1427 | else | |
1428 | startInterp = t - 1 | |
1429 | finishInterp = t | |
1430 | end | |
1431 | 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 | |
1432 | end | |
1433 | local CFrameFromTopBack = function(at, top, back) | |
1434 | local right = top:Cross(back) | |
1435 | return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
1436 | end | |
1437 | function Triangle(a, b, c) | |
1438 | local edg1 = (c - a):Dot((b - a).unit) | |
1439 | local edg2 = (a - b):Dot((c - b).unit) | |
1440 | local edg3 = (b - c):Dot((a - c).unit) | |
1441 | if edg1 <= (b - a).magnitude and edg1 >= 0 then | |
1442 | a, b = a, b | |
1443 | elseif edg2 <= (c - b).magnitude and edg2 >= 0 then | |
1444 | a, b, c = b, c, a | |
1445 | elseif edg3 <= (a - c).magnitude and edg3 >= 0 then | |
1446 | a, b, c = c, a, b | |
1447 | else | |
1448 | assert(false, "unreachable") | |
1449 | end | |
1450 | local len1 = (c - a):Dot((b - a).unit) | |
1451 | local len2 = (b - a).magnitude - len1 | |
1452 | local width = (a + (b - a).unit * len1 - c).magnitude | |
1453 | local maincf = CFrameFromTopBack(a, (b - a):Cross(c - b).unit, -(b - a).unit) | |
1454 | local list = {} | |
1455 | if len1 > 0.01 then | |
1456 | local w1 = Instance.new("WedgePart", m) | |
1457 | game:GetService("Debris"):AddItem(w1, 5) | |
1458 | w1.Material = "SmoothPlastic" | |
1459 | w1.FormFactor = "Custom" | |
1460 | w1.BrickColor = BrickColor.new("Really red") | |
1461 | w1.Transparency = 0 | |
1462 | w1.Reflectance = 0 | |
1463 | w1.Material = "SmoothPlastic" | |
1464 | w1.CanCollide = false | |
1465 | local l1 = Instance.new("PointLight", w1) | |
1466 | l1.Color = Color3.new(170, 0, 0) | |
1467 | NoOutline(w1) | |
1468 | local sz = Vector3.new(0.2, width, len1) | |
1469 | w1.Size = sz | |
1470 | local sp = Instance.new("SpecialMesh", w1) | |
1471 | sp.MeshType = "Wedge" | |
1472 | sp.Scale = Vector3.new(0, 1, 1) * sz / w1.Size | |
1473 | w1:BreakJoints() | |
1474 | w1.Anchored = true | |
1475 | w1.Parent = workspace | |
1476 | w1.Transparency = 0.7 | |
1477 | table.insert(Effects, { | |
1478 | w1, | |
1479 | "Disappear", | |
1480 | 0.01 | |
1481 | }) | |
1482 | w1.CFrame = maincf * CFrame.Angles(math.pi, 0, math.pi / 2) * CFrame.new(0, width / 2, len1 / 2) | |
1483 | table.insert(list, w1) | |
1484 | end | |
1485 | if len2 > 0.01 then | |
1486 | local w2 = Instance.new("WedgePart", m) | |
1487 | game:GetService("Debris"):AddItem(w2, 5) | |
1488 | w2.Material = "SmoothPlastic" | |
1489 | w2.FormFactor = "Custom" | |
1490 | w2.BrickColor = BrickColor.new("Really red") | |
1491 | w2.Transparency = 0 | |
1492 | w2.Reflectance = 0 | |
1493 | w2.Material = "SmoothPlastic" | |
1494 | w2.CanCollide = false | |
1495 | local l2 = Instance.new("PointLight", w2) | |
1496 | l2.Color = Color3.new(170, 0, 0) | |
1497 | NoOutline(w2) | |
1498 | local sz = Vector3.new(0.2, width, len2) | |
1499 | w2.Size = sz | |
1500 | local sp = Instance.new("SpecialMesh", w2) | |
1501 | sp.MeshType = "Wedge" | |
1502 | sp.Scale = Vector3.new(0, 1, 1) * sz / w2.Size | |
1503 | w2:BreakJoints() | |
1504 | w2.Anchored = true | |
1505 | w2.Parent = workspace | |
1506 | w2.Transparency = 0.7 | |
1507 | table.insert(Effects, { | |
1508 | w2, | |
1509 | "Disappear", | |
1510 | 0.01 | |
1511 | }) | |
1512 | w2.CFrame = maincf * CFrame.Angles(math.pi, math.pi, -math.pi / 2) * CFrame.new(0, width / 2, -len1 - len2 / 2) | |
1513 | table.insert(list, w2) | |
1514 | end | |
1515 | return unpack(list) | |
1516 | end | |
1517 | function so(id, par, vol, pit) | |
1518 | coroutine.resume(coroutine.create(function() | |
1519 | local sou = Instance.new("Sound", par or workspace) | |
1520 | sou.Volume = vol | |
1521 | sou.Pitch = pit or 1 | |
1522 | sou.SoundId = id | |
1523 | swait() | |
1524 | sou:play() | |
1525 | game:GetService("Debris"):AddItem(sou, 6) | |
1526 | end)) | |
1527 | end | |
1528 | function clerp(a, b, t) | |
1529 | local qa = { | |
1530 | QuaternionFromCFrame(a) | |
1531 | } | |
1532 | local qb = { | |
1533 | QuaternionFromCFrame(b) | |
1534 | } | |
1535 | local ax, ay, az = a.x, a.y, a.z | |
1536 | local bx, by, bz = b.x, b.y, b.z | |
1537 | local _t = 1 - t | |
1538 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
1539 | end | |
1540 | ||
1541 | function aclerp(startCF,endCF,alpha) | |
1542 | return startCF:lerp(endCF, alpha) | |
1543 | end | |
1544 | ||
1545 | function lerp(object, newCFrame, alpha) | |
1546 | return object:lerp(newCFrame, alpha) | |
1547 | end | |
1548 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1549 | if hit.Parent == nil then | |
1550 | return | |
1551 | end | |
1552 | local h = hit.Parent:FindFirstChildOfClass("Humanoid") | |
1553 | for _, v in pairs(hit.Parent:children()) do | |
1554 | if v:IsA("Humanoid") then | |
1555 | h = v | |
1556 | end | |
1557 | end | |
1558 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then | |
1559 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1560 | return | |
1561 | end | |
1562 | local c = Create("ObjectValue")({ | |
1563 | Name = "creator", | |
1564 | Value = RealGame:service("Players")[owner.Name], | |
1565 | Parent = h | |
1566 | }) | |
1567 | game:GetService("Debris"):AddItem(c, 0.5) | |
1568 | if HitSound ~= nil and HitPitch ~= nil then | |
1569 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
1570 | end | |
1571 | local Damage = math.random(minim, maxim) | |
1572 | local blocked = false | |
1573 | local block = hit.Parent:findFirstChild("Block") | |
1574 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1575 | blocked = true | |
1576 | block.Value = block.Value - 1 | |
1577 | print(block.Value) | |
1578 | end | |
1579 | if blocked == false then | |
1580 | HitHealth = h.Health | |
1581 | h.Health = h.Health - Damage | |
1582 | if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then | |
1583 | print("gained kill") | |
1584 | end | |
1585 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1586 | else | |
1587 | h.Health = h.Health - Damage / 2 | |
1588 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1589 | end | |
1590 | if Type == "Knockdown" then | |
1591 | local hum = hit.Parent.Humanoid | |
1592 | hum.PlatformStand = true | |
1593 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1594 | swait(1) | |
1595 | HHumanoid.PlatformStand = false | |
1596 | end), hum) | |
1597 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
1598 | local bodvol = Create("BodyVelocity")({ | |
1599 | velocity = angle * knockback, | |
1600 | P = 5000, | |
1601 | maxForce = Vector3.new(8000, 8000, 8000), | |
1602 | Parent = hit | |
1603 | }) | |
1604 | local rl = Create("BodyAngularVelocity")({ | |
1605 | P = 3000, | |
1606 | maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, | |
1607 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1608 | Parent = hit | |
1609 | }) | |
1610 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
1611 | game:GetService("Debris"):AddItem(rl, 0.5) | |
1612 | elseif Type == "Normal" then | |
1613 | local vp = Create("BodyVelocity")({ | |
1614 | P = 500, | |
1615 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1616 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05 | |
1617 | }) | |
1618 | if knockback > 0 then | |
1619 | vp.Parent = hit.Parent.Head | |
1620 | end | |
1621 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1622 | elseif Type == "Up" then | |
1623 | local bodyVelocity = Create("BodyVelocity")({ | |
1624 | velocity = Vector3.new(0, 20, 0), | |
1625 | P = 5000, | |
1626 | maxForce = Vector3.new(8000, 8000, 8000), | |
1627 | Parent = hit | |
1628 | }) | |
1629 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1630 | local bodyVelocity = Create("BodyVelocity")({ | |
1631 | velocity = Vector3.new(0, 20, 0), | |
1632 | P = 5000, | |
1633 | maxForce = Vector3.new(8000, 8000, 8000), | |
1634 | Parent = hit | |
1635 | }) | |
1636 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1637 | elseif Type == "Leech" then | |
1638 | local hum = hit.Parent.Humanoid | |
1639 | if hum ~= nil then | |
1640 | for i = 0, 2 do | |
1641 | 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) | |
1642 | end | |
1643 | Humanoid.Health = Humanoid.Health + 10 | |
1644 | end | |
1645 | elseif Type == "UpKnock" then | |
1646 | local hum = hit.Parent.Humanoid | |
1647 | hum.PlatformStand = true | |
1648 | if hum ~= nil then | |
1649 | hitr = true | |
1650 | end | |
1651 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1652 | swait(5) | |
1653 | HHumanoid.PlatformStand = false | |
1654 | hitr = false | |
1655 | end), hum) | |
1656 | local bodyVelocity = Create("BodyVelocity")({ | |
1657 | velocity = Vector3.new(0, 20, 0), | |
1658 | P = 5000, | |
1659 | maxForce = Vector3.new(8000, 8000, 8000), | |
1660 | Parent = hit | |
1661 | }) | |
1662 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
1663 | local bodyVelocity = Create("BodyVelocity")({ | |
1664 | velocity = Vector3.new(0, 20, 0), | |
1665 | P = 5000, | |
1666 | maxForce = Vector3.new(8000, 8000, 8000), | |
1667 | Parent = hit | |
1668 | }) | |
1669 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
1670 | elseif Type == "Snare" then | |
1671 | local bp = Create("BodyPosition")({ | |
1672 | P = 2000, | |
1673 | D = 100, | |
1674 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1675 | position = hit.Parent.Torso.Position, | |
1676 | Parent = hit.Parent.Torso | |
1677 | }) | |
1678 | game:GetService("Debris"):AddItem(bp, 1) | |
1679 | elseif Type == "Slashnare" then | |
1680 | Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 60, 60, 60, 12, 12, 12, 0.07) | |
1681 | for i = 1, math.random(4, 5) do | |
1682 | 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) | |
1683 | end | |
1684 | local bp = Create("BodyPosition")({ | |
1685 | P = 2000, | |
1686 | D = 100, | |
1687 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1688 | position = hit.Parent.Torso.Position, | |
1689 | Parent = hit.Parent.Torso | |
1690 | }) | |
1691 | game:GetService("Debris"):AddItem(bp, 1) | |
1692 | elseif Type == "Spike" then | |
1693 | CreateBigIceSword(hit.Parent.Torso.CFrame) | |
1694 | local bp = Create("BodyPosition")({ | |
1695 | P = 2000, | |
1696 | D = 100, | |
1697 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1698 | position = hit.Parent.Torso.Position, | |
1699 | Parent = hit.Parent.Torso | |
1700 | }) | |
1701 | game:GetService("Debris"):AddItem(bp, 1) | |
1702 | elseif Type == "Freeze" then | |
1703 | local BodPos = Create("BodyPosition")({ | |
1704 | P = 50000, | |
1705 | D = 1000, | |
1706 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1707 | position = hit.Parent.Torso.Position, | |
1708 | Parent = hit.Parent.Torso | |
1709 | }) | |
1710 | local BodGy = Create("BodyGyro")({ | |
1711 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
1712 | P = 20000, | |
1713 | Parent = hit.Parent.Torso, | |
1714 | cframe = hit.Parent.Torso.CFrame | |
1715 | }) | |
1716 | hit.Parent.Torso.Anchored = true | |
1717 | coroutine.resume(coroutine.create(function(Part) | |
1718 | swait(1.5) | |
1719 | Part.Anchored = false | |
1720 | end), hit.Parent.Torso) | |
1721 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1722 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1723 | end | |
1724 | local debounce = Create("BoolValue")({ | |
1725 | Name = "DebounceHit", | |
1726 | Parent = hit.Parent, | |
1727 | Value = true | |
1728 | }) | |
1729 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1730 | c = Instance.new("ObjectValue") | |
1731 | c.Name = "creator" | |
1732 | c.Value = RealGame:service("Players")[owner.Name]; | |
1733 | c.Parent = h | |
1734 | game:GetService("Debris"):AddItem(c, 0.5) | |
1735 | end | |
1736 | end | |
1737 | function ShowDamage(Pos, Text, Time, Color) | |
1738 | local Rate = 0.03333333333333333 | |
1739 | local Pos = Pos or Vector3.new(0, 0, 0) | |
1740 | local Text = Text or "" | |
1741 | local Time = Time or 2 | |
1742 | local Color = Color or Color3.new(1, 0, 1) | |
1743 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1744 | EffectPart.Anchored = true | |
1745 | local BillboardGui = Create("BillboardGui")({ | |
1746 | Size = UDim2.new(3, 0, 3, 0), | |
1747 | Adornee = EffectPart, | |
1748 | Parent = EffectPart | |
1749 | }) | |
1750 | local TextLabel = Create("TextLabel")({ | |
1751 | BackgroundTransparency = 1, | |
1752 | Size = UDim2.new(1, 0, 1, 0), | |
1753 | Text = Text, | |
1754 | TextColor3 = Color, | |
1755 | TextScaled = true, | |
1756 | Font = Enum.Font.ArialBold, | |
1757 | Parent = BillboardGui | |
1758 | }) | |
1759 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1760 | EffectPart.Parent = game:GetService("Workspace") | |
1761 | delay(0, function() | |
1762 | local Frames = Time / Rate | |
1763 | for Frame = 1, Frames do | |
1764 | wait(Rate) | |
1765 | local Percent = Frame / Frames | |
1766 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1767 | TextLabel.TextTransparency = Percent | |
1768 | end | |
1769 | if EffectPart and EffectPart.Parent then | |
1770 | EffectPart:Destroy() | |
1771 | end | |
1772 | end) | |
1773 | end | |
1774 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
1775 | for _, c in pairs(workspace:children()) do | |
1776 | local hum = c:findFirstChildOfClass("Humanoid") | |
1777 | if hum ~= nil then | |
1778 | local head = c:findFirstChild("Head") | |
1779 | if head ~= nil then | |
1780 | local targ = head.Position - Part.Position | |
1781 | local mag = targ.magnitude | |
1782 | if magni >= mag and c.Name ~= Player.Name then | |
1783 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1784 | end | |
1785 | end | |
1786 | end | |
1787 | end | |
1788 | end | |
1789 | function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type) | |
1790 | for _, c in pairs(workspace:children()) do | |
1791 | local hum = c:findFirstChild("Humanoid") | |
1792 | if hum ~= nil then | |
1793 | local head = c:findFirstChild("Torso") | |
1794 | if head ~= nil then | |
1795 | local targ = head.Position - Part.Position | |
1796 | local mag = targ.magnitude | |
1797 | if magni >= mag and c.Name ~= Player.Name then | |
1798 | MagicBlock(BrickColor.new("Pastel light blue"), head.CFrame, 5, 5, 5, 1, 1, 1, 0.05) | |
1799 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1) | |
1800 | end | |
1801 | end | |
1802 | end | |
1803 | end | |
1804 | end | |
1805 | function rayCast(Pos, Dir, Max, Ignore) | |
1806 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) | |
1807 | end | |
1808 | function SkullEffect(brickcolor, cframe, x1, y1, z1, delay) | |
1809 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1810 | prt.Anchored = true | |
1811 | prt.CFrame = cframe | |
1812 | local msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=4770583", vt(0, 0, 0), vt(x1, y1, z1)) | |
1813 | game:GetService("Debris"):AddItem(prt, 2) | |
1814 | CF = prt.CFrame | |
1815 | coroutine.resume(coroutine.create(function(Part, Mesh, TehCF) | |
1816 | for i = 0, 1, 0.2 do | |
1817 | wait() | |
1818 | Part.CFrame = CF * cf(0, 0, -0.4) | |
1819 | end | |
1820 | for i = 0, 1, delay do | |
1821 | wait() | |
1822 | Mesh.Scale = Mesh.Scale | |
1823 | end | |
1824 | for i = 0, 1, 0.1 do | |
1825 | wait() | |
1826 | Part.Transparency = i | |
1827 | end | |
1828 | Part.Parent = nil | |
1829 | end), prt, msh, CF) | |
1830 | end | |
1831 | function MagicBlock(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
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 | prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1837 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1838 | game:GetService("Debris"):AddItem(prt, 5) | |
1839 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1840 | for i = 0, 1, delay do | |
1841 | swait() | |
1842 | Part.CFrame = Part.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1843 | Part.Transparency = i | |
1844 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1845 | end | |
1846 | Part.Parent = nil | |
1847 | end), prt, msh) | |
1848 | end | |
1849 | function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
1850 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1851 | prt.Anchored = true | |
1852 | prt.Material = "Neon" | |
1853 | prt.CFrame = cframe | |
1854 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1855 | game:GetService("Debris"):AddItem(prt, 5) | |
1856 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1857 | local rtype = rottype | |
1858 | for i = 0, 1, delay do | |
1859 | swait() | |
1860 | if rtype == 1 then | |
1861 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1862 | elseif rtype == 2 then | |
1863 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1864 | end | |
1865 | Part.Transparency = i | |
1866 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1867 | end | |
1868 | Part.Parent = nil | |
1869 | end), prt, msh) | |
1870 | end | |
1871 | function MagicSphere(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1872 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1873 | prt.Anchored = true | |
1874 | prt.CFrame = cframe | |
1875 | prt.CFrame = prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1876 | msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1877 | game:GetService("Debris"):AddItem(prt, 5) | |
1878 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1879 | for i = 0, 1, delay do | |
1880 | wait() | |
1881 | Part.Transparency = i | |
1882 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1883 | end | |
1884 | Part.Parent = nil | |
1885 | end), prt, msh) | |
1886 | end | |
1887 | function MagicBlockSteady(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
1888 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1889 | prt.Anchored = true | |
1890 | prt.Material = "Neon" | |
1891 | prt.CFrame = cframe | |
1892 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1893 | game:GetService("Debris"):AddItem(prt, 5) | |
1894 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1895 | local rtype = rottype | |
1896 | for i = 0, 1, delay do | |
1897 | swait() | |
1898 | if rtype == 1 then | |
1899 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1900 | elseif rtype == 2 then | |
1901 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1902 | end | |
1903 | Part.Transparency = i | |
1904 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
1905 | end | |
1906 | Part.Parent = nil | |
1907 | end), prt, msh) | |
1908 | end | |
1909 | function MagicShock(brickcolor, cframe, x1, y1, x3, y3, delay, rottype) | |
1910 | local prt = part(3, char, 1, 1, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1911 | prt.Anchored = true | |
1912 | prt.Material = "Neon" | |
1913 | prt.CFrame = cframe | |
1914 | local dec = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt) | |
1915 | local dec2 = decal(prt.Color, "http://www.roblox.com/asset/?id=874580939", "Front", prt) | |
1916 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01)) | |
1917 | game:GetService("Debris"):AddItem(prt, 5) | |
1918 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1919 | local rtype = rottype | |
1920 | for i = 0, 1, delay do | |
1921 | swait() | |
1922 | if rtype == 1 then | |
1923 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1924 | elseif rtype == 2 then | |
1925 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1926 | end | |
1927 | dec.Transparency = i | |
1928 | dec2.Transparency = i | |
1929 | Mesh.Scale = Mesh.Scale + vt(x3, y3, 0) | |
1930 | end | |
1931 | Part.Parent = nil | |
1932 | end), prt, msh) | |
1933 | end | |
1934 | function MagicShockAlt(brickcolor, cframe, x1, y1, x3, y3, delay, rottype) | |
1935 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1936 | prt.Anchored = true | |
1937 | prt.Material = "Neon" | |
1938 | prt.CFrame = cframe | |
1939 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, 0.01)) | |
1940 | game:GetService("Debris"):AddItem(prt, 5) | |
1941 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1942 | local rtype = rottype | |
1943 | for i = 0, 1, delay do | |
1944 | swait() | |
1945 | if rtype == 1 then | |
1946 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1947 | elseif rtype == 2 then | |
1948 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1949 | end | |
1950 | prt.Transparency = i | |
1951 | Mesh.Scale = Mesh.Scale + vt(x3, y3, 0) | |
1952 | end | |
1953 | Part.Parent = nil | |
1954 | end), prt, msh) | |
1955 | end | |
1956 | function MagicShockAltCircle(brickcolor, cframe, x1, z1, x3, z3, delay, rottype) | |
1957 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1958 | prt.Anchored = true | |
1959 | prt.Material = "Neon" | |
1960 | prt.CFrame = cframe | |
1961 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, 1, z1)) | |
1962 | game:GetService("Debris"):AddItem(prt, 5) | |
1963 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1964 | local rtype = rottype | |
1965 | for i = 0, 1, delay do | |
1966 | swait() | |
1967 | if rtype == 1 then | |
1968 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0.1, 0) | |
1969 | elseif rtype == 2 then | |
1970 | prt.CFrame = prt.CFrame * CFrame.Angles(0, -0.1, 0) | |
1971 | end | |
1972 | prt.Transparency = i | |
1973 | Mesh.Scale = Mesh.Scale + vt(x3, 0, z3) | |
1974 | end | |
1975 | Part.Parent = nil | |
1976 | end), prt, msh) | |
1977 | end | |
1978 | function MagicShockTrailAlt(brickcolor, cframe, x1, y1, z1, x3, y3, delay, rottype) | |
1979 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
1980 | prt.Anchored = true | |
1981 | prt.Material = "Neon" | |
1982 | prt.CFrame = cframe | |
1983 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
1984 | game:GetService("Debris"):AddItem(prt, 5) | |
1985 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1986 | local rtype = rottype | |
1987 | for i = 0, 1, delay do | |
1988 | swait() | |
1989 | if rtype == 1 then | |
1990 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
1991 | elseif rtype == 2 then | |
1992 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
1993 | end | |
1994 | prt.Transparency = i | |
1995 | Mesh.Scale = Mesh.Scale + vt(x3, y3, 0) | |
1996 | end | |
1997 | Part.Parent = nil | |
1998 | end), prt, msh) | |
1999 | end | |
2000 | function MagicShockTrailAlt2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, rottype) | |
2001 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
2002 | prt.Anchored = true | |
2003 | prt.Material = "Neon" | |
2004 | prt.CFrame = cframe | |
2005 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2006 | game:GetService("Debris"):AddItem(prt, 5) | |
2007 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2008 | local rtype = rottype | |
2009 | for i = 0, 1, delay do | |
2010 | swait() | |
2011 | if rtype == 1 then | |
2012 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, 0.1) | |
2013 | elseif rtype == 2 then | |
2014 | prt.CFrame = prt.CFrame * CFrame.Angles(0, 0, -0.1) | |
2015 | end | |
2016 | prt.Transparency = i | |
2017 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
2018 | end | |
2019 | Part.Parent = nil | |
2020 | end), prt, msh) | |
2021 | end | |
2022 | function MagicBlock2(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay) | |
2023 | local prt = part(3, char, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
2024 | prt.Anchored = false | |
2025 | prt.CFrame = cframe | |
2026 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2027 | local wld = weld(prt, prt, Parent, cframe) | |
2028 | game:GetService("Debris"):AddItem(prt, 5) | |
2029 | coroutine.resume(coroutine.create(function(Part, Mesh, Weld) | |
2030 | for i = 0, 1, delay do | |
2031 | wait() | |
2032 | Weld.C0 = euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) * cframe | |
2033 | Part.Transparency = i | |
2034 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
2035 | end | |
2036 | Part.Parent = nil | |
2037 | end), prt, msh, wld) | |
2038 | end | |
2039 | function MagicBlock3(brickcolor, cframe, Parent, x1, y1, z1, x3, y3, z3, delay) | |
2040 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
2041 | prt.Anchored = false | |
2042 | prt.CFrame = cframe | |
2043 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2044 | local wld = weld(prt, prt, Parent, euler(0, 0, 0) * cf(0, 0, 0)) | |
2045 | game:GetService("Debris"):AddItem(prt, 5) | |
2046 | coroutine.resume(coroutine.create(function(Part, Mesh, Weld) | |
2047 | for i = 0, 1, delay do | |
2048 | wait() | |
2049 | Weld.C0 = euler(i * 20, 0, 0) | |
2050 | Part.Transparency = i | |
2051 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
2052 | end | |
2053 | Part.Parent = nil | |
2054 | end), prt, msh, wld) | |
2055 | end | |
2056 | function MagicCircle2(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2057 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
2058 | prt.Anchored = true | |
2059 | prt.CFrame = cframe | |
2060 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2061 | game:GetService("Debris"):AddItem(prt, 2) | |
2062 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2063 | for i = 0, 1, delay do | |
2064 | wait() | |
2065 | Part.CFrame = Part.CFrame | |
2066 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
2067 | local prt2 = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
2068 | prt2.Anchored = true | |
2069 | prt2.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2070 | local msh2 = mesh("SpecialMesh", prt2, "Sphere", "", vt(0, 0, 0), vt(0.5, 0.5, 0.5)) | |
2071 | game:GetService("Debris"):AddItem(prt2, 2) | |
2072 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2073 | for i = 0, 1, 0.1 do | |
2074 | wait() | |
2075 | Part.CFrame = Part.CFrame * cf(0, 0.5, 0) | |
2076 | end | |
2077 | Part.Parent = nil | |
2078 | end), prt2, msh2) | |
2079 | end | |
2080 | for i = 0, 1, delay * 2 do | |
2081 | wait() | |
2082 | Part.CFrame = Part.CFrame | |
2083 | Mesh.Scale = vt(x1 + x3 - (x1 + x3) * i, y1 + y3 - (y1 + y3) * i, z1 + z3 - (z1 + z3) * i) | |
2084 | end | |
2085 | Part.Parent = nil | |
2086 | end), prt, msh) | |
2087 | end | |
2088 | function MagicCircle(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2089 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
2090 | prt.Anchored = true | |
2091 | prt.CFrame = cframe | |
2092 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2093 | game:GetService("Debris"):AddItem(prt, 2) | |
2094 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2095 | for i = 0, 1, delay do | |
2096 | wait() | |
2097 | Part.CFrame = Part.CFrame | |
2098 | Part.Transparency = i | |
2099 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
2100 | end | |
2101 | Part.Parent = nil | |
2102 | end), prt, msh) | |
2103 | end | |
2104 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
2105 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
2106 | prt.Anchored = true | |
2107 | prt.CFrame = cframe * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
2108 | local msh = mesh("SpecialMesh", prt, "Sphere", "", vt(0, 0, 0), vt(x1, y1, z1)) | |
2109 | game:GetService("Debris"):AddItem(prt, 2) | |
2110 | coroutine.resume(coroutine.create(function(Part, CF, Numbb, randnumb) | |
2111 | CF = Part.CFrame | |
2112 | Numbb = 0 | |
2113 | randnumb = math.random() / 10 | |
2114 | rand1 = math.random() / 10 | |
2115 | for i = 0, 1, rand1 do | |
2116 | wait() | |
2117 | CF = CF * cf(0, math.random() / 2, 0) | |
2118 | Part.CFrame = CF * euler(Numbb, 0, 0) | |
2119 | Part.Transparency = i | |
2120 | Numbb = Numbb + randnumb | |
2121 | end | |
2122 | Part.Parent = nil | |
2123 | end), prt, CF, Numbb, randnumb) | |
2124 | end | |
2125 | function MagicWaveThing(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2126 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
2127 | prt.Anchored = true | |
2128 | prt.CFrame = cframe | |
2129 | msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=1051557", vt(0, 0, 0), vt(x1, y1, z1)) | |
2130 | game:GetService("Debris"):AddItem(prt, 5) | |
2131 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2132 | for i = 0, 1, delay do | |
2133 | wait() | |
2134 | Part.CFrame = Part.CFrame * euler(0, 0.7, 0) | |
2135 | Part.Transparency = i | |
2136 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
2137 | end | |
2138 | Part.Parent = nil | |
2139 | end), prt, msh) | |
2140 | end | |
2141 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
2142 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
2143 | prt.Anchored = true | |
2144 | prt.CFrame = cframe | |
2145 | msh = mesh("SpecialMesh", prt, "FileMesh", "http://www.roblox.com/asset/?id=20329976", vt(0, 0, 0), vt(x1, y1, z1)) | |
2146 | game:GetService("Debris"):AddItem(prt, 2) | |
2147 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
2148 | for i = 0, 1, delay do | |
2149 | wait() | |
2150 | Part.CFrame = Part.CFrame * cf(0, y3 / 2, 0) | |
2151 | Part.Transparency = i | |
2152 | Mesh.Scale = Mesh.Scale + vt(x3, y3, z3) | |
2153 | end | |
2154 | Part.Parent = nil | |
2155 | end), prt, msh) | |
2156 | end | |
2157 | function StravEffect(brickcolor, cframe, x, y, z, x1, y1, z1, delay) | |
2158 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
2159 | prt.Anchored = true | |
2160 | prt.CFrame = cframe * cf(x, y, z) | |
2161 | msh = mesh("SpecialMesh", prt, "FileMesh", "rbxassetid://168892363", vt(0, 0, 0), vt(x1, y1, z1)) | |
2162 | game:GetService("Debris"):AddItem(prt, 5) | |
2163 | coroutine.resume(coroutine.create(function(Part, Mesh, ex, why, zee) | |
2164 | local num = math.random() | |
2165 | local num2 = math.random(-3, 2) + math.random() | |
2166 | local numm = 0 | |
2167 | for i = 0, 1, delay * 2 do | |
2168 | swait() | |
2169 | Part.CFrame = cframe * euler(0, numm * num * 10, 0) * cf(ex, why, zee) * cf(-i * 10, num2, 0) | |
2170 | Part.Transparency = i | |
2171 | numm = numm + 0.01 | |
2172 | end | |
2173 | Part.Parent = nil | |
2174 | Mesh.Parent = nil | |
2175 | end), prt, msh, x, y, z) | |
2176 | end | |
2177 | function dmgstart(dmg, what) | |
2178 | hitcon = what.Touched:connect(function(hit) | |
2179 | local hum = hit.Parent:FindFirstChild("Humanoid") | |
2180 | if hum and not hum:IsDescendantOf(Character) then | |
2181 | hum:TakeDamage(dmg) | |
2182 | end | |
2183 | end) | |
2184 | end | |
2185 | function dmgstop() | |
2186 | hitcon:disconnect() | |
2187 | end | |
2188 | function Cloak() | |
2189 | Face.Parent = nil | |
2190 | cloaked = true | |
2191 | for _, v in pairs(Torso.Parent:children()) do | |
2192 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
2193 | coroutine.resume(coroutine.create(function() | |
2194 | for i = 0, 1, 0.2 do | |
2195 | wait() | |
2196 | v.Transparency = i | |
2197 | end | |
2198 | v.Transparency = 1 | |
2199 | end)) | |
2200 | end | |
2201 | if v.className == "Hat" then | |
2202 | hatp = v.Handle | |
2203 | coroutine.resume(coroutine.create(function(derp) | |
2204 | for i = 0, 1, 0.2 do | |
2205 | wait() | |
2206 | derp.Transparency = i | |
2207 | end | |
2208 | derp.Transparency = 1 | |
2209 | end), hatp) | |
2210 | end | |
2211 | end | |
2212 | for _, v in pairs(m:children()) do | |
2213 | if v.className == "Part" then | |
2214 | coroutine.resume(coroutine.create(function() | |
2215 | for i = 0, 1, 0.2 do | |
2216 | wait() | |
2217 | v.Transparency = i | |
2218 | end | |
2219 | v.Transparency = 1 | |
2220 | end)) | |
2221 | end | |
2222 | end | |
2223 | end | |
2224 | function UnCloak() | |
2225 | so("http://roblox.com/asset/?id=2767090", Torso, 1, 1.1) | |
2226 | Face.Parent = Head | |
2227 | cloaked = false | |
2228 | for _, v in pairs(Torso.Parent:children()) do | |
2229 | if v.className == "Part" and v.Name ~= "HumanoidRootPart" then | |
2230 | coroutine.resume(coroutine.create(function() | |
2231 | for i = 0, 1, 0.1 do | |
2232 | wait() | |
2233 | v.Transparency = v.Transparency - 0.1 | |
2234 | end | |
2235 | v.Transparency = 0 | |
2236 | end)) | |
2237 | end | |
2238 | if v.className == "Hat" then | |
2239 | hatp = v.Handle | |
2240 | coroutine.resume(coroutine.create(function(derp) | |
2241 | for i = 0, 1, 0.1 do | |
2242 | wait() | |
2243 | derp.Transparency = derp.Transparency - 0.1 | |
2244 | end | |
2245 | derp.Transparency = 0 | |
2246 | end), hatp) | |
2247 | end | |
2248 | end | |
2249 | for _, v in pairs(m:children()) do | |
2250 | if v.className == "Part" and v.Name ~= "hitbox" and v.Name ~= "tip" then | |
2251 | coroutine.resume(coroutine.create(function() | |
2252 | for i = 0, 1, 0.1 do | |
2253 | wait() | |
2254 | v.Transparency = v.Transparency - 0.1 | |
2255 | end | |
2256 | v.Transparency = 0 | |
2257 | end)) | |
2258 | v.Transparency = 0 | |
2259 | end | |
2260 | end | |
2261 | end | |
2262 | local origcolor = BrickColor.new("Pastel light blue") | |
2263 | function Explode(rad, par, pitch, vol, mindam, maxdam) | |
2264 | local expart = Instance.new("Part", char) | |
2265 | local expart2 = Instance.new("Part", char) | |
2266 | local rin = Instance.new("Part", char) | |
2267 | local rin2 = Instance.new("Part", char) | |
2268 | local partMesh = Instance.new("SpecialMesh", expart) | |
2269 | partMesh.MeshType = "Sphere" | |
2270 | local partMesh2 = Instance.new("SpecialMesh", expart2) | |
2271 | partMesh2.MeshType = "Sphere" | |
2272 | local partMesh3 = Instance.new("SpecialMesh", rin) | |
2273 | partMesh3.MeshType = "Brick" | |
2274 | local partMesh4 = Instance.new("SpecialMesh", rin2) | |
2275 | partMesh4.MeshType = "Brick" | |
2276 | CFuncs.Sound.Create("rbxassetid://165970126", expart, vol, pitch) | |
2277 | partMesh.Scale = vt(rad, rad, rad) | |
2278 | expart.Size = vt(1, 1, 1) | |
2279 | expart.Transparency = 0 | |
2280 | expart.Anchored = true | |
2281 | expart.Material = "Neon" | |
2282 | expart.BrickColor = bc("White") | |
2283 | expart.CFrame = par.CFrame | |
2284 | partMesh2.Scale = vt(rad, rad, rad) | |
2285 | expart2.Size = vt(1.15, 1.15, 1.15) | |
2286 | expart2.Transparency = 0.5 | |
2287 | expart2.Anchored = true | |
2288 | expart2.Material = "Neon" | |
2289 | expart2.BrickColor = par.BrickColor | |
2290 | expart2.CFrame = par.CFrame | |
2291 | rin.Size = vt(1.15, 1.15, 1.15) | |
2292 | rin.Transparency = 1 | |
2293 | rin.Anchored = true | |
2294 | rin.Material = "Neon" | |
2295 | rin.BrickColor = par.BrickColor | |
2296 | rin.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))) | |
2297 | rin2.Size = vt(1.15, 1.15, 1.15) | |
2298 | rin2.Transparency = 1 | |
2299 | rin2.Anchored = true | |
2300 | rin2.Material = "Neon" | |
2301 | rin2.BrickColor = par.BrickColor | |
2302 | rin2.CFrame = par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))) | |
2303 | partMesh3.Scale = vt(0, 1, 0) | |
2304 | partMesh4.Scale = vt(0, 1, 0) | |
2305 | local dec2 = Instance.new("Decal", rin) | |
2306 | dec2.Face = "Top" | |
2307 | dec2.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2308 | dec2.Parent = rin | |
2309 | local dec2b = dec2:Clone() | |
2310 | dec2b.Face = "Bottom" | |
2311 | dec2b.Parent = rin | |
2312 | local dec2a = Instance.new("Decal", rin2) | |
2313 | dec2a.Face = "Top" | |
2314 | dec2a.Texture = "http://www.roblox.com/asset/?id=874580939" | |
2315 | dec2a.Parent = rin2 | |
2316 | local dec2ab = dec2a:Clone() | |
2317 | dec2ab.Face = "Bottom" | |
2318 | dec2ab.Parent = rin2 | |
2319 | expart.CanCollide = false | |
2320 | expart2.CanCollide = false | |
2321 | rin.CanCollide = false | |
2322 | rin2.CanCollide = false | |
2323 | MagniDamage(par, rad * 5, mindam, maxdam, 0, "Normal") | |
2324 | local value = 1 * rad / 6.5 | |
2325 | for i = 0, 199 do | |
2326 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
2327 | expart.CFrame = expart.CFrame | |
2328 | partMesh2.Scale = partMesh2.Scale + vt(value, value, value) | |
2329 | expart2.CFrame = expart.CFrame | |
2330 | value = value - 0.035 * rad / 30 | |
2331 | if value < 7.5 then | |
2332 | partMesh3.Scale = partMesh3.Scale + vt(rad / 5, 0, rad / 5) | |
2333 | rin.CFrame = rin.CFrame * CFrame.Angles(0, math.rad(1), 0) | |
2334 | partMesh4.Scale = partMesh4.Scale + vt(rad / 7.5, 0, rad / 7.5) | |
2335 | rin2.CFrame = rin2.CFrame * CFrame.Angles(0, math.rad(-1), 0) | |
2336 | end | |
2337 | if value < 0 then | |
2338 | dec2.Transparency = dec2.Transparency + 0.025 | |
2339 | dec2a.Transparency = dec2a.Transparency + 0.025 | |
2340 | dec2b.Transparency = dec2b.Transparency + 0.025 | |
2341 | dec2ab.Transparency = dec2ab.Transparency + 0.025 | |
2342 | expart.Transparency = expart.Transparency + 0.025 | |
2343 | expart2.Transparency = expart2.Transparency + 0.025 | |
2344 | rin.Transparency = rin.Transparency + 0.025 | |
2345 | rin2.Transparency = rin2.Transparency + 0.025 | |
2346 | end | |
2347 | swait() | |
2348 | end | |
2349 | game:GetService("Debris"):AddItem(expart, 1) | |
2350 | game:GetService("Debris"):AddItem(expart2, 1) | |
2351 | game:GetService("Debris"):AddItem(rin, 1) | |
2352 | game:GetService("Debris"):AddItem(rin2, 1) | |
2353 | end | |
2354 | function ExplodeShort(rad, par, pitch, vol, mindam, maxdam) | |
2355 | local expart = Instance.new("Part", char) | |
2356 | local expart2 = Instance.new("Part", char) | |
2357 | local partMesh = Instance.new("SpecialMesh", expart) | |
2358 | partMesh.MeshType = "Sphere" | |
2359 | local partMesh2 = Instance.new("SpecialMesh", expart2) | |
2360 | partMesh2.MeshType = "Sphere" | |
2361 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=142070127", expart, vol, pitch) | |
2362 | partMesh.Scale = vt(rad, rad, rad) | |
2363 | expart.Size = vt(1, 1, 1) | |
2364 | expart.Transparency = 0 | |
2365 | expart.Anchored = true | |
2366 | expart.Material = "Neon" | |
2367 | expart.BrickColor = bc("White") | |
2368 | expart.CFrame = par.CFrame | |
2369 | partMesh2.Scale = vt(rad, rad, rad) | |
2370 | expart2.Size = vt(1.15, 1.15, 1.15) | |
2371 | expart2.Transparency = 0.5 | |
2372 | expart2.Anchored = true | |
2373 | expart2.Material = "Neon" | |
2374 | expart2.BrickColor = par.BrickColor | |
2375 | expart2.CFrame = par.CFrame | |
2376 | expart.CanCollide = false | |
2377 | expart2.CanCollide = false | |
2378 | MagniDamage(par, rad * 2.5, mindam, maxdam, 0, "Normal") | |
2379 | local value = 1 * rad / 6.5 | |
2380 | for i = 0, 75 do | |
2381 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
2382 | expart.CFrame = expart.CFrame | |
2383 | partMesh2.Scale = partMesh2.Scale + vt(value, value, value) | |
2384 | expart2.CFrame = expart.CFrame | |
2385 | value = value - 0.035 * rad / 5 | |
2386 | if value < 0 then | |
2387 | value = 0 | |
2388 | expart.Transparency = expart.Transparency + 0.05 | |
2389 | expart2.Transparency = expart2.Transparency + 0.05 | |
2390 | end | |
2391 | swait() | |
2392 | end | |
2393 | game:GetService("Debris"):AddItem(expart, 1) | |
2394 | game:GetService("Debris"):AddItem(expart2, 1) | |
2395 | end | |
2396 | function AreaDanger(rad, par, mindam, maxdam) | |
2397 | local expart = Instance.new("Part", char) | |
2398 | local partMesh = Instance.new("SpecialMesh", expart) | |
2399 | CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15) | |
2400 | partMesh.MeshType = "Sphere" | |
2401 | partMesh.Scale = vt(rad, rad, rad) | |
2402 | expart.Size = vt(1, 1, 1) | |
2403 | expart.Transparency = 0.5 | |
2404 | expart.Anchored = true | |
2405 | expart.Material = "Neon" | |
2406 | expart.CanCollide = false | |
2407 | expart.BrickColor = par.BrickColor | |
2408 | expart.CFrame = par.CFrame | |
2409 | local value = 1 * rad / 5 | |
2410 | MagicBlock(origcolor, expart.CFrame, 0, 0, 0, rad / 2, rad / 2, rad / 2, 0.1) | |
2411 | for i = 0, 14 do | |
2412 | wait() | |
2413 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
2414 | expart.CFrame = expart.CFrame | |
2415 | value = value - 0.035 * rad | |
2416 | if value < 0 then | |
2417 | value = 0 | |
2418 | end | |
2419 | end | |
2420 | wait(0.25) | |
2421 | CFuncs.Sound.Create("rbxassetid://588738544", expart, 1.5, 1) | |
2422 | wait(0.5) | |
2423 | CFuncs.Sound.Create("rbxassetid://588737825", expart, 1.5, 1) | |
2424 | CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 0.75) | |
2425 | MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal") | |
2426 | MagicBlock(origcolor, expart.CFrame, rad * 2, rad * 2, rad * 2, 0.1, 0.1, 0.1, 0.025) | |
2427 | for i = 0, 14 do | |
2428 | wait() | |
2429 | partMesh.Scale = partMesh.Scale + vt(value, value, value) | |
2430 | expart.CFrame = expart.CFrame | |
2431 | value = value - 0.035 * rad / 2 | |
2432 | end | |
2433 | expart.Transparency = 1 | |
2434 | game:GetService("Debris"):AddItem(expart, 5) | |
2435 | end | |
2436 | function Swarmsplosions(negrad, rad, par, mindam, maxdam) | |
2437 | CFuncs.Sound.Create("rbxassetid://588737825", par, 2.5, 2) | |
2438 | CFuncs.Sound.Create("rbxassetid://231917784", par, 2.5, 1) | |
2439 | CFuncs.Sound.Create("rbxassetid://231917744", par, 2.5, 1) | |
2440 | CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1) | |
2441 | MagniDamageWithEffect(par, 25, 5, 10, 0, "Normal") | |
2442 | MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.025) | |
2443 | for i = 0, 24 do | |
2444 | MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 25, 0.005, math.random(1, 2)) | |
2445 | end | |
2446 | for i = 0, 24 do | |
2447 | local expart = Instance.new("Part", char) | |
2448 | expart.Transparency = 1 | |
2449 | expart.Anchored = true | |
2450 | expart.CanCollide = false | |
2451 | expart.CFrame = par.CFrame * CFrame.new(math.random(negrad, rad), math.random(negrad, rad), math.random(negrad, rad)) | |
2452 | CFuncs.Sound.Create("rbxassetid://588737825", expart, 1, 2) | |
2453 | CFuncs.Sound.Create("rbxassetid://231917784", expart, 1.5, 1.15) | |
2454 | MagniDamage(expart, rad / 2, mindam, maxdam, 0, "Normal") | |
2455 | MagicBlock(origcolor, expart.CFrame, rad, rad, rad, 0.1, 0.1, 0.1, 0.025) | |
2456 | for i = 0, 9 do | |
2457 | MagicShockTrailAlt2(origcolor, expart.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 2, 2, 5, -0.01, -0.01, 5, 0.05, math.random(1, 2)) | |
2458 | end | |
2459 | game:GetService("Debris"):AddItem(expart, 2) | |
2460 | wait(0.1) | |
2461 | end | |
2462 | end | |
2463 | function EXterPlosion(par) | |
2464 | CFuncs.Sound.Create("rbxassetid://919941001", par, 10, 1) | |
2465 | CFuncs.Sound.Create("rbxassetid://138213851", par, 5, 0.85) | |
2466 | CFuncs.Sound.Create("rbxassetid://157878578", par, 5, 0.2) | |
2467 | CFuncs.Sound.Create("rbxassetid://233856106", par, 2.5, 1) | |
2468 | MagniDamageWithEffect(par, 500, 80, 99, 0, "Normal") | |
2469 | MagicBlock(origcolor, par.CFrame, 5, 5, 5, 5, 5, 5, 0.005) | |
2470 | MagicBlock(origcolor, par.CFrame, 0, 0, 0, 150, 150, 150, 0.1) | |
2471 | for i = 0, 24 do | |
2472 | MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.5, -0.5, 500, 0.1, math.random(1, 2)) | |
2473 | end | |
2474 | for i = 0, 24 do | |
2475 | MagicShockTrailAlt2(origcolor, par.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 50, 50, 5, -0.25, -0.25, 50, 0.005, math.random(1, 2)) | |
2476 | end | |
2477 | end | |
2478 | function ring(type, pos, scale, value) | |
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=3270017" | |
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.Transparency = rng.Transparency + 0.01 | |
2509 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0) | |
2510 | end | |
2511 | rng:Destroy() | |
2512 | end)) | |
2513 | end | |
2514 | function wave(type, pos, scale, value) | |
2515 | local type = type | |
2516 | local rng = Instance.new("Part", char) | |
2517 | rng.Anchored = true | |
2518 | rng.BrickColor = origcolor | |
2519 | rng.CanCollide = false | |
2520 | rng.FormFactor = 3 | |
2521 | rng.Name = "Ring" | |
2522 | rng.Size = Vector3.new(1, 1, 1) | |
2523 | rng.Transparency = 0 | |
2524 | rng.TopSurface = 0 | |
2525 | rng.BottomSurface = 0 | |
2526 | rng.CFrame = pos | |
2527 | local rngm = Instance.new("SpecialMesh", rng) | |
2528 | rngm.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
2529 | rngm.Scale = scale | |
2530 | local scaler2 = 1 | |
2531 | if type == "Add" then | |
2532 | scaler2 = 1 * value | |
2533 | elseif type == "Divide" then | |
2534 | scaler2 = 1 / value | |
2535 | end | |
2536 | coroutine.resume(coroutine.create(function() | |
2537 | for i = 0, 10, 0.1 do | |
2538 | swait() | |
2539 | if type == "Add" then | |
2540 | scaler2 = scaler2 - 0.01 * value | |
2541 | elseif type == "Divide" then | |
2542 | scaler2 = scaler2 - 0.01 / value | |
2543 | end | |
2544 | rng.Transparency = rng.Transparency + 0.01 | |
2545 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2546 | end | |
2547 | rng:Destroy() | |
2548 | end)) | |
2549 | end | |
2550 | function wind(type, pos, scale, value, speed) | |
2551 | local type = type | |
2552 | local rng = Instance.new("Part", char) | |
2553 | rng.Anchored = true | |
2554 | rng.BrickColor = origcolor | |
2555 | rng.CanCollide = false | |
2556 | rng.FormFactor = 3 | |
2557 | rng.Name = "Ring" | |
2558 | rng.Size = Vector3.new(1, 1, 1) | |
2559 | rng.Transparency = 0 | |
2560 | rng.TopSurface = 0 | |
2561 | rng.BottomSurface = 0 | |
2562 | rng.CFrame = pos | |
2563 | local rngm = Instance.new("SpecialMesh", rng) | |
2564 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2565 | rngm.Scale = scale | |
2566 | local scaler2 = 1 | |
2567 | if type == "Add" then | |
2568 | scaler2 = 1 * value | |
2569 | elseif type == "Divide" then | |
2570 | scaler2 = 1 / value | |
2571 | end | |
2572 | coroutine.resume(coroutine.create(function() | |
2573 | for i = 0, 10, 0.1 do | |
2574 | swait() | |
2575 | if type == "Add" then | |
2576 | scaler2 = scaler2 - 0.01 * value | |
2577 | elseif type == "Divide" then | |
2578 | scaler2 = scaler2 - 0.01 / value | |
2579 | end | |
2580 | rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0) | |
2581 | rng.Transparency = rng.Transparency + 0.01 | |
2582 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2) | |
2583 | end | |
2584 | rng:Destroy() | |
2585 | end)) | |
2586 | end | |
2587 | function groundwind(type, pos, scale, value, speed) | |
2588 | local type = type | |
2589 | local rng = Instance.new("Part", char) | |
2590 | rng.Anchored = true | |
2591 | rng.BrickColor = origcolor | |
2592 | rng.CanCollide = false | |
2593 | rng.FormFactor = 3 | |
2594 | rng.Name = "Ring" | |
2595 | rng.Size = Vector3.new(1, 1, 1) | |
2596 | rng.Transparency = 0 | |
2597 | rng.TopSurface = 0 | |
2598 | rng.BottomSurface = 0 | |
2599 | rng.CFrame = pos | |
2600 | local rngm = Instance.new("SpecialMesh", rng) | |
2601 | rngm.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
2602 | rngm.Scale = scale | |
2603 | local scaler2 = 1 | |
2604 | if type == "Add" then | |
2605 | scaler2 = 1 * value | |
2606 | elseif type == "Divide" then | |
2607 | scaler2 = 1 / value | |
2608 | end | |
2609 | coroutine.resume(coroutine.create(function() | |
2610 | for i = 0, 10, 0.1 do | |
2611 | swait() | |
2612 | if type == "Add" then | |
2613 | scaler2 = scaler2 - 0.01 * value | |
2614 | elseif type == "Divide" then | |
2615 | scaler2 = scaler2 - 0.01 / value | |
2616 | end | |
2617 | rng.CFrame = rng.CFrame * CFrame.Angles(0, 0.025 * speed, 0) | |
2618 | rng.Transparency = rng.Transparency + 0.01 | |
2619 | rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2 / 5, scaler2) | |
2620 | end | |
2621 | rng:Destroy() | |
2622 | end)) | |
2623 | end | |
2624 | function CameraManager() | |
2625 | if TwoD and not CamInterrupt then | |
2626 | if Humanoid.Health > 0 then | |
2627 | Camera.CameraSubject = Humanoid | |
2628 | Camera.CameraType = "Scriptable" | |
2629 | Humanoid.AutoRotate = false | |
2630 | if Booleans.GyroUse then | |
2631 | Directer.MaxTorque = Vec3(0, huge, 0) | |
2632 | else | |
2633 | Directer.MaxTorque = Vec3(0, 0, 0) | |
2634 | end | |
2635 | if TargetInfo[1] ~= nil and TargetInfo[2] ~= nil then | |
2636 | if Booleans.CamFollow then | |
2637 | CPart.CFrame = cFrame(RootPart.Position, Vec3(TargetInfo[1].Position.X, RootPart.Position.Y, TargetInfo[1].Position.Z)) | |
2638 | Directer.CFrame = cFrame((RootPart.CFrame * cFrame(0, 0, 10)).p, TargetInfo[1].Position) | |
2639 | else | |
2640 | CPart.Position = RootPart.Position | |
2641 | end | |
2642 | else | |
2643 | local ahead = (RootPart.CFrame * cFrame(0, 0, -3)).p | |
2644 | CPart.CFrame = cFrame(RootPart.Position, Vec3(ahead.X, RootPart.Position.Y, ahead.Z)) | |
2645 | end | |
2646 | Camera.CFrame = lerp(Camera.CFrame, CPart.CFrame * cFrame(25, 3, 0) * Euler(0, radian(90), 0), 0.2) | |
2647 | else | |
2648 | Camera.CameraSubject = Humanoid | |
2649 | Camera.CameraType = "Custom" | |
2650 | end | |
2651 | end | |
2652 | end | |
2653 | function sphere(bonuspeed, type, pos, scale, value, color) | |
2654 | local type = type | |
2655 | local rng = Instance.new("Part", char) | |
2656 | rng.Anchored = true | |
2657 | rng.BrickColor = color | |
2658 | rng.CanCollide = false | |
2659 | rng.FormFactor = 3 | |
2660 | rng.Name = "Ring" | |
2661 | rng.Material = "Neon" | |
2662 | rng.Size = Vector3.new(1, 1, 1) | |
2663 | rng.Transparency = 0 | |
2664 | rng.TopSurface = 0 | |
2665 | rng.BottomSurface = 0 | |
2666 | rng.CFrame = pos | |
2667 | local rngm = Instance.new("SpecialMesh", rng) | |
2668 | rngm.MeshType = "Sphere" | |
2669 | rngm.Scale = scale | |
2670 | if rainbowmode == true then | |
2671 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
2672 | end | |
2673 | local scaler2 = 1 | |
2674 | if type == "Add" then | |
2675 | scaler2 = 1 * value | |
2676 | elseif type == "Divide" then | |
2677 | scaler2 = 1 / value | |
2678 | end | |
2679 | coroutine.resume(coroutine.create(function() | |
2680 | for i = 0, 10 / bonuspeed, 0.1 do | |
2681 | swait() | |
2682 | if rainbowmode == true then | |
2683 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
2684 | end | |
2685 | if type == "Add" then | |
2686 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
2687 | elseif type == "Divide" then | |
2688 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
2689 | end | |
2690 | if chaosmode == true then | |
2691 | rng.BrickColor = BrickColor.random() | |
2692 | end | |
2693 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
2694 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, scaler2 * bonuspeed) | |
2695 | end | |
2696 | rng:Destroy() | |
2697 | end)) | |
2698 | end | |
2699 | function sphereMK(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos) | |
2700 | local type = type | |
2701 | local rng = Instance.new("Part", char) | |
2702 | rng.Anchored = true | |
2703 | rng.BrickColor = color | |
2704 | rng.CanCollide = false | |
2705 | rng.FormFactor = 3 | |
2706 | rng.Name = "Ring" | |
2707 | rng.Material = "Neon" | |
2708 | rng.Size = Vector3.new(1, 1, 1) | |
2709 | rng.Transparency = 0 | |
2710 | rng.TopSurface = 0 | |
2711 | rng.BottomSurface = 0 | |
2712 | rng.CFrame = pos | |
2713 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
2714 | local rngm = Instance.new("SpecialMesh", rng) | |
2715 | rngm.MeshType = "Sphere" | |
2716 | rngm.Scale = vt(x1, y1, z1) | |
2717 | if rainbowmode == true then | |
2718 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
2719 | end | |
2720 | local scaler2 = 1 | |
2721 | local speeder = FastSpeed | |
2722 | if type == "Add" then | |
2723 | scaler2 = 1 * value | |
2724 | elseif type == "Divide" then | |
2725 | scaler2 = 1 / value | |
2726 | end | |
2727 | coroutine.resume(coroutine.create(function() | |
2728 | for i = 0, 10 / bonuspeed, 0.1 do | |
2729 | swait() | |
2730 | if rainbowmode == true then | |
2731 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
2732 | end | |
2733 | if type == "Add" then | |
2734 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
2735 | elseif type == "Divide" then | |
2736 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
2737 | end | |
2738 | if chaosmode == true then | |
2739 | rng.BrickColor = BrickColor.random() | |
2740 | end | |
2741 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
2742 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
2743 | rng.Transparency = rng.Transparency + 0.01 * bonuspeed | |
2744 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
2745 | end | |
2746 | rng:Destroy() | |
2747 | end)) | |
2748 | end | |
2749 | function sphereMKCharge(bonuspeed, FastSpeed, type, pos, x1, y1, z1, value, color, outerpos) | |
2750 | local type = type | |
2751 | local rng = Instance.new("Part", char) | |
2752 | rng.Anchored = true | |
2753 | rng.BrickColor = color | |
2754 | rng.CanCollide = false | |
2755 | rng.FormFactor = 3 | |
2756 | rng.Name = "Ring" | |
2757 | rng.Material = "Neon" | |
2758 | rng.Size = Vector3.new(1, 1, 1) | |
2759 | rng.Transparency = 1 | |
2760 | rng.TopSurface = 0 | |
2761 | rng.BottomSurface = 0 | |
2762 | rng.CFrame = pos | |
2763 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * outerpos | |
2764 | local rngm = Instance.new("SpecialMesh", rng) | |
2765 | rngm.MeshType = "Sphere" | |
2766 | rngm.Scale = vt(x1, y1, z1) | |
2767 | if rainbowmode == true then | |
2768 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
2769 | end | |
2770 | local scaler2 = 1 | |
2771 | local speeder = FastSpeed | |
2772 | if type == "Add" then | |
2773 | scaler2 = 1 * value | |
2774 | elseif type == "Divide" then | |
2775 | scaler2 = 1 / value | |
2776 | end | |
2777 | coroutine.resume(coroutine.create(function() | |
2778 | for i = 0, 10 / bonuspeed, 0.1 do | |
2779 | swait() | |
2780 | if rainbowmode == true then | |
2781 | rng.Color = Color3.new(r / 255, g / 255, b / 255) | |
2782 | end | |
2783 | if type == "Add" then | |
2784 | scaler2 = scaler2 - 0.01 * value / bonuspeed | |
2785 | elseif type == "Divide" then | |
2786 | scaler2 = scaler2 - 0.01 / value * bonuspeed | |
2787 | end | |
2788 | if chaosmode == true then | |
2789 | rng.BrickColor = BrickColor.random() | |
2790 | end | |
2791 | speeder = speeder - 0.01 * FastSpeed * bonuspeed | |
2792 | rng.CFrame = rng.CFrame + rng.CFrame.lookVector * speeder * bonuspeed | |
2793 | rng.Transparency = rng.Transparency - 0.01 * bonuspeed | |
2794 | rngm.Scale = rngm.Scale + Vector3.new(scaler2 * bonuspeed, scaler2 * bonuspeed, 0) | |
2795 | end | |
2796 | rng:Destroy() | |
2797 | end)) | |
2798 | end | |
2799 | function dmg(dude) | |
2800 | if dude.Name ~= Character then | |
2801 | local bgf = Instance.new("BodyGyro", dude.Head) | |
2802 | bgf.CFrame = bgf.CFrame * CFrame.fromEulerAnglesXYZ(math.rad(-90), 0, 0) | |
2803 | local val = Instance.new("BoolValue", dude) | |
2804 | val.Name = "IsHit" | |
2805 | local ds = coroutine.wrap(function() | |
2806 | dude:WaitForChild("Head"):BreakJoints() | |
2807 | wait(0.5) | |
2808 | targetted = nil | |
2809 | CFuncs.Sound.Create("rbxassetid://62339698", char, 0.5, 0.3) | |
2810 | coroutine.resume(coroutine.create(function() | |
2811 | for i, v in pairs(dude:GetChildren()) do | |
2812 | if v:IsA("Accessory") then | |
2813 | v:Destroy() | |
2814 | end | |
2815 | if v:IsA("Humanoid") then | |
2816 | v:Destroy() | |
2817 | end | |
2818 | if v:IsA("CharacterMesh") then | |
2819 | v:Destroy() | |
2820 | end | |
2821 | if v:IsA("Model") then | |
2822 | v:Destroy() | |
2823 | end | |
2824 | if v:IsA("Part") or v:IsA("MeshPart") then | |
2825 | for x, o in pairs(v:GetChildren()) do | |
2826 | if o:IsA("Decal") then | |
2827 | o:Destroy() | |
2828 | end | |
2829 | end | |
2830 | coroutine.resume(coroutine.create(function() | |
2831 | v.Material = "Neon" | |
2832 | v.CanCollide = false | |
2833 | local bld = Instance.new("ParticleEmitter", v) | |
2834 | bld.LightEmission = 1 | |
2835 | bld.Texture = "rbxassetid://284205403" | |
2836 | bld.Color = ColorSequence.new(Color3.new(1, 1, 1)) | |
2837 | bld.Rate = 50 | |
2838 | bld.Lifetime = NumberRange.new(1) | |
2839 | bld.Size = NumberSequence.new({ | |
2840 | NumberSequenceKeypoint.new(0, 0.75, 0), | |
2841 | NumberSequenceKeypoint.new(1, 0, 0) | |
2842 | }) | |
2843 | bld.Transparency = NumberSequence.new({ | |
2844 | NumberSequenceKeypoint.new(0, 0, 0), | |
2845 | NumberSequenceKeypoint.new(1, 1, 0) | |
2846 | }) | |
2847 | bld.Speed = NumberRange.new(0, 0) | |
2848 | bld.VelocitySpread = 50000 | |
2849 | bld.Rotation = NumberRange.new(-500, 500) | |
2850 | bld.RotSpeed = NumberRange.new(-500, 500) | |
2851 | local sbs = Instance.new("BodyPosition", v) | |
2852 | sbs.P = 3000 | |
2853 | sbs.D = 1000 | |
2854 | sbs.maxForce = Vector3.new(50000000000, 50000000000, 50000000000) | |
2855 | sbs.position = v.Position + Vector3.new(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) | |
2856 | v.Color = Color3.new(1, 1, 1) | |
2857 | coroutine.resume(coroutine.create(function() | |
2858 | for i = 0, 49 do | |
2859 | swait(1) | |
2860 | v.Transparency = v.Transparency + 0.02 | |
2861 | end | |
2862 | CFuncs.Sound.Create("rbxassetid://1192402877", v, 0.25, 1) | |
2863 | bld.Speed = NumberRange.new(1, 5) | |
2864 | bld.Acceleration = vt(0, 10, 0) | |
2865 | wait(0.5) | |
2866 | bld.Enabled = false | |
2867 | wait(3) | |
2868 | v:Destroy() | |
2869 | dude:Destroy() | |
2870 | end)) | |
2871 | end)) | |
2872 | end | |
2873 | end | |
2874 | end)) | |
2875 | end) | |
2876 | ds() | |
2877 | end | |
2878 | end | |
2879 | function FindNearestHead(Position, Distance, SinglePlayer) | |
2880 | if SinglePlayer then | |
2881 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
2882 | end | |
2883 | local List = {} | |
2884 | for i, v in pairs(workspace:GetChildren()) do | |
2885 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then | |
2886 | table.insert(List, v) | |
2887 | end | |
2888 | end | |
2889 | return List | |
2890 | end | |
2891 | function FaceMouse() | |
2892 | Cam = workspace.CurrentCamera | |
2893 | return { | |
2894 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)), | |
2895 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
2896 | } | |
2897 | end | |
2898 | function FaceMouse2() | |
2899 | Cam = workspace.CurrentCamera | |
2900 | return { | |
2901 | CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)), | |
2902 | Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z) | |
2903 | } | |
2904 | end | |
2905 | local ModeOfGlitch = 1 | |
2906 | local storehumanoidWS = 16 | |
2907 | function ExtinctiveHeartbreak() | |
2908 | local targetted | |
2909 | if mouse.Target.Parent ~= Character and mouse.Target.Parent.Parent ~= Character and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
2910 | targetted = mouse.Target.Parent | |
2911 | end | |
2912 | if targetted ~= nil then | |
2913 | attack = true | |
2914 | CFuncs.Sound.Create("rbxassetid://847061203", root, 2.5, 1) | |
2915 | for i = 0, 9 do | |
2916 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0) | |
2917 | end | |
2918 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black")) | |
2919 | local originalpos = root.CFrame | |
2920 | RootPart.CFrame = targetted.Head.CFrame * CFrame.new(0, -2, 2) | |
2921 | for i = 0, 9 do | |
2922 | sphereMK(3, 0.25, "Add", root.CFrame * CFrame.Angles(math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360)), math.rad(math.random(-360, 360))), 1, 1, 10, -0.01, BrickColor.new("Really black"), 0) | |
2923 | end | |
2924 | hum.WalkSpeed = 0 | |
2925 | targetted.Head.Anchored = true | |
2926 | sphere(3, "Add", root.CFrame, vt(0, 0, 0), 0.25, BrickColor.new("Really black")) | |
2927 | for i = 0, 2, 0.1 do | |
2928 | swait() | |
2929 | RH.C0 = clerp(RH.C0, cf(1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.4) | |
2930 | LH.C0 = clerp(LH.C0, cf(-1, -1 - 0.05 * math.cos(sine / 28), 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.4) | |
2931 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0 + 0.05 * math.cos(sine / 28)) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.4) | |
2932 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(10)), 0.8) | |
2933 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.4) | |
2934 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5 + 0.1 * math.cos(sine / 28), 0) * angles(math.rad(90), math.rad(0), math.rad(60)), 0.4) | |
2935 | end | |
2936 | coroutine.resume(coroutine.create(function() | |
2937 | bld = Instance.new("ParticleEmitter", targetted:WaitForChild("Torso")) | |
2938 | bld.LightEmission = 0.1 | |
2939 | bld.Texture = "rbxassetid://284205403" | |
2940 | - | function PureBomb() |
2940 | + | |
2941 | bld.Rate = 500 | |
2942 | bld.Lifetime = NumberRange.new(1) | |
2943 | bld.Size = NumberSequence.new({ | |
2944 | - | orb.BrickColor = BrickColor.new("Toothpaste") |
2944 | + | |
2945 | NumberSequenceKeypoint.new(1, 0, 0) | |
2946 | }) | |
2947 | bld.Acceleration = vt(0, -25, 0) | |
2948 | bld.Transparency = NumberSequence.new({ | |
2949 | NumberSequenceKeypoint.new(0, 0, 0), | |
2950 | NumberSequenceKeypoint.new(1, 0, 0) | |
2951 | }) | |
2952 | bld.Speed = NumberRange.new(10, 50) | |
2953 | bld.EmissionDirection = "Front" | |
2954 | bld.VelocitySpread = 25 | |
2955 | bld.Rotation = NumberRange.new(-500, 500) | |
2956 | - | orbm.Scale = vt(0, 0, 0) |
2956 | + | |
2957 | - | local scaled = 0.1 |
2957 | + | |
2958 | - | local posid = 0 |
2958 | + | |
2959 | - | CFuncs.Sound.Create("rbxassetid://136007472", orb, 1, 1) |
2959 | + | |
2960 | bld.LightEmission = 0.1 | |
2961 | bld.Texture = "rbxassetid://284205403" | |
2962 | - | scaled = scaled - 0.001 |
2962 | + | |
2963 | - | posid = posid - scaled |
2963 | + | |
2964 | - | orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0) |
2964 | + | |
2965 | - | orbm.Scale = orbm.Scale + vt(scaled, scaled, scaled) |
2965 | + | |
2966 | - | 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) |
2966 | + | |
2967 | - | 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))), 0.1) |
2967 | + | |
2968 | - | 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)), 0.1) |
2968 | + | |
2969 | - | 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)), 0.1) |
2969 | + | |
2970 | - | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) |
2970 | + | |
2971 | - | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(180), math.rad(20), math.rad(0)), 0.1) |
2971 | + | |
2972 | - | 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)), 0.1) |
2972 | + | |
2973 | }) | |
2974 | bld.Speed = NumberRange.new(10, 50) | |
2975 | bld.EmissionDirection = "Front" | |
2976 | - | orb.CFrame = rarm.CFrame * CFrame.new(0, -0.1 + posid / 1.05, 0) |
2976 | + | |
2977 | - | 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))), 0.4) |
2977 | + | |
2978 | - | 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)), 0.4) |
2978 | + | |
2979 | - | 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)), 0.4) |
2979 | + | |
2980 | - | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(20)), 0.4) |
2980 | + | |
2981 | - | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(220), math.rad(20), math.rad(0)), 0.4) |
2981 | + | |
2982 | - | 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)), 0.4) |
2982 | + | |
2983 | CFuncs.Sound.Create("rbxassetid://429400881", targetted.Head, 1, 1) | |
2984 | for i = 0, 1, 0.1 do | |
2985 | - | orb.Anchored = false |
2985 | + | |
2986 | - | CFuncs.Sound.Create("rbxassetid://260433768", root, 1.25, 1) |
2986 | + | |
2987 | - | local a = Instance.new("Part", workspace) |
2987 | + | |
2988 | - | a.Name = "Direction" |
2988 | + | |
2989 | - | a.Anchored = true |
2989 | + | |
2990 | - | a.BrickColor = bc("Bright red") |
2990 | + | |
2991 | - | a.Material = "Neon" |
2991 | + | |
2992 | - | a.Transparency = 1 |
2992 | + | |
2993 | - | a.CanCollide = false |
2993 | + | |
2994 | - | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 500) |
2994 | + | |
2995 | - | local ignore = orb |
2995 | + | |
2996 | - | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) |
2996 | + | |
2997 | - | a.BottomSurface = 10 |
2997 | + | |
2998 | - | a.TopSurface = 10 |
2998 | + | |
2999 | - | local distance = (orb.CFrame.p - position).magnitude |
2999 | + | |
3000 | - | a.Size = Vector3.new(0.1, 0.1, 0.1) |
3000 | + | |
3001 | - | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, 0) |
3001 | + | |
3002 | - | orb.CFrame = a.CFrame |
3002 | + | |
3003 | - | a:Destroy() |
3003 | + | |
3004 | - | local bv = Instance.new("BodyVelocity") |
3004 | + | |
3005 | - | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) |
3005 | + | |
3006 | - | bv.velocity = orb.CFrame.lookVector * 125 |
3006 | + | |
3007 | - | bv.Parent = orb |
3007 | + | |
3008 | - | local hitted = false |
3008 | + | function HeavenlyDisk() |
3009 | - | game:GetService("Debris"):AddItem(orb, 15) |
3009 | + | attack = true |
3010 | hum.WalkSpeed = 2 | |
3011 | - | local hit = orb.Touched:connect(function(hit) |
3011 | + | local keptcolor = MAINRUINCOLOR |
3012 | - | if hitted == false then |
3012 | + | local radm = math.random(1,3) |
3013 | - | hitted = true |
3013 | + | if radm == 1 then |
3014 | - | CameraEnshaking(10, 2.5) |
3014 | + | --bosschatfunc("DONT COME TO ME CLOSER!",MAINRUINCOLOR.Color,1) |
3015 | - | CFuncs.Sound.Create("rbxassetid://151304356", orb, 5, 1) |
3015 | + | elseif radm == 2 then |
3016 | - | MagniDamage(orb, 65, 65, 90, 0, "Normal") |
3016 | + | --bosschatfunc("LEAVE ME ALONE!",MAINRUINCOLOR.Color,1) |
3017 | - | sphere(1, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 1, BrickColor.new("Toothpaste")) |
3017 | + | elseif radm == 3 then |
3018 | - | sphere(2, "Add", orb.CFrame, vt(orbm.Scale.x, orbm.Scale.y, orbm.Scale.z), 2, BrickColor.new("Toothpaste")) |
3018 | + | --bosschatfunc("WHY YOU REDUSE?!",MAINRUINCOLOR.Color,1) |
3019 | - | for i = 0, 9 do |
3019 | + | |
3020 | - | 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) |
3020 | + | CFuncs["Sound"].Create("rbxassetid://847061203", root, 2, 1) |
3021 | - | 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) |
3021 | + | --CFuncs["EchoSound"].Create("rbxassetid://1625448638", root, 4, 1,0,10,0.15,0.5,1) |
3022 | for i = 0, 14 do | |
3023 | - | orb.Anchored = true |
3023 | + | -- |
3024 | - | orb.Transparency = 1 |
3024 | + | |
3025 | - | wait(8) |
3025 | + | for i = 0,2,0.1 do |
3026 | - | orb:Destroy() |
3026 | + | swait() |
3027 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
3028 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.3) | |
3029 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.3) | |
3030 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(-60)),.3) | |
3031 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.3) | |
3032 | - | 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))), 0.4) |
3032 | + | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3) |
3033 | - | 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)), 0.4) |
3033 | + | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.3) |
3034 | - | 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)), 0.4) |
3034 | + | |
3035 | - | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.4) |
3035 | + | CFuncs["Sound"].Create("rbxassetid://763755889", root, 2.5,1.1) |
3036 | - | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(60), math.rad(20), math.rad(50)), 0.4) |
3036 | + | for i = 0,1,0.6 do |
3037 | - | 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)), 0.4) |
3037 | + | swait() |
3038 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
3039 | --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
3040 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
3041 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
3042 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.6) | |
3043 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
3044 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
3045 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
3046 | end | |
3047 | for i = 0,1,0.6 do | |
3048 | swait() | |
3049 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
3050 | --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
3051 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
3052 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
3053 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(90)),.6) | |
3054 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
3055 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
3056 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
3057 | end | |
3058 | for i = 0,1,0.6 do | |
3059 | swait() | |
3060 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
3061 | --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
3062 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
3063 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
3064 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(180)),.6) | |
3065 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
3066 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
3067 | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) | |
3068 | end | |
3069 | for i = 0,1,0.6 do | |
3070 | swait() | |
3071 | sphere2(8,"Add",larm.CFrame*CFrame.new(0,-2,0)*CFrame.Angles(math.rad(90),0,0),vt(2.25,0.1,2.25),0.01,0.01,0.01,keptcolor,keptcolor.Color) | |
3072 | --slash(math.random(15,30)/10,5,true,"Round","Add","Out",root.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.05,0.01,0.05),math.random(25,75)/250,BrickColor.new("White")) | |
3073 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-5)),.6) | |
3074 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(30),math.rad(0)),.6) | |
3075 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(270)),.6) | |
3076 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(20),math.rad(0),math.rad(30)),.6) | |
3077 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.6) | |
3078 | - | chatfunc("Derpz...", BrickColor.random().Color) |
3078 | + | LW.C0=clerp(LW.C0,cf(-1.15,0.5,-0.5)*angles(math.rad(90),math.rad(0),math.rad(60)),.6) |
3079 | end | |
3080 | local rot = 15 | |
3081 | for i = 0, 2 do | |
3082 | local dis = CreateParta(char,0.5,1,"Neon",BrickColor.new("Really black")) | |
3083 | --CFuncs["EchoSound"].Create("rbxassetid://763718160", dis, 3, 1.1,0,10,0.15,0.5,1) | |
3084 | dis.CFrame = root.CFrame*CFrame.new(0,2,-3) | |
3085 | CreateMesh(dis,"Sphere",10,1,10) | |
3086 | local at1 = Instance.new("Attachment",dis) | |
3087 | at1.Position = vt(-5,0,0) | |
3088 | - | chatfunc("HATE BEGONE!", BrickColor.random().Color) |
3088 | + | local at2 = Instance.new("Attachment",dis) |
3089 | at2.Position = vt(5,0,0) | |
3090 | local trl = Instance.new('Trail',wed) | |
3091 | trl.Attachment0 = at1 | |
3092 | trl.Attachment1 = at2 | |
3093 | trl.Texture = "rbxassetid://1049219073" | |
3094 | trl.LightEmission = 1 | |
3095 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
3096 | trl.Color = ColorSequence.new(dis.Color) | |
3097 | trl.Lifetime = 0.6 | |
3098 | local a = Instance.new("Part",workspace) | |
3099 | a.Name = "Direction" | |
3100 | a.Anchored = true | |
3101 | a.BrickColor = bc("Bright red") | |
3102 | a.Material = "Neon" | |
3103 | a.Transparency = 1 | |
3104 | a.CanCollide = false | |
3105 | local ray = Ray.new( | |
3106 | dis.CFrame.p, -- origin | |
3107 | (mouse.Hit.p - dis.CFrame.p).unit * 500 -- direction | |
3108 | ) | |
3109 | local ignore = dis | |
3110 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3111 | a.BottomSurface = 10 | |
3112 | a.TopSurface = 10 | |
3113 | local distance = (dis.CFrame.p - position).magnitude | |
3114 | a.Size = Vector3.new(0.1, 0.1, 0.1) | |
3115 | a.CFrame = CFrame.new(dis.CFrame.p, position) * CFrame.new(0, 0, 0) | |
3116 | dis.CFrame = a.CFrame | |
3117 | dis.CFrame = dis.CFrame*CFrame.Angles(0,math.rad(rot),0) | |
3118 | a:Destroy() | |
3119 | local bv = Instance.new("BodyVelocity") | |
3120 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3121 | bv.velocity = dis.CFrame.lookVector*250 | |
3122 | bv.Parent = dis | |
3123 | game:GetService("Debris"):AddItem(dis, 5) | |
3124 | local hitted = false | |
3125 | coroutine.resume(coroutine.create(function() | |
3126 | dis.Touched:connect(function(hit) | |
3127 | if hitted == false and hit.Parent ~= char then | |
3128 | hitted = true | |
3129 | --CFuncs["EchoSound"].Create("rbxassetid://782200047", dis, 7, 1.1,0,10,0.15,0.5,1) | |
3130 | MagniDamage(dis, 30, 82,34575, 0, "Normal") | |
3131 | --sphere2(8,"Add",dis.CFrame,vt(10,1,10),1,0.1,1,keptcolor,keptcolor.Color) | |
3132 | --sphere2(4,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,keptcolor,keptcolor.Color) | |
3133 | --sphere2(3,"Add",dis.CFrame,vt(1,1,1),0.5,0.5,0.5,BrickColor.new("White"),Color3.new(1,1,1)) | |
3134 | coroutine.resume(coroutine.create(function() | |
3135 | for i = 0, 9 do | |
3136 | local disr = CreateParta(char,1,1,"Neon",keptcolor) | |
3137 | disr.CFrame = dis.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
3138 | local at1 = Instance.new("Attachment",disr) | |
3139 | at1.Position = vt(-2,0,0) | |
3140 | local at2 = Instance.new("Attachment",disr) | |
3141 | at2.Position = vt(2,0,0) | |
3142 | local trl = Instance.new('Trail',disr) | |
3143 | trl.Attachment0 = at1 | |
3144 | trl.FaceCamera = true | |
3145 | trl.Attachment1 = at2 | |
3146 | trl.Texture = "rbxassetid://2342682798" | |
3147 | trl.LightEmission = 1 | |
3148 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)}) | |
3149 | trl.Color = ColorSequence.new(Color3.new(0.3,1,1)) | |
3150 | trl.Lifetime = 0.5 | |
3151 | local bv = Instance.new("BodyVelocity") | |
3152 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
3153 | bv.velocity = disr.CFrame.lookVector*math.random(50,200) | |
3154 | bv.Parent = disr | |
3155 | local val = 0 | |
3156 | coroutine.resume(coroutine.create(function() | |
3157 | swait(30) | |
3158 | for i = 0, 9 do | |
3159 | swait() | |
3160 | val = val + 0.1 | |
3161 | trl.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, val),NumberSequenceKeypoint.new(1, 1)}) | |
3162 | end | |
3163 | game:GetService("Debris"):AddItem(disr, 3) | |
3164 | end)) | |
3165 | end | |
3166 | local eff = Instance.new("ParticleEmitter",dis) | |
3167 | eff.Texture = "rbxassetid://2273224484" | |
3168 | eff.LightEmission = 1 | |
3169 | eff.Color = ColorSequence.new(Color3.new(0.3,1,1)) | |
3170 | eff.Rate = 500000 | |
3171 | eff.Lifetime = NumberRange.new(0.5,2) | |
3172 | eff.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,20,0),NumberSequenceKeypoint.new(0.2,2,0),NumberSequenceKeypoint.new(0.8,2,0),NumberSequenceKeypoint.new(1,0,0)}) | |
3173 | eff.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(0.1,0,0),NumberSequenceKeypoint.new(0.8,0,0),NumberSequenceKeypoint.new(1,1,0)}) | |
3174 | eff.Speed = NumberRange.new(20,250) | |
3175 | eff.Drag = 5 | |
3176 | eff.Rotation = NumberRange.new(-500,500) | |
3177 | eff.VelocitySpread = 9000 | |
3178 | eff.RotSpeed = NumberRange.new(-50,50) | |
3179 | wait(0.25) | |
3180 | eff.Enabled = false | |
3181 | end)) | |
3182 | for i = 0, 9 do | |
3183 | --slash(math.random(10,20)/10,5,true,"Round","Add","Out",dis.CFrame*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),vt(0.01,0.01,0.01),math.random(100,200)/250,BrickColor.new("White")) | |
3184 | end | |
3185 | for i = 0, 19 do | |
3186 | -- | |
3187 | end | |
3188 | coroutine.resume(coroutine.create(function() | |
3189 | for i = 0, 19 do | |
3190 | swait() | |
3191 | hum.CameraOffset = vt(math.random(-10,10)/70,math.random(-10,10)/70,math.random(-10,10)/70) | |
3192 | end | |
3193 | hum.CameraOffset = vt(0,0,0) | |
3194 | end)) | |
3195 | dis.Anchored = true | |
3196 | dis.Transparency = 1 | |
3197 | wait(8) | |
3198 | dis:Destroy() | |
3199 | end | |
3200 | end) | |
3201 | end)) | |
3202 | rot = rot - 15 | |
3203 | end | |
3204 | for i = 0,2,0.1 do | |
3205 | swait() | |
3206 | RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(-30),math.rad(0)),.3) | |
3207 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(5)),.3) | |
3208 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(60)),.3) | |
3209 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(-50)),.3) | |
3210 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-20),math.rad(0),math.rad(10)),.3) | |
3211 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(-60)),.3) | |
3212 | end | |
3213 | attack = false | |
3214 | hum.WalkSpeed = storehumanoidWS | |
3215 | end | |
3216 | function ChaosGroundStrike() | |
3217 | attack = true | |
3218 | for i = 0, 2, 0.1 do | |
3219 | swait() | |
3220 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
3221 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
3222 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
3223 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
3224 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2) | |
3225 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2) | |
3226 | end | |
3227 | CFuncs.Sound.Create("rbxassetid://438666141", root, 7.5, 1) | |
3228 | CFuncs.Sound.Create("rbxassetid://1208650519", root, 7.5, 1) | |
3229 | CameraEnshaking(4, 12) | |
3230 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do | |
3231 | if v:FindFirstChild("Head") then | |
3232 | dmg(v) | |
3233 | end | |
3234 | end | |
3235 | sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1, BrickColor.random()) | |
3236 | sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2, BrickColor.random()) | |
3237 | sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100, 0.1, 100), 0.01, BrickColor.random()) | |
3238 | for i = 0, 2, 0.1 do | |
3239 | swait() | |
3240 | 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) | |
3241 | 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) | |
3242 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
3243 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
3244 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
3245 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
3246 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4) | |
3247 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4) | |
3248 | end | |
3249 | attack = false | |
3250 | end | |
3251 | function ChaosBegone() | |
3252 | attack = true | |
3253 | chatfunc("Micheal's", BrickColor.random().Color) | |
3254 | for i = 0, 10, 0.1 do | |
3255 | swait() | |
3256 | RH.C0 = clerp(RH.C0, cf(1, -0.25, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
3257 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.2) | |
3258 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
3259 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
3260 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(-20)), 0.2) | |
3261 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(140), math.rad(0), math.rad(20)), 0.2) | |
3262 | end | |
3263 | chatfunc("REVENGE!", BrickColor.random().Color) | |
3264 | CFuncs.Sound.Create("rbxassetid://438666141", char, 7.5, 1) | |
3265 | CFuncs.Sound.Create("rbxassetid://1208650519", char, 7.5, 1) | |
3266 | CameraEnshaking(5, 25) | |
3267 | for i, v in pairs(FindNearestHead(Torso.CFrame.p, 1234567890)) do | |
3268 | if v:FindFirstChild("Head") then | |
3269 | dmg(v) | |
3270 | end | |
3271 | end | |
3272 | sphere(5, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 1000, BrickColor.random()) | |
3273 | sphere(10, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(0, 0, 0), 2000, BrickColor.random()) | |
3274 | sphere(1, "Add", root.CFrame * CFrame.new(0, -2.9, 0), vt(100000, 0.1, 100000), 0.01, BrickColor.random()) | |
3275 | for i = 0, 3, 0.1 do | |
3276 | swait() | |
3277 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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) | |
3278 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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) | |
3279 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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) | |
3280 | sphereMK(2.5, 0.75, "Add", root.CFrame * CFrame.new(math.random(-525, 525), -5, math.random(-525, 525)) * 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) | |
3281 | RH.C0 = clerp(RH.C0, cf(1, -1, -0.5) * angles(math.rad(0), math.rad(90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
3282 | LH.C0 = clerp(LH.C0, cf(-1, -1, 0) * angles(math.rad(0), math.rad(-90), math.rad(0)) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.4) | |
3283 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
3284 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), 0.4) | |
3285 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(30)), 0.4) | |
3286 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(-50), math.rad(0), math.rad(-30)), 0.4) | |
3287 | end | |
3288 | attack = false | |
3289 | end | |
3290 | function orb_spawn_norm(positted, timer, color, MagniBoost, min, max, volEx, ShakePower, volSummon) | |
3291 | local orb = Instance.new("Part", char) | |
3292 | orb.Anchored = true | |
3293 | orb.BrickColor = color | |
3294 | orb.CanCollide = false | |
3295 | orb.FormFactor = 3 | |
3296 | orb.Name = "Ring" | |
3297 | orb.Material = "Neon" | |
3298 | orb.Size = Vector3.new(1, 1, 1) | |
3299 | orb.Transparency = 0 | |
3300 | orb.TopSurface = 0 | |
3301 | orb.BottomSurface = 0 | |
3302 | local orbm = Instance.new("SpecialMesh", orb) | |
3303 | orbm.MeshType = "Sphere" | |
3304 | orb.CFrame = positted | |
3305 | orbm.Name = "SizeMesh" | |
3306 | orbm.Scale = vt(1, 1, 1) | |
3307 | CFuncs.Sound.Create("rbxassetid://183763506", orb, volSummon, 1) | |
3308 | sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.05, orb.BrickColor) | |
3309 | coroutine.resume(coroutine.create(function() | |
3310 | wait(timer) | |
3311 | CameraEnshaking(3, ShakePower) | |
3312 | orb.Transparency = 1 | |
3313 | MagniDamage(orb, 3.5 * MagniBoost, min, max, 0, "Normal") | |
3314 | sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.1 * MagniBoost, orb.BrickColor) | |
3315 | CFuncs.Sound.Create("rbxassetid://192410089", orb, volEx, 0.7) | |
3316 | wait(3) | |
3317 | orb:Destroy() | |
3318 | end)) | |
3319 | end | |
3320 | function orb_spawn(positted, timer) | |
3321 | local randomcol = math.random(1, 2) | |
3322 | local orb = Instance.new("Part", char) | |
3323 | orb.Anchored = true | |
3324 | if randomcol == 1 then | |
3325 | orb.BrickColor = BrickColor.new("White") | |
3326 | elseif randomcol == 2 then | |
3327 | orb.BrickColor = BrickColor.new("Really black") | |
3328 | end | |
3329 | orb.CanCollide = false | |
3330 | orb.FormFactor = 3 | |
3331 | orb.Name = "Ring" | |
3332 | orb.Material = "Neon" | |
3333 | orb.Size = Vector3.new(1, 1, 1) | |
3334 | orb.Transparency = 0 | |
3335 | orb.TopSurface = 0 | |
3336 | orb.BottomSurface = 0 | |
3337 | local orbm = Instance.new("SpecialMesh", orb) | |
3338 | orbm.MeshType = "Sphere" | |
3339 | orb.CFrame = positted | |
3340 | orbm.Name = "SizeMesh" | |
3341 | orbm.Scale = vt(1, 1, 1) | |
3342 | CFuncs.Sound.Create("rbxassetid://183763506", orb, 1.5, 1) | |
3343 | sphere(2.5, "Add", orb.CFrame, vt(1, 1, 1), 0.025, orb.BrickColor) | |
3344 | for i = 0, 2 do | |
3345 | 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) | |
3346 | end | |
3347 | coroutine.resume(coroutine.create(function() | |
3348 | wait(timer) | |
3349 | CameraEnshaking(3, 2) | |
3350 | orb.Transparency = 1 | |
3351 | MagniDamage(orb, 17.5, 10, 50, 0, "Normal") | |
3352 | sphere(5, "Add", orb.CFrame, vt(1, 1, 1), 0.5, orb.BrickColor) | |
3353 | for i = 0, 4 do | |
3354 | 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) | |
3355 | end | |
3356 | CFuncs.Sound.Create("rbxassetid://192410089", orb, 2, 0.7) | |
3357 | wait(3) | |
3358 | orb:Destroy() | |
3359 | end)) | |
3360 | end | |
3361 | function scattercorrupt() | |
3362 | attack = true | |
3363 | local rot = 0 | |
3364 | local randomrotations = math.random(1, 2) | |
3365 | local lookv = 2.5 | |
3366 | local power = 5 | |
3367 | sphere(1, "Add", root.CFrame, vt(1, 100000, 1), 0.5, BrickColor.new("Royal purple")) | |
3368 | sphere(1, "Add", root.CFrame, vt(1, 1, 1), 0.75, BrickColor.new("Royal purple")) | |
3369 | for i = 0, 9 do | |
3370 | 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) | |
3371 | end | |
3372 | CFuncs.Sound.Create("rbxassetid://180204650", char, 2.5, 0.6) | |
3373 | CFuncs.Sound.Create("rbxassetid://233856079", char, 1, 0.5) | |
3374 | CFuncs.Sound.Create("rbxassetid://1208650519", char, 2.5, 1) | |
3375 | CFuncs.Sound.Create("rbxassetid://239000203", char, 0.5, 0.75) | |
3376 | CFuncs.Sound.Create("rbxassetid://579687077", char, 0.5, 0.5) | |
3377 | local hite = Instance.new("Part", char) | |
3378 | hite.Anchored = true | |
3379 | hite.CanCollide = false | |
3380 | hite.FormFactor = 3 | |
3381 | hite.Name = "Ring" | |
3382 | hite.Material = "Neon" | |
3383 | hite.Size = Vector3.new(1, 1, 1) | |
3384 | hite.Transparency = 1 | |
3385 | hite.TopSurface = 0 | |
3386 | hite.BottomSurface = 0 | |
3387 | hite.CFrame = root.CFrame * CFrame.new(0, -2.5, 0) | |
3388 | local rem = Instance.new("Part", char) | |
3389 | rem.Anchored = true | |
3390 | rem.CanCollide = false | |
3391 | rem.FormFactor = 3 | |
3392 | rem.Name = "Ring" | |
3393 | rem.Material = "Neon" | |
3394 | rem.Size = Vector3.new(1, 1, 1) | |
3395 | rem.Transparency = 1 | |
3396 | rem.TopSurface = 0 | |
3397 | rem.BottomSurface = 0 | |
3398 | rem.CFrame = hite.CFrame | |
3399 | local rem2 = rem:Clone() | |
3400 | rem2.Parent = char | |
3401 | rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3402 | local rem3 = rem:Clone() | |
3403 | rem3.Parent = char | |
3404 | rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0) | |
3405 | local rem4 = rem:Clone() | |
3406 | rem4.Parent = char | |
3407 | rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0) | |
3408 | hite:Destroy() | |
3409 | coroutine.resume(coroutine.create(function() | |
3410 | for i = 0, 24 do | |
3411 | swait(1) | |
3412 | if randomrotations == 1 then | |
3413 | rot = rot + 1 | |
3414 | elseif randomrotations == 2 then | |
3415 | rot = rot - 1 | |
3416 | end | |
3417 | power = power + 0.5 | |
3418 | lookv = lookv + 7.5 | |
3419 | rem.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(rot), 0) | |
3420 | rem2.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3421 | rem3.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(180), 0) | |
3422 | rem4.CFrame = rem.CFrame * CFrame.Angles(0, math.rad(270), 0) | |
3423 | orb_spawn_norm(rem.CFrame + rem.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5) | |
3424 | orb_spawn_norm(rem2.CFrame + rem2.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5) | |
3425 | orb_spawn_norm(rem3.CFrame + rem3.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5) | |
3426 | orb_spawn_norm(rem4.CFrame + rem4.CFrame.lookVector * lookv, 3, BrickColor.new("Royal purple"), power, 25, 75, 10, power / 5, 7.5) | |
3427 | end | |
3428 | end)) | |
3429 | attack = false | |
3430 | end | |
3431 | function yinyangi() | |
3432 | attack = true | |
3433 | for i = 0, 2, 0.1 do | |
3434 | swait() | |
3435 | 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)), 0.2) | |
3436 | 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)), 0.2) | |
3437 | 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)), 0.2) | |
3438 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
3439 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2) | |
3440 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2) | |
3441 | end | |
3442 | local bv = Instance.new("BodyVelocity") | |
3443 | bv.maxForce = Vector3.new(1000000000, 1000000000, 1000000000) | |
3444 | bv.velocity = root.CFrame.lookVector * 175 | |
3445 | bv.Parent = root | |
3446 | for Rotations = 0, 9 do | |
3447 | for i = 0, 1, 0.5 do | |
3448 | swait() | |
3449 | bv.velocity = root.CFrame.lookVector * 175 | |
3450 | 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)), 0.5) | |
3451 | 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)), 0.5) | |
3452 | 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)), 0.5) | |
3453 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
3454 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
3455 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
3456 | end | |
3457 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
3458 | for i = 0, 1, 0.5 do | |
3459 | swait() | |
3460 | bv.velocity = root.CFrame.lookVector * 175 | |
3461 | 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)), 0.5) | |
3462 | 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)), 0.5) | |
3463 | 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)), 0.5) | |
3464 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
3465 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
3466 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
3467 | end | |
3468 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
3469 | for i = 0, 1, 0.5 do | |
3470 | swait() | |
3471 | bv.velocity = root.CFrame.lookVector * 175 | |
3472 | 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)), 0.5) | |
3473 | 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)), 0.5) | |
3474 | 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)), 0.5) | |
3475 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
3476 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
3477 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
3478 | end | |
3479 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
3480 | for i = 0, 1, 0.5 do | |
3481 | swait() | |
3482 | bv.velocity = root.CFrame.lookVector * 175 | |
3483 | 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)), 0.5) | |
3484 | 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)), 0.5) | |
3485 | 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)), 0.5) | |
3486 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.5) | |
3487 | RW.C0 = clerp(RW.C0, cf(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5) | |
3488 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5) | |
3489 | end | |
3490 | orb_spawn(rarm.CFrame * CFrame.new(0, -1, 0), 2.5) | |
3491 | end | |
3492 | bv:Destroy() | |
3493 | attack = false | |
3494 | end | |
3495 | function Wip() | |
3496 | attack = true | |
3497 | local rngb = Instance.new("Part", char) | |
3498 | rngb.Anchored = true | |
3499 | rngb.BrickColor = origcolor | |
3500 | rngb.CanCollide = false | |
3501 | rngb.FormFactor = 3 | |
3502 | rngb.Name = "Ring" | |
3503 | rngb.Material = "Neon" | |
3504 | rngb.Size = Vector3.new(1, 0.05, 1) | |
3505 | rngb.Transparency = 1 | |
3506 | rngb.TopSurface = 0 | |
3507 | rngb.BottomSurface = 0 | |
3508 | local rngmb = Instance.new("SpecialMesh", rngb) | |
3509 | rngmb.MeshType = "Brick" | |
3510 | rngmb.Name = "SizeMesh" | |
3511 | rngmb.Scale = vt(0, 1, 0) | |
3512 | local orb = rngb:Clone() | |
3513 | orb.Parent = char | |
3514 | orb.Transparency = 0 | |
3515 | orb.BrickColor = BrickColor.new("White") | |
3516 | orb.Size = vt(1, 1, 1) | |
3517 | local orbmish = orb.SizeMesh | |
3518 | orbmish.Scale = vt(0, 0, 0) | |
3519 | orbmish.MeshType = "Sphere" | |
3520 | local orbe = rngb:Clone() | |
3521 | orbe.Parent = char | |
3522 | orbe.Transparency = 0.5 | |
3523 | orbe.BrickColor = BrickColor.new("New Yeller") | |
3524 | orbe.Size = vt(1, 1, 1) | |
3525 | local orbmish2 = orbe.SizeMesh | |
3526 | orbmish2.Scale = vt(0, 0, 0) | |
3527 | orbmish2.MeshType = "Sphere" | |
3528 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
3529 | rngb:Destroy() | |
3530 | for i = 0, 5, 0.1 do | |
3531 | swait() | |
3532 | if rainbowmode == true then | |
3533 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
3534 | end | |
3535 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
3536 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
3537 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
3538 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
3539 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
3540 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
3541 | 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)), 0.3) | |
3542 | 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)), 0.3) | |
3543 | RootPart.CFrame = FaceMouse()[1] | |
3544 | end | |
3545 | orbe.Transparency = 1 | |
3546 | orb.Transparency = 1 | |
3547 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5 | |
3548 | CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1) | |
3549 | local a = Instance.new("Part", Character) | |
3550 | a.Name = "Direction" | |
3551 | a.Anchored = true | |
3552 | a.BrickColor = bc("White") | |
3553 | a.Material = "Neon" | |
3554 | a.Transparency = 0 | |
3555 | a.Shape = "Cylinder" | |
3556 | a.CanCollide = false | |
3557 | local a2 = Instance.new("Part", Character) | |
3558 | a2.Name = "Direction" | |
3559 | a2.Anchored = true | |
3560 | a2.BrickColor = bc("New Yeller") | |
3561 | a2.Color = Color3.new(r / 255, g / 255, b / 255) | |
3562 | a2.Material = "Neon" | |
3563 | a2.Transparency = 0.5 | |
3564 | a2.Shape = "Cylinder" | |
3565 | a2.CanCollide = false | |
3566 | local ba = Instance.new("Part", Character) | |
3567 | ba.Name = "HitDirect" | |
3568 | ba.Anchored = true | |
3569 | ba.BrickColor = bc("Really black") | |
3570 | ba.Material = "Neon" | |
3571 | ba.Transparency = 1 | |
3572 | ba.CanCollide = false | |
3573 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3574 | local ignore = Character | |
3575 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3576 | a.BottomSurface = 10 | |
3577 | a.TopSurface = 10 | |
3578 | a2.BottomSurface = 10 | |
3579 | a2.TopSurface = 10 | |
3580 | local distance = (orb.CFrame.p - position).magnitude | |
3581 | a.Size = Vector3.new(distance, 1, 1) | |
3582 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3583 | a2.Size = Vector3.new(distance, 1, 1) | |
3584 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3585 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3586 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3587 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3588 | game:GetService("Debris"):AddItem(a, 20) | |
3589 | game:GetService("Debris"):AddItem(a2, 20) | |
3590 | game:GetService("Debris"):AddItem(ba, 20) | |
3591 | local msh = Instance.new("SpecialMesh", a) | |
3592 | msh.MeshType = "Cylinder" | |
3593 | msh.Scale = vt(1, 25, 25) | |
3594 | local msh2 = Instance.new("SpecialMesh", a2) | |
3595 | msh2.MeshType = "Cylinder" | |
3596 | msh2.Scale = vt(1, 30, 30) | |
3597 | for i = 0, 10, 0.1 do | |
3598 | swait() | |
3599 | CameraEnshaking(1, 5) | |
3600 | a2.Color = Color3.new(r / 255, g / 255, b / 255) | |
3601 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3602 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3603 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3604 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3605 | distance = (orb.CFrame.p - position).magnitude | |
3606 | if typrot == 1 then | |
3607 | rotation = rotation + 2.5 | |
3608 | elseif typrot == 2 then | |
3609 | rotation = rotation - 2.5 | |
3610 | end | |
3611 | RootPart.CFrame = FaceMouse()[1] | |
3612 | a.Size = Vector3.new(distance, 1, 1) | |
3613 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3614 | a2.Size = Vector3.new(distance, 1, 1) | |
3615 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3616 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3617 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3618 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3619 | msh.Scale = msh.Scale - vt(0, 0.25, 0.25) | |
3620 | msh2.Scale = msh2.Scale - vt(0, 0.3, 0.3) | |
3621 | 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) | |
3622 | 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) | |
3623 | MagniDamage(ba, 30, 500, 60000, 0, "Normal") | |
3624 | end | |
3625 | a:Destroy() | |
3626 | a2:Destroy() | |
3627 | ba:Destroy() | |
3628 | orb:Destroy() | |
3629 | orbe:Destroy() | |
3630 | attack = false | |
3631 | end | |
3632 | function UniversalSpark() | |
3633 | attack = true | |
3634 | local rngb = Instance.new("Part", char) | |
3635 | rngb.Anchored = true | |
3636 | rngb.BrickColor = origcolor | |
3637 | rngb.CanCollide = false | |
3638 | rngb.FormFactor = 3 | |
3639 | rngb.Name = "Ring" | |
3640 | rngb.Material = "Neon" | |
3641 | rngb.Size = Vector3.new(1, 0.05, 1) | |
3642 | rngb.Transparency = 1 | |
3643 | rngb.TopSurface = 0 | |
3644 | rngb.BottomSurface = 0 | |
3645 | local rngmb = Instance.new("SpecialMesh", rngb) | |
3646 | rngmb.MeshType = "Brick" | |
3647 | rngmb.Name = "SizeMesh" | |
3648 | rngmb.Scale = vt(0, 1, 0) | |
3649 | local orb = rngb:Clone() | |
3650 | orb.Parent = char | |
3651 | orb.Transparency = 0 | |
3652 | orb.BrickColor = BrickColor.new("White") | |
3653 | orb.Size = vt(1, 1, 1) | |
3654 | local orbmish = orb.SizeMesh | |
3655 | orbmish.Scale = vt(0, 0, 0) | |
3656 | orbmish.MeshType = "Sphere" | |
3657 | local orbe = rngb:Clone() | |
3658 | orbe.Parent = char | |
3659 | orbe.Transparency = 0.5 | |
3660 | orbe.BrickColor = BrickColor.new("New Yeller") | |
3661 | orbe.Size = vt(1, 1, 1) | |
3662 | local orbmish2 = orbe.SizeMesh | |
3663 | orbmish2.Scale = vt(0, 0, 0) | |
3664 | orbmish2.MeshType = "Sphere" | |
3665 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
3666 | rngb:Destroy() | |
3667 | for i = 0, 5, 0.1 do | |
3668 | swait() | |
3669 | if rainbowmode == true then | |
3670 | orbe.Color = Color3.new(r / 255, g / 255, b / 255) | |
3671 | end | |
3672 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
3673 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 11.5 | |
3674 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
3675 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
3676 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.3) | |
3677 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
3678 | 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)), 0.3) | |
3679 | 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)), 0.3) | |
3680 | RootPart.CFrame = FaceMouse()[1] | |
3681 | end | |
3682 | orbe.Transparency = 1 | |
3683 | orb.Transparency = 1 | |
3684 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 5 | |
3685 | CFuncs.Sound.Create("rbxassetid://294188875", char, 1, 1) | |
3686 | CFuncs.Sound.Create("rbxassetid://741272936", char, 0.75, 1) | |
3687 | CFuncs.Sound.Create("rbxassetid://1192402877", char, 1, 1) | |
3688 | CFuncs.Sound.Create("rbxassetid://1208650519", char, 0.75, 1) | |
3689 | CFuncs.Sound.Create("rbxassetid://164881112", char, 0.75, 1) | |
3690 | CFuncs.Sound.Create("rbxassetid://429123896", char, 1, 0.85) | |
3691 | CFuncs.Sound.Create("rbxassetid://164178927", char, 1, 1) | |
3692 | local xd = Instance.new("Sound", char) | |
3693 | xd.SoundId = "rbxassetid://445796828" | |
3694 | xd.Pitch = 0.75 | |
3695 | xd.Looped = true | |
3696 | xd.Volume = 1.25 | |
3697 | xd:Play() | |
3698 | local a = Instance.new("Part", Character) | |
3699 | a.Name = "Direction" | |
3700 | a.Anchored = true | |
3701 | a.BrickColor = bc("Alder") | |
3702 | a.Color = MAINRUINCOLOR.Color | |
3703 | a.Material = "Neon" | |
3704 | a.Transparency = 0.5 | |
3705 | a.Shape = "Cylinder" | |
3706 | a.CanCollide = false | |
3707 | local a2 = Instance.new("Part", Character) | |
3708 | a2.Name = "Direction" | |
3709 | a2.Anchored = true | |
3710 | a2.BrickColor = bc("New Yeller") | |
3711 | a2.Color = MAINRUINCOLOR.Color | |
3712 | a2.Material = "Neon" | |
3713 | a2.Transparency = 0.5 | |
3714 | a2.Shape = "Cylinder" | |
3715 | a2.CanCollide = false | |
3716 | local ba = Instance.new("Part", Character) | |
3717 | ba.Name = "HitDirect" | |
3718 | ba.Anchored = true | |
3719 | - | newTheme("rbxassetid://1564523997", 0, 1.1, 10) |
3719 | + | |
3720 | ba.Material = "Neon" | |
3721 | ba.Transparency = 1 | |
3722 | ba.CanCollide = false | |
3723 | local ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3724 | local ignore = Character | |
3725 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3726 | a.BottomSurface = 10 | |
3727 | a.TopSurface = 10 | |
3728 | a2.BottomSurface = 10 | |
3729 | a2.TopSurface = 10 | |
3730 | local distance = (orb.CFrame.p - position).magnitude | |
3731 | a.Size = Vector3.new(distance, 1, 1) | |
3732 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3733 | a2.Size = Vector3.new(distance, 1, 1) | |
3734 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3735 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3736 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3737 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3738 | game:GetService("Debris"):AddItem(a, 60) | |
3739 | game:GetService("Debris"):AddItem(a2, 60) | |
3740 | game:GetService("Debris"):AddItem(ba, 60) | |
3741 | local outerscale = 0 | |
3742 | local msh = Instance.new("SpecialMesh", a) | |
3743 | msh.MeshType = "Cylinder" | |
3744 | msh.Scale = vt(1, 0, 0) | |
3745 | local msh2 = Instance.new("SpecialMesh", a2) | |
3746 | msh2.MeshType = "Cylinder" | |
3747 | msh2.Scale = vt(1, 0, 0) | |
3748 | for i = 0, 2, 0.1 do | |
3749 | swait() | |
3750 | CameraEnshaking(1, 1) | |
3751 | msh2.Scale = msh2.Scale + vt(0, outerscale * 20, outerscale * 20) | |
3752 | msh.Scale = msh.Scale + vt(0, outerscale * 15, outerscale * 15) | |
3753 | outerscale = outerscale - 0.015 | |
3754 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3755 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3756 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3757 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3758 | distance = (orb.CFrame.p - position).magnitude | |
3759 | if typrot == 1 then | |
3760 | rotation = rotation + 2.5 | |
3761 | elseif typrot == 2 then | |
3762 | rotation = rotation - 2.5 | |
3763 | end | |
3764 | RootPart.CFrame = FaceMouse()[1] | |
3765 | a.Size = Vector3.new(distance, 1, 1) | |
3766 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3767 | a2.Size = Vector3.new(distance, 1, 1) | |
3768 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3769 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3770 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3771 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3772 | 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3773 | 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3774 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
3775 | end | |
3776 | for z = 0, 2 do | |
3777 | for i = 0, 4, 0.1 do | |
3778 | swait() | |
3779 | CameraEnshaking(1, 1) | |
3780 | msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale) | |
3781 | msh.Scale = msh.Scale - vt(0, outerscale, outerscale) | |
3782 | outerscale = outerscale + 0.015 | |
3783 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3784 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3785 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3786 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3787 | distance = (orb.CFrame.p - position).magnitude | |
3788 | if typrot == 1 then | |
3789 | rotation = rotation + 2.5 | |
3790 | elseif typrot == 2 then | |
3791 | rotation = rotation - 2.5 | |
3792 | end | |
3793 | RootPart.CFrame = FaceMouse()[1] | |
3794 | a.Size = Vector3.new(distance, 1, 1) | |
3795 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3796 | a2.Size = Vector3.new(distance, 1, 1) | |
3797 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3798 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3799 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3800 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3801 | 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3802 | 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3803 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
3804 | end | |
3805 | for i = 0, 4, 0.1 do | |
3806 | swait() | |
3807 | CameraEnshaking(1, 1) | |
3808 | msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale) | |
3809 | msh.Scale = msh.Scale - vt(0, outerscale, outerscale) | |
3810 | outerscale = outerscale - 0.015 | |
3811 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3812 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3813 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3814 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3815 | distance = (orb.CFrame.p - position).magnitude | |
3816 | if typrot == 1 then | |
3817 | rotation = rotation + 2.5 | |
3818 | elseif typrot == 2 then | |
3819 | rotation = rotation - 2.5 | |
3820 | end | |
3821 | RootPart.CFrame = FaceMouse()[1] | |
3822 | a.Size = Vector3.new(distance, 1, 1) | |
3823 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3824 | a2.Size = Vector3.new(distance, 1, 1) | |
3825 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3826 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3827 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3828 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3829 | 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3830 | 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3831 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
3832 | end | |
3833 | end | |
3834 | for i = 0, 4, 0.1 do | |
3835 | swait() | |
3836 | CameraEnshaking(1, 1) | |
3837 | msh2.Scale = msh2.Scale + vt(0, outerscale, outerscale) | |
3838 | msh.Scale = msh.Scale - vt(0, outerscale, outerscale) | |
3839 | xd.Volume = xd.Volume - 0.025 | |
3840 | a.Transparency = a.Transparency + 0.025 | |
3841 | a2.Transparency = a2.Transparency + 0.025 | |
3842 | outerscale = outerscale - 0.015 | |
3843 | orb.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3844 | orbe.CFrame = root.CFrame * CFrame.new(0, 0.5, 0) + root.CFrame.lookVector * 4 | |
3845 | ray = Ray.new(orb.CFrame.p, (mouse.Hit.p - orb.CFrame.p).unit * 1000) | |
3846 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
3847 | distance = (orb.CFrame.p - position).magnitude | |
3848 | if typrot == 1 then | |
3849 | rotation = rotation + 2.5 | |
3850 | elseif typrot == 2 then | |
3851 | rotation = rotation - 2.5 | |
3852 | end | |
3853 | RootPart.CFrame = FaceMouse()[1] | |
3854 | a.Size = Vector3.new(distance, 1, 1) | |
3855 | a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3856 | a2.Size = Vector3.new(distance, 1, 1) | |
3857 | a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
3858 | ba.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance) | |
3859 | a.CFrame = a.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3860 | a2.CFrame = a2.CFrame * CFrame.Angles(0, math.rad(90), 0) | |
3861 | 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3862 | 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))), 75, 75, 225, -0.75, MAINRUINCOLOR, 0) | |
3863 | MagniDamage(ba, 100, 500, 60000, 0, "Normal") | |
3864 | end | |
3865 | xd:Destroy() | |
3866 | a:Destroy() | |
3867 | a2:Destroy() | |
3868 | ba:Destroy() | |
3869 | orb:Destroy() | |
3870 | orbe:Destroy() | |
3871 | attack = false | |
3872 | end | |
3873 | function resetmode() | |
3874 | rainbowmode = false | |
3875 | chaosmode = false | |
3876 | RecolorTextAndRename("Micheal......?", Color3.new(0, 0, 0), Color3.new(0, 0, 0.4)) | |
3877 | ModeOfGlitch = 1 | |
3878 | storehumanoidWS = 16 | |
3879 | for i, v in pairs(mw2:GetChildren()) do | |
3880 | if v:IsA("Part") then | |
3881 | v.BrickColor = BrickColor.new("Really black") | |
3882 | v.Material = "Neon" | |
3883 | end | |
3884 | end | |
3885 | for i, v in pairs(mw1:GetChildren()) do | |
3886 | if v:IsA("Part") then | |
3887 | v.Transparency = 1 | |
3888 | - | RecolorTextAndRename("Serene Derpz", Color3.new(1, 1, 1), Color3.new(0, 1, 1)) |
3888 | + | |
3889 | - | newTheme("rbxassetid://621367124", 20.25, 1.1, 1) |
3889 | + | |
3890 | - | MAINRUINCOLOR = BrickColor.new("Deep blue") |
3890 | + | |
3891 | end | |
3892 | MAINRUINCOLOR = BrickColor.new("Really black") | |
3893 | hum.WalkSpeed = 16 | |
3894 | newTheme("rbxassetid://1564523997", 0, 1.1, 1) | |
3895 | for i, v in pairs(m:GetChildren()) do | |
3896 | if v:IsA("Part") then | |
3897 | v.BrickColor = BrickColor.new("Really black") | |
3898 | v.Material = "Glass" | |
3899 | end | |
3900 | - | v.BrickColor = BrickColor.new("Toothpaste") |
3900 | + | |
3901 | for i, v in pairs(m2:GetChildren()) do | |
3902 | if v:IsA("Part") then | |
3903 | v.BrickColor = BrickColor.new("Crimson") | |
3904 | v.Material = "Granite" | |
3905 | end | |
3906 | end | |
3907 | for i, v in pairs(m3:GetChildren()) do | |
3908 | if v:IsA("Part") then | |
3909 | v.BrickColor = BrickColor.new("Crimson") | |
3910 | v.Material = "Neon" | |
3911 | end | |
3912 | end | |
3913 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
3914 | if v:IsA("Part") then | |
3915 | v.Transparency = 0.5 | |
3916 | v.BrickColor = BrickColor.new("Crimson") | |
3917 | v.Material = "Neon" | |
3918 | end | |
3919 | end | |
3920 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
3921 | if v:IsA("Part") then | |
3922 | v.Transparency = 1 | |
3923 | v.BrickColor = BrickColor.new("Crimson") | |
3924 | v.Material = "Neon" | |
3925 | end | |
3926 | end | |
3927 | end | |
3928 | function attackone() | |
3929 | attack = true | |
3930 | for i = 0, 1, 0.1 do | |
3931 | swait() | |
3932 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.2) | |
3933 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(40)), 0.2) | |
3934 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
3935 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.2) | |
3936 | 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)), 0.2) | |
3937 | 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)), 0.2) | |
3938 | end | |
3939 | - | if k == "e" and attack == false and ModeOfGlitch ~= 3 then |
3939 | + | |
3940 | local hitb = Instance.new("Part", char) | |
3941 | hitb.Anchored = true | |
3942 | hitb.CanCollide = false | |
3943 | hitb.FormFactor = 3 | |
3944 | hitb.Name = "Ring" | |
3945 | - | RecolorTextAndRename("CONTROLLED_DERPZ", Color3.new(0.4, 0, 0), Color3.new(0, 0, 0.4)) |
3945 | + | |
3946 | - | newTheme("rbxassetid://2074863720", 58.15, 1.2,2) |
3946 | + | |
3947 | hitb.Transparency = 1 | |
3948 | hitb.TopSurface = 0 | |
3949 | hitb.BottomSurface = 0 | |
3950 | hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2 | |
3951 | MagniDamage(hitb, 3, 10, 30, 0, "Normal") | |
3952 | hitb:Destroy() | |
3953 | for i = 0, 1, 0.1 do | |
3954 | swait() | |
3955 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(70)), 0.4) | |
3956 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-70)), 0.4) | |
3957 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(70)), 0.4) | |
3958 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.4) | |
3959 | 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)), 0.4) | |
3960 | 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)), 0.4) | |
3961 | end | |
3962 | attack = false | |
3963 | end | |
3964 | function attacktwo() | |
3965 | attack = true | |
3966 | for i = 0, 1, 0.1 do | |
3967 | swait() | |
3968 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(20), math.rad(0), math.rad(40)), 0.2) | |
3969 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-40)), 0.2) | |
3970 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
3971 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(40)), 0.2) | |
3972 | 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)), 0.2) | |
3973 | 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)), 0.2) | |
3974 | end | |
3975 | CFuncs.Sound.Create("rbxassetid://200632136", root, 1, 1) | |
3976 | local hitb = Instance.new("Part", char) | |
3977 | hitb.Anchored = true | |
3978 | hitb.CanCollide = false | |
3979 | hitb.FormFactor = 3 | |
3980 | hitb.Name = "Ring" | |
3981 | hitb.Material = "Neon" | |
3982 | hitb.Size = Vector3.new(1, 1, 1) | |
3983 | hitb.Transparency = 1 | |
3984 | hitb.TopSurface = 0 | |
3985 | hitb.BottomSurface = 0 | |
3986 | hitb.CFrame = root.CFrame + root.CFrame.lookVector * 2 | |
3987 | MagniDamage(hitb, 3, 10, 30, 0, "Normal") | |
3988 | hitb:Destroy() | |
3989 | for i = 0, 1, 0.1 do | |
3990 | swait() | |
3991 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(-70)), 0.4) | |
3992 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(70)), 0.4) | |
3993 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-40)), 0.4) | |
3994 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-70)), 0.4) | |
3995 | 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)), 0.4) | |
3996 | 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)), 0.4) | |
3997 | end | |
3998 | attack = false | |
3999 | end | |
4000 | function attackthree() | |
4001 | attack = true | |
4002 | - | RecolorTextAndRename("HATEFUL / INSANE DERPZ", Color3.new(0, 0, 0), BrickColor.random().Color) |
4002 | + | |
4003 | swait() | |
4004 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(80)), 0.3) | |
4005 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(-80)), 0.3) | |
4006 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(80)), 0.3) | |
4007 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3) | |
4008 | 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)), 0.3) | |
4009 | 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)), 0.3) | |
4010 | end | |
4011 | local distlook = 5 | |
4012 | for i = 0, 4 do | |
4013 | swait(2) | |
4014 | CameraEnshaking(2, 3) | |
4015 | local hite = Instance.new("Part", char) | |
4016 | hite.Anchored = true | |
4017 | hite.CanCollide = false | |
4018 | hite.FormFactor = 3 | |
4019 | hite.Name = "Ring" | |
4020 | hite.Material = "Neon" | |
4021 | hite.Size = Vector3.new(1, 1, 1) | |
4022 | hite.Transparency = 1 | |
4023 | hite.TopSurface = 0 | |
4024 | hite.BottomSurface = 0 | |
4025 | hite.CFrame = root.CFrame + root.CFrame.lookVector * distlook | |
4026 | sphere(3, "Add", hite.CFrame, vt(0, 0, 0), 0.15, MAINRUINCOLOR) | |
4027 | sphere(6, "Add", hite.CFrame, vt(0, 0, 0), 0.3, MAINRUINCOLOR) | |
4028 | MagniDamage(hite, 10, 15, 35, 0, "Normal") | |
4029 | for i = 0, 2 do | |
4030 | 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) | |
4031 | 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) | |
4032 | 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) | |
4033 | end | |
4034 | CFuncs.Sound.Create("rbxassetid://183763506", hite, 2.5, 1) | |
4035 | CFuncs.Sound.Create("rbxassetid://178452221", hite, 0.25, 0.6) | |
4036 | game:GetService("Debris"):AddItem(hite, 5) | |
4037 | distlook = distlook + 10 | |
4038 | end | |
4039 | attack = false | |
4040 | end | |
4041 | local attacktype = 1 | |
4042 | mouse.Button1Down:connect(function() | |
4043 | if attack == false and attacktype == 1 then | |
4044 | attacktype = 2 | |
4045 | attackone() | |
4046 | elseif attack == false and attacktype == 2 then | |
4047 | attacktype = 3 | |
4048 | attacktwo() | |
4049 | elseif attack == false and attacktype == 3 then | |
4050 | attacktype = 1 | |
4051 | attackthree() | |
4052 | elseif attack == false and attacktype == 4 then | |
4053 | attacktype = 1 | |
4054 | end | |
4055 | end) | |
4056 | mouse.KeyDown:connect(function(k) | |
4057 | if k == "q" and attack == false and ModeOfGlitch ~= 2 then | |
4058 | ModeOfGlitch = 2 | |
4059 | storehumanoidWS = 16 | |
4060 | - | RecolorTextAndRename("Upset & Gloomy Derpz", Color3.new(0, 0, 0.1), Color3.new(1, 1, 1)) |
4060 | + | |
4061 | rainbowmode = false | |
4062 | chaosmode = false | |
4063 | RecolorTextAndRename("Dark Micheal", Color3.new(0, 0, 0), Color3.new(0, 0, 0)) | |
4064 | chatfunc("Darkness......", BrickColor.random().Color) | |
4065 | newTheme("rbxassetid://733456981", 1, 1, 1) | |
4066 | MAINRUINCOLOR = BrickColor.new("Really black") | |
4067 | for i, v in pairs(mw2:GetChildren()) do | |
4068 | if v:IsA("Part") then | |
4069 | v.BrickColor = MAINRUINCOLOR | |
4070 | v.Material = "Neon" | |
4071 | end | |
4072 | end | |
4073 | for i, v in pairs(mw1:GetChildren()) do | |
4074 | if v:IsA("Part") then | |
4075 | v.Transparency = 0.5 | |
4076 | v.BrickColor = BrickColor.new("Really black") | |
4077 | v.Material = "Neon" | |
4078 | end | |
4079 | end | |
4080 | for i, v in pairs(m:GetChildren()) do | |
4081 | if v:IsA("Part") then | |
4082 | v.BrickColor = BrickColor.new("Really black") | |
4083 | v.Material = "Ice" | |
4084 | end | |
4085 | end | |
4086 | for i, v in pairs(m2:GetChildren()) do | |
4087 | if v:IsA("Part") then | |
4088 | v.BrickColor = BrickColor.new("Really black") | |
4089 | v.Material = "Glass" | |
4090 | end | |
4091 | end | |
4092 | for i, v in pairs(m3:GetChildren()) do | |
4093 | if v:IsA("Part") then | |
4094 | v.BrickColor = BrickColor.new("Really black") | |
4095 | v.Material = "Neon" | |
4096 | end | |
4097 | end | |
4098 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
4099 | if v:IsA("Part") then | |
4100 | v.Transparency = 1 | |
4101 | v.BrickColor = BrickColor.new("White") | |
4102 | v.Material = "Neon" | |
4103 | end | |
4104 | end | |
4105 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
4106 | if v:IsA("Part") then | |
4107 | v.Transparency = 1 | |
4108 | v.BrickColor = BrickColor.new("Really black") | |
4109 | v.Material = "Neon" | |
4110 | end | |
4111 | end | |
4112 | elseif k == "q" and attack == false and ModeOfGlitch == 2 then | |
4113 | resetmode() | |
4114 | end | |
4115 | if k == "m" and attack == false and ModeOfGlitch == 2 then | |
4116 | ModeOfGlitch = solitude | |
4117 | storehumanoidWS = 16 | |
4118 | - | RecolorTextAndRename("Fair Derpz", Color3.new(0, 0, 0.1), Color3.new(0, 0, 1)) |
4118 | + | |
4119 | rainbowmode = false | |
4120 | chaosmode = false | |
4121 | RecolorTextAndRename("Solitude", Color3.new(0, 0, 0), Color3.new(0, 0, 0)) | |
4122 | chatfunc("Good flashbacks not right?", BrickColor.random().Color) | |
4123 | newTheme("rbxassetid://723652641", 1, 1, 1) | |
4124 | MAINRUINCOLOR = BrickColor.new("Really black") | |
4125 | for i, v in pairs(mw2:GetChildren()) do | |
4126 | if v:IsA("Part") then | |
4127 | v.BrickColor = MAINRUINCOLOR | |
4128 | v.Material = "Neon" | |
4129 | end | |
4130 | end | |
4131 | for i, v in pairs(mw1:GetChildren()) do | |
4132 | if v:IsA("Part") then | |
4133 | v.Transparency = 0 | |
4134 | v.BrickColor = MAINRUINCOLOR | |
4135 | v.Material = "Neon" | |
4136 | end | |
4137 | end | |
4138 | for i, v in pairs(m:GetChildren()) do | |
4139 | if v:IsA("Part") then | |
4140 | v.Color = Color3.new(0, 0, 0) | |
4141 | v.Material = "Neon" | |
4142 | end | |
4143 | end | |
4144 | for i, v in pairs(m2:GetChildren()) do | |
4145 | if v:IsA("Part") then | |
4146 | v.Color = Color3.new(0, 0, 0) | |
4147 | v.Material = "Neon" | |
4148 | end | |
4149 | end | |
4150 | for i, v in pairs(m3:GetChildren()) do | |
4151 | if v:IsA("Part") then | |
4152 | v.Color = Color3.new(0, 0, 0) | |
4153 | v.Material = "Neon" | |
4154 | end | |
4155 | end | |
4156 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
4157 | if v:IsA("Part") then | |
4158 | v.Transparency = 0 | |
4159 | v.Color = Color3.new(0, 0, 0) | |
4160 | v.Material = "Neon" | |
4161 | end | |
4162 | end | |
4163 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
4164 | if v:IsA("Part") then | |
4165 | v.Transparency = 0 | |
4166 | v.Color = Color3.new(0, 0, 0) | |
4167 | v.Material = "Neon" | |
4168 | end | |
4169 | end | |
4170 | elseif k == "m" and attack == false and ModeOfGlitch == solitude then | |
4171 | - | if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then |
4171 | + | |
4172 | end | |
4173 | ||
4174 | if k == "e" and attack == false and ModeOfGlitch ~= 3 then | |
4175 | ModeOfGlitch = 3 | |
4176 | storehumanoidWS = 16 | |
4177 | - | RecolorTextAndRename("ULTIMATE Derpz", Color3.new(1, 1, 1), Color3.new(1, 1, 1)) |
4177 | + | |
4178 | rainbowmode = false | |
4179 | chaosmode = false | |
4180 | RecolorTextAndRename("CHAOS MAKER MICHEAL", Color3.new(0.4, 0, 0), Color3.new(0, 0, 0.4)) | |
4181 | newTheme("rbxassetid://2525700576", 1.1, 1.1) | |
4182 | MAINRUINCOLOR = BrickColor.new("Really black") | |
4183 | for i, v in pairs(mw2:GetChildren()) do | |
4184 | if v:IsA("Part") then | |
4185 | v.BrickColor = MAINRUINCOLOR | |
4186 | v.Material = "Neon" | |
4187 | end | |
4188 | end | |
4189 | for i, v in pairs(mw1:GetChildren()) do | |
4190 | if v:IsA("Part") then | |
4191 | v.Transparency = 1 | |
4192 | v.BrickColor = MAINRUINCOLOR | |
4193 | v.Material = "Neon" | |
4194 | end | |
4195 | end | |
4196 | for i, v in pairs(m:GetChildren()) do | |
4197 | if v:IsA("Part") then | |
4198 | v.BrickColor = BrickColor.new("Black") | |
4199 | v.Material = "Ice" | |
4200 | end | |
4201 | end | |
4202 | for i, v in pairs(m2:GetChildren()) do | |
4203 | if v:IsA("Part") then | |
4204 | v.BrickColor = BrickColor.new("Navy blue") | |
4205 | v.Material = "Glass" | |
4206 | end | |
4207 | end | |
4208 | for i, v in pairs(m3:GetChildren()) do | |
4209 | if v:IsA("Part") then | |
4210 | v.BrickColor = BrickColor.new("Navy blue") | |
4211 | v.Material = "Neon" | |
4212 | end | |
4213 | end | |
4214 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
4215 | if v:IsA("Part") then | |
4216 | v.Transparency = 0.4 | |
4217 | v.BrickColor = BrickColor.new("Really red") | |
4218 | v.Material = "Neon" | |
4219 | end | |
4220 | end | |
4221 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
4222 | if v:IsA("Part") then | |
4223 | v.Transparency = 1 | |
4224 | v.BrickColor = BrickColor.new("White") | |
4225 | v.Material = "Neon" | |
4226 | end | |
4227 | end | |
4228 | elseif k == "e" and attack == false and ModeOfGlitch == 3 then | |
4229 | resetmode() | |
4230 | end | |
4231 | if k == "r" and attack == false and ModeOfGlitch ~= 4 then | |
4232 | ModeOfGlitch = 4 | |
4233 | storehumanoidWS = 16 | |
4234 | - | RecolorTextAndRename("TRUE ULTIMATE DERPZ", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1)) |
4234 | + | |
4235 | rainbowmode = false | |
4236 | chaosmode = true | |
4237 | RecolorTextAndRename("INSANE MICHEAL", Color3.new(0, 0, 0), BrickColor.random().Color) | |
4238 | newTheme("rbxassetid://623662713", 0, 0.8, 10) | |
4239 | chatfunc("No.....", BrickColor.random().Color) | |
4240 | MAINRUINCOLOR = BrickColor.new("Really red") | |
4241 | for i, v in pairs(mw2:GetChildren()) do | |
4242 | if v:IsA("Part") then | |
4243 | v.BrickColor = MAINRUINCOLOR | |
4244 | v.Material = "Neon" | |
4245 | end | |
4246 | end | |
4247 | for i, v in pairs(mw1:GetChildren()) do | |
4248 | if v:IsA("Part") then | |
4249 | v.Transparency = 0.75 | |
4250 | v.BrickColor = BrickColor.random() | |
4251 | v.Material = "Neon" | |
4252 | end | |
4253 | end | |
4254 | for i, v in pairs(m:GetChildren()) do | |
4255 | if v:IsA("Part") then | |
4256 | v.BrickColor = BrickColor.new("Really blue") | |
4257 | v.Material = "Neon" | |
4258 | end | |
4259 | end | |
4260 | for i, v in pairs(m2:GetChildren()) do | |
4261 | if v:IsA("Part") then | |
4262 | v.BrickColor = BrickColor.random() | |
4263 | v.Material = "Neon" | |
4264 | end | |
4265 | end | |
4266 | for i, v in pairs(m3:GetChildren()) do | |
4267 | if v:IsA("Part") then | |
4268 | v.BrickColor = BrickColor.new("Really red") | |
4269 | v.Material = "Neon" | |
4270 | end | |
4271 | end | |
4272 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
4273 | if v:IsA("Part") then | |
4274 | v.Transparency = 0.6 | |
4275 | v.BrickColor = BrickColor.new("Really blue") | |
4276 | v.Material = "Neon" | |
4277 | end | |
4278 | end | |
4279 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
4280 | if v:IsA("Part") then | |
4281 | v.Transparency = 0.6 | |
4282 | v.BrickColor = BrickColor.new("Really red") | |
4283 | v.Material = "Neon" | |
4284 | end | |
4285 | end | |
4286 | elseif k == "r" and attack == false and ModeOfGlitch == 4 then | |
4287 | resetmode() | |
4288 | end | |
4289 | if k == "t" and attack == false and ModeOfGlitch ~= 5 then | |
4290 | ModeOfGlitch = 5 | |
4291 | ||
4292 | storehumanoidWS = 16 | |
4293 | hum.WalkSpeed = 16 | |
4294 | rainbowmode = false | |
4295 | chaosmode = false | |
4296 | RecolorTextAndRename("Killed Micheal", Color3.new(0, 0, 0.1), Color3.new(1, 1, 1)) | |
4297 | - | PureBomb() |
4297 | + | |
4298 | ModeOfGlitch = 1 | |
4299 | MAINRUINCOLOR = BrickColor.new("Really red") | |
4300 | for i, v in pairs(mw2:GetChildren()) do | |
4301 | if v:IsA("Part") then | |
4302 | v.BrickColor = MAINRUINCOLOR | |
4303 | v.Material = "Neon" | |
4304 | end | |
4305 | end | |
4306 | for i, v in pairs(mw1:GetChildren()) do | |
4307 | if v:IsA("Part") then | |
4308 | v.Transparency = 0 | |
4309 | v.BrickColor = MAINRUINCOLOR | |
4310 | v.Material = "Neon" | |
4311 | end | |
4312 | end | |
4313 | for i, v in pairs(m:GetChildren()) do | |
4314 | if v:IsA("Part") then | |
4315 | v.BrickColor = BrickColor.new("Really black") | |
4316 | v.Material = "Ice" | |
4317 | end | |
4318 | end | |
4319 | for i, v in pairs(m2:GetChildren()) do | |
4320 | if v:IsA("Part") then | |
4321 | v.BrickColor = BrickColor.new("Really black") | |
4322 | v.Material = "Ice" | |
4323 | end | |
4324 | end | |
4325 | for i, v in pairs(m3:GetChildren()) do | |
4326 | if v:IsA("Part") then | |
4327 | v.BrickColor = BrickColor.new("Really black") | |
4328 | v.Material = "Neon" | |
4329 | end | |
4330 | end | |
4331 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
4332 | if v:IsA("Part") then | |
4333 | v.Transparency = 0.9 | |
4334 | v.BrickColor = BrickColor.new("Really black") | |
4335 | v.Material = "Neon" | |
4336 | end | |
4337 | end | |
4338 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
4339 | if v:IsA("Part") then | |
4340 | v.Transparency = 0.9 | |
4341 | v.BrickColor = BrickColor.new("White") | |
4342 | v.Material = "Neon" | |
4343 | end | |
4344 | end | |
4345 | elseif k == "t" and attack == false and ModeOfGlitch == 5 then | |
4346 | resetmode() | |
4347 | end | |
4348 | - | RecolorTextAndRename("HATEFUL DERPZ", Color3.new(0, 0, 0), BrickColor.random().Color) |
4348 | + | |
4349 | ModeOfGlitch = 6 | |
4350 | storehumanoidWS = 75 | |
4351 | hum.WalkSpeed = 75 | |
4352 | rainbowmode = false | |
4353 | chaosmode = false | |
4354 | RecolorTextAndRename("Fair Micheal", Color3.new(0, 0, 0.1), Color3.new(0, 0, 1)) | |
4355 | newTheme("rbxassetid://1146120545", 0, 1.2, 1) | |
4356 | MAINRUINCOLOR = BrickColor.new("Really black") | |
4357 | for i, v in pairs(mw2:GetChildren()) do | |
4358 | if v:IsA("Part") then | |
4359 | v.BrickColor = BrickColor.new("Navy blue") | |
4360 | v.Material = "Neon" | |
4361 | end | |
4362 | end | |
4363 | for i, v in pairs(mw1:GetChildren()) do | |
4364 | if v:IsA("Part") then | |
4365 | v.Transparency = 0 | |
4366 | v.BrickColor = BrickColor.new("Deep blue") | |
4367 | v.Material = "Neon" | |
4368 | end | |
4369 | end | |
4370 | for i, v in pairs(m:GetChildren()) do | |
4371 | if v:IsA("Part") then | |
4372 | v.BrickColor = BrickColor.new("Navy blue") | |
4373 | - | RecolorTextAndRename("Ultimate Derpz", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500)) |
4373 | + | |
4374 | end | |
4375 | end | |
4376 | for i, v in pairs(m2:GetChildren()) do | |
4377 | if v:IsA("Part") then | |
4378 | v.BrickColor = BrickColor.new("Deep blue") | |
4379 | v.Material = "Ice" | |
4380 | end | |
4381 | end | |
4382 | for i, v in pairs(m3:GetChildren()) do | |
4383 | if v:IsA("Part") then | |
4384 | v.BrickColor = BrickColor.new("Navy blue") | |
4385 | v.Material = "Neon" | |
4386 | end | |
4387 | end | |
4388 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
4389 | if v:IsA("Part") then | |
4390 | v.Transparency = 0.7 | |
4391 | v.BrickColor = BrickColor.new("Deep blue") | |
4392 | v.Material = "Neon" | |
4393 | end | |
4394 | end | |
4395 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
4396 | if v:IsA("Part") then | |
4397 | v.Transparency = 0.7 | |
4398 | v.BrickColor = BrickColor.new("Navy blue") | |
4399 | v.Material = "Neon" | |
4400 | end | |
4401 | end | |
4402 | ||
4403 | ||
4404 | elseif k == "y" and attack == false and ModeOfGlitch == 6 then | |
4405 | resetmode() | |
4406 | end | |
4407 | if k == "m" and attack == false and ModeOfGlitch == 6 then | |
4408 | attack = true | |
4409 | hum.WalkSpeed = 0 | |
4410 | newTheme("rbxassetid://1369263130",0,1,1.25) | |
4411 | chatfunc("HA HA HA HA HA...Ha ha ha ha",MAINRUINCOLOR.Color,"Inverted","Arcade",2) | |
4412 | for i = 0, 14, .1 do | |
4413 | swait() | |
4414 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
4415 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
4416 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
4417 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(-25),0),.1) | |
4418 | LW.C0 = aclerp(LW.C0,CFrame.new(-1.15619826, 0.410764694, 0.308931053, 0.862226903, -0.506325424, 0.0141164251, 0.451236814, 0.780479908, 0.432708263, -0.230108798, -0.366722882, 0.901423633),Alpha) | |
4419 | RW.C0 = aclerp(RW.C0,CFrame.new(1.48984146, 0.433965802, -0.137121022, 0.754978359, -0.655723989, -0.00581999123, -0.244246826, -0.272958666, -0.930503726, 0.608564973, 0.703931689, -0.366236359),Alpha) | |
4420 | end | |
4421 | chatfunc("You know what can be more funny?",MAINRUINCOLOR.Color,"Inverted","Arcade",2) | |
4422 | for i = 0, 12, .1 do | |
4423 | swait() | |
4424 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
4425 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
4426 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
4427 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(0,math.rad(25),0),.1) | |
4428 | LW.C0 = aclerp(LW.C0,CFrame.new(-1.25402236, 0.431008309, 0.117451549, 0.884577334, 0.388638854, 0.257842481, 0.312682211, -0.0839776248, -0.946138322, -0.346053123, 0.917555273, -0.195805177),Alpha) | |
4429 | RW.C0 = aclerp(RW.C0,CFrame.new(1.22954941, 0.384757012, 0.168471783, 0.915931404, 0.401068091, 0.0146304797, -0.379809946, 0.85445267, 0.354478538, 0.129668966, -0.330234885, 0.934949815),Alpha) | |
4430 | end | |
4431 | chatfunc("YOUR FACE!",MAINRUINCOLOR.Color,"Inverted","Arcade",2) | |
4432 | for i = 0, 16, .1 do | |
4433 | swait() | |
4434 | RH.C0=clerp(RH.C0,cf(1,-1-.2*math.cos(sine/16),0)*angles(0,math.rad(90),0),.1) | |
4435 | LH.C0=clerp(LH.C0,cf(-1,-1-.2*math.cos(sine/16),.05)*angles(0,math.rad(15),0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.1) | |
4436 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0+.2*math.cos(sine/16)),.1) | |
4437 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(25),0,0),.1) | |
4438 | LW.C0 = aclerp(LW.C0,CFrame.new(-1.32246351, 0.253595859, 0.199904889, 0.862232804, -0.506315708, 0.0141151678, 0.451225579, 0.780480325, 0.432719588, -0.230109304, -0.366735876, 0.90141809),Alpha) | |
4439 | RW.C0 = aclerp(RW.C0,CFrame.new(1.33073413, 0.290129036, 0.183640629, 0.915928423, 0.401075214, 0.0146333817, -0.379820168, 0.854456067, 0.354459614, 0.129661351, -0.330217659, 0.934956849),Alpha) | |
4440 | end | |
4441 | attack = false | |
4442 | ModeOfGlitch = 420 | |
4443 | storehumanoidWS = 12 | |
4444 | hum.WalkSpeed = 12 | |
4445 | rainbowmode = false | |
4446 | chaosmode = false | |
4447 | Error = false | |
4448 | RecolorTextAndRename("DArkNeSS",Color3.new(0,0,0),Color3.new(1,1,1),"Antique") | |
4449 | MAINRUINCOLOR = BrickColor.new("Really black") | |
4450 | for i, v in pairs(mw2:GetChildren()) do | |
4451 | if v:IsA("Part") then | |
4452 | v.BrickColor = BrickColor.new("Navy blue") | |
4453 | v.Material = "Neon" | |
4454 | end | |
4455 | end | |
4456 | for i, v in pairs(mw1:GetChildren()) do | |
4457 | if v:IsA("Part") then | |
4458 | v.Transparency = 0 | |
4459 | v.BrickColor = BrickColor.new("Deep blue") | |
4460 | v.Material = "Neon" | |
4461 | end | |
4462 | end | |
4463 | for i, v in pairs(m:GetChildren()) do | |
4464 | if v:IsA("Part") then | |
4465 | v.BrickColor = BrickColor.new("Navy blue") | |
4466 | - | elseif ModeOfGlitch == 3 then |
4466 | + | |
4467 | end | |
4468 | end | |
4469 | for i, v in pairs(m2:GetChildren()) do | |
4470 | if v:IsA("Part") then | |
4471 | v.BrickColor = BrickColor.new("Deep blue") | |
4472 | v.Material = "Ice" | |
4473 | end | |
4474 | end | |
4475 | for i, v in pairs(m3:GetChildren()) do | |
4476 | if v:IsA("Part") then | |
4477 | v.BrickColor = BrickColor.new("Navy blue") | |
4478 | v.Material = "Neon" | |
4479 | end | |
4480 | end | |
4481 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
4482 | if v:IsA("Part") then | |
4483 | v.Transparency = 0.7 | |
4484 | v.BrickColor = BrickColor.new("Deep blue") | |
4485 | v.Material = "Neon" | |
4486 | end | |
4487 | end | |
4488 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
4489 | if v:IsA("Part") then | |
4490 | v.Transparency = 0.7 | |
4491 | v.BrickColor = BrickColor.new("Navy blue") | |
4492 | v.Material = "Neon" | |
4493 | end | |
4494 | end | |
4495 | if k == "u" and attack == false and ModeOfGlitch ~= 6127843 then | |
4496 | ModeOfGlitch = 6127843 | |
4497 | storehumanoidWS = 50 | |
4498 | hum.WalkSpeed = 50 | |
4499 | rainbowmode = true | |
4500 | chaosmode = false | |
4501 | RecolorTextAndRename("ULTIMATE MICHEAL", Color3.new(1, 1, 1), Color3.new(1, 1, 1)) | |
4502 | newTheme("rbxassetid://1504604335", 0, 1.25, 1) | |
4503 | MAINRUINCOLOR = BrickColor.new("White") | |
4504 | for i, v in pairs(mw2:GetChildren()) do | |
4505 | if v:IsA("Part") then | |
4506 | v.BrickColor = MAINRUINCOLOR | |
4507 | v.Material = "Neon" | |
4508 | end | |
4509 | end | |
4510 | for i, v in pairs(mw1:GetChildren()) do | |
4511 | if v:IsA("Part") then | |
4512 | v.Transparency = 0 | |
4513 | v.BrickColor = MAINRUINCOLOR | |
4514 | v.Material = "Neon" | |
4515 | end | |
4516 | end | |
4517 | for i, v in pairs(m:GetChildren()) do | |
4518 | if v:IsA("Part") then | |
4519 | v.BrickColor = BrickColor.new("White") | |
4520 | v.Material = "Neon" | |
4521 | end | |
4522 | end | |
4523 | for i, v in pairs(m2:GetChildren()) do | |
4524 | if v:IsA("Part") then | |
4525 | v.BrickColor = BrickColor.new("White") | |
4526 | v.Material = "Neon" | |
4527 | end | |
4528 | end | |
4529 | for i, v in pairs(m3:GetChildren()) do | |
4530 | if v:IsA("Part") then | |
4531 | v.BrickColor = BrickColor.new("White") | |
4532 | v.Material = "Neon" | |
4533 | end | |
4534 | end | |
4535 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
4536 | if v:IsA("Part") then | |
4537 | v.Transparency = 1 | |
4538 | v.BrickColor = BrickColor.new("White") | |
4539 | v.Material = "Neon" | |
4540 | end | |
4541 | end | |
4542 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
4543 | if v:IsA("Part") then | |
4544 | v.Transparency = 1 | |
4545 | v.BrickColor = BrickColor.new("White") | |
4546 | v.Material = "Neon" | |
4547 | end | |
4548 | end | |
4549 | elseif k == "u" and attack == false and ModeOfGlitch == 6127843 then | |
4550 | resetmode() | |
4551 | end | |
4552 | if k == "p" and attack == false and ModeOfGlitch ~= 1000000 then | |
4553 | ModeOfGlitch = 1000000 | |
4554 | storehumanoidWS = 100 | |
4555 | hum.WalkSpeed = 100 | |
4556 | rainbowmode = false | |
4557 | chaosmode = false | |
4558 | RecolorTextAndRename("TRUE ULTIMATE MICHEAL", Color3.new(0.25, 0, 1), Color3.new(0.5, 0, 1)) | |
4559 | newTheme("rbxassetid://1994963968", 0, 1.2, 1) | |
4560 | MAINRUINCOLOR = BrickColor.new("Navy blue") | |
4561 | for i, v in pairs(mw2:GetChildren()) do | |
4562 | if v:IsA("Part") then | |
4563 | v.BrickColor = MAINRUINCOLOR | |
4564 | v.Material = "Neon" | |
4565 | end | |
4566 | end | |
4567 | for i, v in pairs(mw1:GetChildren()) do | |
4568 | if v:IsA("Part") then | |
4569 | v.Transparency = 0 | |
4570 | v.BrickColor = MAINRUINCOLOR | |
4571 | v.Material = "Neon" | |
4572 | end | |
4573 | end | |
4574 | for i, v in pairs(m:GetChildren()) do | |
4575 | if v:IsA("Part") then | |
4576 | v.Color = Color3.new(0, 0, 0.3) | |
4577 | v.Material = "Neon" | |
4578 | end | |
4579 | end | |
4580 | for i, v in pairs(m2:GetChildren()) do | |
4581 | if v:IsA("Part") then | |
4582 | v.Color = Color3.new(0, 0, 0.5) | |
4583 | v.Material = "Neon" | |
4584 | end | |
4585 | end | |
4586 | for i, v in pairs(m3:GetChildren()) do | |
4587 | if v:IsA("Part") then | |
4588 | v.Color = Color3.new(0, 0, 0.7) | |
4589 | v.Material = "Neon" | |
4590 | end | |
4591 | end | |
4592 | for i, v in pairs(extrawingmod1:GetChildren()) do | |
4593 | if v:IsA("Part") then | |
4594 | v.Transparency = 0 | |
4595 | v.Color = Color3.new(0, 0, 0.9) | |
4596 | v.Material = "Neon" | |
4597 | end | |
4598 | end | |
4599 | for i, v in pairs(extrawingmod2:GetChildren()) do | |
4600 | if v:IsA("Part") then | |
4601 | v.Transparency = 0 | |
4602 | v.Color = Color3.new(0.6, 0, 0) | |
4603 | v.Material = "Neon" | |
4604 | end | |
4605 | end | |
4606 | elseif k == "p" and attack == false and ModeOfGlitch == 1000000 then | |
4607 | resetmode() | |
4608 | end | |
4609 | if k == "l" and toggleTag == false then | |
4610 | toggleTag = true | |
4611 | text.TextTransparency = 0 | |
4612 | text.TextStrokeTransparency = 0 | |
4613 | elseif k == "l" and toggleTag == true then | |
4614 | toggleTag = false | |
4615 | text.TextTransparency = 0.2 | |
4616 | text.TextStrokeTransparency = 0.2 | |
4617 | end | |
4618 | if k == "z" and attack == false and ModeOfGlitch == 1 then | |
4619 | ExtinctiveHeartbreak() | |
4620 | elseif k == "z" and attack == false and ModeOfGlitch == 2 then | |
4621 | HeavenlyDisk() | |
4622 | elseif k == "z" and attack == false and ModeOfGlitch == 3 then | |
4623 | scattercorrupt() | |
4624 | elseif k == "z" and attack == false and ModeOfGlitch == 4 then | |
4625 | ChaosGroundStrike() | |
4626 | elseif k == "z" and attack == false and ModeOfGlitch == 5 then | |
4627 | ExtinctiveHeartBreak() | |
4628 | elseif k == "x" and attack == false and ModeOfGlitch == 5 then | |
4629 | ChaosGroundStrike() | |
4630 | elseif k == "z" and attack == false and ModeOfGlitch == 1000000 then | |
4631 | UniversalSpark() | |
4632 | elseif k == "m" and attack == false and ModeOfGlitch == 1000000 then | |
4633 | scattercorrupt() | |
4634 | wait(1) | |
4635 | yinyangi() | |
4636 | elseif k == "m" and attack == false and ModeOfGlitch == 5 then | |
4637 | scattercorrupt() | |
4638 | elseif k == "z" and attack == false and ModeOfGlitch == 6 then | |
4639 | yinyangi() | |
4640 | elseif k == "z" and attack == false and ModeOfGlitch == 6127843 then | |
4641 | Wip() | |
4642 | elseif k == "x" and attack == false and ModeOfGlitch == 1000000 then | |
4643 | ChaosBegone() | |
4644 | wait(10) | |
4645 | ChaosGroundStrike() | |
4646 | ||
4647 | end | |
4648 | if k == "m" and attack == false and ModeOfGlitch == 4 then | |
4649 | ChaosBegone() | |
4650 | end | |
4651 | end) | |
4652 | coroutine.resume(coroutine.create(function() | |
4653 | while true do | |
4654 | swait(2) | |
4655 | if rainbowmode == true or ModeOfGlitch == 6 then | |
4656 | 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) | |
4657 | end | |
4658 | end | |
4659 | end)) | |
4660 | coroutine.resume(coroutine.create(function() | |
4661 | while true do | |
4662 | swait(0.5) | |
4663 | if ModeOfGlitch == 1000000 then | |
4664 | 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) | |
4665 | end | |
4666 | end | |
4667 | end)) | |
4668 | coroutine.resume(coroutine.create(function() | |
4669 | while true do | |
4670 | swait(2) | |
4671 | if chaosmode == true then | |
4672 | RecolorTextAndRename("HATEFUL MICHEAL", Color3.new(0, 0, 0), BrickColor.random().Color) | |
4673 | for i, v in pairs(mw1:GetChildren()) do | |
4674 | if v:IsA("Part") then | |
4675 | v.Transparency = 0.75 | |
4676 | v.BrickColor = BrickColor.random() | |
4677 | v.Material = "Neon" | |
4678 | end | |
4679 | end | |
4680 | for i, v in pairs(m2:GetChildren()) do | |
4681 | if v:IsA("Part") then | |
4682 | v.BrickColor = BrickColor.random() | |
4683 | v.Material = "Neon" | |
4684 | end | |
4685 | end | |
4686 | end | |
4687 | end | |
4688 | end)) | |
4689 | Humanoid.Name = "DERPZGLITCHER_REMAKE" | |
4690 | Humanoid.MaxHealth = math.huge | |
4691 | Humanoid.Health = math.huge | |
4692 | Instance.new("ForceField", char).Visible = false | |
4693 | Humanoid.Animator.Parent = nil | |
4694 | idleanim = 0.4 | |
4695 | while true do | |
4696 | if rainbowmode == true then | |
4697 | RecolorTextAndRename("Ultimate MICHEAL", Color3.new(r / 255, g / 255, b / 255), Color3.new(r / 500, g / 500, b / 500)) | |
4698 | MAINRUINCOLOR = BrickColor.new("White") | |
4699 | for i, v in pairs(m:GetChildren()) do | |
4700 | if v:IsA("Part") then | |
4701 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
4702 | end | |
4703 | end | |
4704 | for i, v in pairs(m2:GetChildren()) do | |
4705 | if v:IsA("Part") then | |
4706 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
4707 | end | |
4708 | end | |
4709 | for i, v in pairs(m3:GetChildren()) do | |
4710 | if v:IsA("Part") then | |
4711 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
4712 | end | |
4713 | end | |
4714 | for i, v in pairs(mw1:GetChildren()) do | |
4715 | if v:IsA("Part") then | |
4716 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
4717 | v.Material = "Neon" | |
4718 | end | |
4719 | end | |
4720 | for i, v in pairs(mw2:GetChildren()) do | |
4721 | if v:IsA("Part") then | |
4722 | v.Color = Color3.new(r / 255, g / 255, b / 255) | |
4723 | v.Material = "Neon" | |
4724 | end | |
4725 | end | |
4726 | end | |
4727 | CameraManager() | |
4728 | swait() | |
4729 | 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))), 0.3) | |
4730 | 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))), 0.3) | |
4731 | 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))), 0.3) | |
4732 | 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))), 0.3) | |
4733 | 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))), 0.3) | |
4734 | 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))), 0.3) | |
4735 | 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))), 0.3) | |
4736 | 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))), 0.3) | |
4737 | 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))), 0.3) | |
4738 | 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))), 0.3) | |
4739 | 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))), 0.3) | |
4740 | 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))), 0.3) | |
4741 | sine = sine + change | |
4742 | local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
4743 | local velderp = RootPart.Velocity.y | |
4744 | hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
4745 | if equipped == true or equipped == false then | |
4746 | if attack == false then | |
4747 | idle = idle + 1 | |
4748 | else | |
4749 | idle = 0 | |
4750 | end | |
4751 | if not (idle >= 500) or attack == false then | |
4752 | end | |
4753 | if RootPart.Velocity.y > 1 and hitfloor == nil then | |
4754 | Anim = "Jump" | |
4755 | if attack == false then | |
4756 | 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)), 0.1) | |
4757 | 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)), 0.1) | |
4758 | 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)), 0.1) | |
4759 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-2.5), math.rad(0), math.rad(0)), 0.1) | |
4760 | 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)), 0.1) | |
4761 | 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)), 0.1) | |
4762 | end | |
4763 | elseif RootPart.Velocity.y < -1 and hitfloor == nil then | |
4764 | Anim = "Fall" | |
4765 | if attack == false then | |
4766 | 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)), 0.1) | |
4767 | 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)), 0.1) | |
4768 | 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)), 0.1) | |
4769 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
4770 | 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)), 0.1) | |
4771 | 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)), 0.1) | |
4772 | end | |
4773 | elseif torvel < 1 and hitfloor ~= nil then | |
4774 | Anim = "Idle" | |
4775 | if attack == false then | |
4776 | if ModeOfGlitch == 1 then | |
4777 | 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)), 0.1) | |
4778 | 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))), 0.1) | |
4779 | 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)), 0.1) | |
4780 | 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))), 0.1) | |
4781 | 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))), 0.1) | |
4782 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1) | |
4783 | elseif ModeOfGlitch == 2 or ModeOfGlitch == 6127843 then | |
4784 | 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))), 0.1) | |
4785 | 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))), 0.1) | |
4786 | 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)), 0.1) | |
4787 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15 - 2.5 * math.cos(sine / 28)), math.rad(0), math.rad(0)), 0.1) | |
4788 | 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))), 0.1) | |
4789 | 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))), 0.1) | |
4790 | elseif ModeOfGlitch == solitude then | |
4791 | 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)), 0.1) | |
4792 | 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))), 0.1) | |
4793 | 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)), 0.1) | |
4794 | 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))), 0.1) | |
4795 | 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))), 0.1) | |
4796 | elseif ModeOfGlitch == 3 then | |
4797 | 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) | |
4798 | 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) | |
4799 | 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) | |
4800 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(10 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1) | |
4801 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(math.random(5,15)),math.rad(-5),math.rad(15 + 7.5 * math.cos(sine / 12.5))),.1) | |
4802 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(15 - 15 * math.cos(sine / 0.5265)),math.rad(0 - 15 * math.cos(sine / 0.25)),math.rad(0 - 15 * math.cos(sine / 0.465)))*angles(math.rad(math.random(5,15)),math.rad(5),math.rad(-15 - 7.5 * math.cos(sine / 12.5))),.1) | |
4803 | elseif ModeOfGlitch == 4 then | |
4804 | 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)), 0.1) | |
4805 | 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)), 0.1) | |
4806 | 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)), 0.1) | |
4807 | 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))), 0.1) | |
4808 | 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))), 0.1) | |
4809 | 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))), 0.1) | |
4810 | elseif ModeOfGlitch == 5 then | |
4811 | 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) | |
4812 | 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) | |
4813 | 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) | |
4814 | 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) | |
4815 | 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) | |
4816 | 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) | |
4817 | elseif ModeOfGlitch == 6 then | |
4818 | 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)), 0.1) | |
4819 | 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)), 0.1) | |
4820 | 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)), 0.1) | |
4821 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(15), math.rad(0), math.rad(0)), 0.1) | |
4822 | 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))), 0.1) | |
4823 | 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))), 0.1) | |
4824 | elseif ModeOfGlitch == 1000000 then | |
4825 | 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) | |
4826 | 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) | |
4827 | 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) | |
4828 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(15),math.rad(0),math.rad(40)),.1) | |
4829 | 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) | |
4830 | 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) | |
4831 | end | |
4832 | end | |
4833 | elseif torvel > 2 and torvel < 22 and hitfloor ~= nil then | |
4834 | Anim = "Walk" | |
4835 | if attack == false then | |
4836 | if ModeOfGlitch == 1 then | |
4837 | 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))), 0.1) | |
4838 | 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))), 0.1) | |
4839 | 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))), 0.1) | |
4840 | 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))), 0.1) | |
4841 | 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))), 0.1) | |
4842 | LW.C0 = clerp(LW.C0, cf(-1.5, 0.5, 0) * angles(math.rad(160), math.rad(0), math.rad(25)), 0.1) | |
4843 | elseif ModeOfGlitch == 4 then | |
4844 | 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))), 0.1) | |
4845 | 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))), 0.1) | |
4846 | 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))), 0.1) | |
4847 | 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))), 0.1) | |
4848 | 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))), 0.1) | |
4849 | 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))), 0.1) | |
4850 | elseif ModeOfGlitch ~= 1 or ModeOfGlitch ~= 4 then | |
4851 | 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))), 0.1) | |
4852 | 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))), 0.1) | |
4853 | 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))), 0.1) | |
4854 | 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))), 0.1) | |
4855 | 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))), 0.1) | |
4856 | 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))), 0.1) | |
4857 | end | |
4858 | end | |
4859 | elseif torvel >= 22 and hitfloor ~= nil then | |
4860 | Anim = "Run" | |
4861 | if attack == false then | |
4862 | if ModeOfGlitch ~= 6 and ModeOfGlitch ~= 1000000 then | |
4863 | 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))), 0.1) | |
4864 | 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))), 0.1) | |
4865 | 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))), 0.1) | |
4866 | 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))), 0.1) | |
4867 | 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))), 0.1) | |
4868 | 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))), 0.1) | |
4869 | elseif ModeOfGlitch == 6 or ModeOfGlitch == 1000000 then | |
4870 | 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)), 0.2) | |
4871 | 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)), 0.2) | |
4872 | 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)), 0.2) | |
4873 | Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(-20), math.rad(0), math.rad(0)), 0.2) | |
4874 | 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))), 0.2) | |
4875 | 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))), 0.2) | |
4876 | end | |
4877 | end | |
4878 | end | |
4879 | end | |
4880 | end |