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