SHOW:
|
|
- or go back to the newest paste.
1 | --//====================================================\\-- | |
2 | --|| CREATED BY SHACKLUSTER | |
3 | --\\====================================================//-- --henlo there | |
4 | --This was fixed by MRSHEEPY123. Here are some of the things I did/removed in the script (sorry if it upsets you) | |
5 | --The move "X" is basically a suicide move in this version as it makes you vanish and you do not come back | |
6 | --Removed Fire Particles. They broke and I did not have a solution to fix that issue. | |
7 | --Removed the package your character would have. It now uses your own character's current package. | |
8 | --Added Text like the working one Shackluster used. | |
9 | --I sadly had to remove some moves as they would not work. :( | |
10 | --Enjoy it anyways :) (its still rare ;p) | |
11 | ||
12 | wait(1) | |
13 | ||
14 | Player = game:GetService("Players").LocalPlayer | |
15 | PlayerGui = Player.PlayerGui | |
16 | Cam = workspace.CurrentCamera | |
17 | Backpack = Player.Backpack | |
18 | repeat wait() until Player.Character | |
19 | Character = Player.Character | |
20 | repeat wait() until Player.Character:FindFirstChildOfClass("Humanoid") | |
21 | Humanoid = Character:FindFirstChildOfClass("Humanoid") | |
22 | Mouse = Player:GetMouse() | |
23 | RootPart = Character["HumanoidRootPart"] | |
24 | Torso = Character["Torso"] | |
25 | Head = Character["Head"] | |
26 | RightArm = Character["Right Arm"] | |
27 | LeftArm = Character["Left Arm"] | |
28 | RightLeg = Character["Right Leg"] | |
29 | LeftLeg = Character["Left Leg"] | |
30 | RootJoint = RootPart["RootJoint"] | |
31 | Neck = Torso["Neck"] | |
32 | RightShoulder = Torso["Right Shoulder"] | |
33 | LeftShoulder = Torso["Left Shoulder"] | |
34 | RightHip = Torso["Right Hip"] | |
35 | LeftHip = Torso["Left Hip"] | |
36 | ||
37 | IT = Instance.new | |
38 | CF = CFrame.new | |
39 | VT = Vector3.new | |
40 | RAD = math.rad | |
41 | C3 = Color3.new | |
42 | UD2 = UDim2.new | |
43 | BRICKC = BrickColor.new | |
44 | ANGLES = CFrame.Angles | |
45 | EULER = CFrame.fromEulerAnglesXYZ | |
46 | COS = math.cos | |
47 | ACOS = math.acos | |
48 | SIN = math.sin | |
49 | ASIN = math.asin | |
50 | ABS = math.abs | |
51 | MRANDOM = math.random | |
52 | FLOOR = math.floor | |
53 | ||
54 | local naeeym2 = Instance.new("BillboardGui",Character) | |
55 | naeeym2.AlwaysOnTop = true | |
56 | naeeym2.Size = UDim2.new(7,35,3,15) | |
57 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
58 | naeeym2.MaxDistance = 75 | |
59 | naeeym2.Adornee = Character.Head | |
60 | naeeym2.Name = "Name2" | |
61 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
62 | tecks2.BackgroundTransparency = 1 | |
63 | tecks2.TextScaled = true | |
64 | tecks2.BorderSizePixel = 0 | |
65 | tecks2.Text = "The Searing Emperor" | |
66 | tecks2.Font = "ArialBold" | |
67 | tecks2.TextSize = 30 | |
68 | tecks2.TextStrokeTransparency = 0 | |
69 | tecks2.TextColor3 = Color3.fromRGB(119, 36, 130) | |
70 | tecks2.TextStrokeColor3 = Color3.fromRGB(0, 0, 0) | |
71 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
72 | tecks2.Parent = naeeym2 | |
73 | ||
74 | local naeeym3 = Instance.new("BillboardGui",Character) | |
75 | naeeym3.AlwaysOnTop = true | |
76 | naeeym3.Size = UDim2.new(7,35,3,15) | |
77 | naeeym3.StudsOffset = Vector3.new(2,3,0) | |
78 | naeeym3.MaxDistance = 75 | |
79 | naeeym3.Adornee = Character.Head | |
80 | naeeym3.Name = "Name3" | |
81 | local tecks3 = Instance.new("TextLabel",naeeym2) | |
82 | tecks3.BackgroundTransparency = 1 | |
83 | tecks3.TextScaled = true | |
84 | tecks3.BorderSizePixel = 0 | |
85 | tecks3.Text = "ShackIuster" | |
86 | tecks3.Font = "ArialBold" | |
87 | tecks3.TextSize = 30 | |
88 | tecks3.TextStrokeTransparency = 0 | |
89 | tecks3.TextColor3 = Color3.fromRGB(140, 140, 140) | |
90 | tecks3.TextStrokeColor3 = Color3.fromRGB(140, 140, 140) | |
91 | tecks3.Size = UDim2.new(0.5,0,0.2,0) | |
92 | tecks3.Parent = naeeym3 | |
93 | ||
94 | --//=================================\\ | |
95 | --|| USEFUL VALUES | |
96 | --\\=================================// | |
97 | ||
98 | Animation_Speed = 3 | |
99 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
100 | local Speed = 16 | |
101 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
102 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
103 | local RIGHTSHOULDERC0 = CF(-0.5, -0.25, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
104 | local LEFTSHOULDERC0 = CF(0.5, -0.25, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
105 | local DAMAGEMULTIPLIER = 10 | |
106 | local ANIM = "Idle" | |
107 | local ATTACK = false | |
108 | local EQUIPPED = false | |
109 | local HOLD = false | |
110 | local COMBO = 1 | |
111 | local Rooted = false | |
112 | local SINE = 90 | |
113 | local KEYHOLD = false | |
114 | local CHANGE = 2 / Animation_Speed | |
115 | local WALKINGANIM = false | |
116 | local VALUE1 = false | |
117 | local VALUE2 = false | |
118 | local ROBLOXIDLEANIMATION = IT("Animation") | |
119 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
120 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571" | |
121 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
122 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
123 | WEAPONGUI.Name = "Weapon GUI" | |
124 | local Effects = IT("Folder", Character) | |
125 | Effects.Name = "Effects" | |
126 | local SpecialEffects = IT("Folder", Character) | |
127 | SpecialEffects.Name = "SpecialEffects" | |
128 | local ANIMATOR = Humanoid.Animator | |
129 | local ANIMATE = Character.Animate | |
130 | local UNANCHOR = true | |
131 | local REGENRATE = 1 | |
132 | local FULLREGEN = true | |
133 | local POSEIDON = true | |
134 | local EXPLOSIONSMALLSOUND = 439342426 | |
135 | local EXPLOSIONMEDIUMSOUND = 605005842 | |
136 | local EXPLOSIONLARGESOUND = 565538688 | |
137 | local CHARGE = 278641993 | |
138 | local POSEIDONSOUND = 374289727 | |
139 | local FIREBALLSOUND = 414517770 | |
140 | local BURNSOUND = 565777213 | |
141 | local FIREFIELD = false | |
142 | local SEARING = false | |
143 | local BODYPOS = nil | |
144 | local GYRO = nil | |
145 | local DIRECTTURN = false | |
146 | local APPLYGYRO = true | |
147 | local SONGS = {448290268,285883918,562367125,720006240,1604593557,306586318} | |
148 | local CHOSENSONG = MRANDOM(1,#SONGS) | |
149 | ||
150 | --//=================================\\ | |
151 | --\\=================================// | |
152 | ||
153 | ||
154 | --//=================================\\ | |
155 | --|| SAZERENOS' ARTIFICIAL HEARTBEAT | |
156 | --\\=================================// | |
157 | ||
158 | ArtificialHB = Instance.new("BindableEvent", script) | |
159 | ArtificialHB.Name = "ArtificialHB" | |
160 | ||
161 | script:WaitForChild("ArtificialHB") | |
162 | ||
163 | frame = Frame_Speed | |
164 | tf = 0 | |
165 | allowframeloss = false | |
166 | tossremainder = false | |
167 | lastframe = tick() | |
168 | script.ArtificialHB:Fire() | |
169 | ||
170 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
171 | tf = tf + s | |
172 | if tf >= frame then | |
173 | if allowframeloss then | |
174 | script.ArtificialHB:Fire() | |
175 | lastframe = tick() | |
176 | else | |
177 | for i = 1, math.floor(tf / frame) do | |
178 | script.ArtificialHB:Fire() | |
179 | end | |
180 | lastframe = tick() | |
181 | end | |
182 | if tossremainder then | |
183 | tf = 0 | |
184 | else | |
185 | tf = tf - frame * math.floor(tf / frame) | |
186 | end | |
187 | end | |
188 | end) | |
189 | ||
190 | --//=================================\\ | |
191 | --\\=================================// | |
192 | ||
193 | --//=================================\\ | |
194 | --|| SOME FUNCTIONS | |
195 | --\\=================================// | |
196 | ||
197 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
198 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
199 | end | |
200 | ||
201 | function PositiveAngle(NUMBER) | |
202 | if NUMBER >= 0 then | |
203 | NUMBER = 0 | |
204 | end | |
205 | return NUMBER | |
206 | end | |
207 | ||
208 | function NegativeAngle(NUMBER) | |
209 | if NUMBER <= 0 then | |
210 | NUMBER = 0 | |
211 | end | |
212 | return NUMBER | |
213 | end | |
214 | ||
215 | function Swait(NUMBER) | |
216 | if NUMBER == 0 or NUMBER == nil then | |
217 | ArtificialHB.Event:wait() | |
218 | else | |
219 | for i = 1, NUMBER do | |
220 | ArtificialHB.Event:wait() | |
221 | end | |
222 | end | |
223 | end | |
224 | ||
225 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
226 | local NEWMESH = IT(MESH) | |
227 | if MESH == "SpecialMesh" then | |
228 | NEWMESH.MeshType = MESHTYPE | |
229 | if MESHID ~= "nil" and MESHID ~= "" then | |
230 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
231 | end | |
232 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
233 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
234 | end | |
235 | end | |
236 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
237 | NEWMESH.Scale = SCALE | |
238 | NEWMESH.Parent = PARENT | |
239 | return NEWMESH | |
240 | end | |
241 | ||
242 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
243 | local NEWPART = IT("Part") | |
244 | NEWPART.formFactor = FORMFACTOR | |
245 | NEWPART.Reflectance = REFLECTANCE | |
246 | NEWPART.Transparency = TRANSPARENCY | |
247 | NEWPART.CanCollide = false | |
248 | NEWPART.Locked = true | |
249 | NEWPART.Anchored = true | |
250 | if ANCHOR == false then | |
251 | NEWPART.Anchored = false | |
252 | end | |
253 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
254 | NEWPART.Name = NAME | |
255 | NEWPART.Size = SIZE | |
256 | NEWPART.Position = Torso.Position | |
257 | NEWPART.Material = MATERIAL | |
258 | NEWPART:BreakJoints() | |
259 | NEWPART.Parent = PARENT | |
260 | return NEWPART | |
261 | end | |
262 | ||
263 | local function weldBetween(a, b) | |
264 | local weldd = Instance.new("ManualWeld") | |
265 | weldd.Part0 = a | |
266 | weldd.Part1 = b | |
267 | weldd.C0 = CFrame.new() | |
268 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
269 | weldd.Parent = a | |
270 | return weldd | |
271 | end | |
272 | ||
273 | ||
274 | function QuaternionFromCFrame(cf) | |
275 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
276 | local trace = m00 + m11 + m22 | |
277 | if trace > 0 then | |
278 | local s = math.sqrt(1 + trace) | |
279 | local recip = 0.5 / s | |
280 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
281 | else | |
282 | local i = 0 | |
283 | if m11 > m00 then | |
284 | i = 1 | |
285 | end | |
286 | if m22 > (i == 0 and m00 or m11) then | |
287 | i = 2 | |
288 | end | |
289 | if i == 0 then | |
290 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
291 | local recip = 0.5 / s | |
292 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
293 | elseif i == 1 then | |
294 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
295 | local recip = 0.5 / s | |
296 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
297 | elseif i == 2 then | |
298 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
299 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
300 | end | |
301 | end | |
302 | end | |
303 | ||
304 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
305 | local xs, ys, zs = x + x, y + y, z + z | |
306 | local wx, wy, wz = w * xs, w * ys, w * zs | |
307 | local xx = x * xs | |
308 | local xy = x * ys | |
309 | local xz = x * zs | |
310 | local yy = y * ys | |
311 | local yz = y * zs | |
312 | local zz = z * zs | |
313 | 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)) | |
314 | end | |
315 | ||
316 | function QuaternionSlerp(a, b, t) | |
317 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
318 | local startInterp, finishInterp; | |
319 | if cosTheta >= 0.0001 then | |
320 | if (1 - cosTheta) > 0.0001 then | |
321 | local theta = ACOS(cosTheta) | |
322 | local invSinTheta = 1 / SIN(theta) | |
323 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
324 | finishInterp = SIN(t * theta) * invSinTheta | |
325 | else | |
326 | startInterp = 1 - t | |
327 | finishInterp = t | |
328 | end | |
329 | else | |
330 | if (1 + cosTheta) > 0.0001 then | |
331 | local theta = ACOS(-cosTheta) | |
332 | local invSinTheta = 1 / SIN(theta) | |
333 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
334 | finishInterp = SIN(t * theta) * invSinTheta | |
335 | else | |
336 | startInterp = t - 1 | |
337 | finishInterp = t | |
338 | end | |
339 | end | |
340 | 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 | |
341 | end | |
342 | ||
343 | function Clerp(a, b, t) | |
344 | local qa = {QuaternionFromCFrame(a)} | |
345 | local qb = {QuaternionFromCFrame(b)} | |
346 | local ax, ay, az = a.x, a.y, a.z | |
347 | local bx, by, bz = b.x, b.y, b.z | |
348 | local _t = 1 - t | |
349 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
350 | end | |
351 | ||
352 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
353 | local frame = IT("Frame") | |
354 | frame.BackgroundTransparency = TRANSPARENCY | |
355 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
356 | frame.Position = POSITION | |
357 | frame.Size = SIZE | |
358 | frame.BackgroundColor3 = COLOR | |
359 | frame.BorderColor3 = BORDERCOLOR | |
360 | frame.Name = NAME | |
361 | frame.Parent = PARENT | |
362 | return frame | |
363 | end | |
364 | ||
365 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
366 | local label = IT("TextLabel") | |
367 | label.BackgroundTransparency = 1 | |
368 | label.Size = UD2(1, 0, 1, 0) | |
369 | label.Position = UD2(0, 0, 0, 0) | |
370 | label.TextColor3 = TEXTCOLOR | |
371 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
372 | label.TextTransparency = TRANSPARENCY | |
373 | label.FontSize = TEXTFONTSIZE | |
374 | label.Font = TEXTFONT | |
375 | label.BorderSizePixel = BORDERSIZEPIXEL | |
376 | label.TextScaled = false | |
377 | label.Text = TEXT | |
378 | label.Name = NAME | |
379 | label.Parent = PARENT | |
380 | return label | |
381 | end | |
382 | ||
383 | function NoOutlines(PART) | |
384 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
385 | end | |
386 | ||
387 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
388 | local NEWWELD = IT(TYPE) | |
389 | NEWWELD.Part0 = PART0 | |
390 | NEWWELD.Part1 = PART1 | |
391 | NEWWELD.C0 = C0 | |
392 | NEWWELD.C1 = C1 | |
393 | NEWWELD.Parent = PARENT | |
394 | return NEWWELD | |
395 | end | |
396 | ||
397 | local S = IT("Sound") | |
398 | function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP) | |
399 | local NEWSOUND = nil | |
400 | coroutine.resume(coroutine.create(function() | |
401 | NEWSOUND = S:Clone() | |
402 | NEWSOUND.Parent = PARENT | |
403 | NEWSOUND.Volume = VOLUME | |
404 | NEWSOUND.Pitch = PITCH | |
405 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
406 | NEWSOUND:play() | |
407 | if DOESLOOP == true then | |
408 | NEWSOUND.Looped = true | |
409 | else | |
410 | repeat wait(1) until NEWSOUND.Playing == false | |
411 | NEWSOUND:remove() | |
412 | end | |
413 | end)) | |
414 | return NEWSOUND | |
415 | end | |
416 | ||
417 | function CFrameFromTopBack(at, top, back) | |
418 | local right = top:Cross(back) | |
419 | 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) | |
420 | end | |
421 | ||
422 | --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}) | |
423 | function WACKYEFFECT(Table) | |
424 | local TYPE = (Table.EffectType or "Sphere") | |
425 | local SIZE = (Table.Size or VT(1,1,1)) | |
426 | local ENDSIZE = (Table.Size2 or VT(0,0,0)) | |
427 | local TRANSPARENCY = (Table.Transparency or 0) | |
428 | local ENDTRANSPARENCY = (Table.Transparency2 or 1) | |
429 | local CFRAME = (Table.CFrame or Torso.CFrame) | |
430 | local MOVEDIRECTION = (Table.MoveToPos or nil) | |
431 | local ROTATION1 = (Table.RotationX or 0) | |
432 | local ROTATION2 = (Table.RotationY or 0) | |
433 | local ROTATION3 = (Table.RotationZ or 0) | |
434 | local MATERIAL = (Table.Material or "Neon") | |
435 | local COLOR = (Table.Color or C3(1,1,1)) | |
436 | local TIME = (Table.Time or 45) | |
437 | local SOUNDID = (Table.SoundID or nil) | |
438 | local SOUNDPITCH = (Table.SoundPitch or nil) | |
439 | local SOUNDVOLUME = (Table.SoundVolume or nil) | |
440 | coroutine.resume(coroutine.create(function() | |
441 | local PLAYSSOUND = false | |
442 | local SOUND = nil | |
443 | local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true) | |
444 | if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then | |
445 | PLAYSSOUND = true | |
446 | SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false) | |
447 | end | |
448 | EFFECT.Color = COLOR | |
449 | local MSH = nil | |
450 | if TYPE == "Sphere" then | |
451 | MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0)) | |
452 | elseif TYPE == "Block" then | |
453 | MSH = IT("BlockMesh",EFFECT) | |
454 | MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X) | |
455 | elseif TYPE == "Wave" then | |
456 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8)) | |
457 | elseif TYPE == "Ring" then | |
458 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0)) | |
459 | elseif TYPE == "Slash" then | |
460 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
461 | elseif TYPE == "Round Slash" then | |
462 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0)) | |
463 | elseif TYPE == "Swirl" then | |
464 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0)) | |
465 | elseif TYPE == "Skull" then | |
466 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0)) | |
467 | elseif TYPE == "Crystal" then | |
468 | MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0)) | |
469 | end | |
470 | if MSH ~= nil then | |
471 | local MOVESPEED = nil | |
472 | if MOVEDIRECTION ~= nil then | |
473 | MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME | |
474 | end | |
475 | local GROWTH = SIZE - ENDSIZE | |
476 | local TRANS = TRANSPARENCY - ENDTRANSPARENCY | |
477 | if TYPE == "Block" then | |
478 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
479 | else | |
480 | EFFECT.CFrame = CFRAME | |
481 | end | |
482 | for LOOP = 1, TIME+1 do | |
483 | Swait() | |
484 | MSH.Scale = MSH.Scale - GROWTH/TIME | |
485 | if TYPE == "Wave" then | |
486 | MSH.Offset = VT(0,0,-MSH.Scale.X/8) | |
487 | end | |
488 | EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME | |
489 | if TYPE == "Block" then | |
490 | EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))) | |
491 | else | |
492 | EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3)) | |
493 | end | |
494 | if MOVEDIRECTION ~= nil then | |
495 | local ORI = EFFECT.Orientation | |
496 | EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED) | |
497 | EFFECT.Orientation = ORI | |
498 | end | |
499 | end | |
500 | if PLAYSSOUND == false then | |
501 | EFFECT:remove() | |
502 | else | |
503 | repeat Swait() until SOUND.Playing == false | |
504 | EFFECT:remove() | |
505 | end | |
506 | else | |
507 | if PLAYSSOUND == false then | |
508 | EFFECT:remove() | |
509 | else | |
510 | repeat Swait() until SOUND.Playing == false | |
511 | EFFECT:remove() | |
512 | end | |
513 | end | |
514 | end)) | |
515 | end | |
516 | ||
517 | function MakeForm(PART,TYPE) | |
518 | if TYPE == "Cyl" then | |
519 | local MSH = IT("CylinderMesh",PART) | |
520 | elseif TYPE == "Ball" then | |
521 | local MSH = IT("SpecialMesh",PART) | |
522 | MSH.MeshType = "Sphere" | |
523 | elseif TYPE == "Wedge" then | |
524 | local MSH = IT("SpecialMesh",PART) | |
525 | MSH.MeshType = "Wedge" | |
526 | end | |
527 | end | |
528 | ||
529 | Debris = game:GetService("Debris") | |
530 | ||
531 | function CastProperRay(StartPos, EndPos, Distance, Ignore) | |
532 | local DIRECTION = CF(StartPos,EndPos).lookVector | |
533 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore) | |
534 | end | |
535 | ||
536 | --//=================================\\ | |
537 | --|| WEAPON CREATION | |
538 | --\\=================================// | |
539 | ||
540 | ||
541 | local REGENSOUND = 487215897 | |
542 | for _, c in pairs(Character:GetDescendants()) do | |
543 | if c and c.Parent then | |
544 | if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then | |
545 | local ACCESSORY = c.Parent | |
546 | c.Parent = Character | |
547 | if c then | |
548 | if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then | |
549 | weldBetween(Head,c) | |
550 | else | |
551 | weldBetween(Torso,c) | |
552 | end | |
553 | end | |
554 | ACCESSORY:remove() | |
555 | end | |
556 | end | |
557 | end | |
558 | wait() | |
559 | local BODY = {} | |
560 | for _, c in pairs(Character:GetDescendants()) do | |
561 | if c:IsA("BasePart") then | |
562 | if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
563 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
564 | end | |
565 | local REGENVALUE = IT("BoolValue",c) | |
566 | REGENVALUE.Name = "IsRegening" | |
567 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name,REGENVALUE}) | |
568 | elseif c:IsA("JointInstance") and c.Name ~= "AccessoryWeld" then | |
569 | table.insert(BODY,{c,c.Parent,nil,nil,nil,nil,nil,nil}) | |
570 | end | |
571 | end | |
572 | function FullBodyRegen() | |
573 | if FULLREGEN == false then | |
574 | FULLREGEN = true | |
575 | Character.Parent = workspace | |
576 | CreateSound(FIREBALLSOUND,Torso,3,MRANDOM(10,12)/10,false) | |
577 | UNANCHOR = false | |
578 | for e = 1, #BODY do | |
579 | if BODY[e] ~= nil then | |
580 | local STUFF = BODY[e] | |
581 | local PART = STUFF[1] | |
582 | local PARENT = STUFF[2] | |
583 | local MATERIAL = STUFF[3] | |
584 | local COLOR = STUFF[4] | |
585 | local TRANSPARENCY = STUFF[5] | |
586 | local SIZE = STUFF[6] | |
587 | local NAME = STUFF[7] | |
588 | local VALUE = STUFF[8] | |
589 | PART.Parent = PARENT | |
590 | Humanoid.MaxHealth = "inf" | |
591 | Humanoid.Health = "inf" | |
592 | Humanoid.Parent = nil | |
593 | Humanoid = IT("Humanoid",Character) | |
594 | Humanoid.Died:Connect(FullBodyRegen) | |
595 | PART.Parent = PARENT | |
596 | if PART:IsA("BasePart") and VALUE.Value == false and PART ~= RootPart then | |
597 | VALUE.Value = true | |
598 | coroutine.resume(coroutine.create(function() | |
599 | PART.Transparency = 1 | |
600 | CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/15,false) | |
601 | local REGEN = script.Regen:Clone() | |
602 | REGEN.Parent = PART | |
603 | REGEN.Speed = NumberRange.new(30) | |
604 | REGEN:Emit(100) | |
605 | local REGENING = script.Regen:Clone() | |
606 | REGENING.Parent = PART | |
607 | REGENING.Enabled = true | |
608 | REGENING.Speed = NumberRange.new(35) | |
609 | wait() | |
610 | local RANGE = 35 | |
611 | for i = 1, math.ceil(REGENRATE*25) do | |
612 | wait() | |
613 | ApplyAoE(PART.Position,6,1,1,0,false) | |
614 | REGENING.Speed = NumberRange.new(RANGE) | |
615 | RANGE = RANGE - (35/(math.ceil(REGENRATE*20))) | |
616 | end | |
617 | REGEN.Speed = NumberRange.new(6) | |
618 | REGEN:Emit(60) | |
619 | wait(REGENRATE/3) | |
620 | RootPart.Velocity = VT(0,0,0) | |
621 | UNANCHOR = true | |
622 | PART.Transparency = 0 | |
623 | REGEN.Rate = 50 | |
624 | REGEN.Enabled = true | |
625 | REGENING.Enabled = false | |
626 | wait(REGENRATE/1.5) | |
627 | VALUE.Value = false | |
628 | Debris:AddItem(REGENING,5) | |
629 | FULLREGEN = false | |
630 | REGEN.Enabled = false | |
631 | Debris:AddItem(REGEN,5) | |
632 | end)) | |
633 | end | |
634 | end | |
635 | end | |
636 | end | |
637 | end | |
638 | ||
639 | function Regen() | |
640 | Character.Parent = workspace | |
641 | for e = 1, #BODY do | |
642 | if BODY[e] ~= nil then | |
643 | local STUFF = BODY[e] | |
644 | local PART = STUFF[1] | |
645 | local PARENT = STUFF[2] | |
646 | local MATERIAL = STUFF[3] | |
647 | local COLOR = STUFF[4] | |
648 | local TRANSPARENCY = STUFF[5] | |
649 | --local SIZE = STUFF[6] | |
650 | local NAME = STUFF[7] | |
651 | local VALUE = STUFF[8] | |
652 | if PART.ClassName == "Part" and PART ~= RootPart then | |
653 | PART.Material = MATERIAL | |
654 | PART.Name = NAME | |
655 | end | |
656 | if PART.Parent ~= PARENT then | |
657 | PART.Parent = PARENT | |
658 | if PART:IsA("BasePart") and PART ~= RootPart and FULLREGEN == false then | |
659 | if VALUE.Value == false then | |
660 | VALUE.Value = true | |
661 | coroutine.resume(coroutine.create(function() | |
662 | PART.Transparency = 1 | |
663 | wait(REGENRATE) | |
664 | CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/10,false) | |
665 | local REGENING = script.Regen:Clone() | |
666 | REGENING.Parent = PART | |
667 | REGENING.Enabled = true | |
668 | for i = 1, math.ceil(REGENRATE*10) do | |
669 | wait() | |
670 | ApplyAoE(PART.Position,6,1,1,0,false) | |
671 | end | |
672 | wait(REGENRATE) | |
673 | PART.Transparency = 0 | |
674 | wait(REGENRATE/5) | |
675 | REGENING.Enabled = false | |
676 | VALUE.Value = false | |
677 | Debris:AddItem(REGENING,5) | |
678 | end)) | |
679 | end | |
680 | elseif PART:IsA("JointInstance") and PARENT ~= RootPart and FULLREGEN == false then | |
681 | local VALUE = PARENT.IsRegening | |
682 | if VALUE == false then | |
683 | VALUE.Value = true | |
684 | local PART = PART.Part1 | |
685 | coroutine.resume(coroutine.create(function() | |
686 | PART.Transparency = 1 | |
687 | wait(REGENRATE) | |
688 | CreateSound(REGENSOUND,PART,3,MRANDOM(8,12)/10,false) | |
689 | local REGENING = script.Regen:Clone() | |
690 | REGENING.Parent = PART | |
691 | REGENING.Enabled = true | |
692 | for i = 1, math.ceil(REGENRATE*10) do | |
693 | wait() | |
694 | ApplyAoE(PART.Position,6,1,1,0,false) | |
695 | end | |
696 | wait(REGENRATE) | |
697 | PART.Transparency = 1 | |
698 | wait(REGENRATE/5) | |
699 | REGENING.Enabled = true | |
700 | VALUE.Value = false | |
701 | end)) | |
702 | end | |
703 | end | |
704 | end | |
705 | end | |
706 | end | |
707 | end | |
708 | ||
709 | local b = IT("BodyForce",RootPart) | |
710 | b.Name = "LowGrav" | |
711 | b.force = Vector3.new(0,1500,0) | |
712 | ||
713 | local SKILLTEXTCOLOR = C3(0,0,0) | |
714 | local SKILLFONT = "Fantasy" | |
715 | local SKILLTEXTSIZE = 7 | |
716 | ||
717 | local BACKATTACHMENT1 = IT("Attachment",Torso) | |
718 | BACKATTACHMENT1.Position = VT(0.5, 0.5, 0.75) | |
719 | local BACKATTACHMENT2 = IT("Attachment",Torso) | |
720 | BACKATTACHMENT2.Position = VT(-0.5, 0.5, 0.75) | |
721 | ||
722 | Humanoid.Died:Connect(FullBodyRegen) | |
723 | ||
724 | --//=================================\\ | |
725 | --|| DAMAGING | |
726 | --\\=================================// | |
727 | ||
728 | function ApplyDamage(Humanoid,Damage) | |
729 | if Humanoid.Health == math.huge then | |
730 | Humanoid.Parent:BreakJoints() | |
731 | else | |
732 | local MULTIPLY = Humanoid.MaxHealth/100 | |
733 | Damage = Damage * DAMAGEMULTIPLIER | |
734 | if Humanoid.Health ~= 0 then | |
735 | Humanoid.Health = Humanoid.Health - Damage*MULTIPLY | |
736 | end | |
737 | end | |
738 | end | |
739 | ||
740 | function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,CAMSINSTAKILL,INSTAKILL) | |
741 | local CHILDREN = workspace:GetDescendants() | |
742 | for index, CHILD in pairs(CHILDREN) do | |
743 | if CHILD.ClassName == "Model" and CHILD ~= Character then | |
744 | local HUM = CHILD:FindFirstChildOfClass("Humanoid") | |
745 | if HUM then | |
746 | local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso") | |
747 | if TORSO then | |
748 | if (TORSO.Position - POSITION).Magnitude <= RANGE then | |
749 | if INSTAKILL == true or HUM.MaxHealth == math.huge then | |
750 | CHILD:BreakJoints() | |
751 | else | |
752 | local DMG = MRANDOM(MINDMG,MAXDMG) | |
753 | ApplyDamage(HUM,DMG) | |
754 | end | |
755 | if FLING > 0 then | |
756 | for _, c in pairs(CHILD:GetChildren()) do | |
757 | if c:IsA("BasePart") then | |
758 | local bv = Instance.new("BodyVelocity") | |
759 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
760 | bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING | |
761 | bv.Parent = c | |
762 | Debris:AddItem(bv,0.05) | |
763 | end | |
764 | end | |
765 | end | |
766 | end | |
767 | end | |
768 | end | |
769 | end | |
770 | end | |
771 | end | |
772 | ||
773 | --//=================================\\ | |
774 | --|| ATTACK FUNCTIONS AND STUFF | |
775 | --\\=================================// | |
776 | ||
777 | function Fireball() | |
778 | ATTACK = true | |
779 | Rooted = true | |
780 | local GYRO = IT("BodyGyro",RootPart) | |
781 | GYRO.D = 20 | |
782 | GYRO.P = 4000 | |
783 | GYRO.MaxTorque = VT(40000,40000,40000) | |
784 | local POSITION = IT("BodyPosition",RootPart) | |
785 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
786 | POSITION.D = 450 | |
787 | POSITION.P = 40000 | |
788 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
789 | CreateSound(CHARGE,RightArm,6,1,false) | |
790 | coroutine.resume(coroutine.create(function() | |
791 | repeat | |
792 | Swait() | |
793 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
794 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) | |
795 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) | |
796 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
797 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
798 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
799 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
800 | until ATTACK == false | |
801 | GYRO:remove() | |
802 | POSITION:remove() | |
803 | end)) | |
804 | wait(1) | |
805 | repeat | |
806 | coroutine.resume(coroutine.create(function() | |
807 | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(10,10,10)) | |
808 | FIREBALL.CFrame = CF(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p) | |
809 | CreateSound(FIREBALLSOUND,FIREBALL,6,1,false) | |
810 | for i = 1, 250 do | |
811 | Swait() | |
812 | local HIT,HITPOS = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 10, Character) | |
813 | FIREBALL.CFrame = FIREBALL.CFrame*CF(0,0,-5) | |
814 | if HIT then | |
815 | ApplyAoE(FIREBALL.Position,200,15,25,35,true,{SHAKE = 2, TIMER = 25, DOESFADE = true}) | |
816 | for i = 1, 3 do | |
817 | WACKYEFFECT({Time = 70, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
818 | end | |
819 | for i = 1, 3 do | |
820 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(200,300),MRANDOM(200,300),MRANDOM(200,300)), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
821 | end | |
822 | for i = 1, 5 do | |
823 | WACKYEFFECT({Time = 80+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(40,40,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
824 | end | |
825 | break | |
826 | end | |
827 | end | |
828 | Debris:AddItem(FIREBALL,7) | |
829 | end)) | |
830 | wait(0.1) | |
831 | until KEYHOLD == false | |
832 | wait(0.2) | |
833 | ATTACK = false | |
834 | Rooted = false | |
835 | end | |
836 | ||
837 | function SearingOrb() | |
838 | ATTACK = true | |
839 | Rooted = true | |
840 | local POSITION = IT("BodyPosition",RootPart) | |
841 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
842 | POSITION.D = 450 | |
843 | POSITION.P = 40000 | |
844 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
845 | CreateSound(CHARGE,Torso,6,1,false) | |
846 | local NEWANIM = false | |
847 | coroutine.resume(coroutine.create(function() | |
848 | repeat | |
849 | Swait() | |
850 | 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) | |
851 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
852 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
853 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
854 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
855 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
856 | until ATTACK == false or NEWANIM == true | |
857 | if NEWANIM == true then | |
858 | local GYRO = IT("BodyGyro",RootPart) | |
859 | GYRO.D = 20 | |
860 | GYRO.P = 4000 | |
861 | GYRO.MaxTorque = VT(40000,40000,40000) | |
862 | repeat | |
863 | Swait() | |
864 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
865 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) | |
866 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) | |
867 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
868 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
869 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
870 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
871 | until ATTACK == false | |
872 | GYRO:remove() | |
873 | end | |
874 | POSITION:remove() | |
875 | end)) | |
876 | local ORB = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Alder"), "Orb", VT(0,0,0), true) | |
877 | MakeForm(ORB,"Ball") | |
878 | ORB.CFrame = CF(RootPart.Position+VT(0,8,0)) | |
879 | local A = IT("Attachment",ORB) | |
880 | local LOOP = 0 | |
881 | for i = 1, 500 do | |
882 | Swait() | |
883 | LOOP = LOOP + 1 | |
884 | if LOOP >= 30 then | |
885 | LOOP = 0 | |
886 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
887 | end | |
888 | ORB.Size = ORB.Size + VT(0.2,0.2,0.2) | |
889 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
890 | end | |
891 | wait(1) | |
892 | if KEYHOLD == false then | |
893 | coroutine.resume(coroutine.create(function() | |
894 | ORB.Transparency = 1 | |
895 | Debris:AddItem(ORB,10) | |
896 | ApplyAoE(ORB.Position,400,75,90,175,true,{SHAKE = 4, TIMER = 65, DOESFADE = true}) | |
897 | CreateSound(EXPLOSIONLARGESOUND,ORB,10,1,false) | |
898 | CreateSound(EXPLOSIONSMALLSOUND,ORB,10,1,false) | |
899 | for i = 1, 3 do | |
900 | WACKYEFFECT({Time = 40, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(600,700),MRANDOM(600,700),MRANDOM(600,700)), Transparency = 0, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
901 | end | |
902 | for i = 1, 3 do | |
903 | WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(50,50,50), Size2 = VT(MRANDOM(600,700),MRANDOM(600,700),MRANDOM(600,700)), Transparency = 0, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
904 | end | |
905 | for i = 1, 15 do | |
906 | WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(70,70,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
907 | end | |
908 | end)) | |
909 | else | |
910 | for i = 1, 100 do | |
911 | Swait() | |
912 | ORB.Size = ORB.Size - VT(0.2,0.2,0.2)*5 | |
913 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
914 | end | |
915 | ORB.Transparency = 1 | |
916 | Debris:AddItem(ORB,10) | |
917 | CreateSound(EXPLOSIONSMALLSOUND,Torso,10,1,false) | |
918 | for _, c in pairs(Character:GetChildren()) do | |
919 | if c:IsA("BasePart") then | |
920 | end | |
921 | end | |
922 | NEWANIM = true | |
923 | wait(0.5) | |
924 | for i = 1, 15 do | |
925 | wait(0.1) | |
926 | coroutine.resume(coroutine.create(function() | |
927 | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 1, "Cyan", "Flight", VT(2,2,2)) | |
928 | FIREBALL.CFrame = CF(RightArm.CFrame*CF(0,-1,0).p,Mouse.Hit.p) | |
929 | CreateSound(FIREBALLSOUND,FIREBALL,6,1,false) | |
930 | for i = 1, 250 do | |
931 | Swait() | |
932 | local HIT,HITPOS,NORMAL = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, 2, Character) | |
933 | FIREBALL.CFrame = FIREBALL.CFrame*CF(0,0,-2) | |
934 | if HIT then | |
935 | CreateSound(EXPLOSIONSMALLSOUND,FIREBALL,10,1,false) | |
936 | local FIELD = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Fire", VT(75,0,75), true) | |
937 | local FIELD2 = CreatePart(3, Effects, "Neon", 0, 1, BRICKC("Pearl"), "Fire", VT(75,0,75), true) | |
938 | FIELD.CFrame = CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(0), RAD(0)) | |
939 | FIELD2.CFrame = CF(HITPOS,HITPOS+NORMAL) * ANGLES(RAD(90), RAD(45), RAD(0)) | |
940 | coroutine.resume(coroutine.create(function() | |
941 | for i = 1, 15 do | |
942 | wait(1) | |
943 | ApplyAoE(FIELD.Position,FIELD.Size.X/2,5,15,0,false,{SHAKE = 4, TIMER = 65, DOESFADE = true}) | |
944 | end | |
945 | Debris:AddItem(FIELD,5) | |
946 | Debris:AddItem(FIELD2,5) | |
947 | end)) | |
948 | break | |
949 | end | |
950 | end | |
951 | Debris:AddItem(FIREBALL,7) | |
952 | end)) | |
953 | end | |
954 | end | |
955 | wait(0.3) | |
956 | ATTACK = false | |
957 | Rooted = false | |
958 | end | |
959 | ||
960 | function Shroud() | |
961 | if Mouse.Target ~= nil then | |
962 | if Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") or Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
963 | local HUM = Mouse.Target.Parent:FindFirstChildOfClass("Humanoid") or Mouse.Target.Parent.Parent:FindFirstChildOfClass("Humanoid") | |
964 | local TORSO = HUM.Parent:FindFirstChild("HumanoidRootPart") or HUM.Parent:FindFirstChild("Torso") or HUM.Parent:FindFirstChild("UpperTorso") | |
965 | if TORSO and HUM.Health > 0 then | |
966 | local DISTANCE = (RootPart.Position-TORSO.Position).Magnitude | |
967 | if DISTANCE < 100 then | |
968 | ATTACK = true | |
969 | POSEIDON = false | |
970 | Rooted = true | |
971 | local GYRO = IT("BodyGyro",RootPart) | |
972 | GYRO.D = 20 | |
973 | GYRO.P = 4000 | |
974 | GYRO.MaxTorque = VT(40000,40000,40000) | |
975 | local POSITION = IT("BodyPosition",RootPart) | |
976 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
977 | POSITION.D = 450 | |
978 | POSITION.P = 40000 | |
979 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
980 | local TARGETTING = true | |
981 | local HIT = false | |
982 | ||
983 | CreateSound(CHARGE,Torso,6,1,false) | |
984 | coroutine.resume(coroutine.create(function() | |
985 | repeat | |
986 | GYRO.CFrame = CF(RootPart.Position,TORSO.Position) | |
987 | Swait() | |
988 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
989 | 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) | |
990 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
991 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
992 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
993 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
994 | until TARGETTING == false | |
995 | repeat | |
996 | GYRO.CFrame = CF(RootPart.Position,TORSO.Position) | |
997 | POSITION.Position = CF(RootPart.Position,TORSO.Position)*CF(0,0,-5).p | |
998 | DISTANCE = (RootPart.Position-TORSO.Position).Magnitude | |
999 | Swait() | |
1000 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1001 | 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) | |
1002 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1003 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1004 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-15), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1005 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(20), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1006 | until HIT == true | |
1007 | POSITION:remove() | |
1008 | GYRO:remove() | |
1009 | end)) | |
1010 | wait(0.5) | |
1011 | repeat wait() until HOLD == true | |
1012 | for _, c in pairs(Character:GetChildren()) do | |
1013 | if c:IsA("BasePart") then | |
1014 | ||
1015 | end | |
1016 | end | |
1017 | for _, c in pairs(Character:GetChildren()) do | |
1018 | if c:IsA("BasePart") then | |
1019 | c.Transparency = 1 | |
1020 | end | |
1021 | end | |
1022 | TARGETTING = false | |
1023 | for i = 1, 100 do | |
1024 | wait() | |
1025 | if DISTANCE < 5 or DISTANCE >= 200 then | |
1026 | break | |
1027 | end | |
1028 | end | |
1029 | HIT = true | |
1030 | end | |
1031 | for _, c in pairs(HUM.Parent:GetChildren()) do | |
1032 | end | |
1033 | end | |
1034 | CreateSound(FIREBALLSOUND,Torso,6,1,false) | |
1035 | RootPart.CFrame = TORSO.CFrame | |
1036 | local WELD = weldBetween(RootPart,TORSO) | |
1037 | repeat wait() until HOLD == true | |
1038 | CreateSound(416328540,Torso,6,1,false) | |
1039 | WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
1040 | local bv = Instance.new("BodyVelocity") | |
1041 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1042 | bv.velocity = CF(TORSO.Position,TORSO.Position+VT(0,15,0)).lookVector*125 | |
1043 | bv.Parent = TORSO | |
1044 | for i = 1, 70 do | |
1045 | wait(0.1) | |
1046 | if TORSO.Parent == nil then | |
1047 | break | |
1048 | end | |
1049 | WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
1050 | end | |
1051 | UNANCHOR = false | |
1052 | bv:remove() | |
1053 | wait(1) | |
1054 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(45,1,45), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1055 | CreateSound(FIREBALLSOUND,Torso,6,1,false) | |
1056 | UNANCHOR = true | |
1057 | local bv = Instance.new("BodyVelocity") | |
1058 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1059 | bv.velocity = CF(TORSO.Position,TORSO.Position-VT(0,15,0)).lookVector*450 | |
1060 | bv.Parent = TORSO | |
1061 | local LANDED = false | |
1062 | for i = 1, 500 do | |
1063 | wait() | |
1064 | Ignore = {Character,HUM.Parent} | |
1065 | WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.5, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
1066 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
1067 | local HITFLOOR = CastProperRay(TORSO.Position, TORSO.Position-VT(0,1,0), 10*(TORSO.Size.Y), Ignore) | |
1068 | if HITFLOOR or FULLREGEN == true then | |
1069 | LANDED = true | |
1070 | break | |
1071 | end | |
1072 | if TORSO.Parent == nil then | |
1073 | break | |
1074 | end | |
1075 | end | |
1076 | if TORSO.Parent ~= nil then | |
1077 | UNANCHOR = false | |
1078 | bv:remove() | |
1079 | wait(1) | |
1080 | WACKYEFFECT({Time = 35, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(45,1,45), Transparency = 0.2, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(180),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Dark indigo".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1081 | CreateSound(FIREBALLSOUND,Torso,6,1,false) | |
1082 | UNANCHOR = true | |
1083 | local bv = Instance.new("BodyVelocity") | |
1084 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
1085 | bv.velocity = CF(TORSO.Position,TORSO.Position-VT(0,15,0)).lookVector*450 | |
1086 | bv.Parent = TORSO | |
1087 | local LANDED = false | |
1088 | for i = 1, 500 do | |
1089 | wait() | |
1090 | Ignore = {Character,HUM.Parent} | |
1091 | WACKYEFFECT({Time = 15, EffectType = "Swirl", Size = VT(5,15,5), Size2 = VT(30,20,30), Transparency = 0.9, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Really black".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
1092 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
1093 | local HITFLOOR = CastProperRay(TORSO.Position, TORSO.Position-VT(0,1,0), 10*(TORSO.Size.Y), Ignore) | |
1094 | if HITFLOOR or FULLREGEN == true then | |
1095 | LANDED = true | |
1096 | break | |
1097 | end | |
1098 | if TORSO.Parent == nil then | |
1099 | break | |
1100 | end | |
1101 | end | |
1102 | bv:remove() | |
1103 | if LANDED == true then | |
1104 | UNANCHOR = false | |
1105 | for i = 1, 10 do | |
1106 | ApplyAoE(TORSO.Position+VT(0,1,0),10+(2*i),15,15,45,true,{SHAKE = 4, TIMER = 65, DOESFADE = true}) | |
1107 | end | |
1108 | CreateSound(EXPLOSIONLARGESOUND,TORSO,10,1,false) | |
1109 | CreateSound(EXPLOSIONSMALLSOUND,TORSO,10,1,false) | |
1110 | for i = 1, 15 do | |
1111 | WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(70,70,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(TORSO.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1112 | end | |
1113 | WELD:remove() | |
1114 | wait(0.3) | |
1115 | UNANCHOR = true | |
1116 | else | |
1117 | WELD:remove() | |
1118 | end | |
1119 | end | |
1120 | end | |
1121 | for _, c in pairs(Character:GetChildren()) do | |
1122 | if c:IsA("BasePart") and c ~= RootPart then | |
1123 | c.Transparency = 0 | |
1124 | end | |
1125 | end | |
1126 | RootPart.Velocity = VT(0,0,0) | |
1127 | ATTACK = false | |
1128 | Rooted = false | |
1129 | end | |
1130 | end | |
1131 | ||
1132 | function Spitter() | |
1133 | ATTACK = true | |
1134 | Rooted = true | |
1135 | local GYRO = IT("BodyGyro",RootPart) | |
1136 | GYRO.D = 20 | |
1137 | GYRO.P = 4000 | |
1138 | GYRO.MaxTorque = VT(40000,40000,40000) | |
1139 | local POSITION = IT("BodyPosition",RootPart) | |
1140 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
1141 | POSITION.D = 450 | |
1142 | POSITION.P = 40000 | |
1143 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1144 | CreateSound(CHARGE,RightArm,6,0.8,false) | |
1145 | coroutine.resume(coroutine.create(function() | |
1146 | repeat | |
1147 | Swait() | |
1148 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
1149 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) | |
1150 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) | |
1151 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1152 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1153 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1154 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1155 | until ATTACK == false | |
1156 | GYRO:remove() | |
1157 | POSITION:remove() | |
1158 | end)) | |
1159 | local FIREBALL = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Alder"), "Orb", VT(0,0,0), true) | |
1160 | MakeForm(FIREBALL,"Ball") | |
1161 | FIREBALL.CFrame = RightArm.CFrame*CF(0,-1,0) | |
1162 | local CORE = IT("Attachment",FIREBALL) | |
1163 | local LOOP = 0 | |
1164 | repeat | |
1165 | Swait() | |
1166 | LOOP = LOOP + 1 | |
1167 | if LOOP == 20 then | |
1168 | LOOP = 0 | |
1169 | WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X,FIREBALL.Size.X/2,FIREBALL.Size.X)*3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = FIREBALL.Position-VT(0,FIREBALL.Size.Y/4,0), RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
1170 | end | |
1171 | if FIREBALL.Size.X < 20 then | |
1172 | FIREBALL.Size = FIREBALL.Size + VT(0.1,0.1,0.1) | |
1173 | end | |
1174 | FIREBALL.CFrame = RightArm.CFrame*CF(0,-1-FIREBALL.Size.Z/2,0) | |
1175 | until KEYHOLD == false and FIREBALL.Size.X >= 10 | |
1176 | CreateSound(FIREBALLSOUND,FIREBALL,10,0.8,false) | |
1177 | coroutine.resume(coroutine.create(function() | |
1178 | FIREBALL.CFrame = CF(FIREBALL.Position,Mouse.Hit.p) | |
1179 | local RANGE = 75 | |
1180 | for i = 1, 600 do | |
1181 | LOOP = LOOP + 1 | |
1182 | if LOOP == 20 then | |
1183 | LOOP = 0 | |
1184 | ApplyAoE(FIREBALL.Position,FIREBALL.Size.X*5,5,25,0,false) | |
1185 | WACKYEFFECT({Time = 45, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X,FIREBALL.Size.X/2,FIREBALL.Size.X)*3, Transparency = 0.5, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0)), MoveToPos = FIREBALL.Position-VT(0,FIREBALL.Size.Y/4,0), RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = nil, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
1186 | end | |
1187 | Swait() | |
1188 | FIREBALL.CFrame = CF(FIREBALL.Position,FIREBALL.CFrame*CF(0,-0.001,-1).p)*CF(0,0,-0.2) | |
1189 | local HIT,HITPOS,NORMAL = Raycast(FIREBALL.Position, FIREBALL.CFrame.lookVector, FIREBALL.Size.X/2.5, Character) | |
1190 | if HIT then | |
1191 | ApplyAoE(FIREBALL.Position,FIREBALL.Size.X*12,75,90,375,true,{SHAKE = 4, TIMER = 65, DOESFADE = true}) | |
1192 | CreateSound(EXPLOSIONLARGESOUND,FIREBALL,10,1,false) | |
1193 | CreateSound(EXPLOSIONSMALLSOUND,FIREBALL,10,1,false) | |
1194 | for i = 1, 3 do | |
1195 | WACKYEFFECT({Time = 40, EffectType = "Sphere", Size = VT(0,0,0), Size2 = FIREBALL.Size*MRANDOM(18,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
1196 | end | |
1197 | for i = 1, 3 do | |
1198 | WACKYEFFECT({Time = 60, EffectType = "Sphere", Size = VT(0,0,0), Size2 = FIREBALL.Size*MRANDOM(18,25), Transparency = 0, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
1199 | end | |
1200 | for i = 1, 15 do | |
1201 | WACKYEFFECT({Time = 40+(i*5), EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(FIREBALL.Size.X*10,FIREBALL.Size.X*10,0), Transparency = 0.8, Transparency2 = 1, CFrame = CF(FIREBALL.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1202 | end | |
1203 | break | |
1204 | end | |
1205 | end | |
1206 | for i = 1, 10 do | |
1207 | Swait() | |
1208 | FIREBALL.Mesh.Scale = FIREBALL.Mesh.Scale - VT(0.1,0.1,0.1) | |
1209 | end | |
1210 | Debris:AddItem(FIREBALL,5) | |
1211 | end)) | |
1212 | wait(0.5) | |
1213 | ATTACK = false | |
1214 | Rooted = false | |
1215 | end | |
1216 | ||
1217 | function Devastor() | |
1218 | ATTACK = true | |
1219 | Rooted = true | |
1220 | local POSITION = IT("BodyPosition",RootPart) | |
1221 | POSITION.Position = RootPart.Position+VT(0,2,0) | |
1222 | POSITION.D = 450 | |
1223 | POSITION.P = 40000 | |
1224 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1225 | CreateSound(CHARGE,Torso,6,1,false) | |
1226 | local NEWANIM = false | |
1227 | coroutine.resume(coroutine.create(function() | |
1228 | repeat | |
1229 | Swait() | |
1230 | 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) | |
1231 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1232 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1233 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.75, 0) * ANGLES(RAD(170), RAD(0), RAD(12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1234 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1235 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1236 | until ATTACK == false or NEWANIM == true | |
1237 | if NEWANIM == true then | |
1238 | local GYRO = IT("BodyGyro",RootPart) | |
1239 | GYRO.D = 20 | |
1240 | GYRO.P = 4000 | |
1241 | GYRO.MaxTorque = VT(40000,40000,40000) | |
1242 | repeat | |
1243 | Swait() | |
1244 | GYRO.CFrame = CF(RootPart.Position,Mouse.Hit.p) | |
1245 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(24)), 2 / Animation_Speed) | |
1246 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-24)), 1 / Animation_Speed) | |
1247 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.75, -0.3) * ANGLES(RAD(90), RAD(0), RAD(24)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1248 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.75, 0) * ANGLES(RAD(-25), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1249 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1250 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1251 | until ATTACK == false | |
1252 | GYRO:remove() | |
1253 | end | |
1254 | POSITION:remove() | |
1255 | end)) | |
1256 | local ORB = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("Alder"), "Orb", VT(0,0,0), true) | |
1257 | MakeForm(ORB,"Ball") | |
1258 | ORB.CFrame = CF(RootPart.Position+VT(0,8,0)) | |
1259 | local A = IT("Attachment",ORB) | |
1260 | local LOOP = 0 | |
1261 | for i = 1, 200 do | |
1262 | Swait() | |
1263 | LOOP = LOOP + 1 | |
1264 | if LOOP >= 30 then | |
1265 | LOOP = 0 | |
1266 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1267 | end | |
1268 | ORB.Size = ORB.Size + VT(0.2,0.2,0.2) | |
1269 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
1270 | end | |
1271 | RightArm.Transparency = 1 | |
1272 | LeftArm.Transparency = 1 | |
1273 | for _, c in pairs(Character:GetChildren()) do | |
1274 | if c:IsA("BasePart") then | |
1275 | end | |
1276 | end | |
1277 | CreateSound(CHARGE,Torso,6,0.5,false) | |
1278 | for i = 1, 200 do | |
1279 | Swait() | |
1280 | LOOP = LOOP + 1 | |
1281 | if LOOP >= 30 then | |
1282 | LOOP = 0 | |
1283 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1284 | end | |
1285 | ORB.Size = ORB.Size + VT(0.2,0.2,0.2) | |
1286 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
1287 | end | |
1288 | for _, c in pairs(Character:GetChildren()) do | |
1289 | if c:IsA("BasePart") then | |
1290 | c.Transparency = 1 | |
1291 | end | |
1292 | end | |
1293 | for i = 1, 400 do | |
1294 | Swait() | |
1295 | LOOP = LOOP + 1 | |
1296 | if LOOP >= 30 then | |
1297 | LOOP = 0 | |
1298 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(ORB.Size.X,ORB.Size.X/5,ORB.Size.X), Transparency = 0, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3.5,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1299 | end | |
1300 | ORB.Size = ORB.Size + VT(0.2,0.2,0.2) | |
1301 | ORB.CFrame = CF(RootPart.Position+VT(0,8+(ORB.Size.Y/2),0)) | |
1302 | end | |
1303 | wait(0.5) | |
1304 | CreateSound(FIREBALLSOUND,Effects,4,1,false) | |
1305 | coroutine.resume(coroutine.create(function() | |
1306 | ORB.CFrame = CF(ORB.Position,Mouse.Hit.p) | |
1307 | for i = 1, 1200 do | |
1308 | Swait() | |
1309 | ORB.CFrame = ORB.CFrame*CF(0,0,-1) | |
1310 | local HIT,HITPOS = Raycast(ORB.Position, ORB.CFrame.lookVector, ORB.Size.X/2.5, Character) | |
1311 | if HIT then | |
1312 | break | |
1313 | end | |
1314 | end | |
1315 | for i = 1, 6 do | |
1316 | ApplyAoE(ORB.Position,ORB.Size.X*10,75,90,375,true,{SHAKE = 4, TIMER = 65, DOESFADE = true}) | |
1317 | CreateSound(EXPLOSIONLARGESOUND,Effects,2,1,false) | |
1318 | CreateSound(EXPLOSIONSMALLSOUND,Effects,4,1,false) | |
1319 | for i = 1, 3 do | |
1320 | WACKYEFFECT({Time = 160, EffectType = "Sphere", Size = VT(0,0,0), Size2 = ORB.Size*MRANDOM(5,20), Transparency = 0.6, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Alder".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
1321 | end | |
1322 | for i = 1, 3 do | |
1323 | WACKYEFFECT({Time = 120, EffectType = "Sphere", Size = VT(0,0,0), Size2 = ORB.Size*MRANDOM(5,20), Transparency = 0.6, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,45), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = BRICKC"Royal purple".Color, SoundID = EXPLOSIONMEDIUMSOUND, SoundPitch = MRANDOM(8,12)/10, SoundVolume = MRANDOM(5,10)}) | |
1324 | end | |
1325 | for i = 1, 15 do | |
1326 | WACKYEFFECT({Time = 120+(i*5), EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(ORB.Size.X*30,15,ORB.Size.X*30), Transparency = 0.8, Transparency2 = 1, CFrame = CF(ORB.Position)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))), MoveToPos = nil, RotationX = MRANDOM(-15,15)/15, RotationY = MRANDOM(-15,15)/15, RotationZ = MRANDOM(-15,15)/15, Material = "Neon", Color = BRICKC"Steel blue".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1327 | end | |
1328 | wait(1) | |
1329 | end | |
1330 | for i = 1, 10 do | |
1331 | Swait() | |
1332 | ORB.Mesh.Scale = ORB.Mesh.Scale - VT(0.1,0.1,0.1) | |
1333 | end | |
1334 | Debris:AddItem(ORB,5) | |
1335 | end)) | |
1336 | wait(1) | |
1337 | FullBodyRegen() | |
1338 | ATTACK = false | |
1339 | Rooted = false | |
1340 | end | |
1341 | ||
1342 | --//=================================\\ | |
1343 | --|| MISC | |
1344 | --\\=================================// | |
1345 | ||
1346 | function Jupiter() | |
1347 | ATTACK = true | |
1348 | Rooted = true | |
1349 | local POSITION = IT("BodyPosition",RootPart) | |
1350 | POSITION.Position = RootPart.Position+VT(0,0.2,0) | |
1351 | POSITION.D = 450 | |
1352 | POSITION.P = 40000 | |
1353 | POSITION.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1354 | coroutine.resume(coroutine.create(function() | |
1355 | repeat | |
1356 | Swait() | |
1357 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -1) * ANGLES(RAD(0), RAD(-5), RAD(-15)), 2 / Animation_Speed) | |
1358 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(15), RAD(0), RAD(15)), 0.5 / Animation_Speed) | |
1359 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.55 + 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1360 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1361 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35, -0.25) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1362 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1.5, -0.4) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(90)), 2 / Animation_Speed) | |
1363 | until ATTACK == false | |
1364 | end)) | |
1365 | wait(0.5) | |
1366 | repeat wait() until KEYHOLD == false | |
1367 | WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(35,4,35), Transparency = 0.3, Transparency2 = 1, CFrame = CF(RootPart.Position-VT(0,3,0)), MoveToPos = nil, RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Shamrock".Color, SoundID = 431105970, SoundPitch = 1, SoundVolume = 10}) | |
1368 | POSITION:remove() | |
1369 | RootPart.Velocity = VT(0,150,0) | |
1370 | ATTACK = false | |
1371 | Rooted = false | |
1372 | end | |
1373 | ||
1374 | function Taunt() | |
1375 | ATTACK = true | |
1376 | Rooted = true | |
1377 | local TAUNT = CreateSound(159882303,Torso,10,1,false) | |
1378 | coroutine.resume(coroutine.create(function() | |
1379 | repeat | |
1380 | Swait() | |
1381 | 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) | |
1382 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1383 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1384 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1385 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1386 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1387 | until ATTACK == false | |
1388 | end)) | |
1389 | repeat wait() until TAUNT.Playing == false | |
1390 | ATTACK = false | |
1391 | Rooted = false | |
1392 | end | |
1393 | ||
1394 | --//=================================\\ | |
1395 | --|| ASSIGN THINGS TO KEYS | |
1396 | --\\=================================// | |
1397 | ||
1398 | function MouseDown(Mouse) | |
1399 | HOLD = true | |
1400 | if ATTACK == false then | |
1401 | end | |
1402 | end | |
1403 | ||
1404 | function MouseUp(Mouse) | |
1405 | HOLD = false | |
1406 | end | |
1407 | ||
1408 | local MUSIC = CreateSound(285883918,Character,3,1,true) | |
1409 | ||
1410 | function KeyDown(Key) | |
1411 | KEYHOLD = true | |
1412 | if ATTACK == false and FULLREGEN == false then | |
1413 | if Key == "z" then | |
1414 | Fireball() | |
1415 | end | |
1416 | ||
1417 | if Key == "v" and SEARING == false then | |
1418 | SearingOrb() | |
1419 | end | |
1420 | ||
1421 | if Key == "q" and SEARING == false then | |
1422 | Shroud() | |
1423 | end | |
1424 | ||
1425 | if Key == "x" and SEARING == false then | |
1426 | Jupiter() | |
1427 | wait(2) | |
1428 | Devastor() | |
1429 | end | |
1430 | ||
1431 | if Key == "e" then | |
1432 | Spitter() | |
1433 | end | |
1434 | ||
1435 | if Key == "j" then | |
1436 | Jupiter() | |
1437 | end | |
1438 | ||
1439 | if Key == "t" and SEARING == false then | |
1440 | Taunt() | |
1441 | end | |
1442 | ||
1443 | if Key == "h" then | |
1444 | if POSEIDON == false then | |
1445 | POSEIDON = true | |
1446 | CreateSound(POSEIDONSOUND,Torso,5,MRANDOM(8,12)/10,false) | |
1447 | else | |
1448 | POSEIDON = false | |
1449 | end | |
1450 | end | |
1451 | end | |
1452 | ||
1453 | if Key == "w" and ATTACK == false and SEARING == true and VALUE2 == false then | |
1454 | repeat | |
1455 | VALUE2 = true | |
1456 | Swait() | |
1457 | BODYPOS.Position = RootPart.CFrame*CF(0,0,-5).p | |
1458 | until KEYHOLD == false | |
1459 | VALUE2 = false | |
1460 | end | |
1461 | ||
1462 | if string.byte(Key) == 50 and ATTACK == false then | |
1463 | if Speed == 16 then | |
1464 | Speed = 45 | |
1465 | elseif Speed == 45 then | |
1466 | Speed = 16 | |
1467 | end | |
1468 | end | |
1469 | ||
1470 | if Key == "1" then | |
1471 | MUSIC:Play() | |
1472 | CHOSENSONG = CHOSENSONG + 1 | |
1473 | if CHOSENSONG > #SONGS then | |
1474 | CHOSENSONG = 1 | |
1475 | end | |
1476 | end | |
1477 | end | |
1478 | ||
1479 | function KeyUp(Key) | |
1480 | KEYHOLD = false | |
1481 | end | |
1482 | ||
1483 | Mouse.Button1Down:connect(function(NEWKEY) | |
1484 | MouseDown(NEWKEY) | |
1485 | end) | |
1486 | Mouse.Button1Up:connect(function(NEWKEY) | |
1487 | MouseUp(NEWKEY) | |
1488 | end) | |
1489 | Mouse.KeyDown:connect(function(NEWKEY) | |
1490 | KeyDown(NEWKEY) | |
1491 | end) | |
1492 | Mouse.KeyUp:connect(function(NEWKEY) | |
1493 | KeyUp(NEWKEY) | |
1494 | end) | |
1495 | ||
1496 | --//=================================\\ | |
1497 | --\\=================================// | |
1498 | ||
1499 | function unanchor() | |
1500 | if UNANCHOR == true then | |
1501 | for _, c in pairs(Character:GetChildren()) do | |
1502 | if c:IsA("BasePart") then | |
1503 | c.Anchored = false | |
1504 | end | |
1505 | end | |
1506 | else | |
1507 | for _, c in pairs(Character:GetChildren()) do | |
1508 | if c:IsA("BasePart") then | |
1509 | c.Anchored = true | |
1510 | end | |
1511 | end | |
1512 | end | |
1513 | end | |
1514 | ||
1515 | --//=================================\\ | |
1516 | --|| WRAP THE WHOLE SCRIPT UP | |
1517 | --\\=================================// | |
1518 | ||
1519 | Humanoid.Changed:connect(function(Jump) | |
1520 | if Jump == "Jump" and (Disable_Jump == true) then | |
1521 | Humanoid.Jump = false | |
1522 | end | |
1523 | end) | |
1524 | ||
1525 | local LOOP = 0 | |
1526 | ||
1527 | while true do | |
1528 | Swait() | |
1529 | if Character:FindFirstChildOfClass("Humanoid") == nil then | |
1530 | Humanoid = IT("Humanoid",Character) | |
1531 | end | |
1532 | Effects.Parent = Character | |
1533 | script.Parent = WEAPONGUI | |
1534 | ANIMATE.Parent = nil | |
1535 | for _,v in next, Humanoid:GetPlayingAnimationTracks() do | |
1536 | v:Stop(); | |
1537 | end | |
1538 | SINE = SINE + CHANGE | |
1539 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1540 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1541 | Ignore = {Torso,RootPart,RightLeg,LeftLeg,RightLeg,Head,RightArm,LeftArm,Effects} | |
1542 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
1543 | local HITFLOOR,HITPOS = CastProperRay(RootPart.Position, RootPart.Position-VT(0,15,0), 4, Ignore) | |
1544 | local WALKSPEEDVALUE = 5 | |
1545 | if SEARING == false then | |
1546 | if ANIM == "Walk" and TORSOVELOCITY > 1 and SEARING == false and Rooted == false then | |
1547 | if Humanoid.WalkSpeed <= 20 then | |
1548 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.05 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed) | |
1549 | 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) | |
1550 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * 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))), 0.5 / Animation_Speed) | |
1551 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.05 * 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))), 0.5 / Animation_Speed) | |
1552 | elseif SEARING == false and Humanoid.WalkSpeed > 20 and Rooted == false then | |
1553 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / (2*1.3)))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * 1 / Animation_Speed) | |
1554 | 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*1.3)))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1555 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), -0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed) | |
1556 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE*1.3) - 0.15 * COS(SINE / WALKSPEEDVALUE*(2*1.3)), 0.125 * COS(SINE / WALKSPEEDVALUE*1.3) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE*1.3)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(75 * COS(SINE / WALKSPEEDVALUE*1.3))), 0.5 / Animation_Speed) | |
1557 | end | |
1558 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or SEARING == true or Rooted == true then | |
1559 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1560 | 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) | |
1561 | 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) | |
1562 | 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) | |
1563 | end | |
1564 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1565 | ANIM = "Jump" | |
1566 | if ATTACK == false then | |
1567 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1568 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1569 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(-5)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1570 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-5), RAD(0), RAD(5)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1571 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1572 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1573 | end | |
1574 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1575 | ANIM = "Fall" | |
1576 | if ATTACK == false then | |
1577 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(8*COS(SINE / 6))), 1 / Animation_Speed) | |
1578 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(-8*COS(SINE / 6))), 1 / Animation_Speed) | |
1579 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(110)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1580 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(-110)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1581 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1582 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1583 | end | |
1584 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1585 | ANIM = "Idle" | |
1586 | if ATTACK == false then | |
1587 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.05 * COS(SINE / 12), 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(0), RAD(25)), 1 / Animation_Speed) | |
1588 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 1 / Animation_Speed) | |
1589 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.45, 0.70, 0.05) * ANGLES(RAD(-15 - 2 * COS(SINE / 12)), RAD(-25), RAD(-10 - 1 * COS(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1590 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.45, 0.70, 0.05) * ANGLES(RAD(-15 - 1 * COS(SINE / 12)), RAD(25), RAD(20 - 1 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1591 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(50), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1592 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(-2 + 2 * COS(SINE / 12)), RAD(-74), RAD(0)) * ANGLES(RAD(-2), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1593 | end | |
1594 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1595 | ANIM = "Walk" | |
1596 | if ATTACK == false then | |
1597 | if Humanoid.WalkSpeed <= 20 then | |
1598 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1599 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1600 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.85 / Animation_Speed) | |
1601 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.70, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.85 / Animation_Speed) | |
1602 | 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) | |
1603 | 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) | |
1604 | elseif Humanoid.WalkSpeed > 20 then | |
1605 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1606 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1607 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.70, 0) * ANGLES(RAD(35), RAD(35), RAD(0)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(2)) * RIGHTSHOULDERC0, 2 / Animation_Speed) | |
1608 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.70, 0) * ANGLES(RAD(35), RAD(-35), RAD(0)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE*1.3)), RAD(0), RAD(-2)) * LEFTSHOULDERC0, 2 / Animation_Speed) | |
1609 | RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(6)), 2 / Animation_Speed) | |
1610 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-6)), 2 / Animation_Speed) | |
1611 | end | |
1612 | end | |
1613 | end | |
1614 | elseif SEARING == true then | |
1615 | if APPLYGYRO == true then | |
1616 | if VALUE2 == false and DIRECTTURN == false then | |
1617 | if GYRO ~= nil then | |
1618 | GYRO.MaxTorque = VT(0,40000,0) | |
1619 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1620 | end | |
1621 | else | |
1622 | if GYRO ~= nil then | |
1623 | GYRO.MaxTorque = VT(80000,40000,80000) | |
1624 | GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p) | |
1625 | end | |
1626 | end | |
1627 | end | |
1628 | if VALUE2 == false and ATTACK == false then | |
1629 | ANIM = "IdleFlight" | |
1630 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed) | |
1631 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1632 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(0), RAD(-15), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed) | |
1633 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(0), RAD(15), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1634 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.5, -0.5) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1635 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1636 | elseif VALUE2 == true and ATTACK == false then | |
1637 | ANIM = "Flight" | |
1638 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 + 1 * SIN(SINE / 24)) * ANGLES(RAD(65), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1639 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 1 / Animation_Speed) | |
1640 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(15)) * RIGHTSHOULDERC0,1 / Animation_Speed) | |
1641 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-15)) * LEFTSHOULDERC0, 1 / Animation_Speed) | |
1642 | RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(-15), RAD(65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1643 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(-15), RAD(-65), RAD(0)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1644 | end | |
1645 | end | |
1646 | unanchor() | |
1647 | Humanoid.MaxHealth = "inf" | |
1648 | Humanoid.Health = "inf" | |
1649 | if Rooted == false then | |
1650 | Disable_Jump = false | |
1651 | Humanoid.WalkSpeed = Speed | |
1652 | elseif Rooted == true then | |
1653 | Disable_Jump = true | |
1654 | Humanoid.WalkSpeed = 0 | |
1655 | end | |
1656 | Regen() | |
1657 | if Head:FindFirstChild("face") then | |
1658 | Head.face.Texture = "rbxassetid://608798717" | |
1659 | Head.face.Transparency = Head.Transparency | |
1660 | end | |
1661 | for _, c in pairs(Character:GetDescendants()) do | |
1662 | if c.ClassName == "Attachment" and c ~= BACKATTACHMENT1 and c ~= BACKATTACHMENT2 and c.Parent.Parent ~= Effects then | |
1663 | c:remove() | |
1664 | end | |
1665 | if c and c.Parent then | |
1666 | if c.Name == "Handle" and c.Parent.ClassName == "Accessory" then | |
1667 | local ACCESSORY = c.Parent | |
1668 | c.Parent = Character | |
1669 | local REGENVALUE = IT("BoolValue",c) | |
1670 | REGENVALUE.Name = "IsRegening" | |
1671 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency,c.Size,c.Name,REGENVALUE}) | |
1672 | if c then | |
1673 | if c:FindFirstChild("HatAttachment") or c:FindFirstChild("FaceFrontAttachment") or c:FindFirstChild("HairAttachment") then | |
1674 | local WELD = weldBetween(Head,c) | |
1675 | table.insert(BODY,{WELD,c,nil,nil,nil,nil,nil,nil}) | |
1676 | else | |
1677 | local WELD = weldBetween(Torso,c) | |
1678 | table.insert(BODY,{WELD,c,nil,nil,nil,nil,nil,nil}) | |
1679 | end | |
1680 | end | |
1681 | ACCESSORY:remove() | |
1682 | end | |
1683 | end | |
1684 | end | |
1685 | for _, c in pairs(Character:GetChildren()) do | |
1686 | if SEARING == true and c:IsA("BasePart") then | |
1687 | c.Transparency = 1 | |
1688 | end | |
1689 | end | |
1690 | MUSIC.Parent = Character | |
1691 | MUSIC.SoundId = "rbxassetid://"..SONGS[CHOSENSONG] | |
1692 | MUSIC.Pitch = 1 | |
1693 | if CHOSENSONG ~= 5 then | |
1694 | MUSIC.Volume = 2 | |
1695 | else | |
1696 | MUSIC.Volume = 4 | |
1697 | end | |
1698 | MUSIC.Playing = true | |
1699 | if POSEIDON == true and FULLREGEN == false then | |
1700 | LOOP = LOOP + 1 | |
1701 | local FLOOR = CreatePart(3, SpecialEffects, "Neon", 0, 1, BRICKC("Pearl"), "Floor", VT(15,0,15), true) | |
1702 | FLOOR.CFrame = CF(HITPOS-VT(0,0.025,0)) | |
1703 | FLOOR.CanCollide = true | |
1704 | Debris:AddItem(FLOOR,0.2) | |
1705 | local FLOOR = CreatePart(3, SpecialEffects, "Neon", 0, 1, BRICKC("Pearl"), "Floor", VT(15,0,15), true) | |
1706 | FLOOR.CFrame = CF(HITPOS-VT(0,0.025,0))*ANGLES(RAD(0),RAD(45),RAD(0)) | |
1707 | FLOOR.CanCollide = true | |
1708 | Debris:AddItem(FLOOR,0.2) | |
1709 | if LOOP >= 5 then | |
1710 | LOOP = 0 | |
1711 | WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(5,0,5), Size2 = VT(15,1,15), Transparency = 0.7, Transparency2 = 1, CFrame = CF(HITPOS), MoveToPos = HITPOS+VT(0,0.45,0), RotationX = 0, RotationY = MRANDOM(-2,2)*15, RotationZ = 0, Material = "Neon", Color = BRICKC"Shamrock".Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil}) | |
1712 | end | |
1713 | end | |
1714 | RootJoint.Parent = RootPart | |
1715 | Humanoid.DisplayDistanceType = "None" | |
1716 | Humanoid.Name = "Searing Emperor" | |
1717 | end | |
1718 | ||
1719 | --//=================================\\ | |
1720 | --\\=================================// | |
1721 | ||
1722 | ||
1723 | ||
1724 | ||
1725 | ||
1726 | --//====================================================\\-- | |
1727 | --|| END OF SCRIPT | |
1728 | --\\====================================================//-- |