SHOW:
|
|
- or go back to the newest paste.
1 | -- This script has been converted to FE by iPxter | |
2 | ||
3 | ||
4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
6 | do | |
7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") | |
8 | script.Parent = Player.Character | |
9 | ||
10 | --RemoteEvent for communicating | |
11 | local Event = Instance.new("RemoteEvent") | |
12 | - | local plr = plrs.LocalPlayer |
12 | + | Event.Name = "UserInput_Event" |
13 | ||
14 | --Fake event to make stuff like Mouse.KeyDown work | |
15 | local function fakeEvent() | |
16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
17 | t.connect = t.Connect | |
18 | return t | |
19 | end | |
20 | ||
21 | --Creating fake input objects with fake variables | |
22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
26 | end} | |
27 | --Merged 2 functions into one by checking amount of arguments | |
28 | CAS.UnbindAction = CAS.BindAction | |
29 | ||
30 | --This function will trigger the events that have been :Connect()'ed | |
31 | local function te(self,ev,...) | |
32 | local t = m[ev] | |
33 | if t and t._fakeEvent and t.Function then | |
34 | t.Function(...) | |
35 | end | |
36 | end | |
37 | m.TrigEvent = te | |
38 | UIS.TrigEvent = te | |
39 | ||
40 | Event.OnServerEvent:Connect(function(plr,io) | |
41 | if plr~=Player then return end | |
42 | if io.isMouse then | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | else | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | for _,t in pairs(CAS.Actions) do | |
51 | for _,k in pairs(t.Keys) do | |
52 | if k==io.KeyCode then | |
53 | t.Function(t.Name,io.UserInputState,io) | |
54 | end | |
55 | end | |
56 | end | |
57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
59 | end | |
60 | end) | |
61 | Event.Parent = NLS([==[ | |
62 | local Player = owner | |
63 | local Event = script:WaitForChild("UserInput_Event") | |
64 | ||
65 | local UIS = game:GetService("UserInputService") | |
66 | local input = function(io,a) | |
67 | if a then return end | |
68 | --Since InputObject is a client-side instance, we create and pass table instead | |
69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
70 | end | |
71 | UIS.InputBegan:Connect(input) | |
72 | UIS.InputEnded:Connect(input) | |
73 | ||
74 | local Mouse = Player:GetMouse() | |
75 | local h,t | |
76 | --Give the server mouse data 30 times every second, but only if the values changed | |
77 | --If player is not moving their mouse, client won't fire events | |
78 | while wait(1/30) do | |
79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
80 | h,t=Mouse.Hit,Mouse.Target | |
81 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
82 | end | |
83 | end]==],Player.Character) | |
84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
85 | end | |
86 | ||
87 | -- Created by Nebula_Zorua -- | |
88 | -- NebulaGlitcher Demo -- | |
89 | -- The official second Glitcher's Demo -- | |
90 | -- Discord: Nebula the Zorua#6969 | |
91 | -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA | |
92 | ||
93 | wait(0.2) | |
94 | ||
95 | --Values (EDITED) | |
96 | ||
97 | local plrs = game:GetService("Players") | |
98 | local plr = owner | |
99 | local char = plr.Character | |
100 | local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso") | |
101 | ||
102 | local ANIM = "Idle" | |
103 | local ATTACK = false | |
104 | local EQUIPPED = false | |
105 | local HOLD = false | |
106 | local COMBO = 1 | |
107 | local Rooted = false | |
108 | local SINE = 0 | |
109 | local KEYHOLD = false | |
110 | local WALKINGANIM = false | |
111 | local WALK = 0 | |
112 | local VALUE1 = false | |
113 | local VALUE2 = false | |
114 | ||
115 | local ATTACK = false | |
116 | ||
117 | function MouseDown(Mouse) | |
118 | if ATTACK == false then | |
119 | - | Player = game:GetService("Players").LocalPlayer |
119 | + | |
120 | end | |
121 | ||
122 | function MouseUp(Mouse) | |
123 | HOLD = false | |
124 | end | |
125 | ||
126 | local function weldBetween(a, b) | |
127 | local weldd = Instance.new("ManualWeld") | |
128 | weldd.Part0 = a | |
129 | weldd.Part1 = b | |
130 | weldd.C0 = CFrame.new() | |
131 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
132 | weldd.Parent = a | |
133 | return weldd | |
134 | end | |
135 | ||
136 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
137 | local acs = Instance.new("Part") | |
138 | acs.CanCollide = false | |
139 | acs.Anchored = false | |
140 | acs.Size = Vector3.new(0,0,0) | |
141 | acs.CFrame = attachmentpart.CFrame | |
142 | acs.Parent = Character | |
143 | acs.BrickColor = color | |
144 | local meshs = Instance.new("SpecialMesh") | |
145 | meshs.MeshId = mesh | |
146 | meshs.TextureId = texture | |
147 | meshs.Parent = acs | |
148 | meshs.Scale = scale | |
149 | meshs.Offset = offset | |
150 | weldBetween(attachmentpart,acs) | |
151 | end | |
152 | ||
153 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
154 | if TYPE == "Gem" then | |
155 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
156 | acs.Anchored = false | |
157 | acs.CanCollide = false | |
158 | acs.CFrame = PART.CFrame | |
159 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) | |
160 | weldBetween(PART,acs) | |
161 | elseif TYPE == "Skull" then | |
162 | local acs = CreatePart(3, Character, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
163 | acs.Anchored = false | |
164 | acs.CanCollide = false | |
165 | acs.CFrame = PART.CFrame | |
166 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) | |
167 | weldBetween(PART,acs) | |
168 | elseif TYPE == "Eye" then | |
169 | local acs = CreatePart(3, Character, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
170 | acs.Anchored = false | |
171 | acs.CanCollide = false | |
172 | acs.CFrame = PART.CFrame | |
173 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET) | |
174 | weldBetween(PART,acs) | |
175 | end | |
176 | end | |
177 | ||
178 | ||
179 | function MakeForm(PART,TYPE) | |
180 | if TYPE == "Cyl" then | |
181 | local MSH = IT("CylinderMesh",PART) | |
182 | elseif TYPE == "Ball" then | |
183 | local MSH = IT("SpecialMesh",PART) | |
184 | MSH.MeshType = "Sphere" | |
185 | elseif TYPE == "Wedge" then | |
186 | local MSH = IT("SpecialMesh",PART) | |
187 | MSH.MeshType = "Wedge" | |
188 | elseif TYPE == "Head" then | |
189 | - | local Plr = Plrs.LocalPlayer |
189 | + | |
190 | MSH.Scale = VT(1.25,1.25,1.25) | |
191 | end | |
192 | end | |
193 | ||
194 | ||
195 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
196 | local NEWWELD = IT(TYPE) | |
197 | NEWWELD.Part0 = PART0 | |
198 | NEWWELD.Part1 = PART1 | |
199 | NEWWELD.C0 = C0 | |
200 | NEWWELD.C1 = C1 | |
201 | NEWWELD.Parent = PARENT | |
202 | return NEWWELD | |
203 | end | |
204 | ||
205 | Player = owner | |
206 | PlayerGui = Player.PlayerGui | |
207 | Cam = workspace.CurrentCamera | |
208 | Backpack = Player.Backpack | |
209 | Character = Player.Character | |
210 | Humanoid = Character.Humanoid | |
211 | Mouse = Player:GetMouse() | |
212 | RootPart = Character["HumanoidRootPart"] | |
213 | Torso = Character["Torso"] | |
214 | Head = Character["Head"] | |
215 | RightArm = Character["Right Arm"] | |
216 | LeftArm = Character["Left Arm"] | |
217 | RightLeg = Character["Right Leg"] | |
218 | LeftLeg = Character["Left Leg"] | |
219 | RootJoint = RootPart["RootJoint"] | |
220 | Neck = Torso["Neck"] | |
221 | RightShoulder = Torso["Right Shoulder"] | |
222 | LeftShoulder = Torso["Left Shoulder"] | |
223 | RightHip = Torso["Right Hip"] | |
224 | LeftHip = Torso["Left Hip"] | |
225 | ||
226 | ||
227 | Class_Name = "Void Face" | |
228 | ||
229 | Player_Size = 1 --Size of the player. | |
230 | Animation_Speed = 3 | |
231 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
232 | ||
233 | local Speed = 16 | |
234 | local Effects2 = {} | |
235 | ||
236 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
237 | local NEWPART = IT("Part") | |
238 | NEWPART.formFactor = FORMFACTOR | |
239 | NEWPART.Reflectance = REFLECTANCE | |
240 | NEWPART.Transparency = TRANSPARENCY | |
241 | NEWPART.CanCollide = false | |
242 | NEWPART.Locked = true | |
243 | NEWPART.Anchored = true | |
244 | if ANCHOR == false then | |
245 | NEWPART.Anchored = false | |
246 | end | |
247 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
248 | NEWPART.Name = NAME | |
249 | NEWPART.Size = SIZE | |
250 | NEWPART.Position = Torso.Position | |
251 | NEWPART.Material = MATERIAL | |
252 | NEWPART:BreakJoints() | |
253 | NEWPART.Parent = PARENT | |
254 | return NEWPART | |
255 | end | |
256 | ||
257 | --End of Values | |
258 | ||
259 | --// Shortcut Variables \\-- | |
260 | local S = setmetatable({},{__index = function(s,i) return game:service(i) end}) | |
261 | local CF = {N=CFrame.new,A=CFrame.Angles,fEA=CFrame.fromEulerAnglesXYZ} | |
262 | local C3 = {N=Color3.new,RGB=Color3.fromRGB,HSV=Color3.fromHSV,tHSV=Color3.toHSV} | |
263 | local V3 = {N=Vector3.new,FNI=Vector3.FromNormalId,A=Vector3.FromAxis} | |
264 | local M = {C=math.cos,R=math.rad,S=math.sin,P=math.pi,RNG=math.random,MRS=math.randomseed,H=math.huge,RRNG = function(min,max,div) return math.rad(math.random(min,max)/(div or 1)) end} | |
265 | local R3 = {N=Region3.new} | |
266 | local De = S.Debris | |
267 | local WS = workspace | |
268 | local Lght = S.Lighting | |
269 | local RepS = S.ReplicatedStorage | |
270 | local IN = Instance.new | |
271 | local Plrs = S.Players | |
272 | local UIS = S.UserInputService | |
273 | local CAS = S.ContextActionService | |
274 | --// Initializing \\-- | |
275 | local Plr = owner | |
276 | local Char = Plr.Character | |
277 | local Hum = Char:FindFirstChildOfClass'Humanoid' | |
278 | local RArm = Char["Right Arm"] | |
279 | local LArm = Char["Left Arm"] | |
280 | local RLeg = Char["Right Leg"] | |
281 | local LLeg = Char["Left Leg"] | |
282 | local Root = Char:FindFirstChild'HumanoidRootPart' | |
283 | local Torso = Char.Torso | |
284 | local Head = Char.Head | |
285 | local NeutralAnims = true | |
286 | local Attack = false | |
287 | local Debounces = {Debounces={}} | |
288 | local Mouse = Plr:GetMouse() | |
289 | local Hit = {} | |
290 | local Sine = 0 | |
291 | local Change = 1 | |
292 | local PlrGui = Plr:FindFirstChildOfClass'PlayerGui' | |
293 | local Hue = 0; | |
294 | local Combo = 1 | |
295 | local BloodPuddles = {} | |
296 | ||
297 | local DontAttackPlayers = false | |
298 | ||
299 | local BurnInterval = .7 | |
300 | ||
301 | local Radioactive = {} | |
302 | ||
303 | local Hits = 0; | |
304 | local HitTime = time() | |
305 | ||
306 | local MaxHits = 60; | |
307 | ||
308 | local Effects = IN("Folder",Char) | |
309 | Effects.Name = "Effects" | |
310 | ||
311 | --Invencible Script by 1x1x1x1IAMbck or Shackluster!: | |
312 | ||
313 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping,DoesWarp,Instakill,HasChain) | |
314 | ||
315 | local dmg = math.random(min,max) | |
316 | for i,v in ipairs(workspace:GetChildren()) do | |
317 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
318 | local body = v:GetChildren() | |
319 | for part = 1, #body do | |
320 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
321 | if(body[part].Position - position).Magnitude < radius then | |
322 | if v.ClassName == "Model" then | |
323 | if v:FindFirstChildOfClass("Humanoid") then | |
324 | local HUMAN = v:FindFirstChildOfClass("Humanoid") | |
325 | if HUMAN.Health ~= 0 then | |
326 | if HasChain == true then | |
327 | local defence = Instance.new("BoolValue",v) | |
328 | defence.Name = ("HitBy"..Player.Name) | |
329 | game:GetService("Debris"):AddItem(defence, 1) | |
330 | coroutine.resume(coroutine.create(function() | |
331 | local TORSO = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
332 | if TORSO then | |
333 | local PART = IT("Part",Effects) | |
334 | PART.Anchored = true | |
335 | PART.CanCollide = false | |
336 | PART.Transparency = 1 | |
337 | PART.CFrame = CF(position) | |
338 | Debris:AddItem(PART,15) | |
339 | local A = IT("Attachment",PART) | |
340 | --TORSO.Anchored = true | |
341 | local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false) | |
342 | Front.CFrame = CF(position) | |
343 | Front.CanCollide = true | |
344 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1) | |
345 | local B = IT("Attachment",Front) | |
346 | local ChainLink = IT("Beam",Effects) | |
347 | ChainLink.Texture = "rbxassetid://1262544869" | |
348 | ChainLink.TextureSpeed = 0 | |
349 | ChainLink.FaceCamera = true | |
350 | ChainLink.Width0 = 3 | |
351 | ChainLink.Attachment0 = A | |
352 | ChainLink.Attachment1 = B | |
353 | ChainLink.TextureMode = "Static" | |
354 | local bv = Instance.new("BodyVelocity") | |
355 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
356 | bv.velocity = CF(Front.Position,TORSO.Position).lookVector*500 | |
357 | bv.Parent = Front | |
358 | bv.Name = "MOVE" | |
359 | coroutine.resume(coroutine.create(function() | |
360 | Swait(30) | |
361 | bv:remove() | |
362 | local POS = Front.Position | |
363 | Front.CanCollide = false | |
364 | local onefourth = POS:Lerp(position, 0.25) + Vector3.new(0,0,0) | |
365 | local threefourths = POS:Lerp(position, 0.75) + Vector3.new(0,0,0) | |
366 | for i = 0, 1, 0.07 do | |
367 | Swait() | |
368 | Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, position, i)) | |
369 | end | |
370 | Front:remove() | |
371 | ChainLink:remove() | |
372 | end)) | |
373 | local harm = Front.Touched:Connect(function(hit) | |
374 | impale(Front,hit) | |
375 | end) | |
376 | end | |
377 | end)) | |
378 | elseif DoesWarp == true then | |
379 | local defence = Instance.new("BoolValue",v) | |
380 | defence.Name = ("HitBy"..Player.Name) | |
381 | game:GetService("Debris"):AddItem(defence, 0.001) | |
382 | local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
383 | Warp(TORSO,Instakill) | |
384 | else | |
385 | if CanBeDodgedByJumping == true then | |
386 | if body[part].Position.Y < position.Y+5 then | |
387 | if math.random(1,100) < critrate+1 then | |
388 | HUMAN.Health = HUMAN.Health - dmg*critmultiplier | |
389 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
390 | else | |
391 | HUMAN.Health = HUMAN.Health - dmg | |
392 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
393 | end | |
394 | local defence = Instance.new("BoolValue",v) | |
395 | defence.Name = ("HitBy"..Player.Name) | |
396 | game:GetService("Debris"):AddItem(defence, 0.01) | |
397 | end | |
398 | else | |
399 | if beserk == true then | |
400 | HUMAN.Health = 0 | |
401 | end | |
402 | if math.random(1,100) < critrate+1 then | |
403 | HUMAN.Health = HUMAN.Health - dmg*critmultiplier | |
404 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
405 | else | |
406 | HUMAN.Health = HUMAN.Health - dmg | |
407 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
408 | end | |
409 | local defence = Instance.new("BoolValue",v) | |
410 | defence.Name = ("HitBy"..Player.Name) | |
411 | game:GetService("Debris"):AddItem(defence, 0.01) | |
412 | Humanoid.Died:connect(function() | |
413 | ATTACK = true | |
414 | end) | |
415 | ||
416 | end | |
417 | end | |
418 | end | |
419 | end | |
420 | end | |
421 | --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
422 | end | |
423 | end | |
424 | end | |
425 | if v.ClassName == "Part" then | |
426 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
427 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
428 | end | |
429 | end | |
430 | end | |
431 | end | |
432 | end | |
433 | ||
434 | function Warp(Victim,WarpToVoid) | |
435 | Victim.Anchored = true | |
436 | coroutine.resume(coroutine.create(function() | |
437 | local GUI,GUI2 = CreateGUICircle(Victim) | |
438 | CreateSound("1208650519", Victim, 10, 1) | |
439 | for i = 1, 100 do | |
440 | Swait() | |
441 | GUI.Size = GUI.Size + UDim2.new(0.2,0,0.2,0) | |
442 | GUI2.Rotation = GUI2.Rotation + 4 | |
443 | end | |
444 | CastWarpOutlines(Victim.Parent) | |
445 | if WarpToVoid == false then | |
446 | Victim.CFrame = Victim.CFrame * CF(MRANDOM(-65,65),0,MRANDOM(-65,65)) | |
447 | CreateSound("1177785010", Victim, 10, 1) | |
448 | local HUMANOID = Victim.Parent:FindFirstChildOfClass("Humanoid") | |
449 | if HUMANOID ~= nil then | |
450 | local dmg = MRANDOM(75,95) | |
451 | HUMANOID.Health = HUMANOID.Health - dmg | |
452 | StatLabel("Normal", Victim.CFrame * CF(0, 0 + (Victim.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3)) | |
453 | end | |
454 | for i = 1, 50 do | |
455 | Swait() | |
456 | GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0) | |
457 | GUI2.Rotation = GUI2.Rotation - 8 | |
458 | end | |
459 | Victim.Anchored = false | |
460 | GUI:remove() | |
461 | elseif WarpToVoid == true then | |
462 | CastWarpOutlines(Victim.Parent) | |
463 | q = Victim.Parent:GetChildren() | |
464 | for i = 1, #q do | |
465 | if q[i] ~= Victim then | |
466 | q[i]:remove() | |
467 | end | |
468 | end | |
469 | CreateSound("1177785010", Victim, 10, 1) | |
470 | Victim.Transparency = 1 | |
471 | for i = 1, 50 do | |
472 | Swait() | |
473 | GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0) | |
474 | GUI2.Rotation = GUI2.Rotation - 8 | |
475 | end | |
476 | Victim.Parent:remove() | |
477 | end | |
478 | end)) | |
479 | end | |
480 | ||
481 | function killnearest(position,range,maxstrength) | |
482 | for i,v in ipairs(workspace:GetChildren()) do | |
483 | local body = v:GetChildren() | |
484 | for part = 1, #body do | |
485 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
486 | if(body[part].Position - position).Magnitude < range then | |
487 | if v.ClassName == "Model" then | |
488 | v:BreakJoints() | |
489 | end | |
490 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
491 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
492 | end | |
493 | end | |
494 | end | |
495 | if v.ClassName == "Part" then | |
496 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
497 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
498 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
499 | end | |
500 | end | |
501 | end | |
502 | end | |
503 | --End of Ivencible script.. | |
504 | ||
505 | ||
506 | --// Output Stuff \\-- | |
507 | ||
508 | function Output(type,...) | |
509 | print(table.concat{...,"\t"}) | |
510 | end | |
511 | ||
512 | warn("NEBULAGLITCHER DEMO (EDITED BY FENIX7667 (Imortal edit)") | |
513 | warn("CONTROLS:") | |
514 | warn("SOLITUDE - Z, T") | |
515 | warn("THE BIG BLACK - Z (NOT FINISHED)") | |
516 | warn("CLARITY - Z") | |
517 | warn("GLITCHY - Z") | |
518 | warn("STRESS - Z") | |
519 | warn("JUSTICE - Z") | |
520 | ||
521 | warn("The real NebulaGlitcher has more modes, and a combo system. This is just a demo.") | |
522 | ||
523 | --// Debounce System \\-- | |
524 | ||
525 | function Debounces:New(name,cooldown) | |
526 | local aaaaa = {Usable=true,Cooldown=cooldown or 2,CoolingDown=false,LastUse=0} | |
527 | setmetatable(aaaaa,{__index = Debounces}) | |
528 | Debounces.Debounces[name] = aaaaa | |
529 | return aaaaa | |
530 | end | |
531 | ||
532 | function Debounces:Use(overrideUsable) | |
533 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
534 | if(self.Usable or overrideUsable)then | |
535 | self.Usable = false | |
536 | self.CoolingDown = true | |
537 | local LastUse = time() | |
538 | self.LastUse = LastUse | |
539 | delay(self.Cooldown or 2,function() | |
540 | if(self.LastUse == LastUse)then | |
541 | self.CoolingDown = false | |
542 | self.Usable = true | |
543 | end | |
544 | end) | |
545 | end | |
546 | end | |
547 | ||
548 | function Debounces:Get(name) | |
549 | assert(typeof(name) == 'string',("bad argument #1 to 'get' (string expected, got %s)"):format(typeof(name) == nil and "no value" or typeof(name))) | |
550 | for i,v in next, Debounces.Debounces do | |
551 | if(i == name)then | |
552 | return v; | |
553 | end | |
554 | end | |
555 | end | |
556 | ||
557 | function Debounces:GetProgressPercentage() | |
558 | assert(self.Usable ~= nil and self.LastUse ~= nil and self.CoolingDown ~= nil,"Expected ':' not '.' calling member function Use") | |
559 | if(self.CoolingDown and not self.Usable)then | |
560 | return math.max( | |
561 | math.floor( | |
562 | ( | |
563 | (time()-self.LastUse)/self.Cooldown or 2 | |
564 | )*100 | |
565 | ) | |
566 | ) | |
567 | else | |
568 | return 100 | |
569 | end | |
570 | end | |
571 | ||
572 | --// Instance Creation Functions \\-- | |
573 | ||
574 | function Sound(parent,id,pitch,volume,looped,effect,autoPlay) | |
575 | local Sound = IN("Sound") | |
576 | Sound.SoundId = "rbxassetid://".. tostring(id or 0) | |
577 | Sound.Pitch = pitch or 1 | |
578 | Sound.Volume = volume or 1 | |
579 | Sound.Looped = looped or false | |
580 | if(autoPlay)then | |
581 | coroutine.wrap(function() | |
582 | repeat wait() until Sound.IsLoaded | |
583 | Sound.Playing = autoPlay or false | |
584 | end)() | |
585 | end | |
586 | if(not looped and effect)then | |
587 | Sound.Stopped:connect(function() | |
588 | Sound.Volume = 0 | |
589 | Sound:destroy() | |
590 | end) | |
591 | elseif(effect)then | |
592 | warn("Sound can't be looped and a sound effect!") | |
593 | end | |
594 | Sound.Parent =parent or Torso | |
595 | return Sound | |
596 | end | |
597 | function Part(parent,color,material,size,cframe,anchored,cancollide) | |
598 | local part = IN("Part") | |
599 | part.Parent = parent or Char | |
600 | part[typeof(color) == 'BrickColor' and 'BrickColor' or 'Color'] = color or C3.N(0,0,0) | |
601 | part.Material = material or Enum.Material.SmoothPlastic | |
602 | part.TopSurface,part.BottomSurface=10,10 | |
603 | part.Size = size or V3.N(1,1,1) | |
604 | part.CFrame = cframe or CF.N(0,0,0) | |
605 | part.CanCollide = cancollide or false | |
606 | part.Anchored = anchored or false | |
607 | return part | |
608 | end | |
609 | ||
610 | function Weld(part0,part1,c0,c1) | |
611 | local weld = IN("Weld") | |
612 | weld.Parent = part0 | |
613 | weld.Part0 = part0 | |
614 | weld.Part1 = part1 | |
615 | weld.C0 = c0 or CF.N() | |
616 | weld.C1 = c1 or CF.N() | |
617 | return weld | |
618 | end | |
619 | ||
620 | function Mesh(parent,meshtype,meshid,textid,scale,offset) | |
621 | local part = IN("SpecialMesh") | |
622 | part.MeshId = meshid or "" | |
623 | part.TextureId = textid or "" | |
624 | part.Scale = scale or V3.N(1,1,1) | |
625 | part.Offset = offset or V3.N(0,0,0) | |
626 | part.MeshType = meshtype or Enum.MeshType.Sphere | |
627 | part.Parent = parent | |
628 | return part | |
629 | end | |
630 | ||
631 | NewInstance = function(instance,parent,properties) | |
632 | local inst = Instance.new(instance) | |
633 | inst.Parent = parent | |
634 | if(properties)then | |
635 | for i,v in next, properties do | |
636 | pcall(function() inst[i] = v end) | |
637 | end | |
638 | end | |
639 | return inst; | |
640 | end | |
641 | ||
642 | function Clone(instance,parent,properties) | |
643 | local inst = instance:Clone() | |
644 | inst.Parent = parent | |
645 | if(properties)then | |
646 | for i,v in next, properties do | |
647 | pcall(function() inst[i] = v end) | |
648 | end | |
649 | end | |
650 | return inst; | |
651 | end | |
652 | ||
653 | function SoundPart(id,pitch,volume,looped,effect,autoPlay,cf) | |
654 | local soundPart = NewInstance("Part",Effects,{Transparency=1,CFrame=cf or Torso.CFrame,Anchored=true,CanCollide=false,Size=V3.N()}) | |
655 | local Sound = IN("Sound") | |
656 | Sound.SoundId = "rbxassetid://".. tostring(id or 0) | |
657 | Sound.Pitch = pitch or 1 | |
658 | Sound.Volume = volume or 1 | |
659 | Sound.Looped = looped or false | |
660 | if(autoPlay)then | |
661 | coroutine.wrap(function() | |
662 | repeat wait() until Sound.IsLoaded | |
663 | Sound.Playing = autoPlay or false | |
664 | end)() | |
665 | end | |
666 | if(not looped and effect)then | |
667 | Sound.Stopped:connect(function() | |
668 | Sound.Volume = 0 | |
669 | soundPart:destroy() | |
670 | end) | |
671 | elseif(effect)then | |
672 | warn("Sound can't be looped and a sound effect!") | |
673 | end | |
674 | Sound.Parent = soundPart | |
675 | return Sound,soundPart | |
676 | end | |
677 | ||
678 | ||
679 | --// Extended ROBLOX tables \\-- | |
680 | local Instance = setmetatable({ClearChildrenOfClass = function(where,class,recursive) local children = (recursive and where:GetDescendants() or where:GetChildren()) for _,v in next, children do if(v:IsA(class))then v:destroy();end;end;end},{__index = Instance}) | |
681 | --// Require stuff \\-- | |
682 | function CamShake(who,times,intense,origin) | |
683 | coroutine.wrap(function() | |
684 | if(script:FindFirstChild'CamShake')then | |
685 | local cam = script.CamShake:Clone() | |
686 | cam:WaitForChild'intensity'.Value = intense | |
687 | cam:WaitForChild'times'.Value = times | |
688 | ||
689 | if(origin)then NewInstance((typeof(origin) == 'Instance' and "ObjectValue" or typeof(origin) == 'Vector3' and 'Vector3Value'),cam,{Name='origin',Value=origin}) end | |
690 | cam.Parent = who | |
691 | wait() | |
692 | cam.Disabled = false | |
693 | elseif(who == Plr or who == Char or who:IsDescendantOf(Plr))then | |
694 | local intensity = intense | |
695 | local cam = workspace.CurrentCamera | |
696 | for i = 1, times do | |
697 | local camDistFromOrigin | |
698 | if(typeof(origin) == 'Instance' and origin:IsA'BasePart')then | |
699 | camDistFromOrigin = math.floor( (cam.CFrame.p-origin.Position).magnitude )/25 | |
700 | elseif(typeof(origin) == 'Vector3')then | |
701 | camDistFromOrigin = math.floor( (cam.CFrame.p-origin).magnitude )/25 | |
702 | end | |
703 | if(camDistFromOrigin)then | |
704 | intensity = math.min(intense, math.floor(intense/camDistFromOrigin)) | |
705 | end | |
706 | cam.CFrame = cam.CFrame:lerp(cam.CFrame*CFrame.new(math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100,math.random(-intensity,intensity)/100)*CFrame.Angles(math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100),math.rad(math.random(-intensity,intensity)/100)),.4) | |
707 | swait() | |
708 | end | |
709 | end | |
710 | end)() | |
711 | end | |
712 | ||
713 | ||
714 | function CamShakeAll(times,intense,origin) | |
715 | for _,v in next, Plrs:players() do | |
716 | CamShake(v:FindFirstChildOfClass'PlayerGui' or v:FindFirstChildOfClass'Backpack' or v.Character,times,intense,origin) | |
717 | end | |
718 | end | |
719 | ||
720 | function CamShakeAOE(origin,range,times,intense,blacklist) | |
721 | local hit = {} | |
722 | for _,v in next, getRegion(origin,range,blacklist or {}) do | |
723 | if(S.Players:GetPlayerFromCharacter(v.Parent) and v.Parent and not hit[v.Parent] and v.Parent:FindFirstChildOfClass'Humanoid')then | |
724 | CamShake(v.Parent,times,intense,origin) | |
725 | hit[v.Parent] = true | |
726 | end | |
727 | end | |
728 | end | |
729 | ||
730 | function ServerScript(code) | |
731 | if(script:FindFirstChild'Loadstring')then | |
732 | local load = script.Loadstring:Clone() | |
733 | load:WaitForChild'Sauce'.Value = code | |
734 | load.Disabled = false | |
735 | load.Parent = workspace | |
736 | elseif(NS and typeof(NS) == 'function')then | |
737 | NS(code,workspace) | |
738 | else | |
739 | warn("no serverscripts lol") | |
740 | end | |
741 | end | |
742 | ||
743 | function LocalOnPlayer(who,code) | |
744 | ServerScript([[ | |
745 | wait() | |
746 | script.Parent=nil | |
747 | if(not _G.Http)then _G.Http = game:service'HttpService' end | |
748 | ||
749 | local Http = _G.Http or game:service'HttpService' | |
750 | ||
751 | local source = ]].."[["..code.."]]"..[[ | |
752 | local link = "https://api.vorth.xyz/R_API/R.UPLOAD/NEW_LOCAL.php" | |
753 | local asd = Http:PostAsync(link,source) | |
754 | repeat wait() until asd and Http:JSONDecode(asd) and Http:JSONDecode(asd).Result and Http:JSONDecode(asd).Result.Require_ID | |
755 | local ID = Http:JSONDecode(asd).Result.Require_ID | |
756 | local vs = require(ID).VORTH_SCRIPT | |
757 | vs.Parent = game:service'Players'.]]..who.Name..[[.Character | |
758 | ]]) | |
759 | end | |
760 | ||
761 | --// Customization \\-- | |
762 | ||
763 | local Frame_Speed = 60 -- The frame speed for swait. 1 is automatically divided by this | |
764 | local Remove_Hats = false | |
765 | local Remove_Clothing = false | |
766 | local PlayerSize = 1 | |
767 | local DamageColor = BrickColor.new'Really black' | |
768 | local MusicID = 1564523997 | |
769 | local Pitch = 1 | |
770 | local VisSong = 511924043; | |
771 | ||
772 | local God = false | |
773 | local Muted = false | |
774 | ||
775 | local PrimaryParts = {} | |
776 | local SecondaryParts = {} | |
777 | ||
778 | local WalkSpeed = 16 | |
779 | ||
780 | local Mode = 1; | |
781 | ||
782 | --// Weapon and GUI creation, and Character Customization \\-- | |
783 | ||
784 | pcall(function()Char.LeftWing:destroy()end) | |
785 | pcall(function()Char.Halo:destroy()end) | |
786 | local toggleTag = true | |
787 | local txt = Instance.new("BillboardGui", PlrGui) | |
788 | txt.Adornee = Head | |
789 | txt.Name = "NameDetect" | |
790 | txt.Size = UDim2.new(4, 0, 1.2, 0) | |
791 | txt.StudsOffset = Vector3.new(-8, 8/1.5, 0) | |
792 | local text = Instance.new("TextLabel", txt) | |
793 | text.Size = UDim2.new(10/2, 0, 7/2, 0) | |
794 | text.FontSize = "Size8" | |
795 | text.TextScaled = true | |
796 | text.TextTransparency = 0 | |
797 | text.BackgroundTransparency = 1 | |
798 | text.TextTransparency = 0 | |
799 | text.TextStrokeTransparency = 0 | |
800 | text.Font = "Fantasy" | |
801 | text.TextStrokeColor3 = Color3.new(1,1,1) | |
802 | text.TextColor3 = Color3.new(0,0,0) | |
803 | text.Text = "Solitude" | |
804 | ||
805 | pcall(function() Char.ReaperShadowHead.Eye1.BrickColor = BrickColor.new'Really red' end) | |
806 | pcall(function() Char.ReaperShadowHead.Eye2.BrickColor = BrickColor.new'Really red' end) | |
807 | ||
808 | function RecolorTextAndRename(name,col1,col2) | |
809 | text.TextStrokeColor3 = col2 | |
810 | text.TextColor3 = col1 | |
811 | text.Text = name | |
812 | end | |
813 | ||
814 | New = function(Object, Parent, Name, Data) | |
815 | local Object = Instance.new(Object) | |
816 | for Index, Value in pairs(Data or {}) do | |
817 | Object[Index] = Value | |
818 | end | |
819 | Object.Parent = Parent | |
820 | Object.Name = Name | |
821 | return Object | |
822 | end | |
823 | ||
824 | local Feather = New("Model",nil,"Feather",{}) | |
825 | local Main = New("Part",Feather,"Main",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(-1.38499999, 33.7899933, -0.127610922, 1, 0, 0, 0, -1, 0, 0, 0, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
826 | local Meshie = New("SpecialMesh",Main,"Mesh",{MeshType = Enum.MeshType.Brick,}) | |
827 | local CrystalPart = New("Part",Feather,"CrystalPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(-1.38499999, 33.7899933, 0.144406915, 1, 0, 0, 0, -1, 0, 0, 0, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
828 | local Meshie = New("SpecialMesh",CrystalPart,"Mesh",{Scale = Vector3.new(1, 12.3999977, 10.999999),MeshType = Enum.MeshType.Brick,}) | |
829 | local mot = New("Motor",CrystalPart,"wald",{Part0 = CrystalPart,Part1 = Main,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 0, -0.272017837, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
830 | local CrystalPart = New("Part",Feather,"CrystalPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(-1.38499999, 33.7899933, -0.405595958, -1, 0, 0, 0, -1, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
831 | local Meshie = New("SpecialMesh",CrystalPart,"Mesh",{Scale = Vector3.new(1, 12.3999977, 10.999999),MeshType = Enum.MeshType.Brick,}) | |
832 | local mot = New("Motor",CrystalPart,"wald",{Part0 = CrystalPart,Part1 = Main,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 0, 0.277985036, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
833 | local CrystalPart = New("Part",Feather,"CrystalPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(-1.38499999, 32.7949944, -0.405595958, -1, 0, 0, 0, -1, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
834 | local Meshie = New("SpecialMesh",CrystalPart,"Mesh",{Scale = Vector3.new(1, 27.3999977, 10.999999),MeshType = Enum.MeshType.Wedge,}) | |
835 | local mot = New("Motor",CrystalPart,"wald",{Part0 = CrystalPart,Part1 = Main,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0, 1),C1 = CFrame.new(0, 0.994998932, 0.277985036, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
836 | local CrystalPart = New("Part",Feather,"CrystalPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(-1.38499999, 32.7949944, 0.144407034, 1, 0, 0, 0, -1, 0, 0, 0, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
837 | local Meshie = New("SpecialMesh",CrystalPart,"Mesh",{Scale = Vector3.new(1, 27.3999977, 10.999999),MeshType = Enum.MeshType.Wedge,}) | |
838 | local mot = New("Motor",CrystalPart,"wald",{Part0 = CrystalPart,Part1 = Main,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, 0.994998932, -0.272017956, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
839 | local CrystalPart = New("Part",Feather,"CrystalPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(-1.38499999, 34.7849922, -0.405595958, 1, 0, 0, 0, 1, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
840 | local Meshie = New("SpecialMesh",CrystalPart,"Mesh",{Scale = Vector3.new(1, 27.3999977, 10.999999),MeshType = Enum.MeshType.Wedge,}) | |
841 | local mot = New("Motor",CrystalPart,"wald",{Part0 = CrystalPart,Part1 = Main,C1 = CFrame.new(0, -0.994998932, 0.277985036, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
842 | local CrystalPart = New("Part",Feather,"CrystalPart",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007),CFrame = CFrame.new(-1.38499999, 34.7849922, 0.144407034, -1, 0, 0, 0, 1, 0, 0, 0, -1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),}) | |
843 | local Meshie = New("SpecialMesh",CrystalPart,"Mesh",{Scale = Vector3.new(1, 27.3999977, 10.999999),MeshType = Enum.MeshType.Wedge,}) | |
844 | local mot = New("Motor",CrystalPart,"wald",{Part0 = CrystalPart,Part1 = Main,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, -0.994998932, -0.272017956, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
845 | ||
846 | for _,v in next, Feather:children() do v.CanCollide = false v.BrickColor = BrickColor.new'Black' v.Material = Enum.Material.Neon v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) end | |
847 | ||
848 | local Core = New("Model",Char,"Core",{}) | |
849 | ||
850 | local Core1 = New("Part",Core,"Core1",{BrickColor = BrickColor.new("Black"),CanCollide=false,Material = Enum.Material.SmoothPlastic,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.5, 0.5, 1.04999959),CFrame = CFrame.new(-11.8130245, 33.4548035, 27.3183327, -8.05594027e-08, 8.28877091e-08, 1.00000942, 0.707106829, 0.707106829, 9.31322575e-10, -0.707110167, 0.707110226, 2.70083547e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) | |
851 | local CW1 = New("Motor",Core1,"CW1",{Part0 = Core1,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -3.09086197e-08, 0.707106769, -0.707106769, 3.09086197e-08, 0.707106769, 0.707106769, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.0409317017, 0.453670502, -0.00761127472, -0.0156120239, -4.36557457e-11, 0.999880552, -0.0062853382, 0.999980271, -9.81385238e-05, -0.999863088, -0.0062860758, -0.015611751),}) | |
852 | ||
853 | local Core2 = New("Part",Core,"Core2",{BrickColor = BrickColor.new("Black"),CanCollide=false,Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.349999994, 0.349999994, 1.06999981),CFrame = CFrame.new(-11.8130217, 33.4548035, 27.3183327, -8.05594027e-08, 8.28877091e-08, 1.00000942, 0.707106829, 0.707106829, 9.31322575e-10, -0.707110167, 0.707110226, 2.70083547e-08),BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.105882, 0.164706, 0.207843),}) | |
854 | local CW2 = New("Motor",Core2,"CW2",{Part0 = Core2,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -3.09086197e-08, 0.707106769, -0.707106769, 3.09086197e-08, 0.707106769, 0.707106769, 1, 0, -4.37113883e-08),C1 = CFrame.new(-0.0409317017, 0.453670502, -0.00761413574, -0.0156120239, -4.36557457e-11, 0.999880552, -0.0062853382, 0.999980271, -9.81385238e-05, -0.999863088, -0.0062860758, -0.015611751),}) | |
855 | ||
856 | local CoreH = NewInstance("Humanoid",Core,{MaxHealth=500,Health=500}) | |
857 | ||
858 | if(Remove_Hats)then Instance.ClearChildrenOfClass(Char,"Accessory",true) end | |
859 | if(Remove_Clothing)then Instance.ClearChildrenOfClass(Char,"Clothing",true) Instance.ClearChildrenOfClass(Char,"ShirtGraphic",true) end | |
860 | ||
861 | local Music = Sound(Char,MusicID,1,3,true,false,true) | |
862 | Music.Name = 'Music' | |
863 | ||
864 | if(PlayerSize ~= 1)then | |
865 | for _,v in next, Char:GetDescendants() do | |
866 | if(v:IsA'BasePart')then | |
867 | v.Size = v.Size * PlayerSize | |
868 | end | |
869 | end | |
870 | end | |
871 | ||
872 | local Halo = NewInstance("Model",Char,{Name='Halo'}) | |
873 | ||
874 | local LWing = NewInstance("Model",Char,{Name='LeftWing'}) | |
875 | local RWing = NewInstance("Model",Char,{Name='RightWing'}) | |
876 | ||
877 | local LWingEXT = NewInstance("Model",Char,{Name='LeftWingEXT'}) | |
878 | local RWingEXT = NewInstance("Model",Char,{Name='RightWingEXT'}) | |
879 | ||
880 | local LWingWelds = {} | |
881 | local RWingWelds = {} | |
882 | ||
883 | local LWingEWelds = {} | |
884 | local RWingEWelds = {} | |
885 | ||
886 | local HaloHandle = NewInstance("Part",Halo,{Size=V3.N(.05,.05,.05),Transparency=1,CanCollide=false,Anchored=false,Locked=true,}) | |
887 | local LWingHandle = NewInstance("Part",Char,{Size=V3.N(.05,.05,.05),Transparency=1,CanCollide=false,Anchored=false,Locked=true,}) | |
888 | local RWingHandle = NewInstance("Part",Char,{Size=V3.N(.05,.05,.05),Transparency=1,CanCollide=false,Anchored=false,Locked=true,}) | |
889 | ||
890 | for i = 1, 360,5 do | |
891 | local part = NewInstance("Part",Halo,{BrickColor=BrickColor.new"Black",Material=Enum.Material.Neon,Size=V3.N(0.25,0.1,0.1),Anchored=false,CanCollide=false,Locked=true}) | |
892 | local weld = NewInstance("Weld",part,{Part0=HaloHandle,Part1=part,C0=CF.A(0,M.R(i),0)*CF.N(0,0,-1)}) | |
893 | table.insert(PrimaryParts,part) | |
894 | end | |
895 | ||
896 | for i = 1, 6 do | |
897 | local cr = Part(Char,BrickColor.new'Black',Enum.Material.SmoothPlastic,V3.N(.05,.05,.05),CF.N(),false,false) | |
898 | cr.Transparency = 1 | |
899 | local fuck = Feather:Clone(); | |
900 | local men = fuck.Main | |
901 | --local mesh = Mesh(cr,Enum.MeshType.FileMesh,'rbxassetid://9756362','',V3.N(.75,2,.2),V3.N()) | |
902 | local weld1 = Weld(cr,men) | |
903 | local weld = Weld(men,LWingHandle) | |
904 | if(i > 3)then | |
905 | for _,v in next, fuck:children() do v.Parent = LWingEXT v.Transparency = 1 end | |
906 | else | |
907 | for _,v in next, fuck:children() do v.Parent = LWing end | |
908 | end | |
909 | ||
910 | table.insert(LWingWelds,weld) | |
911 | table.insert(PrimaryParts,cr) | |
912 | end | |
913 | ||
914 | for i = 1, 6 do | |
915 | local cr = Part(Char,BrickColor.new'Black',Enum.Material.SmoothPlastic,V3.N(.05,.05,.05),CF.N(),false,false) | |
916 | cr.Transparency = 1 | |
917 | local fuck = Feather:Clone(); | |
918 | local men = fuck.Main | |
919 | --local mesh = Mesh(cr,Enum.MeshType.FileMesh,'rbxassetid://9756362','',V3.N(.75,2,.2),V3.N()) | |
920 | local weld1 = Weld(cr,men) | |
921 | local weld = Weld(men,RWingHandle) | |
922 | ||
923 | if(i > 3)then | |
924 | for _,v in next, fuck:children() do v.Parent = RWingEXT if(v:IsA'BasePart')then v.Transparency = 1 end end | |
925 | else | |
926 | for _,v in next, fuck:children() do v.Parent = RWing if(v:IsA'BasePart')then v.Transparency = 1 end end | |
927 | end | |
928 | table.insert(RWingWelds,weld) | |
929 | table.insert(PrimaryParts,cr) | |
930 | end | |
931 | ||
932 | for _,v in next, PrimaryParts do | |
933 | if(v:IsA'BasePart')then | |
934 | v.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
935 | end | |
936 | end | |
937 | ||
938 | Core1.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
939 | Core2.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
940 | ||
941 | ||
942 | --// Stop animations \\-- | |
943 | for _,v in next, Hum:GetPlayingAnimationTracks() do | |
944 | v:Stop(); | |
945 | end | |
946 | ||
947 | pcall(game.Destroy,Char:FindFirstChild'Animate') | |
948 | pcall(game.Destroy,Hum:FindFirstChild'Animator') | |
949 | ||
950 | --// Joints \\-- | |
951 | ||
952 | local LS = NewInstance('Motor',Char,{Part0=Torso,Part1=LArm,C0 = CF.N(-1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)}) | |
953 | local RS = NewInstance('Motor',Char,{Part0=Torso,Part1=RArm,C0 = CF.N(1.5 * PlayerSize,0.5 * PlayerSize,0),C1 = CF.N(0,.5 * PlayerSize,0)}) | |
954 | local NK = NewInstance('Motor',Char,{Part0=Torso,Part1=Head,C0 = CF.N(0,1.5 * PlayerSize,0)}) | |
955 | local LH = NewInstance('Motor',Char,{Part0=Torso,Part1=LLeg,C0 = CF.N(-.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) | |
956 | local RH = NewInstance('Motor',Char,{Part0=Torso,Part1=RLeg,C0 = CF.N(.5 * PlayerSize,-1 * PlayerSize,0),C1 = CF.N(0,1 * PlayerSize,0)}) | |
957 | local RJ = NewInstance('Motor',Char,{Part0=Root,Part1=Torso}) | |
958 | local HW = NewInstance('Motor',Char,{Part0=Torso,Part1=HaloHandle,C0=CF.N(0,1.5,1.5)*CF.A(M.R(90),0,0)}) | |
959 | local LWW = NewInstance('Motor',Char,{Part0=Torso,Part1=LWingHandle,C0=CF.N(0,0,1.5)}) | |
960 | local RWW = NewInstance('Motor',Char,{Part0=Torso,Part1=RWingHandle,C0=CF.N(0,0,1.5)}) | |
961 | ||
962 | local LSC0 = LS.C0 | |
963 | local RSC0 = RS.C0 | |
964 | local NKC0 = NK.C0 | |
965 | local LHC0 = LH.C0 | |
966 | local RHC0 = RH.C0 | |
967 | local RJC0 = RJ.C0 | |
968 | ||
969 | --// Artificial HB \\-- | |
970 | ||
971 | local ArtificialHB = IN("BindableEvent", script) | |
972 | ArtificialHB.Name = "Heartbeat" | |
973 | ||
974 | script:WaitForChild("Heartbeat") | |
975 | ||
976 | local tf = 0 | |
977 | local allowframeloss = false | |
978 | local tossremainder = false | |
979 | local lastframe = tick() | |
980 | local frame = 1/Frame_Speed | |
981 | ArtificialHB:Fire() | |
982 | ||
983 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
984 | tf = tf + s | |
985 | if tf >= frame then | |
986 | if allowframeloss then | |
987 | script.Heartbeat:Fire() | |
988 | lastframe = tick() | |
989 | else | |
990 | for i = 1, math.floor(tf / frame) do | |
991 | ArtificialHB:Fire() | |
992 | end | |
993 | lastframe = tick() | |
994 | end | |
995 | if tossremainder then | |
996 | tf = 0 | |
997 | else | |
998 | tf = tf - frame * math.floor(tf / frame) | |
999 | end | |
1000 | end | |
1001 | end) | |
1002 | ||
1003 | function swait(num) | |
1004 | if num == 0 or num == nil then | |
1005 | ArtificialHB.Event:wait() | |
1006 | else | |
1007 | for i = 0, num do | |
1008 | ArtificialHB.Event:wait() | |
1009 | end | |
1010 | end | |
1011 | end | |
1012 | ||
1013 | ||
1014 | --// Effect Function(s) \\-- | |
1015 | ||
1016 | function NoobySphere(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,MeshId) | |
1017 | local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false) | |
1018 | local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N()) | |
1019 | if(Mode == 6 or Mode == 4 or Mode == 696969)then | |
1020 | fxP.Color = Core2.Color | |
1021 | end | |
1022 | local Scale = 1 | |
1023 | local speeder = Speed | |
1024 | if(Type == "Multiply")then | |
1025 | Scale = 1*Inc | |
1026 | elseif(Type == "Divide")then | |
1027 | Scale = 1/Inc | |
1028 | end | |
1029 | coroutine.wrap(function() | |
1030 | for i = 0,10/Lifetime,.1 do | |
1031 | if(Mode == 6 or Mode == 4 or Mode == 696969)then | |
1032 | fxP.Color = Core2.Color | |
1033 | end | |
1034 | ||
1035 | if(Type == "Multiply")then | |
1036 | Scale = Scale - 0.01*Inc/Lifetime | |
1037 | elseif(Type == "Divide")then | |
1038 | Scale = Scale - 0.01/Inc*Lifetime | |
1039 | end | |
1040 | speeder = speeder - 0.01*Speed*Lifetime | |
1041 | fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime | |
1042 | fxP.Transparency = fxP.Transparency + 0.01*Lifetime | |
1043 | fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, 0) | |
1044 | if(fxP.Transparency >= 1)then break end | |
1045 | swait() | |
1046 | end | |
1047 | fxP:destroy() | |
1048 | end)() | |
1049 | end | |
1050 | ||
1051 | function NoobySphere2(Lifetime,Type,Pos,StartSize,Inc,Color,MeshId,NotAffect) | |
1052 | local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos,true,false) | |
1053 | local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Sphere),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N()) | |
1054 | if(not NotAffect and (Mode == 6 or Mode == 4 or Mode == 696969))then | |
1055 | fxP.Color = Core2.Color | |
1056 | end | |
1057 | local Scale = 1 | |
1058 | if(Type == "Multiply")then | |
1059 | Scale = 1*Inc | |
1060 | elseif(Type == "Divide")then | |
1061 | Scale = 1/Inc | |
1062 | end | |
1063 | coroutine.wrap(function() | |
1064 | for i = 0,10/Lifetime,.1 do | |
1065 | if(not NotAffect and (Mode == 6 or Mode == 4 or Mode == 696969))then | |
1066 | fxP.Color = Core2.Color | |
1067 | end | |
1068 | ||
1069 | if(Type == "Multiply")then | |
1070 | Scale = Scale - 0.01*Inc/Lifetime | |
1071 | elseif(Type == "Divide")then | |
1072 | Scale = Scale - 0.01/Inc*Lifetime | |
1073 | end | |
1074 | fxP.Transparency = fxP.Transparency + 0.01*Lifetime | |
1075 | fxM.Scale = fxM.Scale + Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime) | |
1076 | swait() | |
1077 | end | |
1078 | fxP:destroy() | |
1079 | end)() | |
1080 | return fxP | |
1081 | end | |
1082 | ||
1083 | function NoobyBlock(Lifetime,Speed,Type,Pos,StartSize,Inc,Color,Range,Fade,MeshId) | |
1084 | local fxP = Part(Effects,Color,Enum.Material.Neon,V3.N(1,1,1),Pos+Pos.lookVector*Range,true,false) | |
1085 | local fxM = Mesh(fxP,(MeshId and Enum.MeshType.FileMesh or Enum.MeshType.Brick),(MeshId and "rbxassetid://"..MeshId or ""),"",StartSize,V3.N()) | |
1086 | if(Mode == 6 or Mode == 4 or Mode == 696969)then | |
1087 | fxP.Color = Core2.Color | |
1088 | end | |
1089 | local Scale = 1 | |
1090 | local speeder = Speed | |
1091 | if(Type == "Multiply")then | |
1092 | Scale = 1*Inc | |
1093 | elseif(Type == "Divide")then | |
1094 | Scale = 1/Inc | |
1095 | end | |
1096 | coroutine.wrap(function() | |
1097 | for i = 0,10/Lifetime,.1 do | |
1098 | if(Mode == 6 or Mode == 4 or Mode == 696969)then | |
1099 | fxP.Color = Core2.Color | |
1100 | end | |
1101 | if(Type == "Multiply")then | |
1102 | Scale = Scale - 0.01*Inc/Lifetime | |
1103 | elseif(Type == "Divide")then | |
1104 | Scale = Scale - 0.01/Inc*Lifetime | |
1105 | end | |
1106 | if(Fade)then | |
1107 | fxP.Transparency = i/(10/Lifetime) | |
1108 | end | |
1109 | speeder = speeder - 0.01*Speed*Lifetime/10 | |
1110 | fxP.CFrame = fxP.CFrame + fxP.CFrame.lookVector*speeder*Lifetime | |
1111 | fxM.Scale = fxM.Scale - Vector3.new(Scale*Lifetime, Scale*Lifetime, Scale*Lifetime) | |
1112 | swait() | |
1113 | end | |
1114 | fxP:destroy() | |
1115 | end)() | |
1116 | end | |
1117 | ||
1118 | function Bezier(startpos, pos2, pos3, endpos, t) | |
1119 | local A = startpos:lerp(pos2, t) | |
1120 | local B = pos2:lerp(pos3, t) | |
1121 | local C = pos3:lerp(endpos, t) | |
1122 | local lerp1 = A:lerp(B, t) | |
1123 | local lerp2 = B:lerp(C, t) | |
1124 | local cubic = lerp1:lerp(lerp2, t) | |
1125 | return cubic | |
1126 | end | |
1127 | ||
1128 | function SphereFX(duration,color,scale,pos,endScale,increment) | |
1129 | return Effect{ | |
1130 | Effect='ResizeAndFade', | |
1131 | Color=color, | |
1132 | Size=scale, | |
1133 | Mesh={MeshType=Enum.MeshType.Sphere}, | |
1134 | CFrame=pos, | |
1135 | FXSettings={ | |
1136 | EndSize=endScale, | |
1137 | EndIsIncrement=increment | |
1138 | } | |
1139 | } | |
1140 | end | |
1141 | ||
1142 | function BlastFX(duration,color,scale,pos,endScale,increment) | |
1143 | return Effect{ | |
1144 | Effect='ResizeAndFade', | |
1145 | Color=color, | |
1146 | Size=scale, | |
1147 | Mesh={MeshType=Enum.MeshType.FileMesh,MeshId='rbxassetid://20329976'}, | |
1148 | CFrame=pos, | |
1149 | FXSettings={ | |
1150 | EndSize=endScale, | |
1151 | EndIsIncrement=increment | |
1152 | } | |
1153 | } | |
1154 | end | |
1155 | ||
1156 | function BlockFX(duration,color,scale,pos,endScale,increment) | |
1157 | return Effect{ | |
1158 | Effect='ResizeAndFade', | |
1159 | Color=color, | |
1160 | Size=scale, | |
1161 | CFrame=pos, | |
1162 | FXSettings={ | |
1163 | EndSize=endScale, | |
1164 | EndIsIncrement=increment | |
1165 | } | |
1166 | } | |
1167 | end | |
1168 | ||
1169 | function ShootBullet(data) | |
1170 | --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10} | |
1171 | local Size = data.Size or V3.N(2,2,2) | |
1172 | local Color = data.Color or BrickColor.new'Crimson' | |
1173 | local StudsPerFrame = data.Speed or 10 | |
1174 | local Shape = data.Shape or 'Ball' | |
1175 | local Frames = data.Frames or 160 | |
1176 | local Pos = data.Origin or Torso.CFrame | |
1177 | local Direction = data.Direction or Mouse.Hit | |
1178 | local Material = data.Material or Enum.Material.Neon | |
1179 | local OnUpdate = data.Update or nil | |
1180 | local OnHit = data.HitFunction or function(hit,pos) | |
1181 | AOEDamage(pos,10,{MinimumDamage=25,MaximumDamage=60}) | |
1182 | Effect{ | |
1183 | Effect='ResizeAndFade', | |
1184 | Color=Color, | |
1185 | Size=V3.N(10,10,10), | |
1186 | Material=Enum.Material.Neon, | |
1187 | Mesh={MeshType=Enum.MeshType.Sphere}, | |
1188 | CFrame=CF.N(pos), | |
1189 | FXSettings={ | |
1190 | EndSize=V3.N(.05,.05,.05), | |
1191 | EndIsIncrement=true | |
1192 | } | |
1193 | } | |
1194 | for i = 1, 5 do | |
1195 | local angles = CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)) | |
1196 | Effect{ | |
1197 | Effect='Fade', | |
1198 | Frames=65, | |
1199 | Size=V3.N(5,5,10), | |
1200 | CFrame=CF.N(CF.N(pos)*angles*CF.N(0,0,-10).p,pos), | |
1201 | Mesh = {MeshType=Enum.MeshType.Sphere}, | |
1202 | Material=Enum.Material.Neon, | |
1203 | Color=Color, | |
1204 | MoveDirection=CF.N(CF.N(pos)*angles*CF.N(0,0,-50).p,pos).p, | |
1205 | } | |
1206 | end | |
1207 | end | |
1208 | ||
1209 | local Bullet = Part(Effects,Color,Material,Size,Pos,true,false) | |
1210 | local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N()) | |
1211 | if(Shape == 'Ball')then | |
1212 | BMesh.MeshType = Enum.MeshType.Sphere | |
1213 | elseif(Shape == 'Head')then | |
1214 | BMesh.MeshType = Enum.MeshType.Head | |
1215 | elseif(Shape == 'Cylinder')then | |
1216 | BMesh.MeshType = Enum.MeshType.Cylinder | |
1217 | end | |
1218 | ||
1219 | coroutine.wrap(function() | |
1220 | for i = 1, Frames+1 do | |
1221 | if(OnUpdate and typeof(OnUpdate) == 'function')then | |
1222 | OnUpdate(Bullet,BMesh,i) | |
1223 | end | |
1224 | local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame).p,StudsPerFrame) | |
1225 | if(hit)then | |
1226 | OnHit(hit,pos,norm,dist) | |
1227 | break; | |
1228 | else | |
1229 | Bullet.CFrame = CF.N(Bullet.CFrame.p,Direction.p)*CF.N(0,0,-StudsPerFrame) | |
1230 | end | |
1231 | swait() | |
1232 | end | |
1233 | Bullet:destroy() | |
1234 | end)() | |
1235 | ||
1236 | end | |
1237 | ||
1238 | function Puddle(hit,pos,norm,data) | |
1239 | local material = data.Material or Enum.Material.SmoothPlastic | |
1240 | local color = data.Color or BrickColor.new'Crimson' | |
1241 | local size = data.Size or 1 | |
1242 | ||
1243 | if(hit.Name ~= 'BloodPuddle')then | |
1244 | local Puddle = NewInstance('Part',workspace,{Material=material,BrickColor=color,Size=V3.N(size,.1,size),CFrame=CF.N(pos,pos+norm)*CF.A(90*M.P/180,0,0),Anchored=true,CanCollide=false,Archivable=false,Locked=true,Name='BloodPuddle'}) | |
1245 | local Cyl = NewInstance('CylinderMesh',Puddle,{Name='CylinderMesh'}) | |
1246 | BloodPuddles[Puddle] = 0 | |
1247 | else | |
1248 | local cyl = hit:FindFirstChild'CylinderMesh' | |
1249 | if(cyl)then | |
1250 | BloodPuddles[hit] = 0 | |
1251 | cyl.Scale = cyl.Scale + V3.N(size,0,size) | |
1252 | hit.Transparency = 0 | |
1253 | end | |
1254 | end | |
1255 | end | |
1256 | ||
1257 | function Droplet(data) | |
1258 | --ShootBullet{Size=V3.N(3,3,3),Shape='Ball',Frames=160,Origin=data.Circle.CFrame,Speed=10} | |
1259 | local Size = data.Size or 1 | |
1260 | local Color = data.Color or BrickColor.new'Crimson' | |
1261 | local StudsPerFrame = data.Speed or 1 | |
1262 | local Shape = data.Shape or 'Ball' | |
1263 | local Frames = (data.Frames or 160)+1 | |
1264 | local Pos = data.Origin or Root.CFrame | |
1265 | local Direction = data.Direction or Root.CFrame.lookVector*100000 | |
1266 | local Material = data.Material or Enum.Material.SmoothPlastic | |
1267 | local Drop = data.Drop or .05 | |
1268 | local Ignorelist = data.Ignorelist or nil | |
1269 | ||
1270 | local Bullet = Part(Effects,Color,Material,V3.N(Size,Size,Size),Pos,true,false) | |
1271 | local BMesh = Mesh(Bullet,Enum.MeshType.Brick,"","",V3.N(1,1,1),V3.N()) | |
1272 | if(Shape == 'Ball')then | |
1273 | BMesh.MeshType = Enum.MeshType.Sphere | |
1274 | elseif(Shape == 'Head')then | |
1275 | BMesh.MeshType = Enum.MeshType.Head | |
1276 | elseif(Shape == 'Cylinder')then | |
1277 | BMesh.MeshType = Enum.MeshType.Cylinder | |
1278 | end | |
1279 | ||
1280 | coroutine.wrap(function() | |
1281 | for i = 1, Frames do | |
1282 | Pos = Pos * CF.N(0,-(Drop*i),0) | |
1283 | local hit,pos,norm,dist = CastRay(Bullet.CFrame.p,CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)).p,StudsPerFrame) | |
1284 | if(hit and (not hit.Parent or not hit.Parent:FindFirstChildOfClass'Humanoid' and not hit.Parent:IsA'Accessory'))then | |
1285 | Puddle(hit,pos,norm,data) | |
1286 | break; | |
1287 | else | |
1288 | Bullet.CFrame = CF.N(Pos.p,Direction)*CF.N(0,0,-(StudsPerFrame*i)) | |
1289 | end | |
1290 | swait() | |
1291 | end | |
1292 | Bullet:destroy() | |
1293 | end)() | |
1294 | end | |
1295 | ||
1296 | function Zap(data) | |
1297 | local sCF,eCF = data.StartCFrame,data.EndCFrame | |
1298 | assert(sCF,"You need a start CFrame!") | |
1299 | assert(eCF,"You need an end CFrame!") | |
1300 | local parts = data.PartCount or 15 | |
1301 | local zapRot = data.ZapRotation or {-5,5} | |
1302 | local startThick = data.StartSize or 3; | |
1303 | local endThick = data.EndSize or startThick/2; | |
1304 | local color = data.Color or BrickColor.new'Electric blue' | |
1305 | local delay = data.Delay or 35 | |
1306 | local delayInc = data.DelayInc or 0 | |
1307 | local lastLightning; | |
1308 | local MagZ = (sCF.p - eCF.p).magnitude | |
1309 | local thick = startThick | |
1310 | local inc = (startThick/parts)-(endThick/parts) | |
1311 | ||
1312 | for i = 1, parts do | |
1313 | local pos = sCF.p | |
1314 | if(lastLightning)then | |
1315 | pos = lastLightning.CFrame*CF.N(0,0,MagZ/parts/2).p | |
1316 | end | |
1317 | delay = delay + delayInc | |
1318 | local zapPart = Part(Effects,color,Enum.Material.Neon,V3.N(thick,thick,MagZ/parts),CF.N(pos),true,false) | |
1319 | local posie = CF.N(pos,eCF.p)*CF.N(0,0,MagZ/parts).p+V3.N(M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot)),M.RNG(unpack(zapRot))) | |
1320 | if(parts == i)then | |
1321 | local MagZ = (pos-eCF.p).magnitude | |
1322 | zapPart.Size = V3.N(endThick,endThick,MagZ) | |
1323 | zapPart.CFrame = CF.N(pos, eCF.p)*CF.N(0,0,-MagZ/2) | |
1324 | Effect{Effect='ResizeAndFade',Size=V3.N(thick,thick,thick),CFrame=eCF*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),Color=color,Frames=delay*2,FXSettings={EndSize=V3.N(thick*8,thick*8,thick*8)}} | |
1325 | else | |
1326 | zapPart.CFrame = CF.N(pos,posie)*CF.N(0,0,MagZ/parts/2) | |
1327 | end | |
1328 | ||
1329 | lastLightning = zapPart | |
1330 | Effect{Effect='Fade',Manual=zapPart,Frames=delay} | |
1331 | ||
1332 | thick=thick-inc | |
1333 | ||
1334 | end | |
1335 | end | |
1336 | ||
1337 | function Zap2(data) | |
1338 | local Color = data.Color or BrickColor.new'Electric blue' | |
1339 | local StartPos = data.Start or Torso.Position | |
1340 | local EndPos = data.End or Mouse.Hit.p | |
1341 | local SegLength = data.SegL or 2 | |
1342 | local Thicc = data.Thickness or 0.5 | |
1343 | local Fades = data.Fade or 45 | |
1344 | local Parent = data.Parent or Effects | |
1345 | local MaxD = data.MaxDist or 200 | |
1346 | local Branch = data.Branches or false | |
1347 | local Material = data.Material or Enum.Material.Neon | |
1348 | local Raycasts = data.Raycasts or false | |
1349 | local Offset = data.Offset or {0,360} | |
1350 | local AddMesh = (data.Mesh == nil and true or data.Mesh) | |
1351 | if((StartPos-EndPos).magnitude > MaxD)then | |
1352 | EndPos = CF.N(StartPos,EndPos)*CF.N(0,0,-MaxD).p | |
1353 | end | |
1354 | local hit,pos,norm,dist=nil,EndPos,nil,(StartPos-EndPos).magnitude | |
1355 | if(Raycasts)then | |
1356 | hit,pos,norm,dist = CastRay(StartPos,EndPos,MaxD) | |
1357 | end | |
1358 | local segments = dist/SegLength | |
1359 | local model = IN("Model",Parent) | |
1360 | model.Name = 'Lightning' | |
1361 | local Last; | |
1362 | for i = 1, segments do | |
1363 | local size = (segments-i)/25 | |
1364 | local prt = Part(model,Color,Material,V3.N(Thicc+size,SegLength,Thicc+size),CF.N(),true,false) | |
1365 | if(AddMesh)then IN("CylinderMesh",prt) end | |
1366 | if(Last and math.floor(segments) == i)then | |
1367 | local MagZ = (Last.CFrame*CF.N(0,-SegLength/2,0).p-EndPos).magnitude | |
1368 | prt.Size = V3.N(Thicc+size,MagZ,Thicc+size) | |
1369 | prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,EndPos)*CF.A(M.R(90),0,0)*CF.N(0,-MagZ/2,0) | |
1370 | elseif(not Last)then | |
1371 | prt.CFrame = CF.N(StartPos,pos)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0) | |
1372 | else | |
1373 | prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,CF.N(pos)*CF.A(M.R(M.RNG(0,360)),M.R(M.RNG(0,360)),M.R(M.RNG(0,360)))*CF.N(0,0,SegLength/3+(segments-i)).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0) | |
1374 | end | |
1375 | Last = prt | |
1376 | if(Branch)then | |
1377 | local choice = M.RNG(1,7+((segments-i)*2)) | |
1378 | if(choice == 1)then | |
1379 | local LastB; | |
1380 | for i2 = 1,M.RNG(2,5) do | |
1381 | local size2 = ((segments-i)/35)/i2 | |
1382 | local prt = Part(model,Color,Material,V3.N(Thicc+size2,SegLength,Thicc+size2),CF.N(),true,false) | |
1383 | if(AddMesh)then IN("CylinderMesh",prt) end | |
1384 | if(not LastB)then | |
1385 | prt.CFrame = CF.N(Last.CFrame*CF.N(0,-SegLength/2,0).p,Last.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0) | |
1386 | else | |
1387 | prt.CFrame = CF.N(LastB.CFrame*CF.N(0,-SegLength/2,0).p,LastB.CFrame*CF.N(0,-SegLength/2,0)*CF.A(0,0,M.RRNG(0,360))*CF.N(0,Thicc*7,0)*CF.N(0,0,-1).p)*CF.A(M.R(90),0,0)*CF.N(0,-SegLength/2,0) | |
1388 | end | |
1389 | LastB = prt | |
1390 | end | |
1391 | end | |
1392 | end | |
1393 | end | |
1394 | if(Fades > 0)then | |
1395 | coroutine.wrap(function() | |
1396 | for i = 1, Fades do | |
1397 | for _,v in next, model:children() do | |
1398 | if(v:IsA'BasePart')then | |
1399 | v.Transparency = (i/Fades) | |
1400 | end | |
1401 | end | |
1402 | swait() | |
1403 | end | |
1404 | model:destroy() | |
1405 | end)() | |
1406 | else | |
1407 | S.Debris:AddItem(model,.01) | |
1408 | end | |
1409 | return {End=(Last and Last.CFrame*CF.N(0,-Last.Size.Y/2,0).p),Last=Last,Model=model} | |
1410 | end | |
1411 | ||
1412 | function Tween(obj,props,time,easing,direction,repeats,backwards) | |
1413 | local info = TweenInfo.new(time or .5, easing or Enum.EasingStyle.Quad, direction or Enum.EasingDirection.Out, repeats or 0, backwards or false) | |
1414 | local tween = S.TweenService:Create(obj, info, props) | |
1415 | ||
1416 | tween:Play() | |
1417 | end | |
1418 | ||
1419 | function Effect(data) | |
1420 | local FX = data.Effect or 'ResizeAndFade' | |
1421 | local Parent = data.Parent or Effects | |
1422 | local Color = data.Color or C3.N(0,0,0) | |
1423 | local Size = data.Size or V3.N(1,1,1) | |
1424 | local MoveDir = data.MoveDirection or nil | |
1425 | local MeshData = data.Mesh or nil | |
1426 | local SndData = data.Sound or nil | |
1427 | local Frames = data.Frames or 45 | |
1428 | local Manual = data.Manual or nil | |
1429 | local Material = data.Material or nil | |
1430 | local CFra = data.CFrame or Torso.CFrame | |
1431 | local Settings = data.FXSettings or {} | |
1432 | local Shape = data.Shape or Enum.PartType.Block | |
1433 | local Snd,Prt,Msh; | |
1434 | local RotInc = data.RotInc or {0,0,0} | |
1435 | if(typeof(RotInc) == 'number')then | |
1436 | RotInc = {RotInc,RotInc,RotInc} | |
1437 | end | |
1438 | coroutine.wrap(function() | |
1439 | if(Manual and typeof(Manual) == 'Instance' and Manual:IsA'BasePart')then | |
1440 | Prt = Manual | |
1441 | else | |
1442 | Prt = Part(Parent,Color,Material,Size,CFra,true,false) | |
1443 | Prt.Shape = Shape | |
1444 | end | |
1445 | if(typeof(MeshData) == 'table')then | |
1446 | Msh = Mesh(Prt,MeshData.MeshType,MeshData.MeshId,MeshData.TextureId,MeshData.Scale,MeshData.Offset) | |
1447 | elseif(typeof(MeshData) == 'Instance')then | |
1448 | Msh = MeshData:Clone() | |
1449 | Msh.Parent = Prt | |
1450 | elseif(Shape == Enum.PartType.Block)then | |
1451 | Msh = Mesh(Prt,Enum.MeshType.Brick) | |
1452 | end | |
1453 | if(typeof(SndData) == 'table' or typeof(SndData) == 'Instance')then | |
1454 | Snd = Sound(Prt,SndData.SoundId,SndData.Pitch,SndData.Volume,false,false,true) | |
1455 | end | |
1456 | if(Snd)then | |
1457 | repeat swait() until Snd.Playing and Snd.IsLoaded and Snd.TimeLength > 0 | |
1458 | Frames = Snd.TimeLength * Frame_Speed/Snd.Pitch | |
1459 | end | |
1460 | Size = (Msh and Msh.Scale or Size) | |
1461 | local grow = Size-(Settings.EndSize or (Msh and Msh.Scale or Size)/2) | |
1462 | ||
1463 | local MoveSpeed = nil; | |
1464 | if(MoveDir)then | |
1465 | MoveSpeed = (CFra.p - MoveDir).magnitude/Frames | |
1466 | end | |
1467 | if(FX ~= 'Arc')then | |
1468 | for Frame = 1, Frames do | |
1469 | if(FX == "Fade")then | |
1470 | Prt.Transparency = (Frame/Frames) | |
1471 | elseif(FX == "Resize")then | |
1472 | if(not Settings.EndSize)then | |
1473 | Settings.EndSize = V3.N(0,0,0) | |
1474 | end | |
1475 | if(Settings.EndIsIncrement)then | |
1476 | if(Msh)then | |
1477 | Msh.Scale = Msh.Scale + Settings.EndSize | |
1478 | else | |
1479 | Prt.Size = Prt.Size + Settings.EndSize | |
1480 | end | |
1481 | else | |
1482 | if(Msh)then | |
1483 | Msh.Scale = Msh.Scale - grow/Frames | |
1484 | else | |
1485 | Prt.Size = Prt.Size - grow/Frames | |
1486 | end | |
1487 | end | |
1488 | elseif(FX == "ResizeAndFade")then | |
1489 | if(not Settings.EndSize)then | |
1490 | Settings.EndSize = V3.N(0,0,0) | |
1491 | end | |
1492 | if(Settings.EndIsIncrement)then | |
1493 | if(Msh)then | |
1494 | Msh.Scale = Msh.Scale + Settings.EndSize | |
1495 | else | |
1496 | Prt.Size = Prt.Size + Settings.EndSize | |
1497 | end | |
1498 | else | |
1499 | if(Msh)then | |
1500 | Msh.Scale = Msh.Scale - grow/Frames | |
1501 | else | |
1502 | Prt.Size = Prt.Size - grow/Frames | |
1503 | end | |
1504 | end | |
1505 | Prt.Transparency = (Frame/Frames) | |
1506 | end | |
1507 | if(Settings.RandomizeCFrame)then | |
1508 | Prt.CFrame = Prt.CFrame * CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)) | |
1509 | else | |
1510 | Prt.CFrame = Prt.CFrame * CF.A(unpack(RotInc)) | |
1511 | end | |
1512 | if(MoveDir and MoveSpeed)then | |
1513 | local Orientation = Prt.Orientation | |
1514 | Prt.CFrame = CF.N(Prt.Position,MoveDir)*CF.N(0,0,-MoveSpeed) | |
1515 | Prt.Orientation = Orientation | |
1516 | end | |
1517 | swait() | |
1518 | end | |
1519 | Prt:destroy() | |
1520 | else | |
1521 | local start,third,fourth,endP = Settings.Start,Settings.Third,Settings.Fourth,Settings.End | |
1522 | if(not Settings.End and Settings.Home)then endP = Settings.Home.CFrame end | |
1523 | if(start and endP)then | |
1524 | local quarter = third or start:lerp(endP, 0.25) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
1525 | local threequarter = fourth or start:lerp(endP, 0.75) * CF.N(M.RNG(-25,25),M.RNG(0,25),M.RNG(-25,25)) | |
1526 | for Frame = 0, 1, (Settings.Speed or 0.01) do | |
1527 | if(Settings.Home)then | |
1528 | endP = Settings.Home.CFrame | |
1529 | end | |
1530 | Prt.CFrame = Bezier(start, quarter, threequarter, endP, Frame) | |
1531 | end | |
1532 | if(Settings.RemoveOnGoal)then | |
1533 | Prt:destroy() | |
1534 | end | |
1535 | else | |
1536 | Prt:destroy() | |
1537 | assert(start,"You need a start position!") | |
1538 | assert(endP,"You need a start position!") | |
1539 | end | |
1540 | end | |
1541 | end)() | |
1542 | return Prt,Msh,Snd | |
1543 | end | |
1544 | ||
1545 | ||
1546 | function SoulSteal(whom) | |
1547 | local torso = (whom:FindFirstChild'Head' or whom:FindFirstChild'Torso' or whom:FindFirstChild'UpperTorso' or whom:FindFirstChild'LowerTorso' or whom:FindFirstChild'HumanoidRootPart') | |
1548 | print(torso) | |
1549 | if(torso and torso:IsA'BasePart')then | |
1550 | local Model = Instance.new("Model",Effects) | |
1551 | Model.Name = whom.Name.."'s Soul" | |
1552 | whom:BreakJoints() | |
1553 | local Soul = Part(Model,BrickColor.new'Really red','Glass',V3.N(.5,.5,.5),torso.CFrame,true,false) | |
1554 | Soul.Name = 'Head' | |
1555 | NewInstance("Humanoid",Model,{Health=0,MaxHealth=0}) | |
1556 | Effect{ | |
1557 | Effect="Arc", | |
1558 | Manual = Soul, | |
1559 | FXSettings={ | |
1560 | Start=torso.CFrame, | |
1561 | Home = Torso, | |
1562 | RemoveOnGoal = true, | |
1563 | } | |
1564 | } | |
1565 | local lastPoint = Soul.CFrame.p | |
1566 | ||
1567 | for i = 0, 1, 0.01 do | |
1568 | local point = CFrame.new(lastPoint, Soul.Position) * CFrame.Angles(-math.pi/2, 0, 0) | |
1569 | local mag = (lastPoint - Soul.Position).magnitude | |
1570 | Effect{ | |
1571 | Effect = "Fade", | |
1572 | CFrame = point * CF.N(0, mag/2, 0), | |
1573 | Size = V3.N(.5,mag+.5,.5), | |
1574 | Color = Soul.BrickColor | |
1575 | } | |
1576 | lastPoint = Soul.CFrame.p | |
1577 | swait() | |
1578 | end | |
1579 | for i = 1, 5 do | |
1580 | Effect{ | |
1581 | Effect="Fade", | |
1582 | Color = BrickColor.new'Really red', | |
1583 | MoveDirection = (Torso.CFrame*CFrame.new(M.RNG(-40,40),M.RNG(-40,40),M.RNG(-40,40))).p | |
1584 | } | |
1585 | end | |
1586 | end | |
1587 | end | |
1588 | ||
1589 | --// Other Functions \\ -- | |
1590 | ||
1591 | function CastRay(startPos,endPos,range,ignoreList) | |
1592 | local ray = Ray.new(startPos,(endPos-startPos).unit*range) | |
1593 | local part,pos,norm = workspace:FindPartOnRayWithIgnoreList(ray,ignoreList or {Char},false,true) | |
1594 | return part,pos,norm,(pos and (startPos-pos).magnitude) | |
1595 | end | |
1596 | ||
1597 | function getRegion(point,range,ignore) | |
1598 | return workspace:FindPartsInRegion3WithIgnoreList(R3.N(point-V3.N(1,1,1)*range/2,point+V3.N(1,1,1)*range/2),ignore,100) | |
1599 | end | |
1600 | ||
1601 | function clerp(startCF,endCF,alpha) | |
1602 | return startCF:lerp(endCF, alpha) | |
1603 | end | |
1604 | ||
1605 | function GetTorso(char) | |
1606 | return char:FindFirstChild'Torso' or char:FindFirstChild'UpperTorso' or char:FindFirstChild'LowerTorso' or char:FindFirstChild'HumanoidRootPart' | |
1607 | end | |
1608 | ||
1609 | ||
1610 | function ShowDamage(Pos, Text, Time, Color) | |
1611 | coroutine.wrap(function() | |
1612 | local Rate = (1 / Frame_Speed) | |
1613 | local Pos = (Pos or Vector3.new(0, 0, 0)) | |
1614 | local Text = (Text or "") | |
1615 | local Time = (Time or 2) | |
1616 | local Color = (Color or Color3.new(1, 0, 1)) | |
1617 | local EffectPart = NewInstance("Part",Effects,{ | |
1618 | Material=Enum.Material.SmoothPlastic, | |
1619 | Reflectance = 0, | |
1620 | Transparency = 1, | |
1621 | BrickColor = BrickColor.new(Color), | |
1622 | Name = "Effect", | |
1623 | Size = Vector3.new(0,0,0), | |
1624 | Anchored = true, | |
1625 | CFrame = CF.N(Pos) | |
1626 | }) | |
1627 | local BillboardGui = NewInstance("BillboardGui",EffectPart,{ | |
1628 | Size = UDim2.new(1.25, 0, 1.25, 0), | |
1629 | Adornee = EffectPart, | |
1630 | }) | |
1631 | local TextLabel = NewInstance("TextLabel",BillboardGui,{ | |
1632 | BackgroundTransparency = 1, | |
1633 | Size = UDim2.new(1, 0, 1, 0), | |
1634 | Text = Text, | |
1635 | Font = "Bodoni", | |
1636 | TextColor3 = Color, | |
1637 | TextStrokeColor3 = Color3.new(0,0,0), | |
1638 | TextStrokeTransparency=0, | |
1639 | TextScaled = true, | |
1640 | }) | |
1641 | S.Debris:AddItem(EffectPart, (Time)) | |
1642 | EffectPart.Parent = workspace | |
1643 | delay(0, function() | |
1644 | Tween(EffectPart,{CFrame=CF.N(Pos)*CF.N(0,3,0)},Time,Enum.EasingStyle.Elastic,Enum.EasingDirection.Out) | |
1645 | local Frames = (Time / Rate) | |
1646 | for Frame = 1, Frames do | |
1647 | swait() | |
1648 | local Percent = (Frame / Frames) | |
1649 | TextLabel.TextTransparency = Percent | |
1650 | TextLabel.TextStrokeTransparency = Percent | |
1651 | end | |
1652 | if EffectPart and EffectPart.Parent then | |
1653 | EffectPart:Destroy() | |
1654 | end | |
1655 | end) end)() | |
1656 | end | |
1657 | ||
1658 | ||
1659 | function DealDamage(data) | |
1660 | local Who = data.Who; | |
1661 | local MinDam = data.MinimumDamage or 15; | |
1662 | local MaxDam = data.MaximumDamage or 30; | |
1663 | local MaxHP = data.MaxHP or 1e5; | |
1664 | ||
1665 | local DB = data.Debounce or .2; | |
1666 | ||
1667 | local CritData = data.Crit or {} | |
1668 | local CritChance = CritData.Chance or 0; | |
1669 | local CritMultiplier = CritData.Multiplier or 1; | |
1670 | ||
1671 | local DamageEffects = data.DamageFX or {} | |
1672 | local DamageType = DamageEffects.Type or "Normal" | |
1673 | local DeathFunction = DamageEffects.DeathFunction | |
1674 | ||
1675 | assert(Who,"Specify someone to damage!") | |
1676 | ||
1677 | local Humanoid = Who:FindFirstChildOfClass'Humanoid' | |
1678 | local DoneDamage = M.RNG(MinDam,MaxDam) * (M.RNG(1,100) <= CritChance and CritMultiplier or 1) | |
1679 | ||
1680 | local canHit = true | |
1681 | if(Humanoid)then | |
1682 | for _, p in pairs(Hit) do | |
1683 | if p[1] == Humanoid then | |
1684 | if(time() - p[2] <= DB) then | |
1685 | canHit = false | |
1686 | else | |
1687 | Hit[_] = nil | |
1688 | end | |
1689 | end | |
1690 | end | |
1691 | if(canHit)then | |
1692 | table.insert(Hit,{Humanoid,time()}) | |
1693 | local HitTorso = GetTorso(Who) | |
1694 | local player = S.Players:GetPlayerFromCharacter(Who) | |
1695 | if(not player or not DontAttackPlayers and player.UserId ~= 5719877 and player.UserId ~= 61573184 and player.UserId ~= 19081129)then | |
1696 | if(Humanoid.MaxHealth >= MaxHP and Humanoid.Health > 0)then | |
1697 | print'Got kill' | |
1698 | Humanoid.Health = 0; | |
1699 | Who:BreakJoints(); | |
1700 | if(DeathFunction)then DeathFunction(Who,Humanoid) end | |
1701 | else | |
1702 | local c = Instance.new("ObjectValue",Hum) | |
1703 | c.Name = "creator" | |
1704 | c.Value = Plr | |
1705 | S.Debris:AddItem(c,0.35) | |
1706 | if(Humanoid.Health > 0)then | |
1707 | if(Mode == 9 and not Radioactive[Who])then | |
1708 | Radioactive[Who] = {0,M.RNG(time()+4,time()+14)} | |
1709 | end | |
1710 | if(Who:FindFirstChild'Head')then | |
1711 | ShowDamage((Who.Head.CFrame * CF.N(0, 0, (Who.Head.Size.Z / 2)).p+V3.N(0,1.5,0)+V3.N(M.RNG(-2,2),0,M.RNG(-2,2))), math.floor(DoneDamage), 1.5, Core2.Color) | |
1712 | end | |
1713 | if(Humanoid.Health-DoneDamage <= 0)then print'Got kill' if(DeathFunction)then DeathFunction(Who,Humanoid) end end | |
1714 | Humanoid.Health = Humanoid.Health - DoneDamage | |
1715 | end | |
1716 | ||
1717 | if(DamageType == 'Knockback' and HitTorso)then | |
1718 | local up = DamageEffects.KnockUp or 25 | |
1719 | local back = DamageEffects.KnockBack or 25 | |
1720 | local origin = DamageEffects.Origin or Root | |
1721 | local decay = DamageEffects.Decay or .5; | |
1722 | ||
1723 | local bfos = Instance.new("BodyVelocity",HitTorso) | |
1724 | bfos.P = 20000 | |
1725 | bfos.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1726 | bfos.Velocity = Vector3.new(0,up,0) + (origin.CFrame.lookVector * back) | |
1727 | S.Debris:AddItem(bfos,decay) | |
1728 | end | |
1729 | end | |
1730 | end | |
1731 | end | |
1732 | end | |
1733 | end | |
1734 | ||
1735 | function AOEDamage(where,range,options) | |
1736 | local hit = {} | |
1737 | for _,v in next, getRegion(where,range,{Char}) do | |
1738 | if(v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' and not hit[v.Parent])then | |
1739 | local callTable = {Who=v.Parent} | |
1740 | hit[v.Parent] = true | |
1741 | for _,v in next, options do callTable[_] = v end | |
1742 | DealDamage(callTable) | |
1743 | end | |
1744 | end | |
1745 | return hit | |
1746 | end | |
1747 | ||
1748 | function AOEHeal(where,range,amount) | |
1749 | local healed = {} | |
1750 | for _,v in next, getRegion(where,range,{Char}) do | |
1751 | local hum = (v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil) | |
1752 | if(hum and not healed[hum])then | |
1753 | hum.Health = hum.Health + amount | |
1754 | if(v.Parent:FindFirstChild'Head' and hum.Health > 0)then | |
1755 | ShowDamage((v.Parent.Head.CFrame * CF.N(0, 0, (v.Parent.Head.Size.Z / 2)).p+V3.N(0,1.5,0)), "+"..amount, 1.5, BrickColor.new'Lime green'.Color) | |
1756 | end | |
1757 | end | |
1758 | end | |
1759 | end | |
1760 | ||
1761 | --// Chat Function \\-- | |
1762 | ||
1763 | function Chat(text,color) | |
1764 | coroutine.wrap(function() | |
1765 | if(Char:FindFirstChild'ChatGUI')then Char.ChatGUI:destroy() end | |
1766 | local BBG = NewInstance("BillboardGui",Char,{Name='ChatGUI',Size=UDim2.new(0,100,0,40),StudsOffset=V3.N(0,3,0),Adornee=Head}) | |
1767 | local offset = 0; | |
1768 | local xsize = 0; | |
1769 | for i = 1, #text do | |
1770 | offset = offset - 16 | |
1771 | xsize = xsize + 32 | |
1772 | delay(i/25, function() | |
1773 | local Txt = NewInstance("TextLabel",BBG,{Text = text:sub(i,i),Position=UDim2.new(0,0,0,300),BackgroundTransparency=1,TextColor3=(typeof(color) == 'string' and color:lower() == 'rainbow' and C3.HSV(Hue/360,1,1)) or color or Core2.Color,BorderSizePixel=0,Font=Enum.Font.Garamond,TextSize=40,TextStrokeTransparency=1,Size=UDim2.new(1,0,.5,0)}) | |
1774 | offset = offset + 32 | |
1775 | if(Txt.Parent)then Txt:TweenPosition(UDim2.new(0,offset,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Elastic,1) end | |
1776 | end) | |
1777 | end | |
1778 | BBG.Size = UDim2.new(0,xsize,0,40) | |
1779 | delay((#text/25)+3, function() | |
1780 | for _,v in next, BBG:children() do | |
1781 | v:TweenPosition(UDim2.new(0,0,0,0),Enum.EasingDirection.In,Enum.EasingStyle.Linear,1) | |
1782 | end | |
1783 | wait(1.15) | |
1784 | BBG:destroy() | |
1785 | end) | |
1786 | end)() | |
1787 | end | |
1788 | ||
1789 | ||
1790 | --// Everything else \\-- | |
1791 | ||
1792 | function ClickGlitch() | |
1793 | Attack = true | |
1794 | NeutralAnims = false | |
1795 | local oWS = WalkSpeed | |
1796 | WalkSpeed = 0 | |
1797 | Hum.JumpPower = 0 | |
1798 | Hum.AutoRotate = false | |
1799 | Root.CFrame = CF.N(Root.CFrame.p,CF.N(Mouse.Hit.x,Root.CFrame.y,Mouse.Hit.z).p) | |
1800 | for i = 0, 2, 0.1 do | |
1801 | swait() | |
1802 | local Alpha = .3 | |
1803 | Root.CFrame = CF.N(Root.CFrame.p,CF.N(Mouse.Hit.x,Root.CFrame.y,Mouse.Hit.z).p) | |
1804 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00417825999, 0.00628786907, -0.00260206894, 0.513858557, -0.00539401267, -0.857858002, 1.84496116e-06, 0.99998033, -0.00628653914, 0.85787499, 0.00322880922, 0.513848424),Alpha) | |
1805 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496490777, -0.990816116, 0.0216251202, 0.500402868, 0, 0.865792811, -0.00544379698, 0.99998033, 0.00314635527, -0.865775645, -0.00628764462, 0.500392973),Alpha) | |
1806 | RH.C0 = clerp(RH.C0,CFrame.new(0.49852562, -0.990978837, 0.0154569345, 0.500402868, 0, 0.865792811, -0.00544379698, 0.99998033, 0.00314635527, -0.865775645, -0.00628764462, 0.500392973),Alpha) | |
1807 | LS.C0 = clerp(LS.C0,CFrame.new(-1.30906916, 0.822547674, -0.226739705, -0.481323838, 0.719669759, -0.500402868, -0.832959116, -0.55330795, 0.00544379698, -0.272959113, 0.419435322, 0.865775645),Alpha) | |
1808 | RS.C0 = clerp(RS.C0,CFrame.new(1.35554826, 0.564801514, -0.116690002, 0.84398663, -0.312275827, 0.436085641, 0.311970115, 0.94716835, 0.074478887, -0.43630439, 0.0731864721, 0.896817923),Alpha) | |
1809 | NK.C0 = clerp(NK.C0,CFrame.new(-7.85058364e-06, 1.49894369, -0.0143952277, 0.500402868, 0, 0.865792811, -0.00544379698, 0.99998033, 0.00314635527, -0.865775645, -0.00628764462, 0.500392973),Alpha) | |
1810 | end | |
1811 | Sound(LArm,217767125,M.RNG(75,125)/100,10,false,true,true) | |
1812 | Effect{ | |
1813 | Effect='Fade', | |
1814 | Size=V3.N(1,1,1), | |
1815 | CFrame=LArm.CFrame*CF.N(0,-1,0)*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)), | |
1816 | Color=Core2.Color, | |
1817 | Material=Enum.Material.Neon, | |
1818 | FXSettings = { | |
1819 | RandomizeCFrame=true | |
1820 | } | |
1821 | } | |
1822 | coroutine.wrap(function() | |
1823 | local MousePos = Mouse.Hit | |
1824 | local effect = Part(Effects,Core2.Color,Enum.Material.Neon,V3.N(2.5,2.5,2.5),MousePos,true,false) | |
1825 | for i = 0, 6, .1 do | |
1826 | effect.Color = Core2.Color | |
1827 | MousePos = MousePos * CF.N(M.RNG(-15,15)/100,M.RNG(-15,15)/100,M.RNG(-15,15)/100) | |
1828 | effect.CFrame = MousePos*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)) | |
1829 | effect.Size = V3.N(2.5,2.5,2.5)+V3.N(M.RNG(-150,150)/100,M.RNG(-150,150)/100,M.RNG(-150,150)/100) | |
1830 | swait() | |
1831 | end | |
1832 | AOEDamage(MousePos.p,30,{MinimumDamage=30,MaximumDamage=75}) | |
1833 | for i = 0, 3, .1 do | |
1834 | effect.Color = Core2.Color | |
1835 | effect.CFrame = MousePos*CF.A(M.RRNG(0,360),M.RRNG(0,360),M.RRNG(0,360)) | |
1836 | effect.Size = effect.Size + V3.N(1,1,1) | |
1837 | effect.Transparency = i/3 | |
1838 | swait() | |
1839 | end | |
1840 | effect:destroy() | |
1841 | ||
1842 | end)() | |
1843 | for i = 0, 1, 0.1 do | |
1844 | swait() | |
1845 | local Alpha = .3 | |
1846 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00417744182, 0.00628787512, -0.00260255905, 0.513858557, -0.00539401267, -0.857858002, 1.84496116e-06, 0.99998033, -0.00628653914, 0.85787499, 0.00322880922, 0.513848424),Alpha) | |
1847 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496490777, -0.990816116, 0.0216251202, 0.500402868, 0, 0.865792811, -0.00544379698, 0.99998033, 0.00314635527, -0.865775645, -0.00628764462, 0.500392973),Alpha) | |
1848 | RH.C0 = clerp(RH.C0,CFrame.new(0.49852562, -0.990978837, 0.0154569345, 0.500402868, 0, 0.865792811, -0.00544379698, 0.99998033, 0.00314635527, -0.865775645, -0.00628764462, 0.500392973),Alpha) | |
1849 | LS.C0 = clerp(LS.C0,CFrame.new(-1.12360537, 0.516349316, -0.117619619, -0.715893924, 0.486921966, -0.500402868, -0.56499064, -0.825079441, 0.00544379698, -0.410221368, 0.28662011, 0.865775645),Alpha) | |
1850 | RS.C0 = clerp(RS.C0,CFrame.new(1.35554826, 0.564801514, -0.116690002, 0.84398663, -0.312275827, 0.436085641, 0.311970115, 0.94716835, 0.074478887, -0.43630439, 0.0731864721, 0.896817923),Alpha) | |
1851 | NK.C0 = clerp(NK.C0,CFrame.new(-7.85058364e-06, 1.49894369, -0.0143952277, 0.500402868, 0, 0.865792811, -0.00544379698, 0.99998033, 0.00314635527, -0.865775645, -0.00628764462, 0.500392973),Alpha) | |
1852 | end | |
1853 | for i = 0, 1, 0.1 do | |
1854 | swait() | |
1855 | local Alpha = .3 | |
1856 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00417825999, 0.00628786907, -0.00260206894, 0.513858557, -0.00539401267, -0.857858002, 1.84496116e-06, 0.99998033, -0.00628653914, 0.85787499, 0.00322880922, 0.513848424),Alpha) | |
1857 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496490777, -0.990816116, 0.0216251202, 0.500402868, 0, 0.865792811, -0.00544379698, 0.99998033, 0.00314635527, -0.865775645, -0.00628764462, 0.500392973),Alpha) | |
1858 | RH.C0 = clerp(RH.C0,CFrame.new(0.49852562, -0.990978837, 0.0154569345, 0.500402868, 0, 0.865792811, -0.00544379698, 0.99998033, 0.00314635527, -0.865775645, -0.00628764462, 0.500392973),Alpha) | |
1859 | LS.C0 = clerp(LS.C0,CFrame.new(-1.30906916, 0.822547674, -0.226739705, -0.481323838, 0.719669759, -0.500402868, -0.832959116, -0.55330795, 0.00544379698, -0.272959113, 0.419435322, 0.865775645),Alpha) | |
1860 | RS.C0 = clerp(RS.C0,CFrame.new(1.35554826, 0.564801514, -0.116690002, 0.84398663, -0.312275827, 0.436085641, 0.311970115, 0.94716835, 0.074478887, -0.43630439, 0.0731864721, 0.896817923),Alpha) | |
1861 | NK.C0 = clerp(NK.C0,CFrame.new(-7.85058364e-06, 1.49894369, -0.0143952277, 0.500402868, 0, 0.865792811, -0.00544379698, 0.99998033, 0.00314635527, -0.865775645, -0.00628764462, 0.500392973),Alpha) | |
1862 | end | |
1863 | WalkSpeed = oWS | |
1864 | Hum.JumpPower = 50 | |
1865 | Hum.AutoRotate = true | |
1866 | Attack = false | |
1867 | NeutralAnims = true | |
1868 | end | |
1869 | ||
1870 | function PureBomb() | |
1871 | Attack = true | |
1872 | NeutralAnims = false | |
1873 | local orb = Part(Effects,BrickColor.new'Baby blue',Enum.Material.Neon,V3.N(1,1,1),RArm.CFrame*CF.N(0,-1,0),true,false) | |
1874 | local orbM = Mesh(orb,Enum.MeshType.Sphere,"","",V3.N(.1,.1,.1)) | |
1875 | local Scale = 0.1 | |
1876 | local Pos = 0 | |
1877 | Hum.AutoRotate = false | |
1878 | Sound(orb,136007472,1,5,false,true,true) | |
1879 | for i = 0, 10, 0.1 do | |
1880 | Scale = Scale + .05 | |
1881 | orb.CFrame = RArm.CFrame*CF.N(0,-0.5-(Scale/1.5),0) | |
1882 | Root.CFrame = CF.N(Root.CFrame.p,CF.N(Mouse.Hit.x,Root.CFrame.y,Mouse.Hit.z).p) | |
1883 | orbM.Scale = V3.N(Scale,Scale,Scale) | |
1884 | NoobySphere(4,-.1,'Multiply',orb.CFrame*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),V3.N(1,1,1),0,BrickColor.new'Baby blue',5) | |
1885 | swait() | |
1886 | local Alpha = .3 | |
1887 | RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
1888 | LH.C0 = clerp(LH.C0,CFrame.new(-0.49648428, -0.990819931, 0.0216189958, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
1889 | RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990974903, 0.0154631026, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
1890 | LS.C0 = clerp(LS.C0,CFrame.new(-1.42302692, 0.493415803, -0.00359773822, 0.940765917, 0.153064445, 0.30254063, -0.162465662, 0.986695945, 0.00599612948, -0.297597915, -0.0547934212, 0.953117669),Alpha) | |
1891 | RS.C0 = clerp(RS.C0,CFrame.new(1.49654758, 0.678199768, 0.0230993181, 0.85657078, -0.45250088, 0.248051316, -0.450519741, -0.89016372, -0.0681223199, 0.251631737, -0.0534004271, -0.966348767),Alpha) | |
1892 | NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894738, -0.0144004971, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha) | |
1893 | end | |
1894 | for i = 0, 2, 0.1 do | |
1895 | swait() | |
1896 | orb.CFrame = RArm.CFrame*CF.N(0,-0.5-(Scale/1.5),0) | |
1897 | Root.CFrame = CF.N(Root.CFrame.p,CF.N(Mouse.Hit.x,Root.CFrame.y,Mouse.Hit.z).p) | |
1898 | local Alpha = .3 | |
1899 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00196742709, 0.00628469, -0.000496770546, 0.917528987, -0.00250149658, -0.39766106, 8.55154781e-07, 0.999980211, -0.00628842553, 0.397668958, 0.00576947257, 0.917510867),Alpha) | |
1900 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496482432, -0.990816116, 0.0216121897, 0.911208749, 0, 0.411944896, -0.00259129796, 0.999980211, 0.00573186669, -0.41193673, -0.006290399, 0.911190748),Alpha) | |
1901 | RH.C0 = clerp(RH.C0,CFrame.new(0.4985466, -0.990978718, 0.0154598281, 0.911208749, 0, 0.411944896, -0.00259129796, 0.999980211, 0.00573186669, -0.41193673, -0.006290399, 0.911190748),Alpha) | |
1902 | LS.C0 = clerp(LS.C0,CFrame.new(-1.49955761, 0.50005585, 0.0206508823, 0.931618989, 0, 0.363436669, -0.00228616199, 0.999980211, 0.0058602551, -0.363429457, -0.006290399, 0.931600571),Alpha) | |
1903 | RS.C0 = clerp(RS.C0,CFrame.new(1.42403603, 0.783231854, 0.129635245, 0.955871105, -0.233268648, 0.178595126, -0.293628395, -0.738623917, 0.60680896, -0.00963485241, -0.63247174, -0.774523556),Alpha) | |
1904 | NK.C0 = clerp(NK.C0,CFrame.new(3.81190921e-06, 1.49893928, -0.0144081786, 1, -1.86264515e-09, 0, 0, 0.99796468, 0.0637704432, 2.98023224e-08, -0.0637704507, 0.997964561),Alpha) | |
1905 | end | |
1906 | Sound(Root,260433768,1,5.25,false,true,true) | |
1907 | ShootBullet{Size=V3.N(Scale,Scale,Scale),Shape='Ball',Frames=320,Origin=orb.CFrame,Speed=5,Color=BrickColor.new'Baby blue',HitFunction = function(hit,pos) | |
1908 | local snd, part = SoundPart(151304356,1,5.25,false,true,true,CF.N(pos)) | |
1909 | AOEDamage(pos,Scale*4,{MinimumDamage=25,MaximumDamage=60}) | |
1910 | Effect{ | |
1911 | Effect='ResizeAndFade', | |
1912 | Color=BrickColor.new'Baby blue', | |
1913 | Size=V3.N(Scale*2,Scale*2,Scale*2), | |
1914 | Material=Enum.Material.Neon, | |
1915 | Mesh={MeshType=Enum.MeshType.Sphere}, | |
1916 | CFrame=CF.N(pos), | |
1917 | FXSettings={ | |
1918 | EndSize=V3.N(.1,.1,.1), | |
1919 | EndIsIncrement=true | |
1920 | } | |
1921 | } | |
1922 | Effect{ | |
1923 | Effect='ResizeAndFade', | |
1924 | Color=BrickColor.new'Pastel light blue', | |
1925 | Size=V3.N(Scale*1.5,Scale*1.5,Scale*1.5), | |
1926 | Material=Enum.Material.Neon, | |
1927 | Mesh={MeshType=Enum.MeshType.Sphere}, | |
1928 | CFrame=CF.N(pos), | |
1929 | FXSettings={ | |
1930 | EndSize=V3.N(.1,.1,.1), | |
1931 | EndIsIncrement=true | |
1932 | } | |
1933 | } | |
1934 | for i = 0, 49 do | |
1935 | NoobyBlock(1,M.RNG(1,10)/2,"Multiply",CF.N(pos)*CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)),V3.N(4,4,4),0.08,BrickColor.new('Pastel light blue'),0,true) | |
1936 | end | |
1937 | for i = 0, 9 do | |
1938 | NoobySphere(1,2.5,"Multiply",CF.N(pos)*CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)),V3.N(5,5,50),-0.05,BrickColor.new'Baby blue',0) | |
1939 | NoobySphere(2,5,"Multiply",CF.N(pos)*CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)),V3.N(5,5,50),-0.05,BrickColor.new'Pastel light blue',0) | |
1940 | end | |
1941 | end} | |
1942 | orb:destroy() | |
1943 | for i = 0, 1, 0.1 do | |
1944 | swait() | |
1945 | Root.CFrame = CF.N(Root.CFrame.p,CF.N(Mouse.Hit.x,Root.CFrame.y,Mouse.Hit.z).p) | |
1946 | local Alpha = .3 | |
1947 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00500682555, 0.00628831051, 0.00120097224, 0.92018038, 0.00246177102, 0.391486853, -8.42089548e-07, 0.99998033, -0.0062861559, -0.391494602, 0.00578406826, 0.920162261),Alpha) | |
1948 | LH.C0 = clerp(LH.C0,CFrame.new(-0.498779386, -1.00248599, -0.124541134, 0.959937453, -0.00228470936, 0.280205488, -0.0405473076, 0.988310218, 0.146966696, -0.277265698, -0.152440399, 0.94862318),Alpha) | |
1949 | RH.C0 = clerp(RH.C0,CFrame.new(0.539460897, -1.00021362, -0.107664183, 0.949007154, 0.0409194157, -0.312587768, 0.00198236411, 0.990746439, 0.135712415, 0.31524843, -0.129411712, 0.940144241),Alpha) | |
1950 | LS.C0 = clerp(LS.C0,CFrame.new(-1.41884661, 0.577570677, -0.000329867005, 0.959363103, 0.138315558, 0.245949864, -0.144226983, 0.989526033, 0.00609558355, -0.242530614, -0.041320473, 0.969263554),Alpha) | |
1951 | RS.C0 = clerp(RS.C0,CFrame.new(1.3995322, 0.560555339, 0.0217598975, 0.860549986, -0.340243995, 0.379061729, 0.396351576, -0.0201387759, -0.917877972, 0.319936305, 0.940121651, 0.117525801),Alpha) | |
1952 | NK.C0 = clerp(NK.C0,CFrame.new(-1.91013669e-06, 1.4989413, -0.0144026726, 1, -1.86264515e-09, 0, 2.32830644e-10, 0.997965097, 0.0637654439, -2.98023224e-08, -0.0637654439, 0.997965038),Alpha) | |
1953 | end | |
1954 | ||
1955 | Hum.AutoRotate = true | |
1956 | ||
1957 | Attack = false | |
1958 | NeutralAnims = true | |
1959 | end | |
1960 | ||
1961 | function Aeroplane() | |
1962 | Attack = true | |
1963 | NeutralAnims = false | |
1964 | NoobySphere2(3,'Multiply',Root.CFrame,V3.N(2,2,2),.5,BrickColor.new'White') | |
1965 | local rad = 0 | |
1966 | for i = 0, 3, 0.1 do | |
1967 | AOEDamage(Root.CFrame.p,4,{MinimumDamage=15,MaximumDamage=30}) | |
1968 | swait() | |
1969 | Root.Velocity = Root.CFrame.lookVector*(350-(i*66)) | |
1970 | local Alpha = .3 | |
1971 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00760343159, 1, -0.486851215, 0.99976027, -0.0157056805, -0.0152531685, 0.0156109696, 0.022916859, 0.99961555, -0.0153500848, -0.99961406, 0.0231565442),Alpha) | |
1972 | LH.C0 = clerp(LH.C0,CFrame.new(-0.494159192, -0.989393592, 0.0215745792, 0.998326361, 0.0556856021, 0.0156117883, -0.0557892919, 0.998422861, 0.00628646836, -0.0152371004, -0.00714691728, 0.999858439),Alpha) | |
1973 | RH.C0 = clerp(RH.C0,CFrame.new(0.467966676, -0.990411818, 0.015948534, 0.997011065, -0.0756644681, 0.0156140458, 0.0755743459, 0.99712044, 0.00628457591, -0.0160446018, -0.00508577004, 0.999858439),Alpha) | |
1974 | LS.C0 = clerp(LS.C0,CFrame.new(-1.48234439, 0.488731831, 0.0204298086, 1.08988024e-06, 0.999878109, 0.0156131675, -0.999979973, -9.79125834e-05, 0.00634019636, 0.00634095073, -0.0156128611, 0.999858081),Alpha) | |
1975 | RS.C0 = clerp(RS.C0,CFrame.new(1.44239902, 0.478527635, -0.0251723044, 0.000173310371, -0.999878168, 0.0156102739, 0.999979973, 0.00027231226, 0.00634019636, -0.00634367391, 0.0156088611, 0.999858141),Alpha) | |
1976 | NK.C0 = clerp(NK.C0,CFrame.new(5.21446054e-06, 1.48825693, 0.499068856, 1, -4.4076296e-07, 3.08027957e-05, 2.98316445e-05, 0.26330927, -0.964711607, -7.68547761e-06, 0.964711607, 0.26330927),Alpha) | |
1977 | end | |
1978 | for i = 0, 18, 0.1 do | |
1979 | AOEDamage(Root.CFrame.p,4,{MinimumDamage=15,MaximumDamage=30}) | |
1980 | swait() | |
1981 | rad = rad + .1 | |
1982 | local Alpha = .3 | |
1983 | Root.Velocity = Root.CFrame.lookVector*150 | |
1984 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00760343159, 1, -0.486851215, 0.99976027, -0.0157056805, -0.0152531685, 0.0156109696, 0.022916859, 0.99961555, -0.0153500848, -0.99961406, 0.0231565442)*CF.A(0,M.R((rad*360)),0),Alpha) | |
1985 | LH.C0 = clerp(LH.C0,CFrame.new(-0.494159192, -0.989393592, 0.0215745792, 0.998326361, 0.0556856021, 0.0156117883, -0.0557892919, 0.998422861, 0.00628646836, -0.0152371004, -0.00714691728, 0.999858439),Alpha) | |
1986 | RH.C0 = clerp(RH.C0,CFrame.new(0.467966676, -0.990411818, 0.015948534, 0.997011065, -0.0756644681, 0.0156140458, 0.0755743459, 0.99712044, 0.00628457591, -0.0160446018, -0.00508577004, 0.999858439),Alpha) | |
1987 | LS.C0 = clerp(LS.C0,CFrame.new(-1.48234439, 0.488731831, 0.0204298086, 1.08988024e-06, 0.999878109, 0.0156131675, -0.999979973, -9.79125834e-05, 0.00634019636, 0.00634095073, -0.0156128611, 0.999858081),Alpha) | |
1988 | RS.C0 = clerp(RS.C0,CFrame.new(1.44239902, 0.478527635, -0.0251723044, 0.000173310371, -0.999878168, 0.0156102739, 0.999979973, 0.00027231226, 0.00634019636, -0.00634367391, 0.0156088611, 0.999858141),Alpha) | |
1989 | NK.C0 = clerp(NK.C0,CFrame.new(5.21446054e-06, 1.48825693, 0.499068856, 1, -4.4076296e-07, 3.08027957e-05, 2.98316445e-05, 0.26330927, -0.964711607, -7.68547761e-06, 0.964711607, 0.26330927),Alpha) | |
1990 | end | |
1991 | Attack = false | |
1992 | NeutralAnims = true | |
1993 | end | |
1994 | ||
1995 | function Shrek() | |
1996 | Attack = true | |
1997 | NeutralAnims = false | |
1998 | local oWS = WalkSpeed | |
1999 | for i = 0, 2, 0.1 do | |
2000 | swait() | |
2001 | local Alpha = .3 | |
2002 | RJ.C0 = RJ.C0:lerp(CFrame.new(-0.0045717326, 0.0650117323, -0.292746365, 0.999985039, -0.0054067187, -0.000930163078, 0.00540099945, 0.940456271, 0.339872152, -0.000962814316, -0.339872032, 0.940471232),Alpha) | |
2003 | LH.C0 = LH.C0:lerp(CFrame.new(-0.497873425, -1.08922517, -0.0665005744, 0.991378665, 0.00540100131, 0.130918339, 0.0394607596, 0.940456986, -0.337614775, -0.124946497, 0.339870125, 0.932135701),Alpha) | |
2004 | RH.C0 = RH.C0:lerp(CFrame.new(0.497141123, -1.09262908, -0.0732582211, 0.991080165, 0.00540100131, -0.133158669, -0.0502922162, 0.940456986, -0.336171925, 0.123414315, 0.339870125, 0.932339728),Alpha) | |
2005 | LS.C0 = LS.C0:lerp(CFrame.new(-1.01297855, 0.687084556, -0.109048009, 0.909904242, -0.414624929, -0.0126772588, -0.341911346, -0.732326984, -0.588892102, 0.234885365, 0.540169775, -0.808112383),Alpha) | |
2006 | RS.C0 = RS.C0:lerp(CFrame.new(1.10972738, 0.686874747, -0.142190307, 0.902195573, 0.431141198, -0.012677161, 0.341730058, -0.732411623, -0.588892102, -0.263180494, 0.526963592, -0.808112264),Alpha) | |
2007 | NK.C0 = NK.C0:lerp(CFrame.new(1.14651302e-05, 1.49894774, -0.0143921971, 1.00000012, 1.31642446e-06, -5.17815351e-07, -1.28056854e-06, 0.997964919, 0.0637671649, 5.99771738e-07, -0.0637671053, 0.997964978),Alpha) | |
2008 | end | |
2009 | WalkSpeed = 0 | |
2010 | Sound(Head,368794903,1.2,10,false,true,true) | |
2011 | local wo = IN("Model",Effects) | |
2012 | ||
2013 | for i = 1, 3 do | |
2014 | local wat = 12.5+(i*2) | |
2015 | local screamPart = Part(wo,BrickColor.new'Pearl',Enum.Material.Neon,V3.N(1,1,1),Head.CFrame,false,false) | |
2016 | screamPart.Transparency = .6+(i/10) | |
2017 | Mesh(screamPart,Enum.MeshType.Sphere,"","",V3.N(wat,wat,wat)) | |
2018 | Weld(screamPart,Torso) | |
2019 | end | |
2020 | ||
2021 | for i = 0, 8, 0.1 do | |
2022 | swait() | |
2023 | AOEDamage(Torso.CFrame.p,20,{ | |
2024 | MinimumDamage=5, | |
2025 | MaximumDamage=10 | |
2026 | }) | |
2027 | local Alpha = .3 | |
2028 | RJ.C0 = RJ.C0:lerp(CFrame.new(0.00617184862, -0.15, 0.395316333, 0.999986708, 0.00508808438, -0.000884585083, -0.00509300316, 0.943203092, -0.332178056, -0.000855805352, 0.332178146, 0.943216264)*CF.A(M.R(20),0,0),Alpha) | |
2029 | LH.C0 = LH.C0:lerp(CFrame.new(-0.497282684, -1.06256902, -0.0290378034, 0.999878228, -0.00509300316, 0.0147562362, -9.85493534e-05, 0.943203092, 0.332217097, -0.0156101063, -0.332178056, 0.943087518)*CF.A(M.R(-20),0,0),Alpha) | |
2030 | RH.C0 = RH.C0:lerp(CFrame.new(0.497732252, -1.05967009, -0.03568241, 0.999878228, -0.00509300316, 0.0147562362, -9.85493534e-05, 0.943203092, 0.332217097, -0.0156101063, -0.332178056, 0.943087518)*CF.A(M.R(-20),0,0),Alpha) | |
2031 | LS.C0 = LS.C0:lerp(CFrame.new(-1.42849481, 0.494048148, -0.00801739097, 0.98822248, 0.134164602, 0.0735954121, -0.152104512, 0.808569551, 0.568401217, 0.0167523213, -0.572901011, 0.819453418),Alpha) | |
2032 | RS.C0 = RS.C0:lerp(CFrame.new(1.41312766, 0.523678839, 0.0325531065, 0.980119586, -0.184282064, 0.0735261068, 0.110644385, 0.815263927, 0.568421364, -0.164693028, -0.548985541, 0.81944561),Alpha) | |
2033 | NK.C0 = NK.C0:lerp(CFrame.new(9.04871195e-06, 1.49893618, -0.0143969432, 1.00000012, 9.62987542e-07, -2.71946192e-07, -9.43895429e-07, 0.997964919, 0.0637682378, 3.31550837e-07, -0.063768208, 0.997964799),Alpha) | |
2034 | end | |
2035 | wo:breakJoints() | |
2036 | wo:destroy() | |
2037 | WalkSpeed = oWS | |
2038 | Attack = false | |
2039 | NeutralAnims = true | |
2040 | end | |
2041 | ||
2042 | function NeckSnap(target) | |
2043 | if(target)then | |
2044 | local torso = GetTorso(target) | |
2045 | local hum = target:FindFirstChildOfClass'Humanoid' | |
2046 | local hed = target:FindFirstChild'Head' | |
2047 | if(torso and hum and hum.Health > 0 and hed)then | |
2048 | local oWS = WalkSpeed | |
2049 | local oPar = target.Parent | |
2050 | local originalpos = Root.CFrame | |
2051 | WalkSpeed = 0 | |
2052 | Hum.JumpPower = 0 | |
2053 | Attack = true | |
2054 | NeutralAnims = false | |
2055 | Root.Anchored = true | |
2056 | torso.Anchored = true | |
2057 | target.Parent = Char | |
2058 | Hum.AutoRotate = false | |
2059 | Root.CFrame = torso.CFrame*CF.N(-0.54454422, 0, 0.987496376) | |
2060 | for _,v in next, torso:children() do | |
2061 | if(v:IsA'JointInstance' and (v.Part0 == hed or v.Part1 == hed))then | |
2062 | v:destroy() | |
2063 | end | |
2064 | end | |
2065 | hed:breakJoints() | |
2066 | local weld = NewInstance('Motor',torso,{Part0=hed,Part1=torso,C0=CF.N(0,-1.5,0)}) | |
2067 | for i = 0, 1, 0.1 do | |
2068 | swait() | |
2069 | local Alpha = .3 | |
2070 | RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2071 | LH.C0 = clerp(LH.C0,CFrame.new(-0.49648428, -0.990816116, 0.0216189735, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2072 | RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154631268, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2073 | LS.C0 = clerp(LS.C0,CFrame.new(-0.763917506, 0.783056259, -0.756683111, 0.675138593, -0.737685442, 0.00284584239, 0.140656561, 0.124941669, -0.982143223, 0.724157274, 0.663483143, 0.188113257),Alpha) | |
2074 | RS.C0 = clerp(RS.C0,CFrame.new(1.23871374, 1.09544897, -0.196351975, 0.766011953, 0.365654767, -0.528698623, -0.105766296, -0.739559352, -0.664729595, -0.634065628, 0.565109432, -0.527837396),Alpha) | |
2075 | NK.C0 = clerp(NK.C0,CFrame.new(1.00737725e-05, 1.4989512, -0.0144016817, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha) | |
2076 | end | |
2077 | Sound(hed,1093102664,1,5,false,true,true) | |
2078 | for i = 0, 1.3, 0.1 do | |
2079 | swait() | |
2080 | local Alpha = .3 | |
2081 | weld.C0 = weld.C0:lerp(CF.N(0,-1.5,0)*CF.A(0,M.R(-90),0),Alpha) | |
2082 | RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2083 | LH.C0 = clerp(LH.C0,CFrame.new(-0.49648428, -0.990818024, 0.0216189846, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2084 | RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990980625, 0.0154631399, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2085 | LS.C0 = clerp(LS.C0,CFrame.new(-1.38228214, 0.484847993, -0.0603635609, 0.424681932, 0.905338109, 0.00285495515, -0.169125155, 0.0824314952, -0.982141495, -0.889405489, 0.41661495, 0.18812263),Alpha) | |
2086 | RS.C0 = clerp(RS.C0,CFrame.new(1.40680802, 0.48904568, -0.02736184, 0.441890627, -0.897064447, 0.00284484075, 0.169923306, 0.0805888921, -0.982156575, 0.8808285, 0.43448925, 0.188043654),Alpha) | |
2087 | NK.C0 = clerp(NK.C0,CFrame.new(1.00737716e-05, 1.49894726, -0.014402397, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha) | |
2088 | end | |
2089 | target.Parent = oPar | |
2090 | target:breakJoints() | |
2091 | WalkSpeed = oWS | |
2092 | Hum.JumpPower = 50 | |
2093 | Hum.AutoRotate = true | |
2094 | Root.Anchored = false | |
2095 | torso.Anchored = false | |
2096 | Attack = false | |
2097 | NeutralAnims = true | |
2098 | end | |
2099 | end | |
2100 | end | |
2101 | ||
2102 | function AttackOne() | |
2103 | Attack = true | |
2104 | NeutralAnims = false | |
2105 | for i = 0, .7, 0.1 do | |
2106 | swait() | |
2107 | local Alpha = .3 | |
2108 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.054845117, 0.00628340431, 0.0621978641, 0.574560821, -0.00514742406, -0.818445683, 1.76018864e-06, 0.99998033, -0.00628790678, 0.818461895, 0.00361134461, 0.574549437),Alpha) | |
2109 | LH.C0 = clerp(LH.C0,CFrame.new(-0.525948346, -0.994591057, 0.0135081597, 0.989666939, 0.0856333151, 0.115006924, -0.0869238526, 0.996195495, 0.00624422729, -0.114034653, -0.0161765479, 0.993345082),Alpha) | |
2110 | RH.C0 = clerp(RH.C0,CFrame.new(0.487148911, -0.967346072, -0.0260838568, 0.964277864, -0.0686885938, 0.255832553, -0.00166595122, 0.964203477, 0.265158683, -0.264888048, -0.256112814, 0.92964536),Alpha) | |
2111 | LS.C0 = clerp(LS.C0,CFrame.new(-1.38879275, 0.498546124, -0.255748421, 0.692717075, 0.721134841, 0.0103802728, 0.00202227081, 0.0124506345, -0.999920607, -0.721206725, 0.692682922, 0.00716643687),Alpha) | |
2112 | RS.C0 = clerp(RS.C0,CFrame.new(1.27866459, 0.504911065, -0.181807131, 0.763874948, -0.645362377, -0.00163397193, -0.0634241104, -0.0725510716, -0.995346248, 0.642240286, 0.760423601, -0.0963514596),Alpha) | |
2113 | NK.C0 = clerp(NK.C0,CFrame.new(-0.0864869878, 1.49901688, -0.00313834194, 0.57456094, -0.0470548049, 0.817108035, -0.00514778076, 0.998118699, 0.0610983856, -0.818445623, -0.0393110402, 0.573237658),Alpha) | |
2114 | end | |
2115 | Sound(RArm,200632136,1.1,5,false,true,true) | |
2116 | for i = 0, .9, 0.1 do | |
2117 | swait() | |
2118 | local Alpha = .3 | |
2119 | AOEDamage(RArm.CFrame.p,2,{MinimumDamage=10,MaximumDamage=30}) | |
2120 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0895246193, 0.00628795894, -0.0240665041, 0.667355478, 0.00468144845, 0.744724631, -1.60177922e-06, 0.99998033, -0.00628458662, -0.744739354, 0.0041928608, 0.667342305),Alpha) | |
2121 | LH.C0 = clerp(LH.C0,CFrame.new(-0.525933743, -0.994594276, 0.0135074947, 0.995298743, 0.0856334865, -0.0452488065, -0.0847965032, 0.996195495, 0.0201073457, 0.0467984378, -0.0161758773, 0.998773336),Alpha) | |
2122 | RH.C0 = clerp(RH.C0,CFrame.new(0.490905643, -0.74434638, -0.358290195, 0.993401766, -0.0489627272, -0.103709608, 0.0897386894, 0.894942641, 0.437063992, 0.0714142919, -0.443486929, 0.893431306),Alpha) | |
2123 | LS.C0 = clerp(LS.C0,CFrame.new(-1.34781098, 0.451429009, 0.184345022, 0.920896769, 0.211902812, 0.327179492, -0.00245033321, 0.842468321, -0.538740575, -0.389798939, 0.495322734, 0.776345491),Alpha) | |
2124 | RS.C0 = clerp(RS.C0,CFrame.new(1.33741677, 0.579409122, -0.335710943, 0.71467489, -0.698394477, 0.0385371894, -0.0347292982, -0.0904589221, -0.995294571, 0.698594153, 0.709973574, -0.0889034569),Alpha) | |
2125 | NK.C0 = clerp(NK.C0,CFrame.new(0.0455316827, 1.49947691, 0.069996126, 0.667355359, 0.0428168029, -0.743507743, 0.00468109129, 0.99808526, 0.0616789386, 0.744724751, -0.0446421988, 0.665876985),Alpha) | |
2126 | end | |
2127 | Combo = 2 | |
2128 | Attack = false | |
2129 | NeutralAnims = true | |
2130 | end | |
2131 | ||
2132 | function AttackTwo() | |
2133 | Attack = true | |
2134 | NeutralAnims = false | |
2135 | for i = 0, 1, 0.1 do | |
2136 | swait() | |
2137 | local Alpha = .3 | |
2138 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.00337019563, 0.00628272956, -0.00105122454, 0.788301051, 0.00386909139, 0.615277588, -1.32338778e-06, 0.99998033, -0.00628654705, -0.615289807, 0.00495487731, 0.788285434),Alpha) | |
2139 | LH.C0 = clerp(LH.C0,CFrame.new(-0.370244205, -1.06356883, -0.0345072895, 0.88316524, 0.227487147, 0.41020599, -0.259257317, 0.965541184, 0.0227174684, -0.390902787, -0.126412138, 0.911709964),Alpha) | |
2140 | RH.C0 = clerp(RH.C0,CFrame.new(0.39778316, -1.07560706, -0.0971514285, 0.900898933, -0.0766149312, -0.427213579, 0.151964575, 0.977673352, 0.145127282, 0.406556368, -0.195666283, 0.892427385),Alpha) | |
2141 | LS.C0 = clerp(LS.C0,CFrame.new(-1.47616029, 0.512279212, 0.0670655966, 0.904187679, -0.427135438, 0.00023345463, 0.00958644785, 0.0197467823, -0.999759197, 0.427027881, 0.903972089, 0.0219495054),Alpha) | |
2142 | RS.C0 = clerp(RS.C0,CFrame.new(1.33361411, 0.488021076, -0.300545812, 0.00661067665, -0.543416262, 0.839437485, 0.976997852, -0.175422177, -0.121254832, 0.213147745, 0.820930004, 0.529756606)*CF.A(0,M.R(-90),0),Alpha) | |
2143 | NK.C0 = clerp(NK.C0,CFrame.new(-0.000233855098, 1.49894583, -0.0145844966, 0.788300931, 0.0353745371, -0.614272296, 0.0038687347, 0.998041451, 0.062439695, 0.615277767, -0.0515977256, 0.786619961),Alpha) | |
2144 | end | |
2145 | Sound(LArm,200632136,.9,5,false,true,true) | |
2146 | for i = 0, 1, 0.1 do | |
2147 | swait() | |
2148 | local Alpha = .3 | |
2149 | AOEDamage(LArm.CFrame.p,2,{MinimumDamage=10,MaximumDamage=30}) | |
2150 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.0139055764, 0.00628619827, -0.0431878939, 0.736094832, -0.0042554969, -0.676865041, 1.4556681e-06, 0.99998033, -0.00628536195, 0.676878333, 0.00462563755, 0.736080408),Alpha) | |
2151 | LH.C0 = clerp(LH.C0,CFrame.new(-0.370245337, -1.06356549, -0.0345049649, 0.883166075, 0.227488101, 0.410203636, -0.25925675, 0.965541363, 0.0227144919, -0.390901268, -0.126408711, 0.911711276),Alpha) | |
2152 | RH.C0 = clerp(RH.C0,CFrame.new(0.397780299, -1.07560635, -0.0971318483, 0.900898337, -0.076615192, -0.427214652, 0.151964024, 0.977673769, 0.145124823, 0.406557709, -0.195663959, 0.892427325),Alpha) | |
2153 | LS.C0 = clerp(LS.C0,CFrame.new(-1.54785693, 0.502721965, -0.369121343, 0.640384734, 0.768054307, 9.36477445e-05, -0.0167029109, 0.0140483743, -0.999761999, -0.767872751, 0.640230715, 0.0218251087),Alpha) | |
2154 | RS.C0 = clerp(RS.C0,CFrame.new(1.41005266, 0.394677043, -0.101526827, 0.621816397, -0.730075538, 0.283432782, 0.783004642, 0.586830258, -0.206238553, -0.0157571733, 0.350171626, 0.93655318)*CF.A(0,M.R(-90),0),Alpha) | |
2155 | NK.C0 = clerp(NK.C0,CFrame.new(0.0361058414, 1.49909592, 0.00928576291, 0.736094952, -0.0389148258, 0.67575866, -0.00425585406, 0.998060346, 0.0621110015, -0.676864862, -0.0485955328, 0.7345016),Alpha) | |
2156 | end | |
2157 | Combo = 3 | |
2158 | Attack = false | |
2159 | NeutralAnims = true | |
2160 | end | |
2161 | ||
2162 | function AttackThree() | |
2163 | Attack = true | |
2164 | NeutralAnims = false | |
2165 | for i = 0, 1, 0.1 do | |
2166 | swait() | |
2167 | local Alpha = .3 | |
2168 | RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674868, -5.34626452e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2169 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496486187, -0.990816116, 0.0216190033, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2170 | RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154631268, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2171 | LS.C0 = clerp(LS.C0,CFrame.new(-1.12213016, 0.47289753, -0.302224725, 0.912795186, -0.408417523, -7.55176477e-10, 0.00256825075, 0.00573992962, -0.999980211, 0.408409536, 0.912777245, 0.00628829934),Alpha) | |
2172 | RS.C0 = clerp(RS.C0,CFrame.new(1.11283636, 0.472678095, -0.337120384, 0.899599433, 0.436715961, -7.55176477e-10, -0.00274620112, 0.00565694971, -0.999980211, -0.436707377, 0.89958173, 0.00628829934),Alpha) | |
2173 | NK.C0 = clerp(NK.C0,CFrame.new(8.16642296e-06, 1.49894738, -0.0144004971, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha) | |
2174 | end | |
2175 | --for a = 1, 3 do | |
2176 | local a = 2 | |
2177 | coroutine.wrap(function() | |
2178 | for i = 5,45,10 do | |
2179 | local hite = Instance.new("Part",Char) | |
2180 | hite.Anchored = true | |
2181 | hite.CanCollide = false | |
2182 | hite.Material = "Neon" | |
2183 | hite.Size = V3.N(1, 1, 1) | |
2184 | hite.Transparency = 1 | |
2185 | hite.CFrame = (Root.CFrame + Root.CFrame.lookVector)*CF.A(0,M.R(90+(a*45)),0)*CF.N(0,0,i) | |
2186 | CamShakeAOE(hite.CFrame.p,10,30,250) | |
2187 | NoobySphere2(3,'Multiply',hite.CFrame,V3.N(0,0,0),.15,Core2.Color) | |
2188 | NoobySphere2(6,'Multiply',hite.CFrame,V3.N(0,0,0),.3,Core2.Color) | |
2189 | for i = 1, 2 do | |
2190 | NoobySphere(2,.2,'Multiply',Root.CFrame*CF.N(0,-.5,-.5)*CF.A(M.RRNG(-20,20),M.RRNG(-20,20),M.RRNG(-20,20)),V3.N(.5,.5,5),-.005,Core2.Color,0) | |
2191 | end | |
2192 | for i = 1, 5 do | |
2193 | NoobySphere(2.25,.6,'Multiply',hite.CFrame*CF.N(0,0,0)*CF.A(M.RRNG(-360,360),M.RRNG(-360,360),M.RRNG(-360,360)),V3.N(2,2,2),0,Core2.Color,0) | |
2194 | end | |
2195 | AOEDamage(hite.CFrame.p,10,{MinimumDamage=25,MaximumDamage=45}) | |
2196 | Sound(hite,183763506,1,5,false,true,true) | |
2197 | S.Debris:AddItem(hite,2) | |
2198 | swait() | |
2199 | end | |
2200 | end)() | |
2201 | --end | |
2202 | for i = 0, 1, 0.1 do | |
2203 | swait() | |
2204 | local Alpha = .3 | |
2205 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.00691798097, -0.0495741703, 0.443018734, 0.999998093, -0.00196288247, -0.000110176392, 0.00196200004, 0.992848635, 0.119364031, -0.000124909915, -0.119364008, 0.992850542),Alpha) | |
2206 | LH.C0 = clerp(LH.C0,CFrame.new(-0.497228384, -0.946920514, -0.0261252522, 0.999878228, 0.0041074818, 0.0150607219, -9.9174933e-05, 0.966415524, -0.256984442, -0.0156104742, 0.25695163, 0.966298223),Alpha) | |
2207 | RH.C0 = clerp(RH.C0,CFrame.new(0.497788221, -0.949530363, -0.0326310396, 0.999878228, 0.0041074818, 0.0150607219, -9.9174933e-05, 0.966415524, -0.256984442, -0.0156104742, 0.25695163, 0.966298223),Alpha) | |
2208 | LS.C0 = clerp(LS.C0,CFrame.new(-1.43487072, 0.476260573, 0.232709944, -0.586293817, 0.810098529, 9.3865674e-07, -0.00509618223, -0.00368710607, -0.999980271, -0.810082495, -0.586282253, 0.00629013777),Alpha) | |
2209 | RS.C0 = clerp(RS.C0,CFrame.new(1.44212484, 0.475975186, 0.187793851, -0.560718656, -0.828006506, -2.90002208e-06, 0.00520995259, -0.00352462381, -0.999980271, 0.827990055, -0.56070751, 0.00629019737),Alpha) | |
2210 | NK.C0 = clerp(NK.C0,CFrame.new(9.53681956e-06, 1.49895513, -0.0144005343, 1.00000012, 0, 9.31322575e-10, 1.16415322e-10, 0.99796474, 0.0637698025, -9.31322575e-10, -0.0637697875, 0.997964621),Alpha) | |
2211 | end | |
2212 | Combo = 1 | |
2213 | Attack = false | |
2214 | NeutralAnims = true | |
2215 | end | |
2216 | ||
2217 | ||
2218 | local WingSine = 0 | |
2219 | local WingChange = 1 | |
2220 | ||
2221 | function SolitudeMode() | |
2222 | Attack = true | |
2223 | NeutralAnims = false | |
2224 | local Sin = 0 | |
2225 | MusicID = 1564523997 | |
2226 | Pitch = 1 | |
2227 | WalkSpeed = 0 | |
2228 | Sound(Core2,136007472,1.25,2.5,false,true,true) | |
2229 | for i = 0, 4, 0.1 do | |
2230 | swait() | |
2231 | NoobySphere(2.5,-1.5,'Multiply',Core2.CFrame*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),V3.N(3.5,3.5,45),-.035,Core2.Color,100) | |
2232 | Sin = Sin + 5 | |
2233 | local Alpha = .1 | |
2234 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00700476859, 0.0667984039, -0.448462069, 0.999972343, -0.00723911775, -0.00172879919, 0.00722799823, 0.88917774, 0.457504779, -0.00177471992, -0.457504541, 0.889205575),Alpha) | |
2235 | LH.C0 = clerp(LH.C0,CFrame.new(-0.497889668, -1.14359522, -0.0677340925, 0.999878228, 0.00722799823, 0.0138372099, -9.56082804e-05, 0.88917774, -0.457561791, -0.0156109957, 0.457504779, 0.889070213),Alpha) | |
2236 | RH.C0 = clerp(RH.C0,CFrame.new(0.497117043, -1.14809179, -0.0749855936, 0.999878228, 0.00722799823, 0.0138372099, -9.56082804e-05, 0.88917774, -0.457561791, -0.0156109957, 0.457504779, 0.889070213),Alpha) | |
2237 | LS.C0 = clerp(LS.C0,CFrame.new(-1.20745349, 0.562693655, 0.156515986, 0.841866791, -0.539501786, -0.014077506, -0.490290582, -0.753652692, -0.43774724, 0.225555882, 0.375426948, -0.898987949)*CF.A(0,M.R(0+16*M.S(Sin)),0),Alpha) | |
2238 | RS.C0 = clerp(RS.C0,CFrame.new(1.17680144, 0.613272369, 0.0997506529, 0.834507108, 0.550817847, -0.0140647329, 0.49015516, -0.753777146, -0.437684804, -0.251686275, 0.358357221, -0.899018526)*CF.A(0,M.R(0+16*M.S(Sin)),0),Alpha) | |
2239 | NK.C0 = clerp(NK.C0,CFrame.new(6.50798393e-06, 1.53005648, -0.348988175, 1.00000012, 2.40840018e-06, -1.19656324e-05, 5.68898395e-06, 0.775360823, 0.631518543, 1.07986853e-05, -0.631518602, 0.775360942)*CF.A(0,M.R(0+16*M.S(Sin)),0),Alpha) | |
2240 | end | |
2241 | for _,v in next, LWing:children() do | |
2242 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 0 v.BrickColor = BrickColor.new'Black' end | |
2243 | end | |
2244 | for _,v in next, RWing:children() do | |
2245 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 1 v.BrickColor = BrickColor.new'Black' end | |
2246 | end | |
2247 | for _,v in next, LWingEXT:children() do | |
2248 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 1 v.BrickColor = BrickColor.new'Black' end | |
2249 | end | |
2250 | for _,v in next, RWingEXT:children() do | |
2251 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 1 v.BrickColor = BrickColor.new'Black' end | |
2252 | end | |
2253 | for _,v in next, Halo:children() do | |
2254 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.BrickColor = BrickColor.new'Black' end | |
2255 | end | |
2256 | pcall(function() Char.ReaperShadowHead.Eye1.Color = C3.N(1,0,0) end) | |
2257 | pcall(function() Char.ReaperShadowHead.Eye2.Color = C3.N(1,0,0) end) | |
2258 | WalkSpeed = 16 | |
2259 | Mode = 1 | |
2260 | Core2.BrickColor = BrickColor.new'Black' | |
2261 | Core2.Material = Enum.Material.Neon | |
2262 | Sound(Root,"206082327",1,2.5,false,true,true) | |
2263 | Sound(Root,"847061203",1,5,false,true,true) | |
2264 | Sound(Root,"239000203",1,2.5,false,true,true) | |
2265 | Sound(Root,"579687077",.75,2.5,false,true,true) | |
2266 | RecolorTextAndRename("Solitude",Color3.new(0,0,0),Color3.new(1,1,1)) | |
2267 | NoobySphere2(2.5,'Multiply',Core2.CFrame,V3.N(0,0,0),1,Core2.BrickColor) | |
2268 | for i = 1, 24 do | |
2269 | NoobyBlock(1,M.RNG(20,100)/100,'Multiply',Core2.CFrame*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),V3.N(2,2,2),.04,Core2.Color,0,true) | |
2270 | end | |
2271 | for i = 0, 15 do | |
2272 | NoobySphere(3,-.5,'Multiply',Core2.CFrame*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),V3.N(.5,.5,25),-.04,Core2.Color,0) | |
2273 | end | |
2274 | for i = 0, 1.4, 0.1 do | |
2275 | swait() | |
2276 | local Alpha = .3 | |
2277 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0104959598, -0.113952652, 0.672263861, 0.999963522, 0.00820299331, -0.0023882892, -0.00821700692, 0.846846819, -0.531773448, -0.00233961921, 0.531773746, 0.846883237),Alpha) | |
2278 | LH.C0 = clerp(LH.C0,CFrame.new(-0.49749428, -1.06169748, -0.0426189601, 0.999878228, -0.00744201383, 0.013721575, -0.000100045589, 0.875963986, 0.482376754, -0.0156094572, -0.482319295, 0.875856459),Alpha) | |
2279 | RH.C0 = clerp(RH.C0,CFrame.new(0.498449236, -1.1497941, 0.0108022094, 0.999878228, -0.0120362351, 0.009939529, -0.000100045589, 0.631795883, 0.775134981, -0.0156094572, -0.775041461, 0.631717622),Alpha) | |
2280 | LS.C0 = clerp(LS.C0,CFrame.new(-1.12307608, 0.484921068, 0.092245549, 0.865161359, 0.501252413, -0.0155520458, 0.497926384, -0.862286389, -0.092366755, -0.059709385, 0.07216838, -0.995603561),Alpha) | |
2281 | RS.C0 = clerp(RS.C0,CFrame.new(1.37669122, 0.484069884, 0.0531393886, 0.866546988, -0.498853445, -0.0155524863, -0.49802509, -0.862227678, -0.0923835635, 0.032676056, 0.0878001451, -0.995602131),Alpha) | |
2282 | NK.C0 = clerp(NK.C0,CFrame.new(1.14440181e-05, 1.49895036, -0.0144141242, 1.00000012, 0, -9.31322575e-10, 0, 0.99796474, 0.0637694895, -9.31322575e-10, -0.0637694895, 0.99796468),Alpha) | |
2283 | end | |
2284 | Attack = false | |
2285 | NeutralAnims = true | |
2286 | end | |
2287 | ||
2288 | function PureMode() | |
2289 | for _,v in next, LWing:children() do | |
2290 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 0 v.BrickColor = BrickColor.new'Pastel Blue' end | |
2291 | end | |
2292 | for _,v in next, RWing:children() do | |
2293 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 1 v.BrickColor = BrickColor.new'Pastel Blue' end | |
2294 | end | |
2295 | for _,v in next, LWingEXT:children() do | |
2296 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 1 v.BrickColor = BrickColor.new'Pastel Blue' end | |
2297 | end | |
2298 | for _,v in next, RWingEXT:children() do | |
2299 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 1 v.BrickColor = BrickColor.new'Pastel Blue' end | |
2300 | end | |
2301 | for _,v in next, Halo:children() do | |
2302 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.BrickColor = BrickColor.new'Pastel Blue' end | |
2303 | end | |
2304 | WalkSpeed = 16 | |
2305 | pcall(function() Char.ReaperShadowHead.Eye1.Color = C3.N(0,1,1) end) | |
2306 | pcall(function() Char.ReaperShadowHead.Eye2.Color = C3.N(0,1,1) end) | |
2307 | RecolorTextAndRename("Clarity",C3.N(1,1,1),BrickColor.new'Pastel Blue'.Color) | |
2308 | MusicID = 1539245059 | |
2309 | Pitch = 1 | |
2310 | Mode = 2 | |
2311 | Core2.BrickColor = BrickColor.new'Pastel Blue' | |
2312 | Core2.Material = Enum.Material.Neon | |
2313 | end | |
2314 | ||
2315 | function GlitchMode() | |
2316 | for _,v in next, LWing:children() do | |
2317 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.DiamondPlate v.Transparency = 0 v.BrickColor = BrickColor.new'White' end | |
2318 | end | |
2319 | for _,v in next, RWing:children() do | |
2320 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.DiamondPlate v.Transparency = 1 v.BrickColor = BrickColor.new'White' end | |
2321 | end | |
2322 | for _,v in next, LWingEXT:children() do | |
2323 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.DiamondPlate v.Transparency = 1 v.BrickColor = BrickColor.new'White' end | |
2324 | end | |
2325 | for _,v in next, RWingEXT:children() do | |
2326 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.DiamondPlate v.Transparency = 1 v.BrickColor = BrickColor.new'White' end | |
2327 | end | |
2328 | for _,v in next, Halo:children() do | |
2329 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.BrickColor = BrickColor.new'White' end | |
2330 | end | |
2331 | pcall(function() Char.ReaperShadowHead.Eye1.Color = C3.N(1,1,1) end) | |
2332 | pcall(function() Char.ReaperShadowHead.Eye2.Color = C3.N(1,1,1) end) | |
2333 | WalkSpeed = 16 | |
2334 | RecolorTextAndRename("Glitchy",C3.N(1,1,1),C3.N(1,1,1)) | |
2335 | MusicID = 1274310715 | |
2336 | Pitch = .93 | |
2337 | Mode = 3 | |
2338 | Core2.BrickColor = BrickColor.new'Dark stone grey' | |
2339 | Core2.Material = Enum.Material.DiamondPlate | |
2340 | end | |
2341 | ||
2342 | function StressMode() | |
2343 | for _,v in next, LWing:children() do | |
2344 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = .25 v.BrickColor = BrickColor.new'Crimson' end | |
2345 | end | |
2346 | for _,v in next, RWing:children() do | |
2347 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 0 v.Color = C3.RGB(16,16,16) end | |
2348 | end | |
2349 | for _,v in next, LWingEXT:children() do | |
2350 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 1 v.BrickColor = BrickColor.new'Crimson' end | |
2351 | end | |
2352 | for _,v in next, RWingEXT:children() do | |
2353 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 1 v.BrickColor = BrickColor.new'Crimson' end | |
2354 | end | |
2355 | for _,v in next, Halo:children() do | |
2356 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.BrickColor = BrickColor.new'Crimson' end | |
2357 | end | |
2358 | WalkSpeed = 14 | |
2359 | RecolorTextAndRename("Stress",C3.N(.6,0,0),C3.N(0,0,0)) | |
2360 | MusicID = 614032233 | |
2361 | Pitch = 1 | |
2362 | Mode = 4 | |
2363 | Core2.BrickColor = BrickColor.new'Really red' | |
2364 | Core2.Material = Enum.Material.Neon | |
2365 | end | |
2366 | ||
2367 | function JusticeMode() | |
2368 | for _,v in next, LWing:children() do | |
2369 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 0 v.BrickColor = BrickColor.new'Institutional white' end | |
2370 | end | |
2371 | for _,v in next, RWing:children() do | |
2372 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 0 v.BrickColor = BrickColor.new'Institutional white' end | |
2373 | end | |
2374 | for _,v in next, LWingEXT:children() do | |
2375 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 1 v.BrickColor = BrickColor.new'Institutional white' end | |
2376 | end | |
2377 | for _,v in next, RWingEXT:children() do | |
2378 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 1 v.BrickColor = BrickColor.new'Institutional white' end | |
2379 | end | |
2380 | - | RecolorTextAndRename("The Big Black",BrickColor.new'Really black'.Color,C3.N(1,1,1)) |
2380 | + | |
2381 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.BrickColor = BrickColor.new'Institutional white' end | |
2382 | end | |
2383 | pcall(function() Char.ReaperShadowHead.Eye1.Color = C3.N(1,1,1) end) | |
2384 | pcall(function() Char.ReaperShadowHead.Eye2.Color = C3.N(1,1,1) end) | |
2385 | WalkSpeed = 50 | |
2386 | RecolorTextAndRename("Justice",C3.N(1,1,1),C3.N(0,0,0)) | |
2387 | MusicID = 1102271169 | |
2388 | Pitch = 1 | |
2389 | Mode = 5 | |
2390 | Core2.BrickColor = BrickColor.new'White' | |
2391 | Core2.Material = Enum.Material.Neon | |
2392 | end | |
2393 | ||
2394 | function RiddleMeThis() | |
2395 | Attack = true | |
2396 | NeutralAnims = false | |
2397 | WalkSpeed = 0 | |
2398 | MusicID = 1420353940 | |
2399 | Pitch = 1 | |
2400 | Muted = true | |
2401 | repeat swait() until Music.IsLoaded | |
2402 | Muted = false | |
2403 | Music.TimePosition = 0 | |
2404 | Chat('Riddle me this..') | |
2405 | for i = 0,14,.1 do | |
2406 | local Alpha = .1 | |
2407 | RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674263, 4.19029675e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2408 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496486187, -0.990816116, 0.0216199569, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2409 | RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990978718, 0.0154640805, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2410 | LS.C0 = clerp(LS.C0,CFrame.new(-1.15619826, 0.410764694, 0.308931053, 0.862226903, -0.506325424, 0.0141164251, 0.451236814, 0.780479908, 0.432708263, -0.230108798, -0.366722882, 0.901423633),Alpha) | |
2411 | RS.C0 = clerp(RS.C0,CFrame.new(1.48984146, 0.433965802, -0.137121022, 0.754978359, -0.655723989, -0.00581999123, -0.244246826, -0.272958666, -0.930503726, 0.608564973, 0.703931689, -0.366236359),Alpha) | |
2412 | NK.C0 = clerp(NK.C0,CFrame.new(8.11554492e-06, 1.49894369, -0.0144015253, 0.931422114, -1.17415329e-05, -0.363940746, 0.0232203864, 0.997964501, 0.0593950115, 0.363199264, -0.0637726635, 0.929526567),Alpha) | |
2413 | swait() | |
2414 | end | |
2415 | Chat('Riddle me that..') | |
2416 | for i = 0,12,.1 do | |
2417 | local Alpha = .1 | |
2418 | RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674868, -5.34626452e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2419 | LH.C0 = clerp(LH.C0,CFrame.new(-0.49648428, -0.990818024, 0.0216189846, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2420 | RH.C0 = clerp(RH.C0,CFrame.new(0.498537898, -0.990980625, 0.0154631399, 0.999878109, -9.59694546e-11, 0.015612145, -9.81408521e-05, 0.999980211, 0.00628542574, -0.0156118376, -0.00628619269, 0.999858439),Alpha) | |
2421 | LS.C0 = clerp(LS.C0,CFrame.new(-1.25402236, 0.431008309, 0.117451549, 0.884577334, 0.388638854, 0.257842481, 0.312682211, -0.0839776248, -0.946138322, -0.346053123, 0.917555273, -0.195805177),Alpha) | |
2422 | RS.C0 = clerp(RS.C0,CFrame.new(1.22954941, 0.384757012, 0.168471783, 0.915931404, 0.401068091, 0.0146304797, -0.379809946, 0.85445267, 0.354478538, 0.129668966, -0.330234885, 0.934949815),Alpha) | |
2423 | NK.C0 = clerp(NK.C0,CFrame.new(8.37445259e-06, 1.49894357, -0.0144015923, 0.920970619, 2.08709389e-06, 0.389632136, -0.0248486493, 0.99796474, 0.058729209, -0.388839096, -0.063769713, 0.919096231),Alpha) | |
2424 | swait() | |
2425 | end | |
2426 | Chat("Who's afraid of the big black..") | |
2427 | for i = 0,16,.1 do | |
2428 | local Alpha = .1 | |
2429 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00438984111, 0.0221795738, -0.281239897, 0.999988556, -0.00473595224, -0.000703255646, 0.00473099947, 0.954816878, 0.297157228, -0.000735841691, -0.297157168, 0.954828322),Alpha) | |
2430 | LH.C0 = clerp(LH.C0,CFrame.new(-0.497070849, -1.04715037, -0.0156083405, 0.999878228, 0.00473099947, 0.0148762148, -9.61141777e-05, 0.954816878, -0.297194898, -0.0156100877, 0.297157228, 0.954700947),Alpha) | |
2431 | RH.C0 = clerp(RH.C0,CFrame.new(0.49794969, -1.05015182, -0.0222227573, 0.999878228, 0.00473099947, 0.0148762148, -9.61141777e-05, 0.954816878, -0.297194898, -0.0156100877, 0.297157228, 0.954700947),Alpha) | |
2432 | LS.C0 = clerp(LS.C0,CFrame.new(-1.32246351, 0.253595859, 0.199904889, 0.862232804, -0.506315708, 0.0141151678, 0.451225579, 0.780480325, 0.432719588, -0.230109304, -0.366735876, 0.90141809),Alpha) | |
2433 | RS.C0 = clerp(RS.C0,CFrame.new(1.33073413, 0.290129036, 0.183640629, 0.915928423, 0.401075214, 0.0146333817, -0.379820168, 0.854456067, 0.354459614, 0.129661351, -0.330217659, 0.934956849),Alpha) | |
2434 | NK.C0 = clerp(NK.C0,CFrame.new(1.58162902e-06, 1.5248462, -0.171738505, 1.00000012, -7.59866089e-06, 1.38636678e-05, -3.15252692e-07, 0.867144346, 0.498057216, -1.58054754e-05, -0.498057246, 0.867144227),Alpha) | |
2435 | swait() | |
2436 | end | |
2437 | for i = 0, .7, 0.1 do | |
2438 | swait() | |
2439 | local Alpha = .3 | |
2440 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00700476859, 0.0667984039, -0.448462069, 0.999972343, -0.00723911775, -0.00172879919, 0.00722799823, 0.88917774, 0.457504779, -0.00177471992, -0.457504541, 0.889205575),Alpha) | |
2441 | LH.C0 = clerp(LH.C0,CFrame.new(-0.497889668, -1.14359522, -0.0677340925, 0.999878228, 0.00722799823, 0.0138372099, -9.56082804e-05, 0.88917774, -0.457561791, -0.0156109957, 0.457504779, 0.889070213),Alpha) | |
2442 | RH.C0 = clerp(RH.C0,CFrame.new(0.497117043, -1.14809179, -0.0749855936, 0.999878228, 0.00722799823, 0.0138372099, -9.56082804e-05, 0.88917774, -0.457561791, -0.0156109957, 0.457504779, 0.889070213),Alpha) | |
2443 | LS.C0 = clerp(LS.C0,CFrame.new(-1.20745349, 0.562693655, 0.156515986, 0.841866791, -0.539501786, -0.014077506, -0.490290582, -0.753652692, -0.43774724, 0.225555882, 0.375426948, -0.898987949),Alpha) | |
2444 | RS.C0 = clerp(RS.C0,CFrame.new(1.17680144, 0.613272369, 0.0997506529, 0.834507108, 0.550817847, -0.0140647329, 0.49015516, -0.753777146, -0.437684804, -0.251686275, 0.358357221, -0.899018526),Alpha) | |
2445 | NK.C0 = clerp(NK.C0,CFrame.new(6.50798393e-06, 1.53005648, -0.348988175, 1.00000012, 2.40840018e-06, -1.19656324e-05, 5.68898395e-06, 0.775360823, 0.631518543, 1.07986853e-05, -0.631518602, 0.775360942),Alpha) | |
2446 | end | |
2447 | ||
2448 | for _,v in next, LWing:children() do | |
2449 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 0 v.BrickColor = BrickColor.new'Really black' end | |
2450 | end | |
2451 | for _,v in next, RWing:children() do | |
2452 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = 0 v.BrickColor = BrickColor.new'Really black' end | |
2453 | end | |
2454 | for _,v in next, LWingEXT:children() do | |
2455 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = .5 v.BrickColor = BrickColor.new'Really black' end | |
2456 | end | |
2457 | for _,v in next, RWingEXT:children() do | |
2458 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.Transparency = .5 v.BrickColor = BrickColor.new'Really black' end | |
2459 | end | |
2460 | for _,v in next, Halo:children() do | |
2461 | if(v:IsA'BasePart' and v.Name ~= 'Main')then v.Material = Enum.Material.Neon v.BrickColor = BrickColor.new'Really black' end | |
2462 | end | |
2463 | pcall(function() Char.ReaperShadowHead.Eye1.Color = BrickColor.new'Black'.Color end) | |
2464 | pcall(function() Char.ReaperShadowHead.Eye2.Color = BrickColor.new'Black'.Color end) | |
2465 | WalkSpeed = 50 | |
2466 | RecolorTextAndRename("LOST SOUL",BrickColor.new'Really black'.Color,C3.N(1,1,1)) | |
2467 | Core2.BrickColor = BrickColor.new'Really black' | |
2468 | Core2.Material = Enum.Material.Neon | |
2469 | Mode = 666666666666 | |
2470 | Sound(Root,"206082327",1,2.5,false,true,true) | |
2471 | Sound(Root,"847061203",1,5,false,true,true) | |
2472 | Sound(Root,"239000203",1,2.5,false,true,true) | |
2473 | Sound(Root,"579687077",.75,2.5,false,true,true) | |
2474 | NoobySphere2(2.5,'Multiply',Core2.CFrame,V3.N(0,0,0),1,Core2.BrickColor) | |
2475 | for i = 1, 24 do | |
2476 | NoobyBlock(1,M.RNG(20,100)/100,'Multiply',Core2.CFrame*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),V3.N(2,2,2),.04,Core2.Color,0,true) | |
2477 | end | |
2478 | for i = 0, 15 do | |
2479 | NoobySphere(3,-.5,'Multiply',Core2.CFrame*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),V3.N(.5,.5,25),-.04,Core2.Color,0) | |
2480 | end | |
2481 | for i = 0, .7, 0.1 do | |
2482 | swait() | |
2483 | local Alpha = .3 | |
2484 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.0104959598, -0.113952652, 0.672263861, 0.999963522, 0.00820299331, -0.0023882892, -0.00821700692, 0.846846819, -0.531773448, -0.00233961921, 0.531773746, 0.846883237),Alpha) | |
2485 | LH.C0 = clerp(LH.C0,CFrame.new(-0.49749428, -1.06169748, -0.0426189601, 0.999878228, -0.00744201383, 0.013721575, -0.000100045589, 0.875963986, 0.482376754, -0.0156094572, -0.482319295, 0.875856459),Alpha) | |
2486 | RH.C0 = clerp(RH.C0,CFrame.new(0.498449236, -1.1497941, 0.0108022094, 0.999878228, -0.0120362351, 0.009939529, -0.000100045589, 0.631795883, 0.775134981, -0.0156094572, -0.775041461, 0.631717622),Alpha) | |
2487 | LS.C0 = clerp(LS.C0,CFrame.new(-1.12307608, 0.484921068, 0.092245549, 0.865161359, 0.501252413, -0.0155520458, 0.497926384, -0.862286389, -0.092366755, -0.059709385, 0.07216838, -0.995603561),Alpha) | |
2488 | RS.C0 = clerp(RS.C0,CFrame.new(1.37669122, 0.484069884, 0.0531393886, 0.866546988, -0.498853445, -0.0155524863, -0.49802509, -0.862227678, -0.0923835635, 0.032676056, 0.0878001451, -0.995602131),Alpha) | |
2489 | NK.C0 = clerp(NK.C0,CFrame.new(1.14440181e-05, 1.49895036, -0.0144141242, 1.00000012, 0, -9.31322575e-10, 0, 0.99796474, 0.0637694895, -9.31322575e-10, -0.0637694895, 0.99796468),Alpha) | |
2490 | end | |
2491 | Attack = false | |
2492 | NeutralAnims = true | |
2493 | end | |
2494 | ||
2495 | --// Wrap it all up \\-- | |
2496 | ||
2497 | function KeyPress(code) | |
2498 | if(code == Enum.KeyCode.One and Mode ~= 1)then | |
2499 | SolitudeMode() | |
2500 | elseif(code == Enum.KeyCode.Two and Mode ~= 2)then | |
2501 | PureMode() | |
2502 | elseif(code == Enum.KeyCode.Three and Mode ~= 3)then | |
2503 | GlitchMode() | |
2504 | elseif(code == Enum.KeyCode.Four and Mode ~= 4)then | |
2505 | StressMode() | |
2506 | elseif(code == Enum.KeyCode.Five and Mode ~= 5)then | |
2507 | JusticeMode() | |
2508 | -- Transformations | |
2509 | elseif(code == Enum.KeyCode.T)then | |
2510 | if(Mode == 1)then | |
2511 | RiddleMeThis() | |
2512 | end | |
2513 | -- Toggle player attacking | |
2514 | elseif(code == Enum.KeyCode.Semicolon)then | |
2515 | DontAttackPlayers = not DontAttackPlayers | |
2516 | Chat(DontAttackPlayers and "You can no longer attack players" or "You can now attack players") | |
2517 | -- Attacks | |
2518 | elseif(code == Enum.KeyCode.Z)then | |
2519 | if(Mode == 1 or Mode == 666666666666)then | |
2520 | if(not UIS.TouchEnabled)then NeckSnap((Mouse.Target and Mouse.Target.Parent)) else warn("Tap someone, to snap their neck") MobileNeckSnap() end | |
2521 | elseif(Mode == 2)then | |
2522 | PureBomb() | |
2523 | elseif(Mode == 3)then | |
2524 | ClickGlitch() | |
2525 | elseif(Mode == 4)then | |
2526 | Shrek() | |
2527 | elseif(Mode == 5)then | |
2528 | Aeroplane() | |
2529 | end | |
2530 | end | |
2531 | end | |
2532 | ||
2533 | function AttackCombo() | |
2534 | if(Combo == 1)then AttackOne() elseif(Combo == 2)then AttackTwo() elseif(Combo == 3)then AttackThree() end | |
2535 | end | |
2536 | ||
2537 | UIS.InputBegan:connect(function(io,gpe) | |
2538 | if(Attack)then return end | |
2539 | if(not gpe)then | |
2540 | local code = io.KeyCode; | |
2541 | if(io.UserInputType == Enum.UserInputType.Keyboard)then | |
2542 | KeyPress(code) | |
2543 | elseif(io.UserInputType == Enum.UserInputType.MouseButton1)then | |
2544 | AttackCombo() | |
2545 | end | |
2546 | end | |
2547 | end) | |
2548 | ||
2549 | ||
2550 | coroutine.wrap(function() | |
2551 | -- AURAS | |
2552 | while true do | |
2553 | if(Mode == 5)then | |
2554 | NoobySphere(5,0.15,"Multiply",Root.CFrame*CF.N(M.RNG(-5,5),-6,M.RNG(-5,5))*CF.A(M.R(90),0,0),V3.N(1.5,1.5,10),-0.015,BrickColor.new'White',0) | |
2555 | elseif(Mode == 666666666666)then | |
2556 | NoobySphere(5,math.random(25,75)/100,"Multiply",Root.CFrame*CF.N(M.RNG(-15,15),-10,M.RNG(-15,15))*CF.A(M.R(90),0,0)*CF.A(M.RRNG(-25,25),M.RRNG(-25,25),M.RRNG(-25,25)),V3.N(.75,.75,15),.005,Core2.BrickColor,0) | |
2557 | end | |
2558 | if(Mode == 666666666666)then | |
2559 | NoobySphere(5,math.random(75,150)/100,"Multiply",Root.CFrame*CF.N(M.RNG(-35,35),-10,M.RNG(-35,35))*CF.A(M.R(90),0,0)*CF.A(M.RRNG(-25,25),M.RRNG(-25,25),M.RRNG(-25,25)),V3.N(.75,.75,25),.005,Core2.BrickColor,0) | |
2560 | end | |
2561 | ||
2562 | swait() | |
2563 | end | |
2564 | end)() | |
2565 | ||
2566 | while true do | |
2567 | swait() | |
2568 | Sine = Sine + Change | |
2569 | WingSine = WingSine + WingChange | |
2570 | if(Hue > 360)then Hue = 0 end | |
2571 | Hue = Hue + 1 | |
2572 | ||
2573 | if(not Music or not Music.Parent)then | |
2574 | local tPos = 0; | |
2575 | if(Music)then tPos = Music.TimePosition; Music:Stop(); Music:Destroy(); end | |
2576 | Music = Sound(Char,MusicID,1,3,true,false,true) | |
2577 | Music.Name = 'Music' | |
2578 | Music.TimePosition = tPos; | |
2579 | end | |
2580 | Music.SoundId = "rbxassetid://"..MusicID | |
2581 | Music.Parent = Char | |
2582 | Music.Pitch = Pitch | |
2583 | Music.Volume = 2 | |
2584 | if(not Muted)then | |
2585 | Music:Resume() | |
2586 | else | |
2587 | Music:Pause() | |
2588 | end | |
2589 | ||
2590 | if(God)then | |
2591 | Hum.MaxHealth = 1e100 | |
2592 | Hum.Health = 1e100 | |
2593 | if(not Char:FindFirstChildOfClass'ForceField')then IN("ForceField",Char).Visible = false end | |
2594 | Hum.Name = M.RNG()*100 | |
2595 | end | |
2596 | ||
2597 | local hitfloor,posfloor,norm = workspace:FindPartOnRay(Ray.new(Root.CFrame.p,((CFrame.new(Root.Position,Root.Position - Vector3.new(0,1,0))).lookVector).unit * (4*PlayerSize)), Char) | |
2598 | ||
2599 | if(Mode == 3)then | |
2600 | for _,v in next, LWing:children() do | |
2601 | local what = M.RNG() | |
2602 | if(v:IsA'BasePart')then | |
2603 | v.Color = C3.N(what,what,what) | |
2604 | end | |
2605 | end | |
2606 | for _,v in next, RWing:children() do | |
2607 | local what = M.RNG() | |
2608 | if(v:IsA'BasePart')then | |
2609 | v.Color = C3.N(what,what,what) | |
2610 | end | |
2611 | end | |
2612 | for _,v in next, LWingEXT:children() do | |
2613 | local what = M.RNG() | |
2614 | if(v:IsA'BasePart')then | |
2615 | v.Color = C3.N(what,what,what) | |
2616 | end | |
2617 | end | |
2618 | for _,v in next, RWingEXT:children() do | |
2619 | local what = M.RNG() | |
2620 | if(v:IsA'BasePart')then | |
2621 | v.Color = C3.N(what,what,what) | |
2622 | end | |
2623 | end | |
2624 | ||
2625 | local what1 = M.RNG() | |
2626 | local what2 = M.RNG() | |
2627 | local what3 = M.RNG() | |
2628 | local what4 = M.RNG() | |
2629 | Core2.Color = C3.N(what1,what1,what1) | |
2630 | ||
2631 | for _,v in next, Halo:children() do | |
2632 | if(v:IsA'BasePart')then | |
2633 | v.Color = C3.N(what1,what1,what1) | |
2634 | end | |
2635 | end | |
2636 | ||
2637 | text.TextStrokeColor3 = C3.N(what2,what2,what2) | |
2638 | text.TextColor3 = C3.N(what3,what3,what3) | |
2639 | pcall(function() Char.ReaperShadowHead.Eye1.Color = C3.N(what4,what4,what4) end) | |
2640 | pcall(function() Char.ReaperShadowHead.Eye2.Color = C3.N(what4,what4,what4) end) | |
2641 | elseif(Mode == 4)then | |
2642 | for _,v in next, LWing:children() do | |
2643 | local what = M.RNG()*.5 | |
2644 | if(v:IsA'BasePart')then | |
2645 | v.Color = C3.N(what,0,0) | |
2646 | end | |
2647 | end | |
2648 | for _,v in next, LWingEXT:children() do | |
2649 | local what = M.RNG()*.5 | |
2650 | if(v:IsA'BasePart')then | |
2651 | v.Color = C3.N(what,0,0) | |
2652 | end | |
2653 | end | |
2654 | ||
2655 | local what1 = M.RNG()*.5 | |
2656 | local what2 = M.RNG()*.5 | |
2657 | local what3 = M.RNG()*.5 | |
2658 | local what4 = M.RNG()*.5 | |
2659 | Core2.Color = C3.N(what1,0,0) | |
2660 | ||
2661 | for _,v in next, Halo:children() do | |
2662 | if(v:IsA'BasePart')then | |
2663 | v.Color = C3.N(what1,0,0) | |
2664 | end | |
2665 | end | |
2666 | ||
2667 | text.TextStrokeColor3 = C3.N(what2,0,0) | |
2668 | text.TextColor3 = C3.N(what3,0,0) | |
2669 | pcall(function() Char.ReaperShadowHead.Eye1.Color = C3.N(what4,0,0) end) | |
2670 | pcall(function() Char.ReaperShadowHead.Eye2.Color = C3.N(what4,0,0) end) | |
2671 | end | |
2672 | ||
2673 | LWingWelds[1].C0 = LWingWelds[1].C0:lerp(CF.N(0,0,2.25)*CF.A(0,M.R(-90),0)*CF.A(M.R(5+10*M.C(WingSine/32)),0,M.R(12.5+5*M.C(WingSine/32))),.1) | |
2674 | LWingWelds[2].C0 = LWingWelds[2].C0:lerp(CF.N(0,1,3.5)*CF.A(0,M.R(-90),0)*CF.A(M.R(10+15*M.C(WingSine/32)),0,M.R(25+7.5*M.C(WingSine/32))),.1) | |
2675 | LWingWelds[3].C0 = LWingWelds[3].C0:lerp(CF.N(0,2,4.5)*CF.A(0,M.R(-90),0)*CF.A(M.R(15+20*M.C(WingSine/32)),0,M.R(37.5+10*M.C(WingSine/32))),.1) | |
2676 | LWingWelds[4].C0 = LWingWelds[4].C0:lerp(CF.N(0,3,5.75)*CF.A(0,M.R(-90),0)*CF.A(M.R(20+25*M.C(WingSine/32)),0,M.R(50+12.5*M.C(WingSine/32))),.1) | |
2677 | LWingWelds[5].C0 = LWingWelds[5].C0:lerp(CF.N(0,4,6.75)*CF.A(0,M.R(-90),0)*CF.A(M.R(25+30*M.C(WingSine/32)),0,M.R(62.5+15*M.C(WingSine/32))),.1) | |
2678 | LWingWelds[6].C0 = LWingWelds[6].C0:lerp(CF.N(0,5,7.75)*CF.A(0,M.R(-90),0)*CF.A(M.R(35+40*M.C(WingSine/32)),0,M.R(75+17.5*M.C(WingSine/32))),.1) | |
2679 | ||
2680 | RWingWelds[1].C0 = RWingWelds[1].C0:lerp(CF.N(0,0,-2.25)*CF.A(0,M.R(-90),0)*CF.A(M.R(5+10*M.C(WingSine/32)),0,-M.R(12.5+5*M.C(WingSine/32))),.1) | |
2681 | RWingWelds[2].C0 = RWingWelds[2].C0:lerp(CF.N(0,1,-3.5)*CF.A(0,M.R(-90),0)*CF.A(M.R(10+15*M.C(WingSine/32)),0,-M.R(25+7.5*M.C(WingSine/32))),.1) | |
2682 | RWingWelds[3].C0 = RWingWelds[3].C0:lerp(CF.N(0,2,-4.5)*CF.A(0,M.R(-90),0)*CF.A(M.R(15+20*M.C(WingSine/32)),0,-M.R(37.5+10*M.C(WingSine/32))),.1) | |
2683 | RWingWelds[4].C0 = RWingWelds[4].C0:lerp(CF.N(0,3,-5.75)*CF.A(0,M.R(-90),0)*CF.A(M.R(20+25*M.C(WingSine/32)),0,-M.R(50+12.5*M.C(WingSine/32))),.1) | |
2684 | RWingWelds[5].C0 = RWingWelds[5].C0:lerp(CF.N(0,4,-6.75)*CF.A(0,M.R(-90),0)*CF.A(M.R(25+30*M.C(WingSine/32)),0,-M.R(62.5+15*M.C(WingSine/32))),.1) | |
2685 | RWingWelds[6].C0 = RWingWelds[6].C0:lerp(CF.N(0,5,-7.75)*CF.A(0,M.R(-90),0)*CF.A(M.R(35+40*M.C(WingSine/32)),0,-M.R(75+17.5*M.C(WingSine/32))),.1) | |
2686 | ||
2687 | local Walking = (math.abs(Root.Velocity.x) > 1 or math.abs(Root.Velocity.z) > 1) | |
2688 | local State = (Hum.PlatformStand and 'Paralyzed' or Hum.Sit and 'Sit' or not hitfloor and Root.Velocity.y < -1 and "Fall" or not hitfloor and Root.Velocity.y > 1 and "Jump" or hitfloor and Walking and (Hum.WalkSpeed < 24 and "Walk" or "Run") or hitfloor and "Idle") | |
2689 | if(not Effects or not Effects.Parent)then | |
2690 | Effects = IN("Model",Char) | |
2691 | Effects.Name = "Effects" | |
2692 | end | |
2693 | if(State == 'Run' and Mode ~= 5 and Mode ~= 10 and Mode ~= 666666666666)then | |
2694 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
2695 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
2696 | Change = 1 | |
2697 | ||
2698 | elseif(State == 'Walk' and Mode ~= 5 and Mode ~= 10 and Mode ~= 666666666666)then | |
2699 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
2700 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
2701 | Change = 1 | |
2702 | if(Mode == 7)then | |
2703 | RH.C1 = RH.C1:lerp(CF.N(0,1-.05*M.C(Sine/wsVal),0+.1*M.C(Sine/wsVal))*CF.A(M.R(8-0*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/3,0,0),Alpha) | |
2704 | LH.C1 = LH.C1:lerp(CF.N(0,1+.05*M.C(Sine/wsVal),0-.1*M.C(Sine/wsVal))*CF.A(M.R(8+0*M.C(Sine/wsVal))+M.S(Sine/wsVal)/3,0,0),Alpha) | |
2705 | else | |
2706 | RH.C1 = RH.C1:lerp(CF.N(0,1-.1*M.C(Sine/wsVal),0+.2*M.C(Sine/wsVal))*CF.A(M.R(16-0*M.C(Sine/wsVal))+-M.S(Sine/wsVal)/1.75,0,0),Alpha) | |
2707 | LH.C1 = LH.C1:lerp(CF.N(0,1+.1*M.C(Sine/wsVal),0-.2*M.C(Sine/wsVal))*CF.A(M.R(16+0*M.C(Sine/wsVal))+M.S(Sine/wsVal)/1.75,0,0),Alpha) | |
2708 | end | |
2709 | else | |
2710 | RH.C1 = RH.C1:lerp(CF.N(0,1,0),.2) | |
2711 | LH.C1 = LH.C1:lerp(CF.N(0,1,0),.2) | |
2712 | end | |
2713 | ||
2714 | Hum.WalkSpeed = WalkSpeed | |
2715 | if(NeutralAnims)then | |
2716 | if(State == 'Idle')then | |
2717 | local Alpha = .1 | |
2718 | if(Mode == 1)then | |
2719 | Change = 1 | |
2720 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00779043138, -0.0846293643+.1*M.C(Sine/32), -0.204210758, 0.912902117, -0.00691865245, -0.408120036, 0.117574908, 0.961935759, 0.246689886, 0.390878439, -0.273188382, 0.87896657),Alpha) | |
2721 | LH.C0 = clerp(LH.C0,CFrame.new(-0.587742627, -1.00122428-.1*M.C(Sine/32), -0.165018916, 0.860076427, 0.294745922, 0.416405559, -0.252913684, 0.955196917, -0.15373303, -0.443061411, 0.0269074962, 0.896087468),Alpha) | |
2722 | RH.C0 = clerp(RH.C0,CFrame.new(0.343915284, -1.07833397-.1*M.C(Sine/32), -0.0402937233, 0.964631855, -0.173768938, -0.198217094, 0.117325157, 0.956397653, -0.26746732, 0.236051857, 0.234751642, 0.942958832),Alpha) | |
2723 | LS.C0 = clerp(LS.C0,CFrame.new(-1.39700282, 0.545769572, -0.00181379914, 0.907886505, 0.355485201, -0.222199559, -0.405204862, 0.880023003, -0.247727305, 0.107477367, 0.314944565, 0.943005204)*CF.A(0,M.R(16-8*M.C(Sine/32)),M.R(0+12*M.C(Sine/32)))*CF.A(0,M.R(0+4*M.C(Sine/0.173278)),M.R(0+15*M.S(Sine/0.476125))),Alpha) | |
2724 | RS.C0 = clerp(RS.C0,CFrame.new(0.903979659, 0.624733686, -0.396169931, 0.827836394, 0.560810268, -0.013374418, 0.472599089, -0.7100721, -0.521965444, -0.302220345, 0.42578119, -0.852861941)*CF.A(0,M.R(0+4*M.C(Sine/0.61237)),M.R(0+15*M.S(Sine/0.716246))),Alpha) | |
2725 | NK.C0 = clerp(NK.C0,CFrame.new(-0.0470906645, 1.53467083, -0.115898043, 0.906688511, -0.16142872, 0.389688164, -0.00265284558, 0.921666741, 0.387973785, -0.421792656, -0.352805078, 0.835236311)*CF.A(0,M.R(0+4*M.C(Sine/0.61237)),M.R(0+15*M.S(Sine/0.716246))),Alpha) | |
2726 | elseif(Mode == 2)then | |
2727 | Change = 1 | |
2728 | RJ.C0 = clerp(RJ.C0,CFrame.new(2.74447132e-13, 0.00628674868+.1*M.C(Sine/32), -5.34626452e-07, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2729 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496485978, -0.990816116-.1*M.C(Sine/32), 0.0216165781, 0.970629156, 7.27576055e-11, 0.240580648, -0.00151285366, 0.999980211, 0.00610364834, -0.240575925, -0.00628834311, 0.970610023),Alpha) | |
2730 | RH.C0 = clerp(RH.C0,CFrame.new(0.491330802, -1.06821454-.1*M.C(Sine/32), 0.0589520633, 0.986244023, 0.0538565964, -0.156276181, 0.00103943795, 0.943392873, 0.331676066, 0.165292785, -0.327276021, 0.930359602),Alpha) | |
2731 | LS.C0 = clerp(LS.C0,CFrame.new(-0.787155986, 0.248306945, -0.683226228, 0.0398273654, -0.999169707, 0.00859495346, 0.554963291, 0.0149663882, -0.831740201, 0.830920994, 0.0378959104, 0.555098593)*CF.A(M.R(0+5*M.C(Sine/32)),0,0),Alpha) | |
2732 | RS.C0 = clerp(RS.C0,CFrame.new(0.787632346, 0.574486911, -0.794373989, 0.0789790228, 0.995851278, 0.0451963581, 0.631366551, -0.0148838377, -0.775341749, -0.771452367, 0.0897712111, -0.629922688)*CF.A(M.R(0+5*M.C(Sine/32)),0,0),Alpha) | |
2733 | NK.C0 = clerp(NK.C0,CFrame.new(8.16642296e-06, 1.49894726, -0.014402397, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha) | |
2734 | elseif(Mode == 3)then | |
2735 | Change = 1 | |
2736 | RJ.C0 = clerp(RJ.C0,CFrame.new(0.022457514, 0.0062841149, -0.00324006379, 0.982301593, 0.00117789698, 0.187302738, -4.02951969e-07, 0.999980211, -0.00628649723, -0.187306449, 0.00617515948, 0.982282162),Alpha) | |
2737 | LH.C0 = clerp(LH.C0,CFrame.new(-0.539962769, -1.00525093, -0.13583532, 0.998935044, -0.0434875898, 0.0154168755, 0.040365234, 0.985544145, 0.164539278, -0.0223494321, -0.163741738, 0.986250162),Alpha) | |
2738 | RH.C0 = clerp(RH.C0,CFrame.new(0.498531163, -0.990978718, 0.01546143, 0.985106111, 0, -0.171948016, 0.00108131359, 0.999980211, 0.00619494682, 0.171944603, -0.00628860993, 0.98508662),Alpha) | |
2739 | LS.C0 = clerp(LS.C0,CFrame.new(-1.42806315, 0.51039964, -0.00658199936, 0.990103781, 0.139778674, -0.0125195384, -0.139578417, 0.97154665, -0.191350713, -0.0145834237, 0.191204533, 0.981441915)*CF.A(0,0,M.R(0+6*M.C(Sine/32)))*CF.A(0,M.R(0+4*M.C(Sine/0.61237)),M.R(0+15*M.S(Sine/0.716246))),Alpha) | |
2740 | RS.C0 = clerp(RS.C0,CFrame.new(1.42666709, 0.532186806, -0.134510398, 0.990944147, -0.126525059, 0.0449620783, 0.133282125, 0.967499852, -0.214895189, -0.0163111985, 0.218941733, 0.975601614)*CF.A(0,0,M.R(0-6*M.C(Sine/32)))*CF.A(0,M.R(0+4*M.C(Sine/0.012802)),M.R(0-15*M.S(Sine/0.716246))),Alpha) | |
2741 | NK.C0 = clerp(NK.C0,CFrame.new(2.28285789e-05, 1.49894154, -0.0143941939, 0.984171331, -0.0497024879, -0.170107797, 0.0760453045, 0.985445082, 0.152036116, 0.160075322, -0.162565485, 0.973626494)*CF.A(M.R(0+3*M.C(Sine/32)),0,M.R(0+6*M.C(Sine/32)))*CF.A(0,M.R(0+16*M.C(Sine/0.98172)),M.R(0+15*M.S(Sine/0.65142))),Alpha) | |
2742 | elseif(Mode == 4)then | |
2743 | Change = 1 | |
2744 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00847404078, -0.131645858+.1*M.C(Sine/16), -0.542845488, 0.999965072, -0.00807052851, -0.00218774565, 0.00805599708, 0.85972774, 0.510689199, -0.00224066619, -0.51068902, 0.859762609),Alpha) | |
2745 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496114701, -1.0144912-.1*M.C(Sine/16), 0.0453964472, 0.976583362, 0.00805600174, 0.214989081, 0.103035107, 0.859728813, -0.50025022, -0.188862324, 0.510687351, 0.838766694),Alpha) | |
2746 | RH.C0 = clerp(RH.C0,CFrame.new(0.498885572, -1.01948476-.1*M.C(Sine/16), 0.0378640294, 0.997592449, 0.00805600174, -0.0688822865, -0.0420893468, 0.859728813, -0.509013772, 0.055119466, 0.510687351, 0.857997894),Alpha) | |
2747 | LS.C0 = clerp(LS.C0,CFrame.new(-1.42592692, 0.493003547, -0.129623473, 0.987043619, 0.159894824, 0.0133710029, -0.130732149, 0.849730968, -0.51075089, -0.0930281729, 0.502385318, 0.859624803)*CF.A(0,0,M.R(0+6*M.C(Sine/32)))*CF.A(0,M.R(0+4*M.C(Sine/0.817272)),M.R(0+15*M.S(Sine/0.9872346))),Alpha) | |
2748 | RS.C0 = clerp(RS.C0,CFrame.new(1.1449033, 0.691183329, -0.239056498, 0.899715602, 0.434673697, 0.0396348648, 0.435808241, -0.899650335, -0.0264700353, 0.024151668, 0.0410887003, -0.998863578)*CF.A(0,M.R(0+4*M.C(Sine/0.61237)),M.R(0+15*M.S(Sine/0.716246))),Alpha) | |
2749 | NK.C0 = clerp(NK.C0,CFrame.new(7.87388399e-06, 1.43020797, -0.212884247, 1, -8.72649252e-07, -4.02983278e-06, 2.92807817e-06, 0.838354766, 0.545125127, 2.90293247e-06, -0.545125067, 0.838354826)*CF.A(0,M.R(0+4*M.C(Sine/0.61237)),M.R(0+15*M.S(Sine/0.716246))),Alpha) | |
2750 | elseif(Mode == 5)then | |
2751 | Change = 1 | |
2752 | RJ.C0 = clerp(RJ.C0,CFrame.new(5.48791013e-11, 1.2571125+.5*M.C(Sine/32), -3.51015478e-06, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2753 | LH.C0 = clerp(LH.C0,CFrame.new(-0.436587602, -0.992619872, 0.0206923336, 0.99808234, 0.0599006973, 0.0156119233, -0.0600048117, 0.998178363, 0.00628757617, -0.0152068557, -0.0072123101, 0.999858439),Alpha) | |
2754 | RH.C0 = clerp(RH.C0,CFrame.new(0.481217712, -0.504008591, -0.8678087, 0.997120202, -0.0733773932, -0.0191624481, 0.0741236135, 0.889526427, 0.450830936, -0.0160352942, -0.450953096, 0.892403722),Alpha) | |
2755 | LS.C0 = clerp(LS.C0,CFrame.new(-1.49673307, 0.593781948+.1*M.C(Sine/32), 0.0200225115, 0.966687799, 0.25548178, 0.0156119233, -0.255602777, 0.96676141, 0.00628757617, -0.0134866452, -0.0100685749, 0.999858439)*CF.A(0,0,M.R(0+5*M.C(Sine/32))),Alpha) | |
2756 | RS.C0 = clerp(RS.C0,CFrame.new(1.50987279, 0.675035477+.1*M.C(Sine/32), -0.0274340063, 0.943747699, -0.330297619, 0.0156119233, 0.33023873, 0.943876505, 0.00628757617, -0.0168125015, -0.000778224785, 0.999858439)*CF.A(0,0,M.R(0-5*M.C(Sine/32))),Alpha) | |
2757 | NK.C0 = clerp(NK.C0,CFrame.new(4.35172478e-06, 1.49894357, -0.0144011974, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799),Alpha) | |
2758 | elseif(Mode == 666666666666)then | |
2759 | Change = 1 | |
2760 | NoobySphere(4,.025,"Multiply",RArm.CFrame*CF.N(0,-1.25,0)*CF.A(M.RRNG(-180,180),M.RRNG(-180,180),M.RRNG(-180,180)),V3.N(.5,.5,.5),0,BrickColor.new'Black',0) | |
2761 | RJ.C0 = clerp(RJ.C0,CFrame.new(7.0558559e-11, 1.61628103+.5*M.C(Sine/32), -3.05566937e-06, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271),Alpha) | |
2762 | LH.C0 = clerp(LH.C0,CFrame.new(-0.473465502, -1.00430846, 0.0547358543, 0.996436775, 0.0789096355, 0.0297838245, -0.0829922184, 0.980262518, 0.179437637, -0.0150366053, -0.181270093, 0.983318448),Alpha) | |
2763 | RH.C0 = clerp(RH.C0,CFrame.new(0.500664473, -0.996896267, 0.0722374618, 0.994860828, -0.10125193, 0.00038037356, 0.0999543592, 0.982697129, 0.155934408, -0.0161624532, -0.155095011, 0.987767398),Alpha) | |
2764 | LS.C0 = clerp(LS.C0,CFrame.new(-1.29428089, 0.420441031, 0.493041277, 0.816086888, -0.538787425, 0.209070042, 0.381859779, 0.774240494, 0.504712522, -0.43380329, -0.33205387, 0.837588906)*CF.A(0,0,M.R(0-5*M.C(Sine/32)))*CF.A(0,M.R(0+4*M.C(Sine/0.173278)),M.R(0+15*M.S(Sine/0.01278125))),Alpha) | |
2765 | RS.C0 = clerp(RS.C0,CFrame.new(1.36178303, 0.535555065, 0.0481818169, 0.959323943, -0.276642442, -0.0562722012, -0.281998605, -0.948367953, -0.145173192, -0.0132056763, 0.155136824, -0.98780489)*CF.A(0,0,M.R(0+5*M.C(Sine/32)))*CF.A(0,M.R(0+4*M.C(Sine/0.173278)),M.R(0+15*M.S(Sine/0.01278125))),Alpha) | |
2766 | NK.C0 = clerp(NK.C0,CFrame.new(0.0176411867, 1.49121404, -0.0637010336, 0.942441404, 0.0288463272, -0.333124816, 0.0213407781, 0.989051461, 0.146020114, 0.333689809, -0.144724563, 0.931507409)*CF.A(0,M.R(0+4*M.C(Sine/0.173278)),M.R(0+7.5*M.S(Sine/0.01278125))),Alpha) | |
2767 | else | |
2768 | Change = .75 | |
2769 | RJ.C0 = RJ.C0:lerp(RJC0*CF.N(0,.2*M.C(Sine/6),0)*CF.A(M.R(-5+5*M.C(Sine/12)),M.R(-10),0),Alpha) | |
2770 | NK.C0 = NK.C0:lerp(NKC0*CF.A(M.R(-5+5*M.C(Sine/12)),0,0),Alpha) | |
2771 | LS.C0 = LS.C0:lerp(LSC0*CF.A(0,0,M.R(-7-5*M.C(Sine/12))),Alpha) | |
2772 | RS.C0 = RS.C0:lerp(RSC0*CF.A(0,0,M.R(7+5*M.C(Sine/12))),Alpha) | |
2773 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,-.2*M.C(Sine/6),0)*CF.A(M.R(5-5*M.C(Sine/12)),M.R(10),0),Alpha) | |
2774 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,-.2*M.C(Sine/6),0)*CF.A(M.R(5-5*M.C(Sine/12)),M.R(-10),0),Alpha) | |
2775 | end | |
2776 | -- idle | |
2777 | elseif(State == 'Run' and Mode ~= 5 and Mode ~= 10 and Mode ~= 666666666666)then | |
2778 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
2779 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
2780 | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-15+2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha) | |
2781 | NK.C0 = NK.C0:lerp(NKC0,Alpha) | |
2782 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,0-.3*M.S(Sine/wsVal))*CF.A(M.R(0+45*M.S(Sine/wsVal)),0,M.R(-5)),Alpha) | |
2783 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,0+.3*M.S(Sine/wsVal))*CF.A(M.R(0-45*M.S(Sine/wsVal)),0,M.R(5)),Alpha) | |
2784 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
2785 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
2786 | elseif(State == 'Walk' and Mode ~= 5 and Mode ~= 7 and Mode ~= 10 and Mode ~= 666666666666)then | |
2787 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
2788 | local Alpha = math.min(.2 * (Hum.WalkSpeed/16),1) | |
2789 | if(Mode == 4)then | |
2790 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00847404078, -0.131645858-.1*M.C(Sine/(wsVal)), -0.542845488, 0.999965072, -0.00807052851, -0.00218774565, 0.00805599708, 0.85972774, 0.510689199, -0.00224066619, -0.51068902, 0.859762609),Alpha) | |
2791 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496114701, -1.0144912+.1*M.C(Sine/(wsVal)), 0.0453964472, 0.976583362, 0.00805600174, 0.214989081, 0.103035107, 0.859728813, -0.50025022, -0.188862324, 0.510687351, 0.838766694),Alpha) | |
2792 | RH.C0 = clerp(RH.C0,CFrame.new(0.498885572, -1.01948476+.1*M.C(Sine/(wsVal)), 0.0378640294, 0.997592449, 0.00805600174, -0.0688822865, -0.0420893468, 0.859728813, -0.509013772, 0.055119466, 0.510687351, 0.857997894),Alpha) | |
2793 | LS.C0 = clerp(LS.C0,CFrame.new(-1.42592692, 0.493003547, -0.129623473, 0.987043619, 0.159894824, 0.0133710029, -0.130732149, 0.849730968, -0.51075089, -0.0930281729, 0.502385318, 0.859624803)*CF.A(M.R(0+15*M.C(Sine/wsVal)),0,0)*CF.A(0,M.R(0+4*M.C(Sine/0.817272)),M.R(0+15*M.S(Sine/0.9872346))),Alpha) | |
2794 | RS.C0 = clerp(RS.C0,CFrame.new(1.1449033, 0.691183329, -0.239056498, 0.899715602, 0.434673697, 0.0396348648, 0.435808241, -0.899650335, -0.0264700353, 0.024151668, 0.0410887003, -0.998863578)*CF.A(0,M.R(0+4*M.C(Sine/0.61237)),M.R(0+15*M.S(Sine/0.716246))),Alpha) | |
2795 | NK.C0 = clerp(NK.C0,CFrame.new(7.87388399e-06, 1.43020797, -0.212884247, 1, -8.72649252e-07, -4.02983278e-06, 2.92807817e-06, 0.838354766, 0.545125127, 2.90293247e-06, -0.545125067, 0.838354826)*CF.A(0,M.R(0+4*M.C(Sine/0.61237)),M.R(0+15*M.S(Sine/0.716246))),Alpha) | |
2796 | elseif(Mode == 696969)then | |
2797 | RJ.C0 = clerp(RJ.C0,CFrame.new(-0.00847404078, -0.131645858-.1*M.C(Sine/(wsVal)), -0.542845488, 0.999965072, -0.00807052851, -0.00218774565, 0.00805599708, 0.85972774, 0.510689199, -0.00224066619, -0.51068902, 0.859762609),Alpha) | |
2798 | LH.C0 = clerp(LH.C0,CFrame.new(-0.496114701, -1.0144912+.1*M.C(Sine/(wsVal)), 0.0453964472, 0.976583362, 0.00805600174, 0.214989081, 0.103035107, 0.859728813, -0.50025022, -0.188862324, 0.510687351, 0.838766694),Alpha) | |
2799 | RH.C0 = clerp(RH.C0,CFrame.new(0.498885572, -1.01948476+.1*M.C(Sine/(wsVal)), 0.0378640294, 0.997592449, 0.00805600174, -0.0688822865, -0.0420893468, 0.859728813, -0.509013772, 0.055119466, 0.510687351, 0.857997894),Alpha) | |
2800 | LS.C0 = clerp(LS.C0,CFrame.new(-1.3136189, 0.462844551+.1*M.C(Sine/wsVal), 0.00274867564, 0.929629087, -0.368184805, -0.015158236, -0.360420376, -0.899919868, -0.245441884, 0.0767267719, 0.23363328, -0.969292879)*CF.A(0,M.R(0+4*M.C(Sine/0.173278)),M.R(0+15*M.S(Sine/0.01278125))),Alpha) | |
2801 | RS.C0 = clerp(RS.C0,CFrame.new(1.25962329, 0.543387234+.1*M.C(Sine/wsVal), 0.0906403661, 0.898135066, 0.439483941, -0.0144048491, 0.399390757, -0.829028964, -0.391405523, -0.183958456, 0.345781803, -0.920105577)*CF.A(0,M.R(0+4*M.C(Sine/0.173278)),M.R(0+15*M.S(Sine/0.01278125))),Alpha) | |
2802 | NK.C0 = clerp(NK.C0,CFrame.new(7.87388399e-06, 1.43020797, -0.212884247, 1, -8.72649252e-07, -4.02983278e-06, 2.92807817e-06, 0.838354766, 0.545125127, 2.90293247e-06, -0.545125067, 0.838354826)*CF.A(0,M.R(0+4*M.C(Sine/0.61237)),M.R(0+15*M.S(Sine/0.716246))),Alpha) | |
2803 | ||
2804 | elseif(Mode == 1)then | |
2805 | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-5-2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha) | |
2806 | NK.C0 = NK.C0:lerp(NKC0*CF.A(0,M.R(0+4*M.C(Sine/0.61237)),M.R(0+15*M.S(Sine/0.716246))),Alpha) | |
2807 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.22*M.C(Sine/wsVal))*CF.A(M.R(0+37*M.C(Sine/wsVal)),0,M.R(-5+10*M.C(Sine/(wsVal/2))) ),Alpha) | |
2808 | RS.C0 = clerp(RS.C0,CFrame.new(1.2, 0.7, -0.396169931, 0.827836394, 0.560810268, -0.013374418, 0.472599089, -0.7100721, -0.521965444, -0.302220345, 0.42578119, -0.852861941)*CF.A(0,M.R(0+4*M.C(Sine/0.61237)),M.R(0+15*M.S(Sine/0.716246))),Alpha) | |
2809 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
2810 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
2811 | else | |
2812 | if(hitfloor and Mode == 9)then Effect{Material=Enum.Material.Neon,Effect='Fade',Mesh={MeshType=Enum.MeshType.Cylinder},Size=V3.N(.1,5,5),Frames=120,Color=BrickColor.new'Forest green',CFrame=CF.N(posfloor,posfloor+norm)*CF.A(0,M.R(90),0)} end | |
2813 | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-5-2.5*M.C(Sine/(wsVal/2))),M.R(8*M.C(Sine/wsVal)),0),Alpha) | |
2814 | NK.C0 = NK.C0:lerp(NKC0,Alpha) | |
2815 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.22*M.C(Sine/wsVal))*CF.A(M.R(37*M.C(Sine/wsVal)),0,M.R(-5+10*M.C(Sine/(wsVal/2))) ),Alpha) | |
2816 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.22*M.C(Sine/wsVal))*CF.A(M.R(-37*M.C(Sine/wsVal)),0,M.R(5-10*M.C(Sine/(wsVal/2))) ),Alpha) | |
2817 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
2818 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
2819 | end | |
2820 | elseif(State == 'Walk' and Mode == 7)then | |
2821 | local wsVal = 7 / (Hum.WalkSpeed/16) | |
2822 | local Alpha = math.min(.3 * (Hum.WalkSpeed/8),1) | |
2823 | RJ.C0 = RJ.C0:lerp(CF.N(0,0-.1*M.C(Sine/(wsVal/2)),0)*CF.A(M.R(-2.5-1.25*M.C(Sine/(wsVal/2))),M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
2824 | NK.C0 = NK.C0:lerp(NKC0,Alpha) | |
2825 | LS.C0 = LS.C0:lerp(LSC0*CF.N(0,0,-.11*M.C(Sine/wsVal))*CF.A(M.R(18.5*M.C(Sine/wsVal)),0,M.R(-2.5+5*M.C(Sine/(wsVal/2))) ),Alpha) | |
2826 | RS.C0 = RS.C0:lerp(RSC0*CF.N(0,0,.11*M.C(Sine/wsVal))*CF.A(M.R(-18.5*M.C(Sine/wsVal)),0,M.R(2.5-5*M.C(Sine/(wsVal/2))) ),Alpha) | |
2827 | LH.C0 = LH.C0:lerp(LHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
2828 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,0+.1*M.C(Sine/(wsVal/2)),0)*CF.A(0,-M.R(4*M.C(Sine/wsVal)),0),Alpha) | |
2829 | elseif((State == 'Walk' or State == 'Run') and Mode == 10)then | |
2830 | Change = 1 | |
2831 | local Alpha = .1 | |
2832 | RJ.C0 = clerp(RJ.C0,CFrame.new(5.48791013e-11, 0.881578624+.5*M.C(Sine/32), -3.51015478e-06, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271)*CF.A(M.R(-45),0,0),Alpha) | |
2833 | LH.C0 = clerp(LH.C0,CFrame.new(-0.507622898, -0.617543876, -0.694063663, 0.999877989, -0.00717858272, 0.0138636231, -9.81731864e-05, 0.885106385, 0.465388477, -0.0156116197, -0.465333343, 0.884998262),Alpha) | |
2834 | RH.C0 = clerp(RH.C0,CFrame.new(0.499199599, -0.96504283, 0.0578122139, 0.999877989, -0.00369151891, 0.0151692061, -9.81731864e-05, 0.970136404, 0.242559701, -0.0156116197, -0.242531747, 0.970018268),Alpha) | |
2835 | LS.C0 = clerp(LS.C0,CFrame.new(-1.49673307, 0.593781948+.2*M.C(Sine/32), 0.0200225115, 0.966687799, 0.25548178, 0.0156119233, -0.255602777, 0.96676141, 0.00628757617, -0.0134866452, -0.0100685749, 0.999858439)*CF.A(M.R(-45),M.R(25),M.R(5+5*M.C(Sine/32))),Alpha) | |
2836 | RS.C0 = clerp(RS.C0,CFrame.new(1.50987279, 0.675035477+.2*M.C(Sine/32), -0.0274340063, 0.943747699, -0.330297619, 0.0156119233, 0.33023873, 0.943876505, 0.00628757617, -0.0168125015, -0.000778224785, 0.999858439)*CF.A(M.R(-45),M.R(-25),M.R(-5-5*M.C(Sine/32))),Alpha) | |
2837 | NK.C0 = clerp(NK.C0,CFrame.new(4.35172478e-06, 1.49894357, -0.0144011974, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799)*CF.A(M.R(45),0,0),Alpha) | |
2838 | elseif((State == 'Walk' or State == 'Run') and Mode == 666666666666)then | |
2839 | Change = 1 | |
2840 | local Alpha = .1 | |
2841 | RJ.C0 = clerp(RJ.C0,CFrame.new(5.48791013e-11, 1.61628103+.5*M.C(Sine/32), -3.51015478e-06, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271)*CF.A(M.R(-65),0,0),Alpha) | |
2842 | LH.C0 = clerp(LH.C0,CFrame.new(-0.507622898, -0.617543876, -0.694063663, 0.999877989, -0.00717858272, 0.0138636231, -9.81731864e-05, 0.885106385, 0.465388477, -0.0156116197, -0.465333343, 0.884998262),Alpha) | |
2843 | RH.C0 = clerp(RH.C0,CFrame.new(0.499199599, -0.96504283, 0.0578122139, 0.999877989, -0.00369151891, 0.0151692061, -9.81731864e-05, 0.970136404, 0.242559701, -0.0156116197, -0.242531747, 0.970018268),Alpha) | |
2844 | LS.C0 = clerp(LS.C0,CFrame.new(-1.49673307, 0.593781948+.2*M.C(Sine/32), 0.0200225115, 0.966687799, 0.25548178, 0.0156119233, -0.255602777, 0.96676141, 0.00628757617, -0.0134866452, -0.0100685749, 0.999858439)*CF.A(M.R(-55),M.R(25),M.R(5+5*M.C(Sine/32))),Alpha) | |
2845 | RS.C0 = clerp(RS.C0,CFrame.new(1.50987279, 0.675035477+.2*M.C(Sine/32), -0.0274340063, 0.943747699, -0.330297619, 0.0156119233, 0.33023873, 0.943876505, 0.00628757617, -0.0168125015, -0.000778224785, 0.999858439)*CF.A(M.R(-55),M.R(-25),M.R(-5-5*M.C(Sine/32))),Alpha) | |
2846 | NK.C0 = clerp(NK.C0,CFrame.new(4.35172478e-06, 1.49894357, -0.0144011974, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799)*CF.A(M.R(65),0,0),Alpha) | |
2847 | ||
2848 | elseif((State == 'Walk' or State == 'Run'))then | |
2849 | Change = 1 | |
2850 | local Alpha = .1 | |
2851 | RJ.C0 = clerp(RJ.C0,CFrame.new(5.48791013e-11, 1.2571125+.5*M.C(Sine/32), -3.51015478e-06, 0.99999994, 4.36557457e-11, 0, -4.3652193e-11, 0.999980211, -0.00628619269, 9.31322575e-10, 0.00628619175, 0.999980271)*CF.A(M.R(-75),0,0),Alpha) | |
2852 | LH.C0 = clerp(LH.C0,CFrame.new(-0.436587602, -0.992619872, 0.0206923336, 0.99808234, 0.0599006973, 0.0156119233, -0.0600048117, 0.998178363, 0.00628757617, -0.0152068557, -0.0072123101, 0.999858439),Alpha) | |
2853 | RH.C0 = clerp(RH.C0,CFrame.new(0.481217712, -0.504008591, -0.8678087, 0.997120202, -0.0733773932, -0.0191624481, 0.0741236135, 0.889526427, 0.450830936, -0.0160352942, -0.450953096, 0.892403722),Alpha) | |
2854 | LS.C0 = clerp(LS.C0,CFrame.new(-1.49673307, 0.593781948+.2*M.C(Sine/32), 0.0200225115, 0.966687799, 0.25548178, 0.0156119233, -0.255602777, 0.96676141, 0.00628757617, -0.0134866452, -0.0100685749, 0.999858439)*CF.A(M.R(-15),M.R(25),M.R(5+5*M.C(Sine/32))),Alpha) | |
2855 | RS.C0 = clerp(RS.C0,CFrame.new(1.50987279, 0.675035477+.2*M.C(Sine/32), -0.0274340063, 0.943747699, -0.330297619, 0.0156119233, 0.33023873, 0.943876505, 0.00628757617, -0.0168125015, -0.000778224785, 0.999858439)*CF.A(M.R(-15),M.R(-25),M.R(-5-5*M.C(Sine/32))),Alpha) | |
2856 | NK.C0 = clerp(NK.C0,CFrame.new(4.35172478e-06, 1.49894357, -0.0144011974, 0.99999994, 3.67523171e-07, -1.61118805e-07, -3.56500095e-07, 0.997964799, 0.0637688041, 1.8440187e-07, -0.063768819, 0.997964799)*CF.A(M.R(75),0,0),Alpha) | |
2857 | ||
2858 | elseif(State == 'Jump')then | |
2859 | local Alpha = .1 | |
2860 | local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90)) | |
2861 | LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)),Alpha) | |
2862 | RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)),Alpha) | |
2863 | RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
2864 | NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
2865 | LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha) | |
2866 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha) | |
2867 | elseif(State == 'Fall')then | |
2868 | local Alpha = .1 | |
2869 | local idk = math.min(math.max(Root.Velocity.Y/50,-M.R(90)),M.R(90)) | |
2870 | LS.C0 = LS.C0:lerp(LSC0*CF.A(M.R(-5),0,M.R(-90)+idk),Alpha) | |
2871 | RS.C0 = RS.C0:lerp(RSC0*CF.A(M.R(-5),0,M.R(90)-idk),Alpha) | |
2872 | RJ.C0 = RJ.C0:lerp(RJC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
2873 | NK.C0 = NK.C0:lerp(NKC0*CF.A(math.min(math.max(Root.Velocity.Y/100,-M.R(45)),M.R(45)),0,0),Alpha) | |
2874 | LH.C0 = LH.C0:lerp(LHC0*CF.A(0,0,M.R(-5)),Alpha) | |
2875 | RH.C0 = RH.C0:lerp(RHC0*CF.N(0,1,-1)*CF.A(M.R(-5),0,M.R(5)),Alpha) | |
2876 | elseif(State == 'Paralyzed')then | |
2877 | -- paralyzed | |
2878 | elseif(State == 'Sit')then | |
2879 | -- sit | |
2880 | end | |
2881 | end | |
2882 | ||
2883 | ||
2884 | ||
2885 | for i,v in next, BloodPuddles do | |
2886 | local mesh = i:FindFirstChild'CylinderMesh' | |
2887 | BloodPuddles[i] = v + 1 | |
2888 | if(not mesh or i.Transparency >= 1)then | |
2889 | i:destroy() | |
2890 | BloodPuddles[i] = nil | |
2891 | elseif(v >= Frame_Speed*4)then | |
2892 | local trans = (v-Frame_Speed*4)/(Frame_Speed*2) | |
2893 | i.Transparency = trans | |
2894 | if(mesh.Scale.Z > 0)then | |
2895 | mesh.Scale = mesh.Scale-V3.N(.05,0,.05) | |
2896 | end | |
2897 | else | |
2898 | i.Transparency = 0 | |
2899 | end | |
2900 | end | |
2901 | end |