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