SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| EDITED BY DOGGDOGG1 | |
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://894909759" | |
29 | sick.Looped = true | |
30 | sick.Volume = 2 | |
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"Pink".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 | for i = 1, 15 do | |
515 | local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false) | |
516 | FACE.Color = C3(0,0,0) | |
517 | Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE | |
518 | CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0)) | |
519 | end | |
520 | local HAT1 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2,0.2,2),false) | |
521 | MakeForm(HAT1,"Cyl") | |
522 | HATWELD = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT1, CF(0,0.35,0), CF(0, 0, 0)) | |
523 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(2.01,0.15,2.01),false) | |
524 | BELT.Color = C3(15/255,15/255,15/255) | |
525 | MakeForm(BELT,"Cyl") | |
526 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, BELT, CF(0,0,0), CF(0, 0, 0)) | |
527 | local HAT2 = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,2.2,1.3),false) | |
528 | MakeForm(HAT2,"Cyl") | |
529 | CreateWeldOrSnapOrMotor("Weld", HAT1, HAT1, HAT2, CF(0,1.1,0), CF(0, 0, 0)) | |
530 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.2,1.31),false) | |
531 | BELT.Color = C3(15/255,15/255,15/255) | |
532 | MakeForm(BELT,"Cyl") | |
533 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0,0), CF(0, 0, 0)) | |
534 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Gem", VT(0.25,0.25,0.1),false) | |
535 | MakeForm(GEM,"Ball") | |
536 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,-BELT.Size.X/2), CF(0, 0, 0)) | |
537 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Gem", VT(0.25,0.25,0.1),false) | |
538 | MakeForm(GEM,"Ball") | |
539 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(0,0,BELT.Size.X/2), CF(0, 0, 0)) | |
540 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Gem", VT(0.1,0.25,0.25),false) | |
541 | MakeForm(GEM,"Ball") | |
542 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(-BELT.Size.X/2,0,0), CF(0, 0, 0)) | |
543 | local GEM = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "Gem", VT(0.1,0.25,0.25),false) | |
544 | MakeForm(GEM,"Ball") | |
545 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, GEM, CF(BELT.Size.X/2,0,0), CF(0, 0, 0)) | |
546 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
547 | BELT.Color = C3(15/255,15/255,15/255) | |
548 | MakeForm(BELT,"Cyl") | |
549 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.7,0), CF(0, 0, 0)) | |
550 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
551 | BELT.Color = C3(15/255,15/255,15/255) | |
552 | MakeForm(BELT,"Cyl") | |
553 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.7,0), CF(0, 0, 0)) | |
554 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
555 | BELT.Color = C3(15/255,15/255,15/255) | |
556 | MakeForm(BELT,"Cyl") | |
557 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,0.35,0), CF(0, 0, 0)) | |
558 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.31,0.1,1.31),false) | |
559 | BELT.Color = C3(15/255,15/255,15/255) | |
560 | MakeForm(BELT,"Cyl") | |
561 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,-0.35,0), CF(0, 0, 0)) | |
562 | local BELT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Hat", VT(1.3,0.5,1.3),false) | |
563 | MakeForm(BELT,"Ball") | |
564 | CreateWeldOrSnapOrMotor("Weld", HAT2, HAT2, BELT, CF(0,HAT2.Size.Y/2,0), CF(0, 0, 0)) | |
565 | Humanoid.DisplayDistanceType = "None" | |
566 | local naeeym2 = IT("BillboardGui",Character) | |
567 | naeeym2.AlwaysOnTop = true | |
568 | naeeym2.Size = UDim2.new(5,35,2,15) | |
569 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
570 | naeeym2.MaxDistance = 75 | |
571 | naeeym2.Adornee = Character.Head | |
572 | naeeym2.Name = "Name" | |
573 | naeeym2.PlayerToHideFrom = Player | |
574 | local tecks2 = IT("TextLabel",naeeym2) | |
575 | tecks2.BackgroundTransparency = 1 | |
576 | tecks2.TextScaled = true | |
577 | tecks2.BorderSizePixel = 0 | |
578 | tecks2.Text = "Warden (leaked version)" | |
579 | tecks2.Font = "Bodoni" | |
580 | tecks2.TextSize = 30 | |
581 | tecks2.TextStrokeTransparency = 0.5 | |
582 | tecks2.TextColor3 = C3(0,0,0) | |
583 | tecks2.TextStrokeColor3 = BRICKC"Lime green".Color | |
584 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
585 | tecks2.Parent = naeeym2 | |
586 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "FaceGradient", VT(0.6,0.1,1)/2,false) | |
587 | MakeForm(EYE,"Ball") | |
588 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4)) | |
589 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "FaceGradient", VT(0.6,0.1,1)/2,false) | |
590 | MakeForm(EYE,"Ball") | |
591 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4)) | |
592 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "FaceGradient", VT(0.1,1,1)/2,false) | |
593 | MakeForm(EYE,"Ball") | |
594 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4)) | |
595 | local EYE = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "FaceGradient", VT(0.1,1,1)/2,false) | |
596 | MakeForm(EYE,"Ball") | |
597 | CreateWeldOrSnapOrMotor("Weld", Head, Head, EYE, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4)) | |
598 | ||
599 | local top = Instance.new("Shirt") | |
600 | - | top.ShirtTemplate = "rbxassetid://676428254" |
600 | + | top.ShirtTemplate = "rbxassetid://833873369"top.parent = Character |
601 | - | top.Parent = Character |
601 | + | |
602 | local bottom = Instance.new("Pants") | |
603 | bottom.PantsTemplate = "rbxassetid://714463360" | |
604 | - | bottom.PantsTemplate = "rbxassetid://676428351" |
604 | + | |
605 | bottom.Name = "Cloth" | |
606 | for _, c in pairs(Character:GetChildren()) do | |
607 | if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then | |
608 | c.Material = "Neon" | |
609 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
610 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
611 | end | |
612 | c.Color = C3(1,1,1) | |
613 | if c == Head then | |
614 | if c:FindFirstChild("face") then | |
615 | c.face:remove() | |
616 | end | |
617 | end | |
618 | elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then | |
619 | c:remove() | |
620 | elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then | |
621 | c:remove() | |
622 | end | |
623 | end | |
624 | local BODY = {} | |
625 | for _, c in pairs(Character:GetDescendants()) do | |
626 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
627 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
628 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
629 | end | |
630 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
631 | elseif c:IsA("JointInstance") then | |
632 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
633 | end | |
634 | end | |
635 | for e = 1, #BODY do | |
636 | if BODY[e] ~= nil then | |
637 | local STUFF = BODY[e] | |
638 | local PART = STUFF[1] | |
639 | local PARENT = STUFF[2] | |
640 | local MATERIAL = STUFF[3] | |
641 | local COLOR = STUFF[4] | |
642 | local TRANSPARENCY = STUFF[5] | |
643 | if PART.ClassName == "Part" and PART ~= RootPart then | |
644 | PART.Material = MATERIAL | |
645 | PART.Color = COLOR | |
646 | PART.Transparency = TRANSPARENCY | |
647 | end | |
648 | PART.AncestryChanged:Connect(function() | |
649 | PART.Parent = PARENT | |
650 | end) | |
651 | end | |
652 | end | |
653 | function refit() | |
654 | Character.Parent = workspace | |
655 | for e = 1, #BODY do | |
656 | if BODY[e] ~= nil then | |
657 | local STUFF = BODY[e] | |
658 | local PART = STUFF[1] | |
659 | local PARENT = STUFF[2] | |
660 | local MATERIAL = STUFF[3] | |
661 | local COLOR = STUFF[4] | |
662 | local TRANSPARENCY = STUFF[5] | |
663 | if PART.ClassName == "Part" and PART ~= RootPart then | |
664 | PART.Material = MATERIAL | |
665 | PART.Color = COLOR | |
666 | PART.Transparency = TRANSPARENCY | |
667 | end | |
668 | if PART.Parent ~= PARENT then | |
669 | Humanoid:remove() | |
670 | PART.Parent = PARENT | |
671 | Humanoid = IT("Humanoid",Character) | |
672 | end | |
673 | end | |
674 | end | |
675 | end | |
676 | local SKILLTEXTCOLOR = BRICKC"Lime green".Color | |
677 | local SKILLFONT = "Bodoni" | |
678 | local SKILLTEXTSIZE = 7 | |
679 | ||
680 | Humanoid.Died:connect(function() | |
681 | refit() | |
682 | end) | |
683 | ||
684 | 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") | |
685 | 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") | |
686 | 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") | |
687 | 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") | |
688 | local SKILL5FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame") | |
689 | ||
690 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Warden Zap", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 1") | |
691 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warden Thunder", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 2") | |
692 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Inferno Ring", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 3") | |
693 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Warden Wall", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 4") | |
694 | local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Prison Key", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0, "Text 5") | |
695 | ||
696 | ||
697 | --//=================================\\ | |
698 | --|| DAMAGING | |
699 | --\\=================================// | |
700 | ||
701 | function killnearest(position,range,EFFECT) | |
702 | for i,v in ipairs(workspace:GetChildren()) do | |
703 | local body = v:GetChildren() | |
704 | for part = 1, #body do | |
705 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
706 | local SIZE = body[part].Size.Magnitude | |
707 | if(body[part].Position - position).Magnitude < range + SIZE/2 then | |
708 | if v.ClassName == "Model" then | |
709 | if v:FindFirstChildOfClass("Humanoid") ~= nil then | |
710 | if v:FindFirstChildOfClass("Humanoid").Health > 0 then | |
711 | v:BreakJoints() | |
712 | if EFFECT == "Glitch" then | |
713 | coroutine.resume(coroutine.create(function() | |
714 | local ORIGINPOS = body[part].CFrame | |
715 | local SIZE = body[part].Size | |
716 | for i = 1, 100 do | |
717 | Swait() | |
718 | local PART = body[part] | |
719 | PART.Anchored = true | |
720 | PART.Size = SIZE*MRANDOM(5,15)/10 | |
721 | PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15) | |
722 | end | |
723 | body[part]:remove() | |
724 | end)) | |
725 | elseif EFFECT == "Shatter" then | |
726 | for _, c in pairs(v:GetChildren()) do | |
727 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
728 | Shatter(c) | |
729 | end | |
730 | end | |
731 | end | |
732 | end | |
733 | end | |
734 | end | |
735 | end | |
736 | end | |
737 | end | |
738 | end | |
739 | end | |
740 | ||
741 | --//=================================\\ | |
742 | --|| ATTACK FUNCTIONS AND STUFF | |
743 | --\\=================================// | |
744 | ||
745 | function CyberOutburst() | |
746 | if HITFLOOR ~= nil then | |
747 | ATTACK = true | |
748 | Rooted = true | |
749 | for i=0, 2, 0.1 / Animation_Speed do | |
750 | Swait() | |
751 | 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}) | |
752 | 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) | |
753 | 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) | |
754 | 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) | |
755 | 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) | |
756 | 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) | |
757 | 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) | |
758 | end | |
759 | for i=0, 2, 0.1 / Animation_Speed do | |
760 | Swait() | |
761 | 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) | |
762 | 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) | |
763 | 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) | |
764 | 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) | |
765 | 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) | |
766 | 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) | |
767 | end | |
768 | 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}) | |
769 | 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}) | |
770 | 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}) | |
771 | for i=0, 0.4, 0.1 / Animation_Speed do | |
772 | Swait() | |
773 | killnearest(Torso.Position,45,"Glitch") | |
774 | 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}) | |
775 | 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}) | |
776 | 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) | |
777 | 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) | |
778 | 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) | |
779 | 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) | |
780 | 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) | |
781 | 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) | |
782 | end | |
783 | ATTACK = false | |
784 | Rooted = false | |
785 | end | |
786 | end | |
787 | ||
788 | function Technobeam() | |
789 | ATTACK = true | |
790 | Rooted = false | |
791 | local GYRO = IT("BodyGyro",RootPart) | |
792 | GYRO.D = 100 | |
793 | GYRO.P = 2000 | |
794 | GYRO.MaxTorque = VT(0,4000000,0) | |
795 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
796 | CreateSound("93724183", RightArm, 5, 1, false) | |
797 | for i=1, 35 do | |
798 | Swait() | |
799 | 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}) | |
800 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
801 | 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) | |
802 | 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) | |
803 | 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) | |
804 | 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) | |
805 | 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) | |
806 | 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) | |
807 | end | |
808 | local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Pink", "Lazer", VT(0,0,0)) | |
809 | local LOOP = CreateSound("415700134", RightArm, 5, 1, false) | |
810 | local TOCH = BEAM.Touched:Connect(function(hit) | |
811 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
812 | Shatter(hit) | |
813 | end | |
814 | end) | |
815 | local I = 0 | |
816 | repeat | |
817 | Swait() | |
818 | I = I + 1 | |
819 | if I <= 10 then | |
820 | BEAM.Transparency = BEAM.Transparency - 0.1 | |
821 | end | |
822 | local STARTPOS = RightArm.CFrame*CF(0,-4,0).p | |
823 | local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character) | |
824 | local DISTANCE = (STARTPOS - ENDPOS).Magnitude | |
825 | BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5)) | |
826 | BEAM.Size = VT(2,2,DISTANCE) | |
827 | 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}) | |
828 | 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}) | |
829 | 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}) | |
830 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
831 | 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) | |
832 | 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) | |
833 | 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) | |
834 | 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) | |
835 | 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) | |
836 | 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) | |
837 | if ENDHIT ~= nil then | |
838 | if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then | |
839 | Shatter(ENDHIT) | |
840 | end | |
841 | end | |
842 | until LOOP.Playing == false | |
843 | GYRO:remove() | |
844 | BEAM:remove() | |
845 | ATTACK = false | |
846 | Rooted = false | |
847 | end | |
848 | ||
849 | function Technowarp() | |
850 | local FRAME = RootPart.Position | |
851 | for i = 1, 6 do | |
852 | 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"Pink".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2}) | |
853 | end | |
854 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z)) | |
855 | for i = 1, 6 do | |
856 | 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"Pink".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2}) | |
857 | end | |
858 | end | |
859 | ||
860 | function CyberSmash() | |
861 | ATTACK = true | |
862 | Rooted = false | |
863 | local GYRO = IT("BodyGyro",RootPart) | |
864 | GYRO.D = 100 | |
865 | GYRO.P = 2000 | |
866 | GYRO.MaxTorque = VT(0,4000000,0) | |
867 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
868 | local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Pink", "Block", VT(25,25,25)) | |
869 | SMASH.CanCollide = true | |
870 | SMASH.Color = C3(0,0,0) | |
871 | local EF = Instance.new("SelectionBox",SMASH) | |
872 | EF.Adornee = SMASH | |
873 | EF.Color = BrickColor.new("Pink") | |
874 | EF.LineThickness = 0.2 | |
875 | EF.Transparency = 1 | |
876 | coroutine.resume(coroutine.create(function() | |
877 | for i = 1, 20 do | |
878 | Swait() | |
879 | SMASH.Transparency = SMASH.Transparency - 0.05 | |
880 | EF.Transparency = SMASH.Transparency | |
881 | end | |
882 | end)) | |
883 | repeat | |
884 | SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0) | |
885 | Swait() | |
886 | GYRO.cframe = CF(RootPart.Position,SMASH.Position) | |
887 | 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) | |
888 | 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) | |
889 | 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) | |
890 | 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) | |
891 | 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) | |
892 | 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) | |
893 | until HOLD == true and SMASH.Transparency < 0.99 | |
894 | for i = 1, 25 do | |
895 | Swait() | |
896 | SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0) | |
897 | 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) | |
898 | 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) | |
899 | 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) | |
900 | 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) | |
901 | 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) | |
902 | 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) | |
903 | end | |
904 | local TOCH = SMASH.Touched:Connect(function(hit) | |
905 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
906 | Shatter(hit) | |
907 | end | |
908 | end) | |
909 | local n0 = nil | |
910 | local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character) | |
911 | if HITFLOOR ~= nil then | |
912 | if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then | |
913 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
914 | if HITFLOOR.Parent.ClassName == "Model" then | |
915 | HITFLOOR.Parent:BreakJoints() | |
916 | elseif HITFLOOR.Parent.Parent.ClassName == "Model" then | |
917 | HITFLOOR.Parent.Parent:BreakJoints() | |
918 | end | |
919 | end | |
920 | local POS = HITPOS | |
921 | n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent) | |
922 | end | |
923 | end | |
924 | killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter") | |
925 | SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0)) | |
926 | 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}) | |
927 | for i = 1, 25 do | |
928 | Swait() | |
929 | 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) | |
930 | 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) | |
931 | 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) | |
932 | 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) | |
933 | 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) | |
934 | 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) | |
935 | end | |
936 | coroutine.resume(coroutine.create(function() | |
937 | wait(0.2) | |
938 | TOCH:disconnect() | |
939 | wait(1.8) | |
940 | for i = 1, 100 do | |
941 | Swait() | |
942 | SMASH.Transparency = i/100 | |
943 | end | |
944 | for i = 1, 10 do | |
945 | Swait() | |
946 | EF.Transparency = EF.Transparency + 0.1 | |
947 | end | |
948 | SMASH:remove() | |
949 | end)) | |
950 | GYRO:remove() | |
951 | ATTACK = false | |
952 | Rooted = false | |
953 | end | |
954 | ||
955 | --//=================================\\ | |
956 | --|| ASSIGN THINGS TO KEYS | |
957 | --\\=================================// | |
958 | ||
959 | function MouseDown(Mouse) | |
960 | HOLD = true | |
961 | if ATTACK == false then | |
962 | end | |
963 | end | |
964 | ||
965 | function MouseUp(Mouse) | |
966 | HOLD = false | |
967 | end | |
968 | ||
969 | function KeyDown(Key) | |
970 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
971 | KEYHOLD = true | |
972 | if Key == "z" and ATTACK == false then | |
973 | CyberOutburst() | |
974 | end | |
975 | ||
976 | if Key == "b" and ATTACK == false then | |
977 | Technobeam() | |
978 | end | |
979 | ||
980 | if Key == "c" and ATTACK == false then | |
981 | Technowarp() | |
982 | end | |
983 | ||
984 | if Key == "v" and ATTACK == false then | |
985 | CyberSmash() | |
986 | end | |
987 | ||
988 | if Key == "t" then | |
989 | local TAUNT = CreateSound("282338123", Head, 10, 0.8) | |
990 | TAUNT.TimePosition = 1.1 | |
991 | end | |
992 | end | |
993 | end | |
994 | ||
995 | function KeyUp(Key) | |
996 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
997 | KEYHOLD = false | |
998 | end | |
999 | end | |
1000 | ||
1001 | Mouse.Button1Down:connect(function(NEWKEY) | |
1002 | MouseDown(NEWKEY) | |
1003 | end) | |
1004 | Mouse.Button1Up:connect(function(NEWKEY) | |
1005 | MouseUp(NEWKEY) | |
1006 | end) | |
1007 | Mouse.KeyDown:connect(function(NEWKEY) | |
1008 | KeyDown(NEWKEY) | |
1009 | end) | |
1010 | Mouse.KeyUp:connect(function(NEWKEY) | |
1011 | KeyUp(NEWKEY) | |
1012 | end) | |
1013 | ||
1014 | --//=================================\\ | |
1015 | --\\=================================// | |
1016 | ||
1017 | ||
1018 | function unanchor() | |
1019 | if UNANCHOR == true then | |
1020 | g = Character:GetChildren() | |
1021 | for i = 1, #g do | |
1022 | if g[i].ClassName == "Part" then | |
1023 | g[i].Anchored = false | |
1024 | end | |
1025 | end | |
1026 | end | |
1027 | end | |
1028 | ||
1029 | ||
1030 | --//=================================\\ | |
1031 | --|| WRAP THE WHOLE SCRIPT UP | |
1032 | --\\=================================// | |
1033 | ||
1034 | Humanoid.Changed:connect(function(Jump) | |
1035 | if Jump == "Jump" and (Disable_Jump == true) then | |
1036 | Humanoid.Jump = false | |
1037 | end | |
1038 | end) | |
1039 | ||
1040 | Humanoid.HipHeight = 2 | |
1041 | ||
1042 | while true do | |
1043 | Swait() | |
1044 | refit() | |
1045 | Character.Parent = workspace | |
1046 | Humanoid.Parent = Character | |
1047 | ANIMATE.Parent = nil | |
1048 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1049 | IDLEANIMATION:Play() | |
1050 | SINE = SINE + CHANGE | |
1051 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1052 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1053 | HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character) | |
1054 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
1055 | EyeWeld3.C1 = Clerp(EyeWeld3.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
1056 | EyeWeld2.C1 = Clerp(EyeWeld2.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
1057 | EyeWeld.C1 = Clerp(EyeWeld.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(SINE*2)), 1 / Animation_Speed) | |
1058 | for LW = 1, #LEFTWINGS do | |
1059 | if LEFTWINGS[LW] ~= nil then | |
1060 | 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) | |
1061 | end | |
1062 | end | |
1063 | for RW = 1, #RIGHTWINGS do | |
1064 | if RIGHTWINGS[RW] ~= nil then | |
1065 | 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) | |
1066 | end | |
1067 | end | |
1068 | if ATTACK == false then | |
1069 | if TORSOVELOCITY < 1 then | |
1070 | 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) | |
1071 | 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) | |
1072 | 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) | |
1073 | 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) | |
1074 | 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) | |
1075 | 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) | |
1076 | elseif TORSOVELOCITY > 1 then | |
1077 | 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) | |
1078 | 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) | |
1079 | 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) | |
1080 | 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) | |
1081 | 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) | |
1082 | 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) | |
1083 | end | |
1084 | end | |
1085 | for _, c in pairs(Character:GetChildren()) do | |
1086 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
1087 | c.Material = "Neon" | |
1088 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1089 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1090 | end | |
1091 | if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then | |
1092 | local EF = Instance.new("SelectionBox",c) | |
1093 | EF.Adornee = c | |
1094 | EF.Color = BrickColor.new("Pink") | |
1095 | EF.LineThickness = 0.01 | |
1096 | EF.Transparency = 0 | |
1097 | EF.Name = "BoxEffect" | |
1098 | end | |
1099 | c.Color = C3(0,0,0) | |
1100 | if c == Head then | |
1101 | --[[if c:FindFirstChild("Dominus") == nil then | |
1102 | local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0)) | |
1103 | M.Name = "Dominus" | |
1104 | end]]-- | |
1105 | if c:FindFirstChild("face") then | |
1106 | c.face:remove() | |
1107 | end | |
1108 | end | |
1109 | elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
1110 | c:remove() | |
1111 | end | |
1112 | end | |
1113 | if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then | |
1114 | local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p | |
1115 | local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character) | |
1116 | if BOXFLOOR ~= nil then | |
1117 | 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"Pink".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1118 | end | |
1119 | end | |
1120 | unanchor() | |
1121 | Humanoid.MaxHealth = "inf" | |
1122 | Humanoid.Health = "inf" | |
1123 | if Rooted == false then | |
1124 | Disable_Jump = false | |
1125 | Humanoid.WalkSpeed = Speed | |
1126 | elseif Rooted == true then | |
1127 | Disable_Jump = true | |
1128 | Humanoid.WalkSpeed = 0 | |
1129 | end | |
1130 | for _, c in pairs(workspace:GetChildren()) do | |
1131 | if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then | |
1132 | end | |
1133 | end | |
1134 | script.Parent = WEAPONGUI | |
1135 | Humanoid.Name = "Monarch" | |
1136 | sick.Parent = Effects | |
1137 | sick.Pitch = 0.85 | |
1138 | sick.Playing = true | |
1139 | for _, q in pairs(Head:GetChildren()) do | |
1140 | if q.ClassName == "Sound" and q.Name ~= "Audio" then | |
1141 | q:remove() | |
1142 | end | |
1143 | end | |
1144 | Humanoid.DisplayDistanceType = "None" | |
1145 | end | |
1146 | ||
1147 | --//=================================\\ | |
1148 | --\\=================================// | |
1149 | ||
1150 | ||
1151 | ||
1152 | ||
1153 | ||
1154 | --//====================================================\\-- | |
1155 | --|| END OF SCRIPT | |
1156 | --\\====================================================//-- |