SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- | |
4 | ||
5 | wait(0.2) | |
6 | ||
7 | Player = game:GetService("Players").LocalPlayer | |
8 | PlayerGui = Player.PlayerGui | |
9 | Cam = workspace.CurrentCamera | |
10 | Backpack = Player.Backpack | |
11 | Character = Player.Character | |
12 | Humanoid = Character.Humanoid | |
13 | Mouse = Player:GetMouse() | |
14 | RootPart = Character["HumanoidRootPart"] | |
15 | Torso = Character["Torso"] | |
16 | Head = Character["Head"] | |
17 | RightArm = Character["Right Arm"] | |
18 | LeftArm = Character["Left Arm"] | |
19 | RightLeg = Character["Right Leg"] | |
20 | LeftLeg = Character["Left Leg"] | |
21 | RootJoint = RootPart["RootJoint"] | |
22 | Neck = Torso["Neck"] | |
23 | RightShoulder = Torso["Right Shoulder"] | |
24 | LeftShoulder = Torso["Left Shoulder"] | |
25 | RightHip = Torso["Right Hip"] | |
26 | LeftHip = Torso["Left Hip"] | |
27 | local sick = Instance.new("Sound",Character) | |
28 | sick.SoundId = "rbxassetid://170282324" | |
29 | sick.Looped = true | |
30 | sick.Volume = 1 | |
31 | ||
32 | IT = Instance.new | |
33 | CF = CFrame.new | |
34 | VT = Vector3.new | |
35 | RAD = math.rad | |
36 | C3 = Color3.new | |
37 | UD2 = UDim2.new | |
38 | BRICKC = BrickColor.new | |
39 | ANGLES = CFrame.Angles | |
40 | EULER = CFrame.fromEulerAnglesXYZ | |
41 | COS = math.cos | |
42 | ACOS = math.acos | |
43 | SIN = math.sin | |
44 | ASIN = math.asin | |
45 | ABS = math.abs | |
46 | MRANDOM = math.random | |
47 | FLOOR = math.floor | |
48 | ||
49 | --//=================================\\ | |
50 | --|| USEFUL VALUES | |
51 | --\\=================================// | |
52 | ||
53 | Animation_Speed = 3 | |
54 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
55 | local Speed = 45 | |
56 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
57 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
58 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
59 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
60 | local DAMAGEMULTIPLIER = 1 | |
61 | local ANIM = "Idle" | |
62 | local ATTACK = false | |
63 | local EQUIPPED = false | |
64 | local HOLD = false | |
65 | local COMBO = 1 | |
66 | local Rooted = false | |
67 | local SINE = 0 | |
68 | local KEYHOLD = false | |
69 | local CHANGE = 2 / Animation_Speed | |
70 | local WALKINGANIM = false | |
71 | local VALUE1 = false | |
72 | local VALUE2 = false | |
73 | local ROBLOXIDLEANIMATION = IT("Animation") | |
74 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
75 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
76 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
77 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
78 | WEAPONGUI.Name = "Weapon GUI" | |
79 | local Effects = IT("Folder", Character) | |
80 | Effects.Name = "Effects" | |
81 | local ANIMATOR = Humanoid.Animator | |
82 | local ANIMATE = Character.Animate | |
83 | local UNANCHOR = true | |
84 | local HITPOS = nil | |
85 | local HITFLOOR = nil | |
86 | local LEFTWINGS = {} | |
87 | local RIGHTWINGS = {} | |
88 | local BODY = {} | |
89 | ||
90 | --//=================================\\ | |
91 | --\\=================================// | |
92 | ||
93 | ||
94 | --//=================================\\ | |
95 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
96 | --\\=================================// | |
97 | ||
98 | ArtificialHB = Instance.new("BindableEvent", script) | |
99 | ArtificialHB.Name = "ArtificialHB" | |
100 | ||
101 | script:WaitForChild("ArtificialHB") | |
102 | ||
103 | frame = Frame_Speed | |
104 | tf = 0 | |
105 | allowframeloss = false | |
106 | tossremainder = false | |
107 | lastframe = tick() | |
108 | script.ArtificialHB:Fire() | |
109 | ||
110 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
111 | tf = tf + s | |
112 | if tf >= frame then | |
113 | if allowframeloss then | |
114 | script.ArtificialHB:Fire() | |
115 | lastframe = tick() | |
116 | else | |
117 | for i = 1, math.floor(tf / frame) do | |
118 | script.ArtificialHB:Fire() | |
119 | end | |
120 | lastframe = tick() | |
121 | end | |
122 | if tossremainder then | |
123 | tf = 0 | |
124 | else | |
125 | tf = tf - frame * math.floor(tf / frame) | |
126 | end | |
127 | end | |
128 | end) | |
129 | ||
130 | --//=================================\\ | |
131 | --\\=================================// | |
132 | ||
133 | --//=================================\\ | |
134 | --|| SOME FUNCTIONS | |
135 | --\\=================================// | |
136 | ||
137 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
138 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
139 | end | |
140 | ||
141 | function PositiveAngle(NUMBER) | |
142 | if NUMBER >= 0 then | |
143 | NUMBER = 0 | |
144 | end | |
145 | return NUMBER | |
146 | end | |
147 | ||
148 | function NegativeAngle(NUMBER) | |
149 | if NUMBER <= 0 then | |
150 | NUMBER = 0 | |
151 | end | |
152 | return NUMBER | |
153 | end | |
154 | ||
155 | function Swait(NUMBER) | |
156 | if NUMBER == 0 or NUMBER == nil then | |
157 | ArtificialHB.Event:wait() | |
158 | else | |
159 | for i = 1, NUMBER do | |
160 | ArtificialHB.Event:wait() | |
161 | end | |
162 | end | |
163 | end | |
164 | ||
165 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
166 | local NEWMESH = IT(MESH) | |
167 | if MESH == "SpecialMesh" then | |
168 | NEWMESH.MeshType = MESHTYPE | |
169 | if MESHID ~= "nil" and MESHID ~= "" then | |
170 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
171 | end | |
172 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
173 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
174 | end | |
175 | end | |
176 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
177 | NEWMESH.Scale = SCALE | |
178 | NEWMESH.Parent = PARENT | |
179 | return NEWMESH | |
180 | end | |
181 | ||
182 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
183 | local NEWPART = IT("Part") | |
184 | NEWPART.formFactor = FORMFACTOR | |
185 | NEWPART.Reflectance = REFLECTANCE | |
186 | NEWPART.Transparency = TRANSPARENCY | |
187 | NEWPART.CanCollide = false | |
188 | NEWPART.Locked = true | |
189 | NEWPART.Anchored = true | |
190 | if ANCHOR == false then | |
191 | NEWPART.Anchored = false | |
192 | end | |
193 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
194 | NEWPART.Name = NAME | |
195 | NEWPART.Size = SIZE | |
196 | NEWPART.Position = Torso.Position | |
197 | NEWPART.Material = MATERIAL | |
198 | NEWPART:BreakJoints() | |
199 | NEWPART.Parent = PARENT | |
200 | return NEWPART | |
201 | end | |
202 | ||
203 | local function weldBetween(a, b) | |
204 | local weldd = Instance.new("ManualWeld") | |
205 | weldd.Part0 = a | |
206 | weldd.Part1 = b | |
207 | weldd.C0 = CFrame.new() | |
208 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
209 | weldd.Parent = a | |
210 | return weldd | |
211 | end | |
212 | ||
213 | ||
214 | function QuaternionFromCFrame(cf) | |
215 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
216 | local trace = m00 + m11 + m22 | |
217 | if trace > 0 then | |
218 | local s = math.sqrt(1 + trace) | |
219 | local recip = 0.5 / s | |
220 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
221 | else | |
222 | local i = 0 | |
223 | if m11 > m00 then | |
224 | i = 1 | |
225 | end | |
226 | if m22 > (i == 0 and m00 or m11) then | |
227 | i = 2 | |
228 | end | |
229 | if i == 0 then | |
230 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
231 | local recip = 0.5 / s | |
232 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
233 | elseif i == 1 then | |
234 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
235 | local recip = 0.5 / s | |
236 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
237 | elseif i == 2 then | |
238 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
239 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
240 | end | |
241 | end | |
242 | end | |
243 | ||
244 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
245 | local xs, ys, zs = x + x, y + y, z + z | |
246 | local wx, wy, wz = w * xs, w * ys, w * zs | |
247 | local xx = x * xs | |
248 | local xy = x * ys | |
249 | local xz = x * zs | |
250 | local yy = y * ys | |
251 | local yz = y * zs | |
252 | local zz = z * zs | |
253 | return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy)) | |
254 | end | |
255 | ||
256 | function QuaternionSlerp(a, b, t) | |
257 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
258 | local startInterp, finishInterp; | |
259 | if cosTheta >= 0.0001 then | |
260 | if (1 - cosTheta) > 0.0001 then | |
261 | local theta = ACOS(cosTheta) | |
262 | local invSinTheta = 1 / SIN(theta) | |
263 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
264 | finishInterp = SIN(t * theta) * invSinTheta | |
265 | else | |
266 | startInterp = 1 - t | |
267 | finishInterp = t | |
268 | end | |
269 | else | |
270 | if (1 + cosTheta) > 0.0001 then | |
271 | local theta = ACOS(-cosTheta) | |
272 | local invSinTheta = 1 / SIN(theta) | |
273 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
274 | finishInterp = SIN(t * theta) * invSinTheta | |
275 | else | |
276 | startInterp = t - 1 | |
277 | finishInterp = t | |
278 | end | |
279 | end | |
280 | return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp | |
281 | end | |
282 | ||
283 | function Clerp(a, b, t) | |
284 | local qa = {QuaternionFromCFrame(a)} | |
285 | local qb = {QuaternionFromCFrame(b)} | |
286 | local ax, ay, az = a.x, a.y, a.z | |
287 | local bx, by, bz = b.x, b.y, b.z | |
288 | local _t = 1 - t | |
289 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
290 | end | |
291 | ||
292 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
293 | local frame = IT("Frame") | |
294 | frame.BackgroundTransparency = TRANSPARENCY | |
295 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
296 | frame.Position = POSITION | |
297 | frame.Size = SIZE | |
298 | frame.BackgroundColor3 = COLOR | |
299 | frame.BorderColor3 = BORDERCOLOR | |
300 | frame.Name = NAME | |
301 | frame.Parent = PARENT | |
302 | return frame | |
303 | end | |
304 | ||
305 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
306 | local label = IT("TextLabel") | |
307 | label.BackgroundTransparency = 1 | |
308 | label.Size = UD2(1, 0, 1, 0) | |
309 | label.Position = UD2(0, 0, 0, 0) | |
310 | label.TextColor3 = TEXTCOLOR | |
311 | - | label.TextStrokeColor3 = BRICKC"Really red".Color |
311 | + | label.TextStrokeColor3 = BRICKC"Line".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) |
514 | + | local Back = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "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) |
519 | + | local Wing = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "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) |
521 | + | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "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) |
528 | + | local Wing = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "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) |
530 | + | local Wing2 = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "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) |
535 | + | local Eye = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "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) |
537 | + | local Eye2 = CreatePart(3, Character, "Neon", 0, 0.5, "Lime green", "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) |
540 | + | local Eye3 = CreatePart(3, Character, "Neon", 0, 0, "Lime green", "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 |
543 | + | local SKILLTEXTCOLOR = BRICKC"Lime green".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 |
563 | + | tecks2.TextStrokeColor3 = BRICKC"Lime green".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}) | |
671 | 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) | |
672 | 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) | |
673 | 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) | |
674 | 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) | |
675 | 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) | |
676 | 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) | |
677 | end | |
678 | for i=0, 2, 0.1 / Animation_Speed do | |
679 | Swait() | |
680 | 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) | |
681 | 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) | |
682 | 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) | |
683 | 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) | |
684 | 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) | |
685 | 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) | |
686 | end | |
687 | 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}) | |
688 | 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}) | |
689 | 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}) | |
690 | for i=0, 0.4, 0.1 / Animation_Speed do | |
691 | Swait() | |
692 | killnearest(Torso.Position,45,"Glitch") | |
693 | 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}) | |
694 | 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}) | |
695 | 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) | |
696 | 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) | |
697 | 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) | |
698 | 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) | |
699 | 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) | |
700 | 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) | |
701 | end | |
702 | ATTACK = false | |
703 | Rooted = false | |
704 | end | |
705 | end | |
706 | ||
707 | function Technobeam() | |
708 | ATTACK = true | |
709 | Rooted = false | |
710 | local GYRO = IT("BodyGyro",RootPart) | |
711 | GYRO.D = 100 | |
712 | GYRO.P = 2000 | |
713 | GYRO.MaxTorque = VT(0,4000000,0) | |
714 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
715 | CreateSound("93724183", RightArm, 5, 1, false) | |
716 | for i=1, 35 do | |
717 | Swait() | |
718 | 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}) | |
719 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
720 | 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) | |
721 | 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) | |
722 | 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) | |
723 | 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) | |
724 | 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) | |
725 | 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) | |
726 | end | |
727 | - | local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Lazer", VT(0,0,0)) |
727 | + | local BEAM = CreatePart(3, Effects, "Neon", 0, 1, "Lime green", "Lazer", VT(0,0,0)) |
728 | local LOOP = CreateSound("415700134", RightArm, 5, 1, false) | |
729 | local TOCH = BEAM.Touched:Connect(function(hit) | |
730 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
731 | Shatter(hit) | |
732 | end | |
733 | end) | |
734 | local I = 0 | |
735 | repeat | |
736 | Swait() | |
737 | I = I + 1 | |
738 | if I <= 10 then | |
739 | BEAM.Transparency = BEAM.Transparency - 0.1 | |
740 | end | |
741 | local STARTPOS = RightArm.CFrame*CF(0,-4,0).p | |
742 | local ENDHIT,ENDPOS = CastProperRay(STARTPOS,Mouse.Hit.p,650,Character) | |
743 | local DISTANCE = (STARTPOS - ENDPOS).Magnitude | |
744 | BEAM.CFrame = CF(STARTPOS,ENDPOS)*CF(0,0,-DISTANCE/2)*ANGLES(RAD(0),RAD(0),RAD(I*5)) | |
745 | BEAM.Size = VT(2,2,DISTANCE) | |
746 | 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}) | |
747 | 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}) | |
748 | 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}) | |
749 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
750 | 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) | |
751 | 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) | |
752 | 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) | |
753 | 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) | |
754 | 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) | |
755 | 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) | |
756 | if ENDHIT ~= nil then | |
757 | if ENDHIT.Anchored == false and ENDHIT.Parent ~= Effects then | |
758 | Shatter(ENDHIT) | |
759 | end | |
760 | end | |
761 | until LOOP.Playing == false | |
762 | GYRO:remove() | |
763 | BEAM:remove() | |
764 | ATTACK = false | |
765 | Rooted = false | |
766 | end | |
767 | ||
768 | function Technowarp() | |
769 | local FRAME = RootPart.Position | |
770 | for i = 1, 6 do | |
771 | - | 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}) |
771 | + | 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"Lime green".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2}) |
772 | end | |
773 | RootPart.CFrame = CF(Mouse.Hit.p+VT(0,6,0),VT(FRAME.X,RootPart.Position.Y,FRAME.Z)) | |
774 | for i = 1, 6 do | |
775 | - | 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}) |
775 | + | 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"Lime green".Color, SoundID = 1177785010, SoundPitch = 1, SoundVolume = 2}) |
776 | end | |
777 | end | |
778 | ||
779 | function CyberSmash() | |
780 | ATTACK = true | |
781 | Rooted = false | |
782 | local GYRO = IT("BodyGyro",RootPart) | |
783 | GYRO.D = 100 | |
784 | GYRO.P = 2000 | |
785 | GYRO.MaxTorque = VT(0,4000000,0) | |
786 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
787 | - | local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Block", VT(25,25,25)) |
787 | + | local SMASH = CreatePart(3, Effects, "Neon", 0, 1, "Lime green", "Block", VT(25,25,25)) |
788 | SMASH.CanCollide = true | |
789 | SMASH.Color = C3(0,0,0) | |
790 | local EF = Instance.new("SelectionBox",SMASH) | |
791 | EF.Adornee = SMASH | |
792 | - | EF.Color = BrickColor.new("Really red") |
792 | + | EF.Color = BrickColor.new("Lime green") |
793 | EF.LineThickness = 0.2 | |
794 | EF.Transparency = 1 | |
795 | coroutine.resume(coroutine.create(function() | |
796 | for i = 1, 20 do | |
797 | Swait() | |
798 | SMASH.Transparency = SMASH.Transparency - 0.05 | |
799 | EF.Transparency = SMASH.Transparency | |
800 | end | |
801 | end)) | |
802 | repeat | |
803 | SMASH.CFrame = CF(Mouse.Hit.p)*CF(0,35,0) | |
804 | Swait() | |
805 | GYRO.cframe = CF(RootPart.Position,SMASH.Position) | |
806 | 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) | |
807 | 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) | |
808 | 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) | |
809 | 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) | |
810 | 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) | |
811 | 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) | |
812 | until HOLD == true and SMASH.Transparency < 0.99 | |
813 | for i = 1, 25 do | |
814 | Swait() | |
815 | SMASH.CFrame = SMASH.CFrame*CF(0,15/25,0) | |
816 | 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) | |
817 | 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) | |
818 | 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) | |
819 | 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) | |
820 | 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) | |
821 | 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) | |
822 | end | |
823 | local TOCH = SMASH.Touched:Connect(function(hit) | |
824 | if hit.Anchored == false and hit.Parent ~= Head and hit.Parent ~= Character and hit.Parent ~= Effects then | |
825 | Shatter(hit) | |
826 | end | |
827 | end) | |
828 | local n0 = nil | |
829 | local HITFLOOR,HITPOS = Raycast(SMASH.Position, (CF(SMASH.Position, SMASH.Position + VT(0, -1, 0))).lookVector, 25000, Character) | |
830 | if HITFLOOR ~= nil then | |
831 | if HITFLOOR.Anchored == false and HITFLOOR.Parent ~= workspace then | |
832 | if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") or HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
833 | if HITFLOOR.Parent.ClassName == "Model" then | |
834 | HITFLOOR.Parent:BreakJoints() | |
835 | elseif HITFLOOR.Parent.Parent.ClassName == "Model" then | |
836 | HITFLOOR.Parent.Parent:BreakJoints() | |
837 | end | |
838 | end | |
839 | local POS = HITPOS | |
840 | n0,HITPOS = Raycast(POS, (CF(POS, POS + VT(0, -1, 0))).lookVector, 25000, HITFLOOR.Parent) | |
841 | end | |
842 | end | |
843 | killnearest(HITPOS,SMASH.Size.X/1.3,"Shatter") | |
844 | SMASH.CFrame = CF(HITPOS+VT(0,SMASH.Size.Y/2,0)) | |
845 | 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}) | |
846 | for i = 1, 25 do | |
847 | Swait() | |
848 | 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) | |
849 | 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) | |
850 | 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) | |
851 | 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) | |
852 | 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) | |
853 | 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) | |
854 | end | |
855 | coroutine.resume(coroutine.create(function() | |
856 | wait(0.2) | |
857 | TOCH:disconnect() | |
858 | wait(1.8) | |
859 | for i = 1, 100 do | |
860 | Swait() | |
861 | SMASH.Transparency = i/100 | |
862 | end | |
863 | for i = 1, 10 do | |
864 | Swait() | |
865 | EF.Transparency = EF.Transparency + 0.1 | |
866 | end | |
867 | SMASH:remove() | |
868 | end)) | |
869 | GYRO:remove() | |
870 | ATTACK = false | |
871 | Rooted = false | |
872 | end | |
873 | ||
874 | --//=================================\\ | |
875 | --|| ASSIGN THINGS TO KEYS | |
876 | --\\=================================// | |
877 | ||
878 | function MouseDown(Mouse) | |
879 | HOLD = true | |
880 | if ATTACK == false then | |
881 | end | |
882 | end | |
883 | ||
884 | function MouseUp(Mouse) | |
885 | HOLD = false | |
886 | end | |
887 | ||
888 | function KeyDown(Key) | |
889 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
890 | KEYHOLD = true | |
891 | if Key == "z" and ATTACK == false then | |
892 | CyberOutburst() | |
893 | end | |
894 | ||
895 | if Key == "b" and ATTACK == false then | |
896 | Technobeam() | |
897 | end | |
898 | ||
899 | if Key == "c" and ATTACK == false then | |
900 | Technowarp() | |
901 | end | |
902 | ||
903 | if Key == "v" and ATTACK == false then | |
904 | CyberSmash() | |
905 | end | |
906 | ||
907 | if Key == "t" then | |
908 | local TAUNT = CreateSound("132392118", Head, 10, 0.8) | |
909 | TAUNT.TimePosition = 1.1 | |
910 | end | |
911 | end | |
912 | end | |
913 | ||
914 | function KeyUp(Key) | |
915 | if Key ~= "w" and Key ~= "a" and Key ~= "s" and Key ~= "d" then | |
916 | KEYHOLD = false | |
917 | end | |
918 | end | |
919 | ||
920 | Mouse.Button1Down:connect(function(NEWKEY) | |
921 | MouseDown(NEWKEY) | |
922 | end) | |
923 | Mouse.Button1Up:connect(function(NEWKEY) | |
924 | MouseUp(NEWKEY) | |
925 | end) | |
926 | Mouse.KeyDown:connect(function(NEWKEY) | |
927 | KeyDown(NEWKEY) | |
928 | end) | |
929 | Mouse.KeyUp:connect(function(NEWKEY) | |
930 | KeyUp(NEWKEY) | |
931 | end) | |
932 | ||
933 | --//=================================\\ | |
934 | --\\=================================// | |
935 | ||
936 | ||
937 | function unanchor() | |
938 | if UNANCHOR == true then | |
939 | g = Character:GetChildren() | |
940 | for i = 1, #g do | |
941 | if g[i].ClassName == "Part" then | |
942 | g[i].Anchored = false | |
943 | end | |
944 | end | |
945 | end | |
946 | end | |
947 | ||
948 | ||
949 | --//=================================\\ | |
950 | --|| WRAP THE WHOLE SCRIPT UP | |
951 | --\\=================================// | |
952 | ||
953 | Humanoid.Changed:connect(function(Jump) | |
954 | if Jump == "Jump" and (Disable_Jump == true) then | |
955 | Humanoid.Jump = false | |
956 | end | |
957 | end) | |
958 | ||
959 | Humanoid.HipHeight = 2 | |
960 | ||
961 | while true do | |
962 | Swait() | |
963 | refit() | |
964 | Character.Parent = workspace | |
965 | Humanoid.Parent = Character | |
966 | ANIMATE.Parent = nil | |
967 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
968 | IDLEANIMATION:Play() | |
969 | SINE = SINE + CHANGE | |
970 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
971 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
972 | HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 25, Character) | |
973 | local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16) | |
974 | EyeWeld3.C1 = Clerp(EyeWeld3.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
975 | EyeWeld2.C1 = Clerp(EyeWeld2.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-SINE*2)), 1 / Animation_Speed) | |
976 | EyeWeld.C1 = Clerp(EyeWeld.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(SINE*2)), 1 / Animation_Speed) | |
977 | for LW = 1, #LEFTWINGS do | |
978 | if LEFTWINGS[LW] ~= nil then | |
979 | 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) | |
980 | end | |
981 | end | |
982 | for RW = 1, #RIGHTWINGS do | |
983 | if RIGHTWINGS[RW] ~= nil then | |
984 | 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) | |
985 | end | |
986 | end | |
987 | if ATTACK == false then | |
988 | if TORSOVELOCITY < 1 then | |
989 | 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) | |
990 | 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) | |
991 | 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) | |
992 | 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) | |
993 | 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) | |
994 | 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) | |
995 | elseif TORSOVELOCITY > 1 then | |
996 | 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) | |
997 | 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) | |
998 | 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) | |
999 | 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) | |
1000 | 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) | |
1001 | 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) | |
1002 | end | |
1003 | end | |
1004 | for _, c in pairs(Character:GetChildren()) do | |
1005 | if c.ClassName == "Part" and c.Name ~= "Eye" then | |
1006 | c.Material = "Neon" | |
1007 | if c:FindFirstChildOfClass("ParticleEmitter") then | |
1008 | c:FindFirstChildOfClass("ParticleEmitter"):remove() | |
1009 | end | |
1010 | if c ~= Head and c ~= RootPart and c:FindFirstChild("BoxEffect") == nil then | |
1011 | local EF = Instance.new("SelectionBox",c) | |
1012 | EF.Adornee = c | |
1013 | - | EF.Color = BrickColor.new("Really red") |
1013 | + | EF.Color = BrickColor.new("Lime green") |
1014 | EF.LineThickness = 0.01 | |
1015 | EF.Transparency = 0 | |
1016 | EF.Name = "BoxEffect" | |
1017 | end | |
1018 | c.Color = C3(0,0,0) | |
1019 | if c == Head then | |
1020 | --[[if c:FindFirstChild("Dominus") == nil then | |
1021 | local M = CreateMesh("SpecialMesh", c, "FileMesh", "162384581", "162384608", VT(1,1,1)*1.1, VT(0,0,0)) | |
1022 | M.Name = "Dominus" | |
1023 | end]]-- | |
1024 | if c:FindFirstChild("face") then | |
1025 | c.face:remove() | |
1026 | end | |
1027 | end | |
1028 | elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then | |
1029 | c:remove() | |
1030 | end | |
1031 | end | |
1032 | if HITFLOOR ~= nil and MRANDOM(1,6) == 1 then | |
1033 | local POSITION = CF(HITPOS)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(MRANDOM(5,15),0,0).p | |
1034 | local BOXFLOOR,BOXPOS = Raycast(POSITION+VT(0,1,0), (CF(POSITION, POSITION + VT(0, -1, 0))).lookVector, 5, Character) | |
1035 | if BOXFLOOR ~= nil then | |
1036 | - | 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}) |
1036 | + | 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"Lime green".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) |
1037 | end | |
1038 | end | |
1039 | unanchor() | |
1040 | Humanoid.MaxHealth = "inf" | |
1041 | Humanoid.Health = "inf" | |
1042 | if Rooted == false then | |
1043 | Disable_Jump = false | |
1044 | Humanoid.WalkSpeed = Speed | |
1045 | elseif Rooted == true then | |
1046 | Disable_Jump = true | |
1047 | Humanoid.WalkSpeed = 0 | |
1048 | end | |
1049 | for _, c in pairs(workspace:GetChildren()) do | |
1050 | if c.ClassName == "Model" and c:FindFirstChild("Humanoid") and c ~= Character then | |
1051 | end | |
1052 | end | |
1053 | script.Parent = WEAPONGUI | |
1054 | Humanoid.Name = "Monarch" | |
1055 | sick.Parent = Effects | |
1056 | sick.Pitch = 0.85 | |
1057 | sick.Playing = true | |
1058 | for _, q in pairs(Head:GetChildren()) do | |
1059 | if q.ClassName == "Sound" and q.Name ~= "Audio" then | |
1060 | q:remove() | |
1061 | end | |
1062 | end | |
1063 | Humanoid.DisplayDistanceType = "None" | |
1064 | end | |
1065 | ||
1066 | --//=================================\\ | |
1067 | --\\=================================// | |
1068 | ||
1069 | ||
1070 | ||
1071 | ||
1072 | ||
1073 | --//====================================================\\-- | |
1074 | --|| END OF SCRIPT | |
1075 | --\\====================================================//-- |