SHOW:
|
|
- or go back to the newest paste.
1 | script.Name = "Banisher Gun V3 / 1" | |
2 | --//====================================================\\-- | |
3 | --|| CREATED BY SHACKLUSTER | |
4 | --\\====================================================//-- | |
5 | ||
6 | wait(0.2) | |
7 | ||
8 | Player = game.Players.zXzGamePROzXz | |
9 | - | Player = owner |
9 | + | |
10 | Cam = workspace.CurrentCamera | |
11 | Backpack = Player.Backpack | |
12 | Character = Player.Character | |
13 | Humanoid = Character.Humanoid | |
14 | RootPart = Character["HumanoidRootPart"] | |
15 | Torso = Character["Torso"] | |
16 | Head = Character["Head"] | |
17 | RightArm = Character["Right Arm"] | |
18 | LeftArm = Character["Left Arm"] | |
19 | RightLeg = Character["Right Leg"] | |
20 | LeftLeg = Character["Left Leg"] | |
21 | RootJoint = RootPart["RootJoint"] | |
22 | Neck = Torso["Neck"] | |
23 | RightShoulder = Torso["Right Shoulder"] | |
24 | LeftShoulder = Torso["Left Shoulder"] | |
25 | RightHip = Torso["Right Hip"] | |
26 | LeftHip = Torso["Left Hip"] | |
27 | local sick = Instance.new("Sound",Torso) | |
28 | sick.SoundId = "rbxassetid://1138145518" | |
29 | sick.Looped = true | |
30 | sick.Pitch = 1 | |
31 | sick.Volume = 2 | |
32 | sick.TimePosition = 110 | |
33 | Character.Archivable = true | |
34 | Humanoid.DisplayDistanceType = "None" | |
35 | ||
36 | local naeeym2 = Instance.new("BillboardGui",Character) | |
37 | naeeym2.AlwaysOnTop = true | |
38 | naeeym2.Size = UDim2.new(5,35,2,35) | |
39 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
40 | naeeym2.Adornee = Character.Head | |
41 | naeeym2.Name = "Name" | |
42 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
43 | tecks2.BackgroundTransparency = 1 | |
44 | tecks2.TextScaled = true | |
45 | tecks2.BorderSizePixel = 0 | |
46 | tecks2.Text = "CREAM" | |
47 | tecks2.Font = "Code" | |
48 | tecks2.TextSize = 30 | |
49 | tecks2.TextTransparency = 1 | |
50 | tecks2.TextStrokeTransparency = 1 | |
51 | tecks2.TextColor3 = Color3.new(1/0,0/1,1/0) | |
52 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
53 | tecks2.Parent = naeeym2 | |
54 | ||
55 | IT = Instance.new | |
56 | CF = CFrame.new | |
57 | VT = Vector3.new | |
58 | RAD = math.rad | |
59 | C3 = Color3.new | |
60 | UD2 = UDim2.new | |
61 | BRICKC = BrickColor.new | |
62 | ANGLES = CFrame.Angles | |
63 | EULER = CFrame.fromEulerAnglesXYZ | |
64 | COS = math.cos | |
65 | ACOS = math.acos | |
66 | SIN = math.sin | |
67 | ASIN = math.asin | |
68 | ABS = math.abs | |
69 | MRANDOM = math.random | |
70 | FLOOR = math.floor | |
71 | ||
72 | --//=================================\\ | |
73 | --|| USEFUL VALUES | |
74 | --\\=================================// | |
75 | ||
76 | Animation_Speed = 3 | |
77 | local FORCERESET = false | |
78 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
79 | local Speed = 16 | |
80 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
81 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
82 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
83 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
84 | local DAMAGEMULTIPLIER = 1 | |
85 | local ANIM = "Idle" | |
86 | local ATTACK = false | |
87 | local EQUIPPED = false | |
88 | local HOLD = false | |
89 | local COMBO = 1 | |
90 | local Rooted = false | |
91 | local INTRO = false | |
92 | local Gun = IT("Model") | |
93 | Gun.Name = "Gun" | |
94 | local SINE = 0 | |
95 | local KEYHOLD = false | |
96 | local CHANGE = 2 / Animation_Speed | |
97 | local WALKINGANIM = false | |
98 | local VALUE1 = false | |
99 | local VALUE2 = false | |
100 | local ROBLOXIDLEANIMATION = IT("Animation") | |
101 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
102 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
103 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
104 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
105 | WEAPONGUI.Name = "BanishV3Gui" | |
106 | local Weapon = IT("Model") | |
107 | Weapon.Name = "Adds" | |
108 | local Effects = IT("Folder", Weapon) | |
109 | Effects.Name = "Effects" | |
110 | local ANIMATOR = Humanoid.Animator | |
111 | local ANIMATE = Character:FindFirstChild("Animate") | |
112 | local UNANCHOR = true | |
113 | local TOBANISH = {} | |
114 | script.Parent = PlayerGui | |
115 | ||
116 | --//=================================\\ | |
117 | --\\=================================// | |
118 | ||
119 | ||
120 | --//=================================\\ | |
121 | --|| CUSTOMIZATION | |
122 | --\\=================================// | |
123 | ||
124 | Class_Name = "Sharpshooter" | |
125 | Weapon_Name = "Add-ons" | |
126 | ||
127 | Custom_Color_1 = BRICKC("Really black"); --1st color for the weapon. | |
128 | Custom_Color_2 = BRICKC("Maroon"); --2nd color for the weapon. | |
129 | ||
130 | Custom_Color_3 = BRICKC("Really red"); --Color for the abilities. | |
131 | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar. | |
132 | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar. | |
133 | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar. | |
134 | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar. | |
135 | ||
136 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar. | |
137 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar. | |
138 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar. | |
139 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar. | |
140 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities. | |
141 | ||
142 | ||
143 | Player_Size = 1 --Size of the player. | |
144 | Animation_Speed = 3 | |
145 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
146 | ||
147 | local Speed = 16 | |
148 | local Effects2 = {} | |
149 | ||
150 | --//=================================\\ | |
151 | --|| END OF CUSTOMIZATION | |
152 | --\\=================================// | |
153 | ||
154 | ||
155 | --//=================================\\ | |
156 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
157 | --\\=================================// | |
158 | ||
159 | ArtificialHB = Instance.new("BindableEvent", script) | |
160 | ArtificialHB.Name = "ArtificialHB" | |
161 | ||
162 | script:WaitForChild("ArtificialHB") | |
163 | ||
164 | frame = Frame_Speed | |
165 | tf = 0 | |
166 | allowframeloss = false | |
167 | tossremainder = false | |
168 | lastframe = tick() | |
169 | script.ArtificialHB:Fire() | |
170 | ||
171 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
172 | tf = tf + s | |
173 | if tf >= frame then | |
174 | if allowframeloss then | |
175 | script.ArtificialHB:Fire() | |
176 | lastframe = tick() | |
177 | else | |
178 | for i = 1, math.floor(tf / frame) do | |
179 | script.ArtificialHB:Fire() | |
180 | end | |
181 | lastframe = tick() | |
182 | end | |
183 | if tossremainder then | |
184 | tf = 0 | |
185 | else | |
186 | tf = tf - frame * math.floor(tf / frame) | |
187 | end | |
188 | end | |
189 | end) | |
190 | ||
191 | --//=================================\\ | |
192 | --\\=================================// | |
193 | ||
194 | --//=================================\\ | |
195 | --|| SOME FUNCTIONS | |
196 | --\\=================================// | |
197 | ||
198 | function Clerp(a, b, t) | |
199 | local qa = {QuaternionFromCFrame(a)} | |
200 | local qb = {QuaternionFromCFrame(b)} | |
201 | local ax, ay, az = a.x, a.y, a.z | |
202 | local bx, by, bz = b.x, b.y, b.z | |
203 | local _t = 1 - t | |
204 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
205 | end | |
206 | ||
207 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
208 | local frame = IT("Frame") | |
209 | frame.BackgroundTransparency = TRANSPARENCY | |
210 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
211 | frame.Position = POSITION | |
212 | frame.Size = SIZE | |
213 | frame.BackgroundColor3 = COLOR | |
214 | frame.BorderColor3 = BORDERCOLOR | |
215 | frame.Name = NAME | |
216 | frame.Parent = PARENT | |
217 | return frame | |
218 | end | |
219 | ||
220 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
221 | local label = IT("TextLabel") | |
222 | label.BackgroundTransparency = 1 | |
223 | label.Size = UD2(1, 0, 1, 0) | |
224 | label.Position = UD2(0, 0, 0, 0) | |
225 | label.TextColor3 = TEXTCOLOR | |
226 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
227 | label.TextTransparency = TRANSPARENCY | |
228 | label.FontSize = TEXTFONTSIZE | |
229 | label.Font = TEXTFONT | |
230 | label.BorderSizePixel = BORDERSIZEPIXEL | |
231 | label.TextScaled = false | |
232 | label.Text = TEXT | |
233 | label.Name = NAME | |
234 | label.Parent = PARENT | |
235 | return label | |
236 | end | |
237 | ||
238 | function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT) | |
239 | if FLOOR ~= nil then | |
240 | coroutine.resume(coroutine.create(function() | |
241 | local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0)) | |
242 | PART.CFrame = CF(POSITION) | |
243 | for i = 1, 45 do | |
244 | local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE) | |
245 | RingPiece.Material = FLOOR.Material | |
246 | RingPiece.Color = FLOOR.Color | |
247 | RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
248 | Debris:AddItem(RingPiece,SWAIT) | |
249 | end | |
250 | PART:remove() | |
251 | end)) | |
252 | end | |
253 | end | |
254 | ||
255 | function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH) | |
256 | if FLOOR ~= nil then | |
257 | for i = 1, AMOUNT do | |
258 | local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false) | |
259 | DEBREE.Material = FLOOR.Material | |
260 | DEBREE.Color = FLOOR.Color | |
261 | DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360))) | |
262 | DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH)) | |
263 | coroutine.resume(coroutine.create(function() | |
264 | Swait(15) | |
265 | DEBREE.Parent = workspace | |
266 | DEBREE.CanCollide = true | |
267 | Debris:AddItem(DEBREE,SWAIT) | |
268 | end)) | |
269 | end | |
270 | end | |
271 | end | |
272 | ||
273 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
274 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
275 | end | |
276 | ||
277 | function PositiveAngle(NUMBER) | |
278 | if NUMBER >= 0 then | |
279 | NUMBER = 0 | |
280 | end | |
281 | return NUMBER | |
282 | end | |
283 | ||
284 | function NegativeAngle(NUMBER) | |
285 | if NUMBER <= 0 then | |
286 | NUMBER = 0 | |
287 | end | |
288 | return NUMBER | |
289 | end | |
290 | ||
291 | function Swait(NUMBER) | |
292 | if NUMBER == 0 or NUMBER == nil then | |
293 | ArtificialHB.Event:wait() | |
294 | else | |
295 | for i = 1, NUMBER do | |
296 | ArtificialHB.Event:wait() | |
297 | end | |
298 | end | |
299 | end | |
300 | ||
301 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
302 | local NEWMESH = IT(MESH) | |
303 | if MESH == "SpecialMesh" then | |
304 | NEWMESH.MeshType = MESHTYPE | |
305 | if MESHID ~= "nil" and MESHID ~= "" then | |
306 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
307 | end | |
308 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
309 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
310 | end | |
311 | end | |
312 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
313 | NEWMESH.Scale = SCALE | |
314 | NEWMESH.Parent = PARENT | |
315 | return NEWMESH | |
316 | end | |
317 | ||
318 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
319 | local NEWPART = IT("Part") | |
320 | NEWPART.formFactor = FORMFACTOR | |
321 | NEWPART.Reflectance = REFLECTANCE | |
322 | NEWPART.Transparency = TRANSPARENCY | |
323 | NEWPART.CanCollide = false | |
324 | NEWPART.Locked = true | |
325 | NEWPART.Anchored = true | |
326 | if ANCHOR == false then | |
327 | NEWPART.Anchored = false | |
328 | end | |
329 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
330 | NEWPART.Name = NAME | |
331 | NEWPART.Size = SIZE | |
332 | NEWPART.Position = Torso.Position | |
333 | NEWPART.Material = MATERIAL | |
334 | NEWPART:BreakJoints() | |
335 | NEWPART.Parent = PARENT | |
336 | return NEWPART | |
337 | end | |
338 | ||
339 | local function weldBetween(a, b) | |
340 | local weldd = Instance.new("ManualWeld") | |
341 | weldd.Part0 = a | |
342 | weldd.Part1 = b | |
343 | weldd.C0 = CFrame.new() | |
344 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
345 | weldd.Parent = a | |
346 | return weldd | |
347 | end | |
348 | ||
349 | ||
350 | function QuaternionFromCFrame(cf) | |
351 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
352 | local trace = m00 + m11 + m22 | |
353 | if trace > 0 then | |
354 | local s = math.sqrt(1 + trace) | |
355 | local recip = 0.5 / s | |
356 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
357 | else | |
358 | local i = 0 | |
359 | if m11 > m00 then | |
360 | i = 1 | |
361 | end | |
362 | if m22 > (i == 0 and m00 or m11) then | |
363 | i = 2 | |
364 | end | |
365 | if i == 0 then | |
366 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
367 | local recip = 0.5 / s | |
368 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
369 | elseif i == 1 then | |
370 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
371 | local recip = 0.5 / s | |
372 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
373 | elseif i == 2 then | |
374 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
375 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
376 | end | |
377 | end | |
378 | end | |
379 | ||
380 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
381 | local xs, ys, zs = x + x, y + y, z + z | |
382 | local wx, wy, wz = w * xs, w * ys, w * zs | |
383 | local xx = x * xs | |
384 | local xy = x * ys | |
385 | local xz = x * zs | |
386 | local yy = y * ys | |
387 | local yz = y * zs | |
388 | local zz = z * zs | |
389 | 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)) | |
390 | end | |
391 | ||
392 | function QuaternionSlerp(a, b, t) | |
393 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
394 | local startInterp, finishInterp; | |
395 | if cosTheta >= 0.0001 then | |
396 | if (1 - cosTheta) > 0.0001 then | |
397 | local theta = ACOS(cosTheta) | |
398 | local invSinTheta = 1 / SIN(theta) | |
399 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
400 | finishInterp = SIN(t * theta) * invSinTheta | |
401 | else | |
402 | startInterp = 1 - t | |
403 | finishInterp = t | |
404 | end | |
405 | else | |
406 | if (1 + cosTheta) > 0.0001 then | |
407 | local theta = ACOS(-cosTheta) | |
408 | local invSinTheta = 1 / SIN(theta) | |
409 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
410 | finishInterp = SIN(t * theta) * invSinTheta | |
411 | else | |
412 | startInterp = t - 1 | |
413 | finishInterp = t | |
414 | end | |
415 | end | |
416 | 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 | |
417 | end | |
418 | ||
419 | function Clerp(a, b, t) | |
420 | local qa = {QuaternionFromCFrame(a)} | |
421 | local qb = {QuaternionFromCFrame(b)} | |
422 | local ax, ay, az = a.x, a.y, a.z | |
423 | local bx, by, bz = b.x, b.y, b.z | |
424 | local _t = 1 - t | |
425 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
426 | end | |
427 | ||
428 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
429 | local frame = IT("Frame") | |
430 | frame.BackgroundTransparency = TRANSPARENCY | |
431 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
432 | frame.Position = POSITION | |
433 | frame.Size = SIZE | |
434 | frame.BackgroundColor3 = COLOR | |
435 | frame.BorderColor3 = BORDERCOLOR | |
436 | frame.Name = NAME | |
437 | frame.Parent = PARENT | |
438 | return frame | |
439 | end | |
440 | ||
441 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
442 | local label = IT("TextLabel") | |
443 | label.BackgroundTransparency = 1 | |
444 | label.Size = UD2(1, 0, 1, 0) | |
445 | label.Position = UD2(0, 0, 0, 0) | |
446 | label.TextColor3 = TEXTCOLOR | |
447 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
448 | label.TextTransparency = TRANSPARENCY | |
449 | label.FontSize = TEXTFONTSIZE | |
450 | label.Font = TEXTFONT | |
451 | label.BorderSizePixel = BORDERSIZEPIXEL | |
452 | label.TextScaled = false | |
453 | label.Text = TEXT | |
454 | label.Name = NAME | |
455 | label.Parent = PARENT | |
456 | return label | |
457 | end | |
458 | ||
459 | function NoOutlines(PART) | |
460 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
461 | end | |
462 | ||
463 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
464 | local NEWWELD = IT(TYPE) | |
465 | NEWWELD.Part0 = PART0 | |
466 | NEWWELD.Part1 = PART1 | |
467 | NEWWELD.C0 = C0 | |
468 | NEWWELD.C1 = C1 | |
469 | NEWWELD.Parent = PARENT | |
470 | return NEWWELD | |
471 | end | |
472 | ||
473 | local S = IT("Sound") | |
474 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
475 | local NEWSOUND = nil | |
476 | coroutine.resume(coroutine.create(function() | |
477 | NEWSOUND = S:Clone() | |
478 | NEWSOUND.Parent = PARENT | |
479 | NEWSOUND.Volume = VOLUME | |
480 | NEWSOUND.Pitch = PITCH | |
481 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
482 | NEWSOUND:play() | |
483 | if DOESLOOP == true then | |
484 | NEWSOUND.Looped = true | |
485 | else | |
486 | repeat wait(1) until NEWSOUND.Playing == false or NEWSOUND.Parent ~= PARENT | |
487 | NEWSOUND:remove() | |
488 | end | |
489 | end)) | |
490 | return NEWSOUND | |
491 | end | |
492 | ||
493 | function CFrameFromTopBack(at, top, back) | |
494 | local right = top:Cross(back) | |
495 | 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) | |
496 | end | |
497 | ||
498 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
499 | function WACKYEFFECT(Table) | |
500 | local TYPE = (Table.EffectType or "Sphere") | |
501 | local SIZE = (Table.Size or VT(1,1,1)) | |
502 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
503 | local TRANSPARENCY = (Table.Transparency or 0) | |
504 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
505 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
506 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
507 | local ROTATION1 = (Table.RotationX or 0) | |
508 | local ROTATION2 = (Table.RotationY or 0) | |
509 | local ROTATION3 = (Table.RotationZ or 0) | |
510 | local MATERIAL = (Table.Material or "Neon") | |
511 | local COLOR = (Table.Color or C3(1,1,1)) | |
512 | local TIME = (Table.Time or 45) | |
513 | local SOUNDID = (Table.SoundID or nil) | |
514 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
515 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
516 | coroutine.resume(coroutine.create(function() | |
517 | local PLAYSSOUND = false | |
518 | local SOUND = nil | |
519 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
520 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
521 | PLAYSSOUND = true | |
522 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
523 | end | |
524 | EFFECT.Color = COLOR | |
525 | local MSH = nil | |
526 | if TYPE == "Sphere" then | |
527 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
528 | elseif TYPE == "Block" then | |
529 | MSH = IT("BlockMesh",EFFECT) | |
530 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
531 | elseif TYPE == "Wave" then | |
532 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
533 | elseif TYPE == "Ring" then | |
534 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
535 | elseif TYPE == "Slash" then | |
536 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
537 | elseif TYPE == "Round Slash" then | |
538 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
539 | elseif TYPE == "Swirl" then | |
540 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
541 | elseif TYPE == "Skull" then | |
542 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
543 | elseif TYPE == "Crystal" then | |
544 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
545 | end | |
546 | if MSH ~= nil then | |
547 | local MOVESPEED = nil | |
548 | if MOVEDIRECTION ~= nil then | |
549 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
550 | end | |
551 | local GROWTH = SIZE - ENDSIZE | |
552 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
553 | if TYPE == "Block" then | |
554 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
555 | else | |
556 | EFFECT.CFrame = CFRAME | |
557 | end | |
558 | for LOOP = 1, TIME+1 do | |
559 | Swait() | |
560 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
561 | if TYPE == "Wave" then | |
562 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
563 | end | |
564 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
565 | if TYPE == "Block" then | |
566 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
567 | else | |
568 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
569 | end | |
570 | if MOVEDIRECTION ~= nil then | |
571 | local ORI = EFFECT.Orientation | |
572 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
573 | EFFECT.Orientation = ORI | |
574 | end | |
575 | end | |
576 | if PLAYSSOUND == false then | |
577 | EFFECT:remove() | |
578 | else | |
579 | SOUND.Stopped:Connect(function() | |
580 | EFFECT:remove() | |
581 | end) | |
582 | end | |
583 | else | |
584 | if PLAYSSOUND == false then | |
585 | EFFECT:remove() | |
586 | else | |
587 | repeat Swait() until SOUND.Playing == false | |
588 | EFFECT:remove() | |
589 | end | |
590 | end | |
591 | end)) | |
592 | end | |
593 | ||
594 | local DECAL = IT("Decal") | |
595 | function MakeRing() | |
596 | local RING = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Really red"), "MagicRing", VT(0, 0, 0), true) | |
597 | local MSH = IT("BlockMesh", RING) | |
598 | local TOP = DECAL:Clone() | |
599 | local BOTTOM = DECAL:Clone() | |
600 | TOP.Parent = RING | |
601 | BOTTOM.Parent = RING | |
602 | TOP.Face = "Top" | |
603 | BOTTOM.Face = "Bottom" | |
604 | TOP.Texture = "http://www.roblox.com/asset/?id=127817121" | |
605 | BOTTOM.Texture = "http://www.roblox.com/asset/?id=127817121" | |
606 | local function REMOVE() | |
607 | coroutine.resume(coroutine.create(function() | |
608 | local SIZE = MSH.Scale.X | |
609 | for i = 1, 35 do | |
610 | Swait() | |
611 | MSH.Scale = MSH.Scale - VT(SIZE, 0, SIZE) / 60 | |
612 | TOP.Transparency = TOP.Transparency + 0.02857142857142857 | |
613 | BOTTOM.Transparency = BOTTOM.Transparency + 0.02857142857142857 | |
614 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(-5), RAD(0)) | |
615 | end | |
616 | RING:remove() | |
617 | end)) | |
618 | end | |
619 | return RING, MSH, REMOVE | |
620 | end | |
621 | ||
622 | function MakeForm(PART,TYPE) | |
623 | if TYPE == "Cyl" then | |
624 | local MSH = IT("CylinderMesh",PART) | |
625 | elseif TYPE == "Ball" then | |
626 | local MSH = IT("SpecialMesh",PART) | |
627 | MSH.MeshType = "Sphere" | |
628 | elseif TYPE == "Wedge" then | |
629 | local MSH = IT("SpecialMesh",PART) | |
630 | MSH.MeshType = "Wedge" | |
631 | end | |
632 | end | |
633 | ||
634 | function SpawnTrail(FROM,TO,BIG) | |
635 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
636 | MakeForm(TRAIL,"Cyl") | |
637 | local DIST = (FROM - TO).Magnitude | |
638 | if BIG == true then | |
639 | TRAIL.Size = VT(0.5,DIST,0.5) | |
640 | else | |
641 | TRAIL.Size = VT(0.25,DIST,0.25) | |
642 | end | |
643 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
644 | coroutine.resume(coroutine.create(function() | |
645 | for i = 1, 5 do | |
646 | Swait() | |
647 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
648 | end | |
649 | TRAIL:remove() | |
650 | end)) | |
651 | end | |
652 | --WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
653 | function WACKYEFFECT(Table) | |
654 | local TYPE = (Table.EffectType or "Sphere") | |
655 | local SIZE = (Table.Size or VT(1,1,1)) | |
656 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
657 | local TRANSPARENCY = (Table.Transparency or 0) | |
658 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
659 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
660 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
661 | local ROTATION1 = (Table.RotationX or 0) | |
662 | local ROTATION2 = (Table.RotationY or 0) | |
663 | local ROTATION3 = (Table.RotationZ or 0) | |
664 | local MATERIAL = (Table.Material or "Neon") | |
665 | local COLOR = (Table.Color or C3(1,1,1)) | |
666 | local TIME = (Table.Time or 45) | |
667 | local SOUNDID = (Table.SoundID or nil) | |
668 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
669 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
670 | coroutine.resume(coroutine.create(function() | |
671 | local PLAYSSOUND = false | |
672 | local SOUND = nil | |
673 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Really red"), "Effect", VT(1,1,1), true) | |
674 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
675 | PLAYSSOUND = true | |
676 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
677 | end | |
678 | EFFECT.Color = COLOR | |
679 | local MSH = nil | |
680 | if TYPE == "Sphere" then | |
681 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
682 | elseif TYPE == "Block" then | |
683 | MSH = IT("BlockMesh",EFFECT) | |
684 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
685 | elseif TYPE == "Wave" then | |
686 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
687 | elseif TYPE == "Ring" then | |
688 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
689 | elseif TYPE == "Slash" then | |
690 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
691 | elseif TYPE == "Round Slash" then | |
692 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
693 | elseif TYPE == "Swirl" then | |
694 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
695 | elseif TYPE == "Skull" then | |
696 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
697 | elseif TYPE == "Crystal" then | |
698 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
699 | end | |
700 | if MSH ~= nil then | |
701 | local MOVESPEED = nil | |
702 | if MOVEDIRECTION ~= nil then | |
703 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
704 | end | |
705 | local GROWTH = SIZE - ENDSIZE | |
706 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
707 | if TYPE == "Block" then | |
708 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
709 | else | |
710 | EFFECT.CFrame = CFRAME | |
711 | end | |
712 | for LOOP = 1, TIME+1 do | |
713 | Swait() | |
714 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
715 | if TYPE == "Wave" then | |
716 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
717 | end | |
718 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
719 | if TYPE == "Block" then | |
720 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
721 | else | |
722 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
723 | end | |
724 | if MOVEDIRECTION ~= nil then | |
725 | local ORI = EFFECT.Orientation | |
726 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
727 | EFFECT.Orientation = ORI | |
728 | end | |
729 | end | |
730 | if PLAYSSOUND == false then | |
731 | EFFECT:remove() | |
732 | else | |
733 | SOUND.Stopped:Connect(function() | |
734 | EFFECT:remove() | |
735 | end) | |
736 | end | |
737 | else | |
738 | if PLAYSSOUND == false then | |
739 | EFFECT:remove() | |
740 | else | |
741 | repeat Swait() until SOUND.Playing == false | |
742 | EFFECT:remove() | |
743 | end | |
744 | end | |
745 | end)) | |
746 | end | |
747 | ||
748 | function MakeForm(PART,TYPE) | |
749 | if TYPE == "Cyl" then | |
750 | local MSH = IT("CylinderMesh",PART) | |
751 | elseif TYPE == "Ball" then | |
752 | local MSH = IT("SpecialMesh",PART) | |
753 | MSH.MeshType = "Sphere" | |
754 | elseif TYPE == "Wedge" then | |
755 | local MSH = IT("SpecialMesh",PART) | |
756 | MSH.MeshType = "Wedge" | |
757 | end | |
758 | end | |
759 | ||
760 | function SpawnTrail(FROM,TO,BIG) | |
761 | local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0)) | |
762 | MakeForm(TRAIL,"Cyl") | |
763 | local DIST = (FROM - TO).Magnitude | |
764 | if BIG == true then | |
765 | TRAIL.Size = VT(0.5,DIST,0.5) | |
766 | else | |
767 | TRAIL.Size = VT(0.25,DIST,0.25) | |
768 | end | |
769 | TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0)) | |
770 | coroutine.resume(coroutine.create(function() | |
771 | for i = 1, 5 do | |
772 | Swait() | |
773 | TRAIL.Transparency = TRAIL.Transparency + 0.1 | |
774 | end | |
775 | TRAIL:remove() | |
776 | end)) | |
777 | end | |
778 | ||
779 | function SHAKECAM(POSITION, RANGE, INTENSITY, TIME) | |
780 | local TORSO = Torso | |
781 | local HUM = Humanoid | |
782 | if TORSO and RANGE >= (TORSO.Position - POSITION).Magnitude then | |
783 | coroutine.wrap(function() | |
784 | VT = Vector3.new | |
785 | MRANDOM = math.random | |
786 | local A = TIME | |
787 | local B = INTENSITY | |
788 | local C = true | |
789 | local HUMANOID = Humanoid | |
790 | local TIMER = A or 35 | |
791 | local SHAKE = B or 5 | |
792 | local FADE = C or true | |
793 | if HUMANOID then | |
794 | local FADER = SHAKE / TIMER | |
795 | for i = 1, TIMER do | |
796 | wait() | |
797 | HUMANOID.CameraOffset = VT(MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10, MRANDOM(-(SHAKE - FADER * i), SHAKE - FADER * i) / 10) | |
798 | end | |
799 | HUMANOID.CameraOffset = VT(0, 0, 0) | |
800 | end | |
801 | ||
802 | end)() | |
803 | end | |
804 | end | |
805 | ||
806 | function chatfunc(text) | |
807 | local chat = coroutine.wrap(function() | |
808 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
809 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
810 | end | |
811 | local Bill = Instance.new("BillboardGui",Character) | |
812 | Bill.Size = UDim2.new(0,100,0,40) | |
813 | Bill.StudsOffset = Vector3.new(0,3,0) | |
814 | Bill.Adornee = Character.Head | |
815 | Bill.Name = "TalkingBillBoard" | |
816 | local Hehe = Instance.new("TextLabel",Bill) | |
817 | Hehe.BackgroundTransparency = 1 | |
818 | Hehe.BorderSizePixel = 0 | |
819 | Hehe.Text = "" | |
820 | Hehe.Font = "Bodoni" | |
821 | Hehe.TextSize = 40 | |
822 | Hehe.TextStrokeTransparency = 0 | |
823 | Hehe.Size = UDim2.new(1,0,0.5,0) | |
824 | coroutine.resume(coroutine.create(function() | |
825 | while Hehe ~= nil do | |
826 | Swait() | |
827 | Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
828 | Hehe.Rotation = math.random(-2.5,2.5) | |
829 | Hehe.TextColor3 = Color3.new(MRANDOM(55,255),0,0) | |
830 | Hehe.TextStrokeColor3 = Color3.new(0,0,0) | |
831 | end | |
832 | end)) | |
833 | for i = 1,string.len(text),1 do | |
834 | Swait() | |
835 | Hehe.Text = string.sub(text,1,i) | |
836 | end | |
837 | Swait(90)--Re[math.random(1, 93)] | |
838 | for i = 0, 1, .025 do | |
839 | Swait() | |
840 | Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i)) | |
841 | Hehe.TextStrokeTransparency = i | |
842 | Hehe.TextTransparency = i | |
843 | end | |
844 | Bill:Destroy() | |
845 | end) | |
846 | chat() | |
847 | end | |
848 | ||
849 | Debris = game:GetService("Debris") | |
850 | ||
851 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
852 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
853 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
854 | end | |
855 | ||
856 | function turnto(position) | |
857 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
858 | end | |
859 | ||
860 | --//=================================\\ | |
861 | --|| RAGDOLL STUFF | |
862 | --\\=================================// | |
863 | ||
864 | function recurse(root,callback,i) | |
865 | i= i or 0 | |
866 | for _,v in pairs(root:GetChildren()) do | |
867 | i = i + 1 | |
868 | callback(i,v) | |
869 | ||
870 | if #v:GetChildren() > 0 then | |
871 | i = recurse(v,callback,i) | |
872 | end | |
873 | end | |
874 | ||
875 | return i | |
876 | end | |
877 | ||
878 | function ragdollJoint(character, part0, part1, attachmentName, className, properties) | |
879 | attachmentName = attachmentName.."RigAttachment" | |
880 | local constraint = Instance.new(className.."Constraint") | |
881 | constraint.Attachment0 = part0:FindFirstChild(attachmentName) | |
882 | constraint.Attachment1 = part1:FindFirstChild(attachmentName) | |
883 | constraint.Name = "RagdollConstraint"..part1.Name | |
884 | ||
885 | for _,propertyData in next,properties or {} do | |
886 | constraint[propertyData[1]] = propertyData[2] | |
887 | end | |
888 | ||
889 | constraint.Parent = character | |
890 | end | |
891 | ||
892 | function getAttachment0(character, attachmentName) | |
893 | for _,child in next,character:GetChildren() do | |
894 | local attachment = child:FindFirstChild(attachmentName) | |
895 | if attachment then | |
896 | return attachment | |
897 | end | |
898 | end | |
899 | end | |
900 | ||
901 | function ArtificialHitbox(Part) | |
902 | local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false) | |
903 | HITBOX.CanCollide = true | |
904 | HITBOX.CFrame = Part.CFrame | |
905 | weldBetween(Part,HITBOX) | |
906 | end | |
907 | ||
908 | function R15Ragdoll(character,KeepArms) | |
909 | character:BreakJoints() | |
910 | coroutine.resume(coroutine.create(function() | |
911 | recurse(character, function(_,v) | |
912 | if v:IsA("Attachment") then | |
913 | v.Axis = Vector3.new(0, 1, 0) | |
914 | v.SecondaryAxis = Vector3.new(0, 0, 1) | |
915 | v.Rotation = Vector3.new(0, 0, 0) | |
916 | end | |
917 | end) | |
918 | for _,child in next,character:GetChildren() do | |
919 | if child:IsA("Accoutrement") then | |
920 | for _,part in next,child:GetChildren() do | |
921 | if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then | |
922 | local attachment1 = part:FindFirstChildOfClass("Attachment") | |
923 | local attachment0 = getAttachment0(character,attachment1.Name) | |
924 | if attachment0 and attachment1 then | |
925 | local constraint = Instance.new("HingeConstraint") | |
926 | constraint.Attachment0 = attachment0 | |
927 | constraint.Attachment1 = attachment1 | |
928 | constraint.LimitsEnabled = true | |
929 | constraint.UpperAngle = 0 | |
930 | constraint.LowerAngle = 0 | |
931 | constraint.Parent = character | |
932 | end | |
933 | ArtificialHitbox(part) | |
934 | elseif part.Name == "HumanoidRootPart" then | |
935 | part:remove() | |
936 | end | |
937 | end | |
938 | end | |
939 | end | |
940 | ||
941 | ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", { | |
942 | {"LimitsEnabled",true}; | |
943 | {"UpperAngle",5}; | |
944 | }) | |
945 | if character:FindFirstChild("Head") then | |
946 | ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", { | |
947 | {"LimitsEnabled",true}; | |
948 | {"UpperAngle",15}; | |
949 | }) | |
950 | end | |
951 | ||
952 | local handProperties = { | |
953 | {"LimitsEnabled", true}; | |
954 | {"UpperAngle",0}; | |
955 | {"LowerAngle",0}; | |
956 | } | |
957 | ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties) | |
958 | ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties) | |
959 | ||
960 | local shinProperties = { | |
961 | {"LimitsEnabled", true}; | |
962 | {"UpperAngle", 0}; | |
963 | {"LowerAngle", -75}; | |
964 | } | |
965 | ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties) | |
966 | ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties) | |
967 | ||
968 | local footProperties = { | |
969 | {"LimitsEnabled", true}; | |
970 | {"UpperAngle", 15}; | |
971 | {"LowerAngle", -45}; | |
972 | } | |
973 | ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties) | |
974 | ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties) | |
975 | if KeepArms == true then | |
976 | ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket") | |
977 | ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket") | |
978 | ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket") | |
979 | ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket") | |
980 | end | |
981 | ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket") | |
982 | ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket") | |
983 | Debris:AddItem(character,5) | |
984 | end)) | |
985 | end | |
986 | ||
987 | function Ragdoll(Character2,CharTorso,KeepArms) | |
988 | coroutine.resume(coroutine.create(function() | |
989 | Character2:BreakJoints() | |
990 | local hum = Character2:findFirstChild("Humanoid") | |
991 | hum:remove() | |
992 | local function Scan(ch) | |
993 | local e | |
994 | for e = 1,#ch do | |
995 | Scan(ch[e]:GetChildren()) | |
996 | if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then | |
997 | ch[e]:remove() | |
998 | end | |
999 | end | |
1000 | end | |
1001 | local NEWHUM = IT("Humanoid") | |
1002 | NEWHUM.Name = "Corpse" | |
1003 | NEWHUM.Health = 0 | |
1004 | NEWHUM.MaxHealth = 0 | |
1005 | NEWHUM.PlatformStand = true | |
1006 | NEWHUM.Parent = Character2 | |
1007 | NEWHUM.DisplayDistanceType = "None" | |
1008 | ||
1009 | local ch = Character2:GetChildren() | |
1010 | local i | |
1011 | for i = 1,#ch do | |
1012 | if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then | |
1013 | ch[i]:remove() | |
1014 | end | |
1015 | end | |
1016 | ||
1017 | local Torso2 = Character2.Torso | |
1018 | local movevector = Vector3.new() | |
1019 | ||
1020 | if Torso2 then | |
1021 | movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector | |
1022 | local Head = Character2:FindFirstChild("Head") | |
1023 | if Head then | |
1024 | local Neck = Instance.new("Weld") | |
1025 | Neck.Name = "Neck" | |
1026 | Neck.Part0 = Torso2 | |
1027 | Neck.Part1 = Head | |
1028 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
1029 | Neck.C1 = CFrame.new() | |
1030 | Neck.Parent = Torso2 | |
1031 | ||
1032 | end | |
1033 | local Limb = Character2:FindFirstChild("Right Arm") | |
1034 | if Limb and KeepArms == true then | |
1035 | ||
1036 | Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0) | |
1037 | local Joint = Instance.new("Glue") | |
1038 | Joint.Name = "RightShoulder" | |
1039 | Joint.Part0 = Torso2 | |
1040 | Joint.Part1 = Limb | |
1041 | Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1042 | Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1043 | Joint.Parent = Torso2 | |
1044 | ||
1045 | local B = Instance.new("Part") | |
1046 | B.TopSurface = 0 | |
1047 | B.BottomSurface = 0 | |
1048 | B.formFactor = "Symmetric" | |
1049 | B.Size = Vector3.new(1, 1, 1) | |
1050 | B.Transparency = 1 | |
1051 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1052 | B.Parent = Character2 | |
1053 | local W = Instance.new("Weld") | |
1054 | W.Part0 = Limb | |
1055 | W.Part1 = B | |
1056 | W.C0 = CFrame.new(0, -0.5, 0) | |
1057 | W.Parent = Limb | |
1058 | ||
1059 | end | |
1060 | local Limb = Character2:FindFirstChild("Left Arm") | |
1061 | if Limb and KeepArms == true then | |
1062 | ||
1063 | Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0) | |
1064 | local Joint = Instance.new("Glue") | |
1065 | Joint.Name = "LeftShoulder" | |
1066 | Joint.Part0 = Torso2 | |
1067 | Joint.Part1 = Limb | |
1068 | Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1069 | Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1070 | Joint.Parent = Torso2 | |
1071 | ||
1072 | local B = Instance.new("Part") | |
1073 | B.TopSurface = 0 | |
1074 | B.BottomSurface = 0 | |
1075 | B.formFactor = "Symmetric" | |
1076 | B.Size = Vector3.new(1, 1, 1) | |
1077 | B.Transparency = 1 | |
1078 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1079 | B.Parent = Character2 | |
1080 | local W = Instance.new("Weld") | |
1081 | W.Part0 = Limb | |
1082 | W.Part1 = B | |
1083 | W.C0 = CFrame.new(0, -0.5, 0) | |
1084 | W.Parent = Limb | |
1085 | ||
1086 | end | |
1087 | local Limb = Character2:FindFirstChild("Right Leg") | |
1088 | if Limb then | |
1089 | ||
1090 | Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0) | |
1091 | local Joint = Instance.new("Glue") | |
1092 | Joint.Name = "RightHip" | |
1093 | Joint.Part0 = Torso2 | |
1094 | Joint.Part1 = Limb | |
1095 | Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1096 | Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
1097 | Joint.Parent = Torso2 | |
1098 | ||
1099 | local B = Instance.new("Part") | |
1100 | B.TopSurface = 0 | |
1101 | B.BottomSurface = 0 | |
1102 | B.formFactor = "Symmetric" | |
1103 | B.Size = Vector3.new(1, 1, 1) | |
1104 | B.Transparency = 1 | |
1105 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1106 | B.Parent = Character2 | |
1107 | local W = Instance.new("Weld") | |
1108 | W.Part0 = Limb | |
1109 | W.Part1 = B | |
1110 | W.C0 = CFrame.new(0, -0.5, 0) | |
1111 | W.Parent = Limb | |
1112 | ||
1113 | end | |
1114 | local Limb = Character2:FindFirstChild("Left Leg") | |
1115 | if Limb then | |
1116 | ||
1117 | Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0) | |
1118 | local Joint = Instance.new("Glue") | |
1119 | Joint.Name = "LeftHip" | |
1120 | Joint.Part0 = Torso2 | |
1121 | Joint.Part1 = Limb | |
1122 | Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1123 | Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
1124 | Joint.Parent = Torso2 | |
1125 | ||
1126 | local B = Instance.new("Part") | |
1127 | B.TopSurface = 0 | |
1128 | B.BottomSurface = 0 | |
1129 | B.formFactor = "Symmetric" | |
1130 | B.Size = Vector3.new(1, 1, 1) | |
1131 | B.Transparency = 1 | |
1132 | B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0) | |
1133 | B.Parent = Character2 | |
1134 | local W = Instance.new("Weld") | |
1135 | W.Part0 = Limb | |
1136 | W.Part1 = B | |
1137 | W.C0 = CFrame.new(0, -0.5, 0) | |
1138 | W.Parent = Limb | |
1139 | ||
1140 | end | |
1141 | --[ | |
1142 | local Bar = Instance.new("Part") | |
1143 | Bar.TopSurface = 0 | |
1144 | Bar.BottomSurface = 0 | |
1145 | Bar.formFactor = "Symmetric" | |
1146 | Bar.Size = Vector3.new(1, 1, 1) | |
1147 | Bar.Transparency = 1 | |
1148 | Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0) | |
1149 | Bar.Parent = Character2 | |
1150 | local Weld = Instance.new("Weld") | |
1151 | Weld.Part0 = Torso2 | |
1152 | Weld.Part1 = Bar | |
1153 | Weld.C0 = CFrame.new(0, 0.5, 0) | |
1154 | Weld.Parent = Torso2 | |
1155 | --]] | |
1156 | end | |
1157 | Character2.Parent = workspace | |
1158 | Debris:AddItem(Character2,5) | |
1159 | ||
1160 | return Character2,Torso2 | |
1161 | end)) | |
1162 | end | |
1163 | ||
1164 | --//=================================\\ | |
1165 | --|| WEAPON CREATION | |
1166 | --\\=================================// | |
1167 | ||
1168 | local Particle = IT("ParticleEmitter",nil) | |
1169 | Particle.Enabled = false | |
1170 | Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.3),NumberSequenceKeypoint.new(0.3,0),NumberSequenceKeypoint.new(1,1)}) | |
1171 | Particle.LightEmission = 0.5 | |
1172 | Particle.Rate = 150 | |
1173 | Particle.ZOffset = 0.2 | |
1174 | Particle.Rotation = NumberRange.new(-180, 180) | |
1175 | Particle.RotSpeed = NumberRange.new(-180, 180) | |
1176 | Particle.Texture = "http://www.roblox.com/asset/?id=304437537" | |
1177 | Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0)) | |
1178 | ||
1179 | --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false}) | |
1180 | function ParticleEmitter(Table) | |
1181 | local PRTCL = Particle:Clone() | |
1182 | local Speed = Table.Speed or 5 | |
1183 | local Drag = Table.Drag or 0 | |
1184 | local Size1 = Table.Size1 or 1 | |
1185 | local Size2 = Table.Size2 or 5 | |
1186 | local Lifetime1 = Table.Lifetime1 or 1 | |
1187 | local Lifetime2 = Table.Lifetime2 or 1.5 | |
1188 | local Parent = Table.Parent or Torso | |
1189 | local Emit = Table.Emit or 100 | |
1190 | local Offset = Table.Offset or 360 | |
1191 | local Acel = Table.Acel or VT(0,0,0) | |
1192 | local Enabled = Table.Enabled or false | |
1193 | PRTCL.Parent = Parent | |
1194 | PRTCL.Size = NumberSequence.new(Size1,Size2) | |
1195 | PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2) | |
1196 | PRTCL.Speed = NumberRange.new(Speed) | |
1197 | PRTCL.VelocitySpread = Offset | |
1198 | PRTCL.Drag = Drag | |
1199 | PRTCL.Acceleration = Acel | |
1200 | if Enabled == false then | |
1201 | PRTCL:Emit(Emit) | |
1202 | Debris:AddItem(PRTCL,Lifetime2) | |
1203 | else | |
1204 | PRTCL.Enabled = true | |
1205 | end | |
1206 | return PRTCL | |
1207 | end | |
1208 | ||
1209 | local Handle = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.6,0.2),false) | |
1210 | local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.21, 0)) | |
1211 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1212 | MakeForm(Part,"Wedge") | |
1213 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.3, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0)) | |
1214 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.3,0.2),false) | |
1215 | MakeForm(Part,"Wedge") | |
1216 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.4, 0) * ANGLES(RAD(0), RAD(0), RAD(180)), CF(0, 0, 0)) | |
1217 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.3,0.3),false) | |
1218 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1219 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.5,0.5),false) | |
1220 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1221 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.4,0.4,0.4),false) | |
1222 | MakeForm(Part,"Cyl") | |
1223 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1224 | for i = 1, 8 do | |
1225 | local Piece = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Eye", VT(0,0.35,0.41),false) | |
1226 | CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0)) | |
1227 | end | |
1228 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Eye", VT(0.38,0.41,0.38),false) | |
1229 | MakeForm(Part,"Cyl") | |
1230 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1231 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.37,0.5,0.37),false) | |
1232 | MakeForm(Part,"Ball") | |
1233 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.3) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1234 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.7,0.4),false) | |
1235 | MakeForm(Part,"Wedge") | |
1236 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.7, 0.5) * ANGLES(RAD(90), RAD(180), RAD(180)), CF(0, 0, 0)) | |
1237 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.3,0.4,0.2),false) | |
1238 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1239 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.35,0.35,0.35),false) | |
1240 | MakeForm(Part,"Cyl") | |
1241 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1242 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.5),false) | |
1243 | MakeForm(Part,"Cyl") | |
1244 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1245 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.5,0.1,0.45),false) | |
1246 | MakeForm(Part,"Cyl") | |
1247 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 1.1) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1248 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.2,0.5,0.2),false) | |
1249 | MakeForm(Part,"Wedge") | |
1250 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0)) | |
1251 | local LASTPART = Handle | |
1252 | for i = 1, 10 do | |
1253 | if LASTPART == Handle then | |
1254 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.2,0),false) | |
1255 | LASTPART = Part | |
1256 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.1, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1257 | else | |
1258 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.1,0.05,0),false) | |
1259 | CreateWeldOrSnapOrMotor("Weld", Handle, LASTPART, Part, CF(0, 0.025, 0) * ANGLES(RAD(8), RAD(0), RAD(0)), CF(0, -0.025, 0)) | |
1260 | LASTPART = Part | |
1261 | end | |
1262 | end | |
1263 | ||
1264 | local Barrel = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.15,4,0.15),false) | |
1265 | MakeForm(Barrel,"Cyl") | |
1266 | CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Barrel, CF(0, -0.6, 1.85) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1267 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0.25,2,0.25),false) | |
1268 | MakeForm(Part,"Cyl") | |
1269 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, -0.2, 0), CF(0, 0, 0)) | |
1270 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0,0.1,0.2),false) | |
1271 | MakeForm(Part,"Wedge") | |
1272 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Part, CF(0, 0.945, 0.1) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0)) | |
1273 | local Hole = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Eye", VT(0.125,0,0.125),false) | |
1274 | MakeForm(Hole,"Cyl") | |
1275 | CreateWeldOrSnapOrMotor("Weld", Handle, Barrel, Hole, CF(0, 2, 0), CF(0, 0, 0)) | |
1276 | local Part = CreatePart(3, Gun, "Metal", 0, 0, "Mid gray", "Part", VT(0,0,0),false) | |
1277 | local GEARWELD = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1278 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.8,0.8,1.5), VT(0,0,0.2)) | |
1279 | local Part = CreatePart(3, Gun, "Metal", 0, 0.5, "Mid gray", "Eye", VT(0,0,0),false) | |
1280 | local GEARWELD2 = CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.6, 0.7), CF(0, 0, 0)) | |
1281 | CreateMesh("SpecialMesh", Part, "FileMesh", 156292343, "", VT(0.9,0.9,0.3), VT(0,0,0.2)) | |
1282 | coroutine.resume(coroutine.create(function() | |
1283 | while wait() do | |
1284 | GEARWELD.C0 = GEARWELD.C0 * ANGLES(RAD(0), RAD(0), RAD(sick.PlaybackLoudness/60 + 0.05)) | |
1285 | GEARWELD2.C0 = GEARWELD2.C0 * ANGLES(RAD(0), RAD(0), RAD(-sick.PlaybackLoudness/60 - 0.05)) | |
1286 | end | |
1287 | end)) | |
1288 | ||
1289 | ParticleEmitter({Speed = 0.2, Drag = 0, Size1 = 0.1, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.5, Parent = Hole, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
1290 | --ParticleEmitter({Speed = 0.5, Drag = 0, Size1 = 0.2, Size2 = 0, Lifetime1 = 0.3, Lifetime2 = 0.7, Parent = Dangle, Emit = 100, Offset = 360, Enabled = true, Acel = VT(0,5,0)}) | |
1291 | ||
1292 | for _, c in pairs(Gun:GetDescendants()) do | |
1293 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
1294 | c.Material = "Glass" | |
1295 | c.Color = C3(0,0,0) | |
1296 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
1297 | c.Color = C3(1,0,0) | |
1298 | c.Material = "Neon" | |
1299 | end | |
1300 | end | |
1301 | ||
1302 | Weapon.Parent = Character | |
1303 | for _, c in pairs(Weapon:GetChildren()) do | |
1304 | if c.ClassName == "Part" then | |
1305 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1306 | end | |
1307 | end | |
1308 | ||
1309 | Weapon.Parent = Character | |
1310 | Gun.Parent = nil | |
1311 | ||
1312 | for _, c in pairs(Gun:GetChildren()) do | |
1313 | if c.ClassName == "Part" then | |
1314 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1315 | end | |
1316 | end | |
1317 | ||
1318 | for _, c in pairs(Weapon:GetChildren()) do | |
1319 | if c.ClassName == "Part" then | |
1320 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
1321 | end | |
1322 | end | |
1323 | ||
1324 | local SKILLTEXTCOLOR = C3(1,0,0) | |
1325 | local SKILLFONT = "Antique" | |
1326 | local SKILLTEXTSIZE = 7 | |
1327 | ||
1328 | Humanoid.Died:connect(function() | |
1329 | ATTACK = true | |
1330 | end) | |
1331 | ||
1332 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.1, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
1333 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.63, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
1334 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.215, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
1335 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.525, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
1336 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
1337 | ||
1338 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Banish", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
1339 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[V] Kill", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
1340 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[X] Sleep", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
1341 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[C] Ultimate", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
1342 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[T] Taunt", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 5") | |
1343 | ||
1344 | function printbye(Name) | |
1345 | local MESSAGES = {"You cannot struggle, ","Your existance is an insult, ","Fade, ","Your existance is not desired, ","You are not permitted here, ","You are not to decide your fate, ","Be gone, ","You are already dead, ","Your live is an anomaly, ","Don't dare to return, ","Why are you resisting, ","You cannot exist here, ","Why are you struggling, ","Your fate was already decided, ","Goodbye, ","You cannot ignore my command, ","You cannot resist my command, ","You already died, "} | |
1346 | warn(MESSAGES[MRANDOM(1,#MESSAGES)]..Name..".") | |
1347 | end | |
1348 | if INTRO == false and INSTANT == false then | |
1349 | INTRO = true | |
1350 | coroutine.resume(coroutine.create(function() | |
1351 | sick:Play() | |
1352 | Intro() | |
1353 | end)) | |
1354 | end | |
1355 | ||
1356 | workspace.ChildAdded:connect(function(instance) | |
1357 | for BANISH = 1, #TOBANISH do | |
1358 | if TOBANISH[BANISH] ~= nil then | |
1359 | if instance.Name == TOBANISH[BANISH] then | |
1360 | coroutine.resume(coroutine.create(function() | |
1361 | printbye(instance.Name) | |
1362 | instance:ClearAllChildren() | |
1363 | Debris:AddItem(instance,0.0005) | |
1364 | end)) | |
1365 | end | |
1366 | end | |
1367 | end | |
1368 | end) | |
1369 | ||
1370 | --//=================================\\ | |
1371 | --|| DAMAGING | |
1372 | --\\=================================// | |
1373 | ||
1374 | function ApplyDamage(Humanoid,Damage,OneShot) | |
1375 | Damage = Damage * DAMAGEMULTIPLIER | |
1376 | local DEAD = false | |
1377 | if Humanoid.Health < 2000 and OneShot == false then | |
1378 | if Humanoid.Health - Damage > 0 then | |
1379 | Humanoid.Health = Humanoid.Health - Damage | |
1380 | else | |
1381 | Humanoid.Parent:BreakJoints() | |
1382 | DEAD = true | |
1383 | end | |
1384 | else | |
1385 | DEAD = true | |
1386 | Humanoid.Parent:BreakJoints() | |
1387 | end | |
1388 | if DEAD == true then | |
1389 | local PARTS = {} | |
1390 | for index, CHILD in pairs(Humanoid.Parent:GetChildren()) do | |
1391 | if CHILD:IsA("BasePart") then | |
1392 | table.insert(PARTS,CHILD) | |
1393 | end | |
1394 | end | |
1395 | coroutine.resume(coroutine.create(function() | |
1396 | wait(2) | |
1397 | repeat | |
1398 | Swait() | |
1399 | local PIECE = nil | |
1400 | if MRANDOM(1,5) == 1 then | |
1401 | for E = 1, #PARTS do | |
1402 | if MRANDOM(1,5) == 1 then | |
1403 | PIECE = PARTS[E] | |
1404 | table.remove(PARTS,E) | |
1405 | break | |
1406 | end | |
1407 | end | |
1408 | end | |
1409 | if PIECE ~= nil then | |
1410 | if PIECE.Name == "Head" then | |
1411 | WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z), Size2 = (VT(PIECE.Size.Z,PIECE.Size.Y,PIECE.Size.Z))*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), RotationX = MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2}) | |
1412 | else | |
1413 | WACKYEFFECT({Time = MRANDOM(10,30)*5, EffectType = "Box", Size = PIECE.Size, Size2 = PIECE.Size*MRANDOM(7,14)/10, Transparency = PIECE.Transparency, Transparency2 = 1, CFrame = PIECE.CFrame, MoveToPos = PIECE.Position+VT(0,MRANDOM(5,8)/1.5,0), MRANDOM(-25,25)/35, RotationY = MRANDOM(-25,25)/35, RotationZ = MRANDOM(-25,25)/35, Material = "Neon", Color = C3(0.4,0,0), SoundID = 3264923, SoundPitch = MRANDOM(12,16)/10, SoundVolume = 2}) | |
1414 | end | |
1415 | PIECE:remove() | |
1416 | end | |
1417 | until #PARTS == 0 | |
1418 | end)) | |
1419 | end | |
1420 | end | |
1421 | ||
1422 | ||
1423 | function ApplyDamage3(Humanoid,Damage,TorsoPart) | |
1424 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1425 | defence.Name = ("HitBy"..Player.Name) | |
1426 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1427 | Damage = Damage * DAMAGEMULTIPLIER | |
1428 | if Humanoid.Health ~= 0 then | |
1429 | local CritChance = MRANDOM(1,100) | |
1430 | if Damage > Humanoid.Health then | |
1431 | Damage = math.ceil(Humanoid.Health) | |
1432 | if Damage == 0 then | |
1433 | Damage = 0.1 | |
1434 | end | |
1435 | end | |
1436 | Humanoid.Health = Humanoid.Health - Damage | |
1437 | end | |
1438 | end | |
1439 | ||
1440 | function ApplyDamage3(Humanoid,Damage,TorsoPart) | |
1441 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
1442 | defence.Name = ("HitBy"..Player.Name) | |
1443 | game:GetService("Debris"):AddItem(defence, 0.001) | |
1444 | Damage = Damage * DAMAGEMULTIPLIER | |
1445 | if Humanoid.Health ~= 0 then | |
1446 | local CritChance = MRANDOM(1,100) | |
1447 | if Damage > Humanoid.Health then | |
1448 | Damage = math.ceil(Humanoid.Health) | |
1449 | if Damage == 0 then | |
1450 | Damage = 0.1 | |
1451 | end | |
1452 | end | |
1453 | Humanoid.Health = Humanoid.Health - Damage | |
1454 | end | |
1455 | end | |
1456 | ||
1457 | function ApplyAoE3(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
1458 | local CHILDREN = workspace:GetDescendants() | |
1459 | for index, CHILD in pairs(CHILDREN) do | |
1460 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1461 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1462 | if HUM then | |
1463 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1464 | if TORSO then | |
1465 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1466 | if INSTAKILL == true then | |
1467 | CHILD:BreakJoints() | |
1468 | else | |
1469 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
1470 | ApplyDamage(HUM,DMG,TORSO) | |
1471 | end | |
1472 | if FLING > 0 then | |
1473 | for _, c in pairs(CHILD:GetChildren()) do | |
1474 | if c:IsA("BasePart") then | |
1475 | local bv = Instance.new("BodyVelocity") | |
1476 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1477 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
1478 | bv.Parent = c | |
1479 | Debris:AddItem(bv,0.05) | |
1480 | end | |
1481 | end | |
1482 | end | |
1483 | end | |
1484 | end | |
1485 | end | |
1486 | end | |
1487 | end | |
1488 | end | |
1489 | ||
1490 | function CameraEnshaking(Length, Intensity) | |
1491 | coroutine.resume(coroutine.create(function() | |
1492 | local intensity = 1 * Intensity | |
1493 | local rotM = 0.01 * Intensity | |
1494 | for i = 0, Length, 0.1 do | |
1495 | Swait() | |
1496 | intensity = intensity - 0.05 * Intensity / Length | |
1497 | rotM = rotM - 5.0E-4 * Intensity / Length | |
1498 | Humanoid.CameraOffset = Vector3.new(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) | |
1499 | Cam.CFrame = Cam.CFrame * CF(RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity)), RAD(MRANDOM(-intensity, intensity))) * EULER(RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM, RAD(MRANDOM(-intensity, intensity)) * rotM) | |
1500 | end | |
1501 | Humanoid.CameraOffset = Vector3.new(0, 0, 0) | |
1502 | end)) | |
1503 | end | |
1504 | ||
1505 | function KillChildren(v) | |
1506 | v:BreakJoints() | |
1507 | for _, c in pairs(v:GetChildren()) do | |
1508 | if c:IsA("BasePart") then | |
1509 | if c.Transparency < 1 then | |
1510 | if c:FindFirstChildOfClass("Decal") then | |
1511 | c:FindFirstChildOfClass("Decal"):remove() | |
1512 | end | |
1513 | particles(c) | |
1514 | c.PE.Enabled = true | |
1515 | c.Parent = Effects | |
1516 | c.CanCollide = false | |
1517 | c.Material = "Neon" | |
1518 | c.Color = C3(1,0,0) | |
1519 | c.Transparency = 1 | |
1520 | local grav = Instance.new("BodyPosition",c) | |
1521 | grav.P = 20000 | |
1522 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1523 | grav.position = c.Position + VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)) | |
1524 | grav.Name = "GravityForce" | |
1525 | coroutine.resume(coroutine.create(function() | |
1526 | for i = 1, 20 do | |
1527 | Swait() | |
1528 | c.Transparency = c.Transparency + 1/20 | |
1529 | end | |
1530 | c.PE.Enabled = false | |
1531 | Debris:AddItem(c,2) | |
1532 | end)) | |
1533 | end | |
1534 | end | |
1535 | end | |
1536 | end | |
1537 | ||
1538 | function ApplyAoE(POSITION,RANGE) | |
1539 | local CHILDREN = workspace:GetDescendants() | |
1540 | for index, CHILD in pairs(CHILDREN) do | |
1541 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1542 | local LISTED = false | |
1543 | for LIST = 1, #WHITELIST do | |
1544 | if WHITELIST[LIST] ~= nil then | |
1545 | if CHILD.Name == WHITELIST[LIST] then | |
1546 | LISTED = true | |
1547 | end | |
1548 | end | |
1549 | end | |
1550 | if LISTED == false then | |
1551 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1552 | if HUM then | |
1553 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1554 | if TORSO then | |
1555 | if (TORSO.Position - POSITION).Magnitude <= RANGE+TORSO.Size.Magnitude then | |
1556 | KillChildren(CHILD) | |
1557 | end | |
1558 | end | |
1559 | end | |
1560 | end | |
1561 | end | |
1562 | end | |
1563 | end | |
1564 | ||
1565 | function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS) | |
1566 | coroutine.resume(coroutine.create(function() | |
1567 | local METEOR = IT("Model",Effects) | |
1568 | METEOR.Name = "Meteorite" | |
1569 | local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
1570 | METEOR.PrimaryPart = CENTER | |
1571 | local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE) | |
1572 | PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1573 | for i = 1, 15 do | |
1574 | local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE) | |
1575 | FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
1576 | end | |
1577 | if ISDEBREE ~= true then | |
1578 | METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
1579 | else | |
1580 | METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
1581 | end | |
1582 | local IMPACT = false | |
1583 | CreateSound(463593339, CENTER, 10, 0.6) | |
1584 | if SIZE >= 3.5 then | |
1585 | for i = 1, MRANDOM(3,7) do | |
1586 | SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p) | |
1587 | end | |
1588 | end | |
1589 | for i = 1, 200 do | |
1590 | Swait() | |
1591 | local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character) | |
1592 | if HITFLOOR == nil then | |
1593 | local ORI = CENTER.Orientation | |
1594 | METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))) | |
1595 | else | |
1596 | if HITFLOOR.Anchored == true then | |
1597 | CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5) | |
1598 | CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175) | |
1599 | end | |
1600 | IMPACT = true | |
1601 | break | |
1602 | end | |
1603 | end | |
1604 | if IMPACT == true then | |
1605 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
1606 | WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5}) | |
1607 | WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5}) | |
1608 | ApplyAoE(CENTER.Position,30*SIZE) | |
1609 | end | |
1610 | METEOR:remove() | |
1611 | end)) | |
1612 | end | |
1613 | ||
1614 | function ApplyAoE4(POSITION,RANGE,BRUTAL) | |
1615 | local CHILDREN = workspace:GetDescendants() | |
1616 | for index, CHILD in pairs(CHILDREN) do | |
1617 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1618 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1619 | if HUM then | |
1620 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1621 | if TORSO then | |
1622 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1623 | if BRUTAL == true then | |
1624 | Kill(CHILD) | |
1625 | else | |
1626 | CHILD:BreakJoints() | |
1627 | end | |
1628 | end | |
1629 | end | |
1630 | end | |
1631 | end | |
1632 | end | |
1633 | end | |
1634 | ||
1635 | function Kill(Char) | |
1636 | local NewCharacter = IT("Model",Effects) | |
1637 | NewCharacter.Name = "Ow im ded ;-;" | |
1638 | for _, c in pairs(Char:GetDescendants()) do | |
1639 | if c:IsA("BasePart") and c.Transparency == 0 then | |
1640 | c:BreakJoints() | |
1641 | c.Material = "Glass" | |
1642 | c.Color = C3(1,0,0) | |
1643 | c.CanCollide = true | |
1644 | c.Transparency = 0.3 | |
1645 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1646 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1647 | end | |
1648 | if c.Name == "Head" then | |
1649 | c:ClearAllChildren() | |
1650 | c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y) | |
1651 | end | |
1652 | if c.ClassName == "MeshPart" then | |
1653 | c.TextureID = "" | |
1654 | end | |
1655 | if c:FindFirstChildOfClass("BodyPosition") then | |
1656 | c:FindFirstChildOfClass("BodyPosition"):remove() | |
1657 | end | |
1658 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1659 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1660 | end | |
1661 | c.Parent = NewCharacter | |
1662 | c.Name = "DeadPart" | |
1663 | c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15 | |
1664 | c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45)) | |
1665 | end | |
1666 | end | |
1667 | Char:remove() | |
1668 | Debris:AddItem(NewCharacter,5) | |
1669 | end | |
1670 | ||
1671 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
1672 | local CHILDREN = workspace:GetDescendants() | |
1673 | for index, CHILD in pairs(CHILDREN) do | |
1674 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1675 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1676 | if HUM then | |
1677 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1678 | if TORSO then | |
1679 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1680 | if BRUTAL == true then | |
1681 | Kill(CHILD) | |
1682 | else | |
1683 | CHILD:BreakJoints() | |
1684 | end | |
1685 | end | |
1686 | end | |
1687 | end | |
1688 | end | |
1689 | end | |
1690 | end | |
1691 | ||
1692 | function ApplyAoE(POSITION,RANGE,BRUTAL) | |
1693 | local CHILDREN = workspace:GetDescendants() | |
1694 | for index, CHILD in pairs(CHILDREN) do | |
1695 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1696 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1697 | if HUM then | |
1698 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1699 | if TORSO then | |
1700 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1701 | if BRUTAL == true then | |
1702 | Kill(CHILD) | |
1703 | else | |
1704 | CHILD:BreakJoints() | |
1705 | end | |
1706 | end | |
1707 | end | |
1708 | end | |
1709 | end | |
1710 | end | |
1711 | end | |
1712 | ||
1713 | function Banish(Foe) | |
1714 | if Foe then | |
1715 | coroutine.resume(coroutine.create(function() | |
1716 | --if game.Players:FindFirstChild(Foe.Name) then | |
1717 | table.insert(TOBANISH,Foe.Name) | |
1718 | printbye(Foe.Name) | |
1719 | --end | |
1720 | Foe.Archivable = true | |
1721 | local CLONE = Foe:Clone() | |
1722 | Foe:Destroy() | |
1723 | CLONE.Parent = Effects | |
1724 | CLONE:BreakJoints() | |
1725 | local MATERIALS = {"Glass","Neon"} | |
1726 | for _, c in pairs(CLONE:GetDescendants()) do | |
1727 | if c:IsA("BasePart") then | |
1728 | if c.Name == "Torso" or c.Name == "UpperTorso" or c == CLONE.PrimaryPart then | |
1729 | CreateSound(138271815, c, 10, 1, false) | |
1730 | end | |
1731 | c.Anchored = true | |
1732 | c.Transparency = c.Transparency + 0.2 | |
1733 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1734 | c.Color = C3(1,0,0) | |
1735 | if c.ClassName == "MeshPart" then | |
1736 | c.TextureID = "" | |
1737 | end | |
1738 | if c:FindFirstChildOfClass("SpecialMesh") then | |
1739 | c:FindFirstChildOfClass("SpecialMesh").TextureId = "" | |
1740 | end | |
1741 | if c:FindFirstChildOfClass("Decal") then | |
1742 | c:FindFirstChildOfClass("Decal"):remove() | |
1743 | end | |
1744 | c.Name = "Banished" | |
1745 | c.CanCollide = false | |
1746 | else | |
1747 | c:remove() | |
1748 | end | |
1749 | end | |
1750 | local A = false | |
1751 | for i = 1, 35 do | |
1752 | if A == false then | |
1753 | A = true | |
1754 | elseif A == true then | |
1755 | A = false | |
1756 | end | |
1757 | for _, c in pairs(CLONE:GetDescendants()) do | |
1758 | if c:IsA("BasePart") then | |
1759 | c.Anchored = true | |
1760 | c.Material = MATERIALS[MRANDOM(1,2)] | |
1761 | c.Transparency = c.Transparency + 0.8/35 | |
1762 | if A == false then | |
1763 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1764 | elseif A == true then | |
1765 | c.CFrame = c.CFrame*CF(MRANDOM(-45,45)/45,MRANDOM(-45,45)/45,MRANDOM(-45,45)/45) | |
1766 | end | |
1767 | end | |
1768 | end | |
1769 | Swait() | |
1770 | end | |
1771 | CLONE:remove() | |
1772 | end)) | |
1773 | end | |
1774 | end | |
1775 | ||
1776 | ||
1777 | function ApplyAoE(POSITION,RANGE,ISBANISH) | |
1778 | local CHILDREN = workspace:GetDescendants() | |
1779 | for index, CHILD in pairs(CHILDREN) do | |
1780 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1781 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1782 | if HUM then | |
1783 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1784 | if TORSO then | |
1785 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
1786 | if ISBANISH == true then | |
1787 | Banish(CHILD) | |
1788 | else | |
1789 | if ISBANISH == "Gravity" then | |
1790 | HUM.PlatformStand = true | |
1791 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1792 | local grav = Instance.new("BodyPosition",TORSO) | |
1793 | grav.D = 15 | |
1794 | grav.P = 20000 | |
1795 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1796 | grav.position = TORSO.Position | |
1797 | grav.Name = "V3BanishForce"..Player.Name | |
1798 | else | |
1799 | TORSO:FindFirstChild("V3BanishForce"..Player.Name).position = TORSO.Position+VT(0,0.3,0) | |
1800 | TORSO.RotVelocity = VT(MRANDOM(-25,25),MRANDOM(-25,25),MRANDOM(-25,25)) | |
1801 | end | |
1802 | else | |
1803 | HUM.PlatformStand = false | |
1804 | end | |
1805 | end | |
1806 | elseif ISBANISH == "Gravity" then | |
1807 | if TORSO:FindFirstChild("V3BanishForce"..Player.Name) then | |
1808 | TORSO:FindFirstChild("V3BanishForce"..Player.Name):remove() | |
1809 | HUM.PlatformStand = false | |
1810 | end | |
1811 | end | |
1812 | end | |
1813 | end | |
1814 | end | |
1815 | end | |
1816 | end | |
1817 | ||
1818 | function SpawnSmite(POS) | |
1819 | local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character) | |
1820 | local EMITPOS = HITPOS | |
1821 | if HITFLOOR ~= nil then | |
1822 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then | |
1823 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent) | |
1824 | EMITPOS = HITPOS | |
1825 | elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
1826 | HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent) | |
1827 | EMITPOS = HITPOS | |
1828 | end | |
1829 | end | |
1830 | if HITFLOOR ~= nil then | |
1831 | ApplyAoE(EMITPOS,10) | |
1832 | WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) | |
1833 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
1834 | WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5}) | |
1835 | for i = 1, 5 do | |
1836 | local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12) | |
1837 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5}) | |
1838 | end | |
1839 | end | |
1840 | end | |
1841 | ||
1842 | --//=================================\\ | |
1843 | --|| ATTACK FUNCTIONS AND STUFF | |
1844 | --\\=================================// | |
1845 | ||
1846 | function eh() | |
1847 | ATTACK = true | |
1848 | Rooted = false | |
1849 | Speed = 20 | |
1850 | Swait() | |
1851 | local CHILDREN = workspace:GetDescendants() | |
1852 | for index, CHILD in pairs(CHILDREN) do | |
1853 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
1854 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1855 | if HUM then | |
1856 | local TORSO = CHILD:FindFirstChild("Head") | |
1857 | if TORSO then | |
1858 | if (TORSO.Position - Head.Position).Magnitude <= 25 then | |
1859 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1860 | TORSO:remove() | |
1861 | if CHILD:FindFirstChild("Torso") then | |
1862 | Ragdoll(CHILD,Torso,true) | |
1863 | elseif CHILD:FindFirstChild("UpperTorso") then | |
1864 | R15Ragdoll(CHILD,true) | |
1865 | end | |
1866 | end | |
1867 | end | |
1868 | end | |
1869 | end | |
1870 | end | |
1871 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1872 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 1}) | |
1873 | for i=0, 0.3, 0.1 / Animation_Speed do | |
1874 | Swait() | |
1875 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) | |
1876 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
1877 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
1878 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed) | |
1879 | 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.25 / Animation_Speed) | |
1880 | 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.25 / Animation_Speed) | |
1881 | end | |
1882 | Speed = 20 | |
1883 | ATTACK = false | |
1884 | Rooted = false | |
1885 | end | |
1886 | ||
1887 | function Taunt() | |
1888 | ATTACK = true | |
1889 | Rooted = true | |
1890 | CreateSound("1238240145", Torso, 6, 0.9) | |
1891 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1892 | Swait() | |
1893 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1894 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
1895 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1896 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1897 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1898 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1899 | end | |
1900 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1901 | Swait() | |
1902 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1903 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
1904 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1905 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1906 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1907 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1908 | end | |
1909 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1910 | Swait() | |
1911 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1912 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
1913 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1914 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1915 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1916 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1917 | end | |
1918 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1919 | Swait() | |
1920 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1921 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
1922 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1923 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1924 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1925 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1926 | end | |
1927 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1928 | Swait() | |
1929 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1930 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
1931 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(90), RAD(34), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1932 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1933 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1934 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1935 | end | |
1936 | for i=0, 0.6, 0.1 / Animation_Speed do | |
1937 | Swait() | |
1938 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.35 * COS(SINE / 2)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1939 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
1940 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1941 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(15), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1942 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1943 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.35 * COS(SINE / 2), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1944 | end | |
1945 | ATTACK = false | |
1946 | Rooted = false | |
1947 | end | |
1948 | ||
1949 | function TakeOnMe() | |
1950 | Speed = 16 | |
1951 | local MEME = CreateSound(1171341451, Effects, 2, 1, false) | |
1952 | ATTACK = true | |
1953 | Rooted = false | |
1954 | local DANCE = true | |
1955 | local KEY = Mouse.KeyDown:connect(function(NEWKEY) | |
1956 | if NEWKEY == "p" then | |
1957 | DANCE = false | |
1958 | end | |
1959 | end) | |
1960 | PLAYSONG = false | |
1961 | while true do | |
1962 | for i = 1, 15 do | |
1963 | Swait() | |
1964 | MEME.Parent = Effects | |
1965 | 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) | |
1966 | 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) | |
1967 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1968 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1969 | 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) | |
1970 | 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) | |
1971 | end | |
1972 | if DANCE == false then | |
1973 | break | |
1974 | end | |
1975 | for i = 1, 15 do | |
1976 | Swait() | |
1977 | MEME.Parent = Effects | |
1978 | 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) | |
1979 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) | |
1980 | if MRANDOM(1,7) == 1 then | |
1981 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
1982 | end RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(150), RAD(65), RAD(85)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1983 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(150), RAD(65), RAD(85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1984 | 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) | |
1985 | 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) | |
1986 | end | |
1987 | end | |
1988 | PLAYSONG = true | |
1989 | KEY:Disconnect() | |
1990 | MEME:remove() | |
1991 | Speed = 25 | |
1992 | ATTACK = false | |
1993 | Rooted = false | |
1994 | end | |
1995 | ||
1996 | function Intro() | |
1997 | ATTACK = true | |
1998 | Rooted = true | |
1999 | repeat | |
2000 | Swait() | |
2001 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0}) | |
2002 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2003 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, 0.5) * ANGLES(RAD(-3.5 * COS(SINE / 12)), RAD(-45), RAD(12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2004 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.8 / Animation_Speed) | |
2005 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0.5, 0.5) * ANGLES(RAD(0), RAD(45), RAD(-12)) * ANGLES(RAD(-45 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
2006 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
2007 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.1 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(5), RAD(15-2.5 * COS(SINE / 12))), 0.8 / Animation_Speed) | |
2008 | until sick.TimePosition > 114 | |
2009 | repeat | |
2010 | Swait() | |
2011 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2012 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2013 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2014 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2015 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2016 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2017 | until sick.TimePosition > 116 | |
2018 | repeat | |
2019 | Swait() | |
2020 | WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0.2,0.2), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0) * ANGLES(RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90)), RAD(MRANDOM(-90,90))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 0}) | |
2021 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2022 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2023 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(45), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2024 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-90), RAD(45), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2025 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2026 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2027 | until sick.TimePosition >119 | |
2028 | Gun.Parent = Character | |
2029 | tecks2.TextTransparency = 0 | |
2030 | for i = 1, 100 do | |
2031 | Swait() | |
2032 | for _, c in pairs(Character:GetChildren()) do | |
2033 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
2034 | c.Transparency = 0 | |
2035 | end | |
2036 | end | |
2037 | for _, c in pairs(Weapon:GetChildren()) do | |
2038 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
2039 | c.Transparency = 0 | |
2040 | end | |
2041 | end | |
2042 | for _, c in pairs(Weapon:GetDescendants()) do | |
2043 | if c.ClassName == "Part" and c.Name ~= "Eye" and c.Parent ~= Effects and c.Parent.Parent ~= Effects then | |
2044 | c.Material = "Glass" | |
2045 | c.Color = C3(0,0,0) | |
2046 | elseif c.ClassName == "Part" and c.Name == "Eye" then | |
2047 | c.Color = C3(1,0,0) | |
2048 | c.Material = "Neon" | |
2049 | end | |
2050 | end | |
2051 | end | |
2052 | TRANSFORMED = true | |
2053 | ATTACK = false | |
2054 | Rooted = false | |
2055 | end | |
2056 | ||
2057 | function Shot() | |
2058 | ATTACK = true | |
2059 | Rooted = false | |
2060 | for i=0, 0.2, 0.05 / Animation_Speed do | |
2061 | Swait() | |
2062 | turnto(Mouse.Hit.p) | |
2063 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2064 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2065 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2066 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2067 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2068 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2069 | end | |
2070 | repeat | |
2071 | for i=0, 0.2, 0.05 / Animation_Speed do | |
2072 | Swait() | |
2073 | turnto(Mouse.Hit.p) | |
2074 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2075 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2076 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2077 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2078 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2079 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2080 | end | |
2081 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
2082 | SpawnTrail(Hole.Position,POS) | |
2083 | if HIT ~= nil then | |
2084 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
2085 | Banish(HIT.Parent) | |
2086 | end | |
2087 | end | |
2088 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2089 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2090 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2091 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2092 | Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30 | |
2093 | for i=0, 0.2, 0.05 / Animation_Speed do | |
2094 | Swait() | |
2095 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2096 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
2097 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2098 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2099 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2100 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2101 | end | |
2102 | until KEYHOLD == false | |
2103 | ATTACK = false | |
2104 | Rooted = false | |
2105 | end | |
2106 | ||
2107 | function Shot2() | |
2108 | ATTACK = true | |
2109 | Rooted = false | |
2110 | for i=0, 0.2, 0.05 / Animation_Speed do | |
2111 | Swait() | |
2112 | turnto(Mouse.Hit.p) | |
2113 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2114 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2115 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2116 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2117 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2118 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2119 | end | |
2120 | repeat | |
2121 | for i=0, 0.2, 0.05 / Animation_Speed do | |
2122 | Swait() | |
2123 | turnto(Mouse.Hit.p) | |
2124 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2125 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2126 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2127 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2128 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2129 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2130 | end | |
2131 | local HIT,POS = CastProperRay(Hole.Position, Mouse.Hit.p, 1000, Character) | |
2132 | SpawnTrail(Hole.Position,POS) | |
2133 | if HIT ~= nil then | |
2134 | if HIT.Parent ~= workspace and HIT.Parent.ClassName ~= "Folder" then | |
2135 | Kill(HIT.Parent) | |
2136 | end | |
2137 | end | |
2138 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2139 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2140 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2141 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CF(POS,Hole.Position) * ANGLES(RAD(-90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2142 | Humanoid.CameraOffset = VT(MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5,MRANDOM(-5,5)/2.5)/30 | |
2143 | for i=0, 0.2, 0.05 / Animation_Speed do | |
2144 | Swait() | |
2145 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2146 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.25 / Animation_Speed) | |
2147 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(15), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2148 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2149 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2150 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2151 | end | |
2152 | until KEYHOLD == false | |
2153 | ATTACK = false | |
2154 | Rooted = false | |
2155 | end | |
2156 | ||
2157 | function AttackTemplate() | |
2158 | ATTACK = true | |
2159 | Rooted = false | |
2160 | for i=0, 1, 0.1 / Animation_Speed do | |
2161 | Swait() | |
2162 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(90)), 0.5 / Animation_Speed) | |
2163 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed) | |
2164 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed) | |
2165 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed) | |
2166 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2167 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
2168 | end | |
2169 | ATTACK = false | |
2170 | Rooted = false | |
2171 | end | |
2172 | ||
2173 | function Finisher() | |
2174 | local TARGET = Mouse.Target | |
2175 | if TARGET ~= nil then | |
2176 | if TARGET.Parent:FindFirstChildOfClass("Humanoid") then | |
2177 | local HUM = TARGET.Parent:FindFirstChildOfClass("Humanoid") | |
2178 | local ROOT = TARGET.Parent:FindFirstChild("HumanoidRootPart") or TARGET.Parent:FindFirstChild("Torso") or TARGET.Parent:FindFirstChild("UpperTorso") | |
2179 | if ROOT and HUM.Health > 0 then | |
2180 | local FOE = Mouse.Target.Parent | |
2181 | ATTACK = true | |
2182 | Rooted = true | |
2183 | RootPart.CFrame = ROOT.CFrame*CF(-1.35,0,4) | |
2184 | ROOT.Anchored = true | |
2185 | CreateSound(670796769, Torso, 9999, 0.6, false) | |
2186 | CreateSound(159882598, Torso, 5, 0.9, false) | |
2187 | for i=0, 0.4, 0.1 / Animation_Speed do | |
2188 | Swait() | |
2189 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2190 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2191 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2192 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2193 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2194 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2195 | end | |
2196 | HUM.PlatformStand = true | |
2197 | ROOT.CFrame = ROOT.CFrame * CF(0,-2*ROOT.Size.Z,0) * ANGLES(RAD(-90), RAD(0), RAD(0)) | |
2198 | coroutine.resume(coroutine.create(function() | |
2199 | Swait() | |
2200 | ROOT.Anchored = true | |
2201 | end)) | |
2202 | RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.6) | |
2203 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2204 | Swait() | |
2205 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2206 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2207 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2208 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2209 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2210 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-50), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2211 | end | |
2212 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2213 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2214 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2215 | Swait() | |
2216 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2217 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 1 / Animation_Speed) | |
2218 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2219 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2220 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2221 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2222 | end | |
2223 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2224 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2225 | local AMMO = 6 | |
2226 | local FIRING = true | |
2227 | local SHOOTING = false | |
2228 | local TIMER = 70 | |
2229 | CreateSound(147722227, GunPoint, 6, 1.3, false) | |
2230 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2231 | Swait() | |
2232 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2233 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2234 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2235 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2236 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2237 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2238 | end | |
2239 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2240 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2241 | for i = 1, 6 do | |
2242 | local GUNPOS = Hole.CFrame*CF(0, 0, 0).p | |
2243 | local DISTANCE = (FOE.Head.Position - GUNPOS).Magnitude | |
2244 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2245 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2246 | HUM.Health = HUM.Health/1.5 | |
2247 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2248 | Swait() | |
2249 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2250 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2251 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(70), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2252 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2253 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2254 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2255 | end | |
2256 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2257 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2258 | for i=0, 0.2, 0.1 / Animation_Speed do | |
2259 | Swait() | |
2260 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
2261 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
2262 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2263 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2264 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2265 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-1), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2266 | end | |
2267 | end | |
2268 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = Hole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
2269 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = Hole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 136523485, SoundPitch = MRANDOM(8,11)/10, SoundVolume = 8}) | |
2270 | ApplyDamage(HUM,0,true) | |
2271 | FOE:BreakJoints() | |
2272 | ROOT.Anchored = false | |
2273 | for i=0, 0.3, 0.1 / Animation_Speed do | |
2274 | Swait() | |
2275 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2276 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25), RAD(0), RAD(15)), 1 / Animation_Speed) | |
2277 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2278 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.525, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2279 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2280 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2281 | end | |
2282 | ATTACK = false | |
2283 | Rooted = false | |
2284 | end | |
2285 | end | |
2286 | end | |
2287 | end | |
2288 | ||
2289 | ||
2290 | --//=================================\\ | |
2291 | --|| ASSIGN THINGS TO KEYS | |
2292 | --\\=================================// | |
2293 | ||
2294 | function MouseDown(Mouse) | |
2295 | if ATTACK == false then | |
2296 | end | |
2297 | end | |
2298 | ||
2299 | function MouseUp(Mouse) | |
2300 | HOLD = false | |
2301 | end | |
2302 | ||
2303 | function KeyDown(Key) | |
2304 | KEYHOLD = true | |
2305 | if Key == "z" and ATTACK == false then | |
2306 | Shot() | |
2307 | end | |
2308 | ||
2309 | if Key == "v" and ATTACK == false then | |
2310 | Shot2() | |
2311 | end | |
2312 | ||
2313 | if Key == "x" and ATTACK == false then | |
2314 | Finisher() | |
2315 | end | |
2316 | ||
2317 | if Key == "t" and ATTACK == false then | |
2318 | Taunt() | |
2319 | end | |
2320 | ||
2321 | if Key == "c" and ATTACK == false then | |
2322 | eh() | |
2323 | end | |
2324 | end | |
2325 | ||
2326 | function KeyUp(Key) | |
2327 | KEYHOLD = false | |
2328 | end | |
2329 | ||
2330 | Mouse.Button1Down:connect(function(NEWKEY) | |
2331 | MouseDown(NEWKEY) | |
2332 | end) | |
2333 | Mouse.Button1Up:connect(function(NEWKEY) | |
2334 | MouseUp(NEWKEY) | |
2335 | end) | |
2336 | Mouse.KeyDown:connect(function(NEWKEY) | |
2337 | KeyDown(NEWKEY) | |
2338 | end) | |
2339 | Mouse.KeyUp:connect(function(NEWKEY) | |
2340 | KeyUp(NEWKEY) | |
2341 | end) | |
2342 | ||
2343 | --//=================================\\ | |
2344 | --\\=================================// | |
2345 | ||
2346 | ||
2347 | function unanchor() | |
2348 | if UNANCHOR == true then | |
2349 | g = Character:GetChildren() | |
2350 | for i = 1, #g do | |
2351 | if g[i].ClassName == "Part" then | |
2352 | g[i].Anchored = false | |
2353 | end | |
2354 | end | |
2355 | end | |
2356 | end | |
2357 | ||
2358 | ||
2359 | --//=================================\\ | |
2360 | --|| WRAP THE WHOLE SCRIPT UP | |
2361 | --\\=================================// | |
2362 | ||
2363 | Humanoid.Changed:connect(function(Jump) | |
2364 | if Jump == "Jump" and (Disable_Jump == true) then | |
2365 | Humanoid.Jump = false | |
2366 | end | |
2367 | end) | |
2368 | ||
2369 | local FF = IT("ForceField",Character) | |
2370 | FF.Visible = false | |
2371 | ||
2372 | INSTANT = false | |
2373 | Speed = 20 | |
2374 | ||
2375 | while true do | |
2376 | Swait() | |
2377 | SINE = SINE + CHANGE | |
2378 | ANIMATE.Parent = nil | |
2379 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
2380 | IDLEANIMATION:Play() | |
2381 | if TRANSFORMED == true then | |
2382 | tecks2.TextTransparency = 0 | |
2383 | for _, c in pairs(Character:GetChildren()) do | |
2384 | if c.ClassName == "Part" and c.Name ~= "HumanoidRootPart" then | |
2385 | c.Anchored = false | |
2386 | c.Transparency = 0 | |
2387 | end | |
2388 | end | |
2389 | for _, c in pairs(Weapon:GetChildren()) do | |
2390 | if c.ClassName == "Part" then | |
2391 | c.Transparency = 0 | |
2392 | end | |
2393 | end | |
2394 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2395 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2396 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
2397 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
2398 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
2399 | if ATTACK == false and VALUE2 == false then | |
2400 | end | |
2401 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2402 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2403 | 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) | |
2404 | 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2405 | 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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2406 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2407 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2408 | 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) | |
2409 | 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) | |
2410 | 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) | |
2411 | end | |
2412 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2413 | ANIM = "Jump" | |
2414 | if ATTACK == false then | |
2415 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2416 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2417 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2418 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2419 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
2420 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2421 | end | |
2422 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2423 | ANIM = "Fall" | |
2424 | if ATTACK == false then | |
2425 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2426 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2427 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
2428 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
2429 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
2430 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
2431 | end | |
2432 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2433 | ANIM = "Idle" | |
2434 | if ATTACK == false then | |
2435 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) | |
2436 | if MRANDOM(1,7) == 1 then | |
2437 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
2438 | end | |
2439 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.25 / Animation_Speed) | |
2440 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(180), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 0.25 / Animation_Speed) | |
2441 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.6, 0) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.25 / Animation_Speed) | |
2442 | 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.25 / Animation_Speed) | |
2443 | 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.25 / Animation_Speed) | |
2444 | end | |
2445 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2446 | ANIM = "Walk" | |
2447 | if ATTACK == false then | |
2448 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
2449 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 + MRANDOM(-5,5) - 4 * COS(SINE / 12)), RAD(MRANDOM(-5,5)), RAD(15)), 1 / Animation_Speed) | |
2450 | if MRANDOM(1,7) == 1 then | |
2451 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + MRANDOM(-25,25) - 4 * COS(SINE / 12)), RAD(MRANDOM(-25,25)), RAD(0)), 1.5 / Animation_Speed) | |
2452 | end | |
2453 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.35, 0) * ANGLES(RAD(0), RAD(180), RAD(180)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
2454 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed) | |
2455 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
2456 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
2457 | end | |
2458 | end | |
2459 | end | |
2460 | --end | |
2461 | Humanoid.DisplayDistanceType = "None" | |
2462 | unanchor() | |
2463 | tecks2.TextColor3 = BrickColor.Random().Color | |
2464 | tecks2.TextStrokeColor3 = BrickColor.Random().Color | |
2465 | Humanoid.MaxHealth = "inf" | |
2466 | Humanoid.Health = "inf" | |
2467 | if Rooted == false then | |
2468 | Disable_Jump = false | |
2469 | Humanoid.WalkSpeed = Speed | |
2470 | elseif Rooted == true then | |
2471 | Disable_Jump = true | |
2472 | Humanoid.WalkSpeed = 0 | |
2473 | end | |
2474 | if Head:FindFirstChild("face") then | |
2475 | Head.face.Texture = "rbxassetid://403870689" | |
2476 | end | |
2477 | local MATHS = {"0","1"} | |
2478 | Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)] | |
2479 | Humanoid.PlatformStand = false | |
2480 | if INTRO == false and INSTANT == false then | |
2481 | INTRO = true | |
2482 | coroutine.resume(coroutine.create(function() | |
2483 | sick:Play() | |
2484 | Intro() | |
2485 | end)) | |
2486 | end | |
2487 | if INSTANT == true then | |
2488 | if TRANSFORMED == false then | |
2489 | sick.TimePosition = 60 | |
2490 | sick:Play() | |
2491 | end | |
2492 | TRANSFORMED = true | |
2493 | end | |
2494 | script.Parent = PlayerGui | |
2495 | Character.Parent = workspace | |
2496 | Humanoid.Parent = Character | |
2497 | end | |
2498 | --//=================================\\ | |
2499 | --\\=================================// | |
2500 | ||
2501 | ||
2502 | ||
2503 | ||
2504 | ||
2505 | --//====================================================\\-- | |
2506 | --|| END OF SCRIPT | |
2507 | --\\====================================================//-- |