SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | ||
6 | ||
7 | wait(0.2) | |
8 | ||
9 | -- Location: game.ReplicatedStorage.Cosmetics.Ghost Trail | |
10 | -- Synapse Decompiler | |
11 | -- Purchase Here: https://brack4712.xyz/synapse/purchase/ | |
12 | ||
13 | local Player = game:GetService("Players").LocalPlayer | |
14 | repeat | |
15 | wait() | |
16 | until Player.Character | |
17 | local Character = Player.Character | |
18 | TrailSettings = { | |
19 | Lifetime = 2, | |
20 | Texture = "http://www.roblox.com/asset/?id=246689799", | |
21 | Color1 = ColorSequence.new(BrickColor.new("Really black").Color, BrickColor.new("Institutional white").Color), | |
22 | Color2 = ColorSequence.new(BrickColor.new("Really black").Color, BrickColor.new("Institutional white").Color), | |
23 | AllBody = true, | |
24 | UpperBodyOnly = false, | |
25 | LowerBodyOnly = false, | |
26 | Accessories = false, | |
27 | Extras = true, | |
28 | R15 = false, | |
29 | R15Parts = {"UpperTorso", "LowerTorso"} | |
30 | } | |
31 | local Trail | |
32 | function UpperBody() | |
33 | if TrailSettings.R15 == false then | |
34 | A0 = Instance.new("Attachment", Character.Torso) | |
35 | A1 = Instance.new("Attachment", Character.Head) | |
36 | A2 = Instance.new("Attachment", Character["Right Arm"]) | |
37 | A3 = Instance.new("Attachment", Character["Left Arm"]) | |
38 | Trail = Instance.new("Trail", Character) | |
39 | Trail.Attachment0 = A0 | |
40 | Trail.Attachment1 = A1 | |
41 | Trail.Texture = TrailSettings.Texture | |
42 | Trail.Color = TrailSettings.Color1 | |
43 | Trail.Lifetime = TrailSettings.Lifetime | |
44 | local Trail2 = Trail:Clone() | |
45 | Trail2.Parent = Character | |
46 | Trail2.Attachment1 = A2 | |
47 | local Trail3 = Trail:Clone() | |
48 | Trail3.Parent = Character | |
49 | Trail3.Attachment1 = A3 | |
50 | local Trail6 = Trail:Clone() | |
51 | Trail6.Parent = Character | |
52 | Trail6.Attachment0 = A1 | |
53 | Trail6.Attachment1 = A2 | |
54 | local Trail7 = Trail:Clone() | |
55 | Trail7.Parent = Character | |
56 | Trail7.Attachment0 = A1 | |
57 | Trail7.Attachment1 = A3 | |
58 | else | |
59 | A0 = Instance.new("Attachment", Character[TrailSettings.R15Parts[1]]) | |
60 | A0R = Instance.new("Attachment", Character[TrailSettings.R15Parts[2]]) | |
61 | A1 = Instance.new("Attachment", Character.Head) | |
62 | A2 = Instance.new("Attachment", Character.RightUpperArm) | |
63 | A2R = Instance.new("Attachment", Character.RightLowerArm) | |
64 | A3 = Instance.new("Attachment", Character.LeftUpperArm) | |
65 | A3R = Instance.new("Attachment", Character.LeftLowerArm) | |
66 | Trail = Instance.new("Trail", Character) | |
67 | Trail.Attachment0 = A0 | |
68 | Trail.Attachment1 = A1 | |
69 | Trail.Texture = TrailSettings.Texture | |
70 | Trail.Color = TrailSettings.Color1 | |
71 | Trail.Lifetime = TrailSettings.Lifetime | |
72 | local Trail2 = Trail:Clone() | |
73 | Trail2.Parent = Character | |
74 | Trail2.Attachment1 = A2 | |
75 | local Trail3 = Trail:Clone() | |
76 | Trail3.Parent = Character | |
77 | Trail3.Attachment1 = A3 | |
78 | local Trail6 = Trail:Clone() | |
79 | Trail6.Parent = Character | |
80 | Trail6.Attachment0 = A1 | |
81 | Trail6.Attachment1 = A2 | |
82 | local Trail7 = Trail:Clone() | |
83 | Trail7.Parent = Character | |
84 | Trail7.Attachment0 = A1 | |
85 | Trail7.Attachment1 = A3 | |
86 | local Trail1R = Trail:Clone() | |
87 | Trail1R.Parent = Character | |
88 | Trail1R.Attachment1 = A2R | |
89 | local Trail2R = Trail:Clone() | |
90 | Trail2R.Parent = Character | |
91 | Trail2R.Attachment1 = A3R | |
92 | local Trail6R = Trail:Clone() | |
93 | Trail6.Parent = Character | |
94 | Trail6.Attachment0 = A1 | |
95 | Trail6.Attachment1 = A2R | |
96 | local Trail7R = Trail:Clone() | |
97 | Trail7.Parent = Character | |
98 | Trail7.Attachment0 = A1 | |
99 | Trail7.Attachment1 = A3R | |
100 | end | |
101 | end | |
102 | function LowerBody() | |
103 | if TrailSettings.R15 == false then | |
104 | A4 = Instance.new("Attachment", Character["Right Leg"]) | |
105 | A5 = Instance.new("Attachment", Character["Left Leg"]) | |
106 | local Trail4 = Trail:Clone() | |
107 | Trail4.Parent = Character | |
108 | Trail4.Attachment1 = A4 | |
109 | local Trail5 = Trail:Clone() | |
110 | Trail5.Parent = Character | |
111 | Trail5.Attachment1 = A5 | |
112 | local Trail8 = Trail:Clone() | |
113 | Trail8.Parent = Character | |
114 | Trail8.Attachment0 = A2 | |
115 | Trail8.Attachment1 = A4 | |
116 | Trail8.Color = TrailSettings.Color2 | |
117 | local Trail9 = Trail:Clone() | |
118 | Trail9.Parent = Character | |
119 | Trail9.Attachment0 = A3 | |
120 | Trail9.Attachment1 = A5 | |
121 | Trail9.Color = TrailSettings.Color2 | |
122 | local FT = Trail:Clone() | |
123 | FT.Parent = Character | |
124 | FT.Attachment0 = A4 | |
125 | FT.Attachment1 = A5 | |
126 | FT.Color = TrailSettings.Color2 | |
127 | else | |
128 | A4 = Instance.new("Attachment", Character.RightLowerLeg) | |
129 | A4R = Instance.new("Attachment", Character.RightUpperLeg) | |
130 | A5 = Instance.new("Attachment", Character.LeftLowerLeg) | |
131 | A5R = Instance.new("Attachment", Character.LeftUpperLeg) | |
132 | local Trail4 = Trail:Clone() | |
133 | Trail4.Parent = Character | |
134 | Trail4.Attachment1 = A4 | |
135 | local Trail5 = Trail:Clone() | |
136 | Trail5.Parent = Character | |
137 | Trail5.Attachment1 = A5 | |
138 | local Trail8 = Trail:Clone() | |
139 | Trail8.Parent = Character | |
140 | Trail8.Attachment0 = A2 | |
141 | Trail8.Attachment1 = A4 | |
142 | Trail8.Color = TrailSettings.Color2 | |
143 | local Trail9 = Trail:Clone() | |
144 | Trail9.Parent = Character | |
145 | Trail9.Attachment0 = A3 | |
146 | Trail9.Attachment1 = A5 | |
147 | Trail9.Color = TrailSettings.Color2 | |
148 | local FT = Trail:Clone() | |
149 | FT.Parent = Character | |
150 | FT.Attachment0 = A4 | |
151 | FT.Attachment1 = A5 | |
152 | FT.Color = TrailSettings.Color2 | |
153 | local Trail3R = Trail:Clone() | |
154 | Trail3R.Parent = Character | |
155 | Trail3R.Attachment1 = A4R | |
156 | local Trail4R = Trail:Clone() | |
157 | Trail4R.Parent = Character | |
158 | Trail4R.Attachment1 = A5R | |
159 | local Trail8 = Trail:Clone() | |
160 | Trail8.Parent = Character | |
161 | Trail8.Attachment0 = A2R | |
162 | Trail8.Attachment1 = A4R | |
163 | Trail8.Color = TrailSettings.Color2 | |
164 | local Trail9 = Trail:Clone() | |
165 | Trail9.Parent = Character | |
166 | Trail9.Attachment0 = A3R | |
167 | Trail9.Attachment1 = A5R | |
168 | Trail9.Color = TrailSettings.Color2 | |
169 | local FT2R = Trail:Clone() | |
170 | FT2R.Parent = Character | |
171 | FT2R.Attachment0 = A4R | |
172 | FT2R.Attachment1 = A5R | |
173 | FT2R.Color = TrailSettings.Color2 | |
174 | end | |
175 | end | |
176 | function AllBody() | |
177 | UpperBody() | |
178 | LowerBody() | |
179 | end | |
180 | if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
181 | TrailSettings.UpperBodyOnly = false | |
182 | TrailSettings.LowerBodyOnly = false | |
183 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then | |
184 | TrailSettings.UpperBodyOnly = false | |
185 | TrailSettings.LowerBodyOnly = false | |
186 | elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then | |
187 | TrailSettings.UpperBodyOnly = false | |
188 | TrailSettings.LowerBodyOnly = false | |
189 | elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then | |
190 | TrailSettings.AllBody = true | |
191 | TrailSettings.UpperBodyOnly = false | |
192 | TrailSettings.LowerBodyOnly = false | |
193 | end | |
194 | if TrailSettings.UpperBodyOnly == true then | |
195 | UpperBody() | |
196 | print("Called Upper Body Trail") | |
197 | elseif TrailSettings.LowerBodyOnly == true then | |
198 | LowerBody() | |
199 | print("Called Lower Body Trail") | |
200 | elseif TrailSettings.AllBody == true then | |
201 | AllBody() | |
202 | print("Called Full Body Trail") | |
203 | end | |
204 | if TrailSettings.Accessories == true then | |
205 | for Index, Item in pairs(Character:GetChildren()) do | |
206 | if Item:IsA("Accessory") then | |
207 | local AA = Instance.new("Attachment", Item.Handle) | |
208 | local ATrail = Trail:Clone() | |
209 | ATrail.Parent = Character | |
210 | ATrail.Attachment1 = AA | |
211 | end | |
212 | end | |
213 | end | |
214 | if TrailSettings.Extras == true then | |
215 | spawn(function() | |
216 | repeat | |
217 | wait() | |
218 | until Trail | |
219 | local AB = Instance.new("Attachment", a) | |
220 | local ABT = Trail:Clone() | |
221 | ABT.Parent = Character | |
222 | ABT.Attachment0 = A4 | |
223 | ABT.Attachment1 = AB | |
224 | ABT.Color = TrailSettings.Color2 | |
225 | local ABT2 = Trail:Clone() | |
226 | ABT2.Parent = Character | |
227 | ABT2.Attachment0 = A5 | |
228 | ABT2.Attachment1 = AB | |
229 | ABT2.Color = TrailSettings.Color2 | |
230 | end) | |
231 | end | |
232 | ||
233 | ||
234 | Player = game:GetService("Players").LocalPlayer | |
235 | PlayerGui = Player.PlayerGui | |
236 | Cam = workspace.CurrentCamera | |
237 | Backpack = Player.Backpack | |
238 | Character = Player.Character | |
239 | Humanoid = Character.Humanoid | |
240 | Character.Archivable = true | |
241 | Mouse = Player:GetMouse() | |
242 | RootPart = Character["HumanoidRootPart"] | |
243 | Torso = Character["Torso"] | |
244 | Head = Character["Head"] | |
245 | RightArm = Character["Right Arm"] | |
246 | LeftArm = Character["Left Arm"] | |
247 | RightLeg = Character["Right Leg"] | |
248 | LeftLeg = Character["Left Leg"] | |
249 | RootJoint = RootPart["RootJoint"] | |
250 | Neck = Torso["Neck"] | |
251 | RightShoulder = Torso["Right Shoulder"] | |
252 | LeftShoulder = Torso["Left Shoulder"] | |
253 | RightHip = Torso["Right Hip"] | |
254 | LeftHip = Torso["Left Hip"] | |
255 | local sick = Instance.new("Sound",Character) | |
256 | sick.SoundId = "rbxassetid://694828974" | |
257 | sick.Name = "BGM" | |
258 | sick.Looped = true | |
259 | sick.Pitch = 1 | |
260 | sick.Volume = 1.3 | |
261 | sick:Play() | |
262 | Speed = 25 | |
263 | local ISEEYOU = Instance.new("Sound",Torso) | |
264 | ISEEYOU.SoundId = "rbxassetid://305685800" | |
265 | ISEEYOU.Pitch = 1 | |
266 | ISEEYOU.Volume = 10 | |
267 | ||
268 | IT = Instance.new | |
269 | CF = CFrame.new | |
270 | VT = Vector3.new | |
271 | RAD = math.rad | |
272 | C3 = Color3.new | |
273 | UD2 = UDim2.new | |
274 | BRICKC = BrickColor.new | |
275 | ANGLES = CFrame.Angles | |
276 | EULER = CFrame.fromEulerAnglesXYZ | |
277 | COS = math.cos | |
278 | ACOS = math.acos | |
279 | SIN = math.sin | |
280 | ASIN = math.asin | |
281 | ABS = math.abs | |
282 | MRANDOM = math.random | |
283 | FLOOR = math.floor | |
284 | ||
285 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
286 | local NEWMESH = IT(MESH) | |
287 | if MESH == "SpecialMesh" then | |
288 | NEWMESH.MeshType = MESHTYPE | |
289 | if MESHID ~= "nil" and MESHID ~= "" then | |
290 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
291 | end | |
292 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
293 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
294 | end | |
295 | end | |
296 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
297 | NEWMESH.Scale = SCALE | |
298 | NEWMESH.Parent = PARENT | |
299 | return NEWMESH | |
300 | end | |
301 | ||
302 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
303 | local NEWPART = IT("Part") | |
304 | NEWPART.formFactor = FORMFACTOR | |
305 | NEWPART.Reflectance = REFLECTANCE | |
306 | NEWPART.Transparency = TRANSPARENCY | |
307 | NEWPART.CanCollide = false | |
308 | NEWPART.Locked = true | |
309 | NEWPART.Anchored = true | |
310 | if ANCHOR == false then | |
311 | NEWPART.Anchored = false | |
312 | end | |
313 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
314 | NEWPART.Name = NAME | |
315 | NEWPART.Size = SIZE | |
316 | NEWPART.Position = Torso.Position | |
317 | NEWPART.Material = MATERIAL | |
318 | NEWPART:BreakJoints() | |
319 | NEWPART.Parent = PARENT | |
320 | return NEWPART | |
321 | end | |
322 | ||
323 | --//=================================\\ | |
324 | --|| CUSTOMIZATION | |
325 | --\\=================================// | |
326 | ||
327 | Player_Size = 1 --Size of the player. | |
328 | Animation_Speed = 3 | |
329 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
330 | ||
331 | local Speed = 16 | |
332 | local Effects2 = {} | |
333 | ||
334 | --//=================================\\ | |
335 | --|| END OF CUSTOMIZATION | |
336 | --\\=================================// | |
337 | ||
338 | local function weldBetween(a, b) | |
339 | local weldd = Instance.new("ManualWeld") | |
340 | weldd.Part0 = a | |
341 | weldd.Part1 = b | |
342 | weldd.C0 = CFrame.new() | |
343 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
344 | weldd.Parent = a | |
345 | return weldd | |
346 | end | |
347 | ||
348 | --//=================================\\ | |
349 | --|| USEFUL VALUES | |
350 | --\\=================================// | |
351 | ||
352 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
353 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
354 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
355 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
356 | local CO1 = 0 | |
357 | local CO2 = 0 | |
358 | local CO3 = 0 | |
359 | local CO4 = 0 | |
360 | local CHANGEDEFENSE = 0 | |
361 | local CHANGEDAMAGE = 0 | |
362 | local CHANGEMOVEMENT = 0 | |
363 | local ANIM = "Idle" | |
364 | local ATTACK = false | |
365 | local EQUIPPED = false | |
366 | local HOLD = false | |
367 | local COMBO = 1 | |
368 | local LASTPOINT = nil | |
369 | local BLCF = nil | |
370 | local SCFR = nil | |
371 | local STAGGERHITANIM = false | |
372 | local STAGGERANIM = false | |
373 | local STUNANIM = false | |
374 | local CRITCHANCENUMBER = 0 | |
375 | local IDLENUMBER = 0 | |
376 | local DONUMBER = 0 | |
377 | local HANDIDLE = false | |
378 | local SINE = 0 | |
379 | local KEYHOLD = false | |
380 | local CHANGE = 2 / Animation_Speed | |
381 | local WALKINGANIM = false | |
382 | local WALK = 0 | |
383 | local KEYHOLD = false | |
384 | local DISABLEJUMPING = false | |
385 | local HASBEENBLOCKED = false | |
386 | local STUNDELAYNUMBER = 0 | |
387 | local MANADELAYNUMBER = 0 | |
388 | local SECONDARYMANADELAYNUMBER = 0 | |
389 | local ROBLOXIDLEANIMATION = IT("Animation") | |
390 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
391 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
392 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
393 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
394 | WEAPONGUI.Name = "Weapon GUI" | |
395 | local Weapon = IT("Model") | |
396 | Weapon.Name = "Adds" | |
397 | local Effects = IT("Folder", Weapon) | |
398 | Effects.Name = "Effects" | |
399 | local ANIMATOR = Humanoid.Animator | |
400 | local ANIMATE = Character.Animate | |
401 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
402 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
403 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
404 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
405 | local UNANCHOR = true | |
406 | local TARGET = nil | |
407 | ||
408 | local EYECOLOR = 1 | |
409 | local SKILLTEXTCOLOR = C3(1,1,1) | |
410 | ||
411 | --//=================================\\ | |
412 | --\\=================================// | |
413 | ||
414 | ||
415 | --//=================================\\ | |
416 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
417 | --\\=================================// | |
418 | ||
419 | ArtificialHB = Instance.new("BindableEvent", script) | |
420 | ArtificialHB.Name = "ArtificialHB" | |
421 | ||
422 | script:WaitForChild("ArtificialHB") | |
423 | ||
424 | frame = Frame_Speed | |
425 | tf = 0 | |
426 | allowframeloss = false | |
427 | tossremainder = false | |
428 | lastframe = tick() | |
429 | script.ArtificialHB:Fire() | |
430 | ||
431 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
432 | tf = tf + s | |
433 | if tf >= frame then | |
434 | if allowframeloss then | |
435 | script.ArtificialHB:Fire() | |
436 | lastframe = tick() | |
437 | else | |
438 | for i = 1, math.floor(tf / frame) do | |
439 | script.ArtificialHB:Fire() | |
440 | end | |
441 | lastframe = tick() | |
442 | end | |
443 | if tossremainder then | |
444 | tf = 0 | |
445 | else | |
446 | tf = tf - frame * math.floor(tf / frame) | |
447 | end | |
448 | end | |
449 | end) | |
450 | ||
451 | --//=================================\\ | |
452 | --\\=================================// | |
453 | ||
454 | ||
455 | ||
456 | ||
457 | ||
458 | --//=================================\\ | |
459 | --|| SOME FUNCTIONS | |
460 | --\\=================================// | |
461 | ||
462 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
463 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
464 | end | |
465 | ||
466 | function PositiveAngle(NUMBER) | |
467 | if NUMBER >= 0 then | |
468 | NUMBER = 0 | |
469 | end | |
470 | return NUMBER | |
471 | end | |
472 | ||
473 | function NegativeAngle(NUMBER) | |
474 | if NUMBER <= 0 then | |
475 | NUMBER = 0 | |
476 | end | |
477 | return NUMBER | |
478 | end | |
479 | ||
480 | function Swait(NUMBER) | |
481 | if NUMBER == 0 or NUMBER == nil then | |
482 | ArtificialHB.Event:wait() | |
483 | else | |
484 | for i = 1, NUMBER do | |
485 | ArtificialHB.Event:wait() | |
486 | end | |
487 | end | |
488 | end | |
489 | ||
490 | function QuaternionFromCFrame(cf) | |
491 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
492 | local trace = m00 + m11 + m22 | |
493 | if trace > 0 then | |
494 | local s = math.sqrt(1 + trace) | |
495 | local recip = 0.5 / s | |
496 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
497 | else | |
498 | local i = 0 | |
499 | if m11 > m00 then | |
500 | i = 1 | |
501 | end | |
502 | if m22 > (i == 0 and m00 or m11) then | |
503 | i = 2 | |
504 | end | |
505 | if i == 0 then | |
506 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
507 | local recip = 0.5 / s | |
508 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
509 | elseif i == 1 then | |
510 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
511 | local recip = 0.5 / s | |
512 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
513 | elseif i == 2 then | |
514 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
515 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
516 | end | |
517 | end | |
518 | end | |
519 | ||
520 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
521 | local xs, ys, zs = x + x, y + y, z + z | |
522 | local wx, wy, wz = w * xs, w * ys, w * zs | |
523 | local xx = x * xs | |
524 | local xy = x * ys | |
525 | local xz = x * zs | |
526 | local yy = y * ys | |
527 | local yz = y * zs | |
528 | local zz = z * zs | |
529 | 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)) | |
530 | end | |
531 | ||
532 | ||
533 | ||
534 | function CreateGUICircle(TARGET) | |
535 | local GUI = Instance.new("BillboardGui",Character) | |
536 | GUI.Size = UDim2.new(0,0,0,0) | |
537 | GUI.Adornee = TARGET | |
538 | local GUI2 = IT("ImageLabel",GUI) | |
539 | GUI2.BackgroundTransparency = 1 | |
540 | GUI2.BorderSizePixel = 0 | |
541 | GUI2.Size = UDim2.new(1,0,1,0) | |
542 | GUI2.SizeConstraint = "RelativeYY" | |
543 | GUI.AlwaysOnTop = true | |
544 | GUI2.Image = "http://www.roblox.com/asset/?id=1260793696" | |
545 | return GUI,GUI2 | |
546 | end | |
547 | ||
548 | ||
549 | function QuaternionSlerp(a, b, t) | |
550 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
551 | local startInterp, finishInterp; | |
552 | if cosTheta >= 0.0001 then | |
553 | if (1 - cosTheta) > 0.0001 then | |
554 | local theta = ACOS(cosTheta) | |
555 | local invSinTheta = 1 / SIN(theta) | |
556 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
557 | finishInterp = SIN(t * theta) * invSinTheta | |
558 | else | |
559 | startInterp = 1 - t | |
560 | finishInterp = t | |
561 | end | |
562 | else | |
563 | if (1 + cosTheta) > 0.0001 then | |
564 | local theta = ACOS(-cosTheta) | |
565 | local invSinTheta = 1 / SIN(theta) | |
566 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
567 | finishInterp = SIN(t * theta) * invSinTheta | |
568 | else | |
569 | startInterp = t - 1 | |
570 | finishInterp = t | |
571 | end | |
572 | end | |
573 | 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 | |
574 | end | |
575 | ||
576 | function Clerp(a, b, t) | |
577 | local qa = {QuaternionFromCFrame(a)} | |
578 | local qb = {QuaternionFromCFrame(b)} | |
579 | local ax, ay, az = a.x, a.y, a.z | |
580 | local bx, by, bz = b.x, b.y, b.z | |
581 | local _t = 1 - t | |
582 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
583 | end | |
584 | ||
585 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
586 | local frame = IT("Frame") | |
587 | frame.BackgroundTransparency = TRANSPARENCY | |
588 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
589 | frame.Position = POSITION | |
590 | frame.Size = SIZE | |
591 | frame.BackgroundColor3 = COLOR | |
592 | frame.BorderColor3 = BORDERCOLOR | |
593 | frame.Name = NAME | |
594 | frame.Parent = PARENT | |
595 | return frame | |
596 | end | |
597 | ||
598 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
599 | local label = IT("TextLabel") | |
600 | label.BackgroundTransparency = 1 | |
601 | label.Size = UD2(1, 0, 1, 0) | |
602 | label.Position = UD2(0, 0, 0, 0) | |
603 | label.TextColor3 = TEXTCOLOR | |
604 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
605 | label.TextTransparency = TRANSPARENCY | |
606 | label.FontSize = TEXTFONTSIZE | |
607 | label.Font = TEXTFONT | |
608 | label.BorderSizePixel = BORDERSIZEPIXEL | |
609 | label.TextScaled = false | |
610 | label.Text = TEXT | |
611 | label.Name = NAME | |
612 | label.Parent = PARENT | |
613 | return label | |
614 | end | |
615 | ||
616 | function NoOutlines(PART) | |
617 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
618 | end | |
619 | ||
620 | ||
621 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
622 | local NEWWELD = IT(TYPE) | |
623 | NEWWELD.Part0 = PART0 | |
624 | NEWWELD.Part1 = PART1 | |
625 | NEWWELD.C0 = C0 | |
626 | NEWWELD.C1 = C1 | |
627 | NEWWELD.Parent = PARENT | |
628 | return NEWWELD | |
629 | end | |
630 | ||
631 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
632 | local NEWSOUND = nil | |
633 | coroutine.resume(coroutine.create(function() | |
634 | NEWSOUND = IT("Sound", PARENT) | |
635 | NEWSOUND.Volume = VOLUME | |
636 | NEWSOUND.Pitch = PITCH | |
637 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
638 | Swait() | |
639 | NEWSOUND:play() | |
640 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
641 | end)) | |
642 | return NEWSOUND | |
643 | end | |
644 | ||
645 | function CFrameFromTopBack(at, top, back) | |
646 | local right = top:Cross(back) | |
647 | 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) | |
648 | end | |
649 | ||
650 | function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW) | |
651 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
652 | local mesh = nil | |
653 | if KIND == "Base" then | |
654 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0)) | |
655 | elseif KIND == "Thin" then | |
656 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0)) | |
657 | elseif KIND == "Round" then | |
658 | mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0)) | |
659 | end | |
660 | wave.CFrame = CFRAME | |
661 | coroutine.resume(coroutine.create(function(PART) | |
662 | for i = 1, WAIT do | |
663 | Swait() | |
664 | mesh.Scale = mesh.Scale + GROW/10 | |
665 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
666 | if wave.Transparency > 0.99 then | |
667 | wave:remove() | |
668 | end | |
669 | end | |
670 | end)) | |
671 | end | |
672 | ||
673 | function MakeForm(PART,TYPE) | |
674 | if TYPE == "Cyl" then | |
675 | local MSH = IT("CylinderMesh",PART) | |
676 | elseif TYPE == "Ball" then | |
677 | local MSH = IT("SpecialMesh",PART) | |
678 | MSH.MeshType = "Sphere" | |
679 | elseif TYPE == "Wedge" then | |
680 | local MSH = IT("SpecialMesh",PART) | |
681 | MSH.MeshType = "Wedge" | |
682 | end | |
683 | end | |
684 | ||
685 | function CheckTableForString(Table, String) | |
686 | for i, v in pairs(Table) do | |
687 | if string.find(string.lower(String), string.lower(v)) then | |
688 | return true | |
689 | end | |
690 | end | |
691 | return false | |
692 | end | |
693 | ||
694 | function CheckIntangible(Hit) | |
695 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
696 | if Hit and Hit.Parent then | |
697 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
698 | return true | |
699 | end | |
700 | end | |
701 | return false | |
702 | end | |
703 | ||
704 | Debris = game:GetService("Debris") | |
705 | ||
706 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
707 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
708 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
709 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
710 | if RayHit and CheckIntangible(RayHit) then | |
711 | if DelayIfHit then | |
712 | wait() | |
713 | end | |
714 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
715 | end | |
716 | return RayHit, RayPos, RayNormal | |
717 | end | |
718 | ||
719 | function turnto(position) | |
720 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
721 | end | |
722 | ||
723 | function CastWarpOutlines(TARGET) | |
724 | coroutine.resume(coroutine.create(function() | |
725 | local T = TARGET:GetChildren() | |
726 | for i = 1, # T do | |
727 | local child = T[i] | |
728 | if child.ClassName == "Part" or child.ClassName == "MeshPart" then | |
729 | local clone = child:Clone() | |
730 | clone.Parent = Effects | |
731 | clone.Anchored = true | |
732 | clone.CanCollide = false | |
733 | clone:ClearAllChildren() | |
734 | clone.CFrame = child.CFrame | |
735 | if clone.Name == "Head" then | |
736 | clone.Size = VT(clone.Size.Y,clone.Size.Y,clone.Size.Y) | |
737 | end | |
738 | if clone.ClassName == "MeshPart" then | |
739 | clone.TextureID = "" | |
740 | end | |
741 | clone.BrickColor = BRICKC"Black" | |
742 | clone.Material = "Neon" | |
743 | coroutine.resume(coroutine.create(function() | |
744 | for i = 1, 200 do | |
745 | Swait() | |
746 | clone.Transparency = clone.Transparency + 0.005 | |
747 | clone.Size = clone.Size + VT(0.001,0.001,0.001) | |
748 | end | |
749 | clone:remove() | |
750 | end)) | |
751 | end | |
752 | end | |
753 | end)) | |
754 | end | |
755 | ||
756 | function turnto(position) | |
757 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
758 | end | |
759 | ||
760 | ||
761 | ||
762 | --//=================================\\ | |
763 | --|| SPEECH | |
764 | --\\=================================// | |
765 | ||
766 | function chatfunc(text,waitt) | |
767 | local chat = coroutine.wrap(function() | |
768 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
769 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
770 | end | |
771 | local naeeym2 = Instance.new("BillboardGui",Character) | |
772 | naeeym2.Size = UDim2.new(0,100,0,40) | |
773 | naeeym2.StudsOffset = Vector3.new(0,5,0) | |
774 | naeeym2.Adornee = Character.Head | |
775 | naeeym2.Name = "TalkingBillBoard" | |
776 | naeeym2.AlwaysOnTop = true | |
777 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
778 | tecks2.BackgroundTransparency = 1 | |
779 | tecks2.BorderSizePixel = 0 | |
780 | tecks2.Text = "" | |
781 | tecks2.Font = "SciFi" | |
782 | tecks2.TextSize = 30 | |
783 | tecks2.TextStrokeTransparency = 1 | |
784 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
785 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
786 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
787 | for i = 1,string.len(text),1 do | |
788 | tecks2.Text = string.sub(text,1,i) | |
789 | Swait() | |
790 | end | |
791 | wait(waitt) | |
792 | coroutine.resume(coroutine.create(function() | |
793 | for i = 1, 10 do | |
794 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
795 | Swait() | |
796 | end | |
797 | naeeym2:Destroy() | |
798 | end)) | |
799 | end) | |
800 | chat() | |
801 | end | |
802 | ||
803 | ||
804 | ||
805 | function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW) | |
806 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0)) | |
807 | wave.Color = COLOR | |
808 | local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
809 | wave.CFrame = CFRAME | |
810 | coroutine.resume(coroutine.create(function(PART) | |
811 | for i = 1, WAIT do | |
812 | Swait() | |
813 | mesh.Scale = mesh.Scale + GROW | |
814 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
815 | if DOESROT == true then | |
816 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0) | |
817 | end | |
818 | wave.Transparency = wave.Transparency + (0.5/WAIT) | |
819 | if wave.Transparency > 0.99 then | |
820 | wave:remove() | |
821 | end | |
822 | end | |
823 | end)) | |
824 | end | |
825 | ||
826 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
827 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
828 | wave.Color = COLOR | |
829 | local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0)) | |
830 | wave.CFrame = CFRAME | |
831 | coroutine.resume(coroutine.create(function(PART) | |
832 | for i = 1, WAIT do | |
833 | Swait() | |
834 | mesh.Scale = mesh.Scale + GROW | |
835 | wave.Transparency = wave.Transparency + (1/WAIT) | |
836 | if wave.Transparency > 0.99 then | |
837 | wave:remove() | |
838 | end | |
839 | end | |
840 | end)) | |
841 | end | |
842 | ||
843 | ||
844 | function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine) | |
845 | if DoesCourontine == false then | |
846 | local Direction = CF(Part.Position,ToLocation) | |
847 | local Distance = (Part.Position - ToLocation).magnitude | |
848 | for i = 1, AmountOfTime do | |
849 | Swait() | |
850 | Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime) | |
851 | Direction = Part.CFrame | |
852 | end | |
853 | Part:remove() | |
854 | elseif DoesCourontine == true then | |
855 | coroutine.resume(coroutine.create(function() | |
856 | local Direction = CF(Part.Position,ToLocation) | |
857 | local Distance = (Part.Position - ToLocation).magnitude | |
858 | for i = 1, AmountOfTime do | |
859 | Swait() | |
860 | Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime) | |
861 | Direction = Part.CFrame | |
862 | end | |
863 | Part:remove() | |
864 | end)) | |
865 | end | |
866 | end | |
867 | ||
868 | function turnto(position) | |
869 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
870 | end | |
871 | ||
872 | --//=================================\\ | |
873 | --|| WEAPON CREATION | |
874 | --\\=================================// | |
875 | ||
876 | local GYRO = IT("BodyGyro",RootPart) | |
877 | GYRO.D = 100 | |
878 | GYRO.P = 2000 | |
879 | GYRO.MaxTorque = VT(0,4000000,0) | |
880 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
881 | ||
882 | Head:ClearAllChildren() | |
883 | Head.Transparency = 1 | |
884 | ||
885 | function particles(art) | |
886 | local EyeSizes={ | |
887 | NumberSequenceKeypoint.new(0,0.3,0), | |
888 | NumberSequenceKeypoint.new(1,0,0) | |
889 | } | |
890 | local EyeTrans={ | |
891 | NumberSequenceKeypoint.new(0,0.2,0), | |
892 | NumberSequenceKeypoint.new(1,1,0) | |
893 | } | |
894 | local PE=Instance.new("ParticleEmitter",art) | |
895 | PE.LightEmission=.4 | |
896 | PE.Size=NumberSequence.new(EyeSizes) | |
897 | PE.Transparency=NumberSequence.new(EyeTrans) | |
898 | PE.Lifetime=NumberRange.new(0.35,0.35,0.35) | |
899 | PE.Rotation=NumberRange.new(0,360) | |
900 | PE.Rate=999 | |
901 | PE.Acceleration = Vector3.new(0,75,0) | |
902 | PE.Drag = 5 | |
903 | PE.Speed = NumberRange.new(0,0,0) | |
904 | PE.Texture="http://www.roblox.com/asset/?id=1179557490" | |
905 | PE.ZOffset = -1.5 | |
906 | PE.Name = "PE" | |
907 | end | |
908 | ||
909 | ||
910 | ||
911 | local PupilWeld = CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, 0, 0)) | |
912 | MakeForm(Eye,"Ball") | |
913 | ||
914 | ||
915 | ||
916 | ||
917 | local SKULL = CreatePart(3, Character, "Wood", 0,0, "Really black", "FACE", VT(0,0,0),false) | |
918 | CreateWeldOrSnapOrMotor("Weld", SKULL, Head, SKULL, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
919 | CreateMesh("SpecialMesh", SKULL, "FileMesh", "14028428", "14027832", VT(1,1,1), VT(0, 0.2, -0.35)) | |
920 | ||
921 | local SKULL = CreatePart(3, Character, "Wood", 0,0, "Really black", "FACE", VT(0,0,0),false) | |
922 | CreateWeldOrSnapOrMotor("Weld", SKULL, Head, SKULL, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
923 | CreateMesh("SpecialMesh", SKULL, "FileMesh", "1271547", "186320934", VT(1,1,1)*1.5, VT(0, 1.365, 0)) | |
924 | ||
925 | local Part = CreatePart(3, Head, "Neon", 0,0, "Pearl", "Eye", VT(0.2,0.2,0.2),false) | |
926 | Part.Color = C3(1,1,1) | |
927 | CreateWeldOrSnapOrMotor("Weld", Part, Head, Part, CF(0.35, 0.1, -0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
928 | MakeForm(Part,"Ball") | |
929 | ||
930 | local A = nil | |
931 | local B = nil | |
932 | ||
933 | local HandlePart = CreatePart(3, Weapon, "Wood", 0,0, "Really black", "Handle", VT(0.2,1.5,0.2),false) | |
934 | local HandleWeld = CreateWeldOrSnapOrMotor("Weld", HandlePart, RightArm, HandlePart, CF(0, -1, 0) * ANGLES(RAD(65), RAD(-35), RAD(0)), CF(0, 0, 0)) | |
935 | MakeForm(HandlePart,"Ball") | |
936 | ||
937 | for i = 1, 2 do | |
938 | local Gun = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Gun", VT(0, 0, 0),false) | |
939 | local HandleMesh = CreateMesh("SpecialMesh", Gun, "FileMesh", "430198390", "430198451", VT(0.02,0.02,0.02), VT(0,0, 0)) | |
940 | local Weld = CreateWeldOrSnapOrMotor("Weld", Gun, RightArm, Gun, CF(0, -1.7, -0.2) * ANGLES(RAD(0), RAD(90), RAD(-90)), CF(0, 0, 0)) | |
941 | if A == nil then | |
942 | A = IT("Attachment",Part) | |
943 | A.Position = VT(0,-0.48,0) | |
944 | else | |
945 | B = IT("Attachment",Part) | |
946 | B.Position = VT(0,-0.48,0) | |
947 | end | |
948 | end | |
949 | ||
950 | local BEAM = IT("Beam",Weapon) | |
951 | BEAM.Attachment0 = A | |
952 | BEAM.Attachment1 = B | |
953 | BEAM.FaceCamera = true | |
954 | BEAM.Transparency = NumberSequence.new(0) | |
955 | BEAM.Width0 = 0.02 | |
956 | BEAM.Width1 = 0.02 | |
957 | ||
958 | for _, c in pairs(Weapon:GetChildren()) do | |
959 | if c.ClassName == "Part" then | |
960 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
961 | end | |
962 | end | |
963 | ||
964 | Weapon.Parent = Character | |
965 | ||
966 | Humanoid.Died:connect(function() | |
967 | ATTACK = true | |
968 | end) | |
969 | ||
970 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
971 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
972 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
973 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
974 | ||
975 | - | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Q] Take Aim", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0, "Text 1") |
975 | + | local SKILL1TEXT = CreateLabel(SKILL1FRAME, " [Q] Take Aim", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0, "Text 1") |
976 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[Z] Arrow Shot", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0, "Text 2") | |
977 | - | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[V] Point Blanc", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0, "Text 3") |
977 | + | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[V] Point Blank shot", SKILLTEXTCOLOR, 7, "Antique", 0, 2, 0, "Text 3") |
978 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] Hunter's Mark", C3(1,0,0), 7, "Antique", 0, 2, 0, "Text 4") | |
979 | ||
980 | --//=================================\\ | |
981 | --|| DAMAGE FUNCTIONS | |
982 | --\\=================================// | |
983 | ||
984 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
985 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
986 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
987 | local BODYGYRO = IT("BodyGyro", STATPART) | |
988 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
989 | BODYPOSITION.P = 2000 | |
990 | BODYPOSITION.D = 100 | |
991 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
992 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
993 | game:GetService("Debris"):AddItem(STATPART ,5) | |
994 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
995 | BILLBOARDGUI.Adornee = STATPART | |
996 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
997 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
998 | BILLBOARDGUI.AlwaysOnTop = false | |
999 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
1000 | TEXTLABEL.BackgroundTransparency = 1 | |
1001 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
1002 | TEXTLABEL.Text = TEXT | |
1003 | TEXTLABEL.Font = "SciFi" | |
1004 | TEXTLABEL.FontSize="Size42" | |
1005 | TEXTLABEL.TextColor3 = COLOR | |
1006 | TEXTLABEL.TextStrokeTransparency = 1 | |
1007 | TEXTLABEL.TextScaled = true | |
1008 | TEXTLABEL.TextWrapped = true | |
1009 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
1010 | if LABELTYPE == "Normal" then | |
1011 | for i = 1, 30 do | |
1012 | Swait() | |
1013 | STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0) | |
1014 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1015 | end | |
1016 | elseif LABELTYPE == "Debuff" then | |
1017 | for i = 1, 30 do | |
1018 | Swait() | |
1019 | STATPART.Position = STATPART.Position - VT(0, i/10 ,0) | |
1020 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1021 | end | |
1022 | elseif LABELTYPE == "Shock" then | |
1023 | local ORIGIN = STATPART.Position | |
1024 | for i = 1, 30 do | |
1025 | Swait() | |
1026 | STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2)) | |
1027 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30) | |
1028 | end | |
1029 | end | |
1030 | THEPART.Parent = nil | |
1031 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
1032 | end | |
1033 | ||
1034 | --//=================================\\ | |
1035 | --|| DAMAGING | |
1036 | --\\=================================// | |
1037 | ||
1038 | ||
1039 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping,DoesWarp,Instakill,HasChain) | |
1040 | local dmg = math.random(min,max) | |
1041 | for i,v in ipairs(workspace:GetChildren()) do | |
1042 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
1043 | local body = v:GetChildren() | |
1044 | for part = 1, #body do | |
1045 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1046 | if(body[part].Position - position).Magnitude < radius then | |
1047 | if v.ClassName == "Model" then | |
1048 | if v:FindFirstChildOfClass("Humanoid") then | |
1049 | local HUMAN = v:FindFirstChildOfClass("Humanoid") | |
1050 | if HUMAN.Health ~= 0 then | |
1051 | if HasChain == true then | |
1052 | local defence = Instance.new("BoolValue",v) | |
1053 | defence.Name = ("HitBy"..Player.Name) | |
1054 | game:GetService("Debris"):AddItem(defence, 1) | |
1055 | coroutine.resume(coroutine.create(function() | |
1056 | local TORSO = v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
1057 | if TORSO then | |
1058 | --print("Found "..v.Name.."'s Torso") | |
1059 | local PART = IT("Part",Effects) | |
1060 | PART.Anchored = true | |
1061 | PART.CanCollide = false | |
1062 | PART.Transparency = 1 | |
1063 | PART.CFrame = CF(position) | |
1064 | Debris:AddItem(PART,15) | |
1065 | local A = IT("Attachment",PART) | |
1066 | --TORSO.Anchored = true | |
1067 | local Front = CreatePart(3, Effects, "Neon", 1, 1, "Really black", "Chain head", VT(1,1,1),false) | |
1068 | --print("Chain start") | |
1069 | Front.CFrame = CF(position) | |
1070 | Front.CanCollide = true | |
1071 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], Front, 10, 1) | |
1072 | local B = IT("Attachment",Front) | |
1073 | local ChainLink = IT("Beam",Effects) | |
1074 | ChainLink.Texture = "rbxassetid://1262544869" | |
1075 | ChainLink.TextureSpeed = 0 | |
1076 | ChainLink.FaceCamera = true | |
1077 | ChainLink.Width0 = 3 | |
1078 | ChainLink.Attachment0 = A | |
1079 | ChainLink.Attachment1 = B | |
1080 | ChainLink.TextureMode = "Static" | |
1081 | local bv = Instance.new("BodyVelocity") | |
1082 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1083 | bv.velocity = CF(Front.Position,TORSO.Position).lookVector*500 | |
1084 | bv.Parent = Front | |
1085 | bv.Name = "MOVE" | |
1086 | --print("Chain made") | |
1087 | coroutine.resume(coroutine.create(function() | |
1088 | Swait(30) | |
1089 | bv:remove() | |
1090 | local POS = Front.Position | |
1091 | Front.CanCollide = false | |
1092 | local onefourth = POS:Lerp(position, 0.25) + Vector3.new(0,0,0) | |
1093 | local threefourths = POS:Lerp(position, 0.75) + Vector3.new(0,0,0) | |
1094 | for i = 0, 1, 0.07 do | |
1095 | Swait() | |
1096 | Front.CFrame = CFrame.new(newBezier(POS, onefourth, threefourths, position, i)) | |
1097 | end | |
1098 | Front:remove() | |
1099 | ChainLink:remove() | |
1100 | end)) | |
1101 | local harm = Front.Touched:Connect(function(hit) | |
1102 | impale(Front,hit) | |
1103 | end) | |
1104 | end | |
1105 | end)) | |
1106 | elseif DoesWarp == true then | |
1107 | local defence = Instance.new("BoolValue",v) | |
1108 | defence.Name = ("HitBy"..Player.Name) | |
1109 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1110 | local TORSO = v:FindFirstChild("HumanoidRootPart") or v:FindFirstChild("Torso") or v:FindFirstChild("UpperTorso") | |
1111 | Warp(TORSO,Instakill) | |
1112 | else | |
1113 | if CanBeDodgedByJumping == true then | |
1114 | if body[part].Position.Y < position.Y+5 then | |
1115 | if math.random(1,100) < critrate+1 then | |
1116 | HUMAN.Health = HUMAN.Health - dmg*critmultiplier | |
1117 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1118 | else | |
1119 | HUMAN.Health = HUMAN.Health - dmg | |
1120 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1121 | end | |
1122 | local defence = Instance.new("BoolValue",v) | |
1123 | defence.Name = ("HitBy"..Player.Name) | |
1124 | game:GetService("Debris"):AddItem(defence, 0.01) | |
1125 | end | |
1126 | else | |
1127 | if beserk == true then | |
1128 | HUMAN.Health = 0 | |
1129 | end | |
1130 | if math.random(1,100) < critrate+1 then | |
1131 | HUMAN.Health = HUMAN.Health - dmg*critmultiplier | |
1132 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
1133 | else | |
1134 | HUMAN.Health = HUMAN.Health - dmg | |
1135 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
1136 | end | |
1137 | local defence = Instance.new("BoolValue",v) | |
1138 | defence.Name = ("HitBy"..Player.Name) | |
1139 | game:GetService("Debris"):AddItem(defence, 0.01) | |
1140 | end | |
1141 | end | |
1142 | end | |
1143 | end | |
1144 | end | |
1145 | --body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1146 | end | |
1147 | end | |
1148 | end | |
1149 | if v.ClassName == "Part" then | |
1150 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
1151 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1152 | end | |
1153 | end | |
1154 | end | |
1155 | end | |
1156 | end | |
1157 | function Warp(Victim,WarpToVoid) | |
1158 | print("Warping "..Victim.Name.."...") | |
1159 | Victim.Anchored = true | |
1160 | coroutine.resume(coroutine.create(function() | |
1161 | local GUI,GUI2 = CreateGUICircle(Victim) | |
1162 | CreateSound("1208650519", Victim, 10, 1) | |
1163 | for i = 1, 100 do | |
1164 | Swait() | |
1165 | GUI.Size = GUI.Size + UDim2.new(0.2,0,0.2,0) | |
1166 | GUI2.Rotation = GUI2.Rotation + 4 | |
1167 | end | |
1168 | CastWarpOutlines(Victim.Parent) | |
1169 | if WarpToVoid == false then | |
1170 | Victim.CFrame = Victim.CFrame * CF(MRANDOM(-65,65),0,MRANDOM(-65,65)) | |
1171 | CreateSound("1177785010", Victim, 10, 1) | |
1172 | local HUMANOID = Victim.Parent:FindFirstChildOfClass("Humanoid") | |
1173 | if HUMANOID ~= nil then | |
1174 | local dmg = MRANDOM(75,95) | |
1175 | HUMANOID.Health = HUMANOID.Health - dmg | |
1176 | StatLabel("Normal", Victim.CFrame * CF(0, 0 + (Victim.Size.z - 1), 0), "WARPED/"..dmg, C3(0.3, 0, 0.3)) | |
1177 | end | |
1178 | for i = 1, 50 do | |
1179 | Swait() | |
1180 | GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0) | |
1181 | GUI2.Rotation = GUI2.Rotation - 8 | |
1182 | end | |
1183 | Victim.Anchored = false | |
1184 | GUI:remove() | |
1185 | elseif WarpToVoid == true then | |
1186 | CastWarpOutlines(Victim.Parent) | |
1187 | q = Victim.Parent:GetChildren() | |
1188 | for i = 1, #q do | |
1189 | if q[i] ~= Victim then | |
1190 | q[i]:remove() | |
1191 | end | |
1192 | end | |
1193 | CreateSound("1177785010", Victim, 10, 1) | |
1194 | Victim.Transparency = 1 | |
1195 | for i = 1, 50 do | |
1196 | Swait() | |
1197 | GUI.Size = GUI.Size - UDim2.new(0.4,0,0.4,0) | |
1198 | GUI2.Rotation = GUI2.Rotation - 8 | |
1199 | end | |
1200 | Victim.Parent:remove() | |
1201 | end | |
1202 | end)) | |
1203 | end | |
1204 | ||
1205 | function killnearest(position,range,maxstrength) | |
1206 | for i,v in ipairs(workspace:GetChildren()) do | |
1207 | local body = v:GetChildren() | |
1208 | for part = 1, #body do | |
1209 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1210 | if(body[part].Position - position).Magnitude < range then | |
1211 | if v.ClassName == "Model" then | |
1212 | v:BreakJoints() | |
1213 | end | |
1214 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
1215 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1216 | end | |
1217 | end | |
1218 | end | |
1219 | if v.ClassName == "Part" then | |
1220 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1221 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
1222 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1223 | end | |
1224 | end | |
1225 | end | |
1226 | end | |
1227 | ||
1228 | local EyeSizes={ | |
1229 | NumberSequenceKeypoint.new(0,1,0), | |
1230 | NumberSequenceKeypoint.new(1,0,0) | |
1231 | } | |
1232 | local EyeTrans={ | |
1233 | NumberSequenceKeypoint.new(0,0.8,0), | |
1234 | NumberSequenceKeypoint.new(1,1,0) | |
1235 | } | |
1236 | local PE=Instance.new("ParticleEmitter",art) | |
1237 | PE.LightEmission=.8 | |
1238 | PE.Color = ColorSequence.new(BRICKC("Really red").Color) | |
1239 | PE.Size=NumberSequence.new(EyeSizes) | |
1240 | PE.Transparency=NumberSequence.new(EyeTrans) | |
1241 | PE.Lifetime=NumberRange.new(0.35,1.5) | |
1242 | PE.Rotation=NumberRange.new(0,360) | |
1243 | PE.Rate=999 | |
1244 | PE.VelocitySpread = 10000 | |
1245 | PE.Acceleration = Vector3.new(0,0,0) | |
1246 | PE.Drag = 5 | |
1247 | PE.Speed = NumberRange.new(0,0,0) | |
1248 | PE.Texture="http://www.roblox.com/asset/?id=1351966707" | |
1249 | PE.ZOffset = -1.5 | |
1250 | PE.Name = "PE" | |
1251 | PE.Enabled = true | |
1252 | ||
1253 | function particles(art) | |
1254 | local PARTICLES = PE:Clone() | |
1255 | PARTICLES.Parent = art | |
1256 | end | |
1257 | ||
1258 | function Ragdoll(Character2,CharTorso) | |
1259 | local svch = Character2 | |
1260 | Character2:BreakJoints() | |
1261 | local hum = Character2:findFirstChild("Humanoid") | |
1262 | local q = Character2:GetChildren() | |
1263 | local CLONE = IT("Model",Effects) | |
1264 | for i = 1,#q do | |
1265 | if q[i].ClassName ~= "Humanoid" and q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Gear" then | |
1266 | q[i].Parent = CLONE | |
1267 | else | |
1268 | if q[i].ClassName ~= "Humanoid" then | |
1269 | q[i]:remove() | |
1270 | end | |
1271 | end | |
1272 | end | |
1273 | local chrclone = CLONE | |
1274 | local ch = chrclone:GetChildren() | |
1275 | local i | |
1276 | for i = 1,#ch do | |
1277 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then | |
1278 | ch[i]:remove() | |
1279 | end | |
1280 | end | |
1281 | local function Scan(ch) | |
1282 | local e | |
1283 | for e = 1,#ch do | |
1284 | Scan(ch[e]:GetChildren()) | |
1285 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
1286 | ch[e]:remove() | |
1287 | end | |
1288 | end | |
1289 | end | |
1290 | Character2:remove() | |
1291 | local NEWHUM = IT("Humanoid") | |
1292 | NEWHUM.Name = "Corpse" | |
1293 | NEWHUM.Health = 0 | |
1294 | NEWHUM.MaxHealth = 0 | |
1295 | NEWHUM.PlatformStand = true | |
1296 | NEWHUM.Parent = CLONE | |
1297 | NEWHUM.DisplayDistanceType = "None" | |
1298 | Scan(chrclone:GetChildren()) | |
1299 | ||
1300 | local ch = Character2:GetChildren() | |
1301 | local i | |
1302 | for i = 1,#ch do | |
1303 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
1304 | ch[i]:remove() | |
1305 | end | |
1306 | end | |
1307 | ||
1308 | local ch = Character2:GetChildren() | |
1309 | local i | |
1310 | for i = 1,#ch do | |
1311 | if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
1312 | ch[i]:remove() | |
1313 | end | |
1314 | end | |
1315 | Character2 = chrclone | |
1316 | local Torso2 = Character2.Torso | |
1317 | local movevector = Vector3.new() | |
1318 | ||
1319 | if Torso2 then | |
1320 | movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector | |
1321 | local Head = Character2:FindFirstChild("Head") | |
1322 | if Head then | |
1323 | local Neck = Instance.new("Weld") | |
1324 | Neck.Name = "Neck" | |
1325 | Neck.Part0 = Torso2 | |
1326 | Neck.Part1 = Head | |
1327 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
1328 | Neck.C1 = CFrame.new() | |
1329 | Neck.Parent = Torso2 | |
1330 | CreateSound("337800380", Head, 5, (math.random(8,18)/10)) | |
1331 | ||
1332 | end | |
1333 | local Limb = Character2:FindFirstChild("Right Arm") | |
1334 | if Limb then | |
1335 | ||
1336 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
1337 | local Joint = Instance.new("Glue") | |
1338 | Joint.Name = "RightShoulder" | |
1339 | Joint.Part0 = Torso2 | |
1340 | Joint.Part1 = Limb | |
1341 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1342 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1343 | Joint.Parent = Torso2 | |
1344 | ||
1345 | local B = Instance.new("Part") | |
1346 | B.TopSurface = 0 | |
1347 | B.BottomSurface = 0 | |
1348 | B.formFactor = "Symmetric" | |
1349 | B.Size = Vector3.new(1, 1, 1) | |
1350 | B.Transparency = 1 | |
1351 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1352 | B.Parent = Character2 | |
1353 | local W = Instance.new("Weld") | |
1354 | W.Part0 = Limb | |
1355 | W.Part1 = B | |
1356 | W.C0 = CFrame.new(0, -0.5, 0) | |
1357 | W.Parent = Limb | |
1358 | ||
1359 | end | |
1360 | local Limb = Character2:FindFirstChild("Left Arm") | |
1361 | if Limb then | |
1362 | ||
1363 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
1364 | local Joint = Instance.new("Glue") | |
1365 | Joint.Name = "LeftShoulder" | |
1366 | Joint.Part0 = Torso2 | |
1367 | Joint.Part1 = Limb | |
1368 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1369 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1370 | Joint.Parent = Torso2 | |
1371 | ||
1372 | local B = Instance.new("Part") | |
1373 | B.TopSurface = 0 | |
1374 | B.BottomSurface = 0 | |
1375 | B.formFactor = "Symmetric" | |
1376 | B.Size = Vector3.new(1, 1, 1) | |
1377 | B.Transparency = 1 | |
1378 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1379 | B.Parent = Character2 | |
1380 | local W = Instance.new("Weld") | |
1381 | W.Part0 = Limb | |
1382 | W.Part1 = B | |
1383 | W.C0 = CFrame.new(0, -0.5, 0) | |
1384 | W.Parent = Limb | |
1385 | ||
1386 | end | |
1387 | local Limb = Character2:FindFirstChild("Right Leg") | |
1388 | if Limb then | |
1389 | ||
1390 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
1391 | local Joint = Instance.new("Glue") | |
1392 | Joint.Name = "RightHip" | |
1393 | Joint.Part0 = Torso2 | |
1394 | Joint.Part1 = Limb | |
1395 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1396 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1397 | Joint.Parent = Torso2 | |
1398 | ||
1399 | local B = Instance.new("Part") | |
1400 | B.TopSurface = 0 | |
1401 | B.BottomSurface = 0 | |
1402 | B.formFactor = "Symmetric" | |
1403 | B.Size = Vector3.new(1, 1, 1) | |
1404 | B.Transparency = 1 | |
1405 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1406 | B.Parent = Character2 | |
1407 | local W = Instance.new("Weld") | |
1408 | W.Part0 = Limb | |
1409 | W.Part1 = B | |
1410 | W.C0 = CFrame.new(0, -0.5, 0) | |
1411 | W.Parent = Limb | |
1412 | ||
1413 | end | |
1414 | local Limb = Character2:FindFirstChild("Left Leg") | |
1415 | if Limb then | |
1416 | ||
1417 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
1418 | local Joint = Instance.new("Glue") | |
1419 | Joint.Name = "LeftHip" | |
1420 | Joint.Part0 = Torso2 | |
1421 | Joint.Part1 = Limb | |
1422 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1423 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1424 | Joint.Parent = Torso2 | |
1425 | ||
1426 | local B = Instance.new("Part") | |
1427 | B.TopSurface = 0 | |
1428 | B.BottomSurface = 0 | |
1429 | B.formFactor = "Symmetric" | |
1430 | B.Size = Vector3.new(1, 1, 1) | |
1431 | B.Transparency = 1 | |
1432 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1433 | B.Parent = Character2 | |
1434 | local W = Instance.new("Weld") | |
1435 | W.Part0 = Limb | |
1436 | W.Part1 = B | |
1437 | W.C0 = CFrame.new(0, -0.5, 0) | |
1438 | W.Parent = Limb | |
1439 | ||
1440 | end | |
1441 | --[ | |
1442 | local Bar = Instance.new("Part") | |
1443 | Bar.TopSurface = 0 | |
1444 | Bar.BottomSurface = 0 | |
1445 | Bar.formFactor = "Symmetric" | |
1446 | Bar.Size = Vector3.new(1, 1, 1) | |
1447 | Bar.Transparency = 1 | |
1448 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
1449 | Bar.Parent = Character2 | |
1450 | local Weld = Instance.new("Weld") | |
1451 | Weld.Part0 = Torso2 | |
1452 | Weld.Part1 = Bar | |
1453 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
1454 | Weld.Parent = Torso2 | |
1455 | --]] | |
1456 | end | |
1457 | Character2.Parent = Weapon | |
1458 | if movevector ~= Vector3.new() then | |
1459 | for i = 1,10 do | |
1460 | Torso2.Velocity = movevector * 150 | |
1461 | end | |
1462 | end | |
1463 | Character2.Name = "Corpse" | |
1464 | ||
1465 | return Character2,Torso2 | |
1466 | end | |
1467 | ||
1468 | function KillChildren(v) | |
1469 | v:BreakJoints() | |
1470 | for _, c in pairs(v:GetChildren()) do | |
1471 | if c.ClassName == "Part" or c.ClassName == "MesPart" then | |
1472 | if c.Transparency < 1 then | |
1473 | if c:FindFirstChildOfClass("Decal") then | |
1474 | c:FindFirstChildOfClass("Decal"):remove() | |
1475 | end | |
1476 | particles(c) | |
1477 | c.PE.Enabled = true | |
1478 | c.Parent = Effects | |
1479 | c.CanCollide = false | |
1480 | c.Material = "Neon" | |
1481 | c.Color = C3(1,0,0) | |
1482 | c.Transparency = 0.5 | |
1483 | local grav = Instance.new("BodyPosition",c) | |
1484 | grav.P = 20000 | |
1485 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1486 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
1487 | grav.Name = "GravityForce" | |
1488 | coroutine.resume(coroutine.create(function() | |
1489 | for i = 1, 50 do | |
1490 | Swait() | |
1491 | c.Transparency = c.Transparency + 0.01 | |
1492 | end | |
1493 | c.PE.Enabled = false | |
1494 | Debris:AddItem(c,2) | |
1495 | end)) | |
1496 | end | |
1497 | end | |
1498 | end | |
1499 | end | |
1500 | ||
1501 | --//=================================\\ | |
1502 | --|| ATTACK FUNCTIONS AND STUFF | |
1503 | --\\=================================// | |
1504 | ||
1505 | function TakeAim() | |
1506 | if Mouse.Target then | |
1507 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1508 | if Mouse.Target.Parent:FindFirstChildOfClass("Humanoid").Health ~= 0 then | |
1509 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1510 | TARGET = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1511 | local TORS = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
1512 | if TORS then | |
1513 | local DIRECTION = CF(Torso.Position,TORS.Position).lookVector | |
1514 | local DISTANCE = (Torso.Position - TORS.Position).Magnitude | |
1515 | local CHECKFORTARGET = Raycast(Torso.Position, DIRECTION, DISTANCE+5, Character) | |
1516 | if CHECKFORTARGET ~= nil then | |
1517 | if CHECKFORTARGET.Parent == TARGET.Parent or CHECKFORTARGET.Parent.Parent == TARGET.Parent then | |
1518 | ISEEYOU.Parent = Torso | |
1519 | ISEEYOU:Play() | |
1520 | print("Found Target") | |
1521 | print(TARGET.Parent) | |
1522 | repeat | |
1523 | Swait() | |
1524 | if TARGET == HUM and TARGET ~= nil then | |
1525 | local TORS = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
1526 | if TORS then | |
1527 | if TARGET.Health ~= 0 then | |
1528 | local DIRECTION = CF(Torso.Position,TORS.Position).lookVector | |
1529 | local DISTANCE = (Torso.Position - TORS.Position).Magnitude | |
1530 | local CHECKFORTARGET = Raycast(Torso.Position, DIRECTION, DISTANCE+5, Character) | |
1531 | if CHECKFORTARGET ~= nil then | |
1532 | if CHECKFORTARGET.Parent ~= TARGET.Parent and CHECKFORTARGET.Parent.Parent ~= TARGET.Parent then | |
1533 | TARGET = nil | |
1534 | end | |
1535 | else | |
1536 | TARGET = nil | |
1537 | end | |
1538 | else | |
1539 | TARGET = nil | |
1540 | end | |
1541 | else | |
1542 | TARGET = nil | |
1543 | end | |
1544 | end | |
1545 | until TARGET ~= HUM or TARGET == nil | |
1546 | else | |
1547 | TARGET = nil | |
1548 | end | |
1549 | end | |
1550 | end | |
1551 | end | |
1552 | end | |
1553 | end | |
1554 | end | |
1555 | ||
1556 | ||
1557 | ||
1558 | function Snap() | |
1559 | ATTACK = true | |
1560 | Rooted = false | |
1561 | local TORS = nil | |
1562 | local WELD = nil | |
1563 | local HIT1 = CLAW1.Touched:Connect(function(hit) | |
1564 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent.Parent ~= Effects then | |
1565 | TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso") | |
1566 | if TORS ~= nil then | |
1567 | UNANCHOR = false | |
1568 | Rooted = true | |
1569 | RootPart.Anchored = true | |
1570 | WELD = CreateWeldOrSnapOrMotor("Weld", TORS, RightArm, TORS, CF(0,-2.5,-0.5) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1571 | end | |
1572 | end | |
1573 | end) | |
1574 | for i=1, 45 do | |
1575 | Swait() | |
1576 | if TORS ~= nil then | |
1577 | break | |
1578 | end | |
1579 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1580 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1581 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed) | |
1582 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1583 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
1584 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
1585 | end | |
1586 | HIT1:disconnect() | |
1587 | if TORS ~= nil then | |
1588 | local CLONE = IT("Model",Weapon) | |
1589 | CLONE.Name = "Corpse" | |
1590 | for i=0, 2, 0.1 / Animation_Speed do | |
1591 | Swait() | |
1592 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1593 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1594 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1595 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*2, 0.5*2, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1596 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
1597 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
1598 | end | |
1599 | for i=0, 2, 0.1 / Animation_Speed do | |
1600 | Swait() | |
1601 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1602 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
1603 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1604 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.5) * ANGLES(RAD(80), RAD(0), RAD(25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1605 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
1606 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
1607 | end | |
1608 | for i=0, 3, 0.1 / Animation_Speed do | |
1609 | Swait() | |
1610 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1611 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(10 - 2.5 * SIN(SINE / 12)), RAD(15), RAD(0)), 0.15 / Animation_Speed) | |
1612 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-35)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1613 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(70), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1614 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
1615 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
1616 | end | |
1617 | local HITPLAYERSOUNDS = {"356551938","264486467"} | |
1618 | local DummyHead = nil | |
1619 | local q = TORS.Parent:GetChildren() | |
1620 | for i = 1,#q do | |
1621 | if q[i].ClassName ~= "LocalScript" and q[i].ClassName ~= "Script" and q[i].ClassName ~= "Accessory" and q[i].ClassName ~= "Hat" and q[i].ClassName ~= "Gear" then | |
1622 | q[i].Parent = CLONE | |
1623 | if q[i].ClassName == "Humanoid" then | |
1624 | q[i].PlatformStand = true | |
1625 | end | |
1626 | if q[i].Name == "Head" then | |
1627 | DummyHead = CLONE.Head:Clone() | |
1628 | q[i]:ClearAllChildren() | |
1629 | q[i].Transparency = 1 | |
1630 | end | |
1631 | else | |
1632 | q[i]:remove() | |
1633 | end | |
1634 | end | |
1635 | local TORS2 = CLONE:FindFirstChild("Torso") or CLONE:FindFirstChild("UpperTorso") | |
1636 | DummyHead.Parent = Effects | |
1637 | local WELD1 = CreateWeldOrSnapOrMotor("Weld", DummyHead, LeftArm, DummyHead, CF(0,-2.5,0) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1638 | local WELD2 = CreateWeldOrSnapOrMotor("Weld", TORS2, RightArm, TORS2, CF(0,-2.5,-0.5) * ANGLES(RAD(-90), RAD(90), RAD(0)), CF(0, 0, 0)) | |
1639 | local HITPLAYERSOUNDS2 = {"356551938","264486467"} | |
1640 | CreateSound(HITPLAYERSOUNDS2[MRANDOM(1, #HITPLAYERSOUNDS2)], TORS2, 1, (math.random(8,12)/10)) | |
1641 | getbloody(DummyHead,5) | |
1642 | for i=0, 3, 0.1 / Animation_Speed do | |
1643 | Swait() | |
1644 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1645 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(20 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), 0.15 / Animation_Speed) | |
1646 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1647 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(120), RAD(0), RAD(20)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1648 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
1649 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
1650 | end | |
1651 | for i=0, 1, 0.1 / Animation_Speed do | |
1652 | Swait() | |
1653 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1654 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(20 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1655 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1656 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(35), RAD(0), RAD(-75)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1657 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
1658 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
1659 | end | |
1660 | WELD1:remove() | |
1661 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1662 | Swait() | |
1663 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1664 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(20 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1665 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(55), RAD(25), RAD(-25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1666 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(35), RAD(0), RAD(-75)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1667 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
1668 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
1669 | end | |
1670 | local GROWLS = {"368795088","368795352","368795492","368795580"} | |
1671 | CreateSound(GROWLS[MRANDOM(1, #GROWLS)], Head, 4, (math.random(15,20)/10)) | |
1672 | repeat | |
1673 | Swait() | |
1674 | turnto(Mouse.Hit.p) | |
1675 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.15 / Animation_Speed) | |
1676 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1677 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, -1.5) * ANGLES(RAD(170), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1678 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1679 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 0.15 / Animation_Speed) | |
1680 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 0.15 / Animation_Speed) | |
1681 | until HOLD == true | |
1682 | WELD2:remove() | |
1683 | local bv = Instance.new("BodyVelocity") | |
1684 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1685 | bv.velocity = CF(TORS2.Position,Mouse.Hit.p).lookVector*300 | |
1686 | bv.Parent = TORS2 | |
1687 | bv.Name = "MOVE" | |
1688 | coroutine.resume(coroutine.create(function() | |
1689 | local HIT1 = TORS2.Touched:Connect(function(hit) | |
1690 | dealdamage(hit,25,65,3,false,5,2) | |
1691 | end) | |
1692 | Swait(2) | |
1693 | HIT1:disconnect() | |
1694 | end)) | |
1695 | Debris:AddItem(bv,0.2) | |
1696 | TORS2.Velocity = CF(TORS2.Position,Mouse.Hit.p).lookVector*300 | |
1697 | for i=0, 1, 0.1 / Animation_Speed do | |
1698 | Swait() | |
1699 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5*2 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(15)), 1) | |
1700 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1*2) - 1)) * ANGLES(RAD(-10 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1) | |
1701 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1*2, 0.35*2, 0) * ANGLES(RAD(25), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1) | |
1702 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.35*2, 0.5*2, -0.6) * ANGLES(RAD(0), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1) | |
1703 | RightHip.C0 = Clerp(RightHip.C0, CF(1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(-15), RAD(-15)), 1) | |
1704 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1.1*2, -0.5*2 - 0.05 * COS(SINE / 12), -0.4*2) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(15), RAD(-15)), 1) | |
1705 | end | |
1706 | end | |
1707 | UNANCHOR = true | |
1708 | ATTACK = false | |
1709 | Rooted = false | |
1710 | end | |
1711 | ||
1712 | ||
1713 | ||
1714 | function Supernova() | |
1715 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character) | |
1716 | if HITFLOOR ~= nil then | |
1717 | local HITBODIES = {} | |
1718 | ATTACK = true | |
1719 | Rooted = true | |
1720 | local ABSOLUTE = CreatePart(3, Effects, "Neon", 0, 1, "CGA brown", "Star", VT(0,0,0)) | |
1721 | MakeForm(ABSOLUTE,"Ball") | |
1722 | CreateSound("429459101", ABSOLUTE, 10, 1) | |
1723 | for i=0, 4, 0.1 / Animation_Speed do | |
1724 | Swait() | |
1725 | ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2,0.2,0.2) | |
1726 | ABSOLUTE.CFrame = RootPart.CFrame*CF(0,5+(ABSOLUTE.Size.Y/2),0) | |
1727 | ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01 | |
1728 | local CHARGE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Star", VT(1,1,1)) | |
1729 | MakeForm(CHARGE,"Ball") | |
1730 | CHARGE.Color = C3(1,1,1) | |
1731 | CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15,15),-6,MRANDOM(-15,15)) | |
1732 | FireArc(CHARGE,ABSOLUTE.Position,45,45,true) | |
1733 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1734 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1735 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1736 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1737 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1738 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1739 | end | |
1740 | CreateSound("907330103", Head, 10, 1.2) | |
1741 | for i = 1, 75 do | |
1742 | Swait() | |
1743 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1744 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1745 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1746 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1747 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1748 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1749 | end | |
1750 | coroutine.resume(coroutine.create(function() | |
1751 | for i = 1, 13 do | |
1752 | for e = 1, 8 do | |
1753 | Swait() | |
1754 | MagicSphere(VT(1,1,1),15,CF(ABSOLUTE.Position)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(1,1,1),VT(0,0,0)) | |
1755 | CreateSwirl(ABSOLUTE.Size/2,15,CF(HITPOS),true,15,BRICKC"Slime green".Color,VT(i,0.3,i)*2) | |
1756 | end | |
1757 | for i = 1, 5 do | |
1758 | Slice("Round",0,35,CF(ABSOLUTE.Position)*ANGLES(RAD(MRANDOM(-18,18)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-18,18))),C3(1,1,1),VT(i,0,i)/3) | |
1759 | Slice("Thin",i,55,ABSOLUTE.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),C3(1,0,0),VT(0,0,0)) | |
1760 | end | |
1761 | CreateSwirl(ABSOLUTE.Size/2,25,CF(ABSOLUTE.Position),true,-25,BRICKC"New Yeller".Color,VT(i,i*2,i)) | |
1762 | CreateSwirl(ABSOLUTE.Size/2,55,CF(ABSOLUTE.Position),true,25,C3(0.05,0.05,0.15),VT(i,i*2,i)) | |
1763 | CreateSound("168586621", ABSOLUTE, 4, 0.8) | |
1764 | CreateSound("201858144", ABSOLUTE, 10, 0.8) | |
1765 | killnearest(ABSOLUTE.Position,i*18,i) | |
1766 | ABSOLUTE.Size = ABSOLUTE.Size*0.9 | |
1767 | MagicSphere(ABSOLUTE.Size,25,CF(ABSOLUTE.Position),BRICKC"New Yeller".Color,VT(i,i,i)/1.1) | |
1768 | MagicSphere(ABSOLUTE.Size,45,CF(ABSOLUTE.Position),C3(0.05,0.05,0.15),VT(i,i,i)) | |
1769 | end | |
1770 | ABSOLUTE.Transparency = 1 | |
1771 | Debris:AddItem(ABSOLUTE,10) | |
1772 | end)) | |
1773 | ATTACK = false | |
1774 | Rooted = false | |
1775 | end | |
1776 | end | |
1777 | ||
1778 | ||
1779 | function VortexBarrier() | |
1780 | ATTACK = true | |
1781 | Rooted = true | |
1782 | chatfunc("PRISON...",15) | |
1783 | for i=0, 2, 0.1 / Animation_Speed do | |
1784 | Swait() | |
1785 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1786 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1787 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1788 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1789 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1790 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1791 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1792 | end | |
1793 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1794 | Swait() | |
1795 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1796 | 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.5 / Animation_Speed) | |
1797 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.27,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1798 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1799 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1800 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 0.5 / Animation_Speed) | |
1801 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.5 / Animation_Speed) | |
1802 | end | |
1803 | chatfunc("BARRIER!!!",2) | |
1804 | CreateSound("1208650519", Effects, 10, 1) | |
1805 | local GUI,GUI2 = CreateGUICircle(Torso) | |
1806 | local GUI3,GUI4 = CreateGUICircle(Torso) | |
1807 | for i = 1, 200 do | |
1808 | Swait() | |
1809 | local FRAME = CF(Torso.CFrame * CF(MRANDOM(-35,35),MRANDOM(-35,35),MRANDOM(-35,35)).p,Torso.Position) | |
1810 | MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0)) | |
1811 | MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0)) | |
1812 | local FRAME = CF(Torso.CFrame * CF(MRANDOM(-35,35),MRANDOM(-35,35),MRANDOM(-35,35)).p,Torso.Position) | |
1813 | MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0)) | |
1814 | MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0)) | |
1815 | GUI.Size = GUI.Size + UDim2.new(i/60,0,i/60,0) | |
1816 | GUI2.Rotation = GUI2.Rotation + i/10 | |
1817 | GUI3.Size = GUI3.Size + UDim2.new(i/120,0,i/120,0) | |
1818 | GUI4.Rotation = GUI4.Rotation - i/10 | |
1819 | end | |
1820 | AoEDamage(Torso.Position,150,0,0,0,false,0,0,false,true,true) | |
1821 | Swait(25) | |
1822 | for i = 1, 100 do | |
1823 | Swait() | |
1824 | GUI.Size = GUI.Size - UDim2.new(i/15,0,i/15,0) | |
1825 | GUI2.Rotation = GUI2.Rotation - i/5 | |
1826 | GUI3.Size = GUI3.Size - UDim2.new(i/30,0,i/30,0) | |
1827 | GUI4.Rotation = GUI4.Rotation + i/5 | |
1828 | end | |
1829 | GUI:remove() | |
1830 | GUI3:remove() | |
1831 | ATTACK = false | |
1832 | Rooted = false | |
1833 | end | |
1834 | ||
1835 | ||
1836 | ||
1837 | function Star_Cutter() | |
1838 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character) | |
1839 | if HITFLOOR ~= nil then | |
1840 | ATTACK = true | |
1841 | Rooted = true | |
1842 | local GYRO = IT("BodyGyro",RootPart) | |
1843 | GYRO.D = 100 | |
1844 | GYRO.P = 2000 | |
1845 | GYRO.MaxTorque = VT(0,4000000,0) | |
1846 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1847 | CreateSound("429459101", RightArm, 10, 0.8) | |
1848 | for i=0, 3.5, 0.1 / Animation_Speed do | |
1849 | Swait() | |
1850 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1851 | Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-0.01,0,-0.01)) | |
1852 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1853 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1854 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1855 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1856 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1857 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1858 | end | |
1859 | GYRO:remove() | |
1860 | for i=0, 0.15, 0.1 / Animation_Speed do | |
1861 | Swait() | |
1862 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1863 | Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Really black",VT(-0.01,0,-0.01)) | |
1864 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1865 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1866 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1867 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1868 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1869 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1870 | end | |
1871 | local BOMBSPOTS = {} | |
1872 | for i = 1, 25 do | |
1873 | local SPOT = CreatePart(3, Effects, "Neon", 0, 0, "Pearl", "Blade", VT(8,1,8)) | |
1874 | SPOT.Color = SKILLTEXTCOLOR | |
1875 | SPOT.CFrame = RootPart.CFrame*CF((MRANDOM(-15,15)/40)*i,-5,-i*5) | |
1876 | table.insert(BOMBSPOTS,SPOT) | |
1877 | MakeForm(SPOT,"Cyl") | |
1878 | end | |
1879 | for i=0, 0.2, 0.1 / Animation_Speed do | |
1880 | Swait() | |
1881 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1882 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1883 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1884 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1885 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1886 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1887 | end | |
1888 | ATTACK = false | |
1889 | Rooted = false | |
1890 | coroutine.resume(coroutine.create(function() | |
1891 | Swait(3) | |
1892 | for i = 1, #BOMBSPOTS do | |
1893 | if BOMBSPOTS[i] ~= nil then | |
1894 | local E = BOMBSPOTS[i] | |
1895 | coroutine.resume(coroutine.create(function() | |
1896 | local BLADE = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Pearl", "Blade", VT(0,0,0)) | |
1897 | BLADE.Color = SKILLTEXTCOLOR | |
1898 | CreateMesh("SpecialMesh", BLADE, "FileMesh", "93108071", "", VT(0.6,1,0.4)*3, VT(0,0,0)) | |
1899 | CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], BLADE, 4, 0.6) | |
1900 | BLADE.CFrame = E.CFrame*CF(0,-3,0)*ANGLES(RAD(MRANDOM(-15,15)),RAD(90),RAD(MRANDOM(-15,15))) | |
1901 | for i = 1, 10 do | |
1902 | Swait() | |
1903 | MagicSphere(VT(1,1,1)/5,65,CF(E.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),C3(1,1,1),VT(0,0,0)) | |
1904 | killnearest(BLADE.Position,6,80) | |
1905 | BLADE.CFrame = BLADE.CFrame*CF(0,0.3,0) | |
1906 | BLADE.Transparency = BLADE.Transparency - 0.1 | |
1907 | end | |
1908 | Swait(45) | |
1909 | for i = 1, 100 do | |
1910 | Swait() | |
1911 | BLADE.Transparency = BLADE.Transparency + 0.01 | |
1912 | E.Transparency = E.Transparency + 0.01 | |
1913 | end | |
1914 | BLADE:remove() | |
1915 | E:remove() | |
1916 | end)) | |
1917 | end | |
1918 | end | |
1919 | end)) | |
1920 | end | |
1921 | end | |
1922 | ||
1923 | ||
1924 | function VortexBarrier() | |
1925 | ATTACK = true | |
1926 | Rooted = true | |
1927 | chatfunc("PRISON...",15) | |
1928 | for i=0, 2, 0.1 / Animation_Speed do | |
1929 | Swait() | |
1930 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1931 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1932 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.24,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1933 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1934 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, -0.5) * ANGLES(RAD(35), RAD(0), RAD(65)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1935 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1936 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1937 | end | |
1938 | for i=0, 0.5, 0.1 / Animation_Speed do | |
1939 | Swait() | |
1940 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0.2, 0) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
1941 | 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.5 / Animation_Speed) | |
1942 | PupilWeld.C0 = Clerp(PupilWeld.C0, CF(0.13,0.27,-0.58) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1943 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75,0) * ANGLES(RAD(0), RAD(0), RAD(85)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
1944 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
1945 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(-15)), 0.5 / Animation_Speed) | |
1946 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(15)), 0.5 / Animation_Speed) | |
1947 | end | |
1948 | chatfunc("BARRIER!!!",2) | |
1949 | CreateSound("1208650519", Effects, 10, 1) | |
1950 | local GUI,GUI2 = CreateGUICircle(Torso) | |
1951 | local GUI3,GUI4 = CreateGUICircle(Torso) | |
1952 | for i = 1, 200 do | |
1953 | Swait() | |
1954 | local FRAME = CF(Torso.CFrame * CF(MRANDOM(-35,35),MRANDOM(-35,35),MRANDOM(-35,35)).p,Torso.Position) | |
1955 | MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0)) | |
1956 | MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0)) | |
1957 | local FRAME = CF(Torso.CFrame * CF(MRANDOM(-35,35),MRANDOM(-35,35),MRANDOM(-35,35)).p,Torso.Position) | |
1958 | MagicSphere(VT(0,0,5),25,FRAME,"Royal purple",VT(0.2,0.2,0)) | |
1959 | MagicSphere(VT(0,0,4.9),25,FRAME,"Really black",VT(0.18,0.18,0)) | |
1960 | GUI.Size = GUI.Size + UDim2.new(i/60,0,i/60,0) | |
1961 | GUI2.Rotation = GUI2.Rotation + i/10 | |
1962 | GUI3.Size = GUI3.Size + UDim2.new(i/120,0,i/120,0) | |
1963 | GUI4.Rotation = GUI4.Rotation - i/10 | |
1964 | end | |
1965 | AoEDamage(Torso.Position,150,0,0,0,false,0,0,false,true,true) | |
1966 | Swait(25) | |
1967 | for i = 1, 100 do | |
1968 | Swait() | |
1969 | GUI.Size = GUI.Size - UDim2.new(i/15,0,i/15,0) | |
1970 | GUI2.Rotation = GUI2.Rotation - i/5 | |
1971 | GUI3.Size = GUI3.Size - UDim2.new(i/30,0,i/30,0) | |
1972 | GUI4.Rotation = GUI4.Rotation + i/5 | |
1973 | end | |
1974 | GUI:remove() | |
1975 | GUI3:remove() | |
1976 | ATTACK = false | |
1977 | Rooted = false | |
1978 | end | |
1979 | ||
1980 | function CastProperRay(StartPos, Vec, Length, Ignore) | |
1981 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
1982 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
1983 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
1984 | return RayHit, RayPos, RayNormal | |
1985 | end | |
1986 | function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW) | |
1987 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true) | |
1988 | local mesh = IT("SpecialMesh",wave) | |
1989 | mesh.MeshType = "Sphere" | |
1990 | mesh.Scale = SIZE | |
1991 | mesh.Offset = VT(0,0,0) | |
1992 | wave.CFrame = CFRAME | |
1993 | coroutine.resume(coroutine.create(function(PART) | |
1994 | for i = 1, WAIT do | |
1995 | Swait() | |
1996 | mesh.Scale = mesh.Scale + GROW | |
1997 | wave.Transparency = wave.Transparency + (1/WAIT) | |
1998 | if wave.Transparency > 0.99 then | |
1999 | wave:remove() | |
2000 | end | |
2001 | end | |
2002 | end)) | |
2003 | end | |
2004 | ||
2005 | ||
2006 | function Taunt() | |
2007 | ATTACK = true | |
2008 | Rooted = true | |
2009 | local SOUND = CreateSound("134978657", Head, 10, 1) | |
2010 | Swait() | |
2011 | repeat | |
2012 | Swait() | |
2013 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.5, -0.5) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2014 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2015 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2016 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-55), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2017 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2018 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-45+(SOUND.PlaybackLoudness/10)), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2019 | until SOUND.Playing == false | |
2020 | ATTACK = false | |
2021 | Rooted = false | |
2022 | end | |
2023 | ||
2024 | ||
2025 | function Debree(POS,SWAIT) | |
2026 | coroutine.resume(coroutine.create(function() | |
2027 | local HOLDER = IT("Model",Effects) | |
2028 | HOLDER.Name = "Debree" | |
2029 | local HITFLOOR = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
2030 | MagicSphere(VT(15,1,15),SWAIT,CF(POS),"Really black",VT(0,0,0)) | |
2031 | MagicSphere(VT(13,1,13),SWAIT,CF(POS),"Really black",VT(0,0,0)) | |
2032 | MagicSphere(VT(12,1,12),SWAIT,CF(POS),"Really black",VT(0,0,0)) | |
2033 | repeat Swait() until HITFLOOR ~= nil | |
2034 | local O = 0 | |
2035 | for i = 1, 18 do | |
2036 | local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3,3,3)) | |
2037 | Part.CFrame = CF(CF(POS) * CF((45/4.5)-i,0,O).p) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))) | |
2038 | O = O - (45/4)/5+i/4 | |
2039 | coroutine.resume(coroutine.create(function() | |
2040 | Swait(SWAIT) | |
2041 | for i = 1, 60 do | |
2042 | Swait() | |
2043 | local RayHit, Way = CastProperRay(Part.Position,POS,0.1,workspace) | |
2044 | Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))) | |
2045 | end | |
2046 | for i = 1, 50 do | |
2047 | Swait() | |
2048 | Part.Size = Part.Size * 0.9 | |
2049 | end | |
2050 | end)) | |
2051 | end | |
2052 | local O = 0 | |
2053 | for i = 1, 18 do | |
2054 | local Part = CreatePart(3, HOLDER, HITFLOOR.Material, 0, 0, HITFLOOR.BrickColor, "Debree", VT(3,3,3)) | |
2055 | Part.CFrame = CF(CF(POS) * CF((45/4.5)-i,0,O).p) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))) | |
2056 | O = O + (45/4)/5-i/4 | |
2057 | coroutine.resume(coroutine.create(function() | |
2058 | Swait(SWAIT) | |
2059 | for i = 1, 60 do | |
2060 | Swait() | |
2061 | local RayHit, Way = CastProperRay(Part.Position,POS,0.1,workspace) | |
2062 | Part.CFrame = CF(Way) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))) | |
2063 | end | |
2064 | for i = 1, 50 do | |
2065 | Swait() | |
2066 | Part.Size = Part.Size * 0.9 | |
2067 | end | |
2068 | end)) | |
2069 | end | |
2070 | Swait(SWAIT+110) | |
2071 | HOLDER:remove() | |
2072 | end)) | |
2073 | end | |
2074 | ||
2075 | ||
2076 | ||
2077 | ||
2078 | function WarpVector() | |
2079 | ATTACK = false | |
2080 | Rooted = true | |
2081 | ||
2082 | Debree(CF(RootPart.Position)*CF(0,-2.8,0).p,75) | |
2083 | UNANCHOR = false | |
2084 | ||
2085 | RootPart.Anchored = true | |
2086 | for i=0, 2, 0.1 / Animation_Speed do | |
2087 | Swait() | |
2088 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -10 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2089 | 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.5 / Animation_Speed) | |
2090 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2091 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2092 | 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.5 / Animation_Speed) | |
2093 | 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.5 / Animation_Speed) | |
2094 | end | |
2095 | ||
2096 | local POS = RootPart.Position | |
2097 | RootPart.CFrame = CF(CF(Mouse.Hit.p)*CF(0,2.8,0).p,POS) | |
2098 | Debree(CF(RootPart.Position)*CF(0,-2.5,0).p,150) | |
2099 | for i=0, 2, 0.1 / Animation_Speed do | |
2100 | Swait() | |
2101 | 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) | |
2102 | 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.5 / Animation_Speed) | |
2103 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(45), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2104 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2105 | 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.5 / Animation_Speed) | |
2106 | 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.5 / Animation_Speed) | |
2107 | end | |
2108 | UNANCHOR = true | |
2109 | ATTACK = false | |
2110 | Rooted = false | |
2111 | end | |
2112 | ||
2113 | function AttackTemplate() | |
2114 | ATTACK = true | |
2115 | Rooted = false | |
2116 | for i=0, 1, 0.1 / Animation_Speed do | |
2117 | Swait() | |
2118 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(90), RAD(-35), RAD(0)), 0.5 / Animation_Speed) | |
2119 | 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) | |
2120 | 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) | |
2121 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2122 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2123 | 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) | |
2124 | 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) | |
2125 | end | |
2126 | ATTACK = false | |
2127 | Rooted = false | |
2128 | end | |
2129 | ||
2130 | function SpawnTrail(FROM,TO) | |
2131 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Pearl", "Arrow", VT(0,0,0)) | |
2132 | MakeForm(TRAIL,"Ball") | |
2133 | local DIST = (FROM - TO).Magnitude | |
2134 | TRAIL.Size = VT(0.1,DIST,0.1) | |
2135 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
2136 | coroutine.resume(coroutine.create(function() | |
2137 | for i = 1, 5 do | |
2138 | Swait() | |
2139 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
2140 | end | |
2141 | TRAIL:remove() | |
2142 | end)) | |
2143 | end | |
2144 | ||
2145 | function ArrowShot() | |
2146 | ISEEYOU:Stop() | |
2147 | ATTACK = true | |
2148 | Rooted = true | |
2149 | local POINTTARGET = Torso | |
2150 | local HITPOS = nil | |
2151 | VALUE1 = true | |
2152 | local LOOP = 0 | |
2153 | local HIT = false | |
2154 | local DirectAim = nil | |
2155 | local DECOYARROW = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Arrow", VT(0,0,0),false) | |
2156 | CreateMesh("SpecialMesh", DECOYARROW, "FileMesh", "", "", VT(1,1,1), VT(0, 0, 0)) | |
2157 | DECOYARROW.CFrame = HandlePart.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)) | |
2158 | weldBetween(HandlePart,DECOYARROW) | |
2159 | repeat | |
2160 | Swait() | |
2161 | LOOP = LOOP + 1 | |
2162 | if TARGET then | |
2163 | local TORS = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
2164 | if TORS then | |
2165 | if TARGET.Health == 0 or TARGET == nil then | |
2166 | break | |
2167 | end | |
2168 | local DISTANCE = (Torso.Position - TORS.Position).Magnitude | |
2169 | POINTTARGET = Raycast(RootPart.Position,RootPart.CFrame.lookVector, DISTANCE, workspace) | |
2170 | DirectAim,HITPOS = Raycast(RootPart.Position,CF(RootPart.Position,TORS.Position).lookVector, DISTANCE+5, Character) | |
2171 | if POINTTARGET == nil then | |
2172 | POINTTARGET = Torso | |
2173 | end | |
2174 | if DirectAim ~= nil then | |
2175 | if HITPOS.X - TORS.Position.X < 1 and DirectAim.Parent == TARGET.Parent then | |
2176 | HIT = true | |
2177 | elseif HITPOS.Z - TORS.Position.Z < 1 and DirectAim.Parent == TARGET.Parent then | |
2178 | HIT = true | |
2179 | else | |
2180 | HIT = false | |
2181 | end | |
2182 | else | |
2183 | HIT = false | |
2184 | end | |
2185 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(90), RAD(35), RAD(0)), 2 / Animation_Speed) | |
2186 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.15 / Animation_Speed) | |
2187 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 0.15 / Animation_Speed) | |
2188 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(75)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2189 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(0.3, 0.5, -1) * ANGLES(RAD(0), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2190 | 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) | |
2191 | 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) | |
2192 | end | |
2193 | end | |
2194 | if TARGET == nil then | |
2195 | break | |
2196 | end | |
2197 | until (HIT == true and LOOP > 35) or LOOP > 300 | |
2198 | DECOYARROW:remove() | |
2199 | if LOOP <= 300 then | |
2200 | if TARGET then | |
2201 | VALUE1 = false | |
2202 | local TORS = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
2203 | if TORS then | |
2204 | CreateSound("680140087", HandlePart, 10, 1) | |
2205 | if TORS.Name == "Torso" then | |
2206 | local DISTANCE = (Torso.Position - TORS.Position).Magnitude | |
2207 | POINTTARGET,HITPOS = Raycast(HandlePart.Position, CF(HandlePart.Position,TORS.Position).lookVector, DISTANCE+5, Character) | |
2208 | local RAGDOLLBODY,RAGDOLLTORSO = Ragdoll(TARGET.Parent,Torso) | |
2209 | local ARROW = CreatePart(3, RAGDOLLBODY, "SmoothPlastic", 0, 0, "Really black", "Arrow", VT(0,0,0),false) | |
2210 | CreateMesh("SpecialMesh", ARROW, "FileMesh", "", "", VT(1,1,1), VT(0, 0, 0)) | |
2211 | ARROW.CFrame = CF(HITPOS,RAGDOLLTORSO.Position) | |
2212 | weldBetween(RAGDOLLTORSO,ARROW) | |
2213 | Debris:AddItem(RAGDOLLBODY,5) | |
2214 | SpawnTrail(HandlePart.Position,HITPOS) | |
2215 | else | |
2216 | TARGET.Parent:BreakJoints() | |
2217 | print("No i'm not doing R15 ragdolls") | |
2218 | end | |
2219 | TARGET = nil | |
2220 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2221 | Swait() | |
2222 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(90), RAD(35), RAD(0)), 2 / Animation_Speed) | |
2223 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed) | |
2224 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed) | |
2225 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(75)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
2226 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
2227 | 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)), 2 / Animation_Speed) | |
2228 | 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)), 2 / Animation_Speed) | |
2229 | end | |
2230 | end | |
2231 | end | |
2232 | end | |
2233 | VALUE1 = false | |
2234 | ATTACK = false | |
2235 | Rooted = false | |
2236 | end | |
2237 | ||
2238 | function PointBlanc() | |
2239 | local TORS = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
2240 | if TORS then | |
2241 | ATTACK = true | |
2242 | Rooted = false | |
2243 | ISEEYOU:Stop() | |
2244 | local CLONE = Character:Clone() | |
2245 | CLONE.Adds:remove() | |
2246 | CLONE.BGM:remove() | |
2247 | CLONE.Parent = Effects | |
2248 | KillChildren(CLONE) | |
2249 | Debris:AddItem(CLONE,5) | |
2250 | RootPart.CFrame = TORS.CFrame*CF(0,0,5) | |
2251 | CreateSound("419011101", Torso, 10, 1) | |
2252 | ArrowShot() | |
2253 | end | |
2254 | end | |
2255 | ||
2256 | function HuntersMark() | |
2257 | ATTACK = true | |
2258 | Rooted = true | |
2259 | VALUE1 = true | |
2260 | local DECOYARROW = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Arrow", VT(0,0,1),false) | |
2261 | CreateMesh("SpecialMesh", DECOYARROW, "FileMesh", "", "", VT(1,1,1), VT(0, 0, 0)) | |
2262 | DECOYARROW.CFrame = HandlePart.CFrame * ANGLES(RAD(180), RAD(0), RAD(0)) | |
2263 | weldBetween(HandlePart,DECOYARROW) | |
2264 | CreateSound("424777055", Head, 10, 1) | |
2265 | for i=0, 2, 0.1 / Animation_Speed do | |
2266 | Swait() | |
2267 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(90), RAD(15), RAD(0)), 0.5 / Animation_Speed) | |
2268 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.5 / Animation_Speed) | |
2269 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-75), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
2270 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 1, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2271 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.6, 0.65, -0.4) * ANGLES(RAD(170), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2272 | 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.5 / Animation_Speed) | |
2273 | 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.5 / Animation_Speed) | |
2274 | end | |
2275 | CreateSound("419011101", DECOYARROW, 10, 1) | |
2276 | particles(DECOYARROW) | |
2277 | for i=0, 1, 0.1 / Animation_Speed do | |
2278 | Swait() | |
2279 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(90), RAD(15), RAD(0)), 0.5 / Animation_Speed) | |
2280 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.5 / Animation_Speed) | |
2281 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-75), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
2282 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 1, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2283 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.6, 0.65, -0.4) * ANGLES(RAD(170), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2284 | 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.5 / Animation_Speed) | |
2285 | 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.5 / Animation_Speed) | |
2286 | end | |
2287 | local ROOF,ROOFPOS = Raycast(RootPart.Position, CF(RootPart.Position,RootPart.Position+VT(0,1,0)).lookVector, 10000, Character) | |
2288 | DECOYARROW:remove() | |
2289 | VALUE1 = false | |
2290 | SpawnTrail(HandlePart.Position,ROOFPOS) | |
2291 | CreateSound("680140087", HandlePart, 10, 1) | |
2292 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2293 | Swait() | |
2294 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(90), RAD(15), RAD(0)), 0.5 / Animation_Speed) | |
2295 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.5 / Animation_Speed) | |
2296 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-75), RAD(0), RAD(25)), 0.5 / Animation_Speed) | |
2297 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 1, -0.5) * ANGLES(RAD(170), RAD(0), RAD(-15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2298 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.6, 0.25, -0.3) * ANGLES(RAD(160), RAD(0), RAD(25)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2299 | 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.5 / Animation_Speed) | |
2300 | 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.5 / Animation_Speed) | |
2301 | end | |
2302 | if ROOF == nil then | |
2303 | for i=0, 1, 0.1 / Animation_Speed do | |
2304 | Swait() | |
2305 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-25)), 0.15 / Animation_Speed) | |
2306 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(15), RAD(25)), 0.15 / Animation_Speed) | |
2307 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2308 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2309 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.65, 0.35, -0.2) * ANGLES(RAD(45), RAD(0), RAD(-22)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2310 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-0.5, 0.5, -1) * ANGLES(RAD(-65), RAD(0), RAD(90)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2311 | HandleWeld.C0 = Clerp(HandleWeld.C0, CF(0, -1, 0) * ANGLES(RAD(65), RAD(35), RAD(0)), 0.2 / Animation_Speed) | |
2312 | end | |
2313 | for i = 1, 15 do | |
2314 | Swait(5) | |
2315 | local AIMPART,AIMPOS = Raycast(Mouse.Hit.p+VT(0,500,0), CF(Mouse.Hit.p+VT(0,500,0),Mouse.Hit.p).lookVector, 600, Character) | |
2316 | SpawnTrail(Mouse.Hit.p+VT(0,500,0),AIMPOS) | |
2317 | if AIMPART ~= nil then | |
2318 | local ARROW = CreatePart(3, Effects, "SmoothPlastic", 0, 0, "Really black", "Arrow", VT(0,0,0),false) | |
2319 | CreateMesh("SpecialMesh", ARROW, "FileMesh", "95920149", "95920067", VT(1,1,1), VT(0, 0, 0)) | |
2320 | ARROW.CFrame = CF(AIMPOS+VT(0,0.5,0),AIMPOS) | |
2321 | CreateSound("166423137", ARROW, 10, 1) | |
2322 | if AIMPART.Parent:FindFirstChildOfClass("Humanoid") then | |
2323 | if AIMPART.Parent:FindFirstChild("Torso") then | |
2324 | local RAGDOLLBODY = Ragdoll(AIMPART.Parent,ARROW) | |
2325 | ARROW.Parent = RAGDOLLBODY | |
2326 | weldBetween(AIMPART,ARROW) | |
2327 | Debris:AddItem(RAGDOLLBODY) | |
2328 | else | |
2329 | AIMPART.Parent:BreakJoints() | |
2330 | end | |
2331 | elseif AIMPART.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
2332 | if AIMPART.Parent.Parent:FindFirstChild("Torso") then | |
2333 | local RAGDOLLBODY = Ragdoll(AIMPART.Parent.Parent,ARROW) | |
2334 | ARROW.Parent = RAGDOLLBODY | |
2335 | weldBetween(AIMPART,ARROW) | |
2336 | Debris:AddItem(RAGDOLLBODY) | |
2337 | else | |
2338 | AIMPART.Parent:BreakJoints() | |
2339 | end | |
2340 | else | |
2341 | weldBetween(AIMPART,ARROW) | |
2342 | Debris:AddItem(ARROW,5) | |
2343 | end | |
2344 | end | |
2345 | end | |
2346 | end | |
2347 | ATTACK = false | |
2348 | Rooted = false | |
2349 | end | |
2350 | ||
2351 | --//=================================\\ | |
2352 | --|| ASSIGN THINGS TO KEYS | |
2353 | --\\=================================// | |
2354 | ||
2355 | function MouseDown(Mouse) | |
2356 | if ATTACK == false then | |
2357 | end | |
2358 | end | |
2359 | ||
2360 | function MouseUp(Mouse) | |
2361 | HOLD = false | |
2362 | end | |
2363 | ||
2364 | function KeyDown(Key) | |
2365 | KEYHOLD = true | |
2366 | if Key == "q" and ATTACK == false then | |
2367 | TakeAim() | |
2368 | end | |
2369 | ||
2370 | if Key == "t" and ATTACK == false then | |
2371 | Taunt() | |
2372 | end | |
2373 | ||
2374 | ||
2375 | ||
2376 | if Key == "h" and ATTACK == false then | |
2377 | Snap() | |
2378 | end | |
2379 | ||
2380 | ||
2381 | ||
2382 | if Key == "f" and ATTACK == false then | |
2383 | VortexBarrier() | |
2384 | end | |
2385 | ||
2386 | ||
2387 | ||
2388 | if Key == "b" and ATTACK == false then | |
2389 | Star_Cutter() | |
2390 | end | |
2391 | ||
2392 | ||
2393 | ||
2394 | if Key == "g" and ATTACK == false then | |
2395 | Supernova() | |
2396 | end | |
2397 | ||
2398 | ||
2399 | ||
2400 | if Key == "c" and ATTACK == false then | |
2401 | WarpVector() | |
2402 | end | |
2403 | ||
2404 | if TARGET ~= nil then | |
2405 | if Key == "z" and ATTACK == false then | |
2406 | ArrowShot() | |
2407 | end | |
2408 | ||
2409 | if Key == "v" and ATTACK == false then | |
2410 | PointBlanc() | |
2411 | end | |
2412 | end | |
2413 | if Key == "x" and ATTACK == false then | |
2414 | HuntersMark() | |
2415 | end | |
2416 | end | |
2417 | ||
2418 | function KeyUp(Key) | |
2419 | KEYHOLD = false | |
2420 | end | |
2421 | ||
2422 | Mouse.Button1Down:connect(function(NEWKEY) | |
2423 | MouseDown(NEWKEY) | |
2424 | end) | |
2425 | ||
2426 | Mouse.Button1Up:connect(function(NEWKEY) | |
2427 | MouseUp(NEWKEY) | |
2428 | end) | |
2429 | Mouse.Button1Up:connect(function(NEWKEY) | |
2430 | MouseUp(NEWKEY) | |
2431 | end) | |
2432 | Mouse.KeyDown:connect(function(NEWKEY) | |
2433 | KeyDown(NEWKEY) | |
2434 | end) | |
2435 | Mouse.KeyUp:connect(function(NEWKEY) | |
2436 | KeyUp(NEWKEY) | |
2437 | end) | |
2438 | ||
2439 | --//=================================\\ | |
2440 | --\\=================================// | |
2441 | ||
2442 | ||
2443 | function unanchor() | |
2444 | if UNANCHOR == true then | |
2445 | g = Character:GetChildren() | |
2446 | for i = 1, #g do | |
2447 | if g[i].ClassName == "Part" then | |
2448 | g[i].Anchored = false | |
2449 | end | |
2450 | end | |
2451 | end | |
2452 | end | |
2453 | ||
2454 | ||
2455 | --//=================================\\ | |
2456 | --|| WRAP THE WHOLE SCRIPT UP | |
2457 | --\\=================================// | |
2458 | ||
2459 | Humanoid.Changed:connect(function(Jump) | |
2460 | if Jump == "Jump" and (Disable_Jump == true) then | |
2461 | Humanoid.Jump = false | |
2462 | end | |
2463 | end) | |
2464 | ||
2465 | ANIMATE.Parent = nil | |
2466 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
2467 | IDLEANIMATION:Play() | |
2468 | ||
2469 | while true do | |
2470 | Swait() | |
2471 | SINE = SINE + CHANGE | |
2472 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2473 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2474 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
2475 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
2476 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2477 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2478 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2479 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_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) | |
2480 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2481 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2482 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2483 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2484 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2485 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2486 | ----LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2487 | end | |
2488 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2489 | ANIM = "Jump" | |
2490 | if ATTACK == false then | |
2491 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2492 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2493 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2494 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2495 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2496 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2497 | end | |
2498 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2499 | ANIM = "Fall" | |
2500 | if ATTACK == false then | |
2501 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2502 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2503 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2504 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2505 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2506 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2507 | end | |
2508 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2509 | ANIM = "Idle" | |
2510 | if ATTACK == false then | |
2511 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2512 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2513 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2514 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2515 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2516 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2517 | end | |
2518 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2519 | ANIM = "Walk" | |
2520 | WALK = WALK + 1 / Animation_Speed | |
2521 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
2522 | WALK = 0 | |
2523 | if WALKINGANIM == true then | |
2524 | WALKINGANIM = false | |
2525 | elseif WALKINGANIM == false then | |
2526 | WALKINGANIM = true | |
2527 | end | |
2528 | end | |
2529 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2530 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2531 | if ATTACK == false then | |
2532 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0.7 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed*3) | |
2533 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2534 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2535 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2536 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size - 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(70), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2537 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.2 * COS(SINE / 12) * Player_Size, -0.01 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2538 | end | |
2539 | end | |
2540 | unanchor() | |
2541 | Humanoid.MaxHealth = "inf" | |
2542 | Humanoid.Health = "inf" | |
2543 | if Rooted == false then | |
2544 | Disable_Jump = false | |
2545 | Humanoid.WalkSpeed = Speed | |
2546 | elseif Rooted == true then | |
2547 | Disable_Jump = true | |
2548 | Humanoid.WalkSpeed = 0 | |
2549 | end | |
2550 | for _, c in pairs(Character:GetChildren()) do | |
2551 | if c.ClassName == "Part" and c.Transparency < 1 then | |
2552 | if c.Name == "Hood" or c.Name == "FACE" then | |
2553 | c.Color = C3(0,0,0) | |
2554 | end | |
2555 | if c:FindFirstChild("Aura") == nil and c.Name ~= "FACE" then | |
2556 | local AURA = CreatePart(3, c, "Neon", 0, 0.3, "Really black", "Aura", c.Size*1.02,false) | |
2557 | AURA.CFrame = c.CFrame | |
2558 | weldBetween(c,AURA) | |
2559 | if c:FindFirstChildOfClass("SpecialMesh") then | |
2560 | local COPY = c:FindFirstChildOfClass("SpecialMesh"):Clone() | |
2561 | COPY.Parent = AURA | |
2562 | COPY.Scale = COPY.Scale * 1.01 | |
2563 | end | |
2564 | end | |
2565 | elseif c.ClassName == "Part" and c.Transparency == 1 then | |
2566 | if c:FindFirstChild("Aura") then | |
2567 | c.Aura:remove() | |
2568 | end | |
2569 | elseif c.ClassName == "Accessory" then | |
2570 | c:remove() | |
2571 | end | |
2572 | end | |
2573 | if Head:FindFirstChild("face") then | |
2574 | Head.face:remove() | |
2575 | end | |
2576 | for _, c in pairs(Head:GetChildren()) do | |
2577 | if c.Name == "Eye" then | |
2578 | if TARGET == nil then | |
2579 | if EYECOLOR < 1 then | |
2580 | EYECOLOR = EYECOLOR + 0.01 | |
2581 | c.Color = C3(1,EYECOLOR,EYECOLOR) | |
2582 | end | |
2583 | elseif TARGET ~= nil then | |
2584 | if EYECOLOR > 0 then | |
2585 | if EYECOLOR > 0 then | |
2586 | EYECOLOR = EYECOLOR - 0.01 | |
2587 | c.Color = C3(1,EYECOLOR,EYECOLOR) | |
2588 | end | |
2589 | end | |
2590 | end | |
2591 | end | |
2592 | end | |
2593 | for _, c in pairs(Weapon:GetChildren()) do | |
2594 | if c.ClassName == "Part" then | |
2595 | c.Anchored = false | |
2596 | if c:FindFirstChild("BowWeld") then | |
2597 | local WELD = c.BowWeld | |
2598 | if VALUE1 == false then | |
2599 | WELD.C1 = Clerp(WELD.C1, CF(0, 0.55, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2600 | elseif VALUE1 == true then | |
2601 | WELD.C1 = Clerp(WELD.C1, CF(0, 0.45, -0.55) * ANGLES(RAD(-45), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2602 | end | |
2603 | end | |
2604 | end | |
2605 | end | |
2606 | if TARGET == nil then | |
2607 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
2608 | else | |
2609 | local TORS = TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
2610 | if TORS ~= nil then | |
2611 | GYRO.cframe = CF(RootPart.Position,TORS.Position) | |
2612 | end | |
2613 | end | |
2614 | sick.Parent = Character | |
2615 | Humanoid.Name = "Dread Hunter" | |
2616 | Humanoid.PlatformStand = false | |
2617 | Humanoid.Parent = Character | |
2618 | script.Parent = WEAPONGUI | |
2619 | end | |
2620 | ||
2621 | --//=================================\\ | |
2622 | --\\=================================// | |
2623 | ||
2624 | ||
2625 | ||
2626 | ||
2627 | ||
2628 | --//====================================================\\-- | |
2629 | --|| END OF SCRIPT | |
2630 | --\\====================================================//-- |