SHOW:
|
|
- or go back to the newest paste.
1 | - | local Player = game:GetService("Players").RoadRings |
1 | + | local Player = game:GetService("Players").TameDoNotClick |
2 | local Mouse,mouse,UserInputService,ContextActionService | |
3 | do | |
4 | script.Parent = Player.Character | |
5 | local CAS = {Actions={}} | |
6 | local Event = Instance.new("RemoteEvent") | |
7 | Event.Name = "UserInput_Event" | |
8 | Event.Parent = Player.Character | |
9 | local fakeEvent = function() | |
10 | local t = {_fakeEvent=true} | |
11 | t.Connect = function(self,f)self.Function=f end | |
12 | t.connect = t.Connect | |
13 | return t | |
14 | end | |
15 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
16 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
17 | function CAS:BindAction(name,fun,touch,...) | |
18 | CAS.Actions[name] = {Name=name,Function=fun,Keys={...}} | |
19 | end | |
20 | function CAS:UnbindAction(name) | |
21 | CAS.Actions[name] = nil | |
22 | end | |
23 | local function te(self,ev,...) | |
24 | local t = m[ev] | |
25 | if t and t._fakeEvent and t.Function then | |
26 | t.Function(...) | |
27 | end | |
28 | end | |
29 | m.TrigEvent = te | |
30 | UIS.TrigEvent = te | |
31 | Event.OnServerEvent:Connect(function(plr,io) | |
32 | if plr~=Player then return end | |
33 | if io.isMouse then | |
34 | m.Target = io.Target | |
35 | m.Hit = io.Hit | |
36 | elseif io.UserInputType == Enum.UserInputType.MouseButton1 then | |
37 | if io.UserInputState == Enum.UserInputState.Begin then | |
38 | m:TrigEvent("Button1Down") | |
39 | else | |
40 | m:TrigEvent("Button1Up") | |
41 | end | |
42 | else | |
43 | for n,t in pairs(CAS.Actions) do | |
44 | for _,k in pairs(t.Keys) do | |
45 | if k==io.KeyCode then | |
46 | t.Function(t.Name,io.UserInputState,io) | |
47 | end | |
48 | end | |
49 | end | |
50 | if io.UserInputState == Enum.UserInputState.Begin then | |
51 | m:TrigEvent("KeyDown",io.KeyCode.Name:lower()) | |
52 | UIS:TrigEvent("InputBegan",io,false) | |
53 | else | |
54 | m:TrigEvent("KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent("InputEnded",io,false) | |
56 | end | |
57 | end | |
58 | end) | |
59 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
60 | end | |
61 | ||
62 | ||
63 | --//====================================================\\-- | |
64 | --|| ORIGINAL BANISHER V3 GUN BY SHACKLUSTER | |
65 | --|| EDITED BY WANTH092 | |
66 | --|| FINISHED BY KILLERZTH_1596 | |
67 | --\\====================================================//-- | |
68 | ||
69 | script:ClearAllChildren() | |
70 | wait(0.2) | |
71 | ||
72 | - | Player = game.Players.RoadRings |
72 | + | Player = game.Players.TameDoNotClick |
73 | Character = Player.Character | |
74 | local txt = Instance.new("BillboardGui", Character) | |
75 | txt.Adornee = Character.Head | |
76 | txt.Name = "_status" | |
77 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
78 | txt.StudsOffset = Vector3.new(-9, 10, 0) | |
79 | local text = Instance.new("TextLabel", txt) | |
80 | text.Size = UDim2.new(10, 0, 7, 0) | |
81 | text.FontSize = "Size24" | |
82 | text.TextScaled = true | |
83 | text.TextTransparency = 0 | |
84 | text.BackgroundTransparency = 1 | |
85 | text.TextTransparency = 0 | |
86 | text.TextStrokeTransparency = 0 | |
87 | text.Font = "Antique" | |
88 | text.TextStrokeColor3 = Color3.new(1,0,0) | |
89 | text.Text = "Infectist" | |
90 | ||
91 | - | Player = game:GetService("Players").RoadRings |
91 | + | Player = game:GetService("Players").TameDoNotClick |
92 | PlayerGui = Player.PlayerGui | |
93 | Cam = workspace.CurrentCamera | |
94 | Backpack = Player.Backpack | |
95 | Character = Player.Character | |
96 | Humanoid = Character.Humanoid | |
97 | RootPart = Character["HumanoidRootPart"] | |
98 | Torso = Character["Torso"] | |
99 | Head = Character["Head"] | |
100 | RightArm = Character["Right Arm"] | |
101 | LeftArm = Character["Left Arm"] | |
102 | RightLeg = Character["Right Leg"] | |
103 | LeftLeg = Character["Left Leg"] | |
104 | RootJoint = RootPart["RootJoint"] | |
105 | Neck = Torso["Neck"] | |
106 | RightShoulder = Torso["Right Shoulder"] | |
107 | LeftShoulder = Torso["Left Shoulder"] | |
108 | RightHip = Torso["Right Hip"] | |
109 | LeftHip = Torso["Left Hip"] | |
110 | local TIME = 0 | |
111 | local sick = Instance.new("Sound",Torso) | |
112 | ||
113 | IT = Instance.new | |
114 | CF = CFrame.new | |
115 | VT = Vector3.new | |
116 | RAD = math.rad | |
117 | C3 = Color3.new | |
118 | UD2 = UDim2.new | |
119 | BRICKC = BrickColor.new | |
120 | ANGLES = CFrame.Angles | |
121 | EULER = CFrame.fromEulerAnglesXYZ | |
122 | COS = math.cos | |
123 | ACOS = math.acos | |
124 | SIN = math.sin | |
125 | ASIN = math.asin | |
126 | ABS = math.abs | |
127 | MRANDOM = math.random | |
128 | FLOOR = math.floor | |
129 | ||
130 | --//=================================\\ | |
131 | --|| USEFUL VALUES | |
132 | --\\=================================// | |
133 | ||
134 | Animation_Speed = 3 | |
135 | local FORCERESET = false | |
136 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
137 | local Speed = 18 | |
138 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
139 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
140 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
141 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
142 | local DAMAGEMULTIPLIER = 1 | |
143 | local ANIM = "Idle" | |
144 | local ATTACK = false | |
145 | local EQUIPPED = false | |
146 | local HOLD = false | |
147 | local COMBO = 1 | |
148 | local Rooted = false | |
149 | local SINE = 0 | |
150 | local KEYHOLD = false | |
151 | local CHANGE = 2 / Animation_Speed | |
152 | local WALKINGANIM = false | |
153 | local VALUE1 = false | |
154 | local VALUE2 = false | |
155 | local ROBLOXIDLEANIMATION = IT("Animation") | |
156 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
157 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
158 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
159 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
160 | WEAPONGUI.Name = "BanishV3Gui" | |
161 | local Weapon = IT("Model") | |
162 | Weapon.Name = "Adds" | |
163 | local Delete = IT("Model",Character) | |
164 | Delete.Name = "Banlist" | |
165 | local Effects = IT("Folder", Weapon) | |
166 | Effects.Name = "Effects" | |
167 | local ANIMATOR = Humanoid.Animator | |
168 | local ANIMATE = Character:FindFirstChild("Animate") | |
169 | local UNANCHOR = true | |
170 | local TOBANISH = {} | |
171 | script.Parent = PlayerGui | |
172 | local FADERS = true | |
173 | local MODE = "Infectist" | |
174 | local SONG = 494139763 | |
175 | local VOLUME = 3.5 | |
176 | local PITCH = 1 | |
177 | local SIZE = 1 | |
178 | local GHOSTS = {} | |
179 | ANIMATE:remove() | |
180 | Character.Archivable = true | |
181 | script.Parent = WEAPONGUI | |
182 | local GHOSTBASE = Character:Clone() | |
183 | GHOSTBASE.Parent = nil | |
184 | GHOSTBASE.Name = "Infected" | |
185 | for _, c in pairs(GHOSTBASE:GetChildren()) do | |
186 | if c.ClassName == "Part" and c.Transparency < 1 then | |
187 | c.Color = C3(0,0,0) | |
188 | if c.ClassName == "Accessory" or c.ClassName == "Hat" or c.ClassName == "CharacterMesh" or c.ClassName == "Shirt" or c.ClassName == "Pants" then | |
189 | c:remove() | |
190 | end | |
191 | end | |
192 | end | |
193 | local Effects = IT("Folder", Character) | |
194 | Effects.Name = "Effects" | |
195 | Character.Archivable = false | |
196 | local BODY = {} | |
197 | local SHOCKSOUND = 1544280726 | |
198 | local RINGSOUND = 340505360 | |
199 | local ULTHIT = 412831137 | |
200 | ||
201 | --//=================================\\ | |
202 | --\\=================================// | |
203 | ||
204 | ||
205 | --//=================================\\ | |
206 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
207 | --\\=================================// | |
208 | ||
209 | ArtificialHB = Instance.new("BindableEvent", script) | |
210 | ArtificialHB.Name = "ArtificialHB" | |
211 | ||
212 | script:WaitForChild("ArtificialHB") | |
213 | ||
214 | frame = Frame_Speed | |
215 | tf = 0 | |
216 | allowframeloss = false | |
217 | tossremainder = false | |
218 | lastframe = tick() | |
219 | script.ArtificialHB:Fire() | |
220 | ||
221 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
222 | tf = tf + s | |
223 | if tf >= frame then | |
224 | if allowframeloss then | |
225 | script.ArtificialHB:Fire() | |
226 | lastframe = tick() | |
227 | else | |
228 | for i = 1, math.floor(tf / frame) do | |
229 | script.ArtificialHB:Fire() | |
230 | end | |
231 | lastframe = tick() | |
232 | end | |
233 | if tossremainder then | |
234 | tf = 0 | |
235 | else | |
236 | tf = tf - frame * math.floor(tf / frame) | |
237 | end | |
238 | end | |
239 | end) | |
240 | ||
241 | --//=================================\\ | |
242 | --\\=================================// | |
243 | ||
244 | --//=================================\\ | |
245 | --|| SOME FUNCTIONS | |
246 | --\\=================================// | |
247 | ||
248 | function BANNEAREST(POS,RANGE) | |
249 | for i,v in ipairs(workspace:GetChildren()) do | |
250 | local body = v:GetChildren() | |
251 | for part = 1, #body do | |
252 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
253 | if(body[part].Position - POS).Magnitude < RANGE then | |
254 | if v:FindFirstChildOfClass("Humanoid") then | |
255 | Banish(v) | |
256 | if game.Players:FindFirstChild(v.Name) then | |
257 | local Value = IT("BoolValue",Delete) | |
258 | Value.Name = v.Name | |
259 | end | |
260 | end | |
261 | end | |
262 | end | |
263 | end | |
264 | end | |
265 | end | |
266 | ||
267 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
268 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
269 | end | |
270 | ||
271 | function CreateRing(SIZE,DOESROT,ROT,WAIT,CFRAME,COLOR,GROW) | |
272 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
273 | local mesh = IT("SpecialMesh",wave) | |
274 | mesh.MeshType = "FileMesh" | |
275 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
276 | mesh.Scale = SIZE | |
277 | mesh.Offset = VT(0,0,0) | |
278 | wave.CFrame = CFRAME | |
279 | coroutine.resume(coroutine.create(function(PART) | |
280 | for i = 1, WAIT do | |
281 | Swait() | |
282 | mesh.Scale = mesh.Scale + GROW | |
283 | if DOESROT == true then | |
284 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
285 | end | |
286 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
287 | if wave.Transparency > 0.99 then | |
288 | wave:remove() | |
289 | end | |
290 | end | |
291 | end)) | |
292 | end | |
293 | ||
294 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
295 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
296 | local mesh = IT("SpecialMesh",wave) | |
297 | mesh.MeshType = "Sphere" | |
298 | mesh.Scale = SIZE | |
299 | mesh.Offset = VT(0,0,0) | |
300 | wave.CFrame = CFRAME | |
301 | coroutine.resume(coroutine.create(function(PART) | |
302 | for i = 1, WAIT do | |
303 | Swait() | |
304 | mesh.Scale = mesh.Scale + GROW | |
305 | wave.Transparency = wave.Transparency + (1/WAIT) | |
306 | if wave.Transparency > 0.99 then | |
307 | wave:remove() | |
308 | end | |
309 | end | |
310 | end)) | |
311 | end | |
312 | ||
313 | function Slice(SIZE,WAIT,CFRAME,COLOR,GROW) | |
314 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
315 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
316 | wave.CFrame = CFRAME | |
317 | coroutine.resume(coroutine.create(function(PART) | |
318 | for i = 1, WAIT do | |
319 | Swait() | |
320 | mesh.Scale = mesh.Scale * GROW | |
321 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
322 | if wave.Transparency > 0.99 then | |
323 | wave:remove() | |
324 | end | |
325 | end | |
326 | end)) | |
327 | end | |
328 | ||
329 | ||
330 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
331 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
332 | end | |
333 | ||
334 | function PositiveAngle(NUMBER) | |
335 | if NUMBER >= 0 then | |
336 | NUMBER = 0 | |
337 | end | |
338 | return NUMBER | |
339 | end | |
340 | ||
341 | function NegativeAngle(NUMBER) | |
342 | if NUMBER <= 0 then | |
343 | NUMBER = 0 | |
344 | end | |
345 | return NUMBER | |
346 | end | |
347 | ||
348 | function Swait(NUMBER) | |
349 | if NUMBER == 0 or NUMBER == nil then | |
350 | ArtificialHB.Event:wait() | |
351 | else | |
352 | for i = 1, NUMBER do | |
353 | ArtificialHB.Event:wait() | |
354 | end | |
355 | end | |
356 | end | |
357 | ||
358 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
359 | local NEWMESH = IT(MESH) | |
360 | if MESH == "SpecialMesh" then | |
361 | NEWMESH.MeshType = MESHTYPE | |
362 | if MESHID ~= "nil" and MESHID ~= "" then | |
363 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
364 | end | |
365 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
366 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
367 | end | |
368 | end | |
369 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
370 | NEWMESH.Scale = SCALE | |
371 | NEWMESH.Parent = PARENT | |
372 | return NEWMESH | |
373 | end | |
374 | ||
375 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
376 | local NEWPART = IT("Part") | |
377 | NEWPART.formFactor = FORMFACTOR | |
378 | NEWPART.Reflectance = REFLECTANCE | |
379 | NEWPART.Transparency = TRANSPARENCY | |
380 | NEWPART.CanCollide = false | |
381 | NEWPART.Locked = true | |
382 | NEWPART.Anchored = true | |
383 | if ANCHOR == false then | |
384 | NEWPART.Anchored = false | |
385 | end | |
386 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
387 | NEWPART.Name = NAME | |
388 | NEWPART.Size = SIZE | |
389 | NEWPART.Position = Torso.Position | |
390 | NEWPART.Material = MATERIAL | |
391 | NEWPART:BreakJoints() | |
392 | NEWPART.Parent = PARENT | |
393 | return NEWPART | |
394 | end | |
395 | ||
396 | local function weldBetween(a, b) | |
397 | local weldd = Instance.new("ManualWeld") | |
398 | weldd.Part0 = a | |
399 | weldd.Part1 = b | |
400 | weldd.C0 = CFrame.new() | |
401 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
402 | weldd.Parent = a | |
403 | return weldd | |
404 | end | |
405 | ||
406 | ||
407 | function QuaternionFromCFrame(cf) | |
408 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
409 | local trace = m00 + m11 + m22 | |
410 | if trace > 0 then | |
411 | local s = math.sqrt(1 + trace) | |
412 | local recip = 0.5 / s | |
413 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
414 | else | |
415 | local i = 0 | |
416 | if m11 > m00 then | |
417 | i = 1 | |
418 | end | |
419 | if m22 > (i == 0 and m00 or m11) then | |
420 | i = 2 | |
421 | end | |
422 | if i == 0 then | |
423 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
424 | local recip = 0.5 / s | |
425 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
426 | elseif i == 1 then | |
427 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
428 | local recip = 0.5 / s | |
429 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
430 | elseif i == 2 then | |
431 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
432 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
433 | end | |
434 | end | |
435 | end | |
436 | ||
437 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
438 | local xs, ys, zs = x + x, y + y, z + z | |
439 | local wx, wy, wz = w * xs, w * ys, w * zs | |
440 | local xx = x * xs | |
441 | local xy = x * ys | |
442 | local xz = x * zs | |
443 | local yy = y * ys | |
444 | local yz = y * zs | |
445 | local zz = z * zs | |
446 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
447 | end | |
448 | ||
449 | function QuaternionSlerp(a, b, t) | |
450 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
451 | local startInterp, finishInterp; | |
452 | if cosTheta >= 0.0001 then | |
453 | if (1 - cosTheta) > 0.0001 then | |
454 | local theta = ACOS(cosTheta) | |
455 | local invSinTheta = 1 / SIN(theta) | |
456 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
457 | finishInterp = SIN(t * theta) * invSinTheta | |
458 | else | |
459 | startInterp = 1 - t | |
460 | finishInterp = t | |
461 | end | |
462 | else | |
463 | if (1 + cosTheta) > 0.0001 then | |
464 | local theta = ACOS(-cosTheta) | |
465 | local invSinTheta = 1 / SIN(theta) | |
466 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
467 | finishInterp = SIN(t * theta) * invSinTheta | |
468 | else | |
469 | startInterp = t - 1 | |
470 | finishInterp = t | |
471 | end | |
472 | end | |
473 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
474 | end | |
475 | ||
476 | function Clerp(a, b, t) | |
477 | local qa = {QuaternionFromCFrame(a)} | |
478 | local qb = {QuaternionFromCFrame(b)} | |
479 | local ax, ay, az = a.x, a.y, a.z | |
480 | local bx, by, bz = b.x, b.y, b.z | |
481 | local _t = 1 - t | |
482 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
483 | end | |
484 | ||
485 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
486 | local frame = IT("Frame") | |
487 | frame.BackgroundTransparency = TRANSPARENCY | |
488 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
489 | frame.Position = POSITION | |
490 | frame.Size = SIZE | |
491 | frame.BackgroundColor3 = COLOR | |
492 | frame.BorderColor3 = BORDERCOLOR | |
493 | frame.Name = NAME | |
494 | frame.Parent = PARENT | |
495 | return frame | |
496 | end | |
497 | ||
498 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
499 | local label = IT("TextLabel") | |
500 | label.BackgroundTransparency = 1 | |
501 | label.Size = UD2(1, 0, 1, 0) | |
502 | label.Position = UD2(0, 0, 0, 0) | |
503 | label.TextColor3 = TEXTCOLOR | |
504 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
505 | label.TextTransparency = TRANSPARENCY | |
506 | label.FontSize = TEXTFONTSIZE | |
507 | label.Font = TEXTFONT | |
508 | label.BorderSizePixel = BORDERSIZEPIXEL | |
509 | label.TextScaled = false | |
510 | label.Text = TEXT | |
511 | label.Name = NAME | |
512 | label.Parent = PARENT | |
513 | return label | |
514 | end | |
515 | ||
516 | function NoOutlines(PART) | |
517 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
518 | end | |
519 | ||
520 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
521 | local NEWWELD = IT(TYPE) | |
522 | NEWWELD.Part0 = PART0 | |
523 | NEWWELD.Part1 = PART1 | |
524 | NEWWELD.C0 = C0 | |
525 | NEWWELD.C1 = C1 | |
526 | NEWWELD.Parent = PARENT | |
527 | return NEWWELD | |
528 | end | |
529 | ||
530 | local S = IT("Sound") | |
531 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
532 | local NEWSOUND = nil | |
533 | coroutine.resume(coroutine.create(function() | |
534 | NEWSOUND = S:Clone() | |
535 | NEWSOUND.Parent = PARENT | |
536 | NEWSOUND.Volume = VOLUME | |
537 | NEWSOUND.Pitch = PITCH | |
538 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
539 | NEWSOUND:play() | |
540 | if DOESLOOP == true then | |
541 | NEWSOUND.Looped = true | |
542 | else | |
543 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
544 | NEWSOUND:remove() | |
545 | end | |
546 | end)) | |
547 | return NEWSOUND | |
548 | end | |
549 | ||
550 | function CFrameFromTopBack(at, top, back) | |
551 | local right = top:Cross(back) | |
552 | return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z) | |
553 | end | |
554 | ||
555 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
556 | function WACKYEFFECT(Table) | |
557 | local TYPE = (Table.EffectType or "Sphere") | |
558 | local SIZE = (Table.Size or VT(1,1,1)) | |
559 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
560 | local TRANSPARENCY = (Table.Transparency or 0) | |
561 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
562 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
563 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
564 | local ROTATION1 = (Table.RotationX or 0) | |
565 | local ROTATION2 = (Table.RotationY or 0) | |
566 | local ROTATION3 = (Table.RotationZ or 0) | |
567 | local MATERIAL = (Table.Material or "Neon") | |
568 | local COLOR = (Table.Color or C3(1,1,1)) | |
569 | local TIME = (Table.Time or 45) | |
570 | local SOUNDID = (Table.SoundID or nil) | |
571 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
572 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
573 | coroutine.resume(coroutine.create(function() | |
574 | local PLAYSSOUND = false | |
575 | local SOUND = nil | |
576 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
577 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
578 | PLAYSSOUND = true | |
579 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
580 | end | |
581 | EFFECT.Color = COLOR | |
582 | local MSH = nil | |
583 | if TYPE == "Sphere" then | |
584 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
585 | elseif TYPE == "Block" then | |
586 | MSH = IT("BlockMesh",EFFECT) | |
587 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
588 | elseif TYPE == "Wave" then | |
589 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
590 | elseif TYPE == "Ring" then | |
591 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
592 | elseif TYPE == "Slash" then | |
593 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
594 | elseif TYPE == "Round Slash" then | |
595 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
596 | elseif TYPE == "Swirl" then | |
597 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
598 | elseif TYPE == "Skull" then | |
599 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
600 | elseif TYPE == "Crystal" then | |
601 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
602 | end | |
603 | if MSH ~= nil then | |
604 | local MOVESPEED = nil | |
605 | if MOVEDIRECTION ~= nil then | |
606 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
607 | end | |
608 | local GROWTH = SIZE - ENDSIZE | |
609 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
610 | if TYPE == "Block" then | |
611 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
612 | else | |
613 | EFFECT.CFrame = CFRAME | |
614 | end | |
615 | for LOOP = 1, TIME+1 do | |
616 | Swait() | |
617 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
618 | if TYPE == "Wave" then | |
619 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
620 | end | |
621 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
622 | if TYPE == "Block" then | |
623 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
624 | else | |
625 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
626 | end | |
627 | if MOVEDIRECTION ~= nil then | |
628 | local ORI = EFFECT.Orientation | |
629 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
630 | EFFECT.Orientation = ORI | |
631 | end | |
632 | end | |
633 | if PLAYSSOUND == false then | |
634 | EFFECT:remove() | |
635 | else | |
636 | SOUND.Stopped:Connect(function() | |
637 | EFFECT:remove() | |
638 | end) | |
639 | end | |
640 | else | |
641 | if PLAYSSOUND == false then | |
642 | EFFECT:remove() | |
643 | else | |
644 | repeat Swait() until SOUND.Playing == false | |
645 | EFFECT:remove() | |
646 | end | |
647 | end | |
648 | end)) | |
649 | end | |
650 | ||
651 | function MakeForm(PART,TYPE) | |
652 | if TYPE == "Cyl" then | |
653 | local MSH = IT("CylinderMesh",PART) | |
654 | elseif TYPE == "Ball" then | |
655 | local MSH = IT("SpecialMesh",PART) | |
656 | MSH.MeshType = "Sphere" | |
657 | elseif TYPE == "Wedge" then | |
658 | local MSH = IT("SpecialMesh",PART) | |
659 | MSH.MeshType = "Wedge" | |
660 | end | |
661 | end | |
662 | ||
663 | function SpawnTrail(FROM,TO,BIG) | |
664 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
665 | MakeForm(TRAIL,"Cyl") | |
666 | local DIST = (FROM - TO).Magnitude | |
667 | if BIG == true then | |
668 | TRAIL.Size = VT(1.5,DIST,1.5) | |
669 | else | |
670 | TRAIL.Size = VT(0.25,DIST,0.25) | |
671 | end | |
672 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
673 | coroutine.resume(coroutine.create(function() | |
674 | for i = 1, 5 do | |
675 | Swait() | |
676 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
677 | end | |
678 | TRAIL:remove() | |
679 | end)) | |
680 | end | |
681 | ||
682 | function SpawnTrail2(FROM,TO,BIG) | |
683 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
684 | MakeForm(TRAIL,"Cyl") | |
685 | local DIST = (FROM - TO).Magnitude | |
686 | if BIG == true then | |
687 | TRAIL.Size = VT(8.5,DIST,8.5) | |
688 | else | |
689 | TRAIL.Size = VT(6.25,DIST,6.25) | |
690 | end | |
691 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
692 | coroutine.resume(coroutine.create(function() | |
693 | for i = 1, 5 do | |
694 | Swait() | |
695 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
696 | end | |
697 | TRAIL:remove() | |
698 | end)) | |
699 | end | |
700 | ||
701 | Debris = game:GetService("Debris") | |
702 | ||
703 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
704 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
705 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
706 | end | |
707 | ||
708 | function turnto(position) | |
709 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
710 | end | |
711 | local asd = Instance.new("ParticleEmitter") | |
712 | asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0)) | |
713 | asd.LightEmission = .1 | |
714 | asd.Texture = "http://www.roblox.com/asset/?ID=291880914" | |
715 | aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)}) | |
716 | bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)}) | |
717 | asd.Transparency = bbb | |
718 | asd.Size = aaa | |
719 | asd.ZOffset = .9 | |
720 | asd.Acceleration = Vector3.new(0, -15, 0) | |
721 | asd.LockedToPart = false | |
722 | asd.EmissionDirection = "Back" | |
723 | asd.Lifetime = NumberRange.new(1, 2) | |
724 | asd.Rotation = NumberRange.new(-100, 100) | |
725 | asd.RotSpeed = NumberRange.new(-100, 100) | |
726 | asd.Speed = NumberRange.new(10) | |
727 | asd.Enabled = false | |
728 | asd.VelocitySpread = 999 | |
729 | ||
730 | function getbloody(victim,amount) | |
731 | local PART = CreatePart(3, Effects, "Metal", 0, 1, "Really red", "Blood", victim.Size) | |
732 | PART.CFrame = victim.CFrame | |
733 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
734 | Debris:AddItem(PART,5) | |
735 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
736 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
737 | CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10)) | |
738 | local prtcl = asd:Clone() | |
739 | prtcl.Parent = PART | |
740 | prtcl:Emit(amount*10) | |
741 | end | |
742 | ||
743 | local Particle = IT("ParticleEmitter",nil) | |
744 | Particle.Enabled = false | |
745 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)}) | |
746 | Particle.LightEmission = 0.5 | |
747 | Particle.Rate = 150 | |
748 | Particle.ZOffset = 1 | |
749 | Particle.Rotation = NumberRange.new(-180, 180) | |
750 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
751 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
752 | Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0)) | |
753 | ||
754 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
755 | function ParticleEmitter(Table) | |
756 | local PRTCL = Particle:Clone() | |
757 | local Speed = Table.Speed or 5 | |
758 | local Drag = Table.Drag or 0 | |
759 | local Size1 = Table.Size1 or 1 | |
760 | local Size2 = Table.Size2 or 5 | |
761 | local Lifetime1 = Table.Lifetime1 or 1 | |
762 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
763 | local Parent = Table.Parent or Torso | |
764 | local Emit = Table.Emit or 100 | |
765 | local Offset = Table.Offset or 360 | |
766 | local Acel = Table.Acel or VT(0,0,0) | |
767 | local Enabled = Table.Enabled or false | |
768 | PRTCL.Parent = Parent | |
769 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
770 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
771 | PRTCL.Speed = NumberRange.new(Speed) | |
772 | PRTCL.VelocitySpread = Offset | |
773 | PRTCL.Drag = Drag | |
774 | PRTCL.Acceleration = Acel | |
775 | if Enabled == false then | |
776 | PRTCL:Emit(Emit) | |
777 | Debris:AddItem(PRTCL,Lifetime2) | |
778 | else | |
779 | PRTCL.Enabled = true | |
780 | end | |
781 | return PRTCL | |
782 | end | |
783 | ||
784 | function CharacterFade(COLOR,TIMER,MOVEDIRECTION,PARENT) | |
785 | coroutine.resume(coroutine.create(function() | |
786 | local FADE = IT("Model",Effects) | |
787 | if PARENT ~= nil then | |
788 | FADE.Parent = PARENT | |
789 | end | |
790 | FADE.Name = "FadingEffect" | |
791 | for _, c in pairs(Character:GetChildren()) do | |
792 | if c.ClassName == "Part" then | |
793 | c.CanCollide = false | |
794 | local FADER = CreatePart(3, FADE, "Neon", 0, 0.75, BRICKC("Really red"), c.Name, c.Size, true) | |
795 | FADER.CFrame = c.CFrame | |
796 | FADER.Color = C3(0,0,0) | |
797 | if FADER.Name == "Head" then | |
798 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FADER | |
799 | elseif FADER.Name == "HumanoidRootPart" then | |
800 | FADE.PrimaryPart = FADER | |
801 | FADER.Transparency = 1 | |
802 | end | |
803 | end | |
804 | end | |
805 | local TRANS = 0.25/TIMER | |
806 | local DIST = nil | |
807 | if MOVEDIRECTION ~= nil then | |
808 | DIST = (FADE.PrimaryPart.Position - MOVEDIRECTION).Magnitude | |
809 | end | |
810 | for i = 1, TIMER do | |
811 | Swait() | |
812 | for _, c in pairs(FADE:GetChildren()) do | |
813 | if c.ClassName == "Part" then | |
814 | c.Transparency = c.Transparency + TRANS | |
815 | end | |
816 | end | |
817 | if MOVEDIRECTION ~= nil then | |
818 | local ORI = FADE.PrimaryPart.Orientation | |
819 | FADE:SetPrimaryPartCFrame(CF(CF(FADE.PrimaryPart.Position,MOVEDIRECTION)*CF(0,0,-DIST/TIMER).p) * ANGLES(RAD(ORI.X), RAD(ORI.Y), RAD(ORI.Z))) | |
820 | end | |
821 | end | |
822 | FADE:remove() | |
823 | end)) | |
824 | end | |
825 | ||
826 | function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH,DOES360) | |
827 | if FLOOR ~= nil then | |
828 | for i = 1, AMOUNT do | |
829 | local DEBREE = CreatePart(3, Effects, "Neon", 0, 0, "Peal", "Debree", BLOCKSIZE, false) | |
830 | DEBREE.Material = FLOOR.Material | |
831 | DEBREE.Color = FLOOR.Color | |
832 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
833 | if DOES360 == true then | |
834 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH)) | |
835 | else | |
836 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),STRENGTH,MRANDOM(-STRENGTH,STRENGTH)) | |
837 | end | |
838 | coroutine.resume(coroutine.create(function() | |
839 | Swait(15) | |
840 | DEBREE.Parent = workspace | |
841 | DEBREE.CanCollide = true | |
842 | Debris:AddItem(DEBREE,SWAIT) | |
843 | end)) | |
844 | end | |
845 | end | |
846 | end | |
847 | ||
848 | local Decal = IT("Decal") | |
849 | function SpawnBulletHole(POSITION) | |
850 | local O1 = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Bullet hole", VT(0.2,0,0.2)) | |
851 | local decal = Decal:Clone() | |
852 | decal.Parent = O1 | |
853 | decal.Face = "Top" | |
854 | decal.Texture = "http://www.roblox.com/asset/?id=130624105" | |
855 | local decal2 = Decal:Clone() | |
856 | decal2.Parent = O1 | |
857 | decal2.Face = "Bottom" | |
858 | decal2.Texture = "http://www.roblox.com/asset/?id=130624105" | |
859 | O1.CFrame = POSITION*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0)) | |
860 | Debris:AddItem(O1,5) | |
861 | end | |
862 | ||
863 | function R_RANDOM(CFRAME,DIST) | |
864 | return CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-DIST) | |
865 | end | |
866 | ||
867 | function BulletDetection(FROM,TO) | |
868 | local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character) | |
869 | coroutine.resume(coroutine.create(function() | |
870 | if AIMHIT ~= nil then | |
871 | if AIMHIT.Parent ~= Character then | |
872 | if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
873 | if AIMHIT.Name ~= "Head" and AIMHIT.Parent.ClassName ~= "Accessory" then | |
874 | ApplyDamage(AIMHIT.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(15,25),AIMHIT) | |
875 | elseif AIMHIT.Name == "Head" or AIMHIT.Parent.ClassName == "Accessory" then | |
876 | if AIMHIT.Parent.ClassName == "Accessory" then | |
877 | if AIMHIT:FindFirstChild("HatAttachment") or AIMHIT:FindFirstChild("FaceFrontAttachment") or AIMHIT:FindFirstChild("HairAttachment") then | |
878 | AIMHIT.Parent.Parent:BreakJoints() | |
879 | if AIMHIT.Parent.Parent:FindFirstChild("Head") then | |
880 | getbloody(AIMHIT.Parent.Parent.Head,15) | |
881 | AIMHIT.Parent.Parent.Head:remove() | |
882 | end | |
883 | else | |
884 | ApplyDamage(AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid"),MRANDOM(25,65),AIMHIT) | |
885 | end | |
886 | elseif AIMHIT.Name == "Head" then | |
887 | getbloody(AIMHIT,15) | |
888 | AIMHIT.Parent:BreakJoints() | |
889 | AIMHIT:remove() | |
890 | end | |
891 | end | |
892 | else | |
893 | CreateFlyingDebree(AIMHIT,CF(AIMPOS),7,VT(0.1,0.1,0.1),5,35,true) | |
894 | SpawnBulletHole(CF(AIMPOS,AIMPOS+NORMAL)*ANGLES(RAD(90),RAD(0),RAD(0))) | |
895 | end | |
896 | end | |
897 | end | |
898 | end)) | |
899 | return AIMHIT,AIMPOS,NORMAL | |
900 | end | |
901 | ||
902 | --//=================================\\ | |
903 | --|| WEAPON CREATION | |
904 | --\\=================================// | |
905 | ||
906 | local STEP = CreateSound(131436155, Torso, 3, 1, true) | |
907 | STEP.Playing = false | |
908 | STEP.Looped = false | |
909 | local STEPPING = false | |
910 | Humanoid.Running:Connect(function(speed) | |
911 | if STEPPING == false then | |
912 | STEPPING = true | |
913 | repeat | |
914 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
915 | wait(8/TORSOVELOCITY) | |
916 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
917 | if TORSOVELOCITY > 1 and Torso.Transparency ~= 1 and HITFLOOR ~= nil then | |
918 | STEP.Parent = Torso | |
919 | STEP.Pitch = MRANDOM(8,12)/10 | |
920 | STEP:Play() | |
921 | end | |
922 | until TORSOVELOCITY < 0.6 | |
923 | STEPPING = false | |
924 | end | |
925 | end) | |
926 | ||
927 | local LASTPART = Head | |
928 | for i = 1, 20 do | |
929 | local MATH = (1-(i/25)) | |
930 | if LASTPART == Head then | |
931 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
932 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0)) | |
933 | LASTPART = Horn | |
934 | Horn.Color = C3((i*3-3)/255,0,0) | |
935 | else | |
936 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
937 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0)) | |
938 | LASTPART = Horn | |
939 | Horn.Color = C3((i*3-3)/255,0,0) | |
940 | end | |
941 | end | |
942 | local LASTPART = Head | |
943 | for i = 1, 20 do | |
944 | local MATH = (1-(i/25)) | |
945 | if LASTPART == Head then | |
946 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
947 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(-15), RAD(15)), CF(0, 0, 0)) | |
948 | LASTPART = Horn | |
949 | Horn.Color = C3((i*3-3)/255,0,0) | |
950 | else | |
951 | local Horn = CreatePart(3, Character, "Neon", 0, 0, "Dirt brown", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false) | |
952 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(0.3), RAD(0)), CF(0, 0, 0)) | |
953 | LASTPART = Horn | |
954 | Horn.Color = C3((i*3-3)/255,0,0) | |
955 | end | |
956 | end | |
957 | ||
958 | function refit() | |
959 | Character.Parent = workspace | |
960 | for e = 1, #BODY do | |
961 | if BODY[e] ~= nil then | |
962 | local STUFF = BODY[e] | |
963 | local PART = STUFF[1] | |
964 | local PARENT = STUFF[2] | |
965 | local MATERIAL = STUFF[3] | |
966 | local COLOR = STUFF[4] | |
967 | local TRANSPARENCY = STUFF[5] | |
968 | if PART.ClassName == "Part" and PART ~= RootPart then | |
969 | PART.Material = MATERIAL | |
970 | PART.Color = COLOR | |
971 | PART.Transparency = TRANSPARENCY | |
972 | end | |
973 | if PART.Parent ~= PARENT then | |
974 | Humanoid:remove() | |
975 | PART.Parent = PARENT | |
976 | Humanoid = IT("Humanoid",Character) | |
977 | end | |
978 | end | |
979 | end | |
980 | end | |
981 | ||
982 | local SKILLTEXTCOLOR = C3(0,1,0) | |
983 | local SKILLFONT = "Antique" | |
984 | local SKILLTEXTSIZE = 7 | |
985 | ||
986 | Humanoid.Died:connect(function() | |
987 | refit() | |
988 | ATTACK = true | |
989 | end) | |
990 | ||
991 | function printbye(Name) | |
992 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
993 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
994 | end | |
995 | ||
996 | workspace.ChildAdded:connect(function(instance) | |
997 | for BANISH = 1, #TOBANISH do | |
998 | if TOBANISH[BANISH] ~= nil then | |
999 | if instance.Name == TOBANISH[BANISH] then | |
1000 | coroutine.resume(coroutine.create(function() | |
1001 | printbye(instance.Name) | |
1002 | instance:ClearAllChildren() | |
1003 | Debris:AddItem(instance,0.0005) | |
1004 | end)) | |
1005 | end | |
1006 | end | |
1007 | end | |
1008 | end) | |
1009 | ||
1010 | ||
1011 | --//=================================\\ | |
1012 | --|| WEAPON HOLDER | |
1013 | --\\=================================// | |
1014 | ||
1015 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1016 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1017 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1018 | MakeForm(Part,"Wedge") | |
1019 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1020 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1021 | MakeForm(Part,"Wedge") | |
1022 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1023 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1024 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1025 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1026 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1027 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1028 | MakeForm(Part,"Cyl") | |
1029 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1030 | for i = 1, 8 do | |
1031 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1032 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1033 | end | |
1034 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1035 | MakeForm(Part,"Cyl") | |
1036 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1037 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1038 | MakeForm(Part,"Ball") | |
1039 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1040 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1041 | MakeForm(Part,"Wedge") | |
1042 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1043 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1044 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1045 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1046 | MakeForm(Part,"Cyl") | |
1047 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1048 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1049 | MakeForm(Part,"Cyl") | |
1050 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1051 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1052 | MakeForm(Part,"Cyl") | |
1053 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1054 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1055 | MakeForm(Part,"Wedge") | |
1056 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1057 | local LASTPART = Handle | |
1058 | for i = 1, 10 do | |
1059 | if LASTPART == Handle then | |
1060 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1061 | LASTPART = Part | |
1062 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1063 | else | |
1064 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1065 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1066 | LASTPART = Part | |
1067 | end | |
1068 | end | |
1069 | ||
1070 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
1071 | MakeForm(Barrel,"Cyl") | |
1072 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1073 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1074 | MakeForm(Part,"Cyl") | |
1075 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1076 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1077 | MakeForm(Part,"Wedge") | |
1078 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1079 | local Hole2 = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1080 | MakeForm(Hole2,"Cyl") | |
1081 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole2, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1082 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1083 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1084 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1085 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1086 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1087 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1088 | coroutine.resume(coroutine.create(function() | |
1089 | while wait() do | |
1090 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1091 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1092 | end | |
1093 | end)) | |
1094 | ||
1095 | for _, c in pairs(Weapon:GetDescendants()) do | |
1096 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1097 | c.Material = "Glass" | |
1098 | c.Color = C3(0,0,0) | |
1099 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1100 | c.Color = C3(1,0,0) | |
1101 | c.Material = "Neon" | |
1102 | end | |
1103 | end | |
1104 | ||
1105 | Weapon.Parent = nil | |
1106 | for _, c in pairs(Weapon:GetChildren()) do | |
1107 | if c.ClassName == "Part" then | |
1108 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1109 | end | |
1110 | end | |
1111 | ||
1112 | local Handle = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1113 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1114 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1115 | MakeForm(Part,"Wedge") | |
1116 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1117 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1118 | MakeForm(Part,"Wedge") | |
1119 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1120 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1121 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1122 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1123 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1124 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1125 | MakeForm(Part,"Cyl") | |
1126 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1127 | for i = 1, 8 do | |
1128 | local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1129 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1130 | end | |
1131 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1132 | MakeForm(Part,"Cyl") | |
1133 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1134 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1135 | MakeForm(Part,"Ball") | |
1136 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1137 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1138 | MakeForm(Part,"Wedge") | |
1139 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1140 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1141 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1142 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1143 | MakeForm(Part,"Cyl") | |
1144 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1145 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1146 | MakeForm(Part,"Cyl") | |
1147 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1148 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1149 | MakeForm(Part,"Cyl") | |
1150 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1151 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1152 | MakeForm(Part,"Wedge") | |
1153 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1154 | local LASTPART = Handle | |
1155 | for i = 1, 10 do | |
1156 | if LASTPART == Handle then | |
1157 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1158 | LASTPART = Part | |
1159 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1160 | else | |
1161 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1162 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1163 | LASTPART = Part | |
1164 | end | |
1165 | end | |
1166 | ||
1167 | local Barrel = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,2,0.15),false) | |
1168 | MakeForm(Barrel,"Cyl") | |
1169 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.8) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1170 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,1,0.25),false) | |
1171 | MakeForm(Part,"Cyl") | |
1172 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.6, 0), CF(0, 0, 0)) | |
1173 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1174 | MakeForm(Part,"Wedge") | |
1175 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1176 | local Hole = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1177 | MakeForm(Hole,"Cyl") | |
1178 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 0.98, 0), CF(0, 0, 0)) | |
1179 | local Part = CreatePart(3, Weapon, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1180 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1181 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1182 | local Part = CreatePart(3, Weapon, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1183 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1184 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1185 | coroutine.resume(coroutine.create(function() | |
1186 | while wait() do | |
1187 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(5)) | |
1188 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-5)) | |
1189 | end | |
1190 | end)) | |
1191 | ||
1192 | for _, c in pairs(Weapon:GetDescendants()) do | |
1193 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1194 | c.Material = "Glass" | |
1195 | c.Color = C3(0,0,0) | |
1196 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1197 | c.Color = C3(1,0,0) | |
1198 | c.Material = "Neon" | |
1199 | end | |
1200 | end | |
1201 | ||
1202 | Weapon.Parent = nil | |
1203 | for _, c in pairs(Weapon:GetChildren()) do | |
1204 | if c.ClassName == "Part" then | |
1205 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1206 | end | |
1207 | end | |
1208 | ||
1209 | local POWER = 250 | |
1210 | local MAXPOWER = 500 | |
1211 | ||
1212 | --//=================================\\ | |
1213 | --|| PLAGUES GUI | |
1214 | --\\=================================// | |
1215 | ||
1216 | local FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0, 0, 0, 0), UD2(0.13, 0, 0.07, 0), C3(1,0,0), C3(1, 0, 0), "SNAP!!") | |
1217 | local FACEME = {"HAHAHAHAHA","WHAT HAPPENED TO ME??","DONT LEAK THIS","ANTI-SKID?","KILLBOT","BANISHER V3?","I HAVE 2 GUNS","YOU'RE AN IDIOT HAHAHAHAHA","CREATED BY WANTH092 AND FINISHED BY KILLERZTH_1596","INSANITY","WARPHOENIX","WOLF?","HHAHAHHAHAHAHAH","HAHAHAHAHAHAHA","HAHAHAHAHAHHA"} | |
1218 | local INSANITYGUIS = {} | |
1219 | for e = 1, 28 do | |
1220 | for i = 1, 22 do | |
1221 | local MURDERFRAME = FRAME:Clone() | |
1222 | MURDERFRAME.Position = UD2(-0.05+i/30, 0, e/30, 0) | |
1223 | MURDERFRAME.Parent = WEAPONGUI | |
1224 | table.insert(INSANITYGUIS,MURDERFRAME) | |
1225 | end | |
1226 | end | |
1227 | coroutine.resume(coroutine.create(function() | |
1228 | while true do | |
1229 | wait() | |
1230 | coroutine.resume(coroutine.create(function() | |
1231 | local COLOR = C3(MRANDOM(1,255)/255) | |
1232 | local APPEARTEXT = FACEME[MRANDOM(1,#FACEME)] | |
1233 | local SHOW = "" | |
1234 | for i = 1,string.len(APPEARTEXT),1 do | |
1235 | local STRING = string.sub(APPEARTEXT,i,i) | |
1236 | if MRANDOM(1,5) == 1 then | |
1237 | SHOW = SHOW..string.lower(STRING) | |
1238 | else | |
1239 | SHOW = SHOW..STRING | |
1240 | end | |
1241 | end | |
1242 | local PARENT = INSANITYGUIS[MRANDOM(1,#INSANITYGUIS)] | |
1243 | local TEXT = CreateLabel(PARENT, SHOW, COLOR, 6, SKILLFONT, 1, 2, 1, "THISISYOURFAULTH") | |
1244 | if MODE == "Plagues" then | |
1245 | for i = 0.7, 15 do | |
1246 | Swait() | |
1247 | TEXT.Rotation = MRANDOM(-15,15) | |
1248 | TEXT.TextTransparency = TEXT.TextTransparency - 1/15 | |
1249 | end | |
1250 | end | |
1251 | if MODE == "Plagues" then | |
1252 | for i = 0.7, 15 do | |
1253 | Swait() | |
1254 | TEXT.Rotation = MRANDOM(-15,15) | |
1255 | TEXT.TextTransparency = TEXT.TextTransparency + 1/15 | |
1256 | end | |
1257 | end | |
1258 | TEXT:Remove() | |
1259 | end)) | |
1260 | end | |
1261 | end)) | |
1262 | FRAME:remove() | |
1263 | ||
1264 | --//=================================\\ | |
1265 | --|| TRANSFORMATIONS | |
1266 | --\\=================================// | |
1267 | ||
1268 | function Switch1() | |
1269 | ATTACK = true | |
1270 | Rooted = true | |
1271 | if MODE == "Infectist" then | |
1272 | CreateSound(1238240145, Torso, 10, 1, false) | |
1273 | for i=0, 3.5, 0.1 / Animation_Speed do | |
1274 | Swait() | |
1275 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1276 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(-35 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1277 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1278 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1279 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1280 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1281 | end | |
1282 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1283 | Swait() | |
1284 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1285 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1286 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1287 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1288 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1289 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.75 / Animation_Speed) | |
1290 | end | |
1291 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(10,10,10), Size2 = VT(0.5,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = CF(LeftArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0}) | |
1292 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(10,10,10), Size2 = VT(0.5,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = CF(RightArm.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0}) | |
1293 | Weapon.Parent = Character | |
1294 | SONG = 468994671 | |
1295 | Speed = 32 | |
1296 | VOLUME = 1.5 | |
1297 | text.Text = "Plagues" | |
1298 | MODE = "Plagues" | |
1299 | elseif MODE == "Plagues" then | |
1300 | for i=0, 1, 0.1 / Animation_Speed do | |
1301 | Swait() | |
1302 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1303 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1304 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(200)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1305 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-200)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1306 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1307 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1308 | end | |
1309 | CreateSound(363808674, Torso, 6, 1, false) | |
1310 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1311 | Swait() | |
1312 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1313 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1314 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(-40), RAD(50), RAD(200)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1315 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(40), RAD(50), RAD(-200)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1316 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1317 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1318 | end | |
1319 | CreateSound(363808674, Torso, 6, 1, false) | |
1320 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1321 | Swait() | |
1322 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1323 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1324 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(40), RAD(-50), RAD(200)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1325 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(-40), RAD(-50), RAD(-200)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1326 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1327 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1328 | end | |
1329 | WACKYEFFECT({Time = 55, EffectType = "Block", Size = VT(0.55,0.55,0.55), Size2 = VT(55,55,55), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0, 0, 0), MoveToPos = nil, RotationX = 30, RotationY = 30, RotationZ = 30, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = 743521450, SoundPitch = 0.95, SoundVolume = 6}) | |
1330 | WACKYEFFECT({Time = 70, EffectType = "Crystal", Size = VT(0.55,0.5,0.5), Size2 = VT(130,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0, 0, 0), MoveToPos = nil, RotationX = 30, RotationY = 30, RotationZ = 30, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = 0, SoundPitch = 0.95, SoundVolume = 6}) | |
1331 | WACKYEFFECT({Time = 70, EffectType = "Crystal", Size = VT(0.5,0.5,0.55), Size2 = VT(0.5,0.5,130), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0, 0, 0), MoveToPos = nil, RotationX = 30, RotationY = 30, RotationZ = 30, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = 0, SoundPitch = 0.95, SoundVolume = 6}) | |
1332 | WACKYEFFECT({Time = 70, EffectType = "Crystal", Size = VT(0.5,0.55,0.5), Size2 = VT(0.5,130,0.5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0, 0, 0), MoveToPos = nil, RotationX = 30, RotationY = 30, RotationZ = 30, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = 0, SoundPitch = 0.95, SoundVolume = 6}) | |
1333 | CreateSound(363808674, Torso, 6, 0.9, false) | |
1334 | for i=0, 1, 0.1 / Animation_Speed do | |
1335 | Swait() | |
1336 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1337 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1338 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(-40), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1339 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(-40), RAD(0), RAD(-40)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1340 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-20), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1341 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-20), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1342 | end | |
1343 | Weapon.Parent = nil | |
1344 | SONG = 494139763 | |
1345 | VOLUME = 3.5 | |
1346 | Speed = 18 | |
1347 | text.Text = "Infectist" | |
1348 | MODE = "Infectist" | |
1349 | end | |
1350 | ATTACK = false | |
1351 | Rooted = false | |
1352 | end | |
1353 | ||
1354 | function Switch2() | |
1355 | ATTACK = true | |
1356 | Rooted = true | |
1357 | if MODE == "Plagues" then | |
1358 | for i=0, 2, 0.1 / Animation_Speed do | |
1359 | Swait() | |
1360 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1361 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1362 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
1363 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(-30), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1364 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(40), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1365 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(40), RAD(0), RAD(-40)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1366 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1367 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1368 | end | |
1369 | WACKYEFFECT({TIME = 30 ,EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 743499393, SoundPitch = 1.05, SoundVolume = 15}) | |
1370 | SONG = 460439241 | |
1371 | Speed = 20 | |
1372 | VOLUME = 2 | |
1373 | text.Text = "Levithan" | |
1374 | MODE = "Levithan" | |
1375 | elseif MODE == "Levithan" then | |
1376 | CreateSound("1238240145", Head, 10, 1) | |
1377 | WACKYEFFECT({Time = 85, EffectType = "Block", Size = VT(8,8,8)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1378 | WACKYEFFECT({Time = 85, EffectType = "Block", Size = VT(8,8,8)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1379 | WACKYEFFECT({Time = 85, EffectType = "Block", Size = VT(8,8,8)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1380 | WACKYEFFECT({Time = 85, EffectType = "Block", Size = VT(8,8,8)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1381 | SONG = 468994671 | |
1382 | Speed = 32 | |
1383 | VOLUME = 1.5 | |
1384 | text.Text = "Plagues" | |
1385 | MODE = "Plagues" | |
1386 | end | |
1387 | ATTACK = false | |
1388 | Rooted = false | |
1389 | end | |
1390 | ||
1391 | function Switch3() | |
1392 | ATTACK = true | |
1393 | Rooted = true | |
1394 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1395 | if MODE == "Infectist" then | |
1396 | text.Text = " " | |
1397 | UNANCHOR = false | |
1398 | RootPart.Anchored = true | |
1399 | for i=0, 1.5, 0.1 / Animation_Speed do | |
1400 | Swait() | |
1401 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1402 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
1403 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(55 + -11 * COS(SINE / 23)), RAD(-10), RAD(-75)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1404 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(-40 + -11 * COS(SINE / 23)), RAD(25), RAD(75)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1405 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1406 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1407 | end | |
1408 | for i = 0, 1.5, 0.1 / Animation_Speed do | |
1409 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1410 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1) - 1)) * ANGLES(RAD(0 - 5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1411 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, 0.5) * ANGLES(RAD(-25 - 4 * COS(SINE / 12)), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1412 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.5) * ANGLES(RAD(-30 - 4 * COS(SINE / 12)), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1413 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1414 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1415 | end | |
1416 | for i = 0, 0.001, 0.1 / Animation_Speed do | |
1417 | Swait() | |
1418 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1419 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) | |
1420 | if MRANDOM(1,7) == 1 then | |
1421 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
1422 | end | |
1423 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, 0.5) * ANGLES(RAD(-25 - 4 * COS(SINE / 12)), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1424 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.5) * ANGLES(RAD(-30 - 4 * COS(SINE / 12)), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1425 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1426 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1427 | end | |
1428 | UNANCHOR = true | |
1429 | RootPart.Anchored = true | |
1430 | text.Text = "Entity" | |
1431 | SONG = 553604123 | |
1432 | Speed = 20 | |
1433 | VOLUME = 2 | |
1434 | MODE = "Entity" | |
1435 | elseif MODE == "Entity" then | |
1436 | for i=0, 1, 0.1 / Animation_Speed do | |
1437 | Swait() | |
1438 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1439 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1440 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(200)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1441 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(0), RAD(0), RAD(-200)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1442 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1443 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1444 | end | |
1445 | CreateSound(363808674, Torso, 6, 1, false) | |
1446 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1447 | Swait() | |
1448 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1449 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1450 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(-40), RAD(50), RAD(200)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1451 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(40), RAD(50), RAD(-200)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1452 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1453 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1454 | end | |
1455 | CreateSound(363808674, Torso, 6, 1, false) | |
1456 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1457 | Swait() | |
1458 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1459 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(35), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1460 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(40), RAD(-50), RAD(200)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1461 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.3*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(-40), RAD(-50), RAD(-200)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1462 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1463 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1464 | end | |
1465 | WACKYEFFECT({Time = 55, EffectType = "Block", Size = VT(0.55,0.55,0.55), Size2 = VT(55,55,55), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0, 0, 0), MoveToPos = nil, RotationX = 30, RotationY = 30, RotationZ = 30, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = 743521450, SoundPitch = 0.95, SoundVolume = 6}) | |
1466 | WACKYEFFECT({Time = 70, EffectType = "Crystal", Size = VT(0.55,0.5,0.5), Size2 = VT(130,0.5,0.5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0, 0, 0), MoveToPos = nil, RotationX = 30, RotationY = 30, RotationZ = 30, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = 0, SoundPitch = 0.95, SoundVolume = 6}) | |
1467 | WACKYEFFECT({Time = 70, EffectType = "Crystal", Size = VT(0.5,0.5,0.55), Size2 = VT(0.5,0.5,130), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0, 0, 0), MoveToPos = nil, RotationX = 30, RotationY = 30, RotationZ = 30, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = 0, SoundPitch = 0.95, SoundVolume = 6}) | |
1468 | WACKYEFFECT({Time = 70, EffectType = "Crystal", Size = VT(0.5,0.55,0.5), Size2 = VT(0.5,130,0.5), Transparency = 0, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0, 0, 0), MoveToPos = nil, RotationX = 30, RotationY = 30, RotationZ = 30, Material = "Neon", Color = C3(255/255, 0/255, 0/255), SoundID = 0, SoundPitch = 0.95, SoundVolume = 6}) | |
1469 | CreateSound(363808674, Torso, 6, 0.9, false) | |
1470 | for i=0, 1, 0.1 / Animation_Speed do | |
1471 | Swait() | |
1472 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1473 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.25*SIZE) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1474 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(-40), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1475 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0) * ANGLES(RAD(-40), RAD(0), RAD(-40)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1476 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-20), RAD(83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1477 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-20), RAD(-83), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1478 | end | |
1479 | SONG = 460439241 | |
1480 | Speed = 18 | |
1481 | VOLUME = 1.5 | |
1482 | text.Text = "Infectist" | |
1483 | MODE = "Infectist" | |
1484 | end | |
1485 | ATTACK = false | |
1486 | Rooted = false | |
1487 | end | |
1488 | ||
1489 | --//=================================\\ | |
1490 | --|| DAMAGING | |
1491 | --\\=================================// | |
1492 | ||
1493 | function ApplyAoE4(POSITION,RANGE,BRUTAL) | |
1494 | local CHILDREN = workspace:GetDescendants() | |
1495 | for index, CHILD in pairs(CHILDREN) do | |
1496 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1497 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1498 | if HUM then | |
1499 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1500 | if TORSO then | |
1501 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1502 | if BRUTAL == true then | |
1503 | Kill(CHILD) | |
1504 | else | |
1505 | CHILD:BreakJoints() | |
1506 | end | |
1507 | end | |
1508 | end | |
1509 | end | |
1510 | end | |
1511 | end | |
1512 | end | |
1513 | ||
1514 | function Kill(Char) | |
1515 | local NewCharacter = IT("Model",Effects) | |
1516 | NewCharacter.Name = "Ow im ded ;-;" | |
1517 | for _, c in pairs(Char:GetDescendants()) do | |
1518 | if c:IsA("BasePart") and c.Transparency == 0 then | |
1519 | c:BreakJoints() | |
1520 | c.Material = "Glass" | |
1521 | c.Color = C3(1,0,0) | |
1522 | c.CanCollide = true | |
1523 | c.Transparency = 0.3 | |
1524 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1525 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1526 | end | |
1527 | if c.Name == "Head" then | |
1528 | c:ClearAllChildren() | |
1529 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
1530 | end | |
1531 | if c.ClassName == "MeshPart" then | |
1532 | c.TextureID = "" | |
1533 | end | |
1534 | if c:FindFirstChildOfClass("BodyPosition") then | |
1535 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
1536 | end | |
1537 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1538 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1539 | end | |
1540 | c.Parent = NewCharacter | |
1541 | c.Name = "DeadPart" | |
1542 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
1543 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
1544 | end | |
1545 | end | |
1546 | Char:remove() | |
1547 | Debris:AddItem(NewCharacter,5) | |
1548 | end | |
1549 | ||
1550 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
1551 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1552 | defence.Name = ("HitBy"..Player.Name) | |
1553 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1554 | Damage = Damage * DAMAGEMULTIPLIER | |
1555 | if Humanoid.Health ~= 0 then | |
1556 | local CritChance = MRANDOM(1,100) | |
1557 | if Damage > Humanoid.Health then | |
1558 | Damage = math.ceil(Humanoid.Health) | |
1559 | if Damage == 0 then | |
1560 | Damage = 0.1 | |
1561 | end | |
1562 | end | |
1563 | Humanoid.Health = Humanoid.Health - Damage | |
1564 | end | |
1565 | end | |
1566 | ||
1567 | function Ghostify(POSITION,RANGE) | |
1568 | local CHILDREN = workspace:GetDescendants() | |
1569 | for index, CHILD in pairs(CHILDREN) do | |
1570 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1571 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1572 | if HUM then | |
1573 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1574 | if TORSO then | |
1575 | if HUM.Health > 0 and (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1576 | local GHOST = GHOSTBASE:Clone() | |
1577 | GHOST.Parent = Effects | |
1578 | GHOST.Torso.CFrame = TORSO.CFrame | |
1579 | table.insert(GHOSTS,GHOST) | |
1580 | CHILD:remove() | |
1581 | end | |
1582 | end | |
1583 | end | |
1584 | end | |
1585 | end | |
1586 | end | |
1587 | ||
1588 | function ApplyAoE2(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
1589 | for index, CHILD in pairs(workspace:GetDescendants()) do | |
1590 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1591 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1592 | if HUM then | |
1593 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1594 | if TORSO then | |
1595 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1596 | if INSTAKILL == true then | |
1597 | CHILD:BreakJoints() | |
1598 | else | |
1599 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
1600 | ApplyDamage(HUM,DMG) | |
1601 | end | |
1602 | if FLING > 0 then | |
1603 | for _, c in pairs(CHILD:GetChildren()) do | |
1604 | if c:IsA("BasePart") then | |
1605 | local bv = Instance.new("BodyVelocity") | |
1606 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1607 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
1608 | bv.Parent = c | |
1609 | Debris:AddItem(bv,0.05) | |
1610 | end | |
1611 | end | |
1612 | end | |
1613 | end | |
1614 | end | |
1615 | end | |
1616 | end | |
1617 | end | |
1618 | end | |
1619 | ||
1620 | function Banish(Foe) | |
1621 | if Foe then | |
1622 | coroutine.resume(coroutine.create(function() | |
1623 | --if game.Players:FindFirstChild(Foe.Name) then | |
1624 | table.insert(TOBANISH,Foe.Name) | |
1625 | printbye(Foe.Name) | |
1626 | --end | |
1627 | Foe.Archivable = true | |
1628 | local CLONE = Foe:Clone() | |
1629 | Foe:Destroy() | |
1630 | CLONE.Parent = Effects | |
1631 | CLONE:BreakJoints() | |
1632 | local MATERIALS = {"Glass","Neon"} | |
1633 | for _, c in pairs(CLONE:GetDescendants()) do | |
1634 | if c:IsA("BasePart") then | |
1635 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1636 | CreateSound(340722848, c, 10, 1, false) | |
1637 | end | |
1638 | c.Anchored = true | |
1639 | c.Transparency = c.Transparency + 0.2 | |
1640 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1641 | c.Color = C3(1,0,0) | |
1642 | if c.ClassName == "MeshPart" then | |
1643 | c.TextureID = "" | |
1644 | end | |
1645 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1646 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1647 | end | |
1648 | if c:FindFirstChildOfClass("Decal") then | |
1649 | c:FindFirstChildOfClass("Decal"):remove() | |
1650 | end | |
1651 | c.Name = "Banished" | |
1652 | c.CanCollide = false | |
1653 | else | |
1654 | c:remove() | |
1655 | end | |
1656 | end | |
1657 | local A = false | |
1658 | for i = 1, 35 do | |
1659 | if A == false then | |
1660 | A = true | |
1661 | elseif A == true then | |
1662 | A = false | |
1663 | end | |
1664 | for _, c in pairs(CLONE:GetDescendants()) do | |
1665 | if c:IsA("BasePart") then | |
1666 | c.Anchored = true | |
1667 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1668 | c.Transparency = c.Transparency + 0.8/35 | |
1669 | if A == false then | |
1670 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1671 | elseif A == true then | |
1672 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1673 | end | |
1674 | end | |
1675 | end | |
1676 | Swait() | |
1677 | end | |
1678 | CLONE:remove() | |
1679 | end)) | |
1680 | end | |
1681 | end | |
1682 | ||
1683 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1684 | local CHILDREN = workspace:GetDescendants() | |
1685 | for index, CHILD in pairs(CHILDREN) do | |
1686 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1687 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1688 | if HUM then | |
1689 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1690 | if TORSO then | |
1691 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1692 | if ISBANISH == true then | |
1693 | Banish(CHILD) | |
1694 | else | |
1695 | if ISBANISH == "Gravity" then | |
1696 | HUM.PlatformStand = true | |
1697 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1698 | local grav = Instance.new("BodyPosition",TORSO) | |
1699 | grav.D = 15 | |
1700 | grav.P = 20000 | |
1701 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1702 | grav.position = TORSO.Position | |
1703 | grav.Name = "V3BanishForce"..Player.Name | |
1704 | else | |
1705 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
1706 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
1707 | end | |
1708 | else | |
1709 | HUM.PlatformStand = false | |
1710 | end | |
1711 | end | |
1712 | elseif ISBANISH == "Gravity" then | |
1713 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1714 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
1715 | HUM.PlatformStand = false | |
1716 | end | |
1717 | end | |
1718 | end | |
1719 | end | |
1720 | end | |
1721 | end | |
1722 | end | |
1723 | ||
1724 | local DECAL = IT("Decal",nil) | |
1725 | function MagicRing(PART,CFRAME) | |
1726 | local RING = CreatePart(3, Effects, "Granite", 0, 1, "Really red", "MagicRing", VT(0,0,0),false) | |
1727 | local WELD = CreateWeldOrSnapOrMotor("Weld", PART, PART, RING, CFRAME, CF(0, 0, 0)) | |
1728 | local MESH = IT("BlockMesh",RING) | |
1729 | local BOTTOMTEXTURE = DECAL:Clone() | |
1730 | BOTTOMTEXTURE.Parent = RING | |
1731 | BOTTOMTEXTURE.Face = "Bottom" | |
1732 | BOTTOMTEXTURE.Texture = "http://www.roblox.com/asset/?id=2237986353" | |
1733 | BOTTOMTEXTURE.Name = "BottomTexture" | |
1734 | local TOPTEXTURE = DECAL:Clone() | |
1735 | TOPTEXTURE.Parent = RING | |
1736 | TOPTEXTURE.Face = "Top" | |
1737 | TOPTEXTURE.Texture = "http://www.roblox.com/asset/?id=2237986353" | |
1738 | TOPTEXTURE.Name = "TopTexture" | |
1739 | local T = ParticleEmitter({Transparency1 = 0.2, Transparency2 = 1, Texture = 1084975295, Speed = 0, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 0, Size2 = 10, Lifetime1 = 1, Lifetime2 = 1, Parent = RING, Emit = 25, Offset = 360, Enabled = false, Color1 = BRICKC"Really red".Color, Color2 = BRICKC"Really red".Color}) | |
1740 | T.LockedToPart = true | |
1741 | return RING,WELD,MESH | |
1742 | end | |
1743 | ||
1744 | function AfterZap(Humanoid,Times,Dmg) | |
1745 | coroutine.resume(coroutine.create(function() | |
1746 | if Humanoid ~= nil then | |
1747 | local ZAP = ParticleEmitter({Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 2, Size2 = 3, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = Humanoid.Torso, Emit = 100, Offset = 360, Enabled = true, Color1 = BRICKC"Really red".Color, Color2 = BRICKC"Really red".Color}) | |
1748 | ZAP.Rate = 75 | |
1749 | for i = 1, Times do | |
1750 | wait(1) | |
1751 | if Humanoid ~= nil and Humanoid.Health > 0 then | |
1752 | Humanoid.Health = Humanoid.Health - Dmg | |
1753 | CreateSound(SHOCKSOUND,Humanoid.Torso,1,MRANDOM(13,16)/10,false) | |
1754 | else | |
1755 | break | |
1756 | end | |
1757 | end | |
1758 | ZAP.Enabled = false | |
1759 | Debris:AddItem(ZAP,3) | |
1760 | end | |
1761 | end)) | |
1762 | end | |
1763 | ||
1764 | function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,DOESAFTERZAP,ZAPCOUNTER) | |
1765 | local CHILDREN = workspace:GetDescendants() | |
1766 | for index, CHILD in pairs(CHILDREN) do | |
1767 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1768 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1769 | if HUM then | |
1770 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1771 | if TORSO then | |
1772 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1773 | if DOESAFTERZAP == true then | |
1774 | AfterZap(HUM,ZAPCOUNTER,math.ceil(MINDMG/7)) | |
1775 | end | |
1776 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
1777 | ApplyDamage(HUM,DMG,TORSO) | |
1778 | if FLING > 0 then | |
1779 | for _, c in pairs(CHILD:GetChildren()) do | |
1780 | if c:IsA("BasePart") then | |
1781 | local bv = Instance.new("BodyVelocity") | |
1782 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1783 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
1784 | bv.Parent = c | |
1785 | Debris:AddItem(bv,0.05) | |
1786 | end | |
1787 | end | |
1788 | end | |
1789 | end | |
1790 | end | |
1791 | end | |
1792 | end | |
1793 | end | |
1794 | end | |
1795 | --//=================================\\ | |
1796 | --|| ATTACK FUNCTIONS AND STUFF | |
1797 | --\\=================================// | |
1798 | ||
1799 | function Dirtface() | |
1800 | local TARGET = Mouse.Target | |
1801 | if TARGET ~= nil then | |
1802 | if TARGET.Parent:FindFirstChildOfClass("Humanoid") then | |
1803 | local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid") | |
1804 | local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
1805 | if ROOT and HUM.Health > 0 then | |
1806 | local FOE = Mouse.Target.Parent | |
1807 | local HEAD = FOE:FindFirstChild("Head") | |
1808 | local HITFLOOR = Raycast(ROOT.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*ROOT.Size.Z, FOE) | |
1809 | if HEAD and HITFLOOR then | |
1810 | ATTACK = true | |
1811 | Rooted = true | |
1812 | CharacterFade(C3(1,0,0),150) | |
1813 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2) | |
1814 | ROOT.Anchored = true | |
1815 | CreateSound(235097614, Torso, 2, 3, false) | |
1816 | for i=0, 0.4, 0.1 / Animation_Speed do | |
1817 | Swait() | |
1818 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1819 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1820 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1821 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1822 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1823 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1824 | end | |
1825 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1826 | Swait() | |
1827 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1828 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * COS(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1829 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(140), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1830 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1831 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1832 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1833 | end | |
1834 | ROOT.Anchored = false | |
1835 | UNANCHOR = false | |
1836 | local DEAD = false | |
1837 | local CFRAME = RootPart.CFrame | |
1838 | CreateSound(260411131, Torso, 2, 3, false) | |
1839 | coroutine.resume(coroutine.create(function() | |
1840 | repeat | |
1841 | Swait() | |
1842 | RootPart.CFrame = CFRAME | |
1843 | HEAD.CFrame = RightArm.CFrame*CF(0,-(1+HEAD.Size.Z/2),0) * ANGLES(RAD(-90), RAD(0), RAD(0)) | |
1844 | HEAD.Velocity = VT(0,0,0) | |
1845 | HUM.PlatformStand = true | |
1846 | until DEAD == true | |
1847 | end)) | |
1848 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1849 | Swait() | |
1850 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1851 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * COS(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1852 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.3) * ANGLES(RAD(140), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
1853 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1854 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1855 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1856 | end | |
1857 | for i=0, 1, 0.1 / Animation_Speed do | |
1858 | Swait() | |
1859 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
1860 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 2.5 * COS(SINE / 12)), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1861 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 1, 0) * ANGLES(RAD(60), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1862 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1863 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1864 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1865 | end | |
1866 | local ERUPT = function() | |
1867 | local HITFLOOR,HITPOS = Raycast(HEAD.CFrame*CF(0,0.2,0).p+VT(0,0.2,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*ROOT.Size.X, FOE) | |
1868 | if HITFLOOR then | |
1869 | for i = 1, 5 do | |
1870 | CreateFlyingDebree(HITFLOOR,CF(HITPOS),MRANDOM(1,2),VT(MRANDOM(10,60)/20,MRANDOM(10,60)/20,MRANDOM(10,60)/20),5,MRANDOM(45,85)) | |
1871 | end | |
1872 | Chunks(HEAD) | |
1873 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(1,2,1), Size2 = VT(15,0,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) , MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 765590102, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 4}) | |
1874 | end | |
1875 | end | |
1876 | local ATE = false | |
1877 | local DEPTH = 1 | |
1878 | coroutine.resume(coroutine.create(function() | |
1879 | repeat | |
1880 | Swait() | |
1881 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.75 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(45), RAD(0), RAD(15)), 1 / Animation_Speed) | |
1882 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 + MRANDOM(-5,5) - 2.5 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(-15)), 1 / Animation_Speed) | |
1883 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 1-DEPTH/5, -DEPTH/8) * ANGLES(RAD(60 + MRANDOM(-5,5)), RAD(0), RAD(25 + MRANDOM(-5,5))) * ANGLES(RAD(0), RAD(80), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1884 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(5), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1885 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(40), RAD(70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1886 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.3) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1887 | until ATE == true | |
1888 | end)) | |
1889 | wait() | |
1890 | ERUPT() | |
1891 | wait(2) | |
1892 | ERUPT() | |
1893 | DEPTH = 2 | |
1894 | wait(2) | |
1895 | ERUPT() | |
1896 | DEPTH = 2.5 | |
1897 | wait(3) | |
1898 | ERUPT() | |
1899 | ERUPT() | |
1900 | HEAD:remove() | |
1901 | DEAD = true | |
1902 | ApplyDamage(HUM,0,true) | |
1903 | wait(0.2) | |
1904 | ATE = true | |
1905 | UNANCHOR = true | |
1906 | ATTACK = false | |
1907 | Rooted = false | |
1908 | end | |
1909 | end | |
1910 | end | |
1911 | end | |
1912 | end | |
1913 | ||
1914 | function Banisher_Bullet() | |
1915 | ATTACK = true | |
1916 | Rooted = false | |
1917 | for i=1, 1, 1 / Animation_Speed do | |
1918 | Swait() | |
1919 | turnto(Mouse.Hit.p) | |
1920 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1921 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1922 | end | |
1923 | repeat | |
1924 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1925 | Swait() | |
1926 | turnto(Mouse.Hit.p) | |
1927 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1928 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1929 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1930 | end | |
1931 | local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character) | |
1932 | SpawnTrail(Hole2.Position,POS) | |
1933 | if HIT ~= nil then | |
1934 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1935 | Banish(HIT.Parent) | |
1936 | end | |
1937 | end | |
1938 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
1939 | SpawnTrail(Hole.Position,POS) | |
1940 | if HIT ~= nil then | |
1941 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1942 | Banish(HIT.Parent) | |
1943 | end | |
1944 | end | |
1945 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1946 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1947 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1948 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1949 | for i=0, 0.05, 0.1 / Animation_Speed do | |
1950 | Swait() | |
1951 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1952 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1953 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1954 | end | |
1955 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1956 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1957 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1958 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1959 | until KEYHOLD == false | |
1960 | ATTACK = false | |
1961 | Rooted = false | |
1962 | end | |
1963 | ||
1964 | function Bullet1() | |
1965 | ATTACK = true | |
1966 | Rooted = false | |
1967 | for i=0, 0.1, 0.1 / Animation_Speed do | |
1968 | Swait() | |
1969 | turnto(Mouse.Hit.p) | |
1970 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(10), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1971 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(-15), RAD(0)), 0.15 / Animation_Speed) | |
1972 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(-36), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1973 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(-36), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1974 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1975 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1976 | end | |
1977 | repeat | |
1978 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1979 | Swait() | |
1980 | turnto(Mouse.Hit.p) | |
1981 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1982 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(-15), RAD(0)), 0.15 / Animation_Speed) | |
1983 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(-63), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1984 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(-63), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1985 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1986 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1987 | end | |
1988 | local HIT,POS = CastProperRay(Head.Position, Mouse.Hit.p, 1000, Character) | |
1989 | SpawnTrail2(Head.Position,POS) | |
1990 | if HIT ~= nil then | |
1991 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
1992 | Kill(HIT.Parent) | |
1993 | end | |
1994 | end | |
1995 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(3.75,0,3.75), Size2 = VT(25,6.25,25), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 151414336, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1996 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(3.75,0,3.75), Size2 = VT(25,6.25,25), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(0), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
1997 | for i=0, 0, 0.1 / Animation_Speed do | |
1998 | Swait() | |
1999 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(30), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2000 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(-15), RAD(0)), 0.15 / Animation_Speed) | |
2001 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(-90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2002 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2003 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2004 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2005 | end | |
2006 | until KEYHOLD == false | |
2007 | ATTACK = false | |
2008 | Rooted = false | |
2009 | end | |
2010 | ||
2011 | function Bullet2() | |
2012 | ATTACK = true | |
2013 | Rooted = false | |
2014 | for i=0, 0.9, 0.1 / Animation_Speed do | |
2015 | Swait() | |
2016 | turnto(Mouse.Hit.p) | |
2017 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2018 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 11 * SIN(SINE / 1)), RAD(15 - 11 * SIN(SINE / 1)), RAD(0)), 0.15 / Animation_Speed) | |
2019 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2020 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(83), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2021 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2022 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2023 | end | |
2024 | repeat | |
2025 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2026 | Swait() | |
2027 | turnto(Mouse.Hit.p) | |
2028 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 11 * SIN(SINE / 1)), RAD(15 - 11 * SIN(SINE / 1)), RAD(0)), 3 / Animation_Speed) | |
2029 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(83 - 6 * SIN(SINE / 1)), RAD(30), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
2030 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0.5) * ANGLES(RAD(83 - 6 * SIN(SINE / 1)), RAD(-30), RAD(0)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
2031 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2032 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2033 | end | |
2034 | local HIT,POS = CastProperRay(Hole2.Position, Mouse.Hit.p, 1000, Character) | |
2035 | SpawnTrail(Hole2.Position,POS) | |
2036 | if HIT ~= nil then | |
2037 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
2038 | Kill(HIT.Parent) | |
2039 | end | |
2040 | end | |
2041 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = Hole2.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2042 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0.5}) | |
2043 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2044 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole2.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2045 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2046 | Swait() | |
2047 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 11 * SIN(SINE / 1)), RAD(15 - 11 * SIN(SINE / 1)), RAD(0)), 3 / Animation_Speed) | |
2048 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5) * ANGLES(RAD(90 - 5 * SIN(SINE / 1)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed) | |
2049 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(90 - 5 * SIN(SINE / 1)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 3 / Animation_Speed) | |
2050 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2051 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2052 | end | |
2053 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
2054 | SpawnTrail(Hole.Position,POS) | |
2055 | if HIT ~= nil then | |
2056 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
2057 | Kill(HIT.Parent) | |
2058 | end | |
2059 | end | |
2060 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2061 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 0.5}) | |
2062 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2063 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2064 | until KEYHOLD == false | |
2065 | ATTACK = false | |
2066 | Rooted = false | |
2067 | end | |
2068 | ||
2069 | function Infect() | |
2070 | ATTACK = true | |
2071 | Rooted = false | |
2072 | local GYRO = IT("BodyGyro",RootPart) | |
2073 | GYRO.D = 750 | |
2074 | GYRO.P = 20000 | |
2075 | GYRO.MaxTorque = VT(0,40000000,0) | |
2076 | for i=0, 1, 0.1 / Animation_Speed do | |
2077 | Swait() | |
2078 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2079 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.3 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(35)), 0.75 / Animation_Speed) | |
2080 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 22 * SIN(SINE / 0.1)), RAD(15 - 22 * SIN(SINE / 0.5)), RAD(-35)), 0.75 / Animation_Speed) | |
2081 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0) * ANGLES(RAD(115 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2082 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
2083 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(50 - 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(35)), 0.75 / Animation_Speed) | |
2084 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.9 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85 - 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(-25)), 0.75 / Animation_Speed) | |
2085 | end | |
2086 | GYRO:remove() | |
2087 | CreateSound(696483710, Hole2, 5, 1, false) | |
2088 | WACKYEFFECT({Time = 3, EffectType = "Sphere", Size = VT(1,0.3,0.3), Size2 = VT(1,0,0), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame*CF(1.5,0.5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2089 | coroutine.resume(coroutine.create(function() | |
2090 | local Bullet = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Really red", "Sinful bullet", VT(0,0,0)) | |
2091 | CreateMesh("SpecialMesh", Bullet, "FileMesh", "94295100", "", VT(6, 6, 7), VT(0,0, 0)) | |
2092 | Bullet.CFrame = Hole2.CFrame*CF(1.5,0.5,0) | |
2093 | local AIMPOINT = Mouse.Hit.p | |
2094 | local STARTPOS = Hole2.CFrame*CF(1.5,0.5,0).p | |
2095 | local VECTOR = CF(STARTPOS,AIMPOINT) | |
2096 | local IMPACTED = false | |
2097 | CreateSound(1393698948, Bullet, 10, 1, true) | |
2098 | for E = 1, 50 do | |
2099 | if IMPACTED == true then | |
2100 | break | |
2101 | end | |
2102 | local TARGETPOINT = VECTOR*CF(0,0,-E*5)*ANGLES(RAD(0),RAD(0),RAD(MRANDOM(0,360)))*CF(0,1,0).p | |
2103 | Bullet.CFrame = CF(Bullet.Position,TARGETPOINT) | |
2104 | for i = 1, 5 do | |
2105 | Swait() | |
2106 | WACKYEFFECT({Time = 15, EffectType = "Swirl", Size = VT(1,1,1), Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = Bullet.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i+E, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
2107 | Bullet.CFrame = Bullet.CFrame*CF(0,0,-1) | |
2108 | local AIMHIT,AIMPOS,NORMAL = Raycast(Bullet.Position,Bullet.CFrame.lookVector,1.3,Character) | |
2109 | if AIMHIT ~= nil then | |
2110 | IMPACTED = true | |
2111 | break | |
2112 | end | |
2113 | end | |
2114 | end | |
2115 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(10,10,10), Size2 = VT(9,9,9), Transparency = 0, Transparency2 = 1, CFrame = Bullet.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 182765513, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 7}) | |
2116 | for i = 1, 7 do | |
2117 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,15,1), Size2 = VT(0,25,0), Transparency = 0, Transparency2 = 1, CFrame = Bullet.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2118 | end | |
2119 | Ghostify(Bullet.Position,10) | |
2120 | Bullet:remove() | |
2121 | end)) | |
2122 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2123 | Swait() | |
2124 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.3 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(35)), 0.75 / Animation_Speed) | |
2125 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 0.5 * SIN(SINE / 12)), RAD(15), RAD(-35)), 0.75 / Animation_Speed) | |
2126 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.7 - 0.1 * COS(SINE / 12), 0.3) * ANGLES(RAD(110 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(35)) * ANGLES(RAD(0), RAD(90), RAD(0)) * RIGHTSHOULDERC0, 0.75 / Animation_Speed) | |
2127 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.45, -0.1) * ANGLES(RAD(25 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(5)) * LEFTSHOULDERC0, 0.75 / Animation_Speed) | |
2128 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.4 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(50 - 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(35)), 0.75 / Animation_Speed) | |
2129 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.9 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85 - 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(5), RAD(0), RAD(-25)), 0.75 / Animation_Speed) | |
2130 | end | |
2131 | ATTACK = false | |
2132 | Rooted = false | |
2133 | end | |
2134 | ||
2135 | function AttackTemplate() | |
2136 | ATTACK = true | |
2137 | Rooted = false | |
2138 | for i=0, 1, 0.1 / Animation_Speed do | |
2139 | Swait() | |
2140 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2141 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 0.1)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2142 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(100), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2143 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2144 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2145 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2146 | end | |
2147 | ATTACK = false | |
2148 | Rooted = false | |
2149 | end | |
2150 | ||
2151 | function Locked() | |
2152 | local TARGET = Mouse.Target | |
2153 | if TARGET ~= nil then | |
2154 | if TARGET.Parent:FindFirstChildOfClass("Humanoid") then | |
2155 | local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid") | |
2156 | local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
2157 | if ROOT and HUM.Health > 0 then | |
2158 | local FOE = Mouse.Target.Parent | |
2159 | ATTACK = true | |
2160 | Rooted = true | |
2161 | CharacterFade(C3(0,0,0),70) | |
2162 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2) | |
2163 | ROOT.Anchored = true | |
2164 | CreateSound(289556450, RootPart, 5, 1.4, false) | |
2165 | for i=0, 2, 0.1 / Animation_Speed do | |
2166 | Swait() | |
2167 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2168 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2169 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2170 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2171 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2172 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2173 | end | |
2174 | local RIGHTCUFF = nil | |
2175 | local LEFTCUFF = nil | |
2176 | local ChainLink = nil | |
2177 | CreateSound(1279090548, ROOT, 10, 1.4, false) | |
2178 | for _, c in pairs(FOE:GetChildren()) do | |
2179 | if c.Name == "Left Arm" or c.Name == "LeftLowerArm" then | |
2180 | LEFTCUFF = CreatePart(3, FOE, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false) | |
2181 | LEFTCUFF.CFrame = c.CFrame | |
2182 | weldBetween(c,LEFTCUFF) | |
2183 | end | |
2184 | end | |
2185 | for _, c in pairs(FOE:GetChildren()) do | |
2186 | if c.Name == "Right Arm" or c.Name == "RightLowerArm" then | |
2187 | RIGHTCUFF = CreatePart(3, FOE, "Metal", 0, 0, "Mid gray", "Cuff", VT(c.Size.X+0.1, 0.1, c.Size.Z+0.1),false) | |
2188 | RIGHTCUFF.CFrame = c.CFrame | |
2189 | weldBetween(c,RIGHTCUFF) | |
2190 | end | |
2191 | end | |
2192 | if RIGHTCUFF and LEFTCUFF then | |
2193 | local A = IT("Attachment",RIGHTCUFF) | |
2194 | local B = IT("Attachment",LEFTCUFF) | |
2195 | ChainLink = IT("Beam",FOE) | |
2196 | ChainLink.Texture = "rbxassetid://73042633" | |
2197 | ChainLink.Color = ColorSequence.new(C3(1,0,0)) | |
2198 | ChainLink.TextureSpeed = 0 | |
2199 | ChainLink.Width0 = 1 | |
2200 | ChainLink.Width1 = 1 | |
2201 | ChainLink.Segments = 25 | |
2202 | ChainLink.TextureLength = 3 | |
2203 | ChainLink.Attachment0 = B | |
2204 | ChainLink.Attachment1 = A | |
2205 | ChainLink.FaceCamera = true | |
2206 | ChainLink.Transparency = NumberSequence.new(0) | |
2207 | end | |
2208 | coroutine.resume(coroutine.create(function() | |
2209 | CreateSound(447682521, ChainLink, 1e1, 0.6, false) | |
2210 | wait(3) | |
2211 | if RIGHTCUFF and LEFTCUFF then | |
2212 | RIGHTCUFF:remove() | |
2213 | LEFTCUFF:remove() | |
2214 | ChainLink:remove() | |
2215 | local bv = Instance.new("BodyVelocity",ROOT) | |
2216 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
2217 | bv.velocity = CF(ROOT.Position-VT(0,5,0),ROOT.Position).lookVector*70 | |
2218 | Debris:AddItem(bv,0.05) | |
2219 | Kill(HUM.Parent) | |
2220 | HUM.PlatformStand = false | |
2221 | WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = CF(RIGHTCUFF.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 174580476, SoundPitch = 1, SoundVolume = 4}) | |
2222 | WACKYEFFECT({Time = 50, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = CF(LEFTCUFF.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 174580476, SoundPitch = 1, SoundVolume = 4}) | |
2223 | end | |
2224 | end)) | |
2225 | for i=0, 1.5, 0.1 / Animation_Speed do | |
2226 | Swait() | |
2227 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2228 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15), RAD(5), RAD(0)), 1 / Animation_Speed) | |
2229 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2230 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2231 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(15), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2232 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2233 | end | |
2234 | HUM.PlatformStand = true | |
2235 | ROOT.CFrame = ROOT.CFrame * ANGLES(RAD(15), RAD(0), RAD(0)) | |
2236 | ROOT.Anchored = false | |
2237 | for i=0, 3, 0.1 / Animation_Speed do | |
2238 | Swait() | |
2239 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(-35)), 1 / Animation_Speed) | |
2240 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed) | |
2241 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(3)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2242 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-1), RAD(0), RAD(-3)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2243 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-12), RAD(80), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2244 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-60), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2245 | end | |
2246 | ATTACK = false | |
2247 | Rooted = false | |
2248 | end | |
2249 | end | |
2250 | end | |
2251 | end | |
2252 | ||
2253 | function InfectedFog() | |
2254 | ATTACK = true | |
2255 | Rooted = false | |
2256 | for i=0, 2, 0.1 / Animation_Speed do | |
2257 | Swait() | |
2258 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2259 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2260 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2261 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2262 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2263 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2264 | end | |
2265 | CreateSound(769072651, RightArm, 10, 1, false) | |
2266 | for i=0, 2, 0.1 / Animation_Speed do | |
2267 | Swait() | |
2268 | WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0.5,0.5,0.5), Size2 = VT(2.5,2.5,2.5), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0}) | |
2269 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2270 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2271 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2272 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2273 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2274 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2275 | end | |
2276 | CreateSound(138931042, Torso, 10, 2.4, false) | |
2277 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(0.5,0.5,0.5), Size2 = VT(300,300,300), Transparency = 0.8, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0}) | |
2278 | Swait(100) | |
2279 | Ghostify(Torso.Position,135) | |
2280 | Swait(20) | |
2281 | CreateSound(138271815, GHOSTBASE, 0.8, 0.9, false) | |
2282 | ATTACK = false | |
2283 | Rooted = false | |
2284 | end | |
2285 | ||
2286 | function RedBlast() | |
2287 | if ANIM ~= "Fall" and ANIM ~= "Jump" then | |
2288 | ATTACK = true | |
2289 | Rooted = true | |
2290 | local GYRO = IT("BodyGyro",RootPart) | |
2291 | GYRO.D = 25 | |
2292 | GYRO.P = 20000 | |
2293 | GYRO.MaxTorque = VT(0,4000000,0) | |
2294 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
2295 | CreateSound(429459101,Torso,5,1.5,false) | |
2296 | local GYROING = true | |
2297 | coroutine.resume(coroutine.create(function() | |
2298 | repeat | |
2299 | Swait() | |
2300 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
2301 | until GYROING == false | |
2302 | GYRO:Remove() | |
2303 | end)) | |
2304 | for i=0, 1, 0.1 / Animation_Speed do | |
2305 | Swait() | |
2306 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.4 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2307 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2308 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75, 0.5 + 0.05 * SIN(SINE / 12), -0.7) * ANGLES(RAD(0), RAD(0), RAD(-95)) * ANGLES(RAD(5), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2309 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.75, 0.35 + 0.05 * SIN(SINE / 12), -0.6) * ANGLES(RAD(0), RAD(0), RAD(92)) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2310 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
2311 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.6 - 0.05 * SIN(SINE / 12), -0.5) * ANGLES(RAD(0), RAD(-70), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2312 | end | |
2313 | for i = 1, 13 do | |
2314 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(i,0,i)*2, Transparency = 0.8, Transparency2 = 1, CFrame = RootPart.CFrame*CF(0,0,7.5-i) * ANGLES(RAD(-90), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50}) | |
2315 | end | |
2316 | CreateSound(1368637781,Torso,5,1.5,false) | |
2317 | WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(12,12,12), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 331666014, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35}) | |
2318 | for index, CHILD in pairs(Character:GetChildren()) do | |
2319 | if CHILD:IsA("BasePart") then | |
2320 | CHILD.Transparency = CHILD.Transparency + 1 | |
2321 | elseif CHILD:IsA("Accessory") then | |
2322 | CHILD.Handle.Transparency = CHILD.Handle.Transparency + 1 | |
2323 | end | |
2324 | end | |
2325 | GYROING = false | |
2326 | coroutine.resume(coroutine.create(function() | |
2327 | coroutine.resume(coroutine.create(function() | |
2328 | for i=1, 25 do | |
2329 | Swait() | |
2330 | RootPart.CFrame = RootPart.CFrame*CF(0,0,(25-i)/25) | |
2331 | end | |
2332 | end)) | |
2333 | repeat | |
2334 | Swait() | |
2335 | CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p) | |
2336 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2337 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5))), 1 / Animation_Speed) | |
2338 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(-15+MRANDOM(-5,5)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2339 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(15+MRANDOM(-5,5)), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2340 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.1) * ANGLES(RAD(0), RAD(85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(-12)), 1 / Animation_Speed) | |
2341 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.1) * ANGLES(RAD(0), RAD(-85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(12)), 1 / Animation_Speed) | |
2342 | until ATTACK == false | |
2343 | end)) | |
2344 | coroutine.resume(coroutine.create(function() | |
2345 | local BULLETCFRAME = RootPart.CFrame | |
2346 | local EXPLODED = false | |
2347 | coroutine.resume(coroutine.create(function() | |
2348 | repeat | |
2349 | Swait() | |
2350 | WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(10,10,10), Transparency = 0.3, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35}) | |
2351 | WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(15,15,15), Size2 = VT(25,25,25), Transparency = 0.8, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35}) | |
2352 | until EXPLODED == true | |
2353 | end)) | |
2354 | for i=1, 50 do | |
2355 | Swait() | |
2356 | BULLETCFRAME = BULLETCFRAME*CF(0,0,-((50-i)/15)) | |
2357 | local RAY,HIT,NORM = Raycast(BULLETCFRAME.p,BULLETCFRAME.lookVector,7,Character) | |
2358 | if RAY then | |
2359 | ApplyAoE2(BULLETCFRAME.p,25,12,54,350,false) | |
2360 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(160,0,160), Transparency = 0.6, Transparency2 = 1, CFrame = CF(HIT,HIT+NORM) * ANGLES(RAD(-90), RAD(MRANDOM(0,360)), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 765590102, SoundPitch = MRANDOM(9,11)/10, SoundVolume = 10}) | |
2361 | break | |
2362 | end | |
2363 | end | |
2364 | wait(0.5) | |
2365 | WACKYEFFECT({Time = 85, EffectType = "Sphere", Size = VT(25,25,25), Size2 = VT(75,75,75), Transparency = 0, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 401056199, SoundPitch = 0.7, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35}) | |
2366 | WACKYEFFECT({Time = 85, EffectType = "Sphere", Size = VT(25,25,25), Size2 = VT(50,50,50), Transparency = 0, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 401056199, SoundPitch = 1, SoundVolume = 10, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35}) | |
2367 | for E = 1, 3 do | |
2368 | for i = 1, 5 do | |
2369 | WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(E,0,E)/2, Transparency = 0, Transparency2 = 1, CFrame = CF(BULLETCFRAME.p) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10}) | |
2370 | end | |
2371 | end | |
2372 | EXPLODED = true | |
2373 | ApplyAoE2(BULLETCFRAME.p,125,1e2,1e2,250,false) | |
2374 | for i = 1, 15 do | |
2375 | Swait() | |
2376 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(160,0,160), Transparency = 0.6, Transparency2 = 1, CFrame = BULLETCFRAME * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 1, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(9,11)/10, SoundVolume = MRANDOM(9,11)/2}) | |
2377 | end | |
2378 | end)) | |
2379 | wait(0.5) | |
2380 | for index, CHILD in pairs(Character:GetChildren()) do | |
2381 | if CHILD:IsA("BasePart") then | |
2382 | CHILD.Transparency = CHILD.Transparency - 1 | |
2383 | elseif CHILD:IsA("Accessory") then | |
2384 | CHILD.Handle.Transparency = CHILD.Handle.Transparency - 1 | |
2385 | end | |
2386 | end | |
2387 | ATTACK = false | |
2388 | Rooted = false | |
2389 | end | |
2390 | end | |
2391 | ||
2392 | function VirusCloaker() | |
2393 | if ANIM ~= "Fall" and ANIM ~= "Jump" then | |
2394 | ATTACK = true | |
2395 | Rooted = false | |
2396 | UNANCHOR = false | |
2397 | FADERS = false | |
2398 | coroutine.resume(coroutine.create(function() | |
2399 | coroutine.resume(coroutine.create(function() | |
2400 | for i=0.5, 25 do | |
2401 | Swait() | |
2402 | RootPart.CFrame = RootPart.CFrame*CF(0,0,0) | |
2403 | end | |
2404 | end)) | |
2405 | repeat | |
2406 | Swait() | |
2407 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.2 * COS(SINE / 12)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2408 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(MRANDOM(-5,5)), RAD(MRANDOM(-5,5))), 1 / Animation_Speed) | |
2409 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(-15+MRANDOM(-5,5)), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2410 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-25+MRANDOM(-5,5)), RAD(15+MRANDOM(-5,5)), RAD(-35)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2411 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.1) * ANGLES(RAD(0), RAD(85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(-12)), 1 / Animation_Speed) | |
2412 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.1) * ANGLES(RAD(0), RAD(-85), RAD(MRANDOM(-5,5))) * ANGLES(RAD(-1), RAD(0), RAD(12)), 1 / Animation_Speed) | |
2413 | until ATTACK == false | |
2414 | end)) | |
2415 | WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,2.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 0.6, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 12}) | |
2416 | WACKYEFFECT({Time = 65, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(25,1,25), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,2.5,0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 814168787, SoundPitch = 1, SoundVolume = 6, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 35}) | |
2417 | for i = 0.5, 50 do | |
2418 | Swait() | |
2419 | CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p) | |
2420 | for index, CHILD in pairs(Character:GetChildren()) do | |
2421 | if CHILD:IsA("BasePart") then | |
2422 | CHILD.Transparency = CHILD.Transparency + 1/50 | |
2423 | elseif CHILD:IsA("Accessory") then | |
2424 | CHILD.Handle.Transparency = CHILD.Handle.Transparency + 1/50 | |
2425 | end | |
2426 | end | |
2427 | end | |
2428 | for i = 0.5, 25 do | |
2429 | Swait() | |
2430 | CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p) | |
2431 | end | |
2432 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,5,0)) * ANGLES(RAD(0), RAD(RootPart.Orientation.Y), RAD(0)) | |
2433 | for i = 0.5, 5 do | |
2434 | WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(0.3,0,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10}) | |
2435 | WACKYEFFECT({Time = 50, EffectType = "Round Slash", Size = VT(0,0,0), Size2 = VT(0.3,0,0.3), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 10}) | |
2436 | end | |
2437 | ApplyAoE2(Torso.Position,15,12,22,150,false) | |
2438 | CreateSound(331666014,Torso,5,1,false) | |
2439 | for i = 0.5, 12 do | |
2440 | Swait() | |
2441 | CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p) | |
2442 | end | |
2443 | for i = 0.5, 50 do | |
2444 | Swait() | |
2445 | CharacterFade(C3(0,0,0),12,R_RANDOM(Torso.CFrame,1.25).p) | |
2446 | for index, CHILD in pairs(Character:GetChildren()) do | |
2447 | if CHILD:IsA("BasePart") then | |
2448 | CHILD.Transparency = CHILD.Transparency - 1/50 | |
2449 | elseif CHILD:IsA("Accessory") then | |
2450 | CHILD.Handle.Transparency = CHILD.Handle.Transparency - 1/50 | |
2451 | end | |
2452 | end | |
2453 | end | |
2454 | UNANCHOR = true | |
2455 | ATTACK = false | |
2456 | Rooted = false | |
2457 | FADERS = true | |
2458 | end | |
2459 | end | |
2460 | ||
2461 | function PlagueStomp() | |
2462 | ATTACK = true | |
2463 | Rooted = false | |
2464 | local GRAV = IT("BodyPosition",RootPart) | |
2465 | GRAV.D = 250 | |
2466 | GRAV.P = 20000 | |
2467 | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) | |
2468 | GRAV.Position = RootPart.Position | |
2469 | local RING,WELD,MESH = MagicRing(RightLeg,CF(0,-1.2,0)) | |
2470 | CreateSound(RINGSOUND,RING,5,1,false) | |
2471 | local STRENGTH = 100 | |
2472 | local TIER = 1 | |
2473 | repeat | |
2474 | Swait() | |
2475 | STRENGTH = STRENGTH + 0.3 | |
2476 | if STRENGTH > 200 then | |
2477 | STRENGTH = 200 | |
2478 | end | |
2479 | if MESH.Scale.X < 120 then | |
2480 | MESH.Scale = MESH.Scale + VT(3,0,3) | |
2481 | elseif MESH.Scale.X < 200 then | |
2482 | MESH.Scale = MESH.Scale + VT(0.3,0,0.3) | |
2483 | end | |
2484 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2485 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 22 * SIN(SINE / 0.05)), RAD(0 - 22 * SIN(SINE / 0.05)), RAD(0)), 1 / Animation_Speed) | |
2486 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2487 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2488 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(0 + 11 * SIN(SINE / 0.1)), RAD(90 + 1 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2489 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15 + 11 * SIN(SINE / 0.1)), RAD(-90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2490 | until KEYHOLD == false and MESH.Scale.X >= 120 | |
2491 | if STRENGTH >= 150 and STRENGTH ~= 200 and POWER >= 45 then | |
2492 | POWER = POWER - 45 | |
2493 | TIER = 2 | |
2494 | elseif STRENGTH == 200 and POWER >= 100 then | |
2495 | POWER = POWER - 100 | |
2496 | TIER = 3 | |
2497 | end | |
2498 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2499 | Swait() | |
2500 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2501 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 22 * SIN(SINE / 0.05)), RAD(0 - 22 * SIN(SINE / 0.05)), RAD(0)), 1 / Animation_Speed) | |
2502 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(150 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2503 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(150 - 22 * SIN(SINE / 0.1)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2504 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.25, -0.65) * ANGLES(RAD(10 + 11 * SIN(SINE / 0.1)), RAD(90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2505 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-15 + 11 * SIN(SINE / 0.1)), RAD(-90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2506 | end | |
2507 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2508 | Swait() | |
2509 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2510 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 22 * SIN(SINE / 0.05)), RAD(0 - 22 * SIN(SINE / 0.05)), RAD(0)), 1 / Animation_Speed) | |
2511 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120 - 22 * SIN(SINE / 0.1)), RAD(0 - 22 * SIN(SINE / 0.1)), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2512 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120 - 22 * SIN(SINE / 0.1)), RAD(0 - 22 * SIN(SINE / 0.1)), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2513 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20 + 11 * SIN(SINE / 0.1)), RAD(90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2514 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-25 + 11 * SIN(SINE / 0.1)), RAD(-90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2515 | end | |
2516 | coroutine.resume(coroutine.create(function() | |
2517 | if TIER == 1 then | |
2518 | local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Really red", "Stomp", VT(30,0,30)) | |
2519 | AOE.CFrame = CF(RightLeg.Position-VT(0,1,0)) | |
2520 | local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = C3(1,0,0), Color2 = C3(1,0,0) }) | |
2521 | PARTCL.Rate = 999 | |
2522 | CreateSound(304999618,AOE,5,1,false) | |
2523 | CreateSound(130972023,AOE,4,1,false) | |
2524 | ApplyAoE3(AOE.Position,15,15,25,35,true,5) | |
2525 | WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(45,3,45), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6}) | |
2526 | wait(2) | |
2527 | PARTCL.Enabled = false | |
2528 | Debris:AddItem(AOE,2) | |
2529 | elseif TIER == 2 then | |
2530 | local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Really red", "Stomp", VT(40,0,40)) | |
2531 | AOE.CFrame = CF(RightLeg.Position-VT(0,1,0)) | |
2532 | local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = C3(1,0,0), Color2 = C3(1,0,0)}) | |
2533 | PARTCL.Rate = 999 | |
2534 | CreateSound(304999618,AOE,5,1,false) | |
2535 | CreateSound(130972023,AOE,4,1,false) | |
2536 | ApplyAoE3(AOE.Position,20,25,35,35,true,6) | |
2537 | WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6}) | |
2538 | wait(2) | |
2539 | PARTCL.Enabled = false | |
2540 | Debris:AddItem(AOE,2) | |
2541 | elseif TIER == 3 then | |
2542 | local AOE = CreatePart(3, Effects, "Granite", 0, 1, "Really red", "Stomp", VT(50,0,50)) | |
2543 | AOE.CFrame = CF(RightLeg.Position-VT(0,1,0)) | |
2544 | local PARTCL = ParticleEmitter({Texture = 281983280, Speed = 0.2, RotSpeed = NumberRange.new(-15, 15), Drag = 2, Size1 = 4, Size2 = 6, Lifetime1 = 0.01, Lifetime2 = 0.1, Parent = AOE, Emit = 100, Offset = 360, Enabled = true, Color1 = C3(1,0,0), Color2 = C3(1,0,0)}) | |
2545 | PARTCL.Rate = 999 | |
2546 | CreateSound(304999618,AOE,5,1,false) | |
2547 | CreateSound(130972023,AOE,4,1,false) | |
2548 | for i = 1, 3 do | |
2549 | ApplyAoE3(AOE.Position,30,5,15,5,true,7)WACKYEFFECT({EffectType = "Wave", Size = VT(11,1,11), Size2 = VT(55,3,55), Transparency = 0, Transparency2 = 1, CFrame = CF(AOE.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(5,8)/10, SoundVolume = 6}) | |
2550 | wait(0.5) | |
2551 | end | |
2552 | wait(1.5) | |
2553 | PARTCL.Enabled = false | |
2554 | Debris:AddItem(AOE,2) | |
2555 | end | |
2556 | end)) | |
2557 | for i=0, 2, 0.1 / Animation_Speed do | |
2558 | Swait() | |
2559 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2560 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 22 * SIN(SINE / 0.05)), RAD(0 - 22 * SIN(SINE / 0.05)), RAD(0)), 1 / Animation_Speed) | |
2561 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(120 - 22 * SIN(SINE / 0.1)), RAD(0 - 22 * SIN(SINE / 0.1)), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2562 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(120 - 22 * SIN(SINE / 0.1)), RAD(0 - 22 * SIN(SINE / 0.1)), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2563 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.5) * ANGLES(RAD(20 + 11 * SIN(SINE / 0.1)), RAD(90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2564 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(-25 + 11 * SIN(SINE / 0.1)), RAD(-90 + 11 * SIN(SINE / 0.1)), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2565 | end | |
2566 | RING.Anchored = true | |
2567 | WELD:remove() | |
2568 | coroutine.resume(coroutine.create(function() | |
2569 | for i = 1, 25 do | |
2570 | Swait() | |
2571 | RING.TopTexture.Transparency = RING.TopTexture.Transparency + 1/25 | |
2572 | RING.BottomTexture.Transparency = RING.BottomTexture.Transparency + 1/25 | |
2573 | MESH.Scale = MESH.Scale - VT(3,0,3) | |
2574 | end | |
2575 | RING:remove() | |
2576 | end)) | |
2577 | GRAV:remove() | |
2578 | ATTACK = false | |
2579 | Rooted = false | |
2580 | end | |
2581 | ||
2582 | function Neckless() | |
2583 | local TARGET = Mouse.Target | |
2584 | if TARGET ~= nil then | |
2585 | if TARGET.Parent:FindFirstChildOfClass("Humanoid") then | |
2586 | local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid") | |
2587 | local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
2588 | if ROOT and HUM.Health > 0 then | |
2589 | local FOE = Mouse.Target.Parent | |
2590 | local HEAD = FOE:FindFirstChild("Head") | |
2591 | if HEAD then | |
2592 | ATTACK = true | |
2593 | Rooted = false | |
2594 | CharacterFade(C3(1,0,0),150) | |
2595 | RootPart.CFrame = ROOT.CFrame*CF(0,0,2) | |
2596 | for _, c in pairs(FOE:GetChildren()) do | |
2597 | if c.ClassName == "Part" then | |
2598 | c.Anchored = true | |
2599 | end | |
2600 | end | |
2601 | CreateSound(235097614, Torso, 2, 3, false) | |
2602 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2603 | Swait() | |
2604 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2605 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * COS(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2606 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.5, -0.6) * ANGLES(RAD(130), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2607 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.5, -0.6) * ANGLES(RAD(130), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2608 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2609 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2610 | end | |
2611 | if ROOT.Name == "HumanoidRootPart" then | |
2612 | ROOT:remove() | |
2613 | end | |
2614 | FOE:BreakJoints() | |
2615 | ApplyDamage(HUM,0,true) | |
2616 | HEAD.CFrame = HEAD.CFrame * ANGLES(RAD(0), RAD(90), RAD(0)) | |
2617 | CreateSound(363808674, HEAD, 5, 1, false) | |
2618 | ROOT.Anchored = false | |
2619 | for i=0, 0.5, 0.1 / Animation_Speed do | |
2620 | Swait() | |
2621 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2622 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * COS(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2623 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.1, 0.65, -1.5) * ANGLES(RAD(130), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2624 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2625 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2626 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2627 | end | |
2628 | for _, c in pairs(FOE:GetChildren()) do | |
2629 | if c.ClassName == "Part" then | |
2630 | c.Anchored = false | |
2631 | end | |
2632 | end | |
2633 | ATTACK = false | |
2634 | Rooted = false | |
2635 | end | |
2636 | end | |
2637 | end | |
2638 | end | |
2639 | end | |
2640 | ||
2641 | function Slashed() | |
2642 | local TARGET = Mouse.Target | |
2643 | if TARGET ~= nil then | |
2644 | if TARGET.Parent:FindFirstChildOfClass("Humanoid") then | |
2645 | local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid") | |
2646 | local ROOT = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
2647 | if ROOT and HUM.Health > 0 then | |
2648 | local FOE = Mouse.Target.Parent | |
2649 | ATTACK = true | |
2650 | coroutine.resume(coroutine.create(function() | |
2651 | repeat | |
2652 | Swait() | |
2653 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.05, -0.05 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2654 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(MRANDOM(-5,5) - 2.5 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(0)), 1 / Animation_Speed) | |
2655 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.5, -0.1) * ANGLES(RAD(50), RAD(0), RAD(-30)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2656 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2657 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(15), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2658 | until ATTACK == false | |
2659 | end)) | |
2660 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2661 | Swait() | |
2662 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.85) * ANGLES(RAD(35), RAD(0), RAD(90)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2663 | end | |
2664 | for i=0, 1.2, 0.1 / Animation_Speed do | |
2665 | Swait() | |
2666 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2667 | end | |
2668 | CreateSound(971125740, LeftArm, 5, 1, false) | |
2669 | for i=0, 0.1, 0.1 / Animation_Speed do | |
2670 | Swait() | |
2671 | WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(1,2,1), Size2 = VT(1,2,1), Transparency = 0.2, Transparency2 = 1, CFrame = LeftArm.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2672 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.85) * ANGLES(RAD(35), RAD(0), RAD(90)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2673 | end | |
2674 | ROOT.CFrame = ROOT.CFrame * ANGLES(RAD(-15), RAD(0), RAD(15)) | |
2675 | WACKYEFFECT({Time = 30, EffectType = "Sphere", Size = VT(1,0.1,1), Size2 = VT(6,0,6)*ROOT.Size.Z, Transparency = 0, Transparency2 = 1, CFrame = ROOT.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 971126018, SoundPitch = 1.5, SoundVolume = 4}) | |
2676 | WACKYEFFECT({Time = 30, EffectType = "Sphere", Size = VT(1,0.1,1), Size2 = VT(6,0,6)*ROOT.Size.Z, Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 971126018, SoundPitch = 1.5, SoundVolume = 4}) | |
2677 | coroutine.resume(coroutine.create(function() | |
2678 | local FAKEROOT1 = CreatePart(3, FOE, ROOT.Material, 0, 0, ROOT.BrickColor, "SlicedTorso", VT(ROOT.Size.X,ROOT.Size.Y/2,ROOT.Size.Z),false) | |
2679 | FAKEROOT1.CanCollide = true | |
2680 | local FAKEROOT2 = CreatePart(3, FOE, ROOT.Material, 0, 0, ROOT.BrickColor, "SlicedTorso", VT(ROOT.Size.X,ROOT.Size.Y/2,ROOT.Size.Z),false) | |
2681 | FAKEROOT2.CanCollide = true | |
2682 | FAKEROOT1.CFrame = ROOT.CFrame*CF(0,ROOT.Size.Y/4,0) | |
2683 | FAKEROOT2.CFrame = ROOT.CFrame*CF(0,-ROOT.Size.Y/4,0) | |
2684 | ROOT:Remove() | |
2685 | ApplyDamage(HUM,0,true) | |
2686 | end)) | |
2687 | for i=0, 0.4, 0.1 / Animation_Speed do | |
2688 | Swait() | |
2689 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.1, 0.15, -0.85) * ANGLES(RAD(35), RAD(0), RAD(90)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2690 | end | |
2691 | ATTACK = false | |
2692 | end | |
2693 | end | |
2694 | end | |
2695 | end | |
2696 | ||
2697 | function TrustIssues() | |
2698 | ATTACK = true | |
2699 | Rooted = false | |
2700 | CreateSound(649634100,Head,10,0.5,false) | |
2701 | for i=1, 80 do | |
2702 | Swait() | |
2703 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.15* COS(i / 5)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2704 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + MRANDOM(-5,5)), RAD(MRANDOM(-5,5)), RAD(0)), 1 / Animation_Speed) | |
2705 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * SIN(i / 5), 0) * ANGLES(RAD(0), RAD(-15), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2706 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.15 * SIN(i / 5), 0) * ANGLES(RAD(0), RAD(15), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2707 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.15 * COS(i / 5), -0.01) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2708 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(i / 5), -0.01) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2709 | end | |
2710 | ATTACK = false | |
2711 | Rooted = false | |
2712 | end | |
2713 | ||
2714 | function FatalWave() | |
2715 | ATTACK = true | |
2716 | Rooted = true | |
2717 | MagicSphere(VT(0,0,0),15,RightArm.CFrame,"Really red",VT(2,2,2)) | |
2718 | MagicSphere(VT(0,0,0),15,RightArm.CFrame,"Really red",VT(2,2,2)) | |
2719 | for i=0, 1, 0.1 / Animation_Speed do | |
2720 | Swait() | |
2721 | CreateRing(VT(0,0,0),false,0,5,CF(RootPart.Position-VT(0,3,0))*ANGLES(RAD(90),RAD(0),RAD(0)),"Really red",VT(1,1,0)) | |
2722 | turnto(Mouse.Hit.p) | |
2723 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2724 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
2725 | end | |
2726 | for i=0,0.1, 0.1 / Animation_Speed do | |
2727 | Swait() | |
2728 | turnto(Mouse.Hit.p) | |
2729 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2730 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
2731 | end | |
2732 | local angle = - 30 | |
2733 | for i = 1, 5 do | |
2734 | coroutine.resume(coroutine.create(function() | |
2735 | local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -15, 0), 10000, {Character}) | |
2736 | local SpawnPosition = RayPos | |
2737 | local floor = RayHit | |
2738 | local needcframe = RootPart.CFrame*ANGLES(RAD(0),RAD(angle),RAD(0)) | |
2739 | local LastPosition = RayPos | |
2740 | local Delay = 1 | |
2741 | for i = 1, 15 do | |
2742 | local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 10, {workspace}) | |
2743 | local End = RayPos | |
2744 | LastPosition = End | |
2745 | if SpawnPosition then | |
2746 | BANNEAREST(End,25) | |
2747 | CreateRing(VT(0,0,0),false,0,15,needcframe * CF(0,0,-5*i)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really red",VT(0.4,0.4,0)*i) | |
2748 | Slice(2+(i/5),25, needcframe * CF(0,0,-5*i)*ANGLES(RAD(90),RAD(90),RAD(0)),"Really red",1) | |
2749 | end | |
2750 | Swait() | |
2751 | end | |
2752 | end)) | |
2753 | angle = angle + 15 | |
2754 | end | |
2755 | for i=0, 1, 0.1 / Animation_Speed do | |
2756 | Swait() | |
2757 | turnto(Mouse.Hit.p) | |
2758 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2759 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-25), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
2760 | end | |
2761 | ATTACK = false | |
2762 | Rooted = false | |
2763 | end | |
2764 | ||
2765 | function Morning_Star() | |
2766 | ATTACK = true | |
2767 | Rooted = true | |
2768 | for i=0, 1, 0.1 / Animation_Speed do | |
2769 | Swait() | |
2770 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2771 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.2 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2772 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2773 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2774 | RightHip.C0 = Clerp(RightHip.C0, CF(0.5, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2775 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.5, 0.15, -0.8) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2776 | end | |
2777 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame*CF(0,0,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = 1, SoundVolume = 6}) | |
2778 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = Hole2.CFrame*CF(0,0,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 904440937, SoundPitch = 1, SoundVolume = 6}) | |
2779 | coroutine.resume(coroutine.create(function() | |
2780 | local POS = Mouse.Hit.p | |
2781 | local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "Strike", VT(0,2000,0)) | |
2782 | MakeForm(RAY,"Cyl") | |
2783 | local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Maroon", "Strike", VT(0,0,0)) | |
2784 | MakeForm(SPHERE,"Ball") | |
2785 | local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Maroon", "Strike", VT(0,0,0)) | |
2786 | MakeForm(SHIELD,"Ball") | |
2787 | SHIELD.CFrame = CF(POS) | |
2788 | RAY.CFrame = CF(POS) | |
2789 | SPHERE.CFrame = CF(POS) | |
2790 | CreateSound(440145570, SPHERE, 10, 0.8, false) | |
2791 | CreateSound(415700134, SPHERE, 10, 0.8, false) | |
2792 | for i = 1, 200 do | |
2793 | Swait() | |
2794 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2795 | RAY.Size = RAY.Size + VT(0.05,0,0.05) | |
2796 | SPHERE.Size = SPHERE.Size + VT(2,2,2) | |
2797 | SHIELD.Size = SPHERE.Size + VT(3,3,3) | |
2798 | ApplyAoE4(SPHERE.Position,SPHERE.Size.X/2,true) | |
2799 | end | |
2800 | for i = 1, 45 do | |
2801 | Swait() | |
2802 | RAY.Transparency = RAY.Transparency + 1/45 | |
2803 | SPHERE.Transparency = RAY.Transparency | |
2804 | SHIELD.Transparency = SPHERE.Transparency + 1/45 | |
2805 | end | |
2806 | RAY:remove() | |
2807 | SHIELD:remove() | |
2808 | SPHERE:remove() | |
2809 | end)) | |
2810 | for i=0, 1, 0.1 / Animation_Speed do | |
2811 | Swait() | |
2812 | end | |
2813 | ATTACK = false | |
2814 | Rooted = false | |
2815 | end | |
2816 | ||
2817 | function HunterBoost() | |
2818 | ATTACK = true | |
2819 | Rooted = true | |
2820 | WACKYEFFECT({TIME = 130 ,EffectType = "Block", Size = VT(0,0,0), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 743499393, SoundPitch = 1.05, SoundVolume = 15}) | |
2821 | Speed = 60 | |
2822 | ATTACK = false | |
2823 | Rooted = false | |
2824 | end | |
2825 | ||
2826 | function RemoveHunterBoost() | |
2827 | ATTACK = true | |
2828 | Rooted = true | |
2829 | WACKYEFFECT({TIME = 130 ,EffectType = "Block", Size = VT(0,0,0), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame*CF(0,0,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 743499393, SoundPitch = 1.05, SoundVolume = 15}) | |
2830 | Speed = 20 | |
2831 | ATTACK = false | |
2832 | Rooted = false | |
2833 | end | |
2834 | ||
2835 | --//=================================\\ | |
2836 | --|| ASSIGN THINGS TO KEYS | |
2837 | --\\=================================// | |
2838 | ||
2839 | function MouseDown(Mouse) | |
2840 | if ATTACK == false then | |
2841 | end | |
2842 | end | |
2843 | ||
2844 | function MouseUp(Mouse) | |
2845 | HOLD = false | |
2846 | end | |
2847 | ||
2848 | function KeyDown(Key) | |
2849 | KEYHOLD = true | |
2850 | if Key == "z" and ATTACK == false then | |
2851 | if MODE == "Plagues" then | |
2852 | PlagueStomp() | |
2853 | elseif MODE == "Infectist" then | |
2854 | RedBlast() | |
2855 | elseif MODE == "Levithan" then | |
2856 | VirusCloaker() | |
2857 | elseif MODE == "Entity" then | |
2858 | Neckless() | |
2859 | end | |
2860 | end | |
2861 | ||
2862 | if Key == "x" and ATTACK == false then | |
2863 | if MODE == "Plagues" then | |
2864 | elseif MODE == "Infectist" then | |
2865 | Locked() | |
2866 | elseif MODE == "Levithan" then | |
2867 | Banisher_Bullet() | |
2868 | elseif MODE == "Entity" then | |
2869 | Slashed() | |
2870 | end | |
2871 | end | |
2872 | ||
2873 | if Key == "c" and ATTACK == false then | |
2874 | if MODE == "Plagues" then | |
2875 | Bullet2() | |
2876 | elseif MODE == "Infectist" then | |
2877 | Bullet1() | |
2878 | elseif MODE == "Entity" then | |
2879 | FatalWave() | |
2880 | elseif MODE == "Levithan" then | |
2881 | Morning_Star() | |
2882 | end | |
2883 | end | |
2884 | ||
2885 | if Key == "t" and ATTACK == false then | |
2886 | if MODE == "Entity" then | |
2887 | TrustIssues() | |
2888 | end | |
2889 | end | |
2890 | ||
2891 | if Key == "v" and ATTACK == false then | |
2892 | if MODE == "Plagues" then | |
2893 | Infect() | |
2894 | elseif MODE == "Infectist" then | |
2895 | InfectedFog() | |
2896 | elseif MODE == "Levithan" then | |
2897 | HunterBoost() | |
2898 | wait(10) | |
2899 | RemoveHunterBoost() | |
2900 | end | |
2901 | end | |
2902 | ||
2903 | if Key == "b" and ATTACK == false and MODE == "Levithan" and Speed == 60 then | |
2904 | RemoveHunterBoost() | |
2905 | end | |
2906 | ||
2907 | if Key == "q" and ATTACK == false then | |
2908 | Switch1() | |
2909 | end | |
2910 | ||
2911 | if Key == "e" and ATTACK == false then | |
2912 | Switch2() | |
2913 | end | |
2914 | ||
2915 | if Key == "e" and ATTACK == false then | |
2916 | Switch3() | |
2917 | end | |
2918 | end | |
2919 | ||
2920 | function KeyUp(Key) | |
2921 | KEYHOLD = false | |
2922 | end | |
2923 | ||
2924 | Mouse.Button1Down:connect(function(NEWKEY) | |
2925 | MouseDown(NEWKEY) | |
2926 | end) | |
2927 | Mouse.Button1Up:connect(function(NEWKEY) | |
2928 | MouseUp(NEWKEY) | |
2929 | end) | |
2930 | Mouse.KeyDown:connect(function(NEWKEY) | |
2931 | KeyDown(NEWKEY) | |
2932 | end) | |
2933 | Mouse.KeyUp:connect(function(NEWKEY) | |
2934 | KeyUp(NEWKEY) | |
2935 | end) | |
2936 | ||
2937 | --//=================================\\ | |
2938 | --\\=================================// | |
2939 | ||
2940 | ||
2941 | function unanchor() | |
2942 | if UNANCHOR == true then | |
2943 | g = Character:GetChildren() | |
2944 | for i = 1, #g do | |
2945 | if g[i].ClassName == "Part" then | |
2946 | g[i].Anchored = false | |
2947 | end | |
2948 | end | |
2949 | end | |
2950 | end | |
2951 | ||
2952 | ||
2953 | --//=================================\\ | |
2954 | --|| WRAP THE WHOLE SCRIPT UP | |
2955 | --\\=================================// | |
2956 | ||
2957 | Humanoid.Changed:connect(function(Jump) | |
2958 | if Jump == "Jump" and (Disable_Jump == true) then | |
2959 | Humanoid.Jump = false | |
2960 | end | |
2961 | end) | |
2962 | ||
2963 | while true do | |
2964 | Swait() | |
2965 | ANIMATE.Parent = nil | |
2966 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
2967 | Humanoid = IT("Humanoid",Character) | |
2968 | end | |
2969 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2970 | v:Stop(); | |
2971 | end | |
2972 | ANIMATE.Parent = nil | |
2973 | SINE = SINE + CHANGE | |
2974 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2975 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2976 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
2977 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2978 | ANIMATE.Parent = nil | |
2979 | SINE = SINE + CHANGE*1.5 | |
2980 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2981 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2982 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
2983 | local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16) | |
2984 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2985 | if MODE == "Levithan" then | |
2986 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0 * COS(SINE / (WALKSPEEDVALUE / 2)) * SIZE) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2987 | Neck.C1 = Clerp(Neck.C1, CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2988 | elseif MODE ~= "Levithan" then | |
2989 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2990 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2991 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2992 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2993 | end | |
2994 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2995 | if MODE == "Levithan" then | |
2996 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2997 | Neck.C1 = Clerp(Neck.C1, CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2998 | elseif MODE ~= "Levithan" then | |
2999 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3000 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3001 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3002 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3003 | end | |
3004 | end | |
3005 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
3006 | ANIM = "Jump" | |
3007 | if ATTACK == false then | |
3008 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3009 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3010 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3011 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3012 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
3013 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3014 | end | |
3015 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
3016 | ANIM = "Fall" | |
3017 | if ATTACK == false then | |
3018 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3019 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
3020 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(25))* RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3021 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
3022 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
3023 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
3024 | end | |
3025 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
3026 | ANIM = "Idle" | |
3027 | if ATTACK == false then | |
3028 | if MODE == "Plagues" then | |
3029 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3030 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0 - 55 * SIN(SINE / 0.5)), RAD(0 - 22 * SIN(SINE / 1)), RAD(-15)), 1 / Animation_Speed) | |
3031 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(45 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(33 - 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3032 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(35 - 22 * SIN(SINE / 0.5)), RAD(0), RAD(-22 + 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3033 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1.02*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(20), RAD(55 - 11 * SIN(SINE / 0.5)), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3034 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(10), RAD(-74 - 11 * SIN(SINE / 0.5)), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3035 | elseif MODE == "Infectist" then | |
3036 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 22)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3037 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 22)), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
3038 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -0.5) * ANGLES(RAD(55 + -11 * COS(SINE / 23)), RAD(-10), RAD(-75)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3039 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, -0.5) * ANGLES(RAD(-40 + -11 * COS(SINE / 23)), RAD(25), RAD(75)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3040 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3041 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3042 | elseif MODE == "Levithan" then | |
3043 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.15 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3044 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0.2 + ((1) - 1)) * ANGLES(RAD(35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3045 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3046 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(50), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3047 | RightHip.C0 = Clerp(RightHip.C0, CF(0.5, -1, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3048 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-0.5, 0.15, -0.8) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3049 | elseif MODE == "Entity" then | |
3050 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3051 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) | |
3052 | if MRANDOM(1,7) == 1 then | |
3053 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
3054 | end | |
3055 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, 0.5) * ANGLES(RAD(-25 - 4 * COS(SINE / 12)), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3056 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, 0.5) * ANGLES(RAD(-30 - 4 * COS(SINE / 12)), RAD(0), RAD(45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3057 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3058 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3059 | end | |
3060 | end | |
3061 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
3062 | ANIM = "Walk" | |
3063 | if ATTACK == false then | |
3064 | if MODE == "Plagues" then | |
3065 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*SIZE) - 1)) * ANGLES(RAD(0 - 55 * SIN(SINE / 0.5)), RAD(0 - 22 * SIN(SINE / 1)), RAD(-15)), 1 / Animation_Speed) | |
3066 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(-75 - 22 * SIN(SINE / 0.5)), RAD(-90), RAD(0 - 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(-70), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3067 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(-75- 22 * SIN(SINE / 0.5)), RAD(90), RAD(0 + 3 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(70), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3068 | elseif MODE == "Infectist" then | |
3069 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(20), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
3070 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0 + -25 * COS(SINE / 10)), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
3071 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0 + -25 * COS(SINE / 10)), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
3072 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
3073 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
3074 | elseif MODE == "Levithan" then | |
3075 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.5 * COS(SINE / 12)) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
3076 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3077 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3078 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3079 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE - 0.05*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3080 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -0.8*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
3081 | elseif MODE == "Entity" then | |
3082 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
3083 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 + MRANDOM(-5,5) - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(MRANDOM(-5,5)), RAD(0)), 1 / Animation_Speed) | |
3084 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(40 * COS(SINE / WALKSPEEDVALUE)), RAD(-15), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
3085 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40 * COS(SINE / WALKSPEEDVALUE)), RAD(15), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
3086 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
3087 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
3088 | end | |
3089 | end | |
3090 | end | |
3091 | unanchor() | |
3092 | Humanoid.MaxHealth = "inf" | |
3093 | Humanoid.Health = "inf" | |
3094 | if Rooted == false then | |
3095 | Disable_Jump = false | |
3096 | Humanoid.WalkSpeed = Speed | |
3097 | elseif Rooted == true then | |
3098 | Disable_Jump = true | |
3099 | Humanoid.WalkSpeed = 0 | |
3100 | end | |
3101 | sick.Parent = Torso | |
3102 | sick:resume() | |
3103 | sick.Volume = VOLUME | |
3104 | sick.Pitch = PITCH | |
3105 | sick.SoundId = "rbxassetid://"..SONG | |
3106 | sick.Name = "Infection" | |
3107 | end | |
3108 | ||
3109 | --//=================================\\ | |
3110 | --\\=================================// | |
3111 | ||
3112 | ||
3113 | ||
3114 | ||
3115 | ||
3116 | --//====================================================\\-- | |
3117 | --|| END OF SCRIPT | |
3118 | --\\====================================================//-- |