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