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 | ||
28 | IT = Instance.new | |
29 | CF = CFrame.new | |
30 | VT = Vector3.new | |
31 | RAD = math.rad | |
32 | C3 = Color3.new | |
33 | UD2 = UDim2.new | |
34 | BRICKC = BrickColor.new | |
35 | ANGLES = CFrame.Angles | |
36 | EULER = CFrame.fromEulerAnglesXYZ | |
37 | COS = math.cos | |
38 | ACOS = math.acos | |
39 | SIN = math.sin | |
40 | ASIN = math.asin | |
41 | ABS = math.abs | |
42 | MRANDOM = math.random | |
43 | FLOOR = math.floor | |
44 | ||
45 | --//=================================\\ | |
46 | --|| USEFUL VALUES | |
47 | --\\=================================// | |
48 | ||
49 | Animation_Speed = 3 | |
50 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
51 | local Speed = 16 | |
52 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
53 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
54 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
55 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
56 | local DAMAGEMULTIPLIER = 1 | |
57 | local ANIM = "Idle" | |
58 | local ATTACK = false | |
59 | local EQUIPPED = false | |
60 | local HOLD = false | |
61 | local COMBO = 1 | |
62 | local Rooted = false | |
63 | local SINE = 0 | |
64 | local KEYHOLD = false | |
65 | local CHANGE = 2 / Animation_Speed | |
66 | local WALKINGANIM = false | |
67 | local VALUE1 = false | |
68 | local VALUE2 = false | |
69 | local ROBLOXIDLEANIMATION = IT("Animation") | |
70 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
71 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
72 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
73 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
74 | WEAPONGUI.Name = "Weapon GUI" | |
75 | local Weapon = IT("Model") | |
76 | Weapon.Name = "Adds" | |
77 | local Effects = IT("Folder", Weapon) | |
78 | Effects.Name = "Effects" | |
79 | local ANIMATOR = Humanoid.Animator | |
80 | local ANIMATE = Character.Animate | |
81 | local UNANCHOR = true | |
82 | local ENERGYSOUND = 1417051162 | |
83 | local BEAMSOUND = 1417056781 | |
84 | local EXPLOSIONSOUND = 1417056081 | |
85 | ||
86 | --//=================================\\ | |
87 | --\\=================================// | |
88 | ||
89 | ||
90 | --//=================================\\ | |
91 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
92 | --\\=================================// | |
93 | ||
94 | ArtificialHB = Instance.new("BindableEvent", script) | |
95 | ArtificialHB.Name = "ArtificialHB" | |
96 | ||
97 | script:WaitForChild("ArtificialHB") | |
98 | ||
99 | frame = Frame_Speed | |
100 | tf = 0 | |
101 | allowframeloss = false | |
102 | tossremainder = false | |
103 | lastframe = tick() | |
104 | script.ArtificialHB:Fire() | |
105 | ||
106 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
107 | tf = tf + s | |
108 | if tf >= frame then | |
109 | if allowframeloss then | |
110 | script.ArtificialHB:Fire() | |
111 | lastframe = tick() | |
112 | else | |
113 | for i = 1, math.floor(tf / frame) do | |
114 | script.ArtificialHB:Fire() | |
115 | end | |
116 | lastframe = tick() | |
117 | end | |
118 | if tossremainder then | |
119 | tf = 0 | |
120 | else | |
121 | tf = tf - frame * math.floor(tf / frame) | |
122 | end | |
123 | end | |
124 | end) | |
125 | ||
126 | --//=================================\\ | |
127 | --\\=================================// | |
128 | ||
129 | --//=================================\\ | |
130 | --|| SOME FUNCTIONS | |
131 | --\\=================================// | |
132 | ||
133 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
134 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
135 | end | |
136 | ||
137 | function PositiveAngle(NUMBER) | |
138 | if NUMBER >= 0 then | |
139 | NUMBER = 0 | |
140 | end | |
141 | return NUMBER | |
142 | end | |
143 | ||
144 | function NegativeAngle(NUMBER) | |
145 | if NUMBER <= 0 then | |
146 | NUMBER = 0 | |
147 | end | |
148 | return NUMBER | |
149 | end | |
150 | ||
151 | function Swait(NUMBER) | |
152 | if NUMBER == 0 or NUMBER == nil then | |
153 | ArtificialHB.Event:wait() | |
154 | else | |
155 | for i = 1, NUMBER do | |
156 | ArtificialHB.Event:wait() | |
157 | end | |
158 | end | |
159 | end | |
160 | ||
161 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
162 | local NEWMESH = IT(MESH) | |
163 | if MESH == "SpecialMesh" then | |
164 | NEWMESH.MeshType = MESHTYPE | |
165 | if MESHID ~= "nil" and MESHID ~= "" then | |
166 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
167 | end | |
168 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
169 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
170 | end | |
171 | end | |
172 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
173 | NEWMESH.Scale = SCALE | |
174 | NEWMESH.Parent = PARENT | |
175 | return NEWMESH | |
176 | end | |
177 | ||
178 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
179 | local NEWPART = IT("Part") | |
180 | NEWPART.formFactor = FORMFACTOR | |
181 | NEWPART.Reflectance = REFLECTANCE | |
182 | NEWPART.Transparency = TRANSPARENCY | |
183 | NEWPART.CanCollide = false | |
184 | NEWPART.Locked = true | |
185 | NEWPART.Anchored = true | |
186 | if ANCHOR == false then | |
187 | NEWPART.Anchored = false | |
188 | end | |
189 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
190 | NEWPART.Name = NAME | |
191 | NEWPART.Size = SIZE | |
192 | NEWPART.Position = Torso.Position | |
193 | NEWPART.Material = MATERIAL | |
194 | NEWPART:BreakJoints() | |
195 | NEWPART.Parent = PARENT | |
196 | return NEWPART | |
197 | end | |
198 | ||
199 | local function weldBetween(a, b) | |
200 | local weldd = Instance.new("ManualWeld") | |
201 | weldd.Part0 = a | |
202 | weldd.Part1 = b | |
203 | weldd.C0 = CFrame.new() | |
204 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
205 | weldd.Parent = a | |
206 | return weldd | |
207 | end | |
208 | ||
209 | ||
210 | function QuaternionFromCFrame(cf) | |
211 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
212 | local trace = m00 + m11 + m22 | |
213 | if trace > 0 then | |
214 | local s = math.sqrt(1 + trace) | |
215 | local recip = 0.5 / s | |
216 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
217 | else | |
218 | local i = 0 | |
219 | if m11 > m00 then | |
220 | i = 1 | |
221 | end | |
222 | if m22 > (i == 0 and m00 or m11) then | |
223 | i = 2 | |
224 | end | |
225 | if i == 0 then | |
226 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
227 | local recip = 0.5 / s | |
228 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
229 | elseif i == 1 then | |
230 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
231 | local recip = 0.5 / s | |
232 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
233 | elseif i == 2 then | |
234 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
235 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
236 | end | |
237 | end | |
238 | end | |
239 | ||
240 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
241 | local xs, ys, zs = x + x, y + y, z + z | |
242 | local wx, wy, wz = w * xs, w * ys, w * zs | |
243 | local xx = x * xs | |
244 | local xy = x * ys | |
245 | local xz = x * zs | |
246 | local yy = y * ys | |
247 | local yz = y * zs | |
248 | local zz = z * zs | |
249 | 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)) | |
250 | end | |
251 | ||
252 | function QuaternionSlerp(a, b, t) | |
253 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
254 | local startInterp, finishInterp; | |
255 | if cosTheta >= 0.0001 then | |
256 | if (1 - cosTheta) > 0.0001 then | |
257 | local theta = ACOS(cosTheta) | |
258 | local invSinTheta = 1 / SIN(theta) | |
259 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
260 | finishInterp = SIN(t * theta) * invSinTheta | |
261 | else | |
262 | startInterp = 1 - t | |
263 | finishInterp = t | |
264 | end | |
265 | else | |
266 | if (1 + cosTheta) > 0.0001 then | |
267 | local theta = ACOS(-cosTheta) | |
268 | local invSinTheta = 1 / SIN(theta) | |
269 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
270 | finishInterp = SIN(t * theta) * invSinTheta | |
271 | else | |
272 | startInterp = t - 1 | |
273 | finishInterp = t | |
274 | end | |
275 | end | |
276 | 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 | |
277 | end | |
278 | ||
279 | function Clerp(a, b, t) | |
280 | local qa = {QuaternionFromCFrame(a)} | |
281 | local qb = {QuaternionFromCFrame(b)} | |
282 | local ax, ay, az = a.x, a.y, a.z | |
283 | local bx, by, bz = b.x, b.y, b.z | |
284 | local _t = 1 - t | |
285 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
286 | end | |
287 | ||
288 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
289 | local frame = IT("Frame") | |
290 | frame.BackgroundTransparency = TRANSPARENCY | |
291 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
292 | frame.Position = POSITION | |
293 | frame.Size = SIZE | |
294 | frame.BackgroundColor3 = COLOR | |
295 | frame.BorderColor3 = BORDERCOLOR | |
296 | frame.Name = NAME | |
297 | frame.Parent = PARENT | |
298 | return frame | |
299 | end | |
300 | ||
301 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
302 | local label = IT("TextLabel") | |
303 | label.BackgroundTransparency = 1 | |
304 | label.Size = UD2(1, 0, 1, 0) | |
305 | label.Position = UD2(0, 0, 0, 0) | |
306 | label.TextColor3 = TEXTCOLOR | |
307 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
308 | label.TextTransparency = TRANSPARENCY | |
309 | label.FontSize = TEXTFONTSIZE | |
310 | label.Font = TEXTFONT | |
311 | label.BorderSizePixel = BORDERSIZEPIXEL | |
312 | label.TextScaled = false | |
313 | label.Text = TEXT | |
314 | label.Name = NAME | |
315 | label.Parent = PARENT | |
316 | return label | |
317 | end | |
318 | ||
319 | function NoOutlines(PART) | |
320 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
321 | end | |
322 | ||
323 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
324 | local NEWWELD = IT(TYPE) | |
325 | NEWWELD.Part0 = PART0 | |
326 | NEWWELD.Part1 = PART1 | |
327 | NEWWELD.C0 = C0 | |
328 | NEWWELD.C1 = C1 | |
329 | NEWWELD.Parent = PARENT | |
330 | return NEWWELD | |
331 | end | |
332 | ||
333 | local S = IT("Sound") | |
334 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
335 | local NEWSOUND = nil | |
336 | coroutine.resume(coroutine.create(function() | |
337 | NEWSOUND = S:Clone() | |
338 | NEWSOUND.Parent = PARENT | |
339 | NEWSOUND.Volume = VOLUME | |
340 | NEWSOUND.Pitch = PITCH | |
341 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
342 | NEWSOUND:play() | |
343 | if DOESLOOP == true then | |
344 | NEWSOUND.Looped = true | |
345 | else | |
346 | repeat wait(1) until NEWSOUND.Playing == false | |
347 | NEWSOUND:remove() | |
348 | end | |
349 | end)) | |
350 | return NEWSOUND | |
351 | end | |
352 | ||
353 | function CFrameFromTopBack(at, top, back) | |
354 | local right = top:Cross(back) | |
355 | 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) | |
356 | end | |
357 | ||
358 | --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}) | |
359 | function WACKYEFFECT(Table) | |
360 | local TYPE = (Table.EffectType or "Sphere") | |
361 | local SIZE = (Table.Size or VT(1,1,1)) | |
362 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
363 | local TRANSPARENCY = (Table.Transparency or 0) | |
364 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
365 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
366 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
367 | local ROTATION1 = (Table.RotationX or 0) | |
368 | local ROTATION2 = (Table.RotationY or 0) | |
369 | local ROTATION3 = (Table.RotationZ or 0) | |
370 | local MATERIAL = (Table.Material or "Neon") | |
371 | local COLOR = (Table.Color or C3(1,1,1)) | |
372 | local TIME = (Table.Time or 45) | |
373 | local SOUNDID = (Table.SoundID or nil) | |
374 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
375 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
376 | coroutine.resume(coroutine.create(function() | |
377 | local PLAYSSOUND = false | |
378 | local SOUND = nil | |
379 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
380 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
381 | PLAYSSOUND = true | |
382 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
383 | end | |
384 | EFFECT.Color = COLOR | |
385 | local MSH = nil | |
386 | if TYPE == "Sphere" then | |
387 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
388 | elseif TYPE == "Block" then | |
389 | MSH = IT("BlockMesh",EFFECT) | |
390 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
391 | elseif TYPE == "Wave" then | |
392 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
393 | elseif TYPE == "Ring" then | |
394 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
395 | elseif TYPE == "Slash" then | |
396 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
397 | elseif TYPE == "Round Slash" then | |
398 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
399 | elseif TYPE == "Swirl" then | |
400 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
401 | elseif TYPE == "Skull" then | |
402 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
403 | elseif TYPE == "Crystal" then | |
404 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
405 | end | |
406 | if MSH ~= nil then | |
407 | local MOVESPEED = nil | |
408 | if MOVEDIRECTION ~= nil then | |
409 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
410 | end | |
411 | local GROWTH = SIZE - ENDSIZE | |
412 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
413 | if TYPE == "Block" then | |
414 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
415 | else | |
416 | EFFECT.CFrame = CFRAME | |
417 | end | |
418 | for LOOP = 1, TIME+1 do | |
419 | Swait() | |
420 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
421 | if TYPE == "Wave" then | |
422 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
423 | end | |
424 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
425 | if TYPE == "Block" then | |
426 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
427 | else | |
428 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
429 | end | |
430 | if MOVEDIRECTION ~= nil then | |
431 | local ORI = EFFECT.Orientation | |
432 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
433 | EFFECT.Orientation = ORI | |
434 | end | |
435 | end | |
436 | if PLAYSSOUND == false then | |
437 | EFFECT:remove() | |
438 | else | |
439 | repeat Swait() until SOUND.Playing == false | |
440 | EFFECT:remove() | |
441 | end | |
442 | else | |
443 | if PLAYSSOUND == false then | |
444 | EFFECT:remove() | |
445 | else | |
446 | repeat Swait() until SOUND.Playing == false | |
447 | EFFECT:remove() | |
448 | end | |
449 | end | |
450 | end)) | |
451 | end | |
452 | ||
453 | function MakeForm(PART,TYPE) | |
454 | if TYPE == "Cyl" then | |
455 | local MSH = IT("CylinderMesh",PART) | |
456 | elseif TYPE == "Ball" then | |
457 | local MSH = IT("SpecialMesh",PART) | |
458 | MSH.MeshType = "Sphere" | |
459 | elseif TYPE == "Wedge" then | |
460 | local MSH = IT("SpecialMesh",PART) | |
461 | MSH.MeshType = "Wedge" | |
462 | end | |
463 | end | |
464 | ||
465 | Debris = game:GetService("Debris") | |
466 | ||
467 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
468 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
469 | return Raycast(StartPos, DIRECTION, Distance, Ignore) | |
470 | end | |
471 | ||
472 | function turnto(position) | |
473 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
474 | end | |
475 | ||
476 | --//=================================\\ | |
477 | --|| WEAPON CREATION | |
478 | --\\=================================// | |
479 | ||
480 | local BasePart = CreatePart(3, Weapon, "Marble", 0, 0, "Institutional white", "BraceletPart", VT(1.01,0.3,1.01),false) | |
481 | CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0, -0.2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
482 | for i = 1, 3 do | |
483 | local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Daisy orange", "BraceletPart", VT(0.2,1.02,0.2),false) | |
484 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0, 0, 0.6-0.3*i) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0)) | |
485 | MakeForm(Part,"Cyl") | |
486 | end | |
487 | for i = 1, 3 do | |
488 | local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Daisy orange", "BraceletPart", VT(0.2,1.02,0.2),false) | |
489 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.6-0.3*i, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(90)), CF(0, 0, 0)) | |
490 | MakeForm(Part,"Cyl") | |
491 | end | |
492 | local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Institutional white", "BraceletPart", VT(0.51,0.6,0.25),false) | |
493 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0)) | |
494 | MakeForm(Part,"Wedge") | |
495 | local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Institutional white", "BraceletPart", VT(0.51,0.6,0.25),false) | |
496 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125, -0.4, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0)) | |
497 | MakeForm(Part,"Wedge") | |
498 | local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Daisy orange", "BraceletPart", VT(0.52,0.5,0.25/2.3),false) | |
499 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(-0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(90), RAD(180)), CF(0, 0, 0)) | |
500 | MakeForm(Part,"Wedge") | |
501 | local Part = CreatePart(3, Weapon, "Marble", 0, 0, "Daisy orange", "BraceletPart", VT(0.52,0.5,0.25/2.3),false) | |
502 | CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part, CF(0.125/2.3, -0.25, -0.25) * ANGLES(RAD(0), RAD(-90), RAD(180)), CF(0, 0, 0)) | |
503 | MakeForm(Part,"Wedge") | |
504 | ||
505 | for _, c in pairs(Weapon:GetChildren()) do | |
506 | if c.ClassName == "Part" then | |
507 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
508 | local AURA = c:Clone() | |
509 | AURA:BreakJoints() | |
510 | AURA.Parent = c | |
511 | AURA.CFrame = c.CFrame | |
512 | AURA.Size = AURA.Size*1.001 | |
513 | AURA.Transparency = 0.3 | |
514 | AURA.BrickColor = BRICKC"Gold" | |
515 | AURA.Material = "Neon" | |
516 | weldBetween(c,AURA) | |
517 | end | |
518 | end | |
519 | ||
520 | local SKILLTEXTCOLOR = BRICKC"Gold".Color | |
521 | local SKILLFONT = "Bodoni" | |
522 | local SKILLTEXTSIZE = 7 | |
523 | ||
524 | Weapon.Parent = Character | |
525 | ||
526 | Humanoid.Died:connect(function() | |
527 | ATTACK = true | |
528 | end) | |
529 | ||
530 | 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") | |
531 | 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") | |
532 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
533 | ||
534 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Aether Beam", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1") | |
535 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Aether Explosion", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2") | |
536 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Aether Immobilization", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3") | |
537 | ||
538 | --//=================================\\ | |
539 | --|| DAMAGE FUNCTIONS | |
540 | --\\=================================// | |
541 | ||
542 | function StatLabel(CFRAME, TEXT, COLOR) | |
543 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
544 | STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5))) | |
545 | local BODYGYRO = IT("BodyGyro", STATPART) | |
546 | game:GetService("Debris"):AddItem(STATPART ,5) | |
547 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
548 | BILLBOARDGUI.Adornee = STATPART | |
549 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
550 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
551 | BILLBOARDGUI.AlwaysOnTop = false | |
552 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
553 | TEXTLABEL.BackgroundTransparency = 1 | |
554 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
555 | TEXTLABEL.Text = TEXT | |
556 | TEXTLABEL.Font = SKILLFONT | |
557 | TEXTLABEL.FontSize="Size42" | |
558 | TEXTLABEL.TextColor3 = COLOR | |
559 | TEXTLABEL.TextStrokeTransparency = 0 | |
560 | TEXTLABEL.TextScaled = true | |
561 | TEXTLABEL.TextWrapped = true | |
562 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
563 | for i = 1, 50 do | |
564 | Swait() | |
565 | STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2) | |
566 | TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50) | |
567 | TEXTLABEL.TextStrokeTransparency = TEXTLABEL.TextTransparency | |
568 | end | |
569 | THEPART.Parent = nil | |
570 | end),STATPART, TEXTLABEL) | |
571 | end | |
572 | ||
573 | --//=================================\\ | |
574 | --|| DAMAGING | |
575 | --\\=================================// | |
576 | ||
577 | function ApplyDamage(Humanoid,Damage,TorsoPart) | |
578 | local defence = Instance.new("BoolValue",Humanoid.Parent) | |
579 | defence.Name = ("HitBy"..Player.Name) | |
580 | game:GetService("Debris"):AddItem(defence, 0.001) | |
581 | Damage = Damage * DAMAGEMULTIPLIER | |
582 | if Humanoid.Health ~= 0 then | |
583 | local CritChance = MRANDOM(1,100) | |
584 | if Damage > Humanoid.Health then | |
585 | Damage = math.ceil(Humanoid.Health) | |
586 | if Damage == 0 then | |
587 | Damage = 0.1 | |
588 | end | |
589 | end | |
590 | Humanoid.Health = Humanoid.Health - Damage | |
591 | StatLabel(TorsoPart.CFrame * CF(0, 0 + (TorsoPart.Size.z - 1), 0), Damage, C3(0, 0, 0)) | |
592 | end | |
593 | end | |
594 | ||
595 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,STUNS) | |
596 | local CHILDREN = workspace:GetDescendants() | |
597 | for index, CHILD in pairs(CHILDREN) do | |
598 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
599 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
600 | if HUM then | |
601 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
602 | if TORSO then | |
603 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
604 | if STUNS == true then | |
605 | coroutine.resume(coroutine.create(function() | |
606 | if HUM:FindFirstChild("StunValue") == nil then | |
607 | StatLabel(TORSO.CFrame * CF(0, 0 + (TORSO.Size.z - 1), 0), "Stunned!", C3(1,1,1)) | |
608 | HUM.PlatformStand = true | |
609 | local STUNVALUE = IT("NumberValue",HUM) | |
610 | STUNVALUE.Name = "StunValue" | |
611 | STUNVALUE.Value = 8 | |
612 | repeat wait(1) STUNVALUE.Value = STUNVALUE.Value - 1 until STUNVALUE.Value <= 0 | |
613 | HUM.PlatformStand = false | |
614 | STUNVALUE:remove() | |
615 | else | |
616 | HUM.StunValue.Value = 8 | |
617 | end | |
618 | end)) | |
619 | end | |
620 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
621 | ApplyDamage(HUM,DMG,TORSO) | |
622 | if FLING > 0 then | |
623 | for _, c in pairs(CHILD:GetChildren()) do | |
624 | if c:IsA("BasePart") then | |
625 | local bv = Instance.new("BodyVelocity") | |
626 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
627 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
628 | bv.Parent = c | |
629 | Debris:AddItem(bv,0.05) | |
630 | end | |
631 | end | |
632 | end | |
633 | end | |
634 | end | |
635 | end | |
636 | end | |
637 | end | |
638 | end | |
639 | ||
640 | --//=================================\\ | |
641 | --|| ATTACK FUNCTIONS AND STUFF | |
642 | --\\=================================// | |
643 | ||
644 | function Charge(TIME,GYRO) | |
645 | local SND = CreateSound(ENERGYSOUND,Torso,6,TIME,false) | |
646 | local G = nil | |
647 | if GYRO == true then | |
648 | G = IT("BodyGyro",RootPart) | |
649 | G.D = 250 | |
650 | G.P = 200000 | |
651 | G.MaxTorque = VT(math.huge,math.huge,math.huge) | |
652 | end | |
653 | for i=0, TIME, 0.1 / Animation_Speed do | |
654 | Swait() | |
655 | if G then | |
656 | G.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
657 | end | |
658 | WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(1.2,1.2,1.2), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BasePart.CFrame, MoveToPos = BasePart.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,-4).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
659 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
660 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
661 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
662 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
663 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
664 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
665 | end | |
666 | SND:remove() | |
667 | if G then | |
668 | return G | |
669 | end | |
670 | end | |
671 | ||
672 | function Aether_Beam() | |
673 | ATTACK = true | |
674 | Rooted = false | |
675 | local GRAV = IT("BodyPosition",RootPart) | |
676 | GRAV.D = 75 | |
677 | GRAV.P = 20000 | |
678 | GRAV.MaxForce = VT(math.huge,math.huge,math.huge) | |
679 | GRAV.Position = RootPart.Position | |
680 | local GYRO = Charge(2,true) | |
681 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Gold", "Beam", VT(15,15,0)) | |
682 | MakeForm(BEAM,"Ball") | |
683 | CreateSound(BEAMSOUND,BEAM,10,1,false) | |
684 | CreateSound(BEAMSOUND,BEAM,10,0.9,false) | |
685 | CreateSound(BEAMSOUND,BEAM,10,0.8,false) | |
686 | for i = 1, 150 do | |
687 | Swait() | |
688 | BEAM.Size = BEAM.Size + VT(-0.1,-0.1,2) | |
689 | ApplyAoE(BEAM.CFrame*CF(0,0,-BEAM.Size.Z/2).p,BEAM.Size.Y/2,5,8,125,false) | |
690 | WACKYEFFECT({TIME = 25, EffectType = "Sphere", Size = VT(3,3,3), Size2 = VT(0,0,0), Transparency = 0.5, Transparency2 = 1, CFrame = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2), MoveToPos = BEAM.CFrame*CF(0,0,BEAM.Size.Z/2)*ANGLES(RAD(90),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0.3,-25).p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
691 | BEAM.CFrame = CF(Torso.Position,Torso.CFrame*CF(0,0,-1).p)*CF(0,0,-2-(BEAM.Size.Z/2)) | |
692 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
693 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
694 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
695 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
696 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
697 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
698 | end | |
699 | GRAV:remove() | |
700 | BEAM:remove() | |
701 | GYRO:remove() | |
702 | ATTACK = false | |
703 | Rooted = false | |
704 | end | |
705 | ||
706 | function Aether_Explosion() | |
707 | ATTACK = true | |
708 | Rooted = true | |
709 | for i=0, 1, 0.1 / Animation_Speed do | |
710 | Swait() | |
711 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -0.3, 0) * ANGLES(RAD(0), RAD(0), RAD(-75)), 0.6 / Animation_Speed) | |
712 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(75)), 0.6 / Animation_Speed) | |
713 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.3 / Animation_Speed) | |
714 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.1 / Animation_Speed) | |
715 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
716 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.5 / Animation_Speed) | |
717 | end | |
718 | for i=0, 0.4, 0.1 / Animation_Speed do | |
719 | Swait() | |
720 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed) | |
721 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed) | |
722 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
723 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
724 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
725 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
726 | end | |
727 | local BEAM = CreatePart(3, Effects, "Neon", 0, 0, "Gold", "Beam", VT(0,0,0)) | |
728 | local BEAM2 = CreatePart(3, Effects, "Neon", 0, 0, "Gold", "Beam", VT(0,0,0)) | |
729 | MakeForm(BEAM,"Ball") | |
730 | MakeForm(BEAM2,"Ball") | |
731 | BEAM.CFrame = CF(RootPart.Position) | |
732 | BEAM2.CFrame = CF(RootPart.Position) | |
733 | CreateSound(EXPLOSIONSOUND,RootPart,10,1,false) | |
734 | for i=1, 100 do | |
735 | Swait() | |
736 | BEAM.Size = BEAM.Size + VT(0.7,8,0.7) | |
737 | BEAM2.Size = BEAM2.Size + VT(2,2,2) | |
738 | ApplyAoE(BEAM2.Position,BEAM2.Size.Z/2,1,1,15,false) | |
739 | BEAM.CFrame = CF(RootPart.Position) | |
740 | BEAM2.CFrame = CF(RootPart.Position) | |
741 | WACKYEFFECT({TIME = 5+i, EffectType = "Swirl", Size = BEAM2.Size*1.15, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0.8, Transparency2 = 1, CFrame = BEAM.CFrame * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
742 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, -1, -0.3) * ANGLES(RAD(75), RAD(0), RAD(75)), 1 / Animation_Speed) | |
743 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 1/ Animation_Speed) | |
744 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
745 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(0)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
746 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.01) * ANGLES(RAD(75), RAD(25), RAD(0)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed) | |
747 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 1 / Animation_Speed) | |
748 | end | |
749 | WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM.Size, Size2 = VT(0,BEAM.Size.Y,0), Transparency = 0, Transparency2 = 0, CFrame = BEAM.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
750 | WACKYEFFECT({TIME = 75, EffectType = "Sphere", Size = BEAM2.Size, Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 0.6, CFrame = BEAM2.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
751 | BEAM2:remove() | |
752 | BEAM:remove() | |
753 | ATTACK = false | |
754 | Rooted = false | |
755 | end | |
756 | ||
757 | function Aether_Immobilization() | |
758 | ATTACK = true | |
759 | Rooted = true | |
760 | Charge(2,false) | |
761 | local SND = CreateSound(EXPLOSIONSOUND,RootPart,10,1,false) | |
762 | local SND2 = CreateSound(ENERGYSOUND,RootPart,10,1,false) | |
763 | for i = 1, 60 do | |
764 | Swait() | |
765 | ApplyAoE(RootPart.Position,i*1.3,1,1,-200,true) | |
766 | SND.Pitch = SND.Pitch - 1/60 | |
767 | SND2.Pitch = SND.Pitch | |
768 | WACKYEFFECT({TIME = 4, EffectType = "Wave", Size = VT(i*2,10,i*2), Size2 = VT(i*2,10,i*2), Transparency = 0.9, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
769 | WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,10,0), Size2 = VT(i*2,6,i*2), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(0), RAD(i*5), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
770 | WACKYEFFECT({TIME = math.ceil(15-(i/10)), EffectType = "Wave", Size = VT(0,6,0), Size2 = VT(i*1.6,10,i*1.6), Transparency = 0.8, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)) * ANGLES(RAD(MRANDOM(-5,5)), RAD(i*5), RAD(MRANDOM(-5,5))), MoveToPos = nil, RotationX = 0, RotationY = i/8, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
771 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
772 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed) | |
773 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(-45), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
774 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-45), RAD(45), RAD(-45)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
775 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
776 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed) | |
777 | end | |
778 | SND:remove() | |
779 | SND2:remove() | |
780 | ATTACK = false | |
781 | Rooted = false | |
782 | end | |
783 | ||
784 | --//=================================\\ | |
785 | --|| ASSIGN THINGS TO KEYS | |
786 | --\\=================================// | |
787 | ||
788 | function MouseDown(Mouse) | |
789 | if ATTACK == false then | |
790 | end | |
791 | end | |
792 | ||
793 | function MouseUp(Mouse) | |
794 | HOLD = false | |
795 | end | |
796 | ||
797 | function KeyDown(Key) | |
798 | KEYHOLD = true | |
799 | if Key == "z" and ATTACK == false then | |
800 | Aether_Beam() | |
801 | end | |
802 | ||
803 | if Key == "b" and ATTACK == false then | |
804 | Aether_Explosion() | |
805 | end | |
806 | ||
807 | if Key == "c" and ATTACK == false then | |
808 | Aether_Immobilization() | |
809 | end | |
810 | end | |
811 | ||
812 | function KeyUp(Key) | |
813 | KEYHOLD = false | |
814 | end | |
815 | ||
816 | Mouse.Button1Down:connect(function(NEWKEY) | |
817 | MouseDown(NEWKEY) | |
818 | end) | |
819 | Mouse.Button1Up:connect(function(NEWKEY) | |
820 | MouseUp(NEWKEY) | |
821 | end) | |
822 | Mouse.KeyDown:connect(function(NEWKEY) | |
823 | KeyDown(NEWKEY) | |
824 | end) | |
825 | Mouse.KeyUp:connect(function(NEWKEY) | |
826 | KeyUp(NEWKEY) | |
827 | end) | |
828 | ||
829 | --//=================================\\ | |
830 | --\\=================================// | |
831 | ||
832 | function unanchor() | |
833 | if UNANCHOR == true then | |
834 | g = Character:GetChildren() | |
835 | for i = 1, #g do | |
836 | if g[i].ClassName == "Part" then | |
837 | g[i].Anchored = false | |
838 | end | |
839 | end | |
840 | end | |
841 | end | |
842 | ||
843 | --//=================================\\ | |
844 | --|| WRAP THE WHOLE SCRIPT UP | |
845 | --\\=================================// | |
846 | ||
847 | Humanoid.Changed:connect(function(Jump) | |
848 | if Jump == "Jump" and (Disable_Jump == true) then | |
849 | Humanoid.Jump = false | |
850 | end | |
851 | end) | |
852 | ||
853 | while true do | |
854 | Swait() | |
855 | script.Parent = WEAPONGUI | |
856 | ANIMATE.Parent = nil | |
857 | if Humanoid then | |
858 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
859 | IDLEANIMATION:Play() | |
860 | end | |
861 | SINE = SINE + CHANGE | |
862 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
863 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
864 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character) | |
865 | local WALKSPEEDVALUE = 5 / (Humanoid.WalkSpeed / 16) | |
866 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
867 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
868 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
869 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed) | |
870 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(45 * COS(SINE / WALKSPEEDVALUE))), 1 / Animation_Speed) | |
871 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
872 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
873 | Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
874 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
875 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
876 | end | |
877 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
878 | ANIM = "Jump" | |
879 | if ATTACK == false then | |
880 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
881 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
882 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
883 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
884 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
885 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
886 | end | |
887 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
888 | ANIM = "Fall" | |
889 | if ATTACK == false then | |
890 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
891 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
892 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed) | |
893 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
894 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
895 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
896 | end | |
897 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
898 | ANIM = "Idle" | |
899 | if ATTACK == false then | |
900 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
901 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
902 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
903 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
904 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
905 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
906 | end | |
907 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
908 | ANIM = "Walk" | |
909 | if ATTACK == false then | |
910 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
911 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
912 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
913 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-25 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
914 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed) | |
915 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed) | |
916 | end | |
917 | end | |
918 | unanchor() | |
919 | Humanoid.MaxHealth = "inf" | |
920 | Humanoid.Health = "inf" | |
921 | if Rooted == false then | |
922 | Disable_Jump = false | |
923 | Humanoid.WalkSpeed = Speed | |
924 | elseif Rooted == true then | |
925 | Disable_Jump = true | |
926 | Humanoid.WalkSpeed = 0 | |
927 | end | |
928 | end | |
929 | ||
930 | --//=================================\\ | |
931 | --\\=================================// | |
932 | ||
933 | ||
934 | ||
935 | ||
936 | ||
937 | --//====================================================\\-- | |
938 | --|| END OF SCRIPT | |
939 | --\\====================================================//-- |