SHOW:
|
|
- or go back to the newest paste.
1 | ||
2 | - | --|| CREATED BY SHACKLUSTER |
2 | + | |
3 | - | --\\====================================================//-- |
3 | + | |
4 | Player = game:GetService("Players").LocalPlayer | |
5 | PlayerGui = Player.PlayerGui | |
6 | Cam = workspace.CurrentCamera | |
7 | Backpack = Player.Backpack | |
8 | Character = Player.Character | |
9 | Humanoid = Character.Humanoid | |
10 | Mouse = Player:GetMouse() | |
11 | RootPart = Character["HumanoidRootPart"] | |
12 | Torso = Character["Torso"] | |
13 | Head = Character["Head"] | |
14 | RightArm = Character["Right Arm"] | |
15 | LeftArm = Character["Left Arm"] | |
16 | RightLeg = Character["Right Leg"] | |
17 | LeftLeg = Character["Left Leg"] | |
18 | RootJoint = RootPart["RootJoint"] | |
19 | Neck = Torso["Neck"] | |
20 | RightShoulder = Torso["Right Shoulder"] | |
21 | LeftShoulder = Torso["Left Shoulder"] | |
22 | RightHip = Torso["Right Hip"] | |
23 | LeftHip = Torso["Left Hip"] | |
24 | local sick = Instance.new("Sound",Character) | |
25 | sick.SoundId = "rbxassetid://170282324" | |
26 | sick.Looped = true | |
27 | sick.Volume = 1 | |
28 | ||
29 | IT = Instance.new | |
30 | CF = CFrame.new | |
31 | VT = Vector3.new | |
32 | RAD = math.rad | |
33 | C3 = Color3.new | |
34 | UD2 = UDim2.new | |
35 | BRICKC = BrickColor.new | |
36 | ANGLES = CFrame.Angles | |
37 | EULER = CFrame.fromEulerAnglesXYZ | |
38 | COS = math.cos | |
39 | ACOS = math.acos | |
40 | SIN = math.sin | |
41 | ASIN = math.asin | |
42 | ABS = math.abs | |
43 | MRANDOM = math.random | |
44 | FLOOR = math.floor | |
45 | ||
46 | --//=================================\\ | |
47 | --|| USEFUL VALUES | |
48 | --\\=================================// | |
49 | ||
50 | Animation_Speed = 3 | |
51 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
52 | local Speed = 45 | |
53 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
54 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
55 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
56 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
57 | local DAMAGEMULTIPLIER = 1 | |
58 | local ANIM = "Idle" | |
59 | local ATTACK = false | |
60 | local EQUIPPED = false | |
61 | local HOLD = false | |
62 | local COMBO = 1 | |
63 | local Rooted = false | |
64 | local SINE = 0 | |
65 | local KEYHOLD = false | |
66 | local CHANGE = 2 / Animation_Speed | |
67 | local WALKINGANIM = false | |
68 | local VALUE1 = false | |
69 | local VALUE2 = false | |
70 | local ROBLOXIDLEANIMATION = IT("Animation") | |
71 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
72 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
73 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
74 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
75 | WEAPONGUI.Name = "Weapon GUI" | |
76 | local Effects = IT("Folder", Character) | |
77 | Effects.Name = "Effects" | |
78 | local ANIMATOR = Humanoid.Animator | |
79 | local ANIMATE = Character.Animate | |
80 | local UNANCHOR = true | |
81 | local HITPOS = nil | |
82 | local HITFLOOR = nil | |
83 | local LEFTWINGS = {} | |
84 | local RIGHTWINGS = {} | |
85 | local BODY = {} | |
86 | ||
87 | --//=================================\\ | |
88 | --\\=================================// | |
89 | ||
90 | ||
91 | --//=================================\\ | |
92 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
93 | --\\=================================// | |
94 | ||
95 | ArtificialHB = Instance.new("BindableEvent", script) | |
96 | ArtificialHB.Name = "ArtificialHB" | |
97 | ||
98 | script:WaitForChild("ArtificialHB") | |
99 | ||
100 | frame = Frame_Speed | |
101 | tf = 0 | |
102 | allowframeloss = false | |
103 | tossremainder = false | |
104 | lastframe = tick() | |
105 | script.ArtificialHB:Fire() | |
106 | ||
107 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
108 | tf = tf + s | |
109 | if tf >= frame then | |
110 | if allowframeloss then | |
111 | script.ArtificialHB:Fire() | |
112 | lastframe = tick() | |
113 | else | |
114 | for i = 1, math.floor(tf / frame) do | |
115 | script.ArtificialHB:Fire() | |
116 | end | |
117 | lastframe = tick() | |
118 | end | |
119 | if tossremainder then | |
120 | tf = 0 | |
121 | else | |
122 | tf = tf - frame * math.floor(tf / frame) | |
123 | end | |
124 | end | |
125 | end) | |
126 | ||
127 | --//=================================\\ | |
128 | --\\=================================// | |
129 | ||
130 | --//=================================\\ | |
131 | --|| SOME FUNCTIONS | |
132 | --\\=================================// | |
133 | ||
134 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
135 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
136 | end | |
137 | ||
138 | function PositiveAngle(NUMBER) | |
139 | if NUMBER >= 0 then | |
140 | NUMBER = 0 | |
141 | end | |
142 | return NUMBER | |
143 | end | |
144 | ||
145 | function NegativeAngle(NUMBER) | |
146 | if NUMBER <= 0 then | |
147 | NUMBER = 0 | |
148 | end | |
149 | return NUMBER | |
150 | end | |
151 | ||
152 | function Swait(NUMBER) | |
153 | if NUMBER == 0 or NUMBER == nil then | |
154 | ArtificialHB.Event:wait() | |
155 | else | |
156 | for i = 1, NUMBER do | |
157 | ArtificialHB.Event:wait() | |
158 | end | |
159 | end | |
160 | end | |
161 | ||
162 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
163 | local NEWMESH = IT(MESH) | |
164 | if MESH == "SpecialMesh" then | |
165 | NEWMESH.MeshType = MESHTYPE | |
166 | if MESHID ~= "nil" and MESHID ~= "" then | |
167 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
168 | end | |
169 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
170 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
171 | end | |
172 | end | |
173 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
174 | NEWMESH.Scale = SCALE | |
175 | NEWMESH.Parent = PARENT | |
176 | return NEWMESH | |
177 | end | |
178 | ||
179 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
180 | local NEWPART = IT("Part") | |
181 | NEWPART.formFactor = FORMFACTOR | |
182 | NEWPART.Reflectance = REFLECTANCE | |
183 | NEWPART.Transparency = TRANSPARENCY | |
184 | NEWPART.CanCollide = false | |
185 | NEWPART.Locked = true | |
186 | NEWPART.Anchored = true | |
187 | if ANCHOR == false then | |
188 | NEWPART.Anchored = false | |
189 | end | |
190 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
191 | NEWPART.Name = NAME | |
192 | NEWPART.Size = SIZE | |
193 | NEWPART.Position = Torso.Position | |
194 | NEWPART.Material = MATERIAL | |
195 | NEWPART:BreakJoints() | |
196 | NEWPART.Parent = PARENT | |
197 | return NEWPART | |
198 | end | |
199 | ||
200 | local function weldBetween(a, b) | |
201 | local weldd = Instance.new("ManualWeld") | |
202 | weldd.Part0 = a | |
203 | weldd.Part1 = b | |
204 | weldd.C0 = CFrame.new() | |
205 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
206 | weldd.Parent = a | |
207 | return weldd | |
208 | end | |
209 | ||
210 | ||
211 | function QuaternionFromCFrame(cf) | |
212 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
213 | local trace = m00 + m11 + m22 | |
214 | if trace > 0 then | |
215 | local s = math.sqrt(1 + trace) | |
216 | local recip = 0.5 / s | |
217 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
218 | else | |
219 | local i = 0 | |
220 | if m11 > m00 then | |
221 | i = 1 | |
222 | end | |
223 | if m22 > (i == 0 and m00 or m11) then | |
224 | i = 2 | |
225 | end | |
226 | if i == 0 then | |
227 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
228 | local recip = 0.5 / s | |
229 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
230 | elseif i == 1 then | |
231 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
232 | local recip = 0.5 / s | |
233 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
234 | elseif i == 2 then | |
235 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
236 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
237 | end | |
238 | end | |
239 | end | |
240 | ||
241 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
242 | local xs, ys, zs = x + x, y + y, z + z | |
243 | local wx, wy, wz = w * xs, w * ys, w * zs | |
244 | local xx = x * xs | |
245 | local xy = x * ys | |
246 | local xz = x * zs | |
247 | local yy = y * ys | |
248 | local yz = y * zs | |
249 | local zz = z * zs | |
250 | 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)) | |
251 | end | |
252 | ||
253 | function QuaternionSlerp(a, b, t) | |
254 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
255 | local startInterp, finishInterp; | |
256 | if cosTheta >= 0.0001 then | |
257 | if (1 - cosTheta) > 0.0001 then | |
258 | local theta = ACOS(cosTheta) | |
259 | local invSinTheta = 1 / SIN(theta) | |
260 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
261 | finishInterp = SIN(t * theta) * invSinTheta | |
262 | else | |
263 | startInterp = 1 - t | |
264 | finishInterp = t | |
265 | end | |
266 | else | |
267 | if (1 + cosTheta) > 0.0001 then | |
268 | local theta = ACOS(-cosTheta) | |
269 | local invSinTheta = 1 / SIN(theta) | |
270 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
271 | finishInterp = SIN(t * theta) * invSinTheta | |
272 | else | |
273 | startInterp = t - 1 | |
274 | finishInterp = t | |
275 | end | |
276 | end | |
277 | 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 | |
278 | end | |
279 | ||
280 | function Clerp(a, b, t) | |
281 | local qa = {QuaternionFromCFrame(a)} | |
282 | local qb = {QuaternionFromCFrame(b)} | |
283 | local ax, ay, az = a.x, a.y, a.z | |
284 | local bx, by, bz = b.x, b.y, b.z | |
285 | local _t = 1 - t | |
286 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
287 | end | |
288 | ||
289 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
290 | local frame = IT("Frame") | |
291 | frame.BackgroundTransparency = TRANSPARENCY | |
292 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
293 | frame.Position = POSITION | |
294 | frame.Size = SIZE | |
295 | frame.BackgroundColor3 = COLOR | |
296 | frame.BorderColor3 = BORDERCOLOR | |
297 | frame.Name = NAME | |
298 | frame.Parent = PARENT | |
299 | return frame | |
300 | end | |
301 | ||
302 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
303 | local label = IT("TextLabel") | |
304 | label.BackgroundTransparency = 1 | |
305 | label.Size = UD2(1, 0, 1, 0) | |
306 | label.Position = UD2(0, 0, 0, 0) | |
307 | label.TextColor3 = TEXTCOLOR | |
308 | label.TextStrokeColor3 = BRICKC"Really red".Color | |
309 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
310 | label.TextTransparency = TRANSPARENCY | |
311 | label.FontSize = TEXTFONTSIZE | |
312 | label.Font = TEXTFONT | |
313 | label.BorderSizePixel = BORDERSIZEPIXEL | |
314 | label.TextScaled = false | |
315 | label.Text = TEXT | |
316 | label.Name = NAME | |
317 | label.Parent = PARENT | |
318 | return label | |
319 | end | |
320 | ||
321 | function NoOutlines(PART) | |
322 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
323 | end | |
324 | ||
325 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
326 | local NEWWELD = IT(TYPE) | |
327 | NEWWELD.Part0 = PART0 | |
328 | NEWWELD.Part1 = PART1 | |
329 | NEWWELD.C0 = C0 | |
330 | NEWWELD.C1 = C1 | |
331 | NEWWELD.Parent = PARENT | |
332 | return NEWWELD | |
333 | end | |
334 | ||
335 | local S = IT("Sound") | |
336 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
337 | local NEWSOUND = nil | |
338 | coroutine.resume(coroutine.create(function() | |
339 | NEWSOUND = S:Clone() | |
340 | NEWSOUND.Parent = PARENT | |
341 | NEWSOUND.Volume = VOLUME | |
342 | NEWSOUND.Pitch = PITCH | |
343 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
344 | NEWSOUND:play() | |
345 | NEWSOUND.Name = "Audio" | |
346 | if DOESLOOP == true then | |
347 | NEWSOUND.Looped = true | |
348 | else | |
349 | repeat Swait() until NEWSOUND.Playing == false | |
350 | NEWSOUND:remove() | |
351 | end | |
352 | end)) | |
353 | return NEWSOUND | |
354 | end | |
355 | ||
356 | function CFrameFromTopBack(at, top, back) | |
357 | local right = top:Cross(back) | |
358 | 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) | |
359 | end | |
360 | ||
361 | --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}) | |
362 | function WACKYEFFECT(Table) | |
363 | local TYPE = (Table.EffectType or "Sphere") | |
364 | local SIZE = (Table.Size or VT(1,1,1)) | |
365 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
366 | local TRANSPARENCY = (Table.Transparency or 0) | |
367 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
368 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
369 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
370 | local ROTATION1 = (Table.RotationX or 0) | |
371 | local ROTATION2 = (Table.RotationY or 0) | |
372 | local ROTATION3 = (Table.RotationZ or 0) | |
373 | local MATERIAL = (Table.Material or "Neon") | |
374 | local COLOR = (Table.Color or C3(1,1,1)) | |
375 | local TIME = (Table.Time or 45) | |
376 | local SOUNDID = (Table.SoundID or nil) | |
377 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
378 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
379 | coroutine.resume(coroutine.create(function() | |
380 | local PLAYSSOUND = false | |
381 | local SOUND = nil | |
382 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
383 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
384 | PLAYSSOUND = true | |
385 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
386 | end | |
387 | EFFECT.Color = COLOR | |
388 | local MSH = nil | |
389 | if TYPE == "Sphere" then | |
390 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
391 | elseif TYPE == "Block" then | |
392 | MSH = IT("BlockMesh",EFFECT) | |
393 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
394 | elseif TYPE == "Box" then | |
395 | MSH = IT("BlockMesh",EFFECT) | |
396 | MSH.Scale = SIZE | |
397 | elseif TYPE == "Wave" then | |
398 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
399 | elseif TYPE == "Ring" then | |
400 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
401 | elseif TYPE == "Slash" then | |
402 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
403 | elseif TYPE == "Round Slash" then | |
404 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
405 | elseif TYPE == "Swirl" then | |
406 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
407 | elseif TYPE == "Skull" then | |
408 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
409 | elseif TYPE == "Crystal" then | |
410 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
411 | end | |
412 | if MSH ~= nil then | |
413 | local MOVESPEED = nil | |
414 | if MOVEDIRECTION ~= nil then | |
415 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
416 | end | |
417 | local GROWTH = SIZE - ENDSIZE | |
418 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
419 | if TYPE == "Block" then | |
420 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
421 | else | |
422 | EFFECT.CFrame = CFRAME | |
423 | end | |
424 | for LOOP = 1, TIME do | |
425 | Swait() | |
426 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
427 | if TYPE == "Wave" then | |
428 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
429 | end | |
430 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
431 | if TYPE == "Block" then | |
432 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
433 | else | |
434 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
435 | end | |
436 | if MOVEDIRECTION ~= nil then | |
437 | local ORI = EFFECT.Orientation | |
438 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
439 | EFFECT.Orientation = ORI | |
440 | end | |
441 | end | |
442 | if PLAYSSOUND == false then | |
443 | EFFECT:remove() | |
444 | else | |
445 | repeat Swait() until SOUND.Playing == false | |
446 | EFFECT:remove() | |
447 | end | |
448 | else | |
449 | if PLAYSSOUND == false then | |
450 | EFFECT:remove() | |
451 | else | |
452 | repeat Swait() until SOUND.Playing == false | |
453 | EFFECT:remove() | |
454 | end | |
455 | end | |
456 | end)) | |
457 | end | |
458 | ||
459 | function Shatter(Part) | |
460 | if Part.Transparency == 0 then | |
461 | local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, Part.BrickColor, "OOF", VT(0,0,0)) | |
462 | Debris:AddItem(SOUNDPART,5) | |
463 | CreateSound("84005018", SOUNDPART, 3, MRANDOM(8,12)/10, false) | |
464 | local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z | |
465 | local SIZESET = SIZE/4 | |
466 | local XOffset = Part.Size.X*1.5/SIZESET | |
467 | local YOffset = Part.Size.Y*1.5/SIZESET | |
468 | local ZOffset = Part.Size.Z*1.5/SIZESET | |
469 | for x = 1, math.ceil(XOffset) do | |
470 | for y = 1, math.ceil(YOffset) do | |
471 | for z = 1, math.ceil(ZOffset) do | |
472 | local SHARD = CreatePart(3, Effects, "Neon", 0, 0, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false) | |
473 | SHARD.CanCollide = true | |
474 | SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-x/4),(Part.Size.Y/2-y/4),(Part.Size.Z/2-z/4)) | |
475 | SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3 | |
476 | Debris:AddItem(SHARD,MRANDOM(10,25)/3) | |
477 | end | |
478 | end | |
479 | end | |
480 | end | |
481 | Part:remove() | |
482 | end | |
483 | ||
484 | function MakeForm(PART,TYPE) | |
485 | if TYPE == "Cyl" then | |
486 | local MSH = IT("CylinderMesh",PART) | |
487 | elseif TYPE == "Ball" then | |
488 | local MSH = IT("SpecialMesh",PART) | |
489 | MSH.MeshType = "Sphere" | |
490 | elseif TYPE == "Wedge" then | |
491 | local MSH = IT("SpecialMesh",PART) | |
492 | MSH.MeshType = "Wedge" | |
493 | end | |
494 | end | |
495 | ||
496 | Debris = game:GetService("Debris") | |
497 | ||
498 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
499 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
500 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
501 | end | |
502 | ||
503 | function turnto(position) | |
504 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
505 | end | |
506 | ||
507 | --//=================================\\ | |
508 | --|| WEAPON CREATION | |
509 | --\\=================================// | |
510 | ||
511 | local Back = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(1,1,0.35),false) | |
512 | CreateWeldOrSnapOrMotor("Weld", Torso, Torso, Back, CF(0, 0.5, 1.2) * ANGLES(RAD(0),RAD(0),RAD(45)), CF(0, 0, 0)) | |
513 | ||
514 | local ANGLE = 35 | |
515 | for i = 1, 5 do | |
516 | local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false) | |
517 | 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)) | |
518 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false) | |
519 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
520 | ANGLE = ANGLE - 15 | |
521 | table.insert(LEFTWINGS,WingWeld) | |
522 | end | |
523 | ANGLE = 35 | |
524 | for i = 1, 5 do | |
525 | local Wing = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.15,2+(i/2),0.15),false) | |
526 | 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)) | |
527 | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Wing", VT(0.25,1,0.25),false) | |
528 | CreateWeldOrSnapOrMotor("Weld", Wing, Wing, Wing2, CF(0, 2+(i/2), 0) * ANGLES(RAD(25), RAD(0), RAD(0)), CF(0, 1, 0)) | |
529 | ANGLE = ANGLE - 15 | |
530 | table.insert(RIGHTWINGS,WingWeld) | |
531 | end | |
532 | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.3,0.3,0.3),false) | |
533 | 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)) | |
534 | local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "Really red", "Eye", VT(0.5,0.5,0.29),false) | |
535 | 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)) | |
536 | ||
537 | local Eye3 = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,0.1,0.31),false) | |
538 | 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)) | |
539 | ||
540 | local SKILLTEXTCOLOR = BRICKC"Really red".Color | |
541 | local SKILLFONT = "SciFi" | |
542 | local SKILLTEXTSIZE = 6 | |
543 | ||
544 | local naeeym2 = Instance.new("BillboardGui",Character) | |
545 | naeeym2.AlwaysOnTop = true | |
546 | naeeym2.Size = UDim2.new(5,35,2,15) | |
547 | naeeym2.StudsOffset = Vector3.new(0,1.2,0) | |
548 | naeeym2.Adornee = Character.Head | |
549 | naeeym2.Name = "Name" | |
550 | naeeym2.PlayerToHideFrom = Player | |
551 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
552 | tecks2.BackgroundTransparency = 1 | |
553 | tecks2.TextScaled = true | |
554 | tecks2.BorderSizePixel = 0 | |
555 | tecks2.Text = "Cyber Monarch" | |
556 | tecks2.Font = SKILLFONT | |
557 | tecks2.TextSize = 30 | |
558 | tecks2.TextStrokeTransparency = 0 | |
559 | tecks2.TextColor3 = C3(0,0,0) | |
560 | tecks2.TextStrokeColor3 = BRICKC"Really red".Color | |
561 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
562 | tecks2.Parent = naeeym2 | |
563 | ||
564 | for _, c in pairs(Character:GetChildren()) do | |
565 | if c.ClassName == "Part" then | |
566 | table.insert(BODY,{c,Character}) | |
567 | for _, q in pairs(c:GetChildren()) do | |
568 | if q.ClassName == "Motor6D" or q.ClassName == "Weld" or q.ClassName == "ManualWeld" then | |
569 | table.insert(BODY,{q,c}) | |
570 | end | |
571 | end | |
572 | end | |
573 | end | |
574 | ||
575 | function refit() | |
576 | Character.Parent = workspace | |
577 | for e = 1, #BODY do | |
578 | if BODY[e] ~= nil then | |
579 | local STUFF = BODY[e] | |
580 | local PART = STUFF[1] | |
581 | local PARENT = STUFF[2] | |
582 | PART.Parent = PARENT | |
583 | end | |
584 | end | |
585 | end | |
586 | ||
587 | Humanoid.HealthChanged:connect(function() | |
588 | Humanoid.Parent = nil | |
589 | Humanoid.MaxHealth = "inf" | |
590 | Humanoid.Health = "inf" | |
591 | refit() | |
592 | Humanoid.Parent = Character | |
593 | end) | |
594 | ||
595 | Humanoid.Died:connect(function() | |
596 | Humanoid.Parent = nil | |
597 | Humanoid.MaxHealth = "inf" | |
598 | Humanoid.Health = "inf" | |
599 | refit() | |
600 | Humanoid.Parent = Character | |
601 | end) | |
602 | ||
603 | 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") | |
604 | 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") | |
605 | 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") | |
606 | 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") | |
607 | ||
608 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Cyber Out-Burst", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 1") | |
609 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Techno Beam", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 2") | |
610 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Techno Warp", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 3") | |
611 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Cyber Smash", C3(50/255, 0/255, 0/255), SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.7, "Text 4") | |
612 | ||
613 | --//=================================\\ | |
614 | --|| DAMAGING | |
615 | --\\=================================// | |
616 | ||
617 | function killnearest(position,range,EFFECT) | |
618 | for i,v in ipairs(workspace:GetChildren()) do | |
619 | local body = v:GetChildren() | |
620 | for part = 1, #body do | |
621 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
622 | local SIZE = body[part].Size.Magnitude | |
623 | if(body[part].Position - position).Magnitude < range + SIZE/2 then | |
624 | if v.ClassName == "Model" then | |
625 | if v:FindFirstChildOfClass("Humanoid") ~= nil then | |
626 | if v:FindFirstChildOfClass("Humanoid").Health > 0 then | |
627 | v:BreakJoints() | |
628 | if EFFECT == "Glitch" then | |
629 | coroutine.resume(coroutine.create(function() | |
630 | local ORIGINPOS = body[part].CFrame | |
631 | local SIZE = body[part].Size | |
632 | for i = 1, 100 do | |
633 | Swait() | |
634 | local PART = body[part] | |
635 | PART.Anchored = true | |
636 | PART.Size = SIZE*MRANDOM(5,15)/10 | |
637 | PART.CFrame = ORIGINPOS*CF(MRANDOM(-15,15)/15,MRANDOM(-15,15)/15,MRANDOM(-15,15)/15) | |
638 | end | |
639 | body[part]:remove() | |
640 | end)) | |
641 | elseif EFFECT == "Shatter" then | |
642 | for _, c in pairs(v:GetChildren()) do | |
643 | if c.ClassName == "Part" or c.ClassName == "MeshPart" then | |
644 | Shatter(c) | |
645 | end | |
646 | end | |
647 | end | |
648 | end | |
649 | end | |
650 | end | |
651 | end | |
652 | end | |
653 | end | |
654 | end | |
655 | end | |
656 | ||
657 | --//=================================\\ | |
658 | --|| ATTACK FUNCTIONS AND STUFF | |
659 | --\\=================================// | |
660 | ||
661 | function CyberOutburst() | |
662 | if HITFLOOR ~= nil then | |
663 | ATTACK = true | |
664 | Rooted = true | |
665 | for i=0, 2, 0.1 / Animation_Speed do | |
666 | Swait() | |
667 | 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}) | |
668 | 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) | |
669 | 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) | |
670 | 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) | |
671 | 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) | |
672 | 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) | |
673 | 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) | |
674 | end | |
675 | for i=0, 2, 0.1 / Animation_Speed do | |
676 | Swait() | |
677 | 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) | |
678 | 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) | |
679 | 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) | |
680 | 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) | |
681 | 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) | |
682 | 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) | |
683 | end | |
684 | 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}) | |
685 | 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}) | |
686 | 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}) | |
687 | for i=0, 0.4, 0.1 / Animation_Speed do | |
688 | Swait() | |
689 | killnearest(Torso.Position,45,"Glitch") | |
690 | 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}) | |
691 | 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}) | |
692 | 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) | |
693 | 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) | |
694 | 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) | |
695 | 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) | |
696 | 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) | |
697 | 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) | |
698 | end | |
699 | ATTACK = false | |
700 | Rooted = false | |
701 | end | |
702 | end | |
703 | ||
704 | function Technobeam() | |
705 | ATTACK = true | |
706 | Rooted = false | |
707 | local GYRO = IT("BodyGyro",RootPart) | |
708 | GYRO.D = 100 | |
709 | GYRO.P = 2000 | |
710 | GYRO.MaxTorque = VT(0,4000000,0) | |
711 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
712 | CreateSound("93724183", RightArm, 5, 1, false) | |
713 | for i=1, 35 do | |
714 | Swait() | |
715 | 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}) | |
716 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
717 | 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) | |
718 | 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) | |
719 | 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) | |
720 | 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) | |
721 | 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) | |
722 | 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) | |
723 | end | |
724 | local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Lazer", VT(0,0,0)) | |
725 | local LOOP = CreateSound("415700134", RightArm, 5, 1, false) | |
726 | local TOCH = BEAM.Touched:Connect(function(hit) | |
727 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
728 | Shatter(hit) | |
729 | end | |
730 | end) | |
731 | local I = 0 | |
732 | repeat | |
733 | Swait() | |
734 | I = I + 1 | |
735 | if I <= 10 then | |
736 | BEAM.Transparency = BEAM.Transparency - 0.1 | |
737 | end | |
738 | local STARTPOS = RightArm.CFrame*CF(0,-4,0).p | |
739 | local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character) | |
740 | local DISTANCE = (STARTPOS - ENDPOS).Magnitude | |
741 | BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5)) | |
742 | BEAM.Size = VT(2,2,DISTANCE) | |
743 | 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}) | |
744 | 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}) | |
745 | 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}) | |
746 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
747 | 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) | |
748 | 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) | |
749 | 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) | |
750 | 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) | |
751 | 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) | |
752 | 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) | |
753 | if ENDHIT ~= nil then | |
754 | if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then | |
755 | Shatter(ENDHIT) | |
756 | end | |
757 | end | |
758 | until LOOP.Playing == false | |
759 | GYRO:remove() | |
760 | BEAM:remove() | |
761 | ATTACK = false | |
762 | Rooted = false | |
763 | end | |
764 | ||
765 | function Technowarp() | |
766 | local FRAME = RootPart.Position | |
767 | for i = 1, 6 do | |
768 | 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}) | |
769 | end | |
770 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z)) | |
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 | end | |
775 | ||
776 | function CyberSmash() | |
777 | ATTACK = true | |
778 | Rooted = false | |
779 | local GYRO = IT("BodyGyro",RootPart) | |
780 | GYRO.D = 100 | |
781 | GYRO.P = 2000 | |
782 | GYRO.MaxTorque = VT(0,4000000,0) | |
783 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
784 | local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25)) | |
785 | SMASH.CanCollide = true | |
786 | SMASH.Color = C3(0,0,0) | |
787 | local EF = Instance.new("SelectionBox",SMASH) | |
788 | EF.Adornee = SMASH | |
789 | EF.Color = BrickColor.new("Really red") | |
790 | EF.LineThickness = 0.2 | |
791 | EF.Transparency = 1 | |
792 | coroutine.resume(coroutine.create(function() | |
793 | for i = 1, 20 do | |
794 | Swait() | |
795 | SMASH.Transparency = SMASH.Transparency - 0.05 | |
796 | EF.Transparency = SMASH.Transparency | |
797 | end | |
798 | end)) | |
799 | repeat | |
800 | SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0) | |
801 | Swait() | |
802 | GYRO.cframe = CF(RootPart.Position,SMASH.Position) | |
803 | 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) | |
804 | 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) | |
805 | 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) | |
806 | 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) | |
807 | 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) | |
808 | 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) | |
809 | until HOLD == true and SMASH.Transparency < 0.99 | |
810 | for i = 1, 25 do | |
811 | Swait() | |
812 | SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0) | |
813 | 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) | |
814 | 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) | |
815 | 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) | |
816 | 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) | |
817 | 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) | |
818 | 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) | |
819 | end | |
820 | local TOCH = SMASH.Touched:Connect(function(hit) | |
821 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
822 | Shatter(hit) | |
823 | end | |
824 | end) | |
825 | local n0 = nil | |
826 | local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character) | |
827 | if HITFLOOR ~= nil then | |
828 | if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then | |
829 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
830 | if HITFLOOR.Parent.ClassName == "Model" then | |
831 | HITFLOOR.Parent:BreakJoints() | |
832 | elseif HITFLOOR.Parent.Parent.ClassName == "Model" then | |
833 | HITFLOOR.Parent.Parent:BreakJoints() | |
834 | end | |
835 | end | |
836 | local POS = HITPOS | |
837 | n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent) | |
838 | end | |
839 | end | |
840 | killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter") | |
841 | SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0)) | |
842 | 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}) | |
843 | for i = 1, 25 do | |
844 | Swait() | |
845 | 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) | |
846 | 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) | |
847 | 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) | |
848 | 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) | |
849 | 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) | |
850 | 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) | |
851 | end | |
852 | coroutine.resume(coroutine.create(function() | |
853 | wait(0.2) | |
854 | TOCH:disconnect() | |
855 | wait(1.8) | |
856 | for i = 1, 100 do | |
857 | Swait() | |
858 | SMASH.Transparency = i/100 | |
859 | end | |
860 | for i = 1, 10 do | |
861 | Swait() | |
862 | EF.Transparency = EF.Transparency + 0.1 | |
863 | end | |
864 | SMASH:remove() | |
865 | end)) | |
866 | GYRO:remove() | |
867 | ATTACK = false | |
868 | Rooted = false | |
869 | end | |
870 | ||
871 | --//=================================\\ | |
872 | --|| ASSIGN THINGS TO KEYS | |
873 | --\\=================================// | |
874 | ||
875 | function MouseDown(Mouse) | |
876 | HOLD = true | |
877 | if ATTACK == false then | |
878 | end | |
879 | end | |
880 | ||
881 | function MouseUp(Mouse) | |
882 | HOLD = false | |
883 | end | |
884 | ||
885 | function KeyDown(Key) | |
886 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
887 | KEYHOLD = true | |
888 | if Key == "z" and ATTACK == false then | |
889 | CyberOutburst() | |
890 | end | |
891 | ||
892 | if Key == "b" and ATTACK == false then | |
893 | Technobeam() | |
894 | end | |
895 | ||
896 | if Key == "c" and ATTACK == false then | |
897 | Technowarp() | |
898 | end | |
899 | ||
900 | if Key == "v" and ATTACK == false then | |
901 | CyberSmash() | |
902 | end | |
903 | ||
904 | if Key == "t" then | |
905 | local TAUNT = CreateSound("132392118", Head, 10, 0.8) | |
906 | TAUNT.TimePosition = 1.1 | |
907 | end | |
908 | end | |
909 | end | |
910 | ||
911 | function KeyUp(Key) | |
912 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
913 | KEYHOLD = false | |
914 | end | |
915 | end | |
916 | ||
917 | Mouse.Button1Down:connect(function(NEWKEY) | |
918 | MouseDown(NEWKEY) | |
919 | end) | |
920 | Mouse.Button1Up:connect(function(NEWKEY) | |
921 | MouseUp(NEWKEY) | |
922 | end) | |
923 | Mouse.KeyDown:connect(function(NEWKEY) | |
924 | KeyDown(NEWKEY) | |
925 | end) | |
926 | Mouse.KeyUp:connect(function(NEWKEY) | |
927 | KeyUp(NEWKEY) | |
928 | end) | |
929 | ||
930 | --//=================================\\ | |
931 | --\\=================================// | |
932 | ||
933 | ||
934 | function unanchor() | |
935 | if UNANCHOR == true then | |
936 | g = Character:GetChildren() | |
937 | for i = 1, #g do | |
938 | if g[i].ClassName == "Part" then | |
939 | g[i].Anchored = false | |
940 | end | |
941 | end | |
942 | end | |
943 | end | |
944 | ||
945 | ||
946 | --//=================================\\ | |
947 | --|| WRAP THE WHOLE SCRIPT UP | |
948 | --\\=================================// | |
949 | ||
950 | Humanoid.Changed:connect(function(Jump) | |
951 | if Jump == "Jump" and (Disable_Jump == true) then | |
952 | Humanoid.Jump = false | |
953 | end | |
954 | end) | |
955 | ||
956 | Humanoid.HipHeight = 2 | |
957 | ||
958 | while true do | |
959 | Swait() | |
960 | refit() | |
961 | Character.Parent = workspace | |
962 | Humanoid.Parent = Character | |
963 | ANIMATE.Parent = nil | |
964 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
965 | IDLEANIMATION:Play() | |
966 | SINE = SINE + CHANGE | |
967 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
968 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
969 | HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character) | |
970 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
971 | EyeWeld3.C1 = Clerp(EyeWeld3.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
972 | EyeWeld2.C1 = Clerp(EyeWeld2.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
973 | EyeWeld.C1 = Clerp(EyeWeld.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(SINE*2)), 1 / Animation_Speed) | |
974 | for LW = 1, #LEFTWINGS do | |
975 | if LEFTWINGS[LW] ~= nil then | |
976 | 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) | |
977 | end | |
978 | end | |
979 | for RW = 1, #RIGHTWINGS do | |
980 | if RIGHTWINGS[RW] ~= nil then | |
981 | 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) | |
982 | end | |
983 | end | |
984 | if ATTACK == false then | |
985 | if TORSOVELOCITY < 1 then | |
986 | 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) | |
987 | 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) | |
988 | 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) | |
989 | 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) | |
990 | 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) | |
991 | 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) | |
992 | elseif TORSOVELOCITY > 1 then | |
993 | 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) | |
994 | 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) | |
995 | 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) | |
996 | 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) | |
997 | 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) | |
998 | 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) | |
999 | end | |
1000 | end | |
1001 | for _, c in pairs(Character:GetChildren()) do | |
1002 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
1003 | c.Material = "Neon" | |
1004 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1005 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1006 | end | |
1007 | if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then | |
1008 | local EF = Instance.new("SelectionBox",c) | |
1009 | EF.Adornee = c | |
1010 | EF.Color = BrickColor.new("Really red") | |
1011 | EF.LineThickness = 0.01 | |
1012 | EF.Transparency = 0 | |
1013 | EF.Name = "BoxEffect" | |
1014 | end | |
1015 | c.Color = C3(0,0,0) | |
1016 | if c == Head then | |
1017 | --[[if c:FindFirstChild("Dominus") == nil then | |
1018 | local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0)) | |
1019 | M.Name = "Dominus" | |
1020 | end]]-- | |
1021 | if c:FindFirstChild("face") then | |
1022 | c.face:remove() | |
1023 | end | |
1024 | end | |
1025 | elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
1026 | c:remove() | |
1027 | end | |
1028 | end | |
1029 | if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then | |
1030 | local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p | |
1031 | local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character) | |
1032 | if BOXFLOOR ~= nil then | |
1033 | 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}) | |
1034 | end | |
1035 | end | |
1036 | unanchor() | |
1037 | Humanoid.MaxHealth = "inf" | |
1038 | Humanoid.Health = "inf" | |
1039 | if Rooted == false then | |
1040 | Disable_Jump = false | |
1041 | Humanoid.WalkSpeed = Speed | |
1042 | elseif Rooted == true then | |
1043 | Disable_Jump = true | |
1044 | Humanoid.WalkSpeed = 0 | |
1045 | end | |
1046 | for _, c in pairs(workspace:GetChildren()) do | |
1047 | if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then | |
1048 | end | |
1049 | end | |
1050 | script.Parent = WEAPONGUI | |
1051 | Humanoid.Name = "Monarch" | |
1052 | sick.Parent = Effects | |
1053 | sick.Pitch = 0.85 | |
1054 | sick.Playing = true | |
1055 | for _, q in pairs(Head:GetChildren()) do | |
1056 | if q.ClassName == "Sound" and q.Name ~= "Audio" then | |
1057 | q:remove() | |
1058 | end | |
1059 | end | |
1060 | Humanoid.DisplayDistanceType = "None" | |
1061 | end | |
1062 | ||
1063 | --//=================================\\ | |
1064 | --\\=================================// | |
1065 | ||
1066 | ||
1067 | ||
1068 | ||
1069 | ||
1070 | --//====================================================\\-- | |
1071 | --|| END OF SCRIPT | |
1072 | --\\====================================================//-- |