SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | wait(0.2) | |
6 | ||
7 | Player = game:GetService("Players").LocalPlayer | |
8 | PlayerGui = Player.PlayerGui | |
9 | Cam = workspace.CurrentCamera | |
10 | Backpack = Player.Backpack | |
11 | Character = Player.Character | |
12 | Humanoid = Character.Humanoid | |
13 | Mouse = Player:GetMouse() | |
14 | RootPart = Character["HumanoidRootPart"] | |
15 | Torso = Character["Torso"] | |
16 | Head = Character["Head"] | |
17 | RightArm = Character["Right Arm"] | |
18 | LeftArm = Character["Left Arm"] | |
19 | RightLeg = Character["Right Leg"] | |
20 | LeftLeg = Character["Left Leg"] | |
21 | RootJoint = RootPart["RootJoint"] | |
22 | Neck = Torso["Neck"] | |
23 | RightShoulder = Torso["Right Shoulder"] | |
24 | LeftShoulder = Torso["Left Shoulder"] | |
25 | RightHip = Torso["Right Hip"] | |
26 | LeftHip = Torso["Left Hip"] | |
27 | local sick = Instance.new("Sound",Character) | |
28 | sick.SoundId = "rbxassetid://170282324" | |
29 | sick.Looped = true | |
30 | sick.Volume = 1 | |
31 | ||
32 | IT = Instance.new | |
33 | CF = CFrame.new | |
34 | VT = Vector3.new | |
35 | RAD = math.rad | |
36 | C3 = Color3.new | |
37 | UD2 = UDim2.new | |
38 | BRICKC = BrickColor.new | |
39 | ANGLES = CFrame.Angles | |
40 | EULER = CFrame.fromEulerAnglesXYZ | |
41 | COS = math.cos | |
42 | ACOS = math.acos | |
43 | SIN = math.sin | |
44 | ASIN = math.asin | |
45 | ABS = math.abs | |
46 | MRANDOM = math.random | |
47 | FLOOR = math.floor | |
48 | ||
49 | --//=================================\\ | |
50 | --|| USEFUL VALUES | |
51 | --\\=================================// | |
52 | ||
53 | Animation_Speed = 3 | |
54 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
55 | local Speed = 45 | |
56 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
57 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
58 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
59 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
60 | local DAMAGEMULTIPLIER = 1 | |
61 | local ANIM = "Idle" | |
62 | local ATTACK = false | |
63 | local EQUIPPED = false | |
64 | local HOLD = false | |
65 | local COMBO = 1 | |
66 | local Rooted = false | |
67 | local SINE = 0 | |
68 | local KEYHOLD = false | |
69 | local CHANGE = 2 / Animation_Speed | |
70 | local WALKINGANIM = false | |
71 | local VALUE1 = false | |
72 | local VALUE2 = false | |
73 | local ROBLOXIDLEANIMATION = IT("Animation") | |
74 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
75 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
76 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
77 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
78 | WEAPONGUI.Name = "Weapon GUI" | |
79 | local Effects = IT("Folder", Character) | |
80 | Effects.Name = "Effects" | |
81 | local ANIMATOR = Humanoid.Animator | |
82 | local ANIMATE = Character.Animate | |
83 | local UNANCHOR = true | |
84 | local HITPOS = nil | |
85 | local HITFLOOR = nil | |
86 | local LEFTWINGS = {} | |
87 | local RIGHTWINGS = {} | |
88 | local BODY = {} | |
89 | ||
90 | --//=================================\\ | |
91 | --\\=================================// | |
92 | ||
93 | ||
94 | --//=================================\\ | |
95 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
96 | --\\=================================// | |
97 | ||
98 | ArtificialHB = Instance.new("BindableEvent", script) | |
99 | ArtificialHB.Name = "ArtificialHB" | |
100 | ||
101 | script:WaitForChild("ArtificialHB") | |
102 | ||
103 | frame = Frame_Speed | |
104 | tf = 0 | |
105 | allowframeloss = false | |
106 | tossremainder = false | |
107 | lastframe = tick() | |
108 | script.ArtificialHB:Fire() | |
109 | ||
110 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
111 | tf = tf + s | |
112 | if tf >= frame then | |
113 | if allowframeloss then | |
114 | script.ArtificialHB:Fire() | |
115 | lastframe = tick() | |
116 | else | |
117 | for i = 1, math.floor(tf / frame) do | |
118 | script.ArtificialHB:Fire() | |
119 | end | |
120 | lastframe = tick() | |
121 | end | |
122 | if tossremainder then | |
123 | tf = 0 | |
124 | else | |
125 | tf = tf - frame * math.floor(tf / frame) | |
126 | end | |
127 | end | |
128 | end) | |
129 | ||
130 | --//=================================\\ | |
131 | --\\=================================// | |
132 | ||
133 | --//=================================\\ | |
134 | --|| SOME FUNCTIONS | |
135 | --\\=================================// | |
136 | ||
137 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
138 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
139 | end | |
140 | ||
141 | function PositiveAngle(NUMBER) | |
142 | if NUMBER >= 0 then | |
143 | NUMBER = 0 | |
144 | end | |
145 | return NUMBER | |
146 | end | |
147 | ||
148 | function NegativeAngle(NUMBER) | |
149 | if NUMBER <= 0 then | |
150 | NUMBER = 0 | |
151 | end | |
152 | return NUMBER | |
153 | end | |
154 | ||
155 | function Swait(NUMBER) | |
156 | if NUMBER == 0 or NUMBER == nil then | |
157 | ArtificialHB.Event:wait() | |
158 | else | |
159 | for i = 1, NUMBER do | |
160 | ArtificialHB.Event:wait() | |
161 | end | |
162 | end | |
163 | end | |
164 | ||
165 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
166 | local NEWMESH = IT(MESH) | |
167 | if MESH == "SpecialMesh" then | |
168 | NEWMESH.MeshType = MESHTYPE | |
169 | if MESHID ~= "nil" and MESHID ~= "" then | |
170 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
171 | end | |
172 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
173 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
174 | end | |
175 | end | |
176 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
177 | NEWMESH.Scale = SCALE | |
178 | NEWMESH.Parent = PARENT | |
179 | return NEWMESH | |
180 | end | |
181 | ||
182 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
183 | local NEWPART = IT("Part") | |
184 | NEWPART.formFactor = FORMFACTOR | |
185 | NEWPART.Reflectance = REFLECTANCE | |
186 | NEWPART.Transparency = TRANSPARENCY | |
187 | NEWPART.CanCollide = false | |
188 | NEWPART.Locked = true | |
189 | NEWPART.Anchored = true | |
190 | if ANCHOR == false then | |
191 | NEWPART.Anchored = false | |
192 | end | |
193 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
194 | NEWPART.Name = NAME | |
195 | NEWPART.Size = SIZE | |
196 | NEWPART.Position = Torso.Position | |
197 | NEWPART.Material = MATERIAL | |
198 | NEWPART:BreakJoints() | |
199 | NEWPART.Parent = PARENT | |
200 | return NEWPART | |
201 | end | |
202 | ||
203 | local function weldBetween(a, b) | |
204 | local weldd = Instance.new("ManualWeld") | |
205 | weldd.Part0 = a | |
206 | weldd.Part1 = b | |
207 | weldd.C0 = CFrame.new() | |
208 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
209 | weldd.Parent = a | |
210 | return weldd | |
211 | end | |
212 | ||
213 | ||
214 | function QuaternionFromCFrame(cf) | |
215 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
216 | local trace = m00 + m11 + m22 | |
217 | if trace > 0 then | |
218 | local s = math.sqrt(1 + trace) | |
219 | local recip = 0.5 / s | |
220 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
221 | else | |
222 | local i = 0 | |
223 | if m11 > m00 then | |
224 | i = 1 | |
225 | end | |
226 | if m22 > (i == 0 and m00 or m11) then | |
227 | i = 2 | |
228 | end | |
229 | if i == 0 then | |
230 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
231 | local recip = 0.5 / s | |
232 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
233 | elseif i == 1 then | |
234 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
235 | local recip = 0.5 / s | |
236 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
237 | elseif i == 2 then | |
238 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
239 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
240 | end | |
241 | end | |
242 | end | |
243 | ||
244 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
245 | local xs, ys, zs = x + x, y + y, z + z | |
246 | local wx, wy, wz = w * xs, w * ys, w * zs | |
247 | local xx = x * xs | |
248 | local xy = x * ys | |
249 | local xz = x * zs | |
250 | local yy = y * ys | |
251 | local yz = y * zs | |
252 | local zz = z * zs | |
253 | 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)) | |
254 | end | |
255 | ||
256 | function QuaternionSlerp(a, b, t) | |
257 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
258 | local startInterp, finishInterp; | |
259 | if cosTheta >= 0.0001 then | |
260 | if (1 - cosTheta) > 0.0001 then | |
261 | local theta = ACOS(cosTheta) | |
262 | local invSinTheta = 1 / SIN(theta) | |
263 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
264 | finishInterp = SIN(t * theta) * invSinTheta | |
265 | else | |
266 | startInterp = 1 - t | |
267 | finishInterp = t | |
268 | end | |
269 | else | |
270 | if (1 + cosTheta) > 0.0001 then | |
271 | local theta = ACOS(-cosTheta) | |
272 | local invSinTheta = 1 / SIN(theta) | |
273 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
274 | finishInterp = SIN(t * theta) * invSinTheta | |
275 | else | |
276 | startInterp = t - 1 | |
277 | finishInterp = t | |
278 | end | |
279 | end | |
280 | 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 | |
281 | end | |
282 | ||
283 | function Clerp(a, b, t) | |
284 | local qa = {QuaternionFromCFrame(a)} | |
285 | local qb = {QuaternionFromCFrame(b)} | |
286 | local ax, ay, az = a.x, a.y, a.z | |
287 | local bx, by, bz = b.x, b.y, b.z | |
288 | local _t = 1 - t | |
289 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
290 | end | |
291 | ||
292 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
293 | local frame = IT("Frame") | |
294 | frame.BackgroundTransparency = TRANSPARENCY | |
295 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
296 | frame.Position = POSITION | |
297 | frame.Size = SIZE | |
298 | frame.BackgroundColor3 = COLOR | |
299 | frame.BorderColor3 = BORDERCOLOR | |
300 | frame.Name = NAME | |
301 | frame.Parent = PARENT | |
302 | return frame | |
303 | end | |
304 | ||
305 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
306 | local label = IT("TextLabel") | |
307 | label.BackgroundTransparency = 1 | |
308 | label.Size = UD2(1, 0, 1, 0) | |
309 | label.Position = UD2(0, 0, 0, 0) | |
310 | label.TextColor3 = TEXTCOLOR | |
311 | label.TextStrokeColor3 = BRICKC"Really red".Color | |
312 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
313 | label.TextTransparency = TRANSPARENCY | |
314 | label.FontSize = TEXTFONTSIZE | |
315 | label.Font = TEXTFONT | |
316 | label.BorderSizePixel = BORDERSIZEPIXEL | |
317 | label.TextScaled = false | |
318 | label.Text = TEXT | |
319 | label.Name = NAME | |
320 | label.Parent = PARENT | |
321 | return label | |
322 | end | |
323 | ||
324 | function NoOutlines(PART) | |
325 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
326 | end | |
327 | ||
328 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
329 | local NEWWELD = IT(TYPE) | |
330 | NEWWELD.Part0 = PART0 | |
331 | NEWWELD.Part1 = PART1 | |
332 | NEWWELD.C0 = C0 | |
333 | NEWWELD.C1 = C1 | |
334 | NEWWELD.Parent = PARENT | |
335 | return NEWWELD | |
336 | end | |
337 | ||
338 | local S = IT("Sound") | |
339 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
340 | local NEWSOUND = nil | |
341 | coroutine.resume(coroutine.create(function() | |
342 | NEWSOUND = S:Clone() | |
343 | NEWSOUND.Parent = PARENT | |
344 | NEWSOUND.Volume = VOLUME | |
345 | NEWSOUND.Pitch = PITCH | |
346 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
347 | NEWSOUND:play() | |
348 | NEWSOUND.Name = "Audio" | |
349 | if DOESLOOP == true then | |
350 | NEWSOUND.Looped = true | |
351 | else | |
352 | repeat Swait() until NEWSOUND.Playing == false | |
353 | NEWSOUND:remove() | |
354 | end | |
355 | end)) | |
356 | return NEWSOUND | |
357 | end | |
358 | ||
359 | function CFrameFromTopBack(at, top, back) | |
360 | local right = top:Cross(back) | |
361 | 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) | |
362 | end | |
363 | ||
364 | --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}) | |
365 | function WACKYEFFECT(Table) | |
366 | local TYPE = (Table.EffectType or "Sphere") | |
367 | local SIZE = (Table.Size or VT(1,1,1)) | |
368 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
369 | local TRANSPARENCY = (Table.Transparency or 0) | |
370 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
371 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
372 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
373 | local ROTATION1 = (Table.RotationX or 0) | |
374 | local ROTATION2 = (Table.RotationY or 0) | |
375 | local ROTATION3 = (Table.RotationZ or 0) | |
376 | local MATERIAL = (Table.Material or "Neon") | |
377 | local COLOR = (Table.Color or C3(1,1,1)) | |
378 | local TIME = (Table.Time or 45) | |
379 | local SOUNDID = (Table.SoundID or nil) | |
380 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
381 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
382 | coroutine.resume(coroutine.create(function() | |
383 | local PLAYSSOUND = false | |
384 | local SOUND = nil | |
385 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
386 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
387 | PLAYSSOUND = true | |
388 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
389 | end | |
390 | EFFECT.Color = COLOR | |
391 | local MSH = nil | |
392 | if TYPE == "Sphere" then | |
393 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
394 | elseif TYPE == "Block" then | |
395 | MSH = IT("BlockMesh",EFFECT) | |
396 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
397 | elseif TYPE == "Box" then | |
398 | MSH = IT("BlockMesh",EFFECT) | |
399 | MSH.Scale = SIZE | |
400 | elseif TYPE == "Wave" then | |
401 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
402 | elseif TYPE == "Ring" then | |
403 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
404 | elseif TYPE == "Slash" then | |
405 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
406 | elseif TYPE == "Round Slash" then | |
407 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
408 | elseif TYPE == "Swirl" then | |
409 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
410 | elseif TYPE == "Skull" then | |
411 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
412 | elseif TYPE == "Crystal" then | |
413 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
414 | end | |
415 | if MSH ~= nil then | |
416 | local MOVESPEED = nil | |
417 | if MOVEDIRECTION ~= nil then | |
418 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
419 | end | |
420 | local GROWTH = SIZE - ENDSIZE | |
421 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
422 | if TYPE == "Block" then | |
423 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
424 | else | |
425 | EFFECT.CFrame = CFRAME | |
426 | end | |
427 | for LOOP = 1, TIME do | |
428 | Swait() | |
429 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
430 | if TYPE == "Wave" then | |
431 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
432 | end | |
433 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
434 | if TYPE == "Block" then | |
435 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
436 | else | |
437 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
438 | end | |
439 | if MOVEDIRECTION ~= nil then | |
440 | local ORI = EFFECT.Orientation | |
441 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
442 | EFFECT.Orientation = ORI | |
443 | end | |
444 | end | |
445 | if PLAYSSOUND == false then | |
446 | EFFECT:remove() | |
447 | else | |
448 | repeat Swait() until SOUND.Playing == false | |
449 | EFFECT:remove() | |
450 | end | |
451 | else | |
452 | if PLAYSSOUND == false then | |
453 | EFFECT:remove() | |
454 | else | |
455 | repeat Swait() until SOUND.Playing == false | |
456 | EFFECT:remove() | |
457 | end | |
458 | end | |
459 | end)) | |
460 | end | |
461 | ||
462 | function Shatter(Part) | |
463 | if Part.Transparency == 0 then | |
464 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0)) | |
465 | Debris:AddItem(SOUNDPART,5) | |
466 | CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false) | |
467 | local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z | |
468 | local SIZESET = SIZE/4 | |
469 | local XOffset = Part.Size.X*1.5/SIZESET | |
470 | local YOffset = Part.Size.Y*1.5/SIZESET | |
471 | local ZOffset = Part.Size.Z*1.5/SIZESET | |
472 | for x = 1, math.ceil(XOffset) do | |
473 | for y = 1, math.ceil(YOffset) do | |
474 | for z = 1, math.ceil(ZOffset) do | |
475 | local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false) | |
476 | SHARD.CanCollide = true | |
477 | SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4)) | |
478 | SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3 | |
479 | Debris:AddItem(SHARD,MRANDOM(10,25)/3) | |
480 | end | |
481 | end | |
482 | end | |
483 | end | |
484 | Part:remove() | |
485 | end | |
486 | ||
487 | function MakeForm(PART,TYPE) | |
488 | if TYPE == "Cyl" then | |
489 | local MSH = IT("CylinderMesh",PART) | |
490 | elseif TYPE == "Ball" then | |
491 | local MSH = IT("SpecialMesh",PART) | |
492 | MSH.MeshType = "Sphere" | |
493 | elseif TYPE == "Wedge" then | |
494 | local MSH = IT("SpecialMesh",PART) | |
495 | MSH.MeshType = "Wedge" | |
496 | end | |
497 | end | |
498 | ||
499 | Debris = game:GetService("Debris") | |
500 | ||
501 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
502 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
503 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
504 | end | |
505 | ||
506 | function turnto(position) | |
507 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
508 | end | |
509 | ||
510 | --//=================================\\ | |
511 | --|| WEAPON CREATION | |
512 | --\\=================================// | |
513 | ||
514 | local Back = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(1,1,0.35),false) | |
515 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0)) | |
516 | ||
517 | local ANGLE = 35 | |
518 | for i = 1, 5 do | |
519 | local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false) | |
520 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0)) | |
521 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false) | |
522 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
523 | ANGLE = ANGLE - 15 | |
524 | table.insert(LEFTWINGS,WingWeld) | |
525 | end | |
526 | ANGLE = 35 | |
527 | for i = 1, 5 do | |
528 | local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false) | |
529 | local WingWeld = CreateWeldOrSnapOrMotor("Weld", Wing, Torso, Wing, CF(0, 1, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * CF(0,1,0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * ANGLES(RAD(ANGLE), RAD(0), RAD(0)) * CF(0,3+(i/10),0) , CF(0, 0, 0)) | |
530 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false) | |
531 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
532 | ANGLE = ANGLE - 15 | |
533 | table.insert(RIGHTWINGS,WingWeld) | |
534 | end | |
535 | local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false) | |
536 | MakeForm(HAT1,"Cyl") | |
537 | HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0)) | |
538 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false) | |
539 | BELT.Color = C3(15/255,15/255,15/255) | |
540 | MakeForm(BELT,"Cyl") | |
541 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0)) | |
542 | local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false) | |
543 | MakeForm(HAT2,"Cyl") | |
544 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0)) | |
545 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false) | |
546 | BELT.Color = C3(15/255,15/255,15/255) | |
547 | MakeForm(BELT,"Cyl") | |
548 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0)) | |
549 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Gem", VT(0.25,0.25,0.1),false) | |
550 | MakeForm(GEM,"Ball") | |
551 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0)) | |
552 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Gem", VT(0.25,0.25,0.1),false) | |
553 | MakeForm(GEM,"Ball") | |
554 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0)) | |
555 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Gem", VT(0.1,0.25,0.25),false) | |
556 | MakeForm(GEM,"Ball") | |
557 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0)) | |
558 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Really black", "Gem", VT(0.1,0.25,0.25),false) | |
559 | MakeForm(GEM,"Ball") | |
560 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0)) | |
561 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
562 | BELT.Color = C3(15/255,15/255,15/255) | |
563 | MakeForm(BELT,"Cyl") | |
564 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0)) | |
565 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
566 | BELT.Color = C3(15/255,15/255,15/255) | |
567 | MakeForm(BELT,"Cyl") | |
568 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0)) | |
569 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
570 | BELT.Color = C3(15/255,15/255,15/255) | |
571 | MakeForm(BELT,"Cyl") | |
572 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0)) | |
573 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
574 | BELT.Color = C3(15/255,15/255,15/255) | |
575 | MakeForm(BELT,"Cyl") | |
576 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0)) | |
577 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false) | |
578 | MakeForm(BELT,"Ball") | |
579 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0)) | |
580 | Humanoid.DisplayDistanceType = "None" | |
581 | local LASTPART = Head | |
582 | for i = 1, 24 do | |
583 | local MATH = (1-(i/30)) | |
584 | if LASTPART == Head then | |
585 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
586 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(220), RAD(90)), CF(0, 0, 0)) | |
587 | LASTPART = Horn | |
588 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
589 | else | |
590 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
591 | 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)) | |
592 | LASTPART = Horn | |
593 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
594 | end | |
595 | end | |
596 | local LASTPART = Head | |
597 | for i = 1, 24 do | |
598 | local MATH = (1-(i/30)) | |
599 | if LASTPART == Head then | |
600 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
601 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.8, 0.3, -0.4) * ANGLES(RAD(-25), RAD(-220), RAD(-90)), CF(0, 0, 0)) | |
602 | LASTPART = Horn | |
603 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
604 | else | |
605 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
606 | 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)) | |
607 | LASTPART = Horn | |
608 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
609 | end | |
610 | end | |
611 | local LASTPART = Head | |
612 | for i = 1, 8 do | |
613 | local MATH = (1-(i/14)) | |
614 | if LASTPART == Head then | |
615 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
616 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(250), RAD(90)), CF(0, 0, 0)) | |
617 | LASTPART = Horn | |
618 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
619 | else | |
620 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
621 | 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)) | |
622 | LASTPART = Horn | |
623 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
624 | end | |
625 | end | |
626 | local LASTPART = Head | |
627 | for i = 1, 8 do | |
628 | local MATH = (1-(i/14)) | |
629 | if LASTPART == Head then | |
630 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
631 | CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(-0.65, -0.3, -0.4) * ANGLES(RAD(-25), RAD(-250), RAD(-90)), CF(0, 0, 0)) | |
632 | LASTPART = Horn | |
633 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
634 | else | |
635 | local Horn = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Dirt brown", "Detail", VT(0.25*MATH,0.15,0.25*MATH),false) | |
636 | 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)) | |
637 | LASTPART = Horn | |
638 | Horn.Color = C3(1-((i*4-4)/255),1-((i*6-6)/255),1-((i*3-3)/255)) | |
639 | end | |
640 | end | |
641 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.3,0.3,0.3),false) | |
642 | local EyeWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0)) | |
643 | local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "Really red", "Eye", VT(0.5,0.5,0.29),false) | |
644 | local EyeWeld2 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye2, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0)) | |
645 | ||
646 | local Eye3 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,0.1,0.31),false) | |
647 | local EyeWeld3 = CreateWeldOrSnapOrMotor("Weld", Head, Head, Eye3, CF(0,0.2,0) * ANGLES(RAD(-5),RAD(-25),RAD(0)) * CF(0,0,-0.45), CF(0,0,0)) | |
648 | ||
649 | local SKILLTEXTCOLOR = BRICKC"Really red".Color | |
650 | local SKILLFONT = "SciFi" | |
651 | local SKILLTEXTSIZE = 6 | |
652 | ||
653 | local naeeym2 = Instance.new("BillboardGui",Character) | |
654 | naeeym2.AlwaysOnTop = true | |
655 | naeeym2.Size = UDim2.new(5,35,2,15) | |
656 | naeeym2.StudsOffset = Vector3.new(0,1.2,0) | |
657 | naeeym2.Adornee = Character.Head | |
658 | naeeym2.Name = "Name" | |
659 | naeeym2.PlayerToHideFrom = Player | |
660 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
661 | tecks2.BackgroundTransparency = 1 | |
662 | tecks2.TextScaled = true | |
663 | tecks2.BorderSizePixel = 0 | |
664 | tecks2.Text = "Cyber Monarch" | |
665 | tecks2.Font = SKILLFONT | |
666 | tecks2.TextSize = 30 | |
667 | tecks2.TextStrokeTransparency = 0 | |
668 | tecks2.TextColor3 = C3(0,0,0) | |
669 | tecks2.TextStrokeColor3 = BRICKC"Really red".Color | |
670 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
671 | tecks2.Parent = naeeym2 | |
672 | ||
673 | for _, c in pairs(Character:GetChildren()) do | |
674 | if c.ClassName == "Part" then | |
675 | table.insert(BODY,{c,Character}) | |
676 | for _, q in pairs(c:GetChildren()) do | |
677 | if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then | |
678 | table.insert(BODY,{q,c}) | |
679 | end | |
680 | end | |
681 | end | |
682 | end | |
683 | ||
684 | function refit() | |
685 | Character.Parent = workspace | |
686 | for e = 1, #BODY do | |
687 | if BODY[e] ~= nil then | |
688 | local STUFF = BODY[e] | |
689 | local PART = STUFF[1] | |
690 | local PARENT = STUFF[2] | |
691 | PART.Parent = PARENT | |
692 | end | |
693 | end | |
694 | end | |
695 | ||
696 | Humanoid.HealthChanged:connect(function() | |
697 | Humanoid.Parent = nil | |
698 | Humanoid.MaxHealth = "inf" | |
699 | Humanoid.Health = "inf" | |
700 | refit() | |
701 | Humanoid.Parent = Character | |
702 | end) | |
703 | ||
704 | Humanoid.Died:connect(function() | |
705 | Humanoid.Parent = nil | |
706 | Humanoid.MaxHealth = "inf" | |
707 | Humanoid.Health = "inf" | |
708 | refit() | |
709 | Humanoid.Parent = Character | |
710 | end) | |
711 | ||
712 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame") | |
713 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame") | |
714 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 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") | |
715 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.75, 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") | |
716 | ||
717 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Cyber Out-Burst", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
718 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Techno Beam", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
719 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Techno Warp", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
720 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Cyber Smash", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
721 | ||
722 | --//=================================\\ | |
723 | --|| DAMAGING | |
724 | --\\=================================// | |
725 | ||
726 | function killnearest(position,range,EFFECT) | |
727 | for i,v in ipairs(workspace:GetChildren()) do | |
728 | local body = v:GetChildren() | |
729 | for part = 1, #body do | |
730 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
731 | local SIZE = body[part].Size.Magnitude | |
732 | if(body[part].Position - position).Magnitude < range + SIZE/2 then | |
733 | if v.ClassName == "Model" then | |
734 | if v:FindFirstChildOfClass("Humanoid") ~= nil then | |
735 | if v:FindFirstChildOfClass("Humanoid").Health > 0 then | |
736 | v:BreakJoints() | |
737 | if EFFECT == "Glitch" then | |
738 | coroutine.resume(coroutine.create(function() | |
739 | local ORIGINPOS = body[part].CFrame | |
740 | local SIZE = body[part].Size | |
741 | for i = 1, 100 do | |
742 | Swait() | |
743 | local PART = body[part] | |
744 | PART.Anchored = true | |
745 | PART.Size = SIZE*MRANDOM(5,15)/10 | |
746 | PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15) | |
747 | end | |
748 | body[part]:remove() | |
749 | end)) | |
750 | elseif EFFECT == "Shatter" then | |
751 | for _, c in pairs(v:GetChildren()) do | |
752 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
753 | Shatter(c) | |
754 | end | |
755 | end | |
756 | end | |
757 | end | |
758 | end | |
759 | end | |
760 | end | |
761 | end | |
762 | end | |
763 | end | |
764 | end | |
765 | ||
766 | --//=================================\\ | |
767 | --|| ATTACK FUNCTIONS AND STUFF | |
768 | --\\=================================// | |
769 | ||
770 | function CyberOutburst() | |
771 | if HITFLOOR ~= nil then | |
772 | ATTACK = true | |
773 | Rooted = true | |
774 | for i=0, 2, 0.1 / Animation_Speed do | |
775 | Swait() | |
776 | WACKYEFFECT({EffectType = "Box", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0), MoveToPos = Torso.Position, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
777 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
778 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
779 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
780 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
781 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
782 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
783 | end | |
784 | for i=0, 2, 0.1 / Animation_Speed do | |
785 | Swait() | |
786 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
787 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
788 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
789 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
790 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
791 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
792 | end | |
793 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(25,25,25), Transparency = 0.25, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 178452241, SoundPitch = 0.6, SoundVolume = 6}) | |
794 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(35,35,35), Transparency = 0.5, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 178452241, SoundPitch = 0.8, SoundVolume = 4}) | |
795 | WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(40,40,40), Transparency = 0.75, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 178452241, SoundPitch = 1, SoundVolume = 2}) | |
796 | for i=0, 0.4, 0.1 / Animation_Speed do | |
797 | Swait() | |
798 | killnearest(Torso.Position,45,"Glitch") | |
799 | WACKYEFFECT({Time = 75, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = Torso.CFrame*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
800 | WACKYEFFECT({Time = 45, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(-180,180)),RAD(0))*CF(0,0,55).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
801 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
802 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
803 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
804 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(-35), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
805 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(20.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
806 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(20.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
807 | end | |
808 | ATTACK = false | |
809 | Rooted = false | |
810 | end | |
811 | end | |
812 | ||
813 | function Technobeam() | |
814 | ATTACK = true | |
815 | Rooted = false | |
816 | local GYRO = IT("BodyGyro",RootPart) | |
817 | GYRO.D = 100 | |
818 | GYRO.P = 2000 | |
819 | GYRO.MaxTorque = VT(0,4000000,0) | |
820 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
821 | CreateSound("93724183", RightArm, 5, 1, false) | |
822 | for i=1, 35 do | |
823 | Swait() | |
824 | WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-5,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
825 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
826 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
827 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
828 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
829 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
830 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
831 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
832 | end | |
833 | local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Lazer", VT(0,0,0)) | |
834 | local LOOP = CreateSound("415700134", RightArm, 5, 1, false) | |
835 | local TOCH = BEAM.Touched:Connect(function(hit) | |
836 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
837 | Shatter(hit) | |
838 | end | |
839 | end) | |
840 | local I = 0 | |
841 | repeat | |
842 | Swait() | |
843 | I = I + 1 | |
844 | if I <= 10 then | |
845 | BEAM.Transparency = BEAM.Transparency - 0.1 | |
846 | end | |
847 | local STARTPOS = RightArm.CFrame*CF(0,-4,0).p | |
848 | local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character) | |
849 | local DISTANCE = (STARTPOS - ENDPOS).Magnitude | |
850 | BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5)) | |
851 | BEAM.Size = VT(2,2,DISTANCE) | |
852 | WACKYEFFECT({Time = 5, EffectType = "Box", Size = VT(1,1,1), Size2 = VT(1,1,1), Transparency = 0, Transparency2 = 1, CFrame = CF(ENDPOS), MoveToPos = CF(ENDPOS)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,15,0).p, RotationX = MRANDOM(-5,5), RotationY = MRANDOM(-5,5), RotationZ = MRANDOM(-5,5), Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
853 | WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = RightArm.CFrame*CF(0,-4,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
854 | WACKYEFFECT({Time = 5, EffectType = "Block", Size = VT(5,5,5), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.25, CFrame = CF(ENDPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 0.6, SoundVolume = 6}) | |
855 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
856 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
857 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
858 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(90), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
859 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
860 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
861 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
862 | if ENDHIT ~= nil then | |
863 | if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then | |
864 | Shatter(ENDHIT) | |
865 | end | |
866 | end | |
867 | until LOOP.Playing == false | |
868 | GYRO:remove() | |
869 | BEAM:remove() | |
870 | ATTACK = false | |
871 | Rooted = false | |
872 | end | |
873 | ||
874 | function Technowarp() | |
875 | local FRAME = RootPart.Position | |
876 | for i = 1, 6 do | |
877 | WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2}) | |
878 | end | |
879 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z)) | |
880 | for i = 1, 6 do | |
881 | WACKYEFFECT({Time = 15, EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,35,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(Torso.Position)*ANGLES(RAD(0),RAD(i*(360/5)),RAD(0))*CF(6,0,0), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2}) | |
882 | end | |
883 | end | |
884 | ||
885 | function PandorasBox() | |
886 | 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) | |
887 | if HITFLOOR ~= nil then | |
888 | ATTACK = true | |
889 | Rooted = true | |
890 | local RINGSPIN = true | |
891 | local CONSTRUCTING = true | |
892 | local RING = CreatePart(3, Effects, "Neon", 0, 1, "Alder", "Ring", VT(0,0,0)) | |
893 | RING.Color = C3(0,0,0) | |
894 | MakeForm(RING,"Cyl") | |
895 | RING.CFrame = CF(HITPOS) | |
896 | CreateSound(402981977, RING, 5, 1.2, false) | |
897 | coroutine.resume(coroutine.create(function() | |
898 | repeat | |
899 | Swait() | |
900 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
901 | 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) | |
902 | 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) | |
903 | 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) | |
904 | 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) | |
905 | 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) | |
906 | 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) | |
907 | - | if Key == "t" then |
907 | + | until CONSTRUCTING == false |
908 | repeat | |
909 | Swait() | |
910 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
911 | until RINGSPIN == false | |
912 | for i = 1, 25 do | |
913 | Swait() | |
914 | RING.CFrame = RING.CFrame * ANGLES(RAD(0), RAD(5), RAD(0)) | |
915 | RING.Size = RING.Size - VT(0.15,0,0.15) | |
916 | --DECAL.Transparency = DECAL.Transparency + 1/25 | |
917 | RING.Transparency = RING.Transparency + 1/25 | |
918 | end | |
919 | RING:remove() | |
920 | end)) | |
921 | for i = 1, 15 do | |
922 | Swait() | |
923 | RING.Size = RING.Size + VT(0.75,0,0.75) | |
924 | RING.Transparency = RING.Transparency - 1/15 | |
925 | end | |
926 | local BOXSPIN = true | |
927 | local PANDORASBOX = IT("Model",Effects) | |
928 | PANDORASBOX.Name = "Pandora's Box" | |
929 | local BOX = IT("Model",PANDORASBOX) | |
930 | BOX.Name = "Body" | |
931 | local LID = IT("Model",PANDORASBOX) | |
932 | LID.Name = "Lid" | |
933 | --BUILDING THE BOX-- | |
934 | local BASE = CreatePart(3, BOX, "Neon", 0, 0, "Alder", "Black", VT(2,1.8,2)) | |
935 | BASE.Color = C3(0,0,0) | |
936 | PANDORASBOX.PrimaryPart = BASE | |
937 | BASE.CFrame = CF(HITPOS+VT(0,-8,0),VT(RootPart.Position.X,HITPOS.Y-8,RootPart.Position.Z)) | |
938 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
939 | WOOD.CFrame = BASE.CFrame*CF(1,0,1) | |
940 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
941 | WOOD.CFrame = BASE.CFrame*CF(1,0,-1) | |
942 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
943 | WOOD.CFrame = BASE.CFrame*CF(-1,0,1) | |
944 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,1.9,0.2)) | |
945 | WOOD.CFrame = BASE.CFrame*CF(-1,0,-1) | |
946 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
947 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,1) | |
948 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
949 | WOOD.CFrame = BASE.CFrame*CF(0,0.9,-1) | |
950 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
951 | WOOD.CFrame = BASE.CFrame*CF(1,0.9,0) | |
952 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
953 | WOOD.CFrame = BASE.CFrame*CF(-1,0.9,0) | |
954 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
955 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,1) | |
956 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
957 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,-1) | |
958 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
959 | WOOD.CFrame = BASE.CFrame*CF(1,-0.9,0) | |
960 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
961 | WOOD.CFrame = BASE.CFrame*CF(-1,-0.9,0) | |
962 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1)) | |
963 | WOOD.CFrame = BASE.CFrame*CF(0,0,1) | |
964 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,1.9,0.1)) | |
965 | WOOD.CFrame = BASE.CFrame*CF(0,0,-1) | |
966 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1)) | |
967 | WOOD.CFrame = BASE.CFrame*CF(1,0,0) | |
968 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(0.1,1.9,2.1)) | |
969 | WOOD.CFrame = BASE.CFrame*CF(-1,0,0) | |
970 | local WOOD = CreatePart(3, BOX, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1)) | |
971 | WOOD.CFrame = BASE.CFrame*CF(0,-0.9,0) | |
972 | ------------- | |
973 | local LIDPART = CreatePart(3, LID, "Marble", 0, 0, "Daisy orange", "Marble", VT(2.1,0.1,2.1)) | |
974 | LIDPART.CFrame = BASE.CFrame*CF(0,1,0) | |
975 | LID.PrimaryPart = LIDPART | |
976 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
977 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,-1) | |
978 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(2.1,0.2,0.2)) | |
979 | WOOD.CFrame = LIDPART.CFrame*CF(0,0,1) | |
980 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
981 | WOOD.CFrame = LIDPART.CFrame*CF(1,0,0) | |
982 | local WOOD = CreatePart(3, LID, "Marble", 0, 0, "Bright yellow", "Marble", VT(0.2,0.2,2.1)) | |
983 | WOOD.CFrame = LIDPART.CFrame*CF(-1,0,0) | |
984 | local DECAL = IT("Decal",LIDPART) | |
985 | DECAL.Face = "Top" | |
986 | DECAL.Texture = "http://www.roblox.com/asset/?id=1501226061" | |
987 | DECAL.Color3 = C3(0,0,0) | |
988 | --BUILDING THE BOX-- | |
989 | coroutine.resume(coroutine.create(function() | |
990 | repeat | |
991 | Swait() | |
992 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * ANGLES(RAD(0), RAD(2.45), RAD(0))) | |
993 | until BOXSPIN == false | |
994 | end)) | |
995 | for i = 1, 25 do | |
996 | Swait() | |
997 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,1.5-(i/12.5),0)) | |
998 | end | |
999 | wait(0.5) | |
1000 | BOXSPIN = false | |
1001 | CONSTRUCTING = false | |
1002 | coroutine.resume(coroutine.create(function() | |
1003 | 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}) | |
1004 | --[[for i = 1, 45 do | |
1005 | Swait() | |
1006 | LID:SetPrimaryPartCFrame(LIDPART.CFrame * CF(0,1.5-(i/12.5),0.5) * ANGLES(RAD(0.7), RAD(0), RAD(0))) | |
1007 | end- | |
1008 | LID:remove()]]-- | |
1009 | for _, c in pairs(LID:GetChildren()) do | |
1010 | if c.ClassName == "Part" then | |
1011 | c.Anchored = false | |
1012 | c.CanCollide = true | |
1013 | if c ~= LIDPART then | |
1014 | weldBetween(LIDPART,c) | |
1015 | end | |
1016 | end | |
1017 | end | |
1018 | LIDPART.Velocity = CF(LIDPART.Position,LIDPART.CFrame*CF(15,25,0).p).lookVector*65 | |
1019 | Debris:AddItem(LID,15) | |
1020 | wait(0.5) | |
1021 | local RANDOMEFFECT = MRANDOM(1,4) | |
1022 | if RANDOMEFFECT == 1 then | |
1023 | for i = 1, 45 do | |
1024 | wait((2-(i/15))/15) | |
1025 | 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}) | |
1026 | end | |
1027 | wait(1) | |
1028 | 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}) | |
1029 | 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}) | |
1030 | 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}) | |
1031 | for i = 1, 5 do | |
1032 | 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}) | |
1033 | end | |
1034 | ApplyAoE(BASE.Position,50,15,45,375,false) | |
1035 | ApplyAoE(BASE.Position,250,35,40,175,false) | |
1036 | elseif RANDOMEFFECT == 2 then | |
1037 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3)) | |
1038 | FIELD.CFrame = BASE.CFrame | |
1039 | MakeForm(FIELD,"Ball") | |
1040 | for i = 1, 50 do | |
1041 | Swait() | |
1042 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
1043 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
1044 | end | |
1045 | wait(0.2) | |
1046 | local LOOP = CreateSound(1393698948, FIELD, 0, 1.2, true) | |
1047 | coroutine.resume(coroutine.create(function() | |
1048 | for i = 1, 75 do | |
1049 | Swait() | |
1050 | LOOP.Volume = LOOP.Volume + 10/75 | |
1051 | LOOP.Parent = FIELD | |
1052 | local CHILDREN = workspace:GetDescendants() | |
1053 | for index, CHILD in pairs(CHILDREN) do | |
1054 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1055 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1056 | if HUM then | |
1057 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1058 | if TORSO then | |
1059 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1060 | HUM.Health = HUM.Health - 0.1 | |
1061 | TORSO.Velocity = VT(0,5,0) | |
1062 | HUM.PlatformStand = true | |
1063 | if TORSO.RotVelocity.Magnitude < 15 then | |
1064 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1065 | end | |
1066 | end | |
1067 | end | |
1068 | end | |
1069 | end | |
1070 | end | |
1071 | FIELD.Size = FIELD.Size + VT(3,3,3) | |
1072 | FIELD.Transparency = FIELD.Transparency + 0.8/75 | |
1073 | end | |
1074 | for i = 1, 500 do | |
1075 | Swait() | |
1076 | LOOP.Parent = FIELD | |
1077 | local CHILDREN = workspace:GetDescendants() | |
1078 | for index, CHILD in pairs(CHILDREN) do | |
1079 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1080 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1081 | if HUM then | |
1082 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1083 | if TORSO then | |
1084 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/2 then | |
1085 | TORSO.Velocity = VT(0,5,0) | |
1086 | HUM.Health = HUM.Health - 0.1 | |
1087 | HUM.PlatformStand = true | |
1088 | if TORSO.RotVelocity.Magnitude < 15 then | |
1089 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1090 | end | |
1091 | end | |
1092 | end | |
1093 | end | |
1094 | end | |
1095 | end | |
1096 | end | |
1097 | for i = 1, 25 do | |
1098 | Swait() | |
1099 | LOOP.Volume = LOOP.Volume + 10/25 | |
1100 | LOOP.Parent = FIELD | |
1101 | local CHILDREN = workspace:GetDescendants() | |
1102 | for index, CHILD in pairs(CHILDREN) do | |
1103 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1104 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1105 | if HUM then | |
1106 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1107 | if TORSO then | |
1108 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X/1.8 then | |
1109 | TORSO.Velocity = VT(0,5,0) | |
1110 | HUM.Health = HUM.Health - 0.1 | |
1111 | HUM.PlatformStand = false | |
1112 | if TORSO.RotVelocity.Magnitude < 15 then | |
1113 | TORSO.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)) | |
1114 | end | |
1115 | end | |
1116 | end | |
1117 | end | |
1118 | end | |
1119 | end | |
1120 | FIELD.Size = FIELD.Size - VT(3,3,3) | |
1121 | FIELD.Transparency = FIELD.Transparency + 0.2/25 | |
1122 | end | |
1123 | FIELD:remove() | |
1124 | end)) | |
1125 | elseif RANDOMEFFECT == 3 then | |
1126 | for i = 1, 10 do | |
1127 | wait(0.15) | |
1128 | 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}) | |
1129 | coroutine.resume(coroutine.create(function() | |
1130 | local MINION = CLONE:Clone() | |
1131 | MINION.Parent = Effects | |
1132 | MINION.Name = "Shadow" | |
1133 | MINION.HumanoidRootPart.CFrame = BASE.CFrame*CF(0,5,0) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0)) | |
1134 | MINION.HumanoidRootPart.Velocity = CF(MINION.HumanoidRootPart.Position,MINION.HumanoidRootPart.CFrame*CF(0,8,-15).p).lookVector*MRANDOM(55,100) | |
1135 | for _, c in pairs(MINION:GetChildren()) do | |
1136 | if c.ClassName == "Part" then | |
1137 | c.Material = "Neon" | |
1138 | c.Color = C3(0,0,0) | |
1139 | c.Transparency = 0.25 | |
1140 | if c.Name == "Head" then | |
1141 | c:ClearAllChildren() | |
1142 | local MSH = IT("BlockMesh",c) | |
1143 | MSH.Scale = VT(0.5,1,1) | |
1144 | end | |
1145 | end | |
1146 | end | |
1147 | local TORSO = MINION.Torso | |
1148 | local HUMAN = MINION.Humanoid | |
1149 | HUMAN.WalkSpeed = 20 | |
1150 | HUMAN.MaxHealth = math.huge | |
1151 | HUMAN.Health = math.huge | |
1152 | HUMAN.DisplayDistanceType = "None" | |
1153 | HUMAN.Died:connect(function() | |
1154 | MINION:remove() | |
1155 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false) | |
1156 | end) | |
1157 | wait(1) | |
1158 | local findNearestTorso = function(POS) | |
1159 | local list = game.Workspace:GetDescendants() | |
1160 | local torso = nil | |
1161 | local dist = 500 | |
1162 | local temp = nil | |
1163 | local human = nil | |
1164 | local temp2 = nil | |
1165 | for x = 1, #list do | |
1166 | temp2 = list[x] | |
1167 | if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then | |
1168 | temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso") | |
1169 | human = temp2:findFirstChildOfClass("Humanoid") | |
1170 | if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then | |
1171 | if (temp.Position - POS).magnitude < dist then | |
1172 | torso = temp | |
1173 | dist = (temp.Position - POS).magnitude | |
1174 | end | |
1175 | end | |
1176 | end | |
1177 | end | |
1178 | return torso, dist | |
1179 | end | |
1180 | for i = 1, 40 do | |
1181 | if HUMAN.Health == 0 then | |
1182 | break | |
1183 | end | |
1184 | wait(0.3) | |
1185 | local target,dist= findNearestTorso(TORSO.Position) | |
1186 | if target then | |
1187 | HUMAN:MoveTo(target.Position) | |
1188 | if dist < 25 then | |
1189 | CreateSound(348663022, TORSO, 10, 1, true) | |
1190 | wait(2) | |
1191 | --local ANIM = HUMAN:LoadAnimation(ATANIM) | |
1192 | --ANIM:Play() | |
1193 | --CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false) | |
1194 | ApplyAoE(TORSO.Position,10,0,0,85,true) | |
1195 | 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}) | |
1196 | for i = 1, 5 do | |
1197 | 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}) | |
1198 | end | |
1199 | break | |
1200 | end | |
1201 | end | |
1202 | end | |
1203 | MINION:remove() | |
1204 | end)) | |
1205 | end | |
1206 | elseif RANDOMEFFECT == 4 then | |
1207 | local FIELD = CreatePart(3, Effects, "Neon", 0, 0, "Alder", "Field", VT(0.3,0.3,0.3)) | |
1208 | FIELD.Color = C3(0,0,0) | |
1209 | FIELD.CFrame = BASE.CFrame | |
1210 | MakeForm(FIELD,"Ball") | |
1211 | FIELD.CanCollide = true | |
1212 | for i = 1, 50 do | |
1213 | Swait() | |
1214 | FIELD.Size = FIELD.Size + VT(0.01,0.01,0.01) | |
1215 | FIELD.CFrame = FIELD.CFrame * CF(0,0.75-(i/45),0) | |
1216 | end | |
1217 | wait(0.2) | |
1218 | local LOOP = CreateSound(487214658, FIELD, 0, 1, true) | |
1219 | coroutine.resume(coroutine.create(function() | |
1220 | local E = 0 | |
1221 | for i = 1, 75 do | |
1222 | E = E + 1 | |
1223 | Swait() | |
1224 | if E >= 35 then | |
1225 | E = 0 | |
1226 | 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}) | |
1227 | end | |
1228 | LOOP.Volume = LOOP.Volume + 10/75 | |
1229 | LOOP.Parent = FIELD | |
1230 | local CHILDREN = workspace:GetDescendants() | |
1231 | for index, CHILD in pairs(CHILDREN) do | |
1232 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1233 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1234 | if HUM then | |
1235 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1236 | if TORSO then | |
1237 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
1238 | for _, c in pairs(CHILD:GetChildren()) do | |
1239 | if c:IsA("BasePart") then | |
1240 | local bv = Instance.new("BodyVelocity") | |
1241 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1242 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
1243 | bv.Parent = c | |
1244 | Debris:AddItem(bv,0.05) | |
1245 | end | |
1246 | end | |
1247 | HUM.Health = HUM.Health - 0.3 | |
1248 | end | |
1249 | end | |
1250 | end | |
1251 | end | |
1252 | end | |
1253 | FIELD.Size = FIELD.Size + VT(0.3,0.3,0.3)/5 | |
1254 | end | |
1255 | for i = 1, 180 do | |
1256 | E = E + 1 | |
1257 | Swait() | |
1258 | if E >= 35 then | |
1259 | E = 0 | |
1260 | 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}) | |
1261 | end | |
1262 | LOOP.Parent = FIELD | |
1263 | local CHILDREN = workspace:GetDescendants() | |
1264 | for index, CHILD in pairs(CHILDREN) do | |
1265 | if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then | |
1266 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
1267 | if HUM then | |
1268 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
1269 | if TORSO then | |
1270 | if (TORSO.Position - FIELD.Position).Magnitude <= FIELD.Size.X*30 then | |
1271 | for _, c in pairs(CHILD:GetChildren()) do | |
1272 | if c:IsA("BasePart") then | |
1273 | local bv = Instance.new("BodyVelocity") | |
1274 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1275 | bv.velocity = CF(FIELD.Position,c.Position).lookVector*-50 | |
1276 | bv.Parent = c | |
1277 | Debris:AddItem(bv,0.05) | |
1278 | end | |
1279 | end | |
1280 | HUM.Health = HUM.Health - 0.3 | |
1281 | end | |
1282 | end | |
1283 | end | |
1284 | end | |
1285 | end | |
1286 | end | |
1287 | ApplyAoE(FIELD.Position,40,15,20,375,false) | |
1288 | 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}) | |
1289 | for i = 1, 5 do | |
1290 | 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}) | |
1291 | end | |
1292 | FIELD:remove() | |
1293 | end)) | |
1294 | elseif RANDOMEFFECT == 5 then | |
1295 | end | |
1296 | wait(0.5) | |
1297 | for i = 1, 25 do | |
1298 | Swait() | |
1299 | PANDORASBOX:SetPrimaryPartCFrame(BASE.CFrame * CF(0,-0.3,0)) | |
1300 | end | |
1301 | PANDORASBOX:remove() | |
1302 | RINGSPIN = false | |
1303 | end)) | |
1304 | ATTACK = false | |
1305 | Rooted = false | |
1306 | end | |
1307 | end | |
1308 | ||
1309 | function Taunt() | |
1310 | ATTACK = true | |
1311 | local LAUGH = nil | |
1312 | coroutine.resume(coroutine.create(function() | |
1313 | repeat | |
1314 | Swait() | |
1315 | 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) | |
1316 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1.1*SIZE) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-45)), 1 / Animation_Speed) | |
1317 | 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) | |
1318 | 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) | |
1319 | 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) | |
1320 | 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) | |
1321 | until LAUGH ~= nil | |
1322 | repeat | |
1323 | Swait() | |
1324 | LAUGH.Parent = Head | |
1325 | 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) | |
1326 | 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) | |
1327 | 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) | |
1328 | 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) | |
1329 | 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) | |
1330 | 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) | |
1331 | until LAUGH.Playing == false | |
1332 | ATTACK = false | |
1333 | end)) | |
1334 | wait(0.1) | |
1335 | sick:Pause() | |
1336 | LAUGH = CreateSound(525166232, Head, 10, 1, false) | |
1337 | wait(1) | |
1338 | sick:Resume() | |
1339 | end | |
1340 | ||
1341 | function CyberSmash() | |
1342 | ATTACK = true | |
1343 | Rooted = false | |
1344 | local GYRO = IT("BodyGyro",RootPart) | |
1345 | GYRO.D = 100 | |
1346 | GYRO.P = 2000 | |
1347 | GYRO.MaxTorque = VT(0,4000000,0) | |
1348 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1349 | local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25)) | |
1350 | SMASH.CanCollide = true | |
1351 | SMASH.Color = C3(0,0,0) | |
1352 | local EF = Instance.new("SelectionBox",SMASH) | |
1353 | EF.Adornee = SMASH | |
1354 | EF.Color = BrickColor.new("Really red") | |
1355 | EF.LineThickness = 0.2 | |
1356 | EF.Transparency = 1 | |
1357 | coroutine.resume(coroutine.create(function() | |
1358 | for i = 1, 20 do | |
1359 | Swait() | |
1360 | SMASH.Transparency = SMASH.Transparency - 0.05 | |
1361 | EF.Transparency = SMASH.Transparency | |
1362 | end | |
1363 | end)) | |
1364 | repeat | |
1365 | SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0) | |
1366 | Swait() | |
1367 | GYRO.cframe = CF(RootPart.Position,SMASH.Position) | |
1368 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1369 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1370 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(130), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1371 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1372 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1373 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1374 | until HOLD == true and SMASH.Transparency < 0.99 | |
1375 | for i = 1, 25 do | |
1376 | Swait() | |
1377 | SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0) | |
1378 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1379 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1380 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(160), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1381 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1382 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1383 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1384 | end | |
1385 | local TOCH = SMASH.Touched:Connect(function(hit) | |
1386 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
1387 | Shatter(hit) | |
1388 | end | |
1389 | end) | |
1390 | local n0 = nil | |
1391 | local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character) | |
1392 | if HITFLOOR ~= nil then | |
1393 | if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then | |
1394 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
1395 | if HITFLOOR.Parent.ClassName == "Model" then | |
1396 | HITFLOOR.Parent:BreakJoints() | |
1397 | elseif HITFLOOR.Parent.Parent.ClassName == "Model" then | |
1398 | HITFLOOR.Parent.Parent:BreakJoints() | |
1399 | end | |
1400 | end | |
1401 | local POS = HITPOS | |
1402 | n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent) | |
1403 | end | |
1404 | end | |
1405 | killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter") | |
1406 | SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0)) | |
1407 | WACKYEFFECT({Time = 25, EffectType = "Box", Size = VT(24,0,24), Size2 = VT(75,2,75), Transparency = 0, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 130972023, SoundPitch = 1, SoundVolume = 10}) | |
1408 | for i = 1, 25 do | |
1409 | Swait() | |
1410 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(45)), 1 / Animation_Speed) | |
1411 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-45 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1412 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.025 * COS(SINE / 12), -0.5) * ANGLES(RAD(30), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(45 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1413 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.025 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1414 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1415 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1416 | end | |
1417 | coroutine.resume(coroutine.create(function() | |
1418 | wait(0.2) | |
1419 | TOCH:disconnect() | |
1420 | wait(1.8) | |
1421 | for i = 1, 100 do | |
1422 | Swait() | |
1423 | SMASH.Transparency = i/100 | |
1424 | end | |
1425 | for i = 1, 10 do | |
1426 | Swait() | |
1427 | EF.Transparency = EF.Transparency + 0.1 | |
1428 | end | |
1429 | SMASH:remove() | |
1430 | end)) | |
1431 | GYRO:remove() | |
1432 | ATTACK = false | |
1433 | Rooted = false | |
1434 | end | |
1435 | ||
1436 | --//=================================\\ | |
1437 | --|| ASSIGN THINGS TO KEYS | |
1438 | --\\=================================// | |
1439 | ||
1440 | function MouseDown(Mouse) | |
1441 | HOLD = true | |
1442 | if ATTACK == false then | |
1443 | end | |
1444 | end | |
1445 | ||
1446 | function MouseUp(Mouse) | |
1447 | HOLD = false | |
1448 | end | |
1449 | ||
1450 | function KeyDown(Key) | |
1451 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
1452 | KEYHOLD = true | |
1453 | if Key == "z" and ATTACK == false then | |
1454 | CyberOutburst() | |
1455 | end | |
1456 | ||
1457 | if Key == "n" and ATTACK == false then | |
1458 | Technobeam() | |
1459 | end | |
1460 | ||
1461 | if Key == "c" and ATTACK == false then | |
1462 | Technowarp() | |
1463 | end | |
1464 | ||
1465 | if Key == "v" and ATTACK == false then | |
1466 | CyberSmash() | |
1467 | end | |
1468 | ||
1469 | if Key == "b" and ATTACK == false then | |
1470 | PandorasBox() | |
1471 | end | |
1472 | ||
1473 | if Key == "t" then | |
1474 | local TAUNT = CreateSound("132392118", Head, 10, 0.8) | |
1475 | TAUNT.TimePosition = 1.1 | |
1476 | end | |
1477 | end | |
1478 | end | |
1479 | ||
1480 | function KeyUp(Key) | |
1481 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
1482 | KEYHOLD = false | |
1483 | end | |
1484 | end | |
1485 | ||
1486 | Mouse.Button1Down:connect(function(NEWKEY) | |
1487 | MouseDown(NEWKEY) | |
1488 | end) | |
1489 | Mouse.Button1Up:connect(function(NEWKEY) | |
1490 | MouseUp(NEWKEY) | |
1491 | end) | |
1492 | Mouse.KeyDown:connect(function(NEWKEY) | |
1493 | KeyDown(NEWKEY) | |
1494 | end) | |
1495 | Mouse.KeyUp:connect(function(NEWKEY) | |
1496 | KeyUp(NEWKEY) | |
1497 | end) | |
1498 | ||
1499 | --//=================================\\ | |
1500 | --\\=================================// | |
1501 | ||
1502 | ||
1503 | function unanchor() | |
1504 | if UNANCHOR == true then | |
1505 | g = Character:GetChildren() | |
1506 | for i = 1, #g do | |
1507 | if g[i].ClassName == "Part" then | |
1508 | g[i].Anchored = false | |
1509 | end | |
1510 | end | |
1511 | end | |
1512 | end | |
1513 | ||
1514 | ||
1515 | --//=================================\\ | |
1516 | --|| WRAP THE WHOLE SCRIPT UP | |
1517 | --\\=================================// | |
1518 | ||
1519 | Humanoid.Changed:connect(function(Jump) | |
1520 | if Jump == "Jump" and (Disable_Jump == true) then | |
1521 | Humanoid.Jump = false | |
1522 | end | |
1523 | end) | |
1524 | ||
1525 | Humanoid.HipHeight = 2 | |
1526 | ||
1527 | while true do | |
1528 | Swait() | |
1529 | refit() | |
1530 | Character.Parent = workspace | |
1531 | Humanoid.Parent = Character | |
1532 | ANIMATE.Parent = nil | |
1533 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1534 | IDLEANIMATION:Play() | |
1535 | SINE = SINE + CHANGE | |
1536 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1537 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1538 | HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character) | |
1539 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1540 | EyeWeld3.C1 = Clerp(EyeWeld3.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
1541 | EyeWeld2.C1 = Clerp(EyeWeld2.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
1542 | EyeWeld.C1 = Clerp(EyeWeld.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(SINE*2)), 1 / Animation_Speed) | |
1543 | for LW = 1, #LEFTWINGS do | |
1544 | if LEFTWINGS[LW] ~= nil then | |
1545 | LEFTWINGS[LW].C1 = Clerp(LEFTWINGS[LW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(-3 + 3 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1546 | end | |
1547 | end | |
1548 | for RW = 1, #RIGHTWINGS do | |
1549 | if RIGHTWINGS[RW] ~= nil then | |
1550 | RIGHTWINGS[RW].C1 = Clerp(RIGHTWINGS[RW].C1, CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(2.5 * SIN(SINE / 12)), RAD(0), RAD(3 - 3 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1551 | end | |
1552 | end | |
1553 | if ATTACK == false then | |
1554 | if TORSOVELOCITY < 1 then | |
1555 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1556 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(0 - 4 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1557 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1558 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1559 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1560 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1561 | elseif TORSOVELOCITY > 1 then | |
1562 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(15 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(2.5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1563 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-2.5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed) | |
1564 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1565 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1, 0 + 0.025 * COS(SINE / 12), -1) * ANGLES(RAD(25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(90 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1566 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1567 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1568 | end | |
1569 | end | |
1570 | for _, c in pairs(Character:GetChildren()) do | |
1571 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
1572 | c.Material = "Neon" | |
1573 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1574 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1575 | end | |
1576 | if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then | |
1577 | local EF = Instance.new("SelectionBox",c) | |
1578 | EF.Adornee = c | |
1579 | EF.Color = BrickColor.new("Really red") | |
1580 | EF.LineThickness = 0.01 | |
1581 | EF.Transparency = 0 | |
1582 | EF.Name = "BoxEffect" | |
1583 | end | |
1584 | c.Color = C3(0,0,0) | |
1585 | if c == Head then | |
1586 | --[[if c:FindFirstChild("Dominus") == nil then | |
1587 | local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0)) | |
1588 | M.Name = "Dominus" | |
1589 | end]]-- | |
1590 | if c:FindFirstChild("face") then | |
1591 | c.face:remove() | |
1592 | end | |
1593 | end | |
1594 | elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
1595 | c:remove() | |
1596 | end | |
1597 | end | |
1598 | if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then | |
1599 | local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p | |
1600 | local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character) | |
1601 | if BOXFLOOR ~= nil then | |
1602 | WACKYEFFECT({EffectType = "Box", Size = VT(2,0,2), Size2 = VT(0,15,0), Transparency = 0.5, Transparency2 = 0.5, CFrame = CF(BOXPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Really red".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1603 | end | |
1604 | end | |
1605 | unanchor() | |
1606 | Humanoid.MaxHealth = "inf" | |
1607 | Humanoid.Health = "inf" | |
1608 | if Rooted == false then | |
1609 | Disable_Jump = false | |
1610 | Humanoid.WalkSpeed = Speed | |
1611 | elseif Rooted == true then | |
1612 | Disable_Jump = true | |
1613 | Humanoid.WalkSpeed = 0 | |
1614 | end | |
1615 | for _, c in pairs(workspace:GetChildren()) do | |
1616 | if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then | |
1617 | end | |
1618 | end | |
1619 | script.Parent = WEAPONGUI | |
1620 | Humanoid.Name = "Monarch" | |
1621 | sick.Parent = Effects | |
1622 | sick.Pitch = 0.85 | |
1623 | sick.Playing = true | |
1624 | for _, q in pairs(Head:GetChildren()) do | |
1625 | if q.ClassName == "Sound" and q.Name ~= "Audio" then | |
1626 | q:remove() | |
1627 | end | |
1628 | end | |
1629 | Humanoid.DisplayDistanceType = "None" | |
1630 | end | |
1631 | ||
1632 | --//=================================\\ | |
1633 | --\\=================================// | |
1634 | ||
1635 | ||
1636 | ||
1637 | ||
1638 | ||
1639 | --//====================================================\\-- | |
1640 | --|| END OF SCRIPT | |
1641 | --\\====================================================//-- |