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