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