SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | - | --|| CREATED BY SHACKLUSTER |
2 | + | --|| CREATED BY SHACKLUSTER this post is by killerlol603 aka gememed |
3 | --|| EDITED BY NINJABEHIND | |
4 | --\\====================================================//-- | |
5 | ||
6 | wait(0.2) | |
7 | ||
8 | - | Player = game:GetService("Players").LocalPlayer |
8 | + | Player = game:GetService("Players").Killerlol603 --youre name here |
9 | PlayerGui = Player.PlayerGui | |
10 | Cam = workspace.CurrentCamera | |
11 | Backpack = Player.Backpack | |
12 | Character = Player.Character | |
13 | Humanoid = Character.Humanoid | |
14 | Mouse = Player:GetMouse() | |
15 | RootPart = Character["HumanoidRootPart"] | |
16 | Torso = Character["Torso"] | |
17 | Head = Character["Head"] | |
18 | RightArm = Character["Right Arm"] | |
19 | LeftArm = Character["Left Arm"] | |
20 | RightLeg = Character["Right Leg"] | |
21 | LeftLeg = Character["Left Leg"] | |
22 | RootJoint = RootPart["RootJoint"] | |
23 | Neck = Torso["Neck"] | |
24 | RightShoulder = Torso["Right Shoulder"] | |
25 | LeftShoulder = Torso["Left Shoulder"] | |
26 | RightHip = Torso["Right Hip"] | |
27 | LeftHip = Torso["Left Hip"] | |
28 | Character.Archivable = true | |
29 | Player:ClearCharacterAppearance() | |
30 | ||
31 | IT = Instance.new | |
32 | CF = CFrame.new | |
33 | VT = Vector3.new | |
34 | RAD = math.rad | |
35 | C3 = Color3.new | |
36 | UD2 = UDim2.new | |
37 | BRICKC = BrickColor.new | |
38 | ANGLES = CFrame.Angles | |
39 | EULER = CFrame.fromEulerAnglesXYZ | |
40 | COS = math.cos | |
41 | ACOS = math.acos | |
42 | SIN = math.sin | |
43 | ASIN = math.asin | |
44 | ABS = math.abs | |
45 | MRANDOM = math.random | |
46 | FLOOR = math.floor | |
47 | ||
48 | --//=================================\\ | |
49 | --|| USEFUL VALUES | |
50 | --\\=================================// | |
51 | ||
52 | Animation_Speed = 3 | |
53 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
54 | local Speed = 20 | |
55 | local SIZE = 1.4 | |
56 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
57 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
58 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
59 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
60 | local DAMAGEMULTIPLIER = 1 | |
61 | local ANIM = "Idle" | |
62 | local ATTACK = false | |
63 | local EQUIPPED = false | |
64 | local HOLD = false | |
65 | local COMBO = 1 | |
66 | local Rooted = false | |
67 | local SINE = 0 | |
68 | local KEYHOLD = false | |
69 | local CHANGE = 2 / Animation_Speed | |
70 | local WALKINGANIM = false | |
71 | local VALUE1 = false | |
72 | local VALUE2 = false | |
73 | local ROBLOXIDLEANIMATION = IT("Animation") | |
74 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
75 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
76 | local ATANIM = IT("Animation") | |
77 | ATANIM.Name = "Attack Animation" | |
78 | ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663" | |
79 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
80 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
81 | WEAPONGUI.Name = "Weapon GUI" | |
82 | local Weapon = IT("Model") | |
83 | Weapon.Name = "Adds" | |
84 | local Effects = IT("Folder", Weapon) | |
85 | Effects.Name = "Effects" | |
86 | local ANIMATOR = Humanoid.Animator | |
87 | local ANIMATE = Character.Animate | |
88 | local UNANCHOR = true | |
89 | local CLOCKLOOP = 0 | |
90 | local SONG = 1382488262 | |
91 | local CLOCKTARGET = nil | |
92 | local CLOCKSPEED = 1 | |
93 | script.Parent = WEAPONGUI | |
94 | local CLONE = Character:Clone() | |
95 | CLONE.Parent = nil | |
96 | Character.Archivable = false | |
97 | local sick = Instance.new("Sound",Torso) | |
98 | ||
99 | --//=================================\\ | |
100 | --|| INVINCIBLE | |
101 | --\\=================================// | |
102 | ||
103 | function refit() | |
104 | Character.Parent = workspace | |
105 | for e = 1, #BODY do | |
106 | if BODY[e] ~= nil then | |
107 | local STUFF = BODY[e] | |
108 | local PART = STUFF[1] | |
109 | local PARENT = STUFF[2] | |
110 | local MATERIAL = STUFF[3] | |
111 | local COLOR = STUFF[4] | |
112 | local TRANSPARENCY = STUFF[5] | |
113 | --local SIZE = STUFF[6] | |
114 | local NAME = STUFF[7] | |
115 | if PART.ClassName == "Part" and PART ~= RootPart then | |
116 | PART.Material = MATERIAL | |
117 | PART.Transparency = TRANSPARENCY | |
118 | PART.Name = NAME | |
119 | end | |
120 | if PART.Parent ~= PARENT then | |
121 | Humanoid:remove() | |
122 | PART.Parent = PARENT | |
123 | Humanoid = IT("Humanoid",Character) | |
124 | end | |
125 | end | |
126 | end | |
127 | end | |
128 | ||
129 | for _, c in pairs(Weapon:GetChildren()) do | |
130 | if c.ClassName == "Part" then | |
131 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
132 | end | |
133 | end | |
134 | ||
135 | Humanoid.Died:connect(function() | |
136 | refit() | |
137 | end) | |
138 | ||
139 | --//=================================\\ | |
140 | - | --|| SAZERENOS' ARTIFICIAL HEARTBEAT |
140 | + | |
141 | --\\=================================// | |
142 | ||
143 | - | ArtificialHB = Instance.new("BindableEvent", script) |
143 | + | |
144 | - | ArtificialHB.Name = "ArtificialHB" |
144 | + | |
145 | end | |
146 | - | script:WaitForChild("ArtificialHB") |
146 | + | |
147 | function PositiveAngle(NUMBER) | |
148 | - | frame = Frame_Speed |
148 | + | |
149 | - | tf = 0 |
149 | + | |
150 | - | allowframeloss = false |
150 | + | |
151 | - | tossremainder = false |
151 | + | |
152 | - | lastframe = tick() |
152 | + | |
153 | - | script.ArtificialHB:Fire() |
153 | + | |
154 | function NegativeAngle(NUMBER) | |
155 | - | game:GetService("RunService").Heartbeat:connect(function(s, p) |
155 | + | |
156 | - | tf = tf + s |
156 | + | |
157 | - | if tf >= frame then |
157 | + | |
158 | - | if allowframeloss then |
158 | + | |
159 | - | script.ArtificialHB:Fire() |
159 | + | |
160 | - | lastframe = tick() |
160 | + | |
161 | function Swait(NUMBER) | |
162 | - | for i = 1, math.floor(tf / frame) do |
162 | + | |
163 | - | script.ArtificialHB:Fire() |
163 | + | |
164 | else | |
165 | - | lastframe = tick() |
165 | + | |
166 | ArtificialHB.Event:wait() | |
167 | - | if tossremainder then |
167 | + | |
168 | - | tf = 0 |
168 | + | |
169 | end | |
170 | - | tf = tf - frame * math.floor(tf / frame) |
170 | + | |
171 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
172 | local NEWMESH = IT(MESH) | |
173 | if MESH == "SpecialMesh" then | |
174 | NEWMESH.MeshType = MESHTYPE | |
175 | if MESHID ~= "nil" and MESHID ~= "" then | |
176 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
177 | end | |
178 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
179 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
180 | end | |
181 | end | |
182 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
183 | NEWMESH.Scale = SCALE | |
184 | NEWMESH.Parent = PARENT | |
185 | return NEWMESH | |
186 | end | |
187 | ||
188 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
189 | local NEWPART = IT("Part") | |
190 | NEWPART.formFactor = FORMFACTOR | |
191 | NEWPART.Reflectance = REFLECTANCE | |
192 | NEWPART.Transparency = TRANSPARENCY | |
193 | NEWPART.CanCollide = false | |
194 | NEWPART.Locked = true | |
195 | NEWPART.Anchored = true | |
196 | if ANCHOR == false then | |
197 | NEWPART.Anchored = false | |
198 | end | |
199 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
200 | NEWPART.Name = NAME | |
201 | NEWPART.Size = SIZE | |
202 | NEWPART.Position = Torso.Position | |
203 | NEWPART.Material = MATERIAL | |
204 | NEWPART:BreakJoints() | |
205 | NEWPART.Parent = PARENT | |
206 | return NEWPART | |
207 | end | |
208 | ||
209 | local function weldBetween(a, b) | |
210 | local weldd = Instance.new("ManualWeld") | |
211 | weldd.Part0 = a | |
212 | weldd.Part1 = b | |
213 | weldd.C0 = CFrame.new() | |
214 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
215 | weldd.Parent = a | |
216 | return weldd | |
217 | end | |
218 | ||
219 | ||
220 | function QuaternionFromCFrame(cf) | |
221 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
222 | local trace = m00 + m11 + m22 | |
223 | if trace > 0 then | |
224 | local s = math.sqrt(1 + trace) | |
225 | local recip = 0.5 / s | |
226 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
227 | else | |
228 | local i = 0 | |
229 | if m11 > m00 then | |
230 | i = 1 | |
231 | end | |
232 | if m22 > (i == 0 and m00 or m11) then | |
233 | i = 2 | |
234 | end | |
235 | if i == 0 then | |
236 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
237 | local recip = 0.5 / s | |
238 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
239 | elseif i == 1 then | |
240 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
241 | local recip = 0.5 / s | |
242 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
243 | elseif i == 2 then | |
244 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
245 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
246 | end | |
247 | end | |
248 | end | |
249 | ||
250 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
251 | local xs, ys, zs = x + x, y + y, z + z | |
252 | local wx, wy, wz = w * xs, w * ys, w * zs | |
253 | local xx = x * xs | |
254 | local xy = x * ys | |
255 | local xz = x * zs | |
256 | local yy = y * ys | |
257 | local yz = y * zs | |
258 | local zz = z * zs | |
259 | 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)) | |
260 | end | |
261 | ||
262 | function QuaternionSlerp(a, b, t) | |
263 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
264 | local startInterp, finishInterp; | |
265 | if cosTheta >= 0.0001 then | |
266 | if (1 - cosTheta) > 0.0001 then | |
267 | local theta = ACOS(cosTheta) | |
268 | local invSinTheta = 1 / SIN(theta) | |
269 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
270 | finishInterp = SIN(t * theta) * invSinTheta | |
271 | else | |
272 | startInterp = 1 - t | |
273 | finishInterp = t | |
274 | end | |
275 | else | |
276 | if (1 + cosTheta) > 0.0001 then | |
277 | local theta = ACOS(-cosTheta) | |
278 | local invSinTheta = 1 / SIN(theta) | |
279 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
280 | finishInterp = SIN(t * theta) * invSinTheta | |
281 | else | |
282 | startInterp = t - 1 | |
283 | finishInterp = t | |
284 | end | |
285 | end | |
286 | 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 | |
287 | end | |
288 | ||
289 | function Clerp(a, b, t) | |
290 | local qa = {QuaternionFromCFrame(a)} | |
291 | local qb = {QuaternionFromCFrame(b)} | |
292 | local ax, ay, az = a.x, a.y, a.z | |
293 | local bx, by, bz = b.x, b.y, b.z | |
294 | local _t = 1 - t | |
295 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
296 | end | |
297 | ||
298 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
299 | local frame = IT("Frame") | |
300 | frame.BackgroundTransparency = TRANSPARENCY | |
301 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
302 | frame.Position = POSITION | |
303 | frame.Size = SIZE | |
304 | frame.BackgroundColor3 = COLOR | |
305 | frame.BorderColor3 = BORDERCOLOR | |
306 | frame.Name = NAME | |
307 | frame.Parent = PARENT | |
308 | return frame | |
309 | end | |
310 | ||
311 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
312 | local label = IT("TextLabel") | |
313 | label.BackgroundTransparency = 1 | |
314 | label.Size = UD2(1, 0, 1, 0) | |
315 | label.Position = UD2(0, 0, 0, 0) | |
316 | label.TextColor3 = TEXTCOLOR | |
317 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
318 | label.TextTransparency = TRANSPARENCY | |
319 | label.FontSize = TEXTFONTSIZE | |
320 | label.Font = TEXTFONT | |
321 | label.BorderSizePixel = BORDERSIZEPIXEL | |
322 | label.TextStrokeColor3 = C3(1,1,1) | |
323 | label.TextScaled = false | |
324 | label.Text = TEXT | |
325 | label.Name = NAME | |
326 | label.Parent = PARENT | |
327 | return label | |
328 | end | |
329 | ||
330 | function NoOutlines(PART) | |
331 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
332 | end | |
333 | ||
334 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
335 | local NEWWELD = IT(TYPE) | |
336 | NEWWELD.Part0 = PART0 | |
337 | NEWWELD.Part1 = PART1 | |
338 | NEWWELD.C0 = C0 | |
339 | NEWWELD.C1 = C1 | |
340 | NEWWELD.Parent = PARENT | |
341 | return NEWWELD | |
342 | end | |
343 | ||
344 | local S = IT("Sound") | |
345 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
346 | local NEWSOUND = nil | |
347 | coroutine.resume(coroutine.create(function() | |
348 | NEWSOUND = S:Clone() | |
349 | NEWSOUND.Parent = PARENT | |
350 | NEWSOUND.Volume = VOLUME | |
351 | NEWSOUND.Pitch = PITCH | |
352 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
353 | NEWSOUND:play() | |
354 | if DOESLOOP == true then | |
355 | NEWSOUND.Looped = true | |
356 | else | |
357 | repeat wait(1) until NEWSOUND.Playing == false | |
358 | NEWSOUND:remove() | |
359 | end | |
360 | end)) | |
361 | return NEWSOUND | |
362 | ||
363 | end | |
364 | ||
365 | function CFrameFromTopBack(at, top, back) | |
366 | local right = top:Cross(back) | |
367 | 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) | |
368 | end | |
369 | ||
370 | --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(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
371 | function WACKYEFFECT(Table) | |
372 | local TYPE = (Table.EffectType or "Sphere") | |
373 | local SIZE = (Table.Size or VT(1,1,1)) | |
374 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
375 | local TRANSPARENCY = (Table.Transparency or 0) | |
376 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
377 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
378 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
379 | local ROTATION1 = (Table.RotationX or 0) | |
380 | local ROTATION2 = (Table.RotationY or 0) | |
381 | local ROTATION3 = (Table.RotationZ or 0) | |
382 | local MATERIAL = (Table.Material or "Neon") | |
383 | local COLOR = (Table.Color or C3(1,1,1)) | |
384 | local TIME = (Table.Time or 45) | |
385 | local SOUNDID = (Table.SoundID or nil) | |
386 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
387 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
388 | coroutine.resume(coroutine.create(function() | |
389 | local PLAYSSOUND = false | |
390 | local SOUND = nil | |
391 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(0,0,0), true) | |
392 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
393 | PLAYSSOUND = true | |
394 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
395 | end | |
396 | EFFECT.Color = COLOR | |
397 | local MSH = nil | |
398 | if TYPE == "Sphere" then | |
399 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
400 | elseif TYPE == "Block" then | |
401 | MSH = IT("BlockMesh",EFFECT) | |
402 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
403 | elseif TYPE == "Wave" then | |
404 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
405 | elseif TYPE == "Ring" then | |
406 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
407 | elseif TYPE == "Slash" then | |
408 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
409 | elseif TYPE == "Round Slash" then | |
410 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
411 | elseif TYPE == "Swirl" then | |
412 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
413 | elseif TYPE == "Skull" then | |
414 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
415 | elseif TYPE == "Crystal" then | |
416 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
417 | end | |
418 | if MSH ~= nil then | |
419 | local MOVESPEED = nil | |
420 | if MOVEDIRECTION ~= nil then | |
421 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
422 | end | |
423 | local GROWTH = SIZE - ENDSIZE | |
424 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
425 | if TYPE == "Block" then | |
426 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
427 | else | |
428 | EFFECT.CFrame = CFRAME | |
429 | end | |
430 | for LOOP = 1, TIME+1 do | |
431 | Swait() | |
432 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
433 | if TYPE == "Wave" then | |
434 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
435 | end | |
436 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
437 | if TYPE == "Block" then | |
438 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
439 | else | |
440 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
441 | end | |
442 | if MOVEDIRECTION ~= nil then | |
443 | local ORI = EFFECT.Orientation | |
444 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
445 | EFFECT.Orientation = ORI | |
446 | end | |
447 | end | |
448 | if PLAYSSOUND == false then | |
449 | EFFECT:remove() | |
450 | else | |
451 | repeat Swait() until SOUND.Playing == false | |
452 | EFFECT:remove() | |
453 | end | |
454 | else | |
455 | if PLAYSSOUND == false then | |
456 | EFFECT:remove() | |
457 | else | |
458 | repeat Swait() until SOUND.Playing == false | |
459 | EFFECT:remove() | |
460 | end | |
461 | end | |
462 | end)) | |
463 | end | |
464 | ||
465 | function MakeForm(PART,TYPE) | |
466 | if TYPE == "Cyl" then | |
467 | local MSH = IT("CylinderMesh",PART) | |
468 | elseif TYPE == "Ball" then | |
469 | local MSH = IT("SpecialMesh",PART) | |
470 | MSH.MeshType = "Sphere" | |
471 | elseif TYPE == "Wedge" then | |
472 | local MSH = IT("SpecialMesh",PART) | |
473 | MSH.MeshType = "Wedge" | |
474 | end | |
475 | end | |
476 | ||
477 | Debris = game:GetService("Debris") | |
478 | ||
479 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
480 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
481 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
482 | end | |
483 | ||
484 | function turnto(position) | |
485 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
486 | end | |
487 | ||
488 | --//=================================\\ | |
489 | --|| WEAPON CREATION | |
490 | --\\=================================// | |
491 | ||
492 | Humanoid.Parent = nil | |
493 | RootPart.Size = RootPart.Size*SIZE | |
494 | Torso.Size = Torso.Size*SIZE | |
495 | RightArm.Size = RightArm.Size*SIZE | |
496 | RightLeg.Size = RightLeg.Size*SIZE | |
497 | LeftArm.Size = LeftArm.Size*SIZE | |
498 | LeftLeg.Size = LeftLeg.Size*SIZE | |
499 | RootJoint.C0 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
500 | RootJoint.C1 = ROOTC0 * CF(0 * SIZE, 0 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
501 | Neck.C0 = NECKC0 * CF(0 * SIZE, 0 * SIZE, 0 + ((1 * SIZE) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
502 | Neck.C1 = CF(0 * SIZE, -0.5 * SIZE, 0 * SIZE) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
503 | RightShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
504 | LeftShoulder.C1 = CF(0 * SIZE, 0.5 * SIZE, -0.35 * SIZE) | |
505 | RightHip.C0 = CF(1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
506 | LeftHip.C0 = CF(-1 * SIZE, -1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
507 | RightHip.C1 = CF(0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
508 | LeftHip.C1 = CF(-0.5 * SIZE, 1 * SIZE, 0 * SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) | |
509 | Head.Size = Head.Size*SIZE | |
510 | RootJoint.Parent = RootPart | |
511 | Neck.Parent = Torso | |
512 | RightShoulder.Parent = Torso | |
513 | LeftShoulder.Parent = Torso | |
514 | RightHip.Parent = Torso | |
515 | LeftHip.Parent = Torso | |
516 | ||
517 | Humanoid.DisplayDistanceType = "None" | |
518 | local naeeym2 = IT("BillboardGui",Character) | |
519 | naeeym2.AlwaysOnTop = true | |
520 | naeeym2.Size = UDim2.new(5,35,2,15) | |
521 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
522 | naeeym2.MaxDistance = 500 | |
523 | naeeym2.Adornee = Character.Head | |
524 | naeeym2.Name = "Name" | |
525 | local tecks2 = IT("TextLabel",naeeym2) | |
526 | tecks2.BackgroundTransparency = 1 | |
527 | tecks2.TextScaled = true | |
528 | tecks2.BorderSizePixel = 0 | |
529 | tecks2.Text = "Corrupted Pandora" | |
530 | tecks2.Font = "Fantasy" | |
531 | tecks2.TextSize = 30 | |
532 | tecks2.TextStrokeTransparency = 0 | |
533 | tecks2.TextColor3 = C3(0,0,0) | |
534 | tecks2.TextStrokeColor3 = C3(77,0,77) | |
535 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
536 | tecks2.Parent = naeeym2 | |
537 | local top = Instance.new("Shirt") | |
538 | top.ShirtTemplate = "rbxassetid://294181664" | |
539 | top.Parent = Character | |
540 | top.Name = "Cloth" | |
541 | local bottom = Instance.new("Pants") | |
542 | bottom.PantsTemplate = "rbxassetid://129459077" | |
543 | bottom.Parent = Character | |
544 | bottom.Name = "Cloth" | |
545 | local PRT = CreatePart(3, Weapon, "Fabric", 0, 0, "Really black", "Hat", VT(1,1,1),false) | |
546 | PRT.Color = C3(0,0,0) | |
547 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.72*SIZE,0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), CF(0, 0, 0)) | |
548 | CreateMesh("SpecialMesh", PRT, "FileMesh", "26768040", "", VT(1,1,1)*SIZE, VT(0,0,0)) | |
549 | local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Detail", VT(1,1,1),false) | |
550 | PRT.Color = C3(0,0,0) | |
551 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0)) | |
552 | CreateMesh("SpecialMesh", PRT, "FileMesh", "13520257", "", VT(1,1,1)*SIZE, VT(0,0,0)) | |
553 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Detail", VT(1,1.2,0.2),false) | |
554 | PRT.Color = C3(102, 0, 102) | |
555 | MakeForm(PRT,"Ball") | |
556 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0,-.5*SIZE), CF(0, 0, 0)) | |
557 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Detail", VT(0.5,0.4,0.5),false) | |
558 | PRT.Color = C3(102, 0, 102) | |
559 | MakeForm(PRT,"Ball") | |
560 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.3,-.5*SIZE), CF(0, 0, 0)) | |
561 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Detail", VT(0.5,0.3,0.3),false) | |
562 | PRT.Color = C3(102, 0, 102) | |
563 | MakeForm(PRT,"Ball") | |
564 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.25,0.25,-.5*SIZE), CF(0, 0, 0)) | |
565 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Detail", VT(0.5,0.3,0.3),false) | |
566 | PRT.Color = C3(102, 0, 102) | |
567 | MakeForm(PRT,"Ball") | |
568 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.25,0.25,-.5*SIZE), CF(0, 0, 0)) | |
569 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Detail", VT(0.4,0.4,0.3),false) | |
570 | PRT.Color = C3(102, 0, 102) | |
571 | MakeForm(PRT,"Ball") | |
572 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(-0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(15), RAD(0)), CF(0, 0, 0)) | |
573 | local PRT = CreatePart(3, Character, "Neon", 0, 0, "Magenta", "Detail", VT(0.4,0.4,0.3),false) | |
574 | PRT.Color = C3(102, 0, 102) | |
575 | MakeForm(PRT,"Ball") | |
576 | CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0.17,-0.25,-.5*SIZE) * ANGLES(RAD(-15), RAD(-15), RAD(0)), CF(0, 0, 0)) | |
577 | ||
578 | local LASTPART = Head | |
579 | for i = 1, 24 do | |
580 | local MATH = (1-(i/30)) | |
581 | if LASTPART == Head then | |
582 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
583 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0)) | |
584 | LASTPART = Horn | |
585 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
586 | else | |
587 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
588 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
589 | LASTPART = Horn | |
590 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
591 | end | |
592 | end | |
593 | local LASTPART = Head | |
594 | for i = 1, 24 do | |
595 | local MATH = (1-(i/30)) | |
596 | if LASTPART == Head then | |
597 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
598 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0)) | |
599 | LASTPART = Horn | |
600 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
601 | else | |
602 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
603 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(5), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
604 | LASTPART = Horn | |
605 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
606 | end | |
607 | end | |
608 | local LASTPART = Head | |
609 | for i = 1, 8 do | |
610 | local MATH = (1-(i/14)) | |
611 | if LASTPART == Head then | |
612 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
613 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0)) | |
614 | LASTPART = Horn | |
615 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
616 | else | |
617 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
618 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
619 | LASTPART = Horn | |
620 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
621 | end | |
622 | end | |
623 | local LASTPART = Head | |
624 | for i = 1, 8 do | |
625 | local MATH = (1-(i/14)) | |
626 | if LASTPART == Head then | |
627 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
628 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0)) | |
629 | LASTPART = Horn | |
630 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
631 | else | |
632 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
633 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/2, 0) * ANGLES(RAD(10), RAD(-3), RAD(0)), CF(0, -Horn.Size.Y/2, 0)) | |
634 | LASTPART = Horn | |
635 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
636 | end | |
637 | end | |
638 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(1.05,0.06,1.05)*SIZE,false) | |
639 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
640 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0.5,0.1,0.5)*SIZE,false) | |
641 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
642 | MakeForm(PRT,"Cyl") | |
643 | local PRT = CreatePart(3, Weapon, "Neon", 0, 0, "Magenta", "Watch", VT(0.45,0.11,0.45)*SIZE,false) | |
644 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
645 | MakeForm(PRT,"Cyl") | |
646 | PRT.Color = C3(159/255, 111/255, 183/255) | |
647 | local RING = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0.055,0.15,0.055)*SIZE,false) | |
648 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, RING, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.5*SIZE, 0)) | |
649 | MakeForm(RING,"Cyl") | |
650 | RING.Color = C3(0,0,0) | |
651 | for i = 1, 12 do | |
652 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0,0.15,0)*SIZE,false) | |
653 | PRT.Color = C3(0,0,0) | |
654 | local MSH = IT("BlockMesh",PRT) | |
655 | MSH.Scale = VT(0.6,1,1) | |
656 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD((360/12)*i), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.2*SIZE)) | |
657 | end | |
658 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0,0.15,0.15)*SIZE,false) | |
659 | PRT.Color = C3(0,0,0) | |
660 | local MSH = IT("BlockMesh",PRT) | |
661 | MSH.Scale = VT(0.4,1,1) | |
662 | local WATCH1 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -0.075*SIZE)) | |
663 | local PRT = CreatePart(3, Weapon, "Metal", 0, 0, "Really black", "Watch", VT(0,0.15,0.15/1.5)*SIZE,false) | |
664 | PRT.Color = C3(0,0,0) | |
665 | local MSH = IT("BlockMesh",PRT) | |
666 | MSH.Scale = VT(0.4,1,1) | |
667 | local WATCH2 = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, PRT, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -0.49*SIZE, 0) * CF(0, 0, -(0.075/1.5)*SIZE)) | |
668 | coroutine.resume(coroutine.create(function() | |
669 | while true do | |
670 | Swait() | |
671 | CLOCKLOOP = CLOCKLOOP - 1*CLOCKSPEED | |
672 | WATCH1.C0 = Clerp(WATCH1.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5), RAD(0)), 1 / Animation_Speed) | |
673 | WATCH2.C0 = Clerp(WATCH2.C0, CF(0,-0.5*SIZE,0) * ANGLES(RAD(90), RAD(CLOCKLOOP*5/2), RAD(0)), 1 / Animation_Speed) | |
674 | if CLOCKLOOP <= -150 then | |
675 | if VALUE1 == false then | |
676 | CLOCKLOOP = 0 | |
677 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(3,3,3), Transparency = 0, Transparency2 = 1, CFrame = RING.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 743521450, SoundPitch = 1.2, SoundVolume = 4}) | |
678 | local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
679 | ApplyAoE(HITPOS,10,15,45,75,false) | |
680 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(15,2,15), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
681 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0.45,0.11,0.45)*SIZE, Size2 = VT(12,3,12), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
682 | if CLOCKTARGET ~= nil then | |
683 | CLOCKTARGET.Health = CLOCKTARGET.Health - 20 | |
684 | if CLOCKTARGET.Torso ~= nil then | |
685 | CLOCKTARGET.Torso.CFrame = CLOCKTARGET.Torso.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))) | |
686 | end | |
687 | if CLOCKTARGET.Health == 0 then | |
688 | CLOCKTARGET = nil | |
689 | end | |
690 | end | |
691 | end | |
692 | end | |
693 | end | |
694 | end)) | |
695 | ||
696 | for _, c in pairs(Weapon:GetChildren()) do | |
697 | if c.ClassName == "Part" then | |
698 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
699 | end | |
700 | end | |
701 | ||
702 | Neck.Name = "Weld" | |
703 | RootJoint.Name = "Weld" | |
704 | RightShoulder.Name = "Weld" | |
705 | LeftShoulder.Name = "Weld" | |
706 | RightHip.Name = "Weld" | |
707 | LeftHip.Name = "Weld" | |
708 | ||
709 | local SKILLTEXTCOLOR = C3(0/102,0,0/102) | |
710 | local SKILLFONT = "Fantasy" | |
711 | local SKILLTEXTSIZE = 7 | |
712 | ||
713 | Weapon.Parent = Character | |
714 | Humanoid.Parent = Character | |
715 | ||
716 | ||
717 | Humanoid.Died:connect(function() | |
718 | ATTACK = true | |
719 | end) | |
720 | ||
721 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23-.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
722 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50+.20, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
723 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
724 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
725 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
726 | ||
727 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Corrupted Missiles", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 1") | |
728 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Times up", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 2") | |
729 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Chained Punch", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 3") | |
730 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Corrupted Comet", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 4") | |
731 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pandora's Box", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 0, 0, "Text 5") | |
732 | local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[F] Time Lock ", SKILLTEXTCOLOR, SKILLTEXTSIZE-1, SKILLFONT, 0, 0, 0, "Text 6") | |
733 | ||
734 | --//=================================\\ | |
735 | --|| DAMAGING | |
736 | --\\=================================// | |
737 | ||
738 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
739 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
740 | defence.Name = ("HitBy"..Player.Name) | |
741 | game:GetService("Debris"):AddItem(defence, 0.001) | |
742 | Damage = Damage * DAMAGEMULTIPLIER | |
743 | if Humanoid.Health ~= 0 then | |
744 | local CritChance = MRANDOM(1,100) | |
745 | if Damage > Humanoid.Health then | |
746 | Damage = math.ceil(Humanoid.Health) | |
747 | if Damage == 0 then | |
748 | Damage = 0.1 | |
749 | end | |
750 | end | |
751 | Humanoid.Health = Humanoid.Health - Damage | |
752 | end | |
753 | end | |
754 | ||
755 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL) | |
756 | local CHILDREN = workspace:GetDescendants() | |
757 | for index, CHILD in pairs(CHILDREN) do | |
758 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
759 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
760 | if HUM then | |
761 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
762 | if TORSO then | |
763 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
764 | if INSTAKILL == true then | |
765 | CHILD:BreakJoints() | |
766 | else | |
767 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
768 | ApplyDamage(HUM,DMG,TORSO) | |
769 | end | |
770 | if FLING > 0 then | |
771 | for _, c in pairs(CHILD:GetChildren()) do | |
772 | if c:IsA("BasePart") then | |
773 | local bv = Instance.new("BodyVelocity") | |
774 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
775 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
776 | bv.Parent = c | |
777 | Debris:AddItem(bv,0.05) | |
778 | end | |
779 | end | |
780 | end | |
781 | end | |
782 | end | |
783 | end | |
784 | end | |
785 | end | |
786 | end | |
787 | ||
788 | --//=================================\\ | |
789 | --|| ATTACK FUNCTIONS AND STUFF | |
790 | --\\=================================// | |
791 | ||
792 | local HATWELD = nil | |
793 | function Pose(WhichPose,Speed,Time,Magic,Gyro,Tors) | |
794 | PLAYMAINANIM = false | |
795 | if WhichPose == "Cast1" then | |
796 | for i=0, Time, 0.1 / Animation_Speed do | |
797 | Swait() | |
798 | if Magic == true then | |
799 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Magenta".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
800 | end | |
801 | if Gyro ~= nil and Gyro ~= false then | |
802 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
803 | end | |
804 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(35)), Speed / Animation_Speed) | |
805 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-35)), Speed / Animation_Speed) | |
806 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(125), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
807 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
808 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
809 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
810 | end | |
811 | elseif WhichPose == "Cast2" then | |
812 | for i=0, Time, 0.1 / Animation_Speed do | |
813 | Swait() | |
814 | if Magic == true then | |
815 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Magenta".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
816 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Magenta".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
817 | end | |
818 | if Gyro ~= nil and Gyro ~= false then | |
819 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
820 | end | |
821 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
822 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
823 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(15)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
824 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(120), RAD(0), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
825 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
826 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
827 | end | |
828 | elseif WhichPose == "RightArmUp" then | |
829 | for i=0, Time, 0.1 / Animation_Speed do | |
830 | Swait() | |
831 | if Magic == true then | |
832 | WACKYEFFECT({Time = 15, EffectType = "Crystal", Size = VT(1,1,1)*1.5, Size2 = VT(0,4,0), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Glass", Color = BRICKC"Magenta".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
833 | end | |
834 | if Gyro ~= nil and Gyro ~= false then | |
835 | Gyro.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
836 | end | |
837 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(15)), Speed / Animation_Speed) | |
838 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
839 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.2) * ANGLES(RAD(125), RAD(0), RAD(25)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
840 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
841 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
842 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
843 | end | |
844 | elseif WhichPose == "Taunt" then | |
845 | for i=0, Time, 0.1 / Animation_Speed do | |
846 | Swait() | |
847 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
848 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
849 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
850 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
851 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
852 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
853 | end | |
854 | HATWELD.Part0 = RightArm | |
855 | HATWELD.C0 = CF(0,-1.1,-0.4) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(-20), RAD(0), RAD(0)) | |
856 | CreateSound(221057812,Torso,10,1,false) | |
857 | for i=0, Time*2, 0.1 / Animation_Speed do | |
858 | Swait() | |
859 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
860 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(35 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(0)), Speed / Animation_Speed) | |
861 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(145), RAD(0), RAD(45)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
862 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(5), RAD(25), RAD(-15)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
863 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
864 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
865 | end | |
866 | for i=0, Time, 0.1 / Animation_Speed do | |
867 | Swait() | |
868 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), Speed / Animation_Speed) | |
869 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(0)), Speed / Animation_Speed) | |
870 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35, 0.65, -0.5) * ANGLES(RAD(175), RAD(0), RAD(-35)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
871 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
872 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
873 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
874 | HATWELD.C0 = Clerp(HATWELD.C0, CF(-0.5,-1.2,-0.3) * ANGLES(RAD(0), RAD(0), RAD(180)) * ANGLES(RAD(35), RAD(0), RAD(35)), Speed / Animation_Speed) | |
875 | end | |
876 | HATWELD.Part0 = Head | |
877 | HATWELD.C0 = CF(0,0.35,0) | |
878 | elseif WhichPose == "Prepare key" then | |
879 | for i=0, Time, 0.1 / Animation_Speed do | |
880 | Swait() | |
881 | if Gyro ~= nil and Gyro ~= false then | |
882 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
883 | end | |
884 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(65)), Speed / Animation_Speed) | |
885 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-65)), Speed / Animation_Speed) | |
886 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
887 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
888 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
889 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
890 | end | |
891 | elseif WhichPose == "Turn key" then | |
892 | for i=0, Time, 0.1 / Animation_Speed do | |
893 | Swait() | |
894 | if Gyro ~= nil and Gyro ~= false then | |
895 | Gyro.cframe = CF(RootPart.Position,Tors.Position) | |
896 | end | |
897 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(75)), Speed / Animation_Speed) | |
898 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 6.5 * SIN(SINE / 12)), RAD(0), RAD(-75)), Speed / Animation_Speed) | |
899 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), -0.25) * ANGLES(RAD(90), RAD(0), RAD(75)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * RIGHTSHOULDERC0, Speed / Animation_Speed) | |
900 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5 + 0.15 * COS(SINE / 12) - 0.05 * COS(SINE / 12), 0.5) * ANGLES(RAD(-45), RAD(0), RAD(45)) * LEFTSHOULDERC0, Speed / Animation_Speed) | |
901 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(-15)), Speed / Animation_Speed) | |
902 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), Speed / Animation_Speed) | |
903 | end | |
904 | end | |
905 | PLAYMAINANIM = true | |
906 | end | |
907 | ||
908 | ||
909 | ||
910 | ||
911 | function Prison_Key() | |
912 | if Mouse.Target ~= nil then | |
913 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
914 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
915 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
916 | local GYRO = IT("BodyGyro",RootPart) | |
917 | GYRO.D = 750 | |
918 | GYRO.P = 20000 | |
919 | GYRO.MaxTorque = VT(0,40000000,0) | |
920 | local grav = Instance.new("BodyPosition",TORSO) | |
921 | grav.D = 15 | |
922 | grav.P = 20000 | |
923 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
924 | grav.position = TORSO.Position | |
925 | local GYRO2 = IT("BodyGyro",TORSO) | |
926 | GYRO2.D = 750 | |
927 | GYRO2.P = 20000 | |
928 | GYRO2.MaxTorque = VT(0,40000000,0) | |
929 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
930 | grav.Name = "Jail" | |
931 | local LOCKPARTS = {} | |
932 | ATTACK = true | |
933 | Rooted = false | |
934 | local LOCK = IT("Model",Effects) | |
935 | LOCK.Name = "Lock" | |
936 | local LOCK2 = IT("Model",LOCK) | |
937 | LOCK2.Name = "Metal" | |
938 | --CREATE LOCK-- | |
939 | local BASE = CreatePart(3, LOCK, "Neon", 0, 0, "Really black", "Keylock", VT(3, 2.5, 1)) | |
940 | LOCK.PrimaryPart = BASE | |
941 | BASE.CFrame = CF(TORSO.Position,RootPart.Position)*CF(0,0,-4) | |
942 | local PRT = CreatePart(3, LOCK, "Neon", 0, 0, "Really black", "Keylock", VT(3, 1, 3)) | |
943 | PRT.CFrame = BASE.CFrame*CF(0,-1.25,0)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
944 | MakeForm(PRT,"Cyl") | |
945 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Really black", "Hole", VT(1, 1, 1)) | |
946 | PRT.Color = C3(0,0,0) | |
947 | PRT.CFrame = BASE.CFrame*CF(0,0.3,-0.01)*ANGLES(RAD(90),RAD(0),RAD(0)) | |
948 | MakeForm(PRT,"Cyl") | |
949 | local PRT = CreatePart(3, LOCK, "Glass", 0, 0, "Really black", "Hole", VT(0.5, 1, 1)) | |
950 | PRT.Color = C3(0,0,0) | |
951 | PRT.CFrame = BASE.CFrame*CF(0,-0.2,-0.01) | |
952 | for i = 1, 45 do | |
953 | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Really black", "Keylock", VT(0.5, 0.5, 0.5)) | |
954 | PRT.CFrame = BASE.CFrame*CF(0,2,0)*ANGLES(RAD(0),RAD(0),RAD(-90+(360/90*i)))*CF(0,1,0) | |
955 | end | |
956 | local PRT = CreatePart(3, LOCK2, "Glass", 0, 0, "Really black", "Keylock", VT(0.5, 0.5, 0.5)) | |
957 | PRT.CFrame = BASE.CFrame*CF(0,1.5,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0) | |
958 | LOCK2.PrimaryPart = PRT | |
959 | --------------- | |
960 | local CHILDREN = LOCK:GetDescendants() | |
961 | for index, CHILD in pairs(CHILDREN) do | |
962 | if CHILD:IsA("BasePart") then | |
963 | CHILD.Transparency = 1 | |
964 | end | |
965 | end | |
966 | for i = 1, 75 do | |
967 | LOCK:SetPrimaryPartCFrame(CF(TORSO.Position,RootPart.Position)*CF(0,0,-4)) | |
968 | Swait() | |
969 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
970 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
971 | local CHILDREN = LOCK:GetDescendants() | |
972 | for index, CHILD in pairs(CHILDREN) do | |
973 | if CHILD:IsA("BasePart") then | |
974 | CHILD.Transparency = CHILD.Transparency - 1/75 | |
975 | end | |
976 | end | |
977 | end | |
978 | HUM.DisplayDistanceType = "None" | |
979 | local KEY = IT("Model",Effects) | |
980 | KEY.Name = "Key" | |
981 | --CREATE KEY-- | |
982 | local KBASE = CreatePart(3, KEY, "Neon", 0, 0, "Magenta", "KeyBase", VT(0.1, 1, 0.1),false) | |
983 | KEY.PrimaryPart = KBASE | |
984 | KBASE.CFrame = RightArm.CFrame*CF(0,-2.1,0)*ANGLES(RAD(0),RAD(90),RAD(0)) | |
985 | local WLD = weldBetween(RightArm,KBASE) | |
986 | for i = 1, 45 do | |
987 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Magenta", "Key", VT(0.1, 0.1, 0.1),false) | |
988 | PRT.CFrame = KBASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD((360/45*i)))*CF(0,0.25,0) | |
989 | weldBetween(KBASE,PRT) | |
990 | end | |
991 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Magenta", "Key", VT(0.3, 0.1, 0.1),false) | |
992 | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.45,0) | |
993 | weldBetween(KBASE,PRT) | |
994 | local PRT = CreatePart(3, KEY, "Neon", 0, 0, "Magenta", "Key", VT(0.3, 0.1, 0.1),false) | |
995 | PRT.CFrame = KBASE.CFrame*CF(-0.15,-0.25,0) | |
996 | weldBetween(KBASE,PRT) | |
997 | -------------- | |
998 | Rooted = true | |
999 | Pose("Prepare key",1.5,1.2,false,GYRO,TORSO) | |
1000 | coroutine.resume(coroutine.create(function() | |
1001 | for i = 1, 10 do | |
1002 | Swait() | |
1003 | GYRO2.cframe = CF(TORSO.Position,RootPart.Position) | |
1004 | GYRO.cframe = CF(RootPart.Position,TORSO.Position) | |
1005 | end | |
1006 | CreateSound(1149318312,BASE,5,1,false) | |
1007 | CreateSound(160772554,BASE,3,1,false) | |
1008 | LOCK2:SetPrimaryPartCFrame(BASE.CFrame*CF(0,0.8,0)*ANGLES(RAD(0),RAD(0),RAD(90))*CF(0,1,0)) | |
1009 | for i = 1, 4 do | |
1010 | WACKYEFFECT({Time = 35, EffectType = "Crystal", Size = VT(1,1,1), Size2 = VT(0,15,0), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(1,1.45,0)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Magenta".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1011 | end | |
1012 | WACKYEFFECT({Time = 35, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Magenta".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 5}) | |
1013 | wait(1) | |
1014 | TORSO.Parent.Parent = LOCK | |
1015 | for i = 1, 75 do | |
1016 | Swait() | |
1017 | local CHILDREN = KEY:GetDescendants() | |
1018 | for index, CHILD in pairs(CHILDREN) do | |
1019 | if CHILD:IsA("BasePart") then | |
1020 | CHILD.Transparency = i/25 | |
1021 | end | |
1022 | end | |
1023 | local CHILDREN = LOCK:GetDescendants() | |
1024 | for index, CHILD in pairs(CHILDREN) do | |
1025 | if CHILD:IsA("BasePart") and CHILD.Name ~= "HumanoidRootPart" then | |
1026 | CHILD.Transparency = CHILD.Transparency + 1/75 | |
1027 | elseif CHILD.ClassName == "Decal" then | |
1028 | CHILD.Transparency = CHILD.Transparency + 1/75 | |
1029 | end | |
1030 | end | |
1031 | end | |
1032 | TORSO.Parent:ClearAllChildren() | |
1033 | KEY:remove() | |
1034 | LOCK:remove() | |
1035 | end)) | |
1036 | Pose("Turn key",0.8,1.2,false,GYRO,TORSO) | |
1037 | GYRO:remove() | |
1038 | ATTACK = false | |
1039 | Rooted = false | |
1040 | end | |
1041 | end | |
1042 | end | |
1043 | ||
1044 | ||
1045 | ||
1046 | ||
1047 | ||
1048 | ||
1049 | function MagicMissiles() | |
1050 | ATTACK = true | |
1051 | Rooted = true | |
1052 | local SELECTING = true | |
1053 | local SPOTS = {} | |
1054 | coroutine.resume(coroutine.create(function() | |
1055 | local LOOP = 0 | |
1056 | repeat | |
1057 | LOOP = LOOP + 1 | |
1058 | Swait() | |
1059 | if LOOP >= 10 then | |
1060 | LOOP = 0 | |
1061 | for i = 1, #SPOTS do | |
1062 | if SPOTS[i] ~= nil then | |
1063 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1064 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1065 | end | |
1066 | end | |
1067 | end | |
1068 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1069 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1070 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1071 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1072 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1073 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1074 | until SELECTING == false | |
1075 | Rooted = false | |
1076 | repeat | |
1077 | LOOP = LOOP + 1 | |
1078 | Swait() | |
1079 | if LOOP >= 10 then | |
1080 | LOOP = 0 | |
1081 | for i = 1, #SPOTS do | |
1082 | if SPOTS[i] ~= nil then | |
1083 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(8,2,8), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1084 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,3,6), Transparency = 0, Transparency2 = 1, CFrame = SPOTS[i], MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1085 | end | |
1086 | end | |
1087 | end | |
1088 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1089 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1090 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1091 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1092 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1093 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1094 | until ATTACK == false | |
1095 | end)) | |
1096 | repeat | |
1097 | repeat Swait() until HOLD == true | |
1098 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
1099 | if DIST > 65 then | |
1100 | DIST = 65 | |
1101 | end | |
1102 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
1103 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1104 | if HITFLOOR ~= nil then | |
1105 | table.insert(SPOTS,CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0))) | |
1106 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(6,2,6), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 1, SoundVolume = 6}) | |
1107 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(4,3,4), Transparency = 0, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.2,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1108 | end | |
1109 | repeat Swait() until HOLD == false | |
1110 | until #SPOTS == 5 | |
1111 | SELECTING = false | |
1112 | for i = 1, #SPOTS do | |
1113 | if SPOTS[i] ~= nil then | |
1114 | local POS = SPOTS[i] | |
1115 | coroutine.resume(coroutine.create(function() | |
1116 | local MISSILE = IT("Model",Effects) | |
1117 | MISSILE.Name = "Missile" | |
1118 | local BASEPART = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,2,2)) | |
1119 | MakeForm(BASEPART,"Cyl") | |
1120 | MISSILE.PrimaryPart = BASEPART | |
1121 | BASEPART.CFrame = POS*CF(0,-30*3,0) | |
1122 | local HEAD = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2,4,2)) | |
1123 | MakeForm(HEAD,"Ball") | |
1124 | HEAD.CFrame = BASEPART.CFrame*CF(0,-1,0) | |
1125 | local TAIL = CreatePart(3, MISSILE, "Neon", 0, 1, "Alder", "Part", VT(2.5,0.1,2.5)) | |
1126 | MakeForm(TAIL,"Cyl") | |
1127 | TAIL.CFrame = BASEPART.CFrame*CF(0,-1,0) | |
1128 | for i = 1, 10 do | |
1129 | Swait() | |
1130 | for _, c in pairs(MISSILE:GetChildren()) do | |
1131 | if c.ClassName == "Part" then | |
1132 | c.Transparency = c.Transparency - 1/10 | |
1133 | end | |
1134 | end | |
1135 | end | |
1136 | for i = 1, 15*1.5 do | |
1137 | Swait() | |
1138 | MISSILE:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,1.35*3,0)) | |
1139 | end | |
1140 | ApplyAoE(BASEPART.CFrame.p,20,35,45,75,false) | |
1141 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(75,1,75), Transparency = 0.5, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 1.2, SoundVolume = 4}) | |
1142 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = BASEPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 165970126, SoundPitch = MRANDOM(13,15)/10, SoundVolume = 4}) | |
1143 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(22,2,22), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1144 | WACKYEFFECT({Time = 45, EffectType = "Wave", Size = VT(0,0,0)*SIZE, Size2 = VT(20,3,20), Transparency = 0, Transparency2 = 1, CFrame = POS * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1145 | MISSILE:remove() | |
1146 | end)) | |
1147 | end | |
1148 | end | |
1149 | wait(0.6) | |
1150 | ATTACK = false | |
1151 | Rooted = false | |
1152 | end | |
1153 | ||
1154 | function TimesUp() | |
1155 | CLOCKTARGET = nil | |
1156 | if Mouse.Target.Parent ~= Character and Mouse.Target.Parent.Parent ~= Character and Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then | |
1157 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") | |
1158 | local TORSO = HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
1159 | if TORSO then | |
1160 | ATTACK = true | |
1161 | Rooted = false | |
1162 | coroutine.resume(coroutine.create(function() | |
1163 | repeat | |
1164 | Swait() | |
1165 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1166 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1167 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.5*SIZE, -0.2*SIZE) * ANGLES(RAD(75), RAD(45), RAD(0)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1168 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1169 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1170 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1171 | until ATTACK == false | |
1172 | end)) | |
1173 | if Effects:FindFirstChild("NeonDoll") then | |
1174 | repeat Swait() until Effects:FindFirstChild("NeonDoll") == nil | |
1175 | end | |
1176 | wait(0.5) | |
1177 | local FAKECHARACTER = IT("Model",Effects) | |
1178 | FAKECHARACTER.Name = "NeonDoll" | |
1179 | local TORS = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.3,0.3,0.15),false) | |
1180 | CreateWeldOrSnapOrMotor("Weld", RING, RING, TORS, CF(0,0.6,0), CF(0,0,0)) | |
1181 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
1182 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(15)), CF(0,0.15,0)) | |
1183 | local LEG = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
1184 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, LEG, CF(-0.15/2,-0.15,0) * ANGLES(RAD(0), RAD(0), RAD(-15)), CF(0,0.15,0)) | |
1185 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
1186 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0,0.15,0)) | |
1187 | local ARM = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.3,0.15),false) | |
1188 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, ARM, CF(-0.15,0.15/2,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0,0.15,0)) | |
1189 | local HEAD = CreatePart(3, FAKECHARACTER, "Neon", 0, 1, "Alder", "Part", VT(0.15,0.15,0.15),false) | |
1190 | CreateWeldOrSnapOrMotor("Weld", TORS, TORS, HEAD, CF(0,0.225,0), CF(0,0,0)) | |
1191 | CreateSound(201858045, TORS, 5, 0.4, false) | |
1192 | for i = 1, 150 do | |
1193 | Swait() | |
1194 | CLOCKSPEED = 6 | |
1195 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
1196 | if c.ClassName == "Part" then | |
1197 | c.Transparency = c.Transparency - 0.5/150 | |
1198 | end | |
1199 | end | |
1200 | end | |
1201 | CLOCKTARGET = HUM | |
1202 | coroutine.resume(coroutine.create(function() | |
1203 | repeat Swait() CLOCKSPEED = 2 until CLOCKTARGET == nil | |
1204 | for i = 1, 25 do | |
1205 | Swait() | |
1206 | for _, c in pairs(FAKECHARACTER:GetChildren()) do | |
1207 | if c.ClassName == "Part" then | |
1208 | c.Transparency = c.Transparency + 0.5/25 | |
1209 | end | |
1210 | end | |
1211 | end | |
1212 | CLOCKSPEED = 1 | |
1213 | FAKECHARACTER:remove() | |
1214 | end)) | |
1215 | wait(0.5) | |
1216 | ATTACK = false | |
1217 | Rooted = false | |
1218 | end | |
1219 | end | |
1220 | end | |
1221 | ||
1222 | function ChainPunch() | |
1223 | ATTACK = true | |
1224 | Rooted = false | |
1225 | local GYRO = IT("BodyGyro",RootPart) | |
1226 | GYRO.D = 25 | |
1227 | GYRO.P = 2000 | |
1228 | GYRO.MaxTorque = VT(0,40000,0) | |
1229 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1230 | repeat | |
1231 | Swait() | |
1232 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1233 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1234 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 4 * SIN(SINE / 12)), RAD(25), RAD(0)), 1 / Animation_Speed) | |
1235 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1236 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1237 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1238 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1239 | until HOLD == true | |
1240 | local POS = Mouse.Hit.p | |
1241 | local CHAINS = false | |
1242 | local CHAINLINKS = {} | |
1243 | local A = IT("Attachment",RightArm) | |
1244 | A.Position = VT(1,-1,0)*SIZE | |
1245 | A.Orientation = VT(-90, -89.982, 0) | |
1246 | local B = IT("Attachment",RightArm) | |
1247 | B.Position = VT(-1,-1,0)*SIZE | |
1248 | B.Orientation = VT(-90, 89.988, 0) | |
1249 | local C = IT("Attachment",RightArm) | |
1250 | C.Position = VT(0.5,-1.3,0)*SIZE | |
1251 | C.Orientation = VT(-90, -89.982, 0) | |
1252 | local D = IT("Attachment",RightArm) | |
1253 | D.Position = VT(-0.5,-1.3,0)*SIZE | |
1254 | D.Orientation = VT(-90, 89.988, 0) | |
1255 | local LIGHT = IT("Attachment",RightArm) | |
1256 | LIGHT.Position = VT(0,-1,0)*SIZE | |
1257 | local LIGHT2 = IT("PointLight",LIGHT) | |
1258 | LIGHT2.Range = 7 | |
1259 | LIGHT2.Brightness = 5 | |
1260 | LIGHT2.Color = SKILLTEXTCOLOR | |
1261 | for i = 1, 2 do | |
1262 | local TWIST = -2 | |
1263 | local START = A | |
1264 | local END = B | |
1265 | if i == 1 then | |
1266 | START = B | |
1267 | END = A | |
1268 | end | |
1269 | local ChainLink = IT("Beam",Torso) | |
1270 | ChainLink.Texture = "rbxassetid://73042633" | |
1271 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1272 | ChainLink.TextureSpeed = 1 | |
1273 | ChainLink.Width0 = 1 | |
1274 | ChainLink.Width1 = 1 | |
1275 | ChainLink.TextureLength = 2.5 | |
1276 | ChainLink.Attachment0 = START | |
1277 | ChainLink.Attachment1 = END | |
1278 | ChainLink.CurveSize0 = TWIST | |
1279 | ChainLink.CurveSize1 = TWIST | |
1280 | --ChainLink.FaceCamera = true | |
1281 | ChainLink.Segments = 45 | |
1282 | ChainLink.Transparency = NumberSequence.new(1) | |
1283 | table.insert(CHAINLINKS,ChainLink) | |
1284 | end | |
1285 | for i = 1, 2 do | |
1286 | local TWIST = -1 | |
1287 | local START = C | |
1288 | local END = D | |
1289 | if i == 1 then | |
1290 | START = D | |
1291 | END = C | |
1292 | end | |
1293 | local ChainLink = IT("Beam",Torso) | |
1294 | ChainLink.Texture = "rbxassetid://73042633" | |
1295 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1296 | ChainLink.TextureSpeed = 1 | |
1297 | ChainLink.Width0 = 1 | |
1298 | ChainLink.Width1 = 1 | |
1299 | ChainLink.TextureLength = 5 | |
1300 | ChainLink.Attachment0 = START | |
1301 | ChainLink.Attachment1 = END | |
1302 | ChainLink.CurveSize0 = TWIST | |
1303 | ChainLink.CurveSize1 = TWIST | |
1304 | --ChainLink.FaceCamera = true | |
1305 | ChainLink.Segments = 25 | |
1306 | ChainLink.LightEmission = 0.5 | |
1307 | ChainLink.Transparency = NumberSequence.new(1) | |
1308 | table.insert(CHAINLINKS,ChainLink) | |
1309 | end | |
1310 | coroutine.resume(coroutine.create(function() | |
1311 | repeat | |
1312 | Swait() | |
1313 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1314 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 0.15 / Animation_Speed) | |
1315 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0.2*SIZE) * ANGLES(RAD(60), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1316 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1317 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1318 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1319 | until CHAINS == true | |
1320 | repeat | |
1321 | Swait() | |
1322 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1323 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1324 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, -0.2*SIZE) * ANGLES(RAD(90), RAD(0), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1325 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1326 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1327 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1328 | until ATTACK == false | |
1329 | for e = 1, 15 do | |
1330 | Swait() | |
1331 | for i = 1, #CHAINLINKS do | |
1332 | CHAINLINKS[i].Transparency = NumberSequence.new((e/15)) | |
1333 | end | |
1334 | end | |
1335 | A:remove() | |
1336 | B:remove() | |
1337 | C:remove() | |
1338 | D:remove() | |
1339 | end)) | |
1340 | CreateSound(233856115, RightArm, 5, 1.2, false) | |
1341 | for e = 1, 15 do | |
1342 | Swait() | |
1343 | for i = 1, #CHAINLINKS do | |
1344 | CHAINLINKS[i].Transparency = NumberSequence.new(1-(e/15)) | |
1345 | end | |
1346 | end | |
1347 | CHAINS = true | |
1348 | Rooted = true | |
1349 | wait(0.25) | |
1350 | local FIST = CreatePart(3, Effects, "Neon", 0, 0.5, "Alder", "Part", VT(2,2,2)) | |
1351 | FIST.Color = C3(1, 215/255, 1) | |
1352 | FIST.CFrame = CF(RightArm.CFrame*CF(0,-1.3*SIZE,0).p,POS) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
1353 | local LIGHT3 = IT("PointLight",FIST) | |
1354 | LIGHT3.Range = 7 | |
1355 | LIGHT3.Brightness = 5 | |
1356 | LIGHT3.Color = SKILLTEXTCOLOR | |
1357 | CreateMesh("SpecialMesh", FIST, "FileMesh", "90718752", "", VT(10,10,10), VT(0,0,0)) | |
1358 | local FISTA = IT("Attachment",FIST) | |
1359 | FISTA.Position = VT(0.062, 0.977, 0) | |
1360 | local ChainLink = IT("Beam",Torso) | |
1361 | ChainLink.Texture = "rbxassetid://73042633" | |
1362 | ChainLink.Color = ColorSequence.new(SKILLTEXTCOLOR) | |
1363 | ChainLink.TextureSpeed = 0 | |
1364 | ChainLink.Width0 = 3 | |
1365 | ChainLink.Width1 = 3 | |
1366 | ChainLink.TextureLength = 12 | |
1367 | ChainLink.Attachment0 = LIGHT | |
1368 | ChainLink.Attachment1 = FISTA | |
1369 | ChainLink.FaceCamera = true | |
1370 | ChainLink.Segments = 45 | |
1371 | ChainLink.LightEmission = 0.5 | |
1372 | ChainLink.Transparency = NumberSequence.new(0.25) | |
1373 | local FISTSOUND = CreateSound(288641686, FIST, 5, 1.2, false) | |
1374 | for i = 1, 85 do | |
1375 | Swait() | |
1376 | FIST.CFrame = FIST.CFrame*CF(0,-2,0) | |
1377 | ChainLink.TextureLength = 12+(i*2) | |
1378 | ApplyAoE(FIST.Position,10,15,25,100,false) | |
1379 | WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame*CF(0,-1,0) * ANGLES(RAD(0), RAD(i*15), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1380 | local HITFLOOR = Raycast(FIST.Position, (CF(FIST.Position, FIST.CFrame*CF(0,-1,0).p)).lookVector, 2.1, Character) | |
1381 | if HITFLOOR ~= nil then | |
1382 | HITFLOOR:BreakJoints() | |
1383 | coroutine.resume(coroutine.create(function() | |
1384 | for i = 1, 15 do | |
1385 | Swait() | |
1386 | FISTSOUND.Volume = FISTSOUND.Volume - 0.15 | |
1387 | ApplyAoE(FIST.Position,10+(i*2),5,15,5,false) | |
1388 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIST.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1389 | end | |
1390 | end)) | |
1391 | break | |
1392 | end | |
1393 | end | |
1394 | coroutine.resume(coroutine.create(function() | |
1395 | for i = 1, 50 do | |
1396 | Swait() | |
1397 | FIST.Transparency = FIST.Transparency + 0.5/50 | |
1398 | LIGHT3.Range = LIGHT3.Range - 7/50 | |
1399 | end | |
1400 | FIST:remove() | |
1401 | end)) | |
1402 | LIGHT:remove() | |
1403 | GYRO:remove() | |
1404 | ATTACK = false | |
1405 | Rooted = false | |
1406 | end | |
1407 | ||
1408 | function WarpMeteor() | |
1409 | local DIST = (RootPart.Position - Mouse.Hit.p).Magnitude | |
1410 | if DIST > 180 then | |
1411 | DIST = 180 | |
1412 | end | |
1413 | local RAY,RAYPOS = Raycast(RootPart.Position, (CF(RootPart.Position, Mouse.Hit.p)).lookVector, DIST, workspace) | |
1414 | local HITFLOOR,HITPOS,NORMAL = Raycast(RAYPOS+VT(0,45,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 75*SIZE, Character) | |
1415 | if HITFLOOR then | |
1416 | local POS = HITPOS | |
1417 | ATTACK = true | |
1418 | Rooted = true | |
1419 | local WARPED = false | |
1420 | local SMASHED = false | |
1421 | local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position+VT(0,1,0), (CF(RAYPOS, RAYPOS + VT(0, -1, 0))).lookVector, 25*SIZE, Character) | |
1422 | coroutine.resume(coroutine.create(function() | |
1423 | repeat | |
1424 | Swait() | |
1425 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1426 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1427 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1428 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1429 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1430 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1431 | until WARPED == true | |
1432 | repeat | |
1433 | Swait() | |
1434 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1435 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1436 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1437 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1438 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -0.5*SIZE + 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.5*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1439 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.1*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1440 | until SMASHED == true | |
1441 | repeat | |
1442 | Swait() | |
1443 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(90), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1444 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-40), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1445 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(-15), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1446 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(170), RAD(15), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1447 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
1448 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1449 | until ATTACK == false | |
1450 | end)) | |
1451 | VALUE1 = true | |
1452 | CreateSound(233856115, Torso, 5, 1.6, false) | |
1453 | for i = 1, 25 do | |
1454 | Swait() | |
1455 | for _, c in pairs(Character:GetChildren()) do | |
1456 | if c.ClassName == "Part" then | |
1457 | c.Transparency = c.Transparency + 1/25 | |
1458 | end | |
1459 | end | |
1460 | for _, c in pairs(Weapon:GetChildren()) do | |
1461 | if c.ClassName == "Part" then | |
1462 | c.Transparency = c.Transparency + 1/25 | |
1463 | end | |
1464 | end | |
1465 | end | |
1466 | UNANCHOR = false | |
1467 | RootPart.Anchored = true | |
1468 | RootPart.Velocity = VT(0,0,0) | |
1469 | local ROOTPOS = RootPart.Position | |
1470 | RootPart.CFrame = CF(POS+VT(0,300,0),VT(ROOTPOS.X,POS.Y+300,ROOTPOS.Z)) | |
1471 | WARPED = true | |
1472 | for i = 1, 25 do | |
1473 | Swait() | |
1474 | for _, c in pairs(Character:GetChildren()) do | |
1475 | if c.ClassName == "Part" then | |
1476 | c.Transparency = c.Transparency - 1/25 | |
1477 | end | |
1478 | end | |
1479 | for _, c in pairs(Weapon:GetChildren()) do | |
1480 | if c.ClassName == "Part" then | |
1481 | c.Transparency = c.Transparency - 1/25 | |
1482 | end | |
1483 | end | |
1484 | end | |
1485 | local SHELL = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Part", VT(0,0,0)) | |
1486 | SHELL.CFrame = RootPart.CFrame | |
1487 | MakeForm(SHELL,"Ball") | |
1488 | CreateSound(402981977, SHELL, 5, 1.6, false) | |
1489 | for i = 1, 10 do | |
1490 | Swait() | |
1491 | SHELL.Transparency = SHELL.Transparency - 1/10 | |
1492 | SHELL.Size = SHELL.Size + VT(0.6,0.6,0.6)*1.8 | |
1493 | end | |
1494 | for i = 1, math.ceil(75/2) do | |
1495 | Swait() | |
1496 | RootPart.CFrame = RootPart.CFrame*CF(0,-3.5*2,0) | |
1497 | SHELL.CFrame = CF(RootPart.Position) | |
1498 | WACKYEFFECT({Time = 5, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(5,3,5), Transparency = 0.5, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = SHELL.Position+VT(0,15,0), RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1499 | end | |
1500 | RootPart.CFrame = CF(POS+VT(0,1,0),VT(ROOTPOS.X,HITPOS.Y+1,ROOTPOS.Z)) | |
1501 | SHELL.CFrame = CF(RootPart.Position) | |
1502 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = SHELL.Size, Size2 = VT(35,35,35)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6}) | |
1503 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*3.8, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1504 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(SHELL.Size.X,5,SHELL.Size.Z), Size2 = VT(45,3,45)*4, Transparency = 0, Transparency2 = 1, CFrame = SHELL.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = SHELL.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1505 | for i = 1, 5 do | |
1506 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*4, Transparency = 0.5, Transparency2 = 1, CFrame = RootPart.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1507 | end | |
1508 | SHELL:remove() | |
1509 | ApplyAoE(RootPart.Position,75,35,75,175,false) | |
1510 | SMASHED = true | |
1511 | wait(1) | |
1512 | VALUE1 = false | |
1513 | UNANCHOR = true | |
1514 | ATTACK = false | |
1515 | Rooted = false | |
1516 | end | |
1517 | end | |
1518 | ||
1519 | function PandorasBox() | |
1520 | local HITFLOOR,HITPOS = Raycast(RootPart.CFrame*CF(0,0,-6.5).p, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
1521 | if HITFLOOR ~= nil then | |
1522 | ATTACK = true | |
1523 | Rooted = true | |
1524 | local RINGSPIN = true | |
1525 | local CONSTRUCTING = true | |
1526 | local RING = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Ring", VT(0,0,0)) | |
1527 | RING.Color = C3(0,0,0) | |
1528 | MakeForm(RING,"Cyl") | |
1529 | RING.CFrame = CF(HITPOS) | |
1530 | CreateSound(402981977, RING, 5, 1.2, false) | |
1531 | coroutine.resume(coroutine.create(function() | |
1532 | repeat | |
1533 | Swait() | |
1534 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1535 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1536 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1537 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.35*SIZE, 0.65*SIZE, 0*SIZE) * ANGLES(RAD(115), RAD(45), RAD(35)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1538 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1539 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1540 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1541 | until CONSTRUCTING == false | |
1542 | repeat | |
1543 | Swait() | |
1544 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1545 | until RINGSPIN == false | |
1546 | for i = 1, 25 do | |
1547 | Swait() | |
1548 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
1549 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
1550 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
1551 | RING.Transparency = RING.Transparency + 1/25 | |
1552 | end | |
1553 | RING:remove() | |
1554 | end)) | |
1555 | for i = 1, 15 do | |
1556 | Swait() | |
1557 | RING.Size = RING.Size + VT(0.75,0,0.75) | |
1558 | RING.Transparency = RING.Transparency - 1/15 | |
1559 | end | |
1560 | local BOXSPIN = true | |
1561 | local PANDORASBOX = IT("Model",Effects) | |
1562 | PANDORASBOX.Name = "Pandora's Box" | |
1563 | local BOX = IT("Model",PANDORASBOX) | |
1564 | BOX.Name = "Body" | |
1565 | local LID = IT("Model",PANDORASBOX) | |
1566 | LID.Name = "Lid" | |
1567 | --BUILDING THE BOX-- | |
1568 | local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Alder", "Black", VT(2,1.8,2)) | |
1569 | BASE.Color = C3(0,0,0) | |
1570 | PANDORASBOX.PrimaryPart = BASE | |
1571 | BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z)) | |
1572 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1573 | WOOD.CFrame = BASE.CFrame*CF(1,0,1) | |
1574 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1575 | WOOD.CFrame = BASE.CFrame*CF(1,0,-1) | |
1576 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1577 | WOOD.CFrame = BASE.CFrame*CF(-1,0,1) | |
1578 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
1579 | WOOD.CFrame = BASE.CFrame*CF(-1,0,-1) | |
1580 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1581 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,1) | |
1582 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1583 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1) | |
1584 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1585 | WOOD.CFrame = BASE.CFrame*CF(1,0.9,0) | |
1586 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1587 | WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0) | |
1588 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1589 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1) | |
1590 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1591 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1) | |
1592 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1593 | WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0) | |
1594 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1595 | WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0) | |
1596 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1)) | |
1597 | WOOD.CFrame = BASE.CFrame*CF(0,0,1) | |
1598 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1)) | |
1599 | WOOD.CFrame = BASE.CFrame*CF(0,0,-1) | |
1600 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1)) | |
1601 | WOOD.CFrame = BASE.CFrame*CF(1,0,0) | |
1602 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1)) | |
1603 | WOOD.CFrame = BASE.CFrame*CF(-1,0,0) | |
1604 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1)) | |
1605 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0) | |
1606 | ------------- | |
1607 | local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1)) | |
1608 | LIDPART.CFrame = BASE.CFrame*CF(0,1,0) | |
1609 | LID.PrimaryPart = LIDPART | |
1610 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1611 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1) | |
1612 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
1613 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,1) | |
1614 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1615 | WOOD.CFrame = LIDPART.CFrame*CF(1,0,0) | |
1616 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
1617 | WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0) | |
1618 | local DECAL = IT("Decal",LIDPART) | |
1619 | DECAL.Face = "Top" | |
1620 | DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061" | |
1621 | DECAL.Color3 = C3(0,0,0) | |
1622 | --BUILDING THE BOX-- | |
1623 | coroutine.resume(coroutine.create(function() | |
1624 | repeat | |
1625 | Swait() | |
1626 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0))) | |
1627 | until BOXSPIN == false | |
1628 | end)) | |
1629 | for i = 1, 25 do | |
1630 | Swait() | |
1631 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0)) | |
1632 | end | |
1633 | wait(0.5) | |
1634 | BOXSPIN = false | |
1635 | CONSTRUCTING = false | |
1636 | coroutine.resume(coroutine.create(function() | |
1637 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = LIDPART.Size, Size2 = VT(3,0,3)*4, Transparency = 0, Transparency2 = 1, CFrame = LIDPART.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 168586586, SoundPitch = 1.3, SoundVolume = 6}) | |
1638 | --[[for i = 1, 45 do | |
1639 | Swait() | |
1640 | LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0))) | |
1641 | end- | |
1642 | LID:remove()]]-- | |
1643 | for _, c in pairs(LID:GetChildren()) do | |
1644 | if c.ClassName == "Part" then | |
1645 | c.Anchored = false | |
1646 | c.CanCollide = true | |
1647 | if c ~= LIDPART then | |
1648 | weldBetween(LIDPART,c) | |
1649 | end | |
1650 | end | |
1651 | end | |
1652 | LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65 | |
1653 | Debris:AddItem(LID,15) | |
1654 | wait(0.5) | |
1655 | local RANDOMEFFECT = MRANDOM(1,4) | |
1656 | if RANDOMEFFECT == 1 then | |
1657 | for i = 1, 45 do | |
1658 | wait((2-(i/15))/15) | |
1659 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,MRANDOM(12,15),0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(1,5)), MoveToPos = BASE.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.8, SoundVolume = 6}) | |
1660 | end | |
1661 | wait(1) | |
1662 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*12, Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 165970126, SoundPitch = 0.75, SoundVolume = 6}) | |
1663 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*10, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 469345336, SoundPitch = 0.75, SoundVolume = 6}) | |
1664 | WACKYEFFECT({Time = 55, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(45,3,45)*9, Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 0.75, SoundVolume = 6}) | |
1665 | for i = 1, 5 do | |
1666 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35)*12, Transparency = 0.5, Transparency2 = 1, CFrame = BASE.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1667 | end | |
1668 | ApplyAoE(BASE.Position,50,1,200,375,false) | |
1669 | ApplyAoE(BASE.Position,250,35,75,175,false) | |
1670 | elseif RANDOMEFFECT == 2 then | |
1671 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3)) | |
1672 | FIELD.CFrame = BASE.CFrame | |
1673 | MakeForm(FIELD,"Ball") | |
1674 | for i = 1, 50 do | |
1675 | Swait() | |
1676 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
1677 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
1678 | end | |
1679 | wait(0.2) | |
1680 | local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true) | |
1681 | coroutine.resume(coroutine.create(function() | |
1682 | for i = 1, 75 do | |
1683 | Swait() | |
1684 | LOOP.Volume = LOOP.Volume + 10/75 | |
1685 | LOOP.Parent = FIELD | |
1686 | local CHILDREN = workspace:GetDescendants() | |
1687 | for index, CHILD in pairs(CHILDREN) do | |
1688 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1689 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1690 | if HUM then | |
1691 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1692 | if TORSO then | |
1693 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1694 | HUM.Health = HUM.Health - 0.1 | |
1695 | TORSO.Velocity = VT(0,5,0) | |
1696 | HUM.PlatformStand = true | |
1697 | if TORSO.RotVelocity.Magnitude < 15 then | |
1698 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1699 | end | |
1700 | end | |
1701 | end | |
1702 | end | |
1703 | end | |
1704 | end | |
1705 | FIELD.Size = FIELD.Size + VT(3,3,3) | |
1706 | FIELD.Transparency = FIELD.Transparency + 0.8/75 | |
1707 | end | |
1708 | for i = 1, 500 do | |
1709 | Swait() | |
1710 | LOOP.Parent = FIELD | |
1711 | local CHILDREN = workspace:GetDescendants() | |
1712 | for index, CHILD in pairs(CHILDREN) do | |
1713 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1714 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1715 | if HUM then | |
1716 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1717 | if TORSO then | |
1718 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1719 | TORSO.Velocity = VT(0,5,0) | |
1720 | HUM.Health = HUM.Health - 0.1 | |
1721 | HUM.PlatformStand = true | |
1722 | if TORSO.RotVelocity.Magnitude < 15 then | |
1723 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1724 | end | |
1725 | end | |
1726 | end | |
1727 | end | |
1728 | end | |
1729 | end | |
1730 | end | |
1731 | for i = 1, 25 do | |
1732 | Swait() | |
1733 | LOOP.Volume = LOOP.Volume + 10/25 | |
1734 | LOOP.Parent = FIELD | |
1735 | local CHILDREN = workspace:GetDescendants() | |
1736 | for index, CHILD in pairs(CHILDREN) do | |
1737 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1738 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1739 | if HUM then | |
1740 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1741 | if TORSO then | |
1742 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then | |
1743 | TORSO.Velocity = VT(0,5,0) | |
1744 | HUM.Health = HUM.Health - 0.1 | |
1745 | HUM.PlatformStand = false | |
1746 | if TORSO.RotVelocity.Magnitude < 15 then | |
1747 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1748 | end | |
1749 | end | |
1750 | end | |
1751 | end | |
1752 | end | |
1753 | end | |
1754 | FIELD.Size = FIELD.Size - VT(3,3,3) | |
1755 | FIELD.Transparency = FIELD.Transparency + 0.2/25 | |
1756 | end | |
1757 | FIELD:remove() | |
1758 | end)) | |
1759 | elseif RANDOMEFFECT == 3 then | |
1760 | for i = 1, 10 do | |
1761 | wait(0.15) | |
1762 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(3,8,3), Transparency = 0, Transparency2 = 1, CFrame = BASE.CFrame*CF(0,0.3,0), MoveToPos = BASE.Position+VT(0,6,0), RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 90655239, SoundPitch = 0.8, SoundVolume = 6}) | |
1763 | coroutine.resume(coroutine.create(function() | |
1764 | local MINION = CLONE:Clone() | |
1765 | MINION.Parent = Effects | |
1766 | MINION.Name = "Shadow" | |
1767 | MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) | |
1768 | MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100) | |
1769 | for _, c in pairs(MINION:GetChildren()) do | |
1770 | if c.ClassName == "Part" then | |
1771 | c.Material = "Neon" | |
1772 | c.Color = C3(0,0,0) | |
1773 | c.Transparency = 0.25 | |
1774 | if c.Name == "Head" then | |
1775 | c:ClearAllChildren() | |
1776 | local MSH = IT("BlockMesh",c) | |
1777 | MSH.Scale = VT(0.5,1,1) | |
1778 | end | |
1779 | end | |
1780 | end | |
1781 | local TORSO = MINION.Torso | |
1782 | local HUMAN = MINION.Humanoid | |
1783 | HUMAN.WalkSpeed = 20 | |
1784 | HUMAN.MaxHealth = math.huge | |
1785 | HUMAN.Health = math.huge | |
1786 | HUMAN.DisplayDistanceType = "None" | |
1787 | HUMAN.Died:connect(function() | |
1788 | MINION:remove() | |
1789 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false) | |
1790 | end) | |
1791 | wait(1) | |
1792 | local findNearestTorso = function(POS) | |
1793 | local list = game.Workspace:GetDescendants() | |
1794 | local torso = nil | |
1795 | local dist = 500 | |
1796 | local temp = nil | |
1797 | local human = nil | |
1798 | local temp2 = nil | |
1799 | for x = 1, #list do | |
1800 | temp2 = list[x] | |
1801 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then | |
1802 | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") | |
1803 | human = temp2:findFirstChildOfClass("Humanoid") | |
1804 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
1805 | if (temp.Position - POS).magnitude < dist then | |
1806 | torso = temp | |
1807 | dist = (temp.Position - POS).magnitude | |
1808 | end | |
1809 | end | |
1810 | end | |
1811 | end | |
1812 | return torso, dist | |
1813 | end | |
1814 | for i = 1, 40 do | |
1815 | if HUMAN.Health == 0 then | |
1816 | break | |
1817 | end | |
1818 | wait(0.3) | |
1819 | local target,dist= findNearestTorso(TORSO.Position) | |
1820 | if target then | |
1821 | HUMAN:MoveTo(target.Position) | |
1822 | if dist < 25 then | |
1823 | CreateSound(348663022, TORSO, 10, 1, true) | |
1824 | wait(2) | |
1825 | --local ANIM = HUMAN:LoadAnimation(ATANIM) | |
1826 | --ANIM:Play() | |
1827 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false) | |
1828 | ApplyAoE(TORSO.Position,10,0,0,85,true) | |
1829 | WACKYEFFECT({Time = 15, EffectType = "Sphere", Size = VT(5,5,5), Size2 = VT(25,25,25), Transparency = 0, Transparency2 = 1, CFrame = TORSO.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 201858087, SoundPitch = 0.8, SoundVolume = 10}) | |
1830 | for i = 1, 5 do | |
1831 | WACKYEFFECT({Time = 75, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(15,1,15), Transparency = 0.5, Transparency2 = 1, CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-15,15)/7.5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1832 | end | |
1833 | break | |
1834 | end | |
1835 | end | |
1836 | end | |
1837 | MINION:remove() | |
1838 | end)) | |
1839 | end | |
1840 | elseif RANDOMEFFECT == 4 then | |
1841 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3)) | |
1842 | FIELD.Color = C3(0,0,0) | |
1843 | FIELD.CFrame = BASE.CFrame | |
1844 | MakeForm(FIELD,"Ball") | |
1845 | FIELD.CanCollide = true | |
1846 | for i = 1, 50 do | |
1847 | Swait() | |
1848 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
1849 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
1850 | end | |
1851 | wait(0.2) | |
1852 | local LOOP = CreateSound(487214658, FIELD, 0, 1, true) | |
1853 | coroutine.resume(coroutine.create(function() | |
1854 | local E = 0 | |
1855 | for i = 1, 75 do | |
1856 | E = E + 1 | |
1857 | Swait() | |
1858 | if E >= 35 then | |
1859 | E = 0 | |
1860 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6}) | |
1861 | end | |
1862 | LOOP.Volume = LOOP.Volume + 10/75 | |
1863 | LOOP.Parent = FIELD | |
1864 | local CHILDREN = workspace:GetDescendants() | |
1865 | for index, CHILD in pairs(CHILDREN) do | |
1866 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1867 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1868 | if HUM then | |
1869 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1870 | if TORSO then | |
1871 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
1872 | for _, c in pairs(CHILD:GetChildren()) do | |
1873 | if c:IsA("BasePart") then | |
1874 | local bv = Instance.new("BodyVelocity") | |
1875 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1876 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
1877 | bv.Parent = c | |
1878 | Debris:AddItem(bv,0.05) | |
1879 | end | |
1880 | end | |
1881 | HUM.Health = HUM.Health - 0.3 | |
1882 | end | |
1883 | end | |
1884 | end | |
1885 | end | |
1886 | end | |
1887 | FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5 | |
1888 | end | |
1889 | for i = 1, 180 do | |
1890 | E = E + 1 | |
1891 | Swait() | |
1892 | if E >= 35 then | |
1893 | E = 0 | |
1894 | WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = FIELD.Size*30, Size2 = FIELD.Size, Transparency = 0.8, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = nil, SoundPitch = 1, SoundVolume = 6}) | |
1895 | end | |
1896 | LOOP.Parent = FIELD | |
1897 | local CHILDREN = workspace:GetDescendants() | |
1898 | for index, CHILD in pairs(CHILDREN) do | |
1899 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1900 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1901 | if HUM then | |
1902 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1903 | if TORSO then | |
1904 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
1905 | for _, c in pairs(CHILD:GetChildren()) do | |
1906 | if c:IsA("BasePart") then | |
1907 | local bv = Instance.new("BodyVelocity") | |
1908 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1909 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
1910 | bv.Parent = c | |
1911 | Debris:AddItem(bv,0.05) | |
1912 | end | |
1913 | end | |
1914 | HUM.Health = HUM.Health - 0.3 | |
1915 | end | |
1916 | end | |
1917 | end | |
1918 | end | |
1919 | end | |
1920 | end | |
1921 | ApplyAoE(FIELD.Position,40,15,20,375,false) | |
1922 | WACKYEFFECT({Time = 45, EffectType = "Sphere", Size = FIELD.Size, Size2 = VT(35,35,35), Transparency = 0, Transparency2 = 1, CFrame = FIELD.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BASE.Color, SoundID = 231917744, SoundPitch = 1, SoundVolume = 6}) | |
1923 | for i = 1, 5 do | |
1924 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5)*SIZE, Size2 = VT(35,3,35), Transparency = 0.5, Transparency2 = 1, CFrame = FIELD.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = 0.5, SoundVolume = 6}) | |
1925 | end | |
1926 | FIELD:remove() | |
1927 | end)) | |
1928 | elseif RANDOMEFFECT == 5 then | |
1929 | end | |
1930 | wait(0.5) | |
1931 | for i = 1, 25 do | |
1932 | Swait() | |
1933 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0)) | |
1934 | end | |
1935 | PANDORASBOX:remove() | |
1936 | RINGSPIN = false | |
1937 | end)) | |
1938 | ATTACK = false | |
1939 | Rooted = false | |
1940 | end | |
1941 | end | |
1942 | ||
1943 | function Taunt() | |
1944 | ATTACK = true | |
1945 | local LAUGH = nil | |
1946 | coroutine.resume(coroutine.create(function() | |
1947 | repeat | |
1948 | Swait() | |
1949 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 2 / Animation_Speed) | |
1950 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 2 / Animation_Speed) | |
1951 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE, -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1952 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1953 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1954 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1955 | until LAUGH ~= nil | |
1956 | repeat | |
1957 | Swait() | |
1958 | LAUGH.Parent = Head | |
1959 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0+(0.1*LAUGH.PlaybackLoudness/75) + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
1960 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE+(0.1*LAUGH.PlaybackLoudness/75)) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1961 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.15*SIZE+(0.1*LAUGH.PlaybackLoudness/75), -0.5*SIZE) * ANGLES(RAD(170), RAD(-25), RAD(-15)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1962 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE+(0.1*LAUGH.PlaybackLoudness/75), 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1963 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1964 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE-(0.1*LAUGH.PlaybackLoudness/75) - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1965 | until LAUGH.Playing == false | |
1966 | ATTACK = false | |
1967 | end)) | |
1968 | wait(0.1) | |
1969 | sick:Pause() | |
1970 | LAUGH = CreateSound(305685800, Head, 10, 1, false) | |
1971 | wait(1) | |
1972 | sick:Resume() | |
1973 | end | |
1974 | ||
1975 | --//=================================\\ | |
1976 | --|| ASSIGN THINGS TO KEYS | |
1977 | --\\=================================// | |
1978 | ||
1979 | function MouseDown(Mouse) | |
1980 | HOLD = true | |
1981 | if ATTACK == false then | |
1982 | end | |
1983 | end | |
1984 | ||
1985 | function MouseUp(Mouse) | |
1986 | HOLD = false | |
1987 | end | |
1988 | ||
1989 | function KeyDown(Key) | |
1990 | KEYHOLD = true | |
1991 | if Key == "z" and ATTACK == false then | |
1992 | MagicMissiles() | |
1993 | end | |
1994 | ||
1995 | if Key == "b" and ATTACK == false then | |
1996 | TimesUp() | |
1997 | end | |
1998 | ||
1999 | --//=================================\\ | |
2000 | --\\=================================// | |
2001 | ||
2002 | -- New Ability | |
2003 | if Key == "f" and ATTACK == false then | |
2004 | Prison_Key() | |
2005 | end | |
2006 | ||
2007 | --//=================================\\ | |
2008 | --\\=================================// | |
2009 | ||
2010 | if Key == "c" and ATTACK == false then | |
2011 | ChainPunch() | |
2012 | end | |
2013 | ||
2014 | if Key == "v" and ATTACK == false then | |
2015 | WarpMeteor() | |
2016 | end | |
2017 | ||
2018 | if Key == "x" and ATTACK == false then | |
2019 | PandorasBox() | |
2020 | end | |
2021 | ||
2022 | if Key == "t" and ATTACK == false then | |
2023 | Taunt() | |
2024 | end | |
2025 | end | |
2026 | ||
2027 | function KeyUp(Key) | |
2028 | KEYHOLD = false | |
2029 | end | |
2030 | ||
2031 | Mouse.Button1Down:connect(function(NEWKEY) | |
2032 | MouseDown(NEWKEY) | |
2033 | end) | |
2034 | Mouse.Button1Up:connect(function(NEWKEY) | |
2035 | MouseUp(NEWKEY) | |
2036 | end) | |
2037 | Mouse.KeyDown:connect(function(NEWKEY) | |
2038 | KeyDown(NEWKEY) | |
2039 | end) | |
2040 | Mouse.KeyUp:connect(function(NEWKEY) | |
2041 | KeyUp(NEWKEY) | |
2042 | end) | |
2043 | ||
2044 | --//=================================\\ | |
2045 | --\\=================================// | |
2046 | ||
2047 | ||
2048 | function unanchor() | |
2049 | if UNANCHOR == true then | |
2050 | RootPart.Anchored = false | |
2051 | end | |
2052 | g = Character:GetChildren() | |
2053 | for i = 1, #g do | |
2054 | if g[i].ClassName == "Part" and g[i] ~= RootPart then | |
2055 | g[i].Anchored = false | |
2056 | end | |
2057 | end | |
2058 | g = Weapon:GetChildren() | |
2059 | for i = 1, #g do | |
2060 | if g[i].ClassName == "Part" then | |
2061 | g[i].Anchored = false | |
2062 | end | |
2063 | end | |
2064 | end | |
2065 | ||
2066 | ||
2067 | --//=================================\\ | |
2068 | --|| WRAP THE WHOLE SCRIPT UP | |
2069 | --\\=================================// | |
2070 | ||
2071 | Humanoid.Changed:connect(function(Jump) | |
2072 | if Jump == "Jump" and (Disable_Jump == true) then | |
2073 | Humanoid.Jump = false | |
2074 | end | |
2075 | end) | |
2076 | ||
2077 | while true do | |
2078 | Swait() | |
2079 | script.Parent = WEAPONGUI | |
2080 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
2081 | v:Stop(); | |
2082 | end | |
2083 | ANIMATE.Parent = nil | |
2084 | SINE = SINE + CHANGE*1.5 | |
2085 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
2086 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
2087 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4*SIZE, Character) | |
2088 | local WALKSPEEDVALUE = 10 / (Humanoid.WalkSpeed / 16) | |
2089 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
2090 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2091 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2092 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 0.875*SIZE - 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2093 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 0.875*SIZE + 0.125 * SIN(SINE / WALKSPEEDVALUE)*SIZE - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0 +0.5+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(-25+80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
2094 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
2095 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
2096 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2097 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2098 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5*SIZE, 1*SIZE, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2099 | end | |
2100 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
2101 | ANIM = "Jump" | |
2102 | if ATTACK == false then | |
2103 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2104 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2105 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2106 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2107 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 1 / Animation_Speed) | |
2108 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, -0.3*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 1 / Animation_Speed) | |
2109 | end | |
2110 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
2111 | ANIM = "Fall" | |
2112 | if ATTACK == false then | |
2113 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0*SIZE, 0*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2114 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0*SIZE, 0*SIZE, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2115 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2116 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5*SIZE, 0.5*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2117 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 1 / Animation_Speed) | |
2118 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 1 / Animation_Speed) | |
2119 | end | |
2120 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
2121 | ANIM = "Idle" | |
2122 | if ATTACK == false then | |
2123 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 - 0.04 * SIN(SINE / 24)*SIZE, 0 + 0.04 * SIN(SINE / 12)*SIZE, 0 + 0.05*SIZE * COS(SINE / 12)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0 - 2.5 * SIN(SINE / 24)), RAD(0)), 1 / Animation_Speed) | |
2124 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(25 - 4 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2125 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(-55 + 2.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2126 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / 12)), RAD(55 - 2.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2127 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE, -1*SIZE + 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-2 - 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2128 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE - 0.06 * SIN(SINE / 24) - 0.05*SIZE * COS(SINE / 12), -0.01*SIZE) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(-75), RAD(0)) * ANGLES(RAD(-2 + 2.5 * SIN(SINE / 24)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2129 | end | |
2130 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
2131 | ANIM = "Walk" | |
2132 | if ATTACK == false then | |
2133 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0*SIZE, 0*SIZE, -0.1*SIZE) * ANGLES(RAD(5), RAD(0), RAD(0)), 1 / Animation_Speed) | |
2134 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(15 - 1 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 1/ Animation_Speed) | |
2135 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(-25 + 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(-55 + 2.5 * SIN(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
2136 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25*SIZE, 0.5*SIZE, 0.5*SIZE) * ANGLES(RAD(-35), RAD(25 - 2.5 * SIN(SINE / WALKSPEEDVALUE)), RAD(55 - 2.5 * SIN(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
2137 | RightHip.C0 = Clerp(RightHip.C0, CF(1*SIZE , -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2138 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1*SIZE, -1*SIZE, 0*SIZE) * ANGLES(RAD(0), RAD(-85), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
2139 | end | |
2140 | end | |
2141 | unanchor() | |
2142 | Humanoid.MaxHealth = math.huge | |
2143 | Humanoid.Health = math.huge | |
2144 | if Rooted == false then | |
2145 | Disable_Jump = false | |
2146 | Humanoid.WalkSpeed = Speed | |
2147 | elseif Rooted == true then | |
2148 | Disable_Jump = true | |
2149 | Humanoid.WalkSpeed = 0 | |
2150 | end | |
2151 | for _, c in pairs(Character:GetChildren()) do | |
2152 | if c.ClassName == "Part" and c.Name ~= "Detail" then | |
2153 | c.Material = "Fabric" | |
2154 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
2155 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
2156 | end | |
2157 | if c ~= Head then | |
2158 | c.Color = C3(0,0,0) | |
2159 | else | |
2160 | c.Color = C3(0,0,0) | |
2161 | end | |
2162 | if c == Head then | |
2163 | if c:FindFirstChild("face") then | |
2164 | c.face:remove() | |
2165 | end | |
2166 | end | |
2167 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
2168 | c:remove() | |
2169 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
2170 | c:remove() | |
2171 | end | |
2172 | end | |
2173 | sick.SoundId = "rbxassetid://"..158353213 | |
2174 | sick.Looped = true | |
2175 | sick.Pitch = 1 | |
2176 | sick.Volume = 100000 | |
2177 | sick.Parent = Torso | |
2178 | sick:Resume() | |
2179 | sick.Playing = true | |
2180 | Humanoid.Name = "Pandora = "..Player.Name | |
2181 | end | |
2182 | ||
2183 | if Humanoid.Health < math.huge then | |
2184 | Humanoid.MaxHealth = math.huge | |
2185 | Humanoid.Health = Humanoid.Health + math.huge | |
2186 | ||
2187 | end | |
2188 | ||
2189 | --//=================================\\ | |
2190 | --\\=================================// | |
2191 | ||
2192 | ||
2193 | ||
2194 | ||
2195 | ||
2196 | --//====================================================\\-- | |
2197 | --|| END OF SCRIPT | |
2198 | --\\====================================================//-- |