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