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" |
28 | + | sick.SoundId = "rbxassetid://0" |
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 Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.3,0.3,0.3),false) | |
536 | 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)) | |
537 | local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "Really red", "Eye", VT(0.5,0.5,0.29),false) | |
538 | 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)) | |
539 | ||
540 | local Eye3 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,0.1,0.31),false) | |
541 | 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)) | |
542 | ||
543 | local SKILLTEXTCOLOR = BRICKC"Really red".Color | |
544 | local SKILLFONT = "SciFi" | |
545 | local SKILLTEXTSIZE = 6 | |
546 | ||
547 | local naeeym2 = Instance.new("BillboardGui",Character) | |
548 | naeeym2.AlwaysOnTop = true | |
549 | naeeym2.Size = UDim2.new(5,35,2,15) | |
550 | naeeym2.StudsOffset = Vector3.new(0,1.2,0) | |
551 | naeeym2.Adornee = Character.Head | |
552 | naeeym2.Name = "Name" | |
553 | naeeym2.PlayerToHideFrom = Player | |
554 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
555 | tecks2.BackgroundTransparency = 1 | |
556 | tecks2.TextScaled = true | |
557 | tecks2.BorderSizePixel = 0 | |
558 | tecks2.Text = "Cyber Monarch" | |
559 | tecks2.Font = SKILLFONT | |
560 | tecks2.TextSize = 30 | |
561 | tecks2.TextStrokeTransparency = 0 | |
562 | tecks2.TextColor3 = C3(0,0,0) | |
563 | tecks2.TextStrokeColor3 = BRICKC"Really red".Color | |
564 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
565 | tecks2.Parent = naeeym2 | |
566 | ||
567 | for _, c in pairs(Character:GetChildren()) do | |
568 | if c.ClassName == "Part" then | |
569 | table.insert(BODY,{c,Character}) | |
570 | for _, q in pairs(c:GetChildren()) do | |
571 | if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then | |
572 | table.insert(BODY,{q,c}) | |
573 | end | |
574 | end | |
575 | end | |
576 | end | |
577 | ||
578 | function refit() | |
579 | Character.Parent = workspace | |
580 | for e = 1, #BODY do | |
581 | if BODY[e] ~= nil then | |
582 | local STUFF = BODY[e] | |
583 | local PART = STUFF[1] | |
584 | local PARENT = STUFF[2] | |
585 | PART.Parent = PARENT | |
586 | end | |
587 | end | |
588 | end | |
589 | ||
590 | Humanoid.HealthChanged:connect(function() | |
591 | Humanoid.Parent = nil | |
592 | Humanoid.MaxHealth = "inf" | |
593 | Humanoid.Health = "inf" | |
594 | refit() | |
595 | Humanoid.Parent = Character | |
596 | end) | |
597 | ||
598 | Humanoid.Died:connect(function() | |
599 | Humanoid.Parent = nil | |
600 | Humanoid.MaxHealth = "inf" | |
601 | Humanoid.Health = "inf" | |
602 | refit() | |
603 | Humanoid.Parent = Character | |
604 | end) | |
605 | ||
606 | 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") | |
607 | 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") | |
608 | 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") | |
609 | 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") | |
610 | ||
611 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Cyber Out-Burst", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
612 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Techno Beam", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
613 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Techno Warp", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
614 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Cyber Smash", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
615 | ||
616 | --//=================================\\ | |
617 | --|| DAMAGING | |
618 | --\\=================================// | |
619 | ||
620 | function killnearest(position,range,EFFECT) | |
621 | for i,v in ipairs(workspace:GetChildren()) do | |
622 | local body = v:GetChildren() | |
623 | for part = 1, #body do | |
624 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
625 | local SIZE = body[part].Size.Magnitude | |
626 | if(body[part].Position - position).Magnitude < range + SIZE/2 then | |
627 | if v.ClassName == "Model" then | |
628 | if v:FindFirstChildOfClass("Humanoid") ~= nil then | |
629 | if v:FindFirstChildOfClass("Humanoid").Health > 0 then | |
630 | v:BreakJoints() | |
631 | if EFFECT == "Glitch" then | |
632 | coroutine.resume(coroutine.create(function() | |
633 | local ORIGINPOS = body[part].CFrame | |
634 | local SIZE = body[part].Size | |
635 | for i = 1, 100 do | |
636 | Swait() | |
637 | local PART = body[part] | |
638 | PART.Anchored = true | |
639 | PART.Size = SIZE*MRANDOM(5,15)/10 | |
640 | PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15) | |
641 | end | |
642 | body[part]:remove() | |
643 | end)) | |
644 | elseif EFFECT == "Shatter" then | |
645 | for _, c in pairs(v:GetChildren()) do | |
646 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
647 | Shatter(c) | |
648 | end | |
649 | end | |
650 | end | |
651 | end | |
652 | end | |
653 | end | |
654 | end | |
655 | end | |
656 | end | |
657 | end | |
658 | end | |
659 | ||
660 | --//=================================\\ | |
661 | --|| ATTACK FUNCTIONS AND STUFF | |
662 | --\\=================================// | |
663 | ||
664 | function CyberOutburst() | |
665 | if HITFLOOR ~= nil then | |
666 | ATTACK = true | |
667 | Rooted = true | |
668 | for i=0, 2, 0.1 / Animation_Speed do | |
669 | Swait() | |
670 | - | 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}) |
670 | + | 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, |
671 | = nil, SoundPitch = nil, SoundVolume = nil}) | |
672 | 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) | |
673 | 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) | |
674 | 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) | |
675 | 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) | |
676 | 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) | |
677 | 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) | |
678 | end | |
679 | for i=0, 2, 0.1 / Animation_Speed do | |
680 | Swait() | |
681 | 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) | |
682 | 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) | |
683 | 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) | |
684 | 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) | |
685 | 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) | |
686 | 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) | |
687 | end | |
688 | 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}) | |
689 | 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}) | |
690 | 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}) | |
691 | for i=0, 0.4, 0.1 / Animation_Speed do | |
692 | Swait() | |
693 | killnearest(Torso.Position,45,"Glitch") | |
694 | 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}) | |
695 | 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}) | |
696 | 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) | |
697 | 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) | |
698 | 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) | |
699 | 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) | |
700 | 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) | |
701 | 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) | |
702 | end | |
703 | ATTACK = false | |
704 | Rooted = false | |
705 | end | |
706 | end | |
707 | ||
708 | function Technobeam() | |
709 | ATTACK = true | |
710 | Rooted = false | |
711 | local GYRO = IT("BodyGyro",RootPart) | |
712 | GYRO.D = 100 | |
713 | GYRO.P = 2000 | |
714 | GYRO.MaxTorque = VT(0,4000000,0) | |
715 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
716 | CreateSound("93724183", RightArm, 5, 1, false) | |
717 | for i=1, 35 do | |
718 | Swait() | |
719 | 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}) | |
720 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
721 | 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) | |
722 | 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) | |
723 | 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) | |
724 | 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) | |
725 | 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) | |
726 | 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) | |
727 | end | |
728 | local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Lazer", VT(0,0,0)) | |
729 | local LOOP = CreateSound("415700134", RightArm, 5, 1, false) | |
730 | local TOCH = BEAM.Touched:Connect(function(hit) | |
731 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
732 | Shatter(hit) | |
733 | end | |
734 | end) | |
735 | local I = 0 | |
736 | repeat | |
737 | Swait() | |
738 | I = I + 1 | |
739 | if I <= 10 then | |
740 | BEAM.Transparency = BEAM.Transparency - 0.1 | |
741 | end | |
742 | local STARTPOS = RightArm.CFrame*CF(0,-4,0).p | |
743 | local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character) | |
744 | local DISTANCE = (STARTPOS - ENDPOS).Magnitude | |
745 | BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5)) | |
746 | BEAM.Size = VT(2,2,DISTANCE) | |
747 | 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}) | |
748 | 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}) | |
749 | 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}) | |
750 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
751 | 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) | |
752 | 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) | |
753 | 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) | |
754 | 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) | |
755 | 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) | |
756 | 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) | |
757 | if ENDHIT ~= nil then | |
758 | if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then | |
759 | Shatter(ENDHIT) | |
760 | end | |
761 | end | |
762 | until LOOP.Playing == false | |
763 | GYRO:remove() | |
764 | BEAM:remove() | |
765 | ATTACK = false | |
766 | Rooted = false | |
767 | end | |
768 | ||
769 | function Technowarp() | |
770 | local FRAME = RootPart.Position | |
771 | for i = 1, 6 do | |
772 | 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}) | |
773 | end | |
774 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z)) | |
775 | for i = 1, 6 do | |
776 | 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}) | |
777 | end | |
778 | end | |
779 | ||
780 | function CyberSmash() | |
781 | ATTACK = true | |
782 | Rooted = false | |
783 | local GYRO = IT("BodyGyro",RootPart) | |
784 | GYRO.D = 100 | |
785 | GYRO.P = 2000 | |
786 | GYRO.MaxTorque = VT(0,4000000,0) | |
787 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
788 | local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25)) | |
789 | SMASH.CanCollide = true | |
790 | SMASH.Color = C3(0,0,0) | |
791 | local EF = Instance.new("SelectionBox",SMASH) | |
792 | EF.Adornee = SMASH | |
793 | EF.Color = BrickColor.new("Really red") | |
794 | EF.LineThickness = 0.2 | |
795 | EF.Transparency = 1 | |
796 | coroutine.resume(coroutine.create(function() | |
797 | for i = 1, 20 do | |
798 | Swait() | |
799 | SMASH.Transparency = SMASH.Transparency - 0.05 | |
800 | EF.Transparency = SMASH.Transparency | |
801 | end | |
802 | end)) | |
803 | repeat | |
804 | SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0) | |
805 | Swait() | |
806 | GYRO.cframe = CF(RootPart.Position,SMASH.Position) | |
807 | 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) | |
808 | 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) | |
809 | 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) | |
810 | 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) | |
811 | 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) | |
812 | 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) | |
813 | until HOLD == true and SMASH.Transparency < 0.99 | |
814 | for i = 1, 25 do | |
815 | Swait() | |
816 | SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0) | |
817 | 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) | |
818 | 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) | |
819 | 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) | |
820 | 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) | |
821 | 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) | |
822 | 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) | |
823 | end | |
824 | local TOCH = SMASH.Touched:Connect(function(hit) | |
825 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
826 | Shatter(hit) | |
827 | end | |
828 | end) | |
829 | local n0 = nil | |
830 | local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character) | |
831 | if HITFLOOR ~= nil then | |
832 | if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then | |
833 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
834 | if HITFLOOR.Parent.ClassName == "Model" then | |
835 | HITFLOOR.Parent:BreakJoints() | |
836 | elseif HITFLOOR.Parent.Parent.ClassName == "Model" then | |
837 | HITFLOOR.Parent.Parent:BreakJoints() | |
838 | end | |
839 | end | |
840 | local POS = HITPOS | |
841 | n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent) | |
842 | end | |
843 | end | |
844 | killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter") | |
845 | SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0)) | |
846 | 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}) | |
847 | for i = 1, 25 do | |
848 | Swait() | |
849 | 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) | |
850 | 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) | |
851 | 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) | |
852 | 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) | |
853 | 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) | |
854 | 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) | |
855 | end | |
856 | coroutine.resume(coroutine.create(function() | |
857 | wait(0.2) | |
858 | TOCH:disconnect() | |
859 | wait(1.8) | |
860 | for i = 1, 100 do | |
861 | Swait() | |
862 | SMASH.Transparency = i/100 | |
863 | end | |
864 | for i = 1, 10 do | |
865 | Swait() | |
866 | EF.Transparency = EF.Transparency + 0.1 | |
867 | end | |
868 | SMASH:remove() | |
869 | end)) | |
870 | GYRO:remove() | |
871 | ATTACK = false | |
872 | Rooted = false | |
873 | end | |
874 | ||
875 | --//=================================\\ | |
876 | --|| ASSIGN THINGS TO KEYS | |
877 | --\\=================================// | |
878 | ||
879 | function MouseDown(Mouse) | |
880 | HOLD = true | |
881 | if ATTACK == false then | |
882 | end | |
883 | end | |
884 | ||
885 | function MouseUp(Mouse) | |
886 | HOLD = false | |
887 | end | |
888 | ||
889 | function KeyDown(Key) | |
890 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
891 | KEYHOLD = true | |
892 | if Key == "z" and ATTACK == false then | |
893 | CyberOutburst() | |
894 | end | |
895 | ||
896 | if Key == "b" and ATTACK == false then | |
897 | Technobeam() | |
898 | end | |
899 | ||
900 | if Key == "c" and ATTACK == false then | |
901 | Technowarp() | |
902 | end | |
903 | ||
904 | if Key == "v" and ATTACK == false then | |
905 | CyberSmash() | |
906 | end | |
907 | ||
908 | if Key == "t" then | |
909 | local TAUNT = CreateSound("132392118", Head, 10, 0.8) | |
910 | TAUNT.TimePosition = 1.1 | |
911 | end | |
912 | end | |
913 | end | |
914 | ||
915 | function KeyUp(Key) | |
916 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
917 | KEYHOLD = false | |
918 | end | |
919 | end | |
920 | ||
921 | Mouse.Button1Down:connect(function(NEWKEY) | |
922 | MouseDown(NEWKEY) | |
923 | end) | |
924 | Mouse.Button1Up:connect(function(NEWKEY) | |
925 | MouseUp(NEWKEY) | |
926 | end) | |
927 | Mouse.KeyDown:connect(function(NEWKEY) | |
928 | KeyDown(NEWKEY) | |
929 | end) | |
930 | Mouse.KeyUp:connect(function(NEWKEY) | |
931 | KeyUp(NEWKEY) | |
932 | end) | |
933 | ||
934 | --//=================================\\ | |
935 | --\\=================================// | |
936 | ||
937 | ||
938 | function unanchor() | |
939 | if UNANCHOR == true then | |
940 | g = Character:GetChildren() | |
941 | for i = 1, #g do | |
942 | if g[i].ClassName == "Part" then | |
943 | g[i].Anchored = false | |
944 | end | |
945 | end | |
946 | end | |
947 | end | |
948 | ||
949 | ||
950 | --//=================================\\ | |
951 | --|| WRAP THE WHOLE SCRIPT UP | |
952 | --\\=================================// | |
953 | ||
954 | Humanoid.Changed:connect(function(Jump) | |
955 | if Jump == "Jump" and (Disable_Jump == true) then | |
956 | Humanoid.Jump = false | |
957 | end | |
958 | end) | |
959 | ||
960 | Humanoid.HipHeight = 2 | |
961 | ||
962 | while true do | |
963 | Swait() | |
964 | refit() | |
965 | Character.Parent = workspace | |
966 | Humanoid.Parent = Character | |
967 | ANIMATE.Parent = nil | |
968 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
969 | IDLEANIMATION:Play() | |
970 | SINE = SINE + CHANGE | |
971 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
972 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
973 | HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character) | |
974 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
975 | EyeWeld3.C1 = Clerp(EyeWeld3.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
976 | EyeWeld2.C1 = Clerp(EyeWeld2.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
977 | EyeWeld.C1 = Clerp(EyeWeld.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(SINE*2)), 1 / Animation_Speed) | |
978 | for LW = 1, #LEFTWINGS do | |
979 | if LEFTWINGS[LW] ~= nil then | |
980 | 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) | |
981 | end | |
982 | end | |
983 | for RW = 1, #RIGHTWINGS do | |
984 | if RIGHTWINGS[RW] ~= nil then | |
985 | 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) | |
986 | end | |
987 | end | |
988 | if ATTACK == false then | |
989 | if TORSOVELOCITY < 1 then | |
990 | 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) | |
991 | 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) | |
992 | 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) | |
993 | 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) | |
994 | 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) | |
995 | 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) | |
996 | elseif TORSOVELOCITY > 1 then | |
997 | 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) | |
998 | 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) | |
999 | 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) | |
1000 | 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) | |
1001 | 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) | |
1002 | 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) | |
1003 | end | |
1004 | end | |
1005 | for _, c in pairs(Character:GetChildren()) do | |
1006 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
1007 | c.Material = "Neon" | |
1008 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1009 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1010 | end | |
1011 | if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then | |
1012 | local EF = Instance.new("SelectionBox",c) | |
1013 | EF.Adornee = c | |
1014 | EF.Color = BrickColor.new("Really red") | |
1015 | EF.LineThickness = 0.01 | |
1016 | EF.Transparency = 0 | |
1017 | EF.Name = "BoxEffect" | |
1018 | end | |
1019 | c.Color = C3(0,0,0) | |
1020 | if c == Head then | |
1021 | --[[if c:FindFirstChild("Dominus") == nil then | |
1022 | local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0)) | |
1023 | M.Name = "Dominus" | |
1024 | end]]-- | |
1025 | if c:FindFirstChild("face") then | |
1026 | c.face:remove() | |
1027 | end | |
1028 | end | |
1029 | elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
1030 | c:remove() | |
1031 | end | |
1032 | end | |
1033 | if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then | |
1034 | local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p | |
1035 | local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character) | |
1036 | if BOXFLOOR ~= nil then | |
1037 | 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}) | |
1038 | end | |
1039 | end | |
1040 | unanchor() | |
1041 | Humanoid.MaxHealth = "inf" | |
1042 | Humanoid.Health = "inf" | |
1043 | if Rooted == false then | |
1044 | Disable_Jump = false | |
1045 | Humanoid.WalkSpeed = Speed | |
1046 | elseif Rooted == true then | |
1047 | Disable_Jump = true | |
1048 | Humanoid.WalkSpeed = 0 | |
1049 | end | |
1050 | for _, c in pairs(workspace:GetChildren()) do | |
1051 | if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then | |
1052 | end | |
1053 | end | |
1054 | script.Parent = WEAPONGUI | |
1055 | Humanoid.Name = "Monarch" | |
1056 | sick.Parent = Effects | |
1057 | sick.Pitch = 0.85 | |
1058 | sick.Playing = true | |
1059 | for _, q in pairs(Head:GetChildren()) do | |
1060 | if q.ClassName == "Sound" and q.Name ~= "Audio" then | |
1061 | q:remove() | |
1062 | end | |
1063 | end | |
1064 | Humanoid.DisplayDistanceType = "None" | |
1065 | end | |
1066 | ||
1067 | --//=================================\\ | |
1068 | --\\=================================// | |
1069 | ||
1070 | ||
1071 | ||
1072 | ||
1073 | ||
1074 | --//====================================================\\-- | |
1075 | --|| END OF SCRIPT | |
1076 | --\\====================================================//-- |