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