SHOW:
|
|
- or go back to the newest paste.
1 | ThePlayer = script.Parent.Name | |
2 | - | YaName = "lrussell2266" |
2 | + | YaName = "EnderWolfMage" |
3 | function find(tab, arg, pos) | |
4 | for i, v in pairs(tab) do | |
5 | if v == arg and i == pos then | |
6 | return true | |
7 | end | |
8 | end | |
9 | return false | |
10 | end | |
11 | function makeGiant(Character, S) | |
12 | local HR = Character:findFirstChild("HumanoidRootPart") | |
13 | local welds, hats = {}, {} | |
14 | local torso = Character:findFirstChild("Torso") | |
15 | local pos = torso.Position | |
16 | local ssss = torso.Size.Y | |
17 | for _, v in pairs(HR:children()) do | |
18 | if v:IsA("Motor6D") or v:IsA("Weld") or v:IsA("Motor") then | |
19 | table.insert(welds, { | |
20 | v, | |
21 | v.Part0, | |
22 | v.Part1 | |
23 | }) | |
24 | end | |
25 | end | |
26 | for _, v in pairs(torso:children()) do | |
27 | if v:IsA("Motor6D") or v:IsA("Weld") or v:IsA("Motor") then | |
28 | table.insert(welds, { | |
29 | v, | |
30 | v.Part0, | |
31 | v.Part1 | |
32 | }) | |
33 | end | |
34 | end | |
35 | for _, v in pairs(Character:children()) do | |
36 | if v:IsA("Accessory") then | |
37 | v:Destroy() | |
38 | elseif v:IsA("BasePart") then | |
39 | v.formFactor = "Custom" | |
40 | v.Size = v.Size * S | |
41 | v.Transparency = 1 | |
42 | end | |
43 | end | |
44 | local anim = Character.Animate | |
45 | local animc = anim:clone() | |
46 | anim:remove() | |
47 | for _, v in pairs(welds) do | |
48 | local c1 = v[1].C1 | |
49 | local c0 = v[1].C0 | |
50 | local a1, a2, a3 = c1:toEulerAnglesXYZ() | |
51 | local b1, b2, b3 = c0:toEulerAnglesXYZ() | |
52 | c1 = CFrame.new(c1.p * S) * CFrame.Angles(a1, a2, a3) | |
53 | c0 = CFrame.new(c0.p * S) * CFrame.Angles(b1, b2, b3) | |
54 | local clon = v[1]:clone() | |
55 | v[1]:remove() | |
56 | clon.C1 = c1 | |
57 | clon.C0 = c0 | |
58 | clon.Part1 = v[3] | |
59 | clon.Part0 = v[2] | |
60 | clon.Parent = Character.Torso | |
61 | if clon.Name == "RootJoint" then | |
62 | clon.Parent = Character.HumanoidRootPart | |
63 | end | |
64 | end | |
65 | animc.Parent = Character | |
66 | Character:MoveTo(pos + Vector3.new(0, S * (ssss / 2), 0)) | |
67 | wait(0.1) | |
68 | end | |
69 | makeGiant(workspace[YaName], 2) | |
70 | maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name | |
71 | secondcolor = "Really black" | |
72 | wait(0.016666666666666666) | |
73 | Effects = {} | |
74 | local Player = game.Players.localPlayer | |
75 | local Character = Player.Character | |
76 | local Humanoid = Character.Humanoid | |
77 | local mouse = Player:GetMouse() | |
78 | local LeftArm = Character["Left Arm"] | |
79 | local RightArm = Character["Right Arm"] | |
80 | local LeftLeg = Character["Left Leg"] | |
81 | local RightLeg = Character["Right Leg"] | |
82 | local Head = Character.Head | |
83 | local Torso = Character.Torso | |
84 | local cam = game.Workspace.CurrentCamera | |
85 | local RootPart = Character.HumanoidRootPart | |
86 | local RootJoint = RootPart.RootJoint | |
87 | local equipped = true | |
88 | local attack = false | |
89 | local Anim = "Idle" | |
90 | local idle = 0 | |
91 | local attacktype = 1 | |
92 | local Torsovelocity = RootPart.Velocity * Vector3.new(1, 0, 1).magnitude | |
93 | local velocity = RootPart.Velocity.y | |
94 | local sine = 0 | |
95 | local change = 1 | |
96 | local grabbed = false | |
97 | local cn = CFrame.new | |
98 | local mr = math.rad | |
99 | local angles = CFrame.Angles | |
100 | local ud = UDim2.new | |
101 | local c3 = Color3.new | |
102 | local dir = { | |
103 | w = 0, | |
104 | s = 0, | |
105 | a = 0, | |
106 | d = 0 | |
107 | } | |
108 | Climbanim = false | |
109 | Runkey = false | |
110 | firemode = false | |
111 | inair = false | |
112 | blocking = false | |
113 | humHsave = 0 | |
114 | humDsave = 0 | |
115 | extralock = true | |
116 | lasthit = nil | |
117 | Humanoid.MaxHealth = 99000000 | |
118 | for i, clothes in pairs(Character:GetChildren()) do | |
119 | if clothes.ClassName == "Shirt" or clothes.ClassName == "Pants" or clothes.ClassName == "Accessory" or clothes.ClassName == "Hat" then | |
120 | clothes:Destroy() | |
121 | end | |
122 | end | |
123 | local BC = Character["Body Colors"] | |
124 | BC.HeadColor = BrickColor.new("Really black") | |
125 | BC.LeftArmColor = BrickColor.new("Really black") | |
126 | BC.LeftLegColor = BrickColor.new("Really black") | |
127 | BC.RightArmColor = BrickColor.new("Really black") | |
128 | BC.RightLegColor = BrickColor.new("Really black") | |
129 | BC.TorsoColor = BrickColor.new("Really black") | |
130 | shirt = Instance.new("Shirt", Character) | |
131 | shirt.Name = "Shirt" | |
132 | pants = Instance.new("Pants", Character) | |
133 | pants.Name = "Pants" | |
134 | Character.Shirt.ShirtTemplate = "rbxassetid://116857373" | |
135 | Character.Pants.PantsTemplate = "rbxassetid://116857696" | |
136 | Character.Head.face.Texture = "rbxassetid://257916126" | |
137 | Character.Head.face.Transparency = 1 | |
138 | local Hood = Instance.new("Part", Character) | |
139 | Hood.Name = "Hood" | |
140 | Hood.CanCollide = false | |
141 | Hood.BrickColor = BrickColor.new("Really black") | |
142 | Hood.Transparency = 1 | |
143 | Hood.Material = "Granite" | |
144 | Hood.Size = Vector3.new(0.1, 0.1, 0.1) | |
145 | Hood.TopSurface = Enum.SurfaceType.Smooth | |
146 | Hood.BottomSurface = Enum.SurfaceType.Smooth | |
147 | local Weld = Instance.new("Weld", Hood) | |
148 | Weld.Part0 = Character.Head | |
149 | Weld.Part1 = Hood | |
150 | Weld.C1 = CFrame.new(0, -1.1, 0.2) | |
151 | local M2 = Instance.new("SpecialMesh") | |
152 | M2.Parent = Hood | |
153 | M2.MeshId = "http://www.roblox.com/asset/?id=116524777" | |
154 | M2.TextureId = "http://www.roblox.com/asset/?id=116524836" | |
155 | M2.Scale = Vector3.new(2.2, 2.2, 2.2) | |
156 | local Wing1 = Instance.new("Part", Character) | |
157 | Wing1.Name = "Wing" | |
158 | Wing1.CanCollide = false | |
159 | Wing1.BrickColor = BrickColor.new("Really black") | |
160 | Wing1.Transparency = 1 | |
161 | Wing1.Material = "Neon" | |
162 | Wing1.Size = Vector3.new(0.1, 0.1, 0.1) | |
163 | Wing1.TopSurface = Enum.SurfaceType.Smooth | |
164 | Wing1.BottomSurface = Enum.SurfaceType.Smooth | |
165 | local Wing1Weld = Instance.new("Weld", Wing1) | |
166 | Wing1Weld.Part0 = Torso | |
167 | Wing1Weld.Part1 = Wing1 | |
168 | Wing1Weld.C1 = CFrame.new(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
169 | local Wing2 = Instance.new("Part", Character) | |
170 | Wing2.Name = "Wing" | |
171 | Wing2.CanCollide = false | |
172 | Wing2.BrickColor = BrickColor.new("Really black") | |
173 | Wing2.Transparency = 1 | |
174 | Wing2.Material = "Neon" | |
175 | Wing2.Size = Vector3.new(0.1, 0.1, 0.1) | |
176 | Wing2.TopSurface = Enum.SurfaceType.Smooth | |
177 | Wing2.BottomSurface = Enum.SurfaceType.Smooth | |
178 | local Wing2Weld = Instance.new("Weld", Wing2) | |
179 | Wing2Weld.Part0 = Torso | |
180 | Wing2Weld.Part1 = Wing2 | |
181 | Wing2Weld.C1 = CFrame.new(0, -1, 0) * angles(math.rad(0), math.rad(0), math.rad(0)) | |
182 | function New(Object, Parent, Name, Data) | |
183 | local Object = Instance.new(Object) | |
184 | for Index, Value in pairs(Data or {}) do | |
185 | Object[Index] = Value | |
186 | end | |
187 | Object.Parent = Parent | |
188 | Object.Name = Name | |
189 | return Object | |
190 | end | |
191 | local all, last = {}, nil | |
192 | function scan(p) | |
193 | for _, v in pairs(p:GetChildren()) do | |
194 | if v:IsA("BasePart") then | |
195 | if last then | |
196 | local w = Instance.new("Weld") | |
197 | w.Part0, w.Part1 = last, v | |
198 | w.C0 = v.CFrame:toObjectSpace(last.CFrame):inverse() | |
199 | w.Parent = last | |
200 | end | |
201 | table.insert(all, v) | |
202 | last = v | |
203 | end | |
204 | scan(v) | |
205 | end | |
206 | end | |
207 | for _, v in pairs(all) do | |
208 | v.Anchored = false | |
209 | v.CanCollide = false | |
210 | end | |
211 | local Services = { | |
212 | SoundService = game:GetService("SoundService"), | |
213 | Players = game:GetService("Players"), | |
214 | Debris = game:GetService("Debris"), | |
215 | Workspace = game:GetService("Workspace"), | |
216 | Lighting = game:GetService("Lighting"), | |
217 | HttpService = game:GetService("HttpService"), | |
218 | InsertService = game:GetService("InsertService") | |
219 | } | |
220 | local NeckCF = cn(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
221 | Humanoid.Animator:Destroy() | |
222 | Character.Animate:Destroy() | |
223 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
224 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
225 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
226 | RSH, LSH = nil, nil | |
227 | RW = Instance.new("Weld") | |
228 | LW = Instance.new("Weld") | |
229 | RH = Torso["Right Hip"] | |
230 | LH = Torso["Left Hip"] | |
231 | RSH = Torso["Right Shoulder"] | |
232 | LSH = Torso["Left Shoulder"] | |
233 | RSH.Parent = nil | |
234 | LSH.Parent = nil | |
235 | RW.Name = "RW" | |
236 | RW.Part0 = Torso | |
237 | RW.C0 = cn(1.5, 0.5, 0) | |
238 | RW.C1 = cn(0, 0.5, 0) | |
239 | RW.Part1 = RightArm | |
240 | RW.Parent = Torso | |
241 | LW.Name = "LW" | |
242 | LW.Part0 = Torso | |
243 | LW.C0 = cn(-1.5, 0.5, 0) | |
244 | LW.C1 = cn(0, 0.5, 0) | |
245 | LW.Part1 = LeftArm | |
246 | LW.Parent = Torso | |
247 | function clerp(a, b, t) | |
248 | local qa = { | |
249 | QuaternionFromCFrame(a) | |
250 | } | |
251 | local qb = { | |
252 | QuaternionFromCFrame(b) | |
253 | } | |
254 | local ax, ay, az = a.x, a.y, a.z | |
255 | local bx, by, bz = b.x, b.y, b.z | |
256 | local _t = 1 - t | |
257 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
258 | end | |
259 | if Player.UserId ~= 208192226 and Player.UserId ~= 208192226 and Player.UserId ~= 208192226 and Player.UserId ~= 208192226 and Player.UserId ~= 208192226 and Player.UserId ~= 208192226 and Player.UserId ~= 208192226 then | |
260 | end | |
261 | function QuaternionFromCFrame(cf) | |
262 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
263 | local trace = m00 + m11 + m22 | |
264 | if trace > 0 then | |
265 | local s = math.sqrt(1 + trace) | |
266 | local recip = 0.5 / s | |
267 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
268 | else | |
269 | local i = 0 | |
270 | if m00 < m11 then | |
271 | i = 1 | |
272 | end | |
273 | if m22 > (i == 0 and m00 or m11) then | |
274 | i = 2 | |
275 | end | |
276 | if i == 0 then | |
277 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
278 | local recip = 0.5 / s | |
279 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
280 | elseif i == 1 then | |
281 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
282 | local recip = 0.5 / s | |
283 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
284 | elseif i == 2 then | |
285 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
286 | local recip = 0.5 / s | |
287 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
288 | end | |
289 | end | |
290 | end | |
291 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
292 | local xs, ys, zs = x + x, y + y, z + z | |
293 | local wx, wy, wz = w * xs, w * ys, w * zs | |
294 | local xx = x * xs | |
295 | local xy = x * ys | |
296 | local xz = x * zs | |
297 | local yy = y * ys | |
298 | local yz = y * zs | |
299 | local zz = z * zs | |
300 | 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)) | |
301 | end | |
302 | function QuaternionSlerp(a, b, t) | |
303 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
304 | local startInterp, finishInterp | |
305 | if cosTheta >= 1.0E-4 then | |
306 | if 1 - cosTheta > 1.0E-4 then | |
307 | local theta = math.acos(cosTheta) | |
308 | local invSinTheta = 1 / math.sin(theta) | |
309 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
310 | finishInterp = math.sin(t * theta) * invSinTheta | |
311 | else | |
312 | startInterp = 1 - t | |
313 | finishInterp = t | |
314 | end | |
315 | elseif 1 + cosTheta > 1.0E-4 then | |
316 | local theta = math.acos(-cosTheta) | |
317 | local invSinTheta = 1 / math.sin(theta) | |
318 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
319 | finishInterp = math.sin(t * theta) * invSinTheta | |
320 | else | |
321 | startInterp = t - 1 | |
322 | finishInterp = t | |
323 | end | |
324 | 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 | |
325 | end | |
326 | function swait(num) | |
327 | if num == 0 or num == nil then | |
328 | game:service("RunService").RenderStepped:wait(0) | |
329 | else | |
330 | for i = 0, num do | |
331 | game:service("RunService").RenderStepped:wait(0) | |
332 | end | |
333 | end | |
334 | end | |
335 | local RbxUtility = LoadLibrary("RbxUtility") | |
336 | local Create = RbxUtility.Create | |
337 | function RemoveOutlines(part) | |
338 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
339 | end | |
340 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
341 | local Part = Create("Part")({ | |
342 | formFactor = FormFactor, | |
343 | Parent = Parent, | |
344 | Reflectance = Reflectance, | |
345 | Transparency = Transparency, | |
346 | CanCollide = false, | |
347 | Locked = true, | |
348 | BrickColor = BrickColor.new(tostring(BColor)), | |
349 | Name = Name, | |
350 | Size = Size, | |
351 | Material = Material | |
352 | }) | |
353 | RemoveOutlines(Part) | |
354 | return Part | |
355 | end | |
356 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
357 | local Msh = Create(Mesh)({ | |
358 | Parent = Part, | |
359 | Offset = OffSet, | |
360 | Scale = Scale | |
361 | }) | |
362 | if Mesh == "SpecialMesh" then | |
363 | Msh.MeshType = MeshType | |
364 | Msh.MeshId = MeshId | |
365 | end | |
366 | return Msh | |
367 | end | |
368 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
369 | local Weld = Create("Weld")({ | |
370 | Parent = Parent, | |
371 | Part0 = Part0, | |
372 | Part1 = Part1, | |
373 | C0 = C0, | |
374 | C1 = C1 | |
375 | }) | |
376 | return Weld | |
377 | end | |
378 | function rayCast(Position, Direction, Range, Ignore) | |
379 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
380 | end | |
381 | function CreateSound(id, par, vol, pit) | |
382 | coroutine.resume(coroutine.create(function() | |
383 | local sou = Instance.new("Sound", par or workspace) | |
384 | sou.Volume = vol | |
385 | sou.Pitch = pit or 1 | |
386 | sou.SoundId = id | |
387 | wait() | |
388 | sou:play() | |
389 | game:GetService("Debris"):AddItem(sou, 6) | |
390 | end)) | |
391 | end | |
392 | function CreateSong(id, par, vol, pit) | |
393 | coroutine.resume(coroutine.create(function() | |
394 | sou2 = Instance.new("Sound", par or workspace) | |
395 | sou2.Volume = vol | |
396 | sou2.Pitch = 1 | |
397 | sou2.SoundId = id | |
398 | wait() | |
399 | sou2:play() | |
400 | sou2.Looped = true | |
401 | end)) | |
402 | end | |
403 | local function getclosest(obj, distance) | |
404 | local last, lastx = distance + 1, nil | |
405 | for i, v in pairs(workspace:GetChildren()) do | |
406 | if v:IsA("Model") and v ~= Character and v:findFirstChild("Humanoid") and v:findFirstChild("Torso") and v:findFirstChild("Humanoid").Health > 0 then | |
407 | local t = v.Torso | |
408 | local dist = (t.Position - obj.Position).magnitude | |
409 | if distance >= dist and last > dist then | |
410 | last = dist | |
411 | lastx = v | |
412 | end | |
413 | end | |
414 | end | |
415 | return lastx | |
416 | end | |
417 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
418 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
419 | prt.Anchored = true | |
420 | prt.CFrame = cframe | |
421 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
422 | game:GetService("Debris"):AddItem(prt, 10) | |
423 | if Type == 1 or Type == nil then | |
424 | table.insert(Effects, { | |
425 | prt, | |
426 | "Block1", | |
427 | delay, | |
428 | x3, | |
429 | y3, | |
430 | z3, | |
431 | msh | |
432 | }) | |
433 | elseif Type == 2 then | |
434 | table.insert(Effects, { | |
435 | prt, | |
436 | "Block2", | |
437 | delay, | |
438 | x3, | |
439 | y3, | |
440 | z3, | |
441 | msh | |
442 | }) | |
443 | elseif Type == 3 then | |
444 | table.insert(Effects, { | |
445 | prt, | |
446 | "Block3", | |
447 | delay, | |
448 | x3, | |
449 | y3, | |
450 | z3, | |
451 | msh | |
452 | }) | |
453 | end | |
454 | end | |
455 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
456 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
457 | prt.Anchored = true | |
458 | prt.CFrame = cframe | |
459 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
460 | game:GetService("Debris"):AddItem(prt, 10) | |
461 | table.insert(Effects, { | |
462 | prt, | |
463 | "Cylinder", | |
464 | delay, | |
465 | x3, | |
466 | y3, | |
467 | z3, | |
468 | msh | |
469 | }) | |
470 | end | |
471 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
472 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
473 | prt.Anchored = true | |
474 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
475 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
476 | game:GetService("Debris"):AddItem(prt, 10) | |
477 | table.insert(Effects, { | |
478 | prt, | |
479 | "Cylinder", | |
480 | delay, | |
481 | x3, | |
482 | y3, | |
483 | z3, | |
484 | msh | |
485 | }) | |
486 | end | |
487 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
488 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
489 | prt.Anchored = true | |
490 | prt.CFrame = cframe | |
491 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
492 | game:GetService("Debris"):AddItem(prt, 10) | |
493 | table.insert(Effects, { | |
494 | prt, | |
495 | "Cylinder", | |
496 | delay, | |
497 | x3, | |
498 | y3, | |
499 | z3, | |
500 | msh | |
501 | }) | |
502 | end | |
503 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
504 | local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
505 | prt.Anchored = true | |
506 | prt.CFrame = cframe | |
507 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
508 | game:GetService("Debris"):AddItem(prt, 10) | |
509 | table.insert(Effects, { | |
510 | prt, | |
511 | "Cylinder", | |
512 | delay, | |
513 | x3, | |
514 | y3, | |
515 | z3, | |
516 | msh | |
517 | }) | |
518 | end | |
519 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
520 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
521 | prt.Anchored = true | |
522 | prt.CFrame = cframe | |
523 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
524 | game:GetService("Debris"):AddItem(prt, 10) | |
525 | table.insert(Effects, { | |
526 | prt, | |
527 | "Cylinder", | |
528 | delay, | |
529 | x3, | |
530 | y3, | |
531 | z3, | |
532 | msh | |
533 | }) | |
534 | end | |
535 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
536 | local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
537 | prt.Anchored = true | |
538 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
539 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
540 | local num = math.random(10, 50) / 1000 | |
541 | game:GetService("Debris"):AddItem(prt, 10) | |
542 | table.insert(Effects, { | |
543 | prt, | |
544 | "Shatter", | |
545 | num, | |
546 | prt.CFrame, | |
547 | math.random() - math.random(), | |
548 | 0, | |
549 | math.random(50, 100) / 100 | |
550 | }) | |
551 | end | |
552 | for i = 0, 1, 0.05 do | |
553 | swait() | |
554 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
555 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), 0.1) | |
556 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
557 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
558 | if (Torso.Velocity).magnitude < 2 and hit ~= nil then | |
559 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), 0.2) | |
560 | RH.C0 = clerp(RH.C0, cn(1, -1 + 0.1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), 0.3) | |
561 | LH.C0 = clerp(LH.C0, cn(-1, -1 + 0.1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), 0.3) | |
562 | elseif (Torso.Velocity).magnitude < 1 and hit ~= nil then | |
563 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
564 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), 0.1) | |
565 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), 0.1) | |
566 | end | |
567 | end | |
568 | attack = false | |
569 | game:GetService("RunService").Stepped:connect(function() | |
570 | Torsovelocity = RootPart.Velocity * Vector3.new(2, 0, 2).magnitude | |
571 | velocity = RootPart.Velocity.y | |
572 | sine = sine + change | |
573 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 2, 0)).lookVector, 8, Character) | |
574 | if (equipped == true or equipped == false) and Player.UserId ~= 208192226 and Player.UserId ~= 208192226 and Player.UserId ~= 208192226 and Player.UserId ~= 208192226 and Player.UserId ~= 208192226 and Player.UserId ~= 208192226 and Player.UserId ~= 208192226 then | |
575 | end | |
576 | if equipped == true or equipped == false then | |
577 | if RootPart.Velocity.y > -1 and hit == nil then | |
578 | Anim = "Jump" | |
579 | inair = true | |
580 | if attack == false then | |
581 | Humanoid.WalkSpeed = 23 | |
582 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-9), math.rad(0), math.rad(0)), 0.1) | |
583 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
584 | RW.C0 = clerp(RW.C0, CFrame.new(3, 0.8, -0.2) * angles(math.rad(45), math.rad(0), math.rad(40)), 0.1) | |
585 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.8, -0.2) * angles(math.rad(45), math.rad(0), math.rad(-40)), 0.1) | |
586 | RH.C0 = clerp(RH.C0, cn(2, -1.6, -0.5) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), 0.3) | |
587 | LH.C0 = clerp(LH.C0, cn(-2, -2, -0.1) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), 0.3) | |
588 | end | |
589 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
590 | Anim = "Fall" | |
591 | inair = true | |
592 | if attack == false then | |
593 | Humanoid.WalkSpeed = 13 | |
594 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
595 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(10), math.rad(0), math.rad(0)), 0.1) | |
596 | RW.C0 = clerp(RW.C0, CFrame.new(3, 1, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), 0.05) | |
597 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), 0.05) | |
598 | RH.C0 = clerp(RH.C0, cn(2, -1, -0.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1) | |
599 | LH.C0 = clerp(LH.C0, cn(-2, -0.8, -0.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), 0.1) | |
600 | end | |
601 | elseif (Torso.Velocity).magnitude < 1 and hit ~= nil then | |
602 | Anim = "Idle" | |
603 | inair = false | |
604 | if attack == false then | |
605 | change = 0.8 | |
606 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.1) | |
607 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(9 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.1) | |
608 | RW.C0 = clerp(RW.C0, CFrame.new(3, 0.6, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.1) | |
609 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.1) | |
610 | RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1) | |
611 | LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1) | |
612 | end | |
613 | elseif (Torso.Velocity).magnitude < 200 and hit ~= nil then | |
614 | Anim = "Walk" | |
615 | inair = false | |
616 | if attack == false then | |
617 | change = 0.65 | |
618 | Humanoid.WalkSpeed = 13 | |
619 | Humanoid.JumpPower = 85 | |
620 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * CFrame.new(0, 0, -0.35 + 0.3 * math.cos(sine / 3.5) + -math.sin(sine / 3.5) / 7) * angles(math.rad(5 - 2.5 * math.cos(sine / 3.5)), math.rad(0), math.rad(10 * math.cos(sine / 7))), 0.1) | |
621 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * CFrame.new(0, 0, 1 + 0.025 * math.cos(sine / 3.5)) * angles(math.rad(0 + 1.5 * math.cos(sine / 3.5)), math.rad(0 - 0 * math.cos(sine / 3.5)), math.rad(-10 * math.cos(sine / 7)) + RootPart.RotVelocity.Y / 12), 0.1) | |
622 | RW.C0 = clerp(RW.C0, CFrame.new(3, 0.6, 0) * angles(math.rad(25 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(0), math.rad(10)), 0.2) | |
623 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(-25 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(0), math.rad(-10)), 0.2) | |
624 | RH.C0 = clerp(RH.C0, CFrame.new(2, -1.85 - 1 * math.cos(sine / 7) / 4, 0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-10 - 45 * math.cos(sine / 7)) + -math.sin(sine / 7) / 2.5, math.rad(90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 + 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.2) | |
625 | LH.C0 = clerp(LH.C0, CFrame.new(-2, -1.85 + 1 * math.cos(sine / 7) / 4, -0.5 * math.cos(sine / 7) / 2) * angles(math.rad(-10 + 45 * math.cos(sine / 7)) + math.sin(sine / 7) / 2.5, math.rad(-90 - 10 * math.cos(sine / 7)), math.rad(0)) * angles(math.rad(0 - 2.5 * math.cos(sine / 7)), math.rad(0), math.rad(0)), 0.2) | |
626 | end | |
627 | end | |
628 | end | |
629 | if 0 < #Effects then | |
630 | for e = 1, #Effects do | |
631 | if Effects[e] ~= nil then | |
632 | local Thing = Effects[e] | |
633 | if Thing ~= nil then | |
634 | local Part = Thing[1] | |
635 | local Mode = Thing[2] | |
636 | local Delay = Thing[3] | |
637 | local IncX = Thing[4] | |
638 | local IncY = Thing[5] | |
639 | local IncZ = Thing[6] | |
640 | if 1 >= Thing[1].Transparency then | |
641 | if Thing[2] == "Block1" then | |
642 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
643 | local Mesh = Thing[1].Mesh | |
644 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
645 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
646 | elseif Thing[2] == "Block2" then | |
647 | Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0) | |
648 | local Mesh = Thing[7] | |
649 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
650 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
651 | elseif Thing[2] == "Block3" then | |
652 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0) | |
653 | local Mesh = Thing[7] | |
654 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
655 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
656 | elseif Thing[2] == "Cylinder" then | |
657 | local Mesh = Thing[1].Mesh | |
658 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
659 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
660 | elseif Thing[2] == "Blood" then | |
661 | local Mesh = Thing[7] | |
662 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0) | |
663 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
664 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
665 | elseif Thing[2] == "Elec" then | |
666 | local Mesh = Thing[1].Mesh | |
667 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
668 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
669 | elseif Thing[2] == "Disappear" then | |
670 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
671 | elseif Thing[2] == "Shatter" then | |
672 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
673 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
674 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
675 | Thing[6] = Thing[6] + Thing[5] | |
676 | end | |
677 | else | |
678 | Part.Parent = nil | |
679 | table.remove(Effects, e) | |
680 | end | |
681 | end | |
682 | end | |
683 | end | |
684 | end | |
685 | end) | |
686 | Effects = { | |
687 | Block = { | |
688 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
689 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
690 | prt.Anchored = true | |
691 | prt.CFrame = cframe | |
692 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
693 | game:GetService("Debris"):AddItem(prt, 10) | |
694 | if Type == 1 or Type == nil then | |
695 | table.insert(Effects, { | |
696 | prt, | |
697 | "Block1", | |
698 | delay, | |
699 | x3, | |
700 | y3, | |
701 | z3, | |
702 | msh | |
703 | }) | |
704 | elseif Type == 2 then | |
705 | table.insert(Effects, { | |
706 | prt, | |
707 | "Block2", | |
708 | delay, | |
709 | x3, | |
710 | y3, | |
711 | z3, | |
712 | msh | |
713 | }) | |
714 | else | |
715 | table.insert(Effects, { | |
716 | prt, | |
717 | "Block3", | |
718 | delay, | |
719 | x3, | |
720 | y3, | |
721 | z3, | |
722 | msh | |
723 | }) | |
724 | end | |
725 | end | |
726 | }, | |
727 | Sphere = { | |
728 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
729 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
730 | prt.Anchored = true | |
731 | prt.CFrame = cframe | |
732 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
733 | game:GetService("Debris"):AddItem(prt, 10) | |
734 | table.insert(Effects, { | |
735 | prt, | |
736 | "Cylinder", | |
737 | delay, | |
738 | x3, | |
739 | y3, | |
740 | z3, | |
741 | msh | |
742 | }) | |
743 | end | |
744 | }, | |
745 | Cylinder = { | |
746 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
747 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
748 | prt.Anchored = true | |
749 | prt.CFrame = cframe | |
750 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
751 | game:GetService("Debris"):AddItem(prt, 10) | |
752 | table.insert(Effects, { | |
753 | prt, | |
754 | "Cylinder", | |
755 | delay, | |
756 | x3, | |
757 | y3, | |
758 | z3, | |
759 | msh | |
760 | }) | |
761 | end | |
762 | }, | |
763 | Wave = { | |
764 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
765 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
766 | prt.Anchored = true | |
767 | prt.CFrame = cframe | |
768 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60)) | |
769 | game:GetService("Debris"):AddItem(prt, 10) | |
770 | table.insert(Effects, { | |
771 | prt, | |
772 | "Cylinder", | |
773 | delay, | |
774 | x3 / 60, | |
775 | y3 / 60, | |
776 | z3 / 60, | |
777 | msh | |
778 | }) | |
779 | end | |
780 | }, | |
781 | Ring = { | |
782 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
783 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
784 | prt.Anchored = true | |
785 | prt.CFrame = cframe | |
786 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
787 | game:GetService("Debris"):AddItem(prt, 10) | |
788 | table.insert(Effects, { | |
789 | prt, | |
790 | "Cylinder", | |
791 | delay, | |
792 | x3, | |
793 | y3, | |
794 | z3, | |
795 | msh | |
796 | }) | |
797 | end | |
798 | }, | |
799 | Break = { | |
800 | Create = function(brickcolor, cframe, x1, y1, z1) | |
801 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
802 | prt.Anchored = true | |
803 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
804 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
805 | local num = math.random(10, 50) / 1000 | |
806 | game:GetService("Debris"):AddItem(prt, 10) | |
807 | table.insert(Effects, { | |
808 | prt, | |
809 | "Shatter", | |
810 | num, | |
811 | prt.CFrame, | |
812 | math.random() - math.random(), | |
813 | 0, | |
814 | math.random(50, 100) / 100 | |
815 | }) | |
816 | end | |
817 | } | |
818 | } | |
819 | function RemoveOutlines(part) | |
820 | part.TopSurface = 10 | |
821 | end | |
822 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
823 | local Part = Create("Part")({ | |
824 | Parent = Parent, | |
825 | Reflectance = Reflectance, | |
826 | Transparency = Transparency, | |
827 | CanCollide = false, | |
828 | Locked = true, | |
829 | BrickColor = BrickColor.new(tostring(BColor)), | |
830 | Name = Name, | |
831 | Size = Size, | |
832 | Material = Material | |
833 | }) | |
834 | RemoveOutlines(Part) | |
835 | return Part | |
836 | end | |
837 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
838 | local Msh = Create(Mesh)({ | |
839 | Parent = Part, | |
840 | Offset = OffSet, | |
841 | Scale = Scale | |
842 | }) | |
843 | if Mesh == "SpecialMesh" then | |
844 | Msh.MeshType = MeshType | |
845 | Msh.MeshId = MeshId | |
846 | end | |
847 | return Msh | |
848 | end | |
849 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
850 | local Weld = Create("Weld")({ | |
851 | Parent = Parent, | |
852 | Part0 = Part0, | |
853 | Part1 = Part1, | |
854 | C0 = C0, | |
855 | C1 = C1 | |
856 | }) | |
857 | return Weld | |
858 | end | |
859 | WSHM = { | |
860 | "White", | |
861 | "Pastel light red" | |
862 | } | |
863 | WSH = WSHM[math.random(1, #WSHM)] | |
864 | function IcePartFunk(HPart, aria, Min, Max) | |
865 | IcePart = Instance.new("Part", HPart) | |
866 | IcePart.Size = Vector3.new(math.random(Min, Max), math.random(Min, Max), math.random(Min, Max)) | |
867 | IcePart.CanCollide = false | |
868 | IuW = Instance.new("Weld") | |
869 | IuW.Name = "GuW" | |
870 | IuW.Part0 = HPart | |
871 | IuW.C0 = cn(math.random(-aria, aria), math.random(-aria, aria), math.random(-aria, aria)) * angles(math.random(-180, 180), math.random(-180, 180), math.random(-180, 180)) | |
872 | IuW.C1 = cn(0, math.random(-aria / 2, aria / 2), 0) | |
873 | IuW.Part1 = IcePart | |
874 | IuW.Parent = HPart | |
875 | IcePart.Transparency = 0.85 | |
876 | IcePart.Material = "Neon" | |
877 | WSH = WSHM[math.random(1, #WSHM)] | |
878 | IcePart.BrickColor = BrickColor.new("" .. WSH) | |
879 | RemoveOutlines(IcePart) | |
880 | game:GetService("Debris"):AddItem(IuW, 4) | |
881 | game:GetService("Debris"):AddItem(IcePart, 6) | |
882 | end | |
883 | function GroundPartFunk2(Hit, HPart, color, aria, Min, Max, num) | |
884 | IcePart2 = Instance.new("Part", HPart) | |
885 | IcePart2.Size = Vector3.new(math.random(Min, Max), math.random(Min, Max), math.random(Min, Max)) | |
886 | IcePart2.CanCollide = false | |
887 | RemoveOutlines(IcePart2) | |
888 | IcePart2.Anchored = true | |
889 | game:GetService("Debris"):AddItem(IcePart2, 0.4) | |
890 | IcePart2.Transparency = 0.3 | |
891 | IcePart2.Material = "Neon" | |
892 | IcePart2.BrickColor = BrickColor.new("" .. color) | |
893 | IcePart2.CFrame = CFrame.new(Hit.Position + Vector3.new(math.random(-aria, aria), math.random(-aria, 0), math.random(-aria, aria))) * angles(math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45)), math.rad(math.random(-45, 45))) | |
894 | for i = 0, num do | |
895 | if num > 1 then | |
896 | GroundPartFunk2(Hit, HPart, color, aria, Min, Max, 0) | |
897 | end | |
898 | end | |
899 | end | |
900 | SpikeMeshId = 1033714 | |
901 | local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale) | |
902 | local Part = Instance.new("Part", Parent) | |
903 | Part.Name = Name | |
904 | Part.BrickColor = BrickColor.new(Color) | |
905 | Part.Size = Size | |
906 | Part.Material = Material | |
907 | Part.Transparency = Transparency | |
908 | Part.CanCollide = false | |
909 | RemoveOutlines(Part) | |
910 | local Mesh = Instance.new("SpecialMesh", Part) | |
911 | Mesh.MeshType = "Sphere" | |
912 | Mesh.Scale = Scale | |
913 | return Mesh and Part | |
914 | end | |
915 | CFuncs = { | |
916 | Part = { | |
917 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
918 | local Part = Create("Part")({ | |
919 | Parent = Parent, | |
920 | Reflectance = Reflectance, | |
921 | Transparency = Transparency, | |
922 | CanCollide = false, | |
923 | Locked = true, | |
924 | BrickColor = BrickColor.new(tostring(BColor)), | |
925 | Name = Name, | |
926 | Size = Size, | |
927 | Material = Material | |
928 | }) | |
929 | RemoveOutlines(Part) | |
930 | return Part | |
931 | end | |
932 | }, | |
933 | Mesh = { | |
934 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
935 | local Msh = Create(Mesh)({ | |
936 | Parent = Part, | |
937 | Offset = OffSet, | |
938 | Scale = Scale | |
939 | }) | |
940 | if Mesh == "SpecialMesh" then | |
941 | Msh.MeshType = MeshType | |
942 | Msh.MeshId = MeshId | |
943 | end | |
944 | return Msh | |
945 | end | |
946 | }, | |
947 | Mesh = { | |
948 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
949 | local Msh = Create(Mesh)({ | |
950 | Parent = Part, | |
951 | Offset = OffSet, | |
952 | Scale = Scale | |
953 | }) | |
954 | if Mesh == "SpecialMesh" then | |
955 | Msh.MeshType = MeshType | |
956 | Msh.MeshId = MeshId | |
957 | end | |
958 | return Msh | |
959 | end | |
960 | }, | |
961 | Weld = { | |
962 | Create = function(Parent, Part0, Part1, C0, C1) | |
963 | local Weld = Create("Weld")({ | |
964 | Parent = Parent, | |
965 | Part0 = Part0, | |
966 | Part1 = Part1, | |
967 | C0 = C0, | |
968 | C1 = C1 | |
969 | }) | |
970 | return Weld | |
971 | end | |
972 | }, | |
973 | Sound = { | |
974 | Create = function(id, par, vol, pit) | |
975 | coroutine.resume(coroutine.create(function() | |
976 | local S = Create("Sound")({ | |
977 | Volume = vol, | |
978 | Pitch = pit or 1, | |
979 | SoundId = id, | |
980 | Parent = par or workspace | |
981 | }) | |
982 | wait() | |
983 | S:play() | |
984 | game:GetService("Debris"):AddItem(S, 6) | |
985 | end)) | |
986 | end | |
987 | }, | |
988 | ParticleEmitter = { | |
989 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
990 | local fp = Create("ParticleEmitter")({ | |
991 | Parent = Parent, | |
992 | Color = ColorSequence.new(Color1, Color2), | |
993 | LightEmission = LightEmission, | |
994 | Size = Size, | |
995 | Texture = Texture, | |
996 | Transparency = Transparency, | |
997 | ZOffset = ZOffset, | |
998 | Acceleration = Accel, | |
999 | Drag = Drag, | |
1000 | LockedToPart = LockedToPart, | |
1001 | VelocityInheritance = VelocityInheritance, | |
1002 | EmissionDirection = EmissionDirection, | |
1003 | Enabled = Enabled, | |
1004 | Lifetime = LifeTime, | |
1005 | Rate = Rate, | |
1006 | Rotation = Rotation, | |
1007 | RotSpeed = RotSpeed, | |
1008 | Speed = Speed, | |
1009 | VelocitySpread = VelocitySpread | |
1010 | }) | |
1011 | return fp | |
1012 | end | |
1013 | } | |
1014 | } | |
1015 | function AirEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, AirFollowPart, speed, AirEffectMode) | |
1016 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1017 | prt.Anchored = true | |
1018 | prt.CFrame = cframe | |
1019 | prt.Material = "Neon" | |
1020 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1021 | game:GetService("Debris"):AddItem(prt, 10) | |
1022 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1023 | local SnowTiltX = math.random(-1, 1) | |
1024 | local SnowTiltY = math.random(-1, 1) | |
1025 | local SnowTiltZ = math.random(-1, 1) | |
1026 | local EGoto = AirFollowPart.CFrame.lookVector * speed | |
1027 | for i = 0, 6, delay do | |
1028 | swait() | |
1029 | Part.Transparency = i | |
1030 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
1031 | if AirEffectMode == "1" then | |
1032 | Part.CFrame = Part.CFrame * angles(math.rad(SnowTiltX), math.rad(SnowTiltY), math.rad(SnowTiltZ)) + EGoto | |
1033 | elseif AirEffectMode == "2" then | |
1034 | Part.CFrame = Part.CFrame + EGoto | |
1035 | end | |
1036 | end | |
1037 | Part.Parent = nil | |
1038 | end), prt, msh) | |
1039 | end | |
1040 | function BlockLaser(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1041 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1042 | prt.Anchored = true | |
1043 | prt.CFrame = cframe | |
1044 | prt.Material = "Neon" | |
1045 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1046 | game:GetService("Debris"):AddItem(prt, 10) | |
1047 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1048 | for i = 0, 6, delay do | |
1049 | swait() | |
1050 | Part.Transparency = i | |
1051 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
1052 | end | |
1053 | Part.Parent = nil | |
1054 | end), prt, msh) | |
1055 | end | |
1056 | function Lightning(Part0, Part1, Times, Offset, Color, Thickness, Trans, SizeAdd, ltime) | |
1057 | local magz = (Part0 - Part1).magnitude | |
1058 | local curpos = Part0 | |
1059 | local trz = { | |
1060 | -Offset, | |
1061 | Offset | |
1062 | } | |
1063 | for i = 1, Times do | |
1064 | local li = Instance.new("Part", Torso) | |
1065 | li.Name = "Lightning" | |
1066 | li.TopSurface = 0 | |
1067 | li.Material = "Neon" | |
1068 | li.BottomSurface = 0 | |
1069 | li.Anchored = true | |
1070 | li.Locked = true | |
1071 | li.Transparency = 0 | |
1072 | li.BrickColor = Color | |
1073 | li.formFactor = "Custom" | |
1074 | li.CanCollide = false | |
1075 | li.Size = Vector3.new(Thickness, Thickness, magz / Times) | |
1076 | local Offzet = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
1077 | local trolpos = CFrame.new(curpos, Part1) * CFrame.new(0, 0, magz / Times).p + Offzet | |
1078 | if Times == i then | |
1079 | local magz2 = (curpos - Part1).magnitude | |
1080 | li.Size = Vector3.new(Thickness, Thickness, magz2) | |
1081 | li.CFrame = CFrame.new(curpos, Part1) * CFrame.new(0, 0, -magz2 / 2) | |
1082 | else | |
1083 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / Times / 2) | |
1084 | end | |
1085 | curpos = li.CFrame * CFrame.new(0, 0, magz / Times / 2).p | |
1086 | game.Debris:AddItem(li, 0.01) | |
1087 | BlockEffect(Color, li.CFrame, li.Size.X * 20, li.Size.Y * 20, li.Size.Z * 20, SizeAdd, SizeAdd, 0, ltime, 2) | |
1088 | end | |
1089 | end | |
1090 | function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
1091 | if hit.Parent == nil then | |
1092 | return | |
1093 | end | |
1094 | local h = hit.Parent:FindFirstChild("Humanoid") | |
1095 | for _, v in pairs(hit.Parent:children()) do | |
1096 | if v:IsA("Humanoid") then | |
1097 | h = v | |
1098 | end | |
1099 | end | |
1100 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
1101 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
1102 | return | |
1103 | end | |
1104 | local c = Create("ObjectValue")({ | |
1105 | Name = "creator", | |
1106 | Value = game:service("Players").LocalPlayer, | |
1107 | Parent = h | |
1108 | }) | |
1109 | game:GetService("Debris"):AddItem(c, 0.5) | |
1110 | if HitSound ~= nil and HitPitch ~= nil then | |
1111 | CreateSound(HitSound, hit, 1, HitPitch) | |
1112 | end | |
1113 | local Damage = math.random(minim, maxim) | |
1114 | local blocked = false | |
1115 | local block = hit.Parent:findFirstChild("Block") | |
1116 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
1117 | blocked = true | |
1118 | block.Value = block.Value - 1 | |
1119 | print(block.Value) | |
1120 | end | |
1121 | if blocked == false then | |
1122 | h.Health = h.Health - Damage | |
1123 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1124 | else | |
1125 | h.Health = h.Health - Damage / 2 | |
1126 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
1127 | end | |
1128 | if hit.Parent:FindFirstChild("Torso") ~= nil then | |
1129 | lasthit = hit.Parent.Torso | |
1130 | end | |
1131 | if Type == "Knockdown" then | |
1132 | local hum = hit.Parent.Humanoid | |
1133 | hum.PlatformStand = true | |
1134 | coroutine.resume(coroutine.create(function(HHumanoid) | |
1135 | swait(0.2) | |
1136 | HHumanoid.PlatformStand = false | |
1137 | end), hum) | |
1138 | local angle = hit.Position - Property.Position + Vector3.new(0, 0, 0).unit | |
1139 | local bodvol = Create("BodyVelocity")({ | |
1140 | velocity = angle * knockback, | |
1141 | P = 50, | |
1142 | maxForce = Vector3.new(80000, 80000, 80000), | |
1143 | Parent = hit | |
1144 | }) | |
1145 | local rl = Create("BodyAngularVelocity")({ | |
1146 | P = 3000, | |
1147 | maxTorque = Vector3.new(5000, 5000, 5000) * 50, | |
1148 | angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), | |
1149 | Parent = hit | |
1150 | }) | |
1151 | game:GetService("Debris"):AddItem(bodvol, 0.2) | |
1152 | game:GetService("Debris"):AddItem(rl, 0.2) | |
1153 | elseif Type == "Normal" then | |
1154 | local vp = Create("BodyVelocity")({ | |
1155 | P = 500, | |
1156 | maxForce = Vector3.new(math.huge, 0, math.huge), | |
1157 | velocity = Property.CFrame.lookVector * knockback | |
1158 | }) | |
1159 | if knockback > 0 then | |
1160 | vp.Parent = hit.Parent.Torso | |
1161 | end | |
1162 | game:GetService("Debris"):AddItem(vp, 0.5) | |
1163 | elseif Type == "Impale" then | |
1164 | local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Really red", Vector3.new(1, 2, 1), "Neon", 0.2, Vector3.new(0.5, 25, 0.5)) | |
1165 | Spike.Anchored = true | |
1166 | Spike.Rotation = Vector3.new(math.random(-45, 45), 0, math.random(-45, 45)) | |
1167 | Spike.Position = hit.Parent.Torso.Position | |
1168 | Services.Debris:AddItem(Spike, 4) | |
1169 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, 0.8, 2) | |
1170 | hit.Parent.Humanoid.PlatformStand = true | |
1171 | swait(1) | |
1172 | hit.Parent.Humanoid.PlatformStand = false | |
1173 | elseif Type == "Up" then | |
1174 | local bodyVelocity = Create("BodyVelocity")({ | |
1175 | velocity = Vector3.new(0, 20, 0), | |
1176 | P = 5000, | |
1177 | maxForce = Vector3.new(8000, 8000, 8000), | |
1178 | Parent = hit | |
1179 | }) | |
1180 | game:GetService("Debris"):AddItem(bodyVelocity, 0.1) | |
1181 | local bodyVelocity = Create("BodyVelocity")({ | |
1182 | velocity = Vector3.new(0, 20, 0), | |
1183 | P = 5000, | |
1184 | maxForce = Vector3.new(8000, 8000, 8000), | |
1185 | Parent = hit | |
1186 | }) | |
1187 | game:GetService("Debris"):AddItem(bodyVelocity, 0.1) | |
1188 | elseif Type == "UltSlice" then | |
1189 | BlockEffect(BrickColor.new("Really red"), SwHandle.CFrame * cn(0, 1.8, 0), 16, 141, 0.5, 0, 0, 0, 0.01, 2) | |
1190 | BlockEffect(BrickColor.new("Really red"), Head.CFrame, 21, 21, 21, 0, 0, 0, 0.01, 2) | |
1191 | BlockEffect(BrickColor.new("Really red"), Torso.CFrame, 41, 41, 21, 0, 0, 0, 0.01, 2) | |
1192 | BlockEffect(BrickColor.new("Really red"), RightArm.CFrame, 21, 41, 21, 0, 0, 0, 0.01, 2) | |
1193 | BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame, 21, 41, 21, 0, 0, 0, 0.01, 2) | |
1194 | BlockEffect(BrickColor.new("Really red"), RightLeg.CFrame, 21, 41, 21, 0, 0, 0, 0.01, 2) | |
1195 | BlockEffect(BrickColor.new("Really red"), LeftLeg.CFrame, 21, 41, 21, 0, 0, 0, 0.01, 2) | |
1196 | elseif Type == "Slice" then | |
1197 | local bp2 = Create("BodyPosition")({ | |
1198 | P = 900, | |
1199 | D = 1000, | |
1200 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1201 | position = hit.Parent.Head.Position, | |
1202 | Parent = hit.Parent.Torso | |
1203 | }) | |
1204 | game:GetService("Debris"):AddItem(bp2, 1) | |
1205 | if hit.Parent:FindFirstChild("HumanoidRootPart") ~= nil then | |
1206 | for i = 1, 10 do | |
1207 | Effects.Break.Create(BrickColor.new("Really red"), hit.Parent.HumanoidRootPart.CFrame, 10, 0.5, 0.5) | |
1208 | end | |
1209 | end | |
1210 | elseif Type == "Snare" then | |
1211 | local bp = Create("BodyPosition")({ | |
1212 | P = 900, | |
1213 | D = 1000, | |
1214 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1215 | position = hit.Parent.Torso.Position, | |
1216 | Parent = hit.Parent.Torso | |
1217 | }) | |
1218 | game:GetService("Debris"):AddItem(bp, 1) | |
1219 | elseif Type == "Slowness" then | |
1220 | local SpeedSave = hit.Parent.Humanoid.WalkSpeed | |
1221 | for i = 1, 25 do | |
1222 | hit.Parent.Humanoid.WalkSpeed = 4 | |
1223 | IcePartFunk(hit.Parent.Torso, 0.55, 0.1, 1) | |
1224 | end | |
1225 | wait(4) | |
1226 | hit.Parent.Humanoid.WalkSpeed = SpeedSave | |
1227 | elseif Type == "Firedmg" then | |
1228 | for i = 1, math.random(1, 6) do | |
1229 | if hit.Parent:FindFirstChild("Torso") ~= nil then | |
1230 | BlockEffect(BrickColor.new("Really red"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05, 3) | |
1231 | BlockEffect(BrickColor.new("Gold"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05, 3) | |
1232 | BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035, 3) | |
1233 | wait(0.1) | |
1234 | end | |
1235 | end | |
1236 | elseif Type == "Freeze" then | |
1237 | local bp = Create("BodyPosition")({ | |
1238 | P = 900, | |
1239 | D = 1000, | |
1240 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1241 | position = hit.Parent.Torso.Position, | |
1242 | Parent = hit.Parent.Torso | |
1243 | }) | |
1244 | game:GetService("Debris"):AddItem(bp, 4) | |
1245 | for i = 1, 25 do | |
1246 | IcePartFunk(hit.Parent.Torso, 1, 1.5, 2) | |
1247 | end | |
1248 | elseif Type == "Freeze2" then | |
1249 | local BodPos = Create("BodyPosition")({ | |
1250 | P = 50000, | |
1251 | D = 1000, | |
1252 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
1253 | position = hit.Parent.Torso.Position, | |
1254 | Parent = hit.Parent.Torso | |
1255 | }) | |
1256 | local BodGy = Create("BodyGyro")({ | |
1257 | maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, | |
1258 | P = 20000, | |
1259 | Parent = hit.Parent.Torso, | |
1260 | cframe = hit.Parent.Torso.CFrame | |
1261 | }) | |
1262 | hit.Parent.Torso.Anchored = true | |
1263 | coroutine.resume(coroutine.create(function(Part) | |
1264 | swait(1.5) | |
1265 | Part.Anchored = false | |
1266 | end), hit.Parent.Torso) | |
1267 | game:GetService("Debris"):AddItem(BodPos, 3) | |
1268 | game:GetService("Debris"):AddItem(BodGy, 3) | |
1269 | end | |
1270 | local debounce = Create("BoolValue")({ | |
1271 | Name = "DebounceHit", | |
1272 | Parent = hit.Parent, | |
1273 | Value = true | |
1274 | }) | |
1275 | game:GetService("Debris"):AddItem(debounce, Delay) | |
1276 | c = Instance.new("ObjectValue") | |
1277 | c.Name = "creator" | |
1278 | c.Value = Player | |
1279 | c.Parent = h | |
1280 | game:GetService("Debris"):AddItem(c, 0.5) | |
1281 | end | |
1282 | end | |
1283 | function ShowDamage(Pos, Text, Time, Color) | |
1284 | local Rate = 0.033333333333333 | |
1285 | if not Pos then | |
1286 | local Pos = Vector3.new(0, 0, 0) | |
1287 | end | |
1288 | local Text = Text or "" | |
1289 | local Time = Time or 2 | |
1290 | if not Color then | |
1291 | local Color = Color3.new(1, 0, 1) | |
1292 | end | |
1293 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
1294 | EffectPart.Anchored = true | |
1295 | local BillboardGui = Create("BillboardGui")({ | |
1296 | Size = UDim2.new(3, 0, 3, 0), | |
1297 | Adornee = EffectPart, | |
1298 | Parent = EffectPart | |
1299 | }) | |
1300 | local TextLabel = Create("TextLabel")({ | |
1301 | BackgroundTransparency = 1, | |
1302 | Size = UDim2.new(1, 0, 1, 0), | |
1303 | Text = Text, | |
1304 | TextColor3 = Color, | |
1305 | TextScaled = true, | |
1306 | Font = Enum.Font.ArialBold, | |
1307 | Parent = BillboardGui | |
1308 | }) | |
1309 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
1310 | EffectPart.Parent = game:GetService("Workspace") | |
1311 | delay(0, function() | |
1312 | local Frames = Time / Rate | |
1313 | for Frame = 1, Frames do | |
1314 | wait(Rate) | |
1315 | local Percent = Frame / Frames | |
1316 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
1317 | TextLabel.TextTransparency = Percent | |
1318 | end | |
1319 | if EffectPart and EffectPart.Parent then | |
1320 | EffectPart:Destroy() | |
1321 | end | |
1322 | end) | |
1323 | end | |
1324 | function MagniDamage(Part, magni, mindam, maxdam, knock, Type) | |
1325 | for _, c in pairs(workspace:children()) do | |
1326 | local hum = c:findFirstChild("Humanoid") | |
1327 | if hum ~= nil then | |
1328 | local head = c:findFirstChild("Head") | |
1329 | if head ~= nil then | |
1330 | local targ = head.Position - Part.Position | |
1331 | local mag = targ.magnitude | |
1332 | if magni >= mag and c.Name ~= Player.Name then | |
1333 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1.2) | |
1334 | end | |
1335 | end | |
1336 | end | |
1337 | end | |
1338 | end | |
1339 | function MagniKILL(Part, magni, knock, Type) | |
1340 | for _, c in pairs(workspace:children()) do | |
1341 | local hum = c:findFirstChild("Humanoid") | |
1342 | if hum ~= nil then | |
1343 | local head = c:findFirstChild("Head") | |
1344 | if head ~= nil then | |
1345 | local targ = head.Position - Part.Position | |
1346 | local mag = targ.magnitude | |
1347 | if magni >= mag and c.Name ~= Player.Name then | |
1348 | hum.Health = 0 | |
1349 | end | |
1350 | end | |
1351 | end | |
1352 | end | |
1353 | end | |
1354 | EffectModel = Instance.new("Model", Character) | |
1355 | EffectModel.Name = "Effects" | |
1356 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1357 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1358 | prt.Anchored = true | |
1359 | prt.CFrame = cframe | |
1360 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1361 | game:GetService("Debris"):AddItem(prt, 10) | |
1362 | if Type == 1 or Type == nil then | |
1363 | table.insert(Effects, { | |
1364 | prt, | |
1365 | "Block1", | |
1366 | delay, | |
1367 | x3, | |
1368 | y3, | |
1369 | z3, | |
1370 | msh | |
1371 | }) | |
1372 | elseif Type == 2 then | |
1373 | table.insert(Effects, { | |
1374 | prt, | |
1375 | "Block2", | |
1376 | delay, | |
1377 | x3, | |
1378 | y3, | |
1379 | z3, | |
1380 | msh | |
1381 | }) | |
1382 | elseif Type == 3 then | |
1383 | table.insert(Effects, { | |
1384 | prt, | |
1385 | "Block3", | |
1386 | delay, | |
1387 | x3, | |
1388 | y3, | |
1389 | z3, | |
1390 | msh | |
1391 | }) | |
1392 | end | |
1393 | end | |
1394 | function CreateSound(id, par, vol, pit) | |
1395 | coroutine.resume(coroutine.create(function() | |
1396 | local sou = Instance.new("Sound", par or workspace) | |
1397 | sou.Volume = vol | |
1398 | sou.Pitch = pit or 1 | |
1399 | sou.SoundId = id | |
1400 | swait() | |
1401 | sou:play() | |
1402 | game:GetService("Debris"):AddItem(sou, 6) | |
1403 | end)) | |
1404 | end | |
1405 | function Laser(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1406 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1407 | prt.Anchored = true | |
1408 | prt.CFrame = cframe | |
1409 | prt.Material = "Neon" | |
1410 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1411 | game:GetService("Debris"):AddItem(prt, 10) | |
1412 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1413 | for i = 0, 6, delay do | |
1414 | swait() | |
1415 | Part.Transparency = i | |
1416 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
1417 | end | |
1418 | Part.Parent = nil | |
1419 | end), prt, msh) | |
1420 | end | |
1421 | function LigLaser(mouse, partt, SpreadAmount) | |
1422 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
1423 | local MainPos = partt.Position | |
1424 | local MainPos2 = mouse + SpreadVectors | |
1425 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
1426 | local speed = 10 | |
1427 | local num = 10 | |
1428 | coroutine.resume(coroutine.create(function() | |
1429 | repeat | |
1430 | swait() | |
1431 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
1432 | local mag = (MainPos - pos).magnitude | |
1433 | Lightning(MainPos, pos, 3, 1, BrickColor.new("Really red"), 0.1, 0.1, -0.3, 0.7) | |
1434 | MainPos = MainPos + MouseLook.lookVector * speed | |
1435 | num = num - 1 | |
1436 | MouseLook = MouseLook * angles(math.rad(0), 0, 0) | |
1437 | if hit ~= nil then | |
1438 | num = 0 | |
1439 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1440 | refpart.Anchored = true | |
1441 | refpart.CFrame = CFrame.new(pos) | |
1442 | game:GetService("Debris"):AddItem(refpart, 2) | |
1443 | end | |
1444 | if num <= 0 then | |
1445 | local refpart = CreatePart(EffectModel, "SmoothPlastic", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1446 | refpart.Anchored = true | |
1447 | refpart.CFrame = CFrame.new(pos) | |
1448 | if hit ~= nil then | |
1449 | CreateSound("http://www.roblox.com/asset/?id=2101148", refpart, 1, 1) | |
1450 | for i = 0, 5 do | |
1451 | BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 20, 20, 20, 0.2) | |
1452 | BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 4, 4, 4, 0.2) | |
1453 | MagniDamage(refpart, 6, 5, 10, 0, "Knockdown") | |
1454 | swait() | |
1455 | end | |
1456 | end | |
1457 | game:GetService("Debris"):AddItem(refpart, 1) | |
1458 | end | |
1459 | until num <= 0 | |
1460 | end)) | |
1461 | end | |
1462 | function shoottraildd(mouse, partt, SpreadAmount) | |
1463 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount / 10, SpreadAmount / 10), math.random(-SpreadAmount, SpreadAmount)) | |
1464 | local MainPos = mouse + Vector3.new(0, 6, 0) + RootPart.CFrame.lookVector * -2 | |
1465 | local MainPos2 = mouse + SpreadVectors | |
1466 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
1467 | local speed = 100 | |
1468 | local num = 1 | |
1469 | coroutine.resume(coroutine.create(function() | |
1470 | repeat | |
1471 | swait() | |
1472 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
1473 | local mag = (MainPos - pos).magnitude | |
1474 | Laser(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 0, mag * (speed / (speed / 2)), 0, 0, 0, 0, 10) | |
1475 | MainPos = MainPos + MouseLook.lookVector * speed | |
1476 | num = num - 1 | |
1477 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
1478 | if hit ~= nil then | |
1479 | num = 0 | |
1480 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1481 | refpart.Anchored = true | |
1482 | refpart.CFrame = CFrame.new(pos) | |
1483 | game:GetService("Debris"):AddItem(refpart, 2) | |
1484 | end | |
1485 | if num <= 0 then | |
1486 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1487 | refpart.Anchored = true | |
1488 | refpart.CFrame = CFrame.new(pos) | |
1489 | if hit ~= nil then | |
1490 | GroundPartFunk2(refpart, EffectModel, "Really red", 1, 0.1, 2, 2) | |
1491 | BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 70, 70, 70, -0.5, -0.5, -0.5, 0.05) | |
1492 | MagniDamage(refpart, 6, 10, 25, 0, "Slice") | |
1493 | end | |
1494 | game:GetService("Debris"):AddItem(refpart, 0) | |
1495 | end | |
1496 | until num <= 0 | |
1497 | end)) | |
1498 | end | |
1499 | function shoottraildd2(mouse, partt, SpreadAmount) | |
1500 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
1501 | local MainPos = partt.Position | |
1502 | local MainPos2 = mouse + SpreadVectors | |
1503 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
1504 | local speed = 1000 | |
1505 | local num = 1 | |
1506 | coroutine.resume(coroutine.create(function() | |
1507 | repeat | |
1508 | swait() | |
1509 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
1510 | local mag = (MainPos - pos).magnitude | |
1511 | Laser(BrickColor.new("Crimson"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 0.1, mag * (speed / (speed / 2)), 0.1, 0, 0, 0, 0.5) | |
1512 | MainPos = MainPos + MouseLook.lookVector * speed | |
1513 | num = num - 1 | |
1514 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
1515 | if hit ~= nil then | |
1516 | num = 0 | |
1517 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1518 | refpart.Anchored = true | |
1519 | refpart.CFrame = CFrame.new(pos) | |
1520 | game:GetService("Debris"):AddItem(refpart, 2) | |
1521 | end | |
1522 | if num <= 0 then | |
1523 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1524 | refpart.Anchored = true | |
1525 | refpart.CFrame = CFrame.new(pos) | |
1526 | if hit ~= nil then | |
1527 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1) | |
1528 | BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 2.5, 2.5, 2.5, 0.1) | |
1529 | MagniKILL(refpart, 80, 0, "Normal") | |
1530 | end | |
1531 | game:GetService("Debris"):AddItem(refpart, 0) | |
1532 | end | |
1533 | until num <= 0 | |
1534 | end)) | |
1535 | end | |
1536 | function shoottraildd3(mouse, partt, SpreadAmount, dmg) | |
1537 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
1538 | local MainPos = partt.Position | |
1539 | local MainPos2 = mouse + SpreadVectors | |
1540 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
1541 | local speed = 200 | |
1542 | local num = 0 | |
1543 | coroutine.resume(coroutine.create(function() | |
1544 | repeat | |
1545 | swait() | |
1546 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
1547 | local mag = (MainPos - pos).magnitude | |
1548 | Laser(BrickColor.new("White"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -0.375, 0, -0.375, 0.05) | |
1549 | MainPos = MainPos + MouseLook.lookVector * speed | |
1550 | num = num - 1 | |
1551 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
1552 | if hit ~= nil then | |
1553 | num = 0 | |
1554 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1555 | refpart.Anchored = true | |
1556 | refpart.CFrame = CFrame.new(pos) | |
1557 | BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05) | |
1558 | game:GetService("Debris"):AddItem(refpart, 2) | |
1559 | end | |
1560 | if num <= 0 then | |
1561 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1562 | refpart.Anchored = true | |
1563 | refpart.CFrame = CFrame.new(pos) | |
1564 | if hit ~= nil then | |
1565 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1) | |
1566 | BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05) | |
1567 | BlockEffect(BrickColor.new("Pastel light red"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05) | |
1568 | MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness") | |
1569 | end | |
1570 | game:GetService("Debris"):AddItem(refpart, 0) | |
1571 | end | |
1572 | until num <= 0 | |
1573 | end)) | |
1574 | end | |
1575 | function shoottraildd4(mouse, partt, SpreadAmount, dmg) | |
1576 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
1577 | local MainPos = partt.Position | |
1578 | local MainPos2 = mouse + SpreadVectors | |
1579 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
1580 | local speed = 150 | |
1581 | local num = 1 | |
1582 | coroutine.resume(coroutine.create(function() | |
1583 | repeat | |
1584 | swait() | |
1585 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
1586 | local mag = (MainPos - pos).magnitude | |
1587 | Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -1.175, 0, -1.175, 0.15) | |
1588 | MainPos = MainPos + MouseLook.lookVector * speed | |
1589 | num = num - 1 | |
1590 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
1591 | if hit ~= nil then | |
1592 | num = 0 | |
1593 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1594 | refpart.Anchored = true | |
1595 | refpart.CFrame = CFrame.new(pos) | |
1596 | game:GetService("Debris"):AddItem(refpart, 2) | |
1597 | end | |
1598 | if num <= 0 then | |
1599 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1600 | refpart.Anchored = true | |
1601 | refpart.CFrame = CFrame.new(pos) | |
1602 | if hit ~= nil then | |
1603 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1) | |
1604 | BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05) | |
1605 | BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05) | |
1606 | BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05) | |
1607 | MagniDamage(refpart, 6, dmg, dmg, 0, "Normal") | |
1608 | end | |
1609 | game:GetService("Debris"):AddItem(refpart, 0) | |
1610 | end | |
1611 | until num <= 0 | |
1612 | end)) | |
1613 | end | |
1614 | local Blood1 = Create("ParticleEmitter")({ | |
1615 | Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0.5, 0, 0)), | |
1616 | Transparency = NumberSequence.new({ | |
1617 | NumberSequenceKeypoint.new(0, 0.5), | |
1618 | NumberSequenceKeypoint.new(0.5, 0), | |
1619 | NumberSequenceKeypoint.new(1, 1) | |
1620 | }), | |
1621 | Size = NumberSequence.new({ | |
1622 | NumberSequenceKeypoint.new(0, 0), | |
1623 | NumberSequenceKeypoint.new(0.5, 1), | |
1624 | NumberSequenceKeypoint.new(1, 0) | |
1625 | }), | |
1626 | Texture = "rbxassetid://596872069", | |
1627 | Lifetime = NumberRange.new(0.8), | |
1628 | Rate = 100, | |
1629 | VelocitySpread = 13, | |
1630 | RotSpeed = NumberRange.new(-100, 100), | |
1631 | Speed = NumberRange.new(15), | |
1632 | LightEmission = 0.5, | |
1633 | LockedToPart = true, | |
1634 | Acceleration = Vector3.new(0, 0, 0), | |
1635 | EmissionDirection = "Back", | |
1636 | Parent = Wing1 | |
1637 | }) | |
1638 | local Blood2 = Create("ParticleEmitter")({ | |
1639 | Color = ColorSequence.new(Color3.new(0, 0, 0), Color3.new(0.5, 0, 0)), | |
1640 | Transparency = NumberSequence.new({ | |
1641 | NumberSequenceKeypoint.new(0, 0.5), | |
1642 | NumberSequenceKeypoint.new(0.5, 0), | |
1643 | NumberSequenceKeypoint.new(1, 1) | |
1644 | }), | |
1645 | Size = NumberSequence.new({ | |
1646 | NumberSequenceKeypoint.new(0, 0), | |
1647 | NumberSequenceKeypoint.new(0.5, 1), | |
1648 | NumberSequenceKeypoint.new(1, 0) | |
1649 | }), | |
1650 | Texture = "rbxassetid://596872069", | |
1651 | Lifetime = NumberRange.new(0.8), | |
1652 | Rate = 100, | |
1653 | VelocitySpread = 13, | |
1654 | RotSpeed = NumberRange.new(-100, 100), | |
1655 | Speed = NumberRange.new(15), | |
1656 | LightEmission = 0.5, | |
1657 | LockedToPart = true, | |
1658 | Acceleration = Vector3.new(0, 0, 0), | |
1659 | EmissionDirection = "Back", | |
1660 | Parent = Wing2 | |
1661 | }) | |
1662 | coroutine.resume(coroutine.create(function() | |
1663 | while true do | |
1664 | for i = 0, 4, 0.1 do | |
1665 | swait() | |
1666 | Blood1.Acceleration = Vector3.new(40 + 5 * math.cos(sine / 16), 10 + 20 * math.cos(sine / 16), -40 + 5 * math.cos(sine / 16)) | |
1667 | Blood2.Acceleration = Vector3.new(-40 - 5 * math.cos(sine / 16), 10 + 20 * math.cos(sine / 16), -40 + 5 * math.cos(sine / 16)) | |
1668 | end | |
1669 | end | |
1670 | end)) | |
1671 | Humanoid:SetStateEnabled("Dead", false) | |
1672 | Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false) | |
1673 | function Intro() | |
1674 | attack = true | |
1675 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=209744571", Character, 2, 1) | |
1676 | for i = 0, 28.1, 0.1 do | |
1677 | swait() | |
1678 | Humanoid.Health = Humanoid.MaxHealth | |
1679 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 1000.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 1) | |
1680 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(9 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.1) | |
1681 | RW.C0 = clerp(RW.C0, CFrame.new(3, 0.6, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.1) | |
1682 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.1) | |
1683 | RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1) | |
1684 | LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1) | |
1685 | end | |
1686 | LeftArm.Transparency = 0 | |
1687 | RightArm.Transparency = 0 | |
1688 | LeftLeg.Transparency = 0 | |
1689 | RightLeg.Transparency = 0 | |
1690 | Torso.Transparency = 0 | |
1691 | Hood.Transparency = 0 | |
1692 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=168513088", Torso, 2, 1) | |
1693 | Effects.Wave.Create(BrickColor.new("Really red"), Torso.CFrame * cn(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
1694 | Effects.Wave.Create(BrickColor.new("Really red"), Torso.CFrame * cn(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
1695 | Effects.Wave.Create(BrickColor.new("Really red"), Torso.CFrame * cn(0, -6, 0) * angles(math.rad(0), math.rad(math.random(0, 180)), math.rad(0)), 550.5, 100.5, 550.5, 200, 20, 200, 0.05) | |
1696 | Humanoid.WalkSpeed = 0 | |
1697 | for i = 0, 5, 0.1 do | |
1698 | swait() | |
1699 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 6.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.1) | |
1700 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(50 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.1) | |
1701 | RW.C0 = clerp(RW.C0, CFrame.new(3, 1, -0.5) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(50)), 0.1) | |
1702 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-50)), 0.1) | |
1703 | RH.C0 = clerp(RH.C0, cn(2, 0.8 - 0.1 * math.cos(sine / 12), -1) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1) | |
1704 | LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1) | |
1705 | end | |
1706 | for i = 0, 0.5, 0.1 do | |
1707 | swait() | |
1708 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -3.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(100), math.rad(1), math.rad(5)), 0.2) | |
1709 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(50 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.2) | |
1710 | RW.C0 = clerp(RW.C0, CFrame.new(3, 1, -0.5) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.2) | |
1711 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(20 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.2) | |
1712 | RH.C0 = clerp(RH.C0, cn(2, -0.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(90)), 0.2) | |
1713 | LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-40 + 0.05 * math.cos(sine / 25))), 0.2) | |
1714 | end | |
1715 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=174580476", Torso, 5, 1) | |
1716 | Effects.Ring.Create(BrickColor.new("Really red"), RootPart.CFrame * cn(0, -6, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 0.5, 0.5, 0.1, 2, 2, 0, 0.04) | |
1717 | Effects.Sphere.Create(BrickColor.new("Really red"), RootPart.CFrame * cn(0, -6, 0), 10, 7, 10, 15, -0.1, 15, 0.04) | |
1718 | Effects.Sphere.Create(BrickColor.new("Really red"), RootPart.CFrame * cn(0, -6, 0), 10, 6, 10, 15, -0.1, 15, 0.02) | |
1719 | Effects.Sphere.Create(BrickColor.new("Really black"), RootPart.CFrame * cn(0, -6, 0), 10, 4, 10, 15, -0.1, 15, 0.01) | |
1720 | for i = 0, 4, 0.1 do | |
1721 | swait() | |
1722 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -3.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(100), math.rad(1), math.rad(5)), 0.2) | |
1723 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(5 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.2) | |
1724 | RW.C0 = clerp(RW.C0, CFrame.new(3, 1, -0.5) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.2) | |
1725 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(20 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.2) | |
1726 | RH.C0 = clerp(RH.C0, cn(2, -0.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(90)), 0.2) | |
1727 | LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-40 + 0.05 * math.cos(sine / 25))), 0.2) | |
1728 | end | |
1729 | for i = 0, 2, 0.1 do | |
1730 | swait() | |
1731 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -1.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(50), math.rad(1), math.rad(5)), 0.05) | |
1732 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(-50 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.05) | |
1733 | RW.C0 = clerp(RW.C0, CFrame.new(3, 1, -0.5) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.05) | |
1734 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(20 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.05) | |
1735 | RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(90)), 0.05) | |
1736 | LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-40 + 0.05 * math.cos(sine / 25))), 0.05) | |
1737 | end | |
1738 | for i = 0, 2, 0.1 do | |
1739 | swait() | |
1740 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -1.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(25), math.rad(1), math.rad(5)), 0.05) | |
1741 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(-50 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.05) | |
1742 | RW.C0 = clerp(RW.C0, CFrame.new(3, 1, -0.5) * angles(math.rad(0 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.05) | |
1743 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(0 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.05) | |
1744 | RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(45)), 0.05) | |
1745 | LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-20 + 0.05 * math.cos(sine / 25))), 0.05) | |
1746 | end | |
1747 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=137473066", Torso, 6, 0.8) | |
1748 | attack = false | |
1749 | wait(3) | |
1750 | s = Create("Sound")({ | |
1751 | Name = "BossMusic", | |
1752 | SoundId = "http://www.roblox.com/asset/?id=890276873", | |
1753 | Pitch = 1, | |
1754 | Volume = 2, | |
1755 | Looped = true, | |
1756 | archivable = false, | |
1757 | Parent = Character | |
1758 | }) | |
1759 | s:play() | |
1760 | Humanoid.WalkSpeed = 13 | |
1761 | end | |
1762 | Intro() | |
1763 | function Deathpose() | |
1764 | Humanoid.WalkSpeed = 0 | |
1765 | print("ded") | |
1766 | s:stop() | |
1767 | attack = true | |
1768 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=260433239", Torso, 4, 1.1) | |
1769 | Humanoid:SetStateEnabled("Dead", false) | |
1770 | Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false) | |
1771 | for i = 0, 7.4, 0.1 do | |
1772 | swait() | |
1773 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -2.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.2) | |
1774 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(59 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.2) | |
1775 | RW.C0 = clerp(RW.C0, CFrame.new(2, 0.6, 0) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(-40)), 0.2) | |
1776 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.2) | |
1777 | RH.C0 = clerp(RH.C0, cn(2, 0 - 0.1 * math.cos(sine / 12), -1) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.2) | |
1778 | LH.C0 = clerp(LH.C0, cn(-2, -2.8 - 0.1 * math.cos(sine / 12), -1) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(90 + 0.05 * math.cos(sine / 25))), 0.2) | |
1779 | end | |
1780 | Humanoid:SetStateEnabled("Dead", false) | |
1781 | Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false) | |
1782 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=137473066", Torso, 4, 0.8) | |
1783 | for i = 0, 15.5, 0.1 do | |
1784 | swait() | |
1785 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -2.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.2) | |
1786 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(-5 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.05) | |
1787 | RW.C0 = clerp(RW.C0, CFrame.new(2, 0.6, 0) * angles(math.rad(90 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(-40)), 0.2) | |
1788 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.2) | |
1789 | RH.C0 = clerp(RH.C0, cn(2, 0 - 0.1 * math.cos(sine / 12), -1) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.2) | |
1790 | LH.C0 = clerp(LH.C0, cn(-2, -2.8 - 0.1 * math.cos(sine / 12), -1) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(90 + 0.05 * math.cos(sine / 25))), 0.2) | |
1791 | end | |
1792 | Humanoid:SetStateEnabled("Dead", false) | |
1793 | Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false) | |
1794 | Effects.Ring.Create(BrickColor.new("Really red"), RootPart.CFrame * cn(0, -6, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 1, 1, 0.1, 1, 1, 0, 0.04) | |
1795 | for i = 0, 5, 0.1 do | |
1796 | swait() | |
1797 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 1.4 + 0.3 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.05) | |
1798 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(-5 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.05) | |
1799 | RW.C0 = clerp(RW.C0, CFrame.new(3, 0.6, 0) * angles(math.rad(0 - 0 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.05) | |
1800 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(0 - 0 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.05) | |
1801 | RH.C0 = clerp(RH.C0, cn(2, -0.8 - 0.1 * math.cos(sine / 12), -0.5) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(-20 + 0.05 * math.cos(sine / 25))), 0.05) | |
1802 | LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.05) | |
1803 | end | |
1804 | Humanoid.WalkSpeed = 13 | |
1805 | attack = false | |
1806 | s:play() | |
1807 | end | |
1808 | function HitpartFunk3(HPart3, Xv, Yv, Zv) | |
1809 | Hitpart3 = Instance.new("Part", HPart3) | |
1810 | RemoveOutlines(Hitpart3) | |
1811 | Hitpart3.Size = Vector3.new(1, 1, 1) | |
1812 | Hitpart3.CanCollide = false | |
1813 | HuW3 = Instance.new("Weld") | |
1814 | HuW3.Name = "GuW" | |
1815 | HuW3.Part0 = HPart3 | |
1816 | HuW3.C0 = cn(Xv, Yv, Zv) | |
1817 | HuW3.C1 = cn(0, 0, 0) | |
1818 | HuW3.Part1 = Hitpart3 | |
1819 | HuW3.Parent = HPart3 | |
1820 | Hitpart3.Transparency = 1 | |
1821 | game:GetService("Debris"):AddItem(Hitpart3, 20) | |
1822 | end | |
1823 | function HitpartFunk2(HPart2, Xv, Yv, Zv) | |
1824 | Hitpart2 = Instance.new("Part", HPart2) | |
1825 | RemoveOutlines(Hitpart2) | |
1826 | Hitpart2.Size = Vector3.new(1, 1, 1) | |
1827 | Hitpart2.CanCollide = false | |
1828 | HuW2 = Instance.new("Weld") | |
1829 | HuW2.Name = "GuW" | |
1830 | HuW2.Part0 = HPart2 | |
1831 | HuW2.C0 = cn(Xv, Yv, Zv) | |
1832 | HuW2.C1 = cn(0, 0, 0) | |
1833 | HuW2.Part1 = Hitpart2 | |
1834 | HuW2.Parent = HPart2 | |
1835 | Hitpart2.Transparency = 1 | |
1836 | game:GetService("Debris"):AddItem(Hitpart2, 20) | |
1837 | end | |
1838 | function HitpartFunk(HPart, Min, Max, Xv, Yv, Zv, atype, kb) | |
1839 | Hitpart = Instance.new("Part", HPart) | |
1840 | RemoveOutlines(Hitpart) | |
1841 | Hitpart.Size = Vector3.new(1, 1, 1) | |
1842 | Hitpart.CanCollide = false | |
1843 | HuW = Instance.new("Weld") | |
1844 | HuW.Name = "GuW" | |
1845 | HuW.Part0 = HPart | |
1846 | HuW.C0 = cn(Xv, Yv, Zv) | |
1847 | HuW.C1 = cn(0, 0, 0) | |
1848 | HuW.Part1 = Hitpart | |
1849 | HuW.Parent = HPart | |
1850 | Hitpart.Transparency = 1 | |
1851 | game:GetService("Debris"):AddItem(Hitpart2, 20) | |
1852 | MagniDamage(Hitpart, 4.5, Min, Max, kb, atype) | |
1853 | end | |
1854 | function HitpartFunk4(HPart, Min, Max, Xv, Yv, Zv, atype, kb) | |
1855 | Hitpart4 = Instance.new("Part", HPart) | |
1856 | RemoveOutlines(Hitpart4) | |
1857 | Hitpart4.Size = Vector3.new(1, 1, 1) | |
1858 | Hitpart4.CanCollide = false | |
1859 | HuW4 = Instance.new("Weld") | |
1860 | HuW4.Name = "HuW4" | |
1861 | HuW4.Part0 = HPart | |
1862 | HuW4.C0 = cn(Xv, Yv, Zv) | |
1863 | HuW4.C1 = cn(0, 0, 0) | |
1864 | HuW4.Part1 = Hitpart4 | |
1865 | HuW4.Parent = HPart | |
1866 | Hitpart4.Transparency = 1 | |
1867 | game:GetService("Debris"):AddItem(Hitpart4, 1.5) | |
1868 | MagniDamage(Hitpart4, 6.5, Min, Max, kb, atype) | |
1869 | end | |
1870 | function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype) | |
1871 | coroutine.resume(coroutine.create(function() | |
1872 | local Hitboxpart = Instance.new("Part", EffectModel) | |
1873 | RemoveOutlines(Hitboxpart) | |
1874 | Hitboxpart.Size = Vector3.new(siz1, siz2, siz3) | |
1875 | Hitboxpart.CanCollide = false | |
1876 | Hitboxpart.Transparency = 1 | |
1877 | Hitboxpart.Anchored = true | |
1878 | Hitboxpart.CFrame = Pose | |
1879 | game:GetService("Debris"):AddItem(Hitboxpart, lifetime) | |
1880 | MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype) | |
1881 | end)) | |
1882 | end | |
1883 | wait2 = false | |
1884 | elementwait = false | |
1885 | mouse.KeyDown:connect(function(key) | |
1886 | if attack == false then | |
1887 | if key == "z" then | |
1888 | attack = true | |
1889 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=2101137", Torso, 2, 1) | |
1890 | local bg2 = Instance.new("BodyGyro", game.Players.LocalPlayer.Character.HumanoidRootPart) | |
1891 | Effects.Ring.Create(BrickColor.new("Really red"), RootPart.CFrame * cn(0, -6, 0) * angles(math.rad(90), math.rad(0), math.rad(0)), 1, 1, 0.1, 1, 1, 0, 0.04) | |
1892 | for i = 0, 6, 0.1 do | |
1893 | swait() | |
1894 | local bodyVelocityidle = Create("BodyVelocity")({ | |
1895 | velocity = Vector3.new(0, 0, 0) + RootPart.CFrame.lookVector * 0, | |
1896 | P = 5000, | |
1897 | maxForce = Vector3.new(80000, 80000, 80000), | |
1898 | Parent = RootPart | |
1899 | }) | |
1900 | game:GetService("Debris"):AddItem(bodyVelocityidle, 0.1) | |
1901 | bg2.D = 300 | |
1902 | bg2.P = 9999 | |
1903 | bg2.maxTorque = Vector3.new(100000, 1, 100000) * math.huge | |
1904 | bg2.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(game.Players.LocalPlayer:GetMouse().hit.p.x, game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y, game.Players.LocalPlayer:GetMouse().hit.p.z)) | |
1905 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 1.4 + 0.3 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1906 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(15 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(0)), 0.1) | |
1907 | RW.C0 = clerp(RW.C0, CFrame.new(3, 0.6, 0) * angles(math.rad(0 - 0 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.1) | |
1908 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(0 - 0 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.1) | |
1909 | RH.C0 = clerp(RH.C0, cn(2, -0.8 - 0.1 * math.cos(sine / 12), -0.5) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(-20 + 0.05 * math.cos(sine / 25))), 0.05) | |
1910 | LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.05) | |
1911 | end | |
1912 | Humanoid.PlatformStand = true | |
1913 | game:GetService("Debris"):AddItem(bg2, 2.2) | |
1914 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=2767090", Torso, 4, 0.8) | |
1915 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=3264923", Torso, 4, 0.7) | |
1916 | for i = 0, 12, 0.1 do | |
1917 | swait() | |
1918 | local bodyVelocity = Create("BodyVelocity")({ | |
1919 | velocity = Vector3.new(0, 0.1, 0) + RootPart.CFrame.lookVector * 200, | |
1920 | P = 5000, | |
1921 | maxForce = Vector3.new(80000, 80000, 80000), | |
1922 | Parent = RootPart | |
1923 | }) | |
1924 | game:GetService("Debris"):AddItem(bodyVelocity, 0.2) | |
1925 | Humanoid.WalkSpeed = 0 | |
1926 | bg2.D = 100 | |
1927 | bg2.P = 9999 | |
1928 | bg2.maxTorque = Vector3.new(100000, 1, 100000) * math.huge | |
1929 | bg2.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position, Vector3.new(game.Players.LocalPlayer:GetMouse().hit.p.x, game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y, game.Players.LocalPlayer:GetMouse().hit.p.z)) | |
1930 | Effects.Wave.Create(BrickColor.new("Crimson"), Torso.CFrame * cn(0, -5, 0) * angles(math.rad(155), math.rad(math.random(0, 180)), math.rad(0)), 200, 150.5, 140, 50, 200, 50, 0.3) | |
1931 | Effects.Wave.Create(BrickColor.new("Really red"), Torso.CFrame * cn(0, -4, 0) * angles(math.rad(155), math.rad(math.random(0, 180)), math.rad(0)), 340, 100.5, 340, 50, 1, 50, 0.5) | |
1932 | HitboxFunction(Torso.CFrame * cn(0, 0, 0), 0.05, 1, 1, 1, 10, 15, 20, 30, "Normal") | |
1933 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 1.4 + 0.3 * math.cos(sine / 12)) * angles(math.rad(65), math.rad(0), math.rad(0)), 0.1) | |
1934 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(-25 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(0)), 0.1) | |
1935 | RW.C0 = clerp(RW.C0, CFrame.new(2, 0.8, -0.7) * angles(math.rad(90 - 0 * math.cos(sine / 12)), math.rad(0), math.rad(-30)), 0.1) | |
1936 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(-35 - 0 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.05) | |
1937 | RH.C0 = clerp(RH.C0, cn(2, -0.2 - 0.1 * math.cos(sine / 12), -1.5) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(-20 + 0.05 * math.cos(sine / 25))), 0.1) | |
1938 | LH.C0 = clerp(LH.C0, cn(-2, -1.08 - 0.1 * math.cos(sine / 12), -0.6) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(20 + 0.05 * math.cos(sine / 25))), 0.1) | |
1939 | end | |
1940 | Humanoid.PlatformStand = false | |
1941 | Humanoid.WalkSpeed = 2 | |
1942 | for i = 0, 2, 0.1 do | |
1943 | swait() | |
1944 | local bodyVelocityidle = Create("BodyVelocity")({ | |
1945 | velocity = Vector3.new(0, 0, 0) + RootPart.CFrame.lookVector * 0, | |
1946 | P = 5000, | |
1947 | maxForce = Vector3.new(80000, 80000, 80000), | |
1948 | Parent = RootPart | |
1949 | }) | |
1950 | game:GetService("Debris"):AddItem(bodyVelocityidle, 0.1) | |
1951 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 1.4 + 0.3 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1) | |
1952 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(15 + 1 * math.cos(sine / 22)), math.rad(0), math.rad(0)), 0.1) | |
1953 | RW.C0 = clerp(RW.C0, CFrame.new(3, 0.6, 0) * angles(math.rad(0 - 0 * math.cos(sine / 12)), math.rad(0), math.rad(10)), 0.1) | |
1954 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 0.6, 0) * angles(math.rad(0 - 0 * math.cos(sine / 12)), math.rad(-7), math.rad(-10)), 0.1) | |
1955 | RH.C0 = clerp(RH.C0, cn(2, -0.8 - 0.1 * math.cos(sine / 12), -0.5) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(-20 + 0.05 * math.cos(sine / 25))), 0.05) | |
1956 | LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.05) | |
1957 | end | |
1958 | Humanoid.WalkSpeed = 13 | |
1959 | attack = false | |
1960 | end | |
1961 | if key == "x" then | |
1962 | attack = true | |
1963 | Humanoid.WalkSpeed = 4 | |
1964 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=2101137", Torso, 2, 1.3) | |
1965 | for i = 0, 3, 0.1 do | |
1966 | swait() | |
1967 | BlockEffect(BrickColor.new("Really red"), RightArm.CFrame * cn(0, -3, 0), 1, 1, 1, 4, 4, 4, 0.05, 1) | |
1968 | BlockEffect(BrickColor.new("Really red"), LeftArm.CFrame * cn(0, -3, 0), 1, 1, 1, 4, 4, 4, 0.05, 1) | |
1969 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.1) | |
1970 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(-19 + 0 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.1) | |
1971 | RW.C0 = clerp(RW.C0, CFrame.new(3, 1, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(90)), 0.1) | |
1972 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 1, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-90)), 0.1) | |
1973 | RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1) | |
1974 | LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1) | |
1975 | end | |
1976 | Humanoid.WalkSpeed = 1 | |
1977 | for i = 0, 10 do | |
1978 | for i = 0, 0.5, 0.1 do | |
1979 | swait() | |
1980 | local targeto1 = Head.Position + Vector3.new(0, 0, 0) + Head.CFrame.lookVector * 10 | |
1981 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.4 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(5)), 0.1) | |
1982 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(5 + 0 * math.cos(sine / 22)), math.rad(0), math.rad(-5)), 0.1) | |
1983 | RW.C0 = clerp(RW.C0, CFrame.new(3, 1, 0) * angles(math.rad(-90 - 5 * math.cos(sine / 2)), math.rad(0), math.rad(160)), 0.1) | |
1984 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 1, 0) * angles(math.rad(-90 - 5 * math.cos(sine / 2)), math.rad(-7), math.rad(-160)), 0.1) | |
1985 | RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1) | |
1986 | LH.C0 = clerp(LH.C0, cn(-2, -1.8 - 0.1 * math.cos(sine / 12), 0) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(0 + 0.05 * math.cos(sine / 25))), 0.1) | |
1987 | end | |
1988 | local targeto1 = RootPart.Position + Vector3.new(0, math.random(-5, -4), 0) + RootPart.CFrame.lookVector * 20 | |
1989 | local Laserpart = Instance.new("Part", EffectModel) | |
1990 | RemoveOutlines(Laserpart) | |
1991 | Laserpart.Size = Vector3.new(0.1, 0.1, 0.1) | |
1992 | Laserpart.CanCollide = false | |
1993 | Laserpart.Transparency = 1 | |
1994 | Laserpart.Anchored = true | |
1995 | Laserpart.CFrame = RootPart.CFrame * cn(math.random(-5, 5), math.random(-1, 1), math.random(-4, -3)) + Head.CFrame.lookVector * 0 | |
1996 | game:GetService("Debris"):AddItem(Laserpart, 0.05) | |
1997 | BlockEffect(BrickColor.new("Really red"), Laserpart.CFrame, 50, 50, 50, 0, 0, 0, 0.1, 1) | |
1998 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=2974249", Torso, 2, 1) | |
1999 | LigLaser(targeto1, Laserpart, 0) | |
2000 | end | |
2001 | Humanoid.WalkSpeed = 13 | |
2002 | attack = false | |
2003 | end | |
2004 | if key == "c" then | |
2005 | attack = true | |
2006 | Humanoid.WalkSpeed = 1 | |
2007 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=2101137", Torso, 2, 0.5) | |
2008 | for i = 0, 15, 0.1 do | |
2009 | swait() | |
2010 | BlockEffect(BrickColor.new("Really red"), RightArm.CFrame * cn(0, -1.25, 0), 35, 35, 35, 4, 1, 4, 0.4, 2) | |
2011 | AirEffect(BrickColor.new("Crimson"), RightArm.CFrame * cn(math.random(-1, 1), math.random(-2, 2), math.random(-1, 1)), 0.1, 0, 0.1, 0, 0.1, 0, 0.1, RootPart, 0.2, "2") | |
2012 | AirEffect(BrickColor.new("Really red"), RightArm.CFrame * cn(math.random(-1, 1), math.random(-2, 2), math.random(-1, 1)), 0.1, 0, 0.1, 0, 0.1, 0, 0.1, RootPart, 0.2, "2") | |
2013 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(-1, 1, -0.6 + 0.1 * math.cos(sine / 12)) * angles(math.rad(0), math.rad(1), math.rad(-50)), 0.1) | |
2014 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(5 + 0 * math.cos(sine / 22)), math.rad(0), math.rad(50)), 0.1) | |
2015 | RW.C0 = clerp(RW.C0, CFrame.new(2, 0.9, -0.5) * angles(math.rad(90 - 4 * math.cos(sine / 1)), math.rad(0), math.rad(-50)), 0.1) | |
2016 | LW.C0 = clerp(LW.C0, CFrame.new(-3, 1, 0) * angles(math.rad(5 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(-40)), 0.1) | |
2017 | RH.C0 = clerp(RH.C0, cn(2, -1.5 - 0.1 * math.cos(sine / 12), -0.5) * RHCF * angles(math.rad(-4), math.rad(20), math.rad(15 + 0.05 * math.cos(sine / 25))), 0.1) | |
2018 | LH.C0 = clerp(LH.C0, cn(-2, -1.3 - 0.1 * math.cos(sine / 12), -0.5) * LHCF * angles(math.rad(-14), math.rad(0), math.rad(15 + 0.05 * math.cos(sine / 25))), 0.1) | |
2019 | end | |
2020 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=463177334", Torso, 2, 2) | |
2021 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=331888892", Torso, 5, 0.7) | |
2022 | coroutine.resume(coroutine.create(function() | |
2023 | wait(0.1) | |
2024 | AirEffect(BrickColor.new("Really black"), RightArm.CFrame * cn(0, -2, 0), 10, 5.2, 10, 2, 3, 2, 0.06, RootPart, 1, "2") | |
2025 | AirEffect(BrickColor.new("Really black"), RightArm.CFrame * cn(0, -2, 0), 10, 2.2, 10, 1, 6, 1, 0.06, RootPart, 2, "2") | |
2026 | AirEffect(BrickColor.new("Really black"), RightArm.CFrame * cn(0, -2, 0), 10, 0.2, 10, 4, 0, 4, 0.06, RootPart, 0.5, "2") | |
2027 | AirEffect(BrickColor.new("Really red"), RightArm.CFrame * cn(0, -2, 0), 30, 30, 30, -1, -1, -1, 0.03, RootPart, 4, "2") | |
2028 | local AGoto = RootPart.CFrame.lookVector * 4 | |
2029 | local AFrame = RightArm.CFrame * cn(0, -2, 0) | |
2030 | for i = 0, 6, 0.03 do | |
2031 | AFrame = AFrame + AGoto | |
2032 | HitboxFunction(AFrame, 0.05, 1, 1, 1, 8, 45, 50, 50, "Normal") | |
2033 | end | |
2034 | end)) | |
2035 | Humanoid.WalkSpeed = 0 | |
2036 | for i = 0, 1, 0.1 do | |
2037 | swait() | |
2038 | BlockEffect(BrickColor.new("Really red"), RightArm.CFrame * cn(0, -1.25, 0), 35, 35, 35, 4, 1, 4, 0.4, 2) | |
2039 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(2, -3, -0.8 + 0.1 * math.cos(sine / 12)) * angles(math.rad(20), math.rad(20), math.rad(45)), 0.5) | |
2040 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(5 + 0 * math.cos(sine / 22)), math.rad(0), math.rad(-45)), 0.5) | |
2041 | RW.C0 = clerp(RW.C0, CFrame.new(3, 1, 0) * angles(math.rad(120 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(45)), 0.5) | |
2042 | LW.C0 = clerp(LW.C0, CFrame.new(-2, 0.4, -0.8) * angles(math.rad(25 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(45)), 0.5) | |
2043 | RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(-15 + 0.05 * math.cos(sine / 25))), 0.5) | |
2044 | LH.C0 = clerp(LH.C0, cn(-2, -1 - 0.1 * math.cos(sine / 12), -0.5) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-15 + 0.05 * math.cos(sine / 25))), 0.5) | |
2045 | end | |
2046 | BlockEffect(BrickColor.new("Really red"), RightArm.CFrame * cn(0, -1.25, 0), 35, 35, 35, 2, 1, 2, 0.1, 2) | |
2047 | for i = 0, 2, 0.1 do | |
2048 | swait() | |
2049 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(2, -3, -0.8 + 0.1 * math.cos(sine / 12)) * angles(math.rad(20), math.rad(20), math.rad(45)), 0.5) | |
2050 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * cn(0, 0, 1) * angles(math.rad(5 + 0 * math.cos(sine / 22)), math.rad(0), math.rad(-45)), 0.5) | |
2051 | RW.C0 = clerp(RW.C0, CFrame.new(3, 1, 0) * angles(math.rad(120 - 2 * math.cos(sine / 12)), math.rad(0), math.rad(45)), 0.5) | |
2052 | LW.C0 = clerp(LW.C0, CFrame.new(-2, 0.4, -0.8) * angles(math.rad(25 - 2 * math.cos(sine / 12)), math.rad(-7), math.rad(45)), 0.5) | |
2053 | RH.C0 = clerp(RH.C0, cn(2, -1.8 - 0.1 * math.cos(sine / 12), 0) * RHCF * angles(math.rad(-4), math.rad(0), math.rad(-15 + 0.05 * math.cos(sine / 25))), 0.5) | |
2054 | LH.C0 = clerp(LH.C0, cn(-2, -1 - 0.1 * math.cos(sine / 12), -0.5) * LHCF * angles(math.rad(-4), math.rad(0), math.rad(-15 + 0.05 * math.cos(sine / 25))), 0.5) | |
2055 | end | |
2056 | Humanoid.WalkSpeed = 13 | |
2057 | attack = false | |
2058 | end | |
2059 | end | |
2060 | end) | |
2061 | combo = 1 | |
2062 | humHsave = Humanoid.Health | |
2063 | function GainCharge(Humanoid) | |
2064 | if Humanoid.Health < 1 and attack == false then | |
2065 | Deathpose() | |
2066 | Humanoid.Health = Humanoid.MaxHealth | |
2067 | end | |
2068 | end | |
2069 | Humanoid.HealthChanged:connect(function() | |
2070 | GainCharge(Humanoid) | |
2071 | end) | |
2072 | function OnDeath() | |
2073 | equipped = false | |
2074 | end | |
2075 | Humanoid.Died:connect(function() | |
2076 | OnDeath(Character) | |
2077 | end) | |
2078 | print("by 123jl123") |