SHOW:
|
|
- or go back to the newest paste.
1 | coroutine.resume(coroutine.create(function() | |
2 | BillboardGui0 = Instance.new("BillboardGui") | |
3 | ImageLabel1 = Instance.new("ImageLabel") | |
4 | BillboardGui0.Name = "Healthbar" | |
5 | BillboardGui0.Size = UDim2.new(2, 0, 0.4, 0) | |
6 | BillboardGui0.AlwaysOnTop = true | |
7 | BillboardGui0.StudsOffset = Vector3.new(0, 5, 0) | |
8 | ImageLabel1.Parent = BillboardGui0 | |
9 | ImageLabel1.Transparency = 1 | |
10 | ImageLabel1.Size = UDim2.new(1, 0, 5, 0) | |
11 | ImageLabel1.BackgroundColor3 = Color3.new(1, 1, 1) | |
12 | ImageLabel1.BackgroundTransparency = 1 | |
13 | ImageLabel1.ImageTransparency = 1 | |
14 | ImageLabel1.Image = "rbxassetid://98053986" | |
15 | BillboardGui0.Parent = Torso | |
16 | end)) | |
17 | ||
18 | Player = game:GetService("Players").LocalPlayer | |
19 | PlayerGui = Player.PlayerGui | |
20 | Cam = workspace.CurrentCamera | |
21 | Backpack = Player.Backpack | |
22 | Character = Player.Character | |
23 | Humanoid = Character.Humanoid | |
24 | Mouse = Player:GetMouse() | |
25 | RootPart = Character["HumanoidRootPart"] | |
26 | Torso = Character["Torso"] | |
27 | Head = Character["Head"] | |
28 | RightArm = Character["Right Arm"] | |
29 | LeftArm = Character["Left Arm"] | |
30 | RightLeg = Character["Right Leg"] | |
31 | LeftLeg = Character["Left Leg"] | |
32 | RootJoint = RootPart["RootJoint"] | |
33 | Neck = Torso["Neck"] | |
34 | RightShoulder = Torso["Right Shoulder"] | |
35 | LeftShoulder = Torso["Left Shoulder"] | |
36 | RightHip = Torso["Right Hip"] | |
37 | LeftHip = Torso["Left Hip"] | |
38 | local sick = Instance.new("Sound",Character) | |
39 | sick.SoundId = "rbxassetid://27697743" | |
40 | sick.Looped = true | |
41 | sick.Pitch = 1 | |
42 | sick.Volume = 1 | |
43 | sick:Play() | |
44 | local sick2 = Instance.new("Sound",Character) | |
45 | sick2.SoundId = "rbxassetid://1149909908" | |
46 | sick2.Looped = true | |
47 | sick2.Pitch = 1 | |
48 | sick2.Volume = 10 | |
49 | Humanoid.DisplayDistanceType = "None" | |
50 | Player:ClearCharacterAppearance() | |
51 | ||
52 | IT = Instance.new | |
53 | CF = CFrame.new | |
54 | VT = Vector3.new | |
55 | RAD = math.rad | |
56 | C3 = Color3.new | |
57 | UD2 = UDim2.new | |
58 | BRICKC = BrickColor.new | |
59 | ANGLES = CFrame.Angles | |
60 | EULER = CFrame.fromEulerAnglesXYZ | |
61 | COS = math.cos | |
62 | ACOS = math.acos | |
63 | SIN = math.sin | |
64 | ASIN = math.asin | |
65 | ABS = math.abs | |
66 | MRANDOM = math.random | |
67 | FLOOR = math.floor | |
68 | ||
69 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
70 | local NEWMESH = IT(MESH) | |
71 | if MESH == "SpecialMesh" then | |
72 | NEWMESH.MeshType = MESHTYPE | |
73 | if MESHID ~= "nil" and MESHID ~= "" then | |
74 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
75 | end | |
76 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
77 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
78 | end | |
79 | end | |
80 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
81 | NEWMESH.Scale = SCALE | |
82 | NEWMESH.Parent = PARENT | |
83 | return NEWMESH | |
84 | end | |
85 | ||
86 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR) | |
87 | local NEWPART = IT("Part") | |
88 | NEWPART.formFactor = FORMFACTOR | |
89 | NEWPART.Reflectance = REFLECTANCE | |
90 | NEWPART.Transparency = TRANSPARENCY | |
91 | NEWPART.CanCollide = false | |
92 | NEWPART.Locked = true | |
93 | NEWPART.Anchored = true | |
94 | if ANCHOR == false then | |
95 | NEWPART.Anchored = false | |
96 | end | |
97 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
98 | NEWPART.Name = NAME | |
99 | NEWPART.Size = SIZE | |
100 | NEWPART.Position = Torso.Position | |
101 | NEWPART.Material = MATERIAL | |
102 | NEWPART:BreakJoints() | |
103 | NEWPART.Parent = PARENT | |
104 | return NEWPART | |
105 | end | |
106 | ||
107 | local naeeym2 = Instance.new("BillboardGui",Character) | |
108 | naeeym2.AlwaysOnTop = true | |
109 | naeeym2.Size = UDim2.new(5,35,5,35) | |
110 | naeeym2.StudsOffset = Vector3.new(0,1,0) | |
111 | naeeym2.Adornee = Character.Head | |
112 | naeeym2.Name = "Name" | |
113 | naeeym2.PlayerToHideFrom = Player | |
114 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
115 | tecks2.BackgroundTransparency = 1 | |
116 | tecks2.TextScaled = true | |
117 | tecks2.BorderSizePixel = 0 | |
118 | tecks2.Text = Player.Name..", the Galactic Wizard" | |
119 | tecks2.Font = "SciFi" | |
120 | tecks2.TextSize = 30 | |
121 | tecks2.TextStrokeTransparency = 0 | |
122 | tecks2.TextColor3 = Color3.new(0.5,0,0.5) | |
123 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
124 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
125 | tecks2.Parent = naeeym2 | |
126 | ||
127 | ||
128 | Class_Name = "Ravager.exe" | |
129 | Weapon_Name = "Add-ons" | |
130 | ||
131 | Custom_Colors = { | |
132 | Custom_Color_1 = BRICKC("Institutional white"); --1st color for the weapon. | |
133 | Custom_Color_2 = BRICKC("Institutional white"); --2nd color for the weapon. | |
134 | ||
135 | Custom_Color_3 = BRICKC("Institutional white"); --Color for the abilities. | |
136 | Custom_Color_4 = BRICKC("Institutional white"); --Color for the secondary bar. | |
137 | Custom_Color_5 = BRICKC("Institutional white"); --Color for the mana bar. | |
138 | Custom_Color_6 = BRICKC("Institutional white"); --Color for the health bar. | |
139 | Custom_Color_7 = BRICKC("Institutional white"); --Color for the stun bar. | |
140 | ||
141 | Custom_Color_8 = BRICKC("Institutional white"); --Background for the mana bar. | |
142 | Custom_Color_9 = BRICKC("Institutional white"); --Background for the secondary mana bar. | |
143 | Custom_Color_10 = BRICKC("Institutional white"); --Background for the stun bar. | |
144 | Custom_Color_11 = BRICKC("Institutional white"); --Background for the health bar. | |
145 | Custom_Color_12 = BRICKC("Institutional white"); --Background for the abilities. | |
146 | } | |
147 | ||
148 | ||
149 | Player_Size = 1 --Size of the player. | |
150 | Animation_Speed = 3 | |
151 | Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60) | |
152 | ||
153 | local Speed = 35 | |
154 | local Effects2 = {} | |
155 | ||
156 | ||
157 | ||
158 | local function weldBetween(a, b) | |
159 | local weldd = Instance.new("ManualWeld") | |
160 | weldd.Part0 = a | |
161 | weldd.Part1 = b | |
162 | weldd.C0 = CFrame.new() | |
163 | weldd.C1 = b.CFrame:inverse() * a.CFrame | |
164 | weldd.Parent = a | |
165 | return weldd | |
166 | end | |
167 | ||
168 | function createaccessory(attachmentpart,mesh,texture,scale,offset,color) | |
169 | local acs = Instance.new("Part") | |
170 | acs.CanCollide = false | |
171 | acs.Anchored = false | |
172 | acs.Size = Vector3.new(0,0,0) | |
173 | acs.CFrame = attachmentpart.CFrame | |
174 | acs.Parent = attachmentpart | |
175 | acs.BrickColor = color | |
176 | local meshs = Instance.new("SpecialMesh") | |
177 | meshs.MeshId = mesh | |
178 | meshs.TextureId = texture | |
179 | meshs.Parent = acs | |
180 | meshs.Scale = scale | |
181 | meshs.Offset = offset | |
182 | weldBetween(attachmentpart,acs) | |
183 | end | |
184 | ||
185 | function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE) | |
186 | if TYPE == "Gem" then | |
187 | local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
188 | acs.Anchored = false | |
189 | acs.CanCollide = false | |
190 | acs.CFrame = PART.CFrame | |
191 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET) | |
192 | weldBetween(PART,acs) | |
193 | elseif TYPE == "Skull" then | |
194 | local acs = CreatePart(3, PART, "Plastic", 0, 0, COLOR, "Part", VT(0,0,0)) | |
195 | acs.Anchored = false | |
196 | acs.CanCollide = false | |
197 | acs.CFrame = PART.CFrame | |
198 | local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET) | |
199 | weldBetween(PART,acs) | |
200 | elseif TYPE == "Eye" then | |
201 | local acs = CreatePart(3, PART, "Neon", 0, 0, COLOR, "Part", VT(0,0,0)) | |
202 | acs.Anchored = false | |
203 | acs.CanCollide = false | |
204 | acs.CFrame = PART.CFrame | |
205 | local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET) | |
206 | weldBetween(PART,acs) | |
207 | end | |
208 | end | |
209 | ||
210 | createaccessory(Head,"http://www.roblox.com/asset/?id=102724569","http://www.roblox.com/asset/?id=86471921",VT(1,1,1),VT(0,1,0),BRICKC"Pearl") | |
211 | ||
212 | --//=================================\\ | |
213 | --|| USEFUL VALUES | |
214 | --\\=================================// | |
215 | ||
216 | local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
217 | local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) | |
218 | local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) | |
219 | local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) | |
220 | local CO1 = 0 | |
221 | local CO2 = 0 | |
222 | local CO3 = 0 | |
223 | local CO4 = 0 | |
224 | local CHANGEDEFENSE = 0 | |
225 | local CHANGEDAMAGE = 0 | |
226 | local CHANGEMOVEMENT = 0 | |
227 | local ANIM = "Idle" | |
228 | local ATTACK = false | |
229 | local EQUIPPED = false | |
230 | local HOLD = false | |
231 | local COMBO = 1 | |
232 | local LASTPOINT = nil | |
233 | local BLCF = nil | |
234 | local SCFR = nil | |
235 | local KEYHOLD = false | |
236 | local STAGGERHITANIM = false | |
237 | local STAGGERANIM = false | |
238 | local STUNANIM = false | |
239 | local CRITCHANCENUMBER = 0 | |
240 | local IDLENUMBER = 0 | |
241 | local DONUMBER = 0 | |
242 | local HANDIDLE = false | |
243 | local Rooted = false | |
244 | local SINE = 0 | |
245 | local CHANGE = 2 / Animation_Speed | |
246 | local WALKINGANIM = false | |
247 | local WALK = 0 | |
248 | local DANCE = false | |
249 | local DISABLEJUMPING = false | |
250 | local ROBLOXIDLEANIMATION = IT("Animation") | |
251 | ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation" | |
252 | ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=250720232" | |
253 | --ROBLOXIDLEANIMATION.Parent = Humanoid | |
254 | local WEAPONGUI = IT("ScreenGui", PlayerGui) | |
255 | WEAPONGUI.Name = "Weapon GUI" | |
256 | local Weapon = IT("Model") | |
257 | Weapon.Name = Weapon_Name | |
258 | local Effects = IT("Folder", Weapon) | |
259 | Effects.Name = "Effects" | |
260 | local Bombs = IT("Folder", Weapon) | |
261 | Bombs.Name = "BombsHolder" | |
262 | local ANIMATOR = Humanoid.Animator | |
263 | local ANIMATE = Character.Animate | |
264 | local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"} | |
265 | local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"} | |
266 | local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"} | |
267 | local HITBLOCKSOUNDS = {"199148933", "199148947"} | |
268 | local UNANCHOR = true | |
269 | local MAGICPARTICLE = "977861496" | |
270 | ||
271 | local SKILLTEXTCOLOR = C3(0,0,0) | |
272 | ||
273 | ||
274 | ||
275 | ArtificialHB = Instance.new("BindableEvent", script) | |
276 | ArtificialHB.Name = "ArtificialHB" | |
277 | ||
278 | script:WaitForChild("ArtificialHB") | |
279 | ||
280 | frame = Frame_Speed | |
281 | tf = 0 | |
282 | allowframeloss = false | |
283 | tossremainder = false | |
284 | lastframe = tick() | |
285 | script.ArtificialHB:Fire() | |
286 | ||
287 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
288 | tf = tf + s | |
289 | if tf >= frame then | |
290 | if allowframeloss then | |
291 | script.ArtificialHB:Fire() | |
292 | lastframe = tick() | |
293 | else | |
294 | for i = 1, math.floor(tf / frame) do | |
295 | script.ArtificialHB:Fire() | |
296 | end | |
297 | lastframe = tick() | |
298 | end | |
299 | if tossremainder then | |
300 | tf = 0 | |
301 | else | |
302 | tf = tf - frame * math.floor(tf / frame) | |
303 | end | |
304 | end | |
305 | end) | |
306 | ||
307 | ||
308 | ||
309 | ||
310 | ||
311 | ||
312 | ||
313 | function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS) | |
314 | return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS) | |
315 | end | |
316 | ||
317 | function PositiveAngle(NUMBER) | |
318 | if NUMBER >= 0 then | |
319 | NUMBER = 0 | |
320 | end | |
321 | return NUMBER | |
322 | end | |
323 | ||
324 | function NegativeAngle(NUMBER) | |
325 | if NUMBER <= 0 then | |
326 | NUMBER = 0 | |
327 | end | |
328 | return NUMBER | |
329 | end | |
330 | ||
331 | function Swait(NUMBER) | |
332 | if NUMBER == 0 or NUMBER == nil then | |
333 | ArtificialHB.Event:wait() | |
334 | else | |
335 | for i = 1, NUMBER do | |
336 | ArtificialHB.Event:wait() | |
337 | end | |
338 | end | |
339 | end | |
340 | ||
341 | function QuaternionFromCFrame(cf) | |
342 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
343 | local trace = m00 + m11 + m22 | |
344 | if trace > 0 then | |
345 | local s = math.sqrt(1 + trace) | |
346 | local recip = 0.5 / s | |
347 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
348 | else | |
349 | local i = 0 | |
350 | if m11 > m00 then | |
351 | i = 1 | |
352 | end | |
353 | if m22 > (i == 0 and m00 or m11) then | |
354 | i = 2 | |
355 | end | |
356 | if i == 0 then | |
357 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
358 | local recip = 0.5 / s | |
359 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
360 | elseif i == 1 then | |
361 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
362 | local recip = 0.5 / s | |
363 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
364 | elseif i == 2 then | |
365 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
366 | local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
367 | end | |
368 | end | |
369 | end | |
370 | ||
371 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
372 | local xs, ys, zs = x + x, y + y, z + z | |
373 | local wx, wy, wz = w * xs, w * ys, w * zs | |
374 | local xx = x * xs | |
375 | local xy = x * ys | |
376 | local xz = x * zs | |
377 | local yy = y * ys | |
378 | local yz = y * zs | |
379 | local zz = z * zs | |
380 | 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)) | |
381 | end | |
382 | ||
383 | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) | |
384 | local fp=IT("Part") | |
385 | fp.formFactor=formfactor | |
386 | fp.Parent=parent | |
387 | fp.Reflectance=reflectance | |
388 | fp.Transparency=transparency | |
389 | fp.CanCollide=false | |
390 | fp.Locked=true | |
391 | fp.BrickColor=BrickColor.new(tostring(brickcolor)) | |
392 | fp.Name=name | |
393 | fp.Size=size | |
394 | fp.Position=Character.Torso.Position | |
395 | NoOutlines(fp) | |
396 | fp.Material=material | |
397 | fp:BreakJoints() | |
398 | return fp | |
399 | end | |
400 | ||
401 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
402 | local mesh=IT(Mesh) | |
403 | mesh.Parent=part | |
404 | if Mesh=="SpecialMesh" then | |
405 | mesh.MeshType=meshtype | |
406 | mesh.MeshId=meshid | |
407 | end | |
408 | mesh.Offset=offset | |
409 | mesh.Scale=scale | |
410 | return mesh | |
411 | end | |
412 | ||
413 | function QuaternionSlerp(a, b, t) | |
414 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
415 | local startInterp, finishInterp; | |
416 | if cosTheta >= 0.0001 then | |
417 | if (1 - cosTheta) > 0.0001 then | |
418 | local theta = ACOS(cosTheta) | |
419 | local invSinTheta = 1 / SIN(theta) | |
420 | startInterp = SIN((1 - t) * theta) * invSinTheta | |
421 | finishInterp = SIN(t * theta) * invSinTheta | |
422 | else | |
423 | startInterp = 1 - t | |
424 | finishInterp = t | |
425 | end | |
426 | else | |
427 | if (1 + cosTheta) > 0.0001 then | |
428 | local theta = ACOS(-cosTheta) | |
429 | local invSinTheta = 1 / SIN(theta) | |
430 | startInterp = SIN((t - 1) * theta) * invSinTheta | |
431 | finishInterp = SIN(t * theta) * invSinTheta | |
432 | else | |
433 | startInterp = t - 1 | |
434 | finishInterp = t | |
435 | end | |
436 | end | |
437 | 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 | |
438 | end | |
439 | ||
440 | function Clerp(a, b, t) | |
441 | local qa = {QuaternionFromCFrame(a)} | |
442 | local qb = {QuaternionFromCFrame(b)} | |
443 | local ax, ay, az = a.x, a.y, a.z | |
444 | local bx, by, bz = b.x, b.y, b.z | |
445 | local _t = 1 - t | |
446 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
447 | end | |
448 | ||
449 | function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME) | |
450 | local frame = IT("Frame") | |
451 | frame.BackgroundTransparency = TRANSPARENCY | |
452 | frame.BorderSizePixel = BORDERSIZEPIXEL | |
453 | frame.Position = POSITION | |
454 | frame.Size = SIZE | |
455 | frame.BackgroundColor3 = COLOR | |
456 | frame.BorderColor3 = BORDERCOLOR | |
457 | frame.Name = NAME | |
458 | frame.Parent = PARENT | |
459 | return frame | |
460 | end | |
461 | ||
462 | function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME) | |
463 | local label = IT("TextLabel") | |
464 | label.BackgroundTransparency = 1 | |
465 | label.Size = UD2(1, 0, 1, 0) | |
466 | label.Position = UD2(0, 0, 0, 0) | |
467 | label.TextColor3 = TEXTCOLOR | |
468 | label.TextStrokeTransparency = STROKETRANSPARENCY | |
469 | label.TextTransparency = TRANSPARENCY | |
470 | label.FontSize = TEXTFONTSIZE | |
471 | label.Font = TEXTFONT | |
472 | label.BorderSizePixel = BORDERSIZEPIXEL | |
473 | label.TextScaled = false | |
474 | label.Text = TEXT | |
475 | label.Name = NAME | |
476 | label.Parent = PARENT | |
477 | return label | |
478 | end | |
479 | ||
480 | function NoOutlines(PART) | |
481 | PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10 | |
482 | end | |
483 | ||
484 | ||
485 | function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1) | |
486 | local NEWWELD = IT(TYPE) | |
487 | NEWWELD.Part0 = PART0 | |
488 | NEWWELD.Part1 = PART1 | |
489 | NEWWELD.C0 = C0 | |
490 | NEWWELD.C1 = C1 | |
491 | NEWWELD.Parent = PARENT | |
492 | return NEWWELD | |
493 | end | |
494 | ||
495 | function CreateSound(ID, PARENT, VOLUME, PITCH) | |
496 | local NEWSOUND = nil | |
497 | coroutine.resume(coroutine.create(function() | |
498 | NEWSOUND = IT("Sound", PARENT) | |
499 | NEWSOUND.Volume = VOLUME | |
500 | NEWSOUND.Pitch = PITCH | |
501 | NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID | |
502 | Swait() | |
503 | NEWSOUND:play() | |
504 | game:GetService("Debris"):AddItem(NEWSOUND, 10) | |
505 | end)) | |
506 | return NEWSOUND | |
507 | end | |
508 | ||
509 | function CFrameFromTopBack(at, top, back) | |
510 | local right = top:Cross(back) | |
511 | 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) | |
512 | end | |
513 | ||
514 | function CreateWave(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
515 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
516 | local mesh = IT("SpecialMesh",wave) | |
517 | mesh.MeshType = "FileMesh" | |
518 | mesh.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
519 | mesh.Scale = VT(size,size,size) | |
520 | mesh.Offset = VT(0,0,-size/8) | |
521 | wave.CFrame = cframe | |
522 | coroutine.resume(coroutine.create(function(PART) | |
523 | for i = 1, waitt do | |
524 | Swait() | |
525 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
526 | mesh.Offset = VT(0,0,-(mesh.Scale.X/8)) | |
527 | if doesrotate == true then | |
528 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
529 | end | |
530 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
531 | if wave.Transparency > 0.99 then | |
532 | wave:remove() | |
533 | end | |
534 | end | |
535 | end)) | |
536 | end | |
537 | ||
538 | function CreateSwirl(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
539 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
540 | local mesh = IT("SpecialMesh",wave) | |
541 | mesh.MeshType = "FileMesh" | |
542 | mesh.MeshId = "http://www.roblox.com/asset/?id=1051557" | |
543 | mesh.Scale = VT(size,size,size) | |
544 | wave.CFrame = cframe | |
545 | coroutine.resume(coroutine.create(function(PART) | |
546 | for i = 1, waitt do | |
547 | Swait() | |
548 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
549 | if doesrotate == true then | |
550 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
551 | end | |
552 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
553 | if wave.Transparency > 0.99 then | |
554 | wave:remove() | |
555 | end | |
556 | end | |
557 | end)) | |
558 | end | |
559 | ||
560 | function CreateTornado(inair,size,doesrotate,rotatedirection,waitt,cframe,color) | |
561 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
562 | local mesh = IT("SpecialMesh",wave) | |
563 | mesh.MeshType = "FileMesh" | |
564 | mesh.MeshId = "http://www.roblox.com/asset/?id=102638417" | |
565 | mesh.Scale = VT(size,size,size) | |
566 | wave.CFrame = cframe | |
567 | coroutine.resume(coroutine.create(function(PART) | |
568 | for i = 1, waitt do | |
569 | Swait() | |
570 | mesh.Scale = mesh.Scale + VT(size/5,0,size/5) | |
571 | if doesrotate == true then | |
572 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0, rotatedirection, 0) | |
573 | end | |
574 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
575 | if wave.Transparency > 0.99 then | |
576 | wave:remove() | |
577 | end | |
578 | end | |
579 | end)) | |
580 | end | |
581 | ||
582 | function CreateRing(inair,size,doesrotate,rotatedirection,waitt,cframe,spin1,spin2,color) | |
583 | local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(color), "Effect", VT(0,0,0)) | |
584 | local mesh = IT("SpecialMesh",wave) | |
585 | mesh.MeshType = "FileMesh" | |
586 | mesh.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
587 | mesh.Scale = VT(size,size,size) | |
588 | mesh.Offset = VT(0,0,0) | |
589 | wave.CFrame = cframe | |
590 | coroutine.resume(coroutine.create(function(PART) | |
591 | for i = 1, waitt do | |
592 | Swait() | |
593 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
594 | if doesrotate == true then | |
595 | wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(spin2, rotatedirection, spin1) | |
596 | end | |
597 | wave.Transparency = wave.Transparency + (0.5/waitt) | |
598 | if wave.Transparency > 0.99 then | |
599 | wave:remove() | |
600 | end | |
601 | end | |
602 | end)) | |
603 | end | |
604 | ||
605 | function MagicSphere(size,waitt,cframe,color) | |
606 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(1,1,1)) | |
607 | local mesh = IT("SpecialMesh",wave) | |
608 | mesh.MeshType = "Sphere" | |
609 | mesh.Scale = VT(size,size,size) | |
610 | mesh.Offset = VT(0,0,0) | |
611 | wave.CFrame = cframe | |
612 | coroutine.resume(coroutine.create(function(PART) | |
613 | for i = 1, waitt do | |
614 | Swait() | |
615 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
616 | wave.Transparency = wave.Transparency + (1/waitt) | |
617 | if wave.Transparency > 0.99 then | |
618 | wave:remove() | |
619 | end | |
620 | end | |
621 | end)) | |
622 | end | |
623 | ||
624 | function MagicSphere2(size,waitt,cframe,color) | |
625 | local wave = CreatePart(3, Effects, "Neon", 0, 1, BRICKC(color), "Effect", VT(1,1,1)) | |
626 | local mesh = IT("SpecialMesh",wave) | |
627 | mesh.MeshType = "Sphere" | |
628 | mesh.Scale = VT(size,size,size) | |
629 | mesh.Offset = VT(0,0,0) | |
630 | wave.CFrame = cframe | |
631 | coroutine.resume(coroutine.create(function(PART) | |
632 | for i = 1, waitt do | |
633 | Swait() | |
634 | mesh.Scale = mesh.Scale - VT(size/waitt,size/waitt,size/waitt) | |
635 | wave.Transparency = wave.Transparency - (1/waitt) | |
636 | end | |
637 | wave:remove() | |
638 | end)) | |
639 | end | |
640 | ||
641 | function BreakEffect(brickcolor,cframe,x1,y1,z1,material) | |
642 | local prt=part("Custom",workspace,material,0,0,brickcolor,"Effect",VT(0.5,0.5,0.5)) | |
643 | prt.Anchored=true | |
644 | prt.CFrame=cframe*EULER(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
645 | local msh=mesh("SpecialMesh",prt,"Sphere","",VT(0,0,0),VT(x1,y1,z1)) | |
646 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
647 | CF=Part.CFrame | |
648 | Numbb=0 | |
649 | randnumb=math.random()-math.random() | |
650 | for i=0,1,0.05 do | |
651 | wait() | |
652 | CF=CF*CF(0,1,0) | |
653 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
654 | Part.CFrame=CF*EULER(Numbb,0,0) | |
655 | Part.Transparency=i | |
656 | Numbb=Numbb+randnumb | |
657 | end | |
658 | Part.Parent=nil | |
659 | end),prt) | |
660 | end | |
661 | ||
662 | function MagicBlock(size,waitt,cframe,color) | |
663 | local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(color), "Effect", VT(size,size,size)) | |
664 | local mesh = IT("BlockMesh",wave) | |
665 | wave.CFrame = cframe | |
666 | coroutine.resume(coroutine.create(function(PART) | |
667 | for i = 1, waitt do | |
668 | Swait() | |
669 | mesh.Scale = mesh.Scale + VT(size/5,size/5,size/5) | |
670 | wave.CFrame = cframe * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))) | |
671 | wave.Transparency = wave.Transparency + (1/waitt) | |
672 | if wave.Transparency > 0.99 then | |
673 | wave:remove() | |
674 | end | |
675 | end | |
676 | end)) | |
677 | end | |
678 | ||
679 | local EyeSizes={ | |
680 | NumberSequenceKeypoint.new(0,1,0), | |
681 | NumberSequenceKeypoint.new(1,0.2,0) | |
682 | } | |
683 | local EyeTrans={ | |
684 | NumberSequenceKeypoint.new(0,0.8,0), | |
685 | NumberSequenceKeypoint.new(1,1,0) | |
686 | } | |
687 | local PE=Instance.new("ParticleEmitter") | |
688 | PE.LightEmission=0 | |
689 | PE.Size=NumberSequence.new(EyeSizes) | |
690 | PE.Transparency=NumberSequence.new(EyeTrans) | |
691 | PE.Lifetime=NumberRange.new(0.35,0.35,0.35) | |
692 | PE.Rotation=NumberRange.new(0,360) | |
693 | PE.Rate=15 | |
694 | PE.Acceleration = Vector3.new(0,75,0) | |
695 | PE.Drag = 5 | |
696 | PE.Enabled = false | |
697 | PE.Speed = NumberRange.new(0,0,0) | |
698 | PE.Texture="http://www.roblox.com/asset/?id=247421728" | |
699 | PE.ZOffset = 0 | |
700 | PE.Name = "Particles" | |
701 | ||
702 | function CreateParticles(art,text,accel,drag,rate,type,isenabledbydefault) | |
703 | local particle = PE:Clone() | |
704 | particle.Parent = art | |
705 | particle.Acceleration = accel | |
706 | PE.Rate = rate | |
707 | if type == "Fire" then | |
708 | local EyeSizes={ | |
709 | NumberSequenceKeypoint.new(0,1,0.3), | |
710 | NumberSequenceKeypoint.new(1,0.2,0.2) | |
711 | } | |
712 | PE.Size = NumberSequence.new(EyeSizes) | |
713 | elseif type == "Smoke" then | |
714 | local EyeSizes={ | |
715 | NumberSequenceKeypoint.new(0,1,0), | |
716 | NumberSequenceKeypoint.new(1,5,0.5) | |
717 | } | |
718 | PE.Size = NumberSequence.new(EyeSizes) | |
719 | elseif type == "Solid" then | |
720 | local EyeSizes={ | |
721 | NumberSequenceKeypoint.new(0,1,0), | |
722 | NumberSequenceKeypoint.new(1,1,0) | |
723 | } | |
724 | PE.Size = NumberSequence.new(EyeSizes) | |
725 | end | |
726 | PE.Drag = drag | |
727 | particle.Texture = "http://www.roblox.com/asset/?id="..text | |
728 | particle.Enabled = isenabledbydefault | |
729 | return particle | |
730 | end | |
731 | ||
732 | function MakeForm(PART,TYPE) | |
733 | if TYPE == "Cyl" then | |
734 | local MSH = IT("CylinderMesh",PART) | |
735 | elseif TYPE == "Ball" then | |
736 | local MSH = IT("SpecialMesh",PART) | |
737 | MSH.MeshType = "Sphere" | |
738 | elseif TYPE == "Wedge" then | |
739 | local MSH = IT("SpecialMesh",PART) | |
740 | MSH.MeshType = "Wedge" | |
741 | end | |
742 | end | |
743 | ||
744 | --//=================================\\ | |
745 | --\\=================================// | |
746 | ||
747 | function createaddongen(limb,position,size) | |
748 | local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(0.25*Player_Size, size*0.8*Player_Size,size*0.8*Player_Size),false) | |
749 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.45 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
750 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really blue", limb.Name.." Neon Gauntlet Part", VT(0.25*Player_Size,size*Player_Size,size*Player_Size),false) | |
751 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0.425 * Player_Size, position * Player_Size, 0 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, 0, 0)) | |
752 | end | |
753 | ||
754 | function creategauntlet(limb) | |
755 | --main-- | |
756 | local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false) | |
757 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
758 | local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false) | |
759 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, -0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)), CF(0, 0, 0)) | |
760 | MakeForm(part,"Wedge") | |
761 | local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.25*Player_Size,1.07*Player_Size),false) | |
762 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.115 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(-90), RAD(0)), CF(0, 0, 0)) | |
763 | MakeForm(part,"Wedge") | |
764 | local part = CreatePart(3, Weapon, "Cobblestone", 0, 0, "Really black", limb.Name.." Gauntlet Part", VT(1.07*Player_Size,0.75+0.07*Player_Size,1.07*Player_Size),false) | |
765 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0.65 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
766 | --neon addons | |
767 | local part = CreatePart(3, Weapon, "Neon", 0, 0, "Really blue", limb.Name.." Neon Gauntlet Part", VT(1.05*Player_Size,2.05*Player_Size,1.05*Player_Size),false) | |
768 | local weld = CreateWeldOrSnapOrMotor("Weld", part, limb, part, CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0)) | |
769 | --misc-- | |
770 | createaddongen(limb,0.25,0.75) | |
771 | createaddongen(limb,-0.2,0.25) | |
772 | createaddongen(limb,-0.35,0.25) | |
773 | createaddongen(limb,-0.65,0.45) | |
774 | end | |
775 | ||
776 | --//=================================\\ | |
777 | --|| WEAPON CREATION | |
778 | --\\=================================// | |
779 | ||
780 | creategauntlet(RightArm) | |
781 | creategauntlet(RightLeg) | |
782 | ||
783 | if Player_Size ~= 1 then | |
784 | for _, v in pairs (Weapon:GetChildren()) do | |
785 | if v.ClassName == "Motor" or v.ClassName == "Weld" or v.ClassName == "Snap" then | |
786 | local p1 = v.Part1 | |
787 | v.Part1 = nil | |
788 | local cf1, cf2, cf3, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12 = v.C1:components() | |
789 | v.C1 = CF(cf1 * Player_Size, cf2 * Player_Size, cf3 * Player_Size, cf4, cf5, cf6, cf7, cf8, cf9, cf10, cf11, cf12) | |
790 | v.Part1 = p1 | |
791 | elseif v.ClassName == "Part" then | |
792 | for _, b in pairs (v:GetChildren()) do | |
793 | if b.ClassName == "SpecialMesh" or b.ClassName == "BlockMesh" then | |
794 | b.Scale = VT(b.Scale.x * Player_Size, b.Scale.y * Player_Size, b.Scale.z * Player_Size) | |
795 | end | |
796 | end | |
797 | end | |
798 | end | |
799 | end | |
800 | ||
801 | for _, c in pairs(Weapon:GetChildren()) do | |
802 | if c.ClassName == "Part" then | |
803 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
804 | end | |
805 | end | |
806 | ||
807 | Weapon.Parent = Character | |
808 | ||
809 | Humanoid.Died:connect(function() | |
810 | sick:remove() | |
811 | sick2:remove() | |
812 | CreateSound("267675816", Head, 3, 1) | |
813 | ATTACK = true | |
814 | end) | |
815 | ||
816 | print(Class_Name.." loaded.") | |
817 | ||
818 | local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 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") | |
819 | local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 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") | |
820 | local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.93, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame") | |
821 | local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame") | |
822 | ||
823 | local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Galactic cannon", C3(0.5,0,0.5), 7, "SciFi", 0, 2, 1, "Text 1") | |
824 | local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Galaxy spikes", C3(0.5,0,0.5), 7, "SciFi", 0, 2, 1, "Text 2") | |
825 | local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[E] Teleport", C3(0.5,0,0.5), 10, "SciFi", 0, 2, 1, "Text 4") | |
826 | local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[Hold C] Galactic beam", C3(0,0,0), 5, "SciFi", 0, 2, 1, "Text 3") | |
827 | ||
828 | ||
829 | ||
830 | function chatfunc(text,waitt) | |
831 | local chat = coroutine.wrap(function() | |
832 | if Character:FindFirstChild("TalkingBillBoard")~= nil then | |
833 | Character:FindFirstChild("TalkingBillBoard"):destroy() | |
834 | end | |
835 | local naeeym2 = Instance.new("BillboardGui",Character) | |
836 | naeeym2.Size = UDim2.new(0,100,0,40) | |
837 | naeeym2.StudsOffset = Vector3.new(0,5,0) | |
838 | naeeym2.Adornee = Character.Head | |
839 | naeeym2.Name = "TalkingBillBoard" | |
840 | naeeym2.AlwaysOnTop = true | |
841 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
842 | tecks2.BackgroundTransparency = 1 | |
843 | tecks2.BorderSizePixel = 0 | |
844 | tecks2.Text = "" | |
845 | tecks2.Font = "SciFi" | |
846 | tecks2.TextSize = 30 | |
847 | tecks2.TextStrokeTransparency = 1 | |
848 | tecks2.TextColor3 = SKILLTEXTCOLOR | |
849 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
850 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
851 | for i = 1,string.len(text),1 do | |
852 | tecks2.Text = string.sub(text,1,i) | |
853 | Swait() | |
854 | end | |
855 | wait(waitt) | |
856 | coroutine.resume(coroutine.create(function() | |
857 | for i = 1, 10 do | |
858 | tecks2.TextTransparency = tecks2.TextTransparency + 0.1 | |
859 | Swait() | |
860 | end | |
861 | naeeym2:Destroy() | |
862 | end)) | |
863 | end) | |
864 | chat() | |
865 | end | |
866 | ||
867 | --//=================================\\ | |
868 | --|| DAMAGE FUNCTIONS | |
869 | --\\=================================// | |
870 | ||
871 | function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) | |
872 | local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT()) | |
873 | STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0)) | |
874 | local BODYGYRO = IT("BodyGyro", STATPART) | |
875 | local BODYPOSITION = IT("BodyPosition", STATPART) | |
876 | BODYPOSITION.P = 2000 | |
877 | BODYPOSITION.D = 100 | |
878 | BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge) | |
879 | if LABELTYPE == "Normal" then | |
880 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2)) | |
881 | elseif LABELTYPE == "Debuff" then | |
882 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 8, MRANDOM(-2, 2)) | |
883 | elseif LABELTYPE == "Interruption" then | |
884 | BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2,2), 8, MRANDOM(-2, 2)) | |
885 | end | |
886 | game:GetService("Debris"):AddItem(STATPART ,5) | |
887 | local BILLBOARDGUI = Instance.new("BillboardGui", STATPART) | |
888 | BILLBOARDGUI.Adornee = STATPART | |
889 | BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0) | |
890 | BILLBOARDGUI.StudsOffset = VT(-2, 2, 0) | |
891 | BILLBOARDGUI.AlwaysOnTop = false | |
892 | local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI) | |
893 | TEXTLABEL.BackgroundTransparency = 1 | |
894 | TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0) | |
895 | TEXTLABEL.Text = TEXT | |
896 | TEXTLABEL.Font = "SciFi" | |
897 | TEXTLABEL.FontSize="Size42" | |
898 | TEXTLABEL.TextColor3 = COLOR | |
899 | TEXTLABEL.TextStrokeTransparency = 1 | |
900 | TEXTLABEL.TextScaled = true | |
901 | TEXTLABEL.TextWrapped = true | |
902 | coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL) | |
903 | wait(0.2) | |
904 | for i=1, 5 do | |
905 | wait() | |
906 | THEBODYPOSITION.Position = THEPART.Position - VT(0, 0.5 ,0) | |
907 | end | |
908 | wait(1.2) | |
909 | for i=1, 5 do | |
910 | wait() | |
911 | THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2 | |
912 | THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2 | |
913 | THEBODYPOSITION.position = THEPART.Position + VT(0, 0.5, 0) | |
914 | end | |
915 | THEPART.Parent = nil | |
916 | end),STATPART, BODYPOSITION, TEXTLABEL) | |
917 | end | |
918 | ||
919 | ||
920 | --//=================================\\ | |
921 | --|| DAMAGING | |
922 | --\\=================================// | |
923 | ||
924 | function dealdamage(hit,min,max,maxstrength,beserk,critrate,critmultiplier) | |
925 | if hit.Parent:FindFirstChildOfClass("Humanoid") and hit.Parent:FindFirstChild("HitBy"..Player.Name) == nil then | |
926 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid") | |
927 | local dmg = math.random(min,max) | |
928 | if humanoid.Health > 0 then | |
929 | if beserk == true then | |
930 | humanoid.Health = 0 | |
931 | else | |
932 | CreateSound("260430060", hit, 1.2, MRANDOM(7, 12) / 10) | |
933 | hit.Velocity = CFrame.new(Torso.Position,hit.Position).lookVector*5*maxstrength | |
934 | if math.random(1,100) < critrate+1 then | |
935 | humanoid.Health = humanoid.Health - dmg*critmultiplier | |
936 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
937 | else | |
938 | humanoid.Health = humanoid.Health - dmg | |
939 | StatLabel("Normal", hit.CFrame * CF(0, 0 + (hit.Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
940 | end | |
941 | local defence = Instance.new("BoolValue",hit.Parent) | |
942 | defence.Name = ("HitBy"..Player.Name) | |
943 | game:GetService("Debris"):AddItem(defence, 0.5) | |
944 | end | |
945 | end | |
946 | end | |
947 | end | |
948 | ||
949 | function AoEDamage(position,radius,min,max,maxstrength,beserk,critrate,critmultiplier,CanBeDodgedByJumping) | |
950 | local dmg = math.random(min,max) | |
951 | for i,v in ipairs(workspace:GetChildren()) do | |
952 | if v:FindFirstChild("HitBy"..Player.Name) == nil then | |
953 | local body = v:GetChildren() | |
954 | for part = 1, #body do | |
955 | if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
956 | if(body[part].Position - position).Magnitude < radius then | |
957 | if v.ClassName == "Model" then | |
958 | if v:FindFirstChild("Humanoid") then | |
959 | if v.Humanoid.Health ~= 0 then | |
960 | if CanBeDodgedByJumping == true then | |
961 | if body[part].Position.Y < position.Y+5 then | |
962 | if math.random(1,100) < critrate+1 then | |
963 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
964 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
965 | else | |
966 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
967 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
968 | end | |
969 | local defence = Instance.new("BoolValue",v) | |
970 | defence.Name = ("HitBy"..Player.Name) | |
971 | game:GetService("Debris"):AddItem(defence, 0.5) | |
972 | end | |
973 | else | |
974 | if beserk == true then | |
975 | v.Humanoid.Health = 0 | |
976 | end | |
977 | if math.random(1,100) < critrate+1 then | |
978 | v.Humanoid.Health = v.Humanoid.Health - dmg*critmultiplier | |
979 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), "CRIT/"..dmg*critmultiplier, C3(255/255, 0, 0)) | |
980 | else | |
981 | v.Humanoid.Health = v.Humanoid.Health - dmg | |
982 | StatLabel("Normal", body[part].CFrame * CF(0, 0 + (body[part].Size.z - 1), 0), dmg, C3(0, 0, 0)) | |
983 | end | |
984 | local defence = Instance.new("BoolValue",v) | |
985 | defence.Name = ("HitBy"..Player.Name) | |
986 | game:GetService("Debris"):AddItem(defence, 0.5) | |
987 | end | |
988 | end | |
989 | end | |
990 | end | |
991 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
992 | end | |
993 | end | |
994 | end | |
995 | if v.ClassName == "Part" then | |
996 | if v.Anchored == false and (v.Position - position).Magnitude < radius then | |
997 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
998 | end | |
999 | end | |
1000 | end | |
1001 | end | |
1002 | end | |
1003 | ||
1004 | function killnearest(position,range,maxstrength) | |
1005 | for i,v in ipairs(workspace:GetChildren()) do | |
1006 | local body = v:GetChildren() | |
1007 | for part = 1, #body do | |
1008 | if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then | |
1009 | if(body[part].Position - position).Magnitude < range then | |
1010 | if v.ClassName == "Model" then | |
1011 | v:BreakJoints() | |
1012 | end | |
1013 | --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2}) | |
1014 | body[part].Velocity = CFrame.new(position,body[part].Position).lookVector*5*maxstrength | |
1015 | end | |
1016 | end | |
1017 | end | |
1018 | if v.ClassName == "Part" then | |
1019 | if v.Anchored == false and (v.Position - position).Magnitude < range then | |
1020 | --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2}) | |
1021 | v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength | |
1022 | end | |
1023 | end | |
1024 | end | |
1025 | end | |
1026 | ||
1027 | --//=================================\\ | |
1028 | --|| ATTACK FUNCTIONS AND STUFF | |
1029 | --\\=================================// | |
1030 | ||
1031 | function CheckTableForString(Table, String) | |
1032 | for i, v in pairs(Table) do | |
1033 | if string.find(string.lower(String), string.lower(v)) then | |
1034 | return true | |
1035 | end | |
1036 | end | |
1037 | return false | |
1038 | end | |
1039 | ||
1040 | function CheckIntangible(Hit) | |
1041 | local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"} | |
1042 | if Hit and Hit.Parent then | |
1043 | if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then | |
1044 | return true | |
1045 | end | |
1046 | end | |
1047 | return false | |
1048 | end | |
1049 | ||
1050 | Debris = game:GetService("Debris") | |
1051 | ||
1052 | function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit) | |
1053 | local Direction = CFrame.new(StartPos, Vec).lookVector | |
1054 | local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore}) | |
1055 | local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore) | |
1056 | if RayHit and CheckIntangible(RayHit) then | |
1057 | if DelayIfHit then | |
1058 | wait() | |
1059 | end | |
1060 | RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit) | |
1061 | end | |
1062 | return RayHit, RayPos, RayNormal | |
1063 | end | |
1064 | ||
1065 | function turnto(position) | |
1066 | RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0) | |
1067 | end | |
1068 | ||
1069 | function ExplodeBomb(b) | |
1070 | b.Parent = Effects | |
1071 | b.Anchored = true | |
1072 | CreateSound("215395285", b, 10, 1) | |
1073 | MagicSphere(5,20,b.CFrame,"Really blue") | |
1074 | b.Transparency = 1 | |
1075 | MagicBlock(3,15,b.CFrame,"Really blue") | |
1076 | --BreakEffect("Royal purple",b.CFrame,2,2,2,"Neon") | |
1077 | for i = 1, 3 do | |
1078 | CreateSwirl(0,5,true,-0.2,25,b.CFrame * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black") | |
1079 | end | |
1080 | killnearest(b.Position,12,25) | |
1081 | game:GetService("Debris"):AddItem(b, 5) | |
1082 | end | |
1083 | ||
1084 | function Detonate() | |
1085 | bomb = Bombs:GetChildren() | |
1086 | for lol = 1, #bomb do | |
1087 | if bomb[lol].ClassName == "Part" then | |
1088 | local b = bomb[lol] | |
1089 | ExplodeBomb(b) | |
1090 | end | |
1091 | end | |
1092 | end | |
1093 | ||
1094 | function TyranyCannon() | |
1095 | ATTACK = true | |
1096 | for i=0, 1, 0.1 / Animation_Speed do | |
1097 | Swait() | |
1098 | turnto(Mouse.Hit.p) | |
1099 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0.05 * Player_Size, 0 * Player_Size, -0.1 * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(40)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed/5) | |
1100 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1101 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1102 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1103 | RightHip.C0 = Clerp(RightHip.C0, CF(0.95 * Player_Size, -0.75 * Player_Size, -0.5 * Player_Size) * ANGLES(RAD(0), RAD(50), RAD(0)) * ANGLES(RAD(-1.25), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1104 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1.1 * Player_Size, 0.25 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-2.5), RAD(0), RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1105 | end | |
1106 | local POS = Mouse.Hit.p | |
1107 | for i = 1, 5 do | |
1108 | MagicSphere(2,10,RightArm.CFrame * CF(0,-1,0),"Really blue") | |
1109 | Swait(5) | |
1110 | end | |
1111 | CreateSound("1202657035", RightArm, 5, 1) | |
1112 | MagicSphere(5,10,RightArm.CFrame * CF(0,-1,0),"Really blue") | |
1113 | local Projectile = CreatePart(3, Bombs, "Neon", 0, 0, "Really blue", "Bomb-Projectile", VT(1*Player_Size,1*Player_Size,1*Player_Size),false) | |
1114 | Projectile.CFrame = RightArm.CFrame * CF(0,-1,0) | |
1115 | Projectile.CanCollide = false | |
1116 | MakeForm(Projectile,"Ball") | |
1117 | local grav = Instance.new("BodyPosition",Projectile) | |
1118 | grav.P = 50000 | |
1119 | grav.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
1120 | grav.position = POS | |
1121 | grav.Name = "GravityForce" | |
1122 | local harm = Projectile.Touched:Connect(function(hit) | |
1123 | if hit.Parent ~= Character and hit.Parent:FindFirstChild("Humanoid") and Projectile.Parent ~= Effects then | |
1124 | ExplodeBomb(Projectile) | |
1125 | end | |
1126 | end) | |
1127 | ATTACK = false | |
1128 | end | |
1129 | ||
1130 | function RayCast(Position, Direction, MaxDistance, IgnoreList) | |
1131 | return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(Position, Direction.unit * (MaxDistance or 999.999)), IgnoreList) | |
1132 | end | |
1133 | ||
1134 | function EarthShatter() | |
1135 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1136 | if HITFLOOR ~= nil then | |
1137 | ATTACK = true | |
1138 | Rooted = true | |
1139 | for i=0, 1, 0.1 / Animation_Speed/2 do | |
1140 | Swait() | |
1141 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed/8) | |
1142 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1143 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, 1 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed/8) | |
1144 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed/8) | |
1145 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed/8) | |
1146 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed/8) | |
1147 | end | |
1148 | for i=0, 1, 0.1 / Animation_Speed*5 do | |
1149 | Swait() | |
1150 | RootPart.Anchored = true | |
1151 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*5) | |
1152 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*5) | |
1153 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, -1.4 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*5) | |
1154 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*5) | |
1155 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed*5) | |
1156 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed*5) | |
1157 | end | |
1158 | local POS = RightArm.CFrame * CF(0,-1,0).p | |
1159 | CreateWave(0,10,true,0.05,25,CF(POS),"Really black") | |
1160 | CreateWave(0,6,true,-0.05,25,CF(POS),"Really black") | |
1161 | CreateWave(0,2,true,0.05,25,CF(POS),"Really black") | |
1162 | killnearest(POS,15,25) | |
1163 | CreateSound("438666141", RightArm, 5, 1) | |
1164 | for i = 1, 10 do | |
1165 | local angle = math.random(-180,180) | |
1166 | coroutine.resume(coroutine.create(function() | |
1167 | local RayHit, RayPos = RayCast(Torso.Position, Vector3.new(0, -15, 0), 10000, {Character}) | |
1168 | local SpawnPosition = RayPos | |
1169 | local floor = RayHit | |
1170 | local needcframe = RootPart.CFrame*ANGLES(RAD(0),RAD(angle),RAD(0)) | |
1171 | local LastPosition = RayPos | |
1172 | local Delay = 1 | |
1173 | if floor ~= nil then | |
1174 | print(floor.Name) | |
1175 | for i = 1, 5 do | |
1176 | local RayHit, RayPos = RayCast(LastPosition, needcframe.lookVector, 10, {workspace}) | |
1177 | local End = RayPos | |
1178 | LastPosition = End | |
1179 | killnearest(End,50,50) | |
1180 | local locatepart = Instance.new("Part",Effects) | |
1181 | locatepart.Size = VT(0.5,0.5,0.5) | |
1182 | locatepart.Position = End | |
1183 | locatepart.CanCollide = false | |
1184 | locatepart.Anchored = true | |
1185 | locatepart.Name = "L0" | |
1186 | locatepart.Transparency = 1 | |
1187 | if SpawnPosition then | |
1188 | CreateSwirl(0,2,false,0.05,25,CF(End),"Forest green") | |
1189 | local spike = Instance.new("CornerWedgePart") | |
1190 | spike.Size = Vector3.new(1,15,1) | |
1191 | spike.Material = HITFLOOR.Material | |
1192 | spike.Color = HITFLOOR.Color | |
1193 | spike.Anchored = true | |
1194 | spike.CanCollide = false | |
1195 | spike.CFrame = CFrame.new(End.X,SpawnPosition.Y+2,End.Z) | |
1196 | spike.Orientation = Vector3.new(math.random(-15,15),math.random(-180,180),math.random(-15,15)) | |
1197 | spike.Name = HITFLOOR.Name.."Spike" | |
1198 | CreateSound("341300954", spike, 1, (math.random(8,12)/10)) | |
1199 | for i = 1, 3 do | |
1200 | local overlay = spike:Clone() | |
1201 | overlay.Size = overlay.Size + Vector3.new(0.2,0.2*2,0.2) | |
1202 | overlay.CFrame = spike.CFrame | |
1203 | overlay.Parent = nil | |
1204 | overlay.Orientation = Vector3.new(math.random(-15,15),math.random(-180,180),math.random(-15,15)) | |
1205 | overlay.Parent = Effects | |
1206 | table.insert(Effects2,{overlay,"Disappear",0.01,0,0,0,0}) | |
1207 | end | |
1208 | spike.Size = Vector3.new(2,25,2) | |
1209 | spike.Parent = Effects | |
1210 | table.insert(Effects2,{spike,"Disappear",0.01,0,0,0,0}) | |
1211 | end | |
1212 | Swait(5) | |
1213 | game:GetService("Debris"):AddItem(locatepart, 5) | |
1214 | end | |
1215 | end | |
1216 | end)) | |
1217 | end | |
1218 | for i=0, 6, 0.1 / Animation_Speed*5 do | |
1219 | Swait() | |
1220 | RootPart.Anchored = true | |
1221 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -1 * Player_Size) * ANGLES(RAD(45), RAD(0), RAD(0)), 0.2 / Animation_Speed*5) | |
1222 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed*5) | |
1223 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 1 * Player_Size, -1.4 * Player_Size) * ANGLES(RAD(30), RAD(-690), RAD(2 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 24))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed*5) | |
1224 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(25), RAD(45)) * LEFTSHOULDERC0, 0.15 / Animation_Speed*5) | |
1225 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.3 * Player_Size, -1 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed*5) | |
1226 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(5), RAD(0)) * ANGLES(RAD(45), RAD(0), RAD(10)), 0.2 / Animation_Speed*5) | |
1227 | end | |
1228 | ATTACK = false | |
1229 | Rooted = false | |
1230 | end | |
1231 | end | |
1232 | ||
1233 | function RavagingOverthrower() | |
1234 | ATTACK = true | |
1235 | Rooted = true | |
1236 | chatfunc("HYPERBEAM!",4) | |
1237 | for i=0, 1, 0.1 / Animation_Speed do | |
1238 | Swait() | |
1239 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1240 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1241 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed) | |
1242 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(180), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1243 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1244 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1245 | end | |
1246 | CreateSound("348663022", Torso, 5, 1) | |
1247 | local StartPos = RootPart.CFrame * CF(0,10,0).p | |
1248 | for i = 1, 5 do | |
1249 | MagicSphere2(25,25,CF(StartPos),"Lime green") | |
1250 | Swait(15) | |
1251 | end | |
1252 | local soundeffect = IT("Sound",Torso) | |
1253 | soundeffect.SoundId = "rbxassetid://1447681819" | |
1254 | soundeffect.Looped = false | |
1255 | soundeffect.Volume = 10 | |
1256 | soundeffect.Playing = true | |
1257 | repeat | |
1258 | turnto(Mouse.Hit.p) | |
1259 | MagicSphere2(25,25,CF(StartPos),"Lime green") | |
1260 | MagicSphere(25/10,25,CF(StartPos),"Forest green") | |
1261 | local RayHit, RayPos, RayNormal = CastZapRay(StartPos, Mouse.Hit.p, 750, Character, false) | |
1262 | local distance = (StartPos - RayPos).magnitude | |
1263 | local RayBeam = IT("Part",Effects) | |
1264 | RayBeam.Material = "Neon" | |
1265 | RayBeam.Anchored = true | |
1266 | RayBeam.BrickColor = BRICKC"Forest green" | |
1267 | local mesh = IT("SpecialMesh",RayBeam) | |
1268 | mesh.MeshType = "Cylinder" | |
1269 | RayBeam.Size = Vector3.new(distance+10, 5, 5) | |
1270 | RayBeam.CFrame = CFrame.new(StartPos, RayPos) * CFrame.new(0, 0, -distance/2) * ANGLES(RAD(0),RAD(90),RAD(0)) | |
1271 | MagicSphere(15,5,CF(RayPos),"Lime green") | |
1272 | killnearest(RayPos,15,100) | |
1273 | for i = 1, 3 do | |
1274 | CreateSwirl(0,25,true,-0.2,5,CF(RayPos) * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black") | |
1275 | end | |
1276 | Swait() | |
1277 | if KEYHOLD == false then | |
1278 | coroutine.resume(coroutine.create(function() | |
1279 | for i = 1, 5 do | |
1280 | RayBeam.Transparency = RayBeam.Transparency + 1/5 | |
1281 | Swait() | |
1282 | end | |
1283 | RayBeam:remove() | |
1284 | end)) | |
1285 | else | |
1286 | RayBeam:remove() | |
1287 | end | |
1288 | until KEYHOLD == false | |
1289 | soundeffect:remove() | |
1290 | ATTACK = false | |
1291 | Rooted = false | |
1292 | end | |
1293 | ||
1294 | function dodadance() | |
1295 | ATTACK = true | |
1296 | Rooted = true | |
1297 | DANCE = true | |
1298 | sick:Stop() | |
1299 | sick2:Play() | |
1300 | local Animation_Speed2 = 1.5 | |
1301 | tecks2.Text = Player.Name..", You know its great if its starts to happen. DANCE!" | |
1302 | repeat | |
1303 | for i=0, 1.3, 0.1 / Animation_Speed2 do | |
1304 | Swait() | |
1305 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(-15)), 0.15 / Animation_Speed2) | |
1306 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1307 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1308 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-180)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
1309 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(120), RAD(35)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1310 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(-35)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1311 | end | |
1312 | MagicSphere(5,15,Torso.CFrame,"Really blue") | |
1313 | for i=0, 1.3, 0.1 / Animation_Speed2 do | |
1314 | Swait() | |
1315 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(25), RAD(0), RAD(15)), 0.15 / Animation_Speed2) | |
1316 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(0)), 0.15 / Animation_Speed2) | |
1317 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1318 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-120)) * LEFTSHOULDERC0, 0.15 / Animation_Speed2) | |
1319 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(35)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1320 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.5 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-120), RAD(-35)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1321 | end | |
1322 | MagicSphere(5,15,Torso.CFrame,"Really blue") | |
1323 | until DANCE == false | |
1324 | tecks2.Text = Player.Name..", the Galactic Wizard" | |
1325 | sick:Play() | |
1326 | sick2:Stop() | |
1327 | ATTACK = false | |
1328 | Rooted = false | |
1329 | end | |
1330 | ||
1331 | function Warp() | |
1332 | MagicSphere2(10,5,Torso.CFrame,"Really blue") | |
1333 | RootPart.CFrame = CF(VT(Mouse.Hit.p.X,Mouse.Hit.p.Y+4,Mouse.Hit.p.Z)) | |
1334 | CreateSound("282061340", Torso, 2, 1) | |
1335 | MagicSphere(5,5,Torso.CFrame,"Really blue") | |
1336 | for i = 1, 3 do | |
1337 | CreateSwirl(0,5,true,-0.2,25,Torso.CFrame * ANGLES(RAD(math.random(-360,360)),RAD(math.random(-360,360)),RAD(math.random(-360,360))),"Really black") | |
1338 | end | |
1339 | killnearest(Torso.Position,12,25) | |
1340 | Swait() | |
1341 | turnto(Mouse.Hit.p) | |
1342 | end | |
1343 | ||
1344 | --//=================================\\ | |
1345 | --|| ASSIGN THINGS TO KEYS | |
1346 | --\\=================================// | |
1347 | ||
1348 | Humanoid.Changed:connect(function(Jump) | |
1349 | if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then | |
1350 | Humanoid.Jump = false | |
1351 | end | |
1352 | end) | |
1353 | ||
1354 | function MouseDown(Mouse) | |
1355 | if ATTACK == false then | |
1356 | end | |
1357 | end | |
1358 | ||
1359 | function MouseUp(Mouse) | |
1360 | HOLD = false | |
1361 | end | |
1362 | ||
1363 | function KeyDown(Key) | |
1364 | KEYHOLD = true | |
1365 | if Key == "y" and ATTACK == false then | |
1366 | TyranyCannon() | |
1367 | end | |
1368 | ||
1369 | if Key == "b" and ATTACK == false then | |
1370 | EarthShatter() | |
1371 | end | |
1372 | ||
1373 | if Key == "c" and ATTACK == false then | |
1374 | RavagingOverthrower() | |
1375 | end | |
1376 | ||
1377 | if Key == "v" and ATTACK == false then | |
1378 | Detonate() | |
1379 | end | |
1380 | ||
1381 | if Key == "e" and ATTACK == false then | |
1382 | Warp() | |
1383 | end | |
1384 | ||
1385 | if Key == "t" and ATTACK == false then | |
1386 | CreateSound("267397183", Head, 5, 0.8) | |
1387 | end | |
1388 | ||
1389 | if Key == "t" and DANCE == true then | |
1390 | CreateSound("267397183", Head, 5, 1) | |
1391 | end | |
1392 | ||
1393 | if Key == "x" and (ATTACK == false or DANCE == true) then | |
1394 | if DANCE == false then | |
1395 | dodadance() | |
1396 | elseif DANCE == true then | |
1397 | DANCE = false | |
1398 | end | |
1399 | end | |
1400 | end | |
1401 | ||
1402 | function KeyUp(Key) | |
1403 | KEYHOLD = false | |
1404 | end | |
1405 | ||
1406 | Mouse.Button1Down:connect(function(NEWKEY) | |
1407 | MouseDown(NEWKEY) | |
1408 | end) | |
1409 | Mouse.Button1Up:connect(function(NEWKEY) | |
1410 | MouseUp(NEWKEY) | |
1411 | end) | |
1412 | Mouse.KeyDown:connect(function(NEWKEY) | |
1413 | KeyDown(NEWKEY) | |
1414 | end) | |
1415 | Mouse.KeyUp:connect(function(NEWKEY) | |
1416 | KeyUp(NEWKEY) | |
1417 | end) | |
1418 | ||
1419 | --//=================================\\ | |
1420 | --\\=================================// | |
1421 | ||
1422 | ||
1423 | function unanchor() | |
1424 | if UNANCHOR == true then | |
1425 | g = Character:GetChildren() | |
1426 | for i = 1, #g do | |
1427 | if g[i].ClassName == "Part" then | |
1428 | g[i].Anchored = false | |
1429 | end | |
1430 | end | |
1431 | end | |
1432 | end | |
1433 | ||
1434 | ||
1435 | --//=================================\\ | |
1436 | --|| WRAP THE WHOLE SCRIPT UP | |
1437 | --\\=================================// | |
1438 | ||
1439 | Humanoid.Changed:connect(function(Jump) | |
1440 | if Jump == "Jump" and (Disable_Jump == true or DISABLEJUMPING == true) then | |
1441 | Humanoid.Jump = false | |
1442 | end | |
1443 | end) | |
1444 | ||
1445 | ANIMATE.Parent = nil | |
1446 | local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION) | |
1447 | IDLEANIMATION:Play() | |
1448 | ||
1449 | createbodypart("Eye","Really red",Head,VT(0, 0.2, -0.46),VT(18,6,6)) | |
1450 | ||
1451 | ||
1452 | while true do | |
1453 | Swait() | |
1454 | SINE = SINE + CHANGE | |
1455 | local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude | |
1456 | local TORSOVERTICALVELOCITY = RootPart.Velocity.y | |
1457 | local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position) | |
1458 | local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character) | |
1459 | local WALKSPEEDVALUE = 12 / (Humanoid.WalkSpeed / 16) | |
1460 | if ANIM == "Walk" and TORSOVELOCITY > 1 then | |
1461 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.1 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1462 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * 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) | |
1463 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1464 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1465 | elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then | |
1466 | RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1467 | Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1468 | RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1469 | LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1470 | end | |
1471 | if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then | |
1472 | ANIM = "Jump" | |
1473 | if ATTACK == false then | |
1474 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1475 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(-10), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1476 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1477 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1478 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed) | |
1479 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0.3 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1480 | end | |
1481 | elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then | |
1482 | ANIM = "Fall" | |
1483 | if ATTACK == false then | |
1484 | RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1485 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed) | |
1486 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1487 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed) | |
1488 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed) | |
1489 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed) | |
1490 | end | |
1491 | elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then | |
1492 | ANIM = "Idle" | |
1493 | if ATTACK == false then | |
1494 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed) | |
1495 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.15 / Animation_Speed) | |
1496 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1497 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(10 - 2.5 * COS(SINE / 16)), RAD(0), RAD(-25 + 2.5 * SIN(SINE / 24))) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1498 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(85), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-2.5)), 0.15 / Animation_Speed) | |
1499 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -0.8 * Player_Size - 0.05 * COS(SINE / 12) * Player_Size, -0.2 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(-15)), 0.15 / Animation_Speed) | |
1500 | end | |
1501 | elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then | |
1502 | ANIM = "Walk" | |
1503 | WALK = WALK + 1 / Animation_Speed | |
1504 | if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then | |
1505 | WALK = 0 | |
1506 | if WALKINGANIM == true then | |
1507 | WALKINGANIM = false | |
1508 | elseif WALKINGANIM == false then | |
1509 | WALKINGANIM = true | |
1510 | end | |
1511 | end | |
1512 | --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1513 | --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed) | |
1514 | if ATTACK == false then | |
1515 | RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(10), RAD(0), RAD(-20)), 0.15 / Animation_Speed) | |
1516 | Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(5)), 0.15 / Animation_Speed) | |
1517 | RightShoulder.C0 = Clerp(RightShoulder.C0, CF(0.75 * Player_Size, 0.5 * Player_Size, -1 * Player_Size) * ANGLES(RAD(70), RAD(0), RAD(-70)) * ANGLES(RAD(20), RAD(25), RAD(-15)) * RIGHTSHOULDERC0, 0.4 / Animation_Speed) | |
1518 | LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed) | |
1519 | RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1520 | LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-65), RAD(0)) * ANGLES(RAD(-7.5), RAD(0), RAD(0)), 0.15 / Animation_Speed) | |
1521 | end | |
1522 | end | |
1523 | if #Effects2>0 then | |
1524 | for e=1,#Effects2 do | |
1525 | if Effects2[e]~=nil then | |
1526 | local Thing=Effects2[e] | |
1527 | if Thing~=nil then | |
1528 | local Part=Thing[1] | |
1529 | local Mode=Thing[2] | |
1530 | local Delay=Thing[3] | |
1531 | local IncX=Thing[4] | |
1532 | local IncY=Thing[5] | |
1533 | local IncZ=Thing[6] | |
1534 | local Part2=Thing[8] | |
1535 | if Thing[1].Transparency<=1 then | |
1536 | if Thing[2]=="Block1" then | |
1537 | Thing[1].CFrame=Thing[1].CFrame | |
1538 | Mesh=Thing[1].Mesh | |
1539 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1540 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1541 | elseif Thing[2]=="Cylinder" then | |
1542 | Mesh=Thing[1].Mesh | |
1543 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1544 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1545 | elseif Thing[2]=="Blood" then | |
1546 | Mesh=Thing[7] | |
1547 | Thing[1].CFrame=Thing[1].CFrame*CF(0,.5,0) | |
1548 | Mesh.Scale=Mesh.Scale+VT(Thing[4],Thing[5],Thing[6]) | |
1549 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1550 | elseif Thing[2]=="Elec" then | |
1551 | Mesh=Thing[1].Mesh | |
1552 | Mesh.Scale=Mesh.Scale+VT(Thing[7],Thing[8],Thing[9]) | |
1553 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1554 | elseif Thing[2]=="Disappear" then | |
1555 | Thing[1].Transparency=Thing[1].Transparency+Thing[3] | |
1556 | end | |
1557 | else | |
1558 | Part.Parent=nil | |
1559 | table.remove(Effects2,e) | |
1560 | end | |
1561 | end | |
1562 | end | |
1563 | end | |
1564 | end | |
1565 | unanchor() | |
1566 | Humanoid.MaxHealth = "inf" | |
1567 | Humanoid.Health = "inf" | |
1568 | if Rooted == false then | |
1569 | Disable_Jump = false | |
1570 | Humanoid.WalkSpeed = Speed | |
1571 | elseif Rooted == true then | |
1572 | Disable_Jump = true | |
1573 | Humanoid.WalkSpeed = 0 | |
1574 | end | |
1575 | q = Character:GetChildren() | |
1576 | for u = 1, #q do | |
1577 | if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then | |
1578 | q[u]:remove() | |
1579 | elseif q[u].ClassName == "Shirt" then | |
1580 | q[u]:Destroy() | |
1581 | elseif q[u].ClassName == "Pants" then | |
1582 | q[u]:Destroy() | |
1583 | elseif q[u].ClassName == "CharacterMesh" then | |
1584 | q[u]:remove() | |
1585 | elseif q[u].ClassName == "ShirtGraphic" then | |
1586 | q[u]:remove() | |
1587 | elseif q[u].ClassName == "Part" and q[u].Name ~= "HumanoidRootPart" then | |
1588 | q[u].Color = Color3.new(0/255, 0/255, 0/255) | |
1589 | end | |
1590 | end | |
1591 | if Head:FindFirstChild("face") then | |
1592 | Head.face:remove() | |
1593 | end | |
1594 | if Head:FindFirstChild("Died") then | |
1595 | Head.Died:remove() | |
1596 | end | |
1597 | bomb = Bombs:GetChildren() | |
1598 | for lol = 1, #bomb do | |
1599 | if bomb[lol].ClassName == "Part" then | |
1600 | MagicSphere2(2,5,bomb[lol].CFrame,"Really blue") | |
1601 | end | |
1602 | end | |
1603 | end |