SHOW:
|
|
- or go back to the newest paste.
1 | ||
2 | --[[NIGHTOWLACE_WEAPONRY]]-- | |
3 | maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name | |
4 | secondcolor = "Cyan" | |
5 | ||
6 | wait(1 / 60) | |
7 | Effects = { } | |
8 | local Player = game.Players.localPlayer | |
9 | local Character = Player.Character | |
10 | local Humanoid = Character.Humanoid | |
11 | local mouse = Player:GetMouse() | |
12 | local LeftArm = Character["Left Arm"] | |
13 | local RightArm = Character["Right Arm"] | |
14 | local LeftLeg = Character["Left Leg"] | |
15 | local RightLeg = Character["Right Leg"] | |
16 | local Head = Character.Head | |
17 | local Torso = Character.Torso | |
18 | local cam = game.Workspace.CurrentCamera | |
19 | local RootPart = Character.HumanoidRootPart | |
20 | local RootJoint = RootPart.RootJoint | |
21 | local equipped = true | |
22 | local attack = false | |
23 | local Anim = 'Idle' | |
24 | local idle = 0 | |
25 | local attacktype = 1 | |
26 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
27 | local velocity = RootPart.Velocity.y | |
28 | local sine = 0 | |
29 | local change = 1 | |
30 | local grabbed = false | |
31 | local cn = CFrame.new | |
32 | local mr = math.rad | |
33 | local angles = CFrame.Angles | |
34 | local ud = UDim2.new | |
35 | local c3 = Color3.new | |
36 | local dir = {w = 0, s = 0, a = 0, d = 0} | |
37 | Runkey=false | |
38 | firemode = false | |
39 | local Services = { | |
40 | ||
41 | ||
42 | SoundService = game:GetService("SoundService"); | |
43 | Players = game:GetService("Players"); | |
44 | Debris = game:GetService("Debris"); | |
45 | Workspace = game:GetService("Workspace"); | |
46 | Lighting = game:GetService("Lighting"); | |
47 | HttpService = game:GetService("HttpService"); | |
48 | InsertService = game:GetService("InsertService"); | |
49 | ||
50 | } | |
51 | ||
52 | local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
53 | Humanoid.Animator:Destroy() | |
54 | Character.Animate:Destroy() | |
55 | ||
56 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
57 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
58 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
59 | ||
60 | RSH, LSH = nil, nil | |
61 | ||
62 | RW = Instance.new("Weld") | |
63 | LW = Instance.new("Weld") | |
64 | ||
65 | RH = Torso["Right Hip"] | |
66 | LH = Torso["Left Hip"] | |
67 | ||
68 | RSH = Torso["Right Shoulder"] | |
69 | LSH = Torso["Left Shoulder"] | |
70 | ||
71 | RSH.Parent = nil | |
72 | LSH.Parent = nil | |
73 | ||
74 | RW.Name = "RW" | |
75 | RW.Part0 = Torso | |
76 | RW.C0 = cn(1.5, 0.5, 0) | |
77 | RW.C1 = cn(0, 0.5, 0) | |
78 | RW.Part1 = RightArm | |
79 | RW.Parent = Torso | |
80 | ||
81 | LW.Name = "LW" | |
82 | LW.Part0 = Torso | |
83 | LW.C0 = cn(-1.5, 0.5, 0) | |
84 | LW.C1 = cn(0, 0.5, 0) | |
85 | LW.Part1 = LeftArm | |
86 | LW.Parent = Torso | |
87 | ||
88 | function clerp(a, b, t) | |
89 | local qa = { | |
90 | QuaternionFromCFrame(a) | |
91 | } | |
92 | local qb = { | |
93 | QuaternionFromCFrame(b) | |
94 | } | |
95 | local ax, ay, az = a.x, a.y, a.z | |
96 | local bx, by, bz = b.x, b.y, b.z | |
97 | local _t = 1 - t | |
98 | return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) | |
99 | end | |
100 | ||
101 | function QuaternionFromCFrame(cf) | |
102 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
103 | local trace = m00 + m11 + m22 | |
104 | if trace > 0 then | |
105 | local s = math.sqrt(1 + trace) | |
106 | local recip = 0.5 / s | |
107 | return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5 | |
108 | else | |
109 | local i = 0 | |
110 | if m11 > m00 then | |
111 | i = 1 | |
112 | end | |
113 | if m22 > (i == 0 and m00 or m11) then | |
114 | i = 2 | |
115 | end | |
116 | if i == 0 then | |
117 | local s = math.sqrt(m00 - m11 - m22 + 1) | |
118 | local recip = 0.5 / s | |
119 | return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip | |
120 | elseif i == 1 then | |
121 | local s = math.sqrt(m11 - m22 - m00 + 1) | |
122 | local recip = 0.5 / s | |
123 | return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip | |
124 | elseif i == 2 then | |
125 | local s = math.sqrt(m22 - m00 - m11 + 1) | |
126 | local recip = 0.5 / s | |
127 | return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip | |
128 | end | |
129 | end | |
130 | end | |
131 | ||
132 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
133 | local xs, ys, zs = x + x, y + y, z + z | |
134 | local wx, wy, wz = w * xs, w * ys, w * zs | |
135 | local xx = x * xs | |
136 | local xy = x * ys | |
137 | local xz = x * zs | |
138 | local yy = y * ys | |
139 | local yz = y * zs | |
140 | local zz = z * zs | |
141 | 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)) | |
142 | end | |
143 | ||
144 | function QuaternionSlerp(a, b, t) | |
145 | local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4] | |
146 | local startInterp, finishInterp; | |
147 | if cosTheta >= 0.0001 then | |
148 | if (1 - cosTheta) > 0.0001 then | |
149 | local theta = math.acos(cosTheta) | |
150 | local invSinTheta = 1 / math.sin(theta) | |
151 | startInterp = math.sin((1 - t) * theta) * invSinTheta | |
152 | finishInterp = math.sin(t * theta) * invSinTheta | |
153 | else | |
154 | startInterp = 1 - t | |
155 | finishInterp = t | |
156 | end | |
157 | else | |
158 | if (1 + cosTheta) > 0.0001 then | |
159 | local theta = math.acos(-cosTheta) | |
160 | local invSinTheta = 1 / math.sin(theta) | |
161 | startInterp = math.sin((t - 1) * theta) * invSinTheta | |
162 | finishInterp = math.sin(t * theta) * invSinTheta | |
163 | else | |
164 | startInterp = t - 1 | |
165 | finishInterp = t | |
166 | end | |
167 | end | |
168 | 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 | |
169 | end | |
170 | ||
171 | function swait(num) | |
172 | if num == 0 or num == nil then | |
173 | game:service'RunService'.RenderStepped:wait(0) | |
174 | else | |
175 | for i = 0, num do | |
176 | game:service'RunService'.RenderStepped:wait(0) | |
177 | end | |
178 | end | |
179 | end | |
180 | ||
181 | local RbxUtility = LoadLibrary("RbxUtility") | |
182 | local Create = RbxUtility.Create | |
183 | ||
184 | function RemoveOutlines(part) | |
185 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
186 | end | |
187 | ||
188 | function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
189 | local Part = Create("Part"){ | |
190 | formFactor = FormFactor, | |
191 | Parent = Parent, | |
192 | Reflectance = Reflectance, | |
193 | Transparency = Transparency, | |
194 | CanCollide = false, | |
195 | Locked = true, | |
196 | BrickColor = BrickColor.new(tostring(BColor)), | |
197 | Name = Name, | |
198 | Size = Size, | |
199 | Material = Material, | |
200 | } | |
201 | RemoveOutlines(Part) | |
202 | return Part | |
203 | end | |
204 | ||
205 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
206 | local Msh = Create(Mesh){ | |
207 | Parent = Part, | |
208 | Offset = OffSet, | |
209 | Scale = Scale, | |
210 | } | |
211 | if Mesh == "SpecialMesh" then | |
212 | Msh.MeshType = MeshType | |
213 | Msh.MeshId = MeshId | |
214 | end | |
215 | return Msh | |
216 | end | |
217 | ||
218 | function CreateWeld(Parent, Part0, Part1, C0, C1) | |
219 | local Weld = Create("Weld"){ | |
220 | Parent = Parent, | |
221 | Part0 = Part0, | |
222 | Part1 = Part1, | |
223 | C0 = C0, | |
224 | C1 = C1, | |
225 | } | |
226 | return Weld | |
227 | end | |
228 | ||
229 | function rayCast(Position, Direction, Range, Ignore) | |
230 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
231 | end | |
232 | ||
233 | function CreateSound(id, par, vol, pit) | |
234 | coroutine.resume(coroutine.create(function() | |
235 | local sou = Instance.new("Sound", par or workspace) | |
236 | sou.Volume = vol | |
237 | sou.Pitch = pit or 1 | |
238 | sou.SoundId = id | |
239 | wait() | |
240 | sou:play() | |
241 | game:GetService("Debris"):AddItem(sou, 6) | |
242 | end)) | |
243 | end | |
244 | function CreateSong(id, par, vol, pit) | |
245 | coroutine.resume(coroutine.create(function() | |
246 | sou2 = Instance.new("Sound", par or workspace) | |
247 | sou2.Volume = vol | |
248 | sou2.Pitch = 1 | |
249 | sou2.SoundId = id | |
250 | wait() | |
251 | sou2:play() | |
252 | sou2.Looped = true | |
253 | end)) | |
254 | end | |
255 | CreateSong("http://www.roblox.com/asset/?id=532798812", Character, 2) -- 907812025 -- 871929646 -- 887451428 -- 532798812 -- | |
256 | local function getclosest(obj, distance) | |
257 | local last, lastx = distance + 1 | |
258 | for i, v in pairs(workspace:GetChildren()) do | |
259 | if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then | |
260 | local t = v.Torso | |
261 | local dist = (t.Position - obj.Position).magnitude | |
262 | if dist <= distance then | |
263 | if dist < last then | |
264 | last = dist | |
265 | lastx = v | |
266 | end | |
267 | end | |
268 | end | |
269 | end | |
270 | return lastx | |
271 | end | |
272 | ||
273 | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
274 | for i, v in pairs(hit:GetChildren()) do | |
275 | if v:IsA("Humanoid") and hit.Name ~= Character.Name then | |
276 | local find = v:FindFirstChild("Hitz") | |
277 | if not find then | |
278 | if v.Parent:findFirstChild("Head") then | |
279 | local BillG = Create("BillboardGui"){ | |
280 | Parent = v.Parent.Head, | |
281 | Size = UDim2.new(1, 0, 1, 0), | |
282 | Adornee = v.Parent.Head, | |
283 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
284 | } | |
285 | local TL = Create("TextLabel"){ | |
286 | Parent = BillG, | |
287 | Size = UDim2.new(3, 3, 3, 3), | |
288 | BackgroundTransparency = 1, | |
289 | Text = tostring(damage).."-", | |
290 | TextColor3 = Color1.Color, | |
291 | TextStrokeColor3 = Color2.Color, | |
292 | TextStrokeTransparency = 0, | |
293 | TextXAlignment = Enum.TextXAlignment.Center, | |
294 | TextYAlignment = Enum.TextYAlignment.Center, | |
295 | FontSize = Enum.FontSize.Size18, | |
296 | Font = "ArialBold", | |
297 | } | |
298 | coroutine.resume(coroutine.create(function() | |
299 | wait(1) | |
300 | for i = 0, 1, .1 do | |
301 | wait(.1) | |
302 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
303 | end | |
304 | BillG:Destroy() | |
305 | end)) | |
306 | end | |
307 | v.Health = v.Health - damage | |
308 | local bool = Create("BoolValue"){ | |
309 | Parent = v, | |
310 | Name = 'Hitz', | |
311 | } | |
312 | if HSound ~= nil and HPitch ~= nil then | |
313 | CreateSound(HSound, hit, 1, HPitch) | |
314 | end | |
315 | game:GetService("Debris"):AddItem(bool, cooldown) | |
316 | end | |
317 | end | |
318 | end | |
319 | end | |
320 | ||
321 | ||
322 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
323 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
324 | prt.Anchored = true | |
325 | prt.CFrame = cframe | |
326 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
327 | game:GetService("Debris"):AddItem(prt, 10) | |
328 | if Type == 1 or Type == nil then | |
329 | table.insert(Effects, { | |
330 | prt, | |
331 | "Block1", | |
332 | delay, | |
333 | x3, | |
334 | y3, | |
335 | z3, | |
336 | msh | |
337 | }) | |
338 | elseif Type == 2 then | |
339 | table.insert(Effects, { | |
340 | prt, | |
341 | "Block2", | |
342 | delay, | |
343 | x3, | |
344 | y3, | |
345 | z3, | |
346 | msh | |
347 | }) | |
348 | elseif Type == 3 then | |
349 | table.insert(Effects, { | |
350 | prt, | |
351 | "Block3", | |
352 | delay, | |
353 | x3, | |
354 | y3, | |
355 | z3, | |
356 | msh | |
357 | }) | |
358 | end | |
359 | end | |
360 | ||
361 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
362 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
363 | prt.Anchored = true | |
364 | prt.CFrame = cframe | |
365 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
366 | game:GetService("Debris"):AddItem(prt, 10) | |
367 | table.insert(Effects, { | |
368 | prt, | |
369 | "Cylinder", | |
370 | delay, | |
371 | x3, | |
372 | y3, | |
373 | z3, | |
374 | msh | |
375 | }) | |
376 | end | |
377 | ||
378 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
379 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
380 | prt.Anchored = true | |
381 | prt.CFrame = cframe * CFrame.new(x1, y1, z1) | |
382 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
383 | game:GetService("Debris"):AddItem(prt, 10) | |
384 | table.insert(Effects, { | |
385 | prt, | |
386 | "Cylinder", | |
387 | delay, | |
388 | x3, | |
389 | y3, | |
390 | z3, | |
391 | msh | |
392 | }) | |
393 | end | |
394 | ||
395 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
396 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
397 | prt.Anchored = true | |
398 | prt.CFrame = cframe | |
399 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
400 | game:GetService("Debris"):AddItem(prt, 10) | |
401 | table.insert(Effects, { | |
402 | prt, | |
403 | "Cylinder", | |
404 | delay, | |
405 | x3, | |
406 | y3, | |
407 | z3, | |
408 | msh | |
409 | }) | |
410 | end | |
411 | ||
412 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
413 | local prt = CreatePart(3, workspace,"", 0, 0, brickcolor, "Effect", Vector3.new()) | |
414 | prt.Anchored = true | |
415 | prt.CFrame = cframe | |
416 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
417 | game:GetService("Debris"):AddItem(prt, 10) | |
418 | table.insert(Effects, { | |
419 | prt, | |
420 | "Cylinder", | |
421 | delay, | |
422 | x3, | |
423 | y3, | |
424 | z3, | |
425 | msh | |
426 | }) | |
427 | end | |
428 | ||
429 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
430 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
431 | prt.Anchored = true | |
432 | prt.CFrame = cframe | |
433 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
434 | game:GetService("Debris"):AddItem(prt, 10) | |
435 | table.insert(Effects, { | |
436 | prt, | |
437 | "Cylinder", | |
438 | delay, | |
439 | x3, | |
440 | y3, | |
441 | z3, | |
442 | msh | |
443 | }) | |
444 | end | |
445 | ||
446 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
447 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
448 | prt.Anchored = true | |
449 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
450 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
451 | local num = math.random(10, 50) / 1000 | |
452 | game:GetService("Debris"):AddItem(prt, 10) | |
453 | table.insert(Effects, { | |
454 | prt, | |
455 | "Shatter", | |
456 | num, | |
457 | prt.CFrame, | |
458 | math.random() - math.random(), | |
459 | 0, | |
460 | math.random(50, 100) / 100 | |
461 | }) | |
462 | end | |
463 | ||
464 | ||
465 | ||
466 | ||
467 | for i = 0, 1, 0.05 do | |
468 | swait() | |
469 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1) | |
470 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1) | |
471 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
472 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3) | |
473 | if Torsovelocity > 2 then | |
474 | 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))), .2) | |
475 | RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
476 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3) | |
477 | elseif Torsovelocity < 1 then | |
478 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1) | |
479 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
480 | LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1) | |
481 | end | |
482 | end | |
483 | attack = false | |
484 | ||
485 | ||
486 | ||
487 | game:GetService'RunService'.Stepped:connect(function() | |
488 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
489 | velocity = RootPart.Velocity.y | |
490 | sine = sine + change | |
491 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character) | |
492 | if equipped == true or equipped == false then | |
493 | if RootPart.Velocity.y > 1 and hit == nil then | |
494 | Anim = "Jump" | |
495 | if attack == false then | |
496 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-9), math.rad(0), math.rad(0)), .1) | |
497 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
498 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.4, -.1) * angles(math.rad(45), math.rad(0), math.rad(70)), .1) | |
499 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.4, -.1) * angles(math.rad(45), math.rad(0), math.rad(-70)), .1) | |
500 | RH.C0 = clerp(RH.C0, cn(1, -0.5, -.5) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .3) | |
501 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.1) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
502 | if change == 1.4 then | |
503 | ||
504 | BlockEffect(BrickColor.new("Really blue"), RightArm.CFrame, 21, 21, 21, -2, -2, -2, 0.09,2) | |
505 | BlockEffect(BrickColor.new("Really blue"), LeftArm.CFrame, 21, 21, 21, -2, -2, -2, 0.09,2) | |
506 | end | |
507 | end | |
508 | ||
509 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
510 | Anim = "Fall" | |
511 | if attack == false then | |
512 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
513 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1) | |
514 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1) | |
515 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.3, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1) | |
516 | RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
517 | LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1) | |
518 | if change == 1.4 then | |
519 | BlockEffect(BrickColor.new("Really blue"), RightArm.CFrame, 21, 21, 21, -2, -2, -2, 0.09,2) | |
520 | BlockEffect(BrickColor.new("Really blue"), LeftArm.CFrame, 21, 21, 21, -2, -2, -2, 0.09,2) | |
521 | end | |
522 | end | |
523 | elseif Torsovelocity < 1 and hit ~= nil then | |
524 | Anim = "Idle" | |
525 | if attack == false then | |
526 | change = 0.8 | |
527 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0.05 * math.cos(sine / 7), 0, -0.1 + 0.1 * math.cos(sine / 8)) * angles(math.rad(9), math.rad(1), math.rad(15)), .1) | |
528 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-9 - 1 * math.cos(sine / 25)), math.rad(0), math.rad(-15)), .1) | |
529 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.4, -.2) * angles(math.rad(110 - 8 * math.cos(sine / 8)), math.rad(0), math.rad(-26 + 4 * math.cos(sine / 12))), 0.1) | |
530 | LW.C0 = clerp(LW.C0, CFrame.new(-1.1, 0.4, -.15) * angles(math.rad(60 - 8 * math.cos(sine / 8)), math.rad(0), math.rad(30 - 4 * math.cos(sine / 12))), 0.1) | |
531 | RH.C0 = clerp(RH.C0, cn(1, -1 - 0.1 * math.cos(sine / 8), 0) * RHCF * angles(math.rad(-6-2.5 * math.cos(sine / 7)), math.rad(-15), math.rad(19 + .1 * math.cos(sine / 25))), .1) | |
532 | LH.C0 = clerp(LH.C0, cn(-1, -1 - 0.1 * math.cos(sine / 8), -.1) * LHCF * angles(math.rad(-4+2.5 * math.cos(sine / 7)), math.rad(-15), math.rad(9 + .1 * math.cos(sine / 25))), .1) | |
533 | end | |
534 | ||
535 | elseif Torsovelocity > 1 and hit ~= nil then | |
536 | Anim = "Walk" | |
537 | if attack == false and Runkey == true then | |
538 | ||
539 | change = 1.4 | |
540 | Humanoid.WalkSpeed = 33 | |
541 | Humanoid.JumpPower = 70 | |
542 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.15 * math.cos(sine / 3)) * angles(math.rad(15), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(10 * math.cos(sine / 4))), .5) | |
543 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-8.5 * math.cos(sine / 4)) + RootPart.RotVelocity.Y / 9), .4) | |
544 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10+-75*math.cos(sine / 4)), math.rad(5+-35*math.cos(sine / 4)), math.rad(2+10*math.cos(sine / 4))), .4) | |
545 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10+75*math.cos(sine / 4)), math.rad(5+-35*math.cos(sine / 4)), math.rad(-2+10*math.cos(sine / 4))), .4) | |
546 | RH.C0 = clerp(RH.C0, cn(1, -1.0 - -0.3 * math.cos(sine / 4), -.1 - 0.1 * math.cos(sine / 4)) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(-10 + 50 * math.cos(sine / 4))), .5) | |
547 | LH.C0 = clerp(LH.C0, cn(-1, -1.0 + -0.3 * math.cos(sine / 4), -.1 + 0.1 * math.cos(sine / 4)) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(10 +50 * math.cos(sine / 4))), .5) | |
548 | ||
549 | end | |
550 | if attack == false and Runkey == false then | |
551 | change = 0.7 | |
552 | Humanoid.WalkSpeed = 14 | |
553 | Humanoid.JumpPower = 60 | |
554 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0 + 0.05 * math.cos(sine / 3)) * angles(math.rad(6.5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .3) | |
555 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2) | |
556 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-65*math.cos(sine / 4)), math.rad(0), math.rad(10*math.cos(sine / 4))), .2) | |
557 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(65*math.cos(sine / 4)), math.rad(0), math.rad(10*math.cos(sine / 4))), .2) | |
558 | RH.C0 = clerp(RH.C0, cn(1, -1 + .2 * math.cos(sine / 4), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3) | |
559 | LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 4), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3) | |
560 | end | |
561 | ||
562 | ||
563 | ||
564 | ||
565 | ||
566 | ||
567 | ||
568 | ||
569 | ||
570 | end | |
571 | end | |
572 | ||
573 | ||
574 | if #Effects > 0 then | |
575 | for e = 1, #Effects do | |
576 | if Effects[e] ~= nil then | |
577 | local Thing = Effects[e] | |
578 | if Thing ~= nil then | |
579 | local Part = Thing[1] | |
580 | local Mode = Thing[2] | |
581 | local Delay = Thing[3] | |
582 | local IncX = Thing[4] | |
583 | local IncY = Thing[5] | |
584 | local IncZ = Thing[6] | |
585 | if Thing[1].Transparency <= 1 then | |
586 | if Thing[2] == "Block1" then | |
587 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
588 | local Mesh = Thing[1].Mesh | |
589 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
590 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
591 | elseif Thing[2] == "Block2" then | |
592 | Thing[1].CFrame = Thing[1].CFrame+Vector3.new(0,-.1,0) | |
593 | local Mesh = Thing[7] | |
594 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
595 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
596 | elseif Thing[2] == "Block3" then | |
597 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))+Vector3.new(0,.2,0) | |
598 | local Mesh = Thing[7] | |
599 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
600 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
601 | elseif Thing[2] == "Cylinder" then | |
602 | local Mesh = Thing[1].Mesh | |
603 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
604 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
605 | elseif Thing[2] == "Blood" then | |
606 | local Mesh = Thing[7] | |
607 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0) | |
608 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
609 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
610 | elseif Thing[2] == "Elec" then | |
611 | local Mesh = Thing[1].Mesh | |
612 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
613 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
614 | elseif Thing[2] == "Disappear" then | |
615 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
616 | elseif Thing[2] == "Shatter" then | |
617 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
618 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
619 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
620 | Thing[6] = Thing[6] + Thing[5] | |
621 | end | |
622 | else | |
623 | Part.Parent = nil | |
624 | table.remove(Effects, e) | |
625 | end | |
626 | end | |
627 | end | |
628 | end | |
629 | end | |
630 | end) | |
631 | Humanoid.JumpPower = 60 | |
632 | ||
633 | ||
634 | ||
635 | ||
636 | RemoveOutlines = function(part) | |
637 | ||
638 | part.TopSurface = 10 | |
639 | end | |
640 | ||
641 | CreatePart = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
642 | ||
643 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
644 | RemoveOutlines(Part) | |
645 | return Part | |
646 | end | |
647 | ||
648 | CreateMesh = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
649 | ||
650 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
651 | if Mesh == "SpecialMesh" then | |
652 | Msh.MeshType = MeshType | |
653 | Msh.MeshId = MeshId | |
654 | end | |
655 | return Msh | |
656 | end | |
657 | ||
658 | CreateWeld = function(Parent, Part0, Part1, C0, C1) | |
659 | ||
660 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
661 | return Weld | |
662 | end | |
663 | ||
664 | ||
665 | ||
666 | ||
667 | WSHM = {'White',"Pastel light blue"} | |
668 | WSH = WSHM[math.random(1,#WSHM)] | |
669 | ||
670 | ||
671 | IcePartFunk = function(HPart,aria,Min,Max) | |
672 | ||
673 | IcePart = Instance.new("Part",HPart) | |
674 | IcePart.Size = Vector3.new(math.random(Min, Max),math.random(Min, Max),math.random(Min, Max)) | |
675 | IcePart.CanCollide = false | |
676 | IuW = Instance.new("Weld") | |
677 | IuW.Name = "GuW" | |
678 | IuW.Part0 = HPart | |
679 | 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)) | |
680 | IuW.C1 = cn(0, math.random(-aria/2, aria/2), 0) | |
681 | IuW.Part1 = IcePart | |
682 | IuW.Parent = HPart | |
683 | IcePart.Transparency = .85 | |
684 | IcePart.Material= "Neon" | |
685 | WSH = WSHM[math.random(1,#WSHM)] | |
686 | IcePart.BrickColor = BrickColor.new(""..WSH) | |
687 | ||
688 | RemoveOutlines(IcePart) | |
689 | game:GetService("Debris"):AddItem(IuW, 4) | |
690 | game:GetService("Debris"):AddItem(IcePart, 6) | |
691 | ||
692 | ||
693 | end | |
694 | ||
695 | SpikeMeshId = 1033714 | |
696 | local CreateSpike = function(Parent, Name, Color, Size, Material, Transparency, Scale) | |
697 | ||
698 | ||
699 | local Part = Instance.new("Part", Parent) | |
700 | Part.Name = Name | |
701 | Part.BrickColor = BrickColor.new(Color) | |
702 | Part.Size = Size | |
703 | Part.Material = Material | |
704 | Part.Transparency = Transparency | |
705 | Part.CanCollide = false | |
706 | RemoveOutlines(Part) | |
707 | ||
708 | local Mesh = Instance.new("SpecialMesh", Part) | |
709 | Mesh.MeshType = "Sphere" | |
710 | Mesh.Scale = Scale | |
711 | ||
712 | return Mesh and Part | |
713 | ||
714 | end | |
715 | ||
716 | ||
717 | ||
718 | ||
719 | ||
720 | ||
721 | ||
722 | ||
723 | CFuncs = { | |
724 | Part = {Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
725 | ||
726 | local Part = Create("Part")({Parent = Parent, Reflectance = Reflectance, Transparency = Transparency, CanCollide = false, Locked = true, BrickColor = BrickColor.new(tostring(BColor)), Name = Name, Size = Size, Material = Material}) | |
727 | RemoveOutlines(Part) | |
728 | return Part | |
729 | end | |
730 | } | |
731 | , | |
732 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
733 | ||
734 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
735 | if Mesh == "SpecialMesh" then | |
736 | Msh.MeshType = MeshType | |
737 | Msh.MeshId = MeshId | |
738 | end | |
739 | return Msh | |
740 | end | |
741 | } | |
742 | , | |
743 | Mesh = {Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
744 | ||
745 | local Msh = Create(Mesh)({Parent = Part, Offset = OffSet, Scale = Scale}) | |
746 | if Mesh == "SpecialMesh" then | |
747 | Msh.MeshType = MeshType | |
748 | Msh.MeshId = MeshId | |
749 | end | |
750 | return Msh | |
751 | end | |
752 | } | |
753 | , | |
754 | Weld = {Create = function(Parent, Part0, Part1, C0, C1) | |
755 | ||
756 | local Weld = Create("Weld")({Parent = Parent, Part0 = Part0, Part1 = Part1, C0 = C0, C1 = C1}) | |
757 | return Weld | |
758 | end | |
759 | } | |
760 | , | |
761 | Sound = {Create = function(id, par, vol, pit) | |
762 | ||
763 | coroutine.resume(coroutine.create(function() | |
764 | ||
765 | local S = Create("Sound")({Volume = vol, Pitch = pit or 1, SoundId = id, Parent = par or workspace}) | |
766 | wait() | |
767 | S:play() | |
768 | game:GetService("Debris"):AddItem(S, 6) | |
769 | end | |
770 | )) | |
771 | end | |
772 | } | |
773 | , | |
774 | ParticleEmitter = {Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
775 | ||
776 | local fp = Create("ParticleEmitter")({Parent = Parent, Color = ColorSequence.new(Color1, Color2), LightEmission = LightEmission, Size = Size, Texture = Texture, Transparency = Transparency, ZOffset = ZOffset, Acceleration = Accel, Drag = Drag, LockedToPart = LockedToPart, VelocityInheritance = VelocityInheritance, EmissionDirection = EmissionDirection, Enabled = Enabled, Lifetime = LifeTime, Rate = Rate, Rotation = Rotation, RotSpeed = RotSpeed, Speed = Speed, VelocitySpread = VelocitySpread}) | |
777 | return fp | |
778 | end | |
779 | } | |
780 | } | |
781 | ||
782 | ||
783 | ||
784 | ||
785 | ||
786 | Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
787 | ||
788 | if hit.Parent == nil then | |
789 | return | |
790 | end | |
791 | local h = hit.Parent:FindFirstChild("Humanoid") | |
792 | for _,v in pairs(hit.Parent:children()) do | |
793 | if v:IsA("Humanoid") then | |
794 | h = v | |
795 | end | |
796 | end | |
797 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then | |
798 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
799 | return | |
800 | end | |
801 | local c = Create("ObjectValue")({Name = "creator", Value = game:service("Players").LocalPlayer, Parent = h}) | |
802 | game:GetService("Debris"):AddItem(c, 0.5) | |
803 | if HitSound ~= nil and HitPitch ~= nil then | |
804 | CreateSound(HitSound, hit, 1, HitPitch) | |
805 | end | |
806 | local Damage = math.random(minim, maxim) | |
807 | local blocked = false | |
808 | local block = hit.Parent:findFirstChild("Block") | |
809 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
810 | blocked = true | |
811 | block.Value = block.Value - 1 | |
812 | print(block.Value) | |
813 | end | |
814 | if blocked == false then | |
815 | h.Health = h.Health - Damage | |
816 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
817 | else | |
818 | h.Health = h.Health - Damage / 2 | |
819 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color) | |
820 | end | |
821 | if Type == "Knockdown" then | |
822 | local hum = hit.Parent.Humanoid | |
823 | hum.PlatformStand = true | |
824 | coroutine.resume(coroutine.create(function(HHumanoid) | |
825 | ||
826 | swait(1) | |
827 | HHumanoid.PlatformStand = false | |
828 | end | |
829 | ), hum) | |
830 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
831 | local bodvol = Create("BodyVelocity")({velocity = angle * knockback, P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
832 | local rl = Create("BodyAngularVelocity")({P = 3000, maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000, angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)), Parent = hit}) | |
833 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
834 | game:GetService("Debris"):AddItem(rl, 0.5) | |
835 | elseif Type == "Normal" then | |
836 | local vp = Create("BodyVelocity")({P = 500, maxForce = Vector3.new(math.huge, 0, math.huge), velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05}) | |
837 | if knockback > 0 then | |
838 | vp.Parent = hit.Parent.Torso | |
839 | end | |
840 | game:GetService("Debris"):AddItem(vp, 0.5) | |
841 | elseif Type == "Impale" then | |
842 | ||
843 | local Spike = CreateSpike(Services.Workspace, "Ice Spike", "Pastel light blue", Vector3.new(1,1,1), "Neon", .7, Vector3.new(1,25,1)) | |
844 | Spike.Anchored = true | |
845 | Spike.Rotation = Vector3.new(math.random(-10,10), 0 , math.random(-10,10)) | |
846 | Spike.Position = hit.Parent.Torso.Position | |
847 | for i = 1,5 do | |
848 | ||
849 | IcePartFunk(hit.Parent.Torso,.55,0.1,1) | |
850 | end | |
851 | Services.Debris:AddItem(Spike, 4) | |
852 | ||
853 | ||
854 | ||
855 | ||
856 | ||
857 | ||
858 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=268249319", Spike, .8, 2) | |
859 | hit.Parent.Humanoid.PlatformStand = true | |
860 | ||
861 | ||
862 | swait(1) | |
863 | hit.Parent.Humanoid.PlatformStand = false | |
864 | elseif Type == "Up" then | |
865 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
866 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
867 | local bodyVelocity = Create("BodyVelocity")({velocity = Vector3.new(0, 20, 0), P = 5000, maxForce = Vector3.new(8000, 8000, 8000), Parent = hit}) | |
868 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
869 | elseif Type == "Snare" then | |
870 | local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
871 | game:GetService("Debris"):AddItem(bp, 1) | |
872 | elseif Type == "Slowness" then | |
873 | local SpeedSave=hit.Parent.Humanoid.WalkSpeed | |
874 | ||
875 | for i = 1,25 do | |
876 | hit.Parent.Humanoid.WalkSpeed = 4 | |
877 | IcePartFunk(hit.Parent.Torso,.55,0.1,1) | |
878 | end | |
879 | wait(4) | |
880 | hit.Parent.Humanoid.WalkSpeed = SpeedSave | |
881 | elseif Type == "FireDmg" then | |
882 | ||
883 | for i = 1,math.random(1, 10) do | |
884 | ||
885 | BlockEffect(BrickColor.new("Really blue"), hit.Parent.Torso.CFrame, 20, 20, 20, 1.5, 1.5, 1.5, 0.05,3) | |
886 | BlockEffect(BrickColor.new("Really blue"), hit.Parent.Torso.CFrame, 20, 20, 20, 2, 2, 2, 0.05,3) | |
887 | BlockEffect(BrickColor.new("Really black"), hit.Parent.Torso.CFrame, 0, 0, 0, 2, 2, 2, 0.035,3) | |
888 | ||
889 | wait() | |
890 | MagniKILL(hit.Parent.Torso, 15, 1, 80, 0, "Normal") | |
891 | end | |
892 | ||
893 | elseif Type == "Freeze" then | |
894 | local bp = Create("BodyPosition")({P = 900, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
895 | game:GetService("Debris"):AddItem(bp, 4) | |
896 | for i=1,25 do | |
897 | IcePartFunk(hit.Parent.Torso,1,1.5,2) | |
898 | end | |
899 | elseif Type == "Freeze2" then | |
900 | local BodPos = Create("BodyPosition")({P = 50000, D = 1000, maxForce = Vector3.new(math.huge, math.huge, math.huge), position = hit.Parent.Torso.Position, Parent = hit.Parent.Torso}) | |
901 | local BodGy = Create("BodyGyro")({maxTorque = Vector3.new(400000, 400000, 400000) * math.huge, P = 20000, Parent = hit.Parent.Torso, cframe = hit.Parent.Torso.CFrame}) | |
902 | hit.Parent.Torso.Anchored = true | |
903 | coroutine.resume(coroutine.create(function(Part) | |
904 | ||
905 | swait(1.5) | |
906 | Part.Anchored = false | |
907 | end | |
908 | ), hit.Parent.Torso) | |
909 | game:GetService("Debris"):AddItem(BodPos, 3) | |
910 | game:GetService("Debris"):AddItem(BodGy, 3) | |
911 | end | |
912 | local debounce = Create("BoolValue")({Name = "DebounceHit", Parent = hit.Parent, Value = true}) | |
913 | game:GetService("Debris"):AddItem(debounce, Delay) | |
914 | c = Instance.new("ObjectValue") | |
915 | c.Name = "creator" | |
916 | c.Value = Player | |
917 | c.Parent = h | |
918 | game:GetService("Debris"):AddItem(c, 0.5) | |
919 | end | |
920 | end | |
921 | ||
922 | ShowDamage = function(Pos, Text, Time, Color) | |
923 | ||
924 | local Rate = 0.033333333333333 | |
925 | if not Pos then | |
926 | local Pos = Vector3.new(0, 0, 0) | |
927 | end | |
928 | local Text = Text or "" | |
929 | local Time = Time or 2 | |
930 | if not Color then | |
931 | local Color = Color3.new(1, 0, 1) | |
932 | end | |
933 | local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
934 | EffectPart.Anchored = true | |
935 | local BillboardGui = Create("BillboardGui")({Size = UDim2.new(3, 0, 3, 0), Adornee = EffectPart, Parent = EffectPart}) | |
936 | local TextLabel = Create("TextLabel")({BackgroundTransparency = 1, Size = UDim2.new(1, 0, 1, 0), Text = Text, TextColor3 = Color, TextScaled = true, Font = Enum.Font.ArialBold, Parent = BillboardGui}) | |
937 | game.Debris:AddItem(EffectPart, Time + 0.1) | |
938 | EffectPart.Parent = game:GetService("Workspace") | |
939 | delay(0, function() | |
940 | ||
941 | local Frames = Time / Rate | |
942 | for Frame = 1, Frames do | |
943 | wait(Rate) | |
944 | local Percent = Frame / Frames | |
945 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
946 | TextLabel.TextTransparency = Percent | |
947 | end | |
948 | if EffectPart and EffectPart.Parent then | |
949 | EffectPart:Destroy() | |
950 | end | |
951 | end | |
952 | ) | |
953 | end | |
954 | ||
955 | MagniDamage = function(Part, magni, mindam, maxdam, knock, Type) | |
956 | ||
957 | for _,c in pairs(workspace:children()) do | |
958 | local hum = c:findFirstChild("Humanoid") | |
959 | if hum ~= nil then | |
960 | local head = c:findFirstChild("Head") | |
961 | if head ~= nil then | |
962 | local targ = head.Position - Part.Position | |
963 | local mag = targ.magnitude | |
964 | if mag <= magni and c.Name ~= Player.Name then | |
965 | Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "http://www.roblox.com/asset/?id=231917784", 1) | |
966 | end | |
967 | end | |
968 | end | |
969 | end | |
970 | end | |
971 | MagniKILL = function(Part, magni, knock, Type) | |
972 | ||
973 | for _,c in pairs(workspace:children()) do | |
974 | local hum = c:findFirstChild("Humanoid") | |
975 | if hum ~= nil then | |
976 | local head = c:findFirstChild("Head") | |
977 | if head ~= nil then | |
978 | local targ = head.Position - Part.Position | |
979 | local mag = targ.magnitude | |
980 | if mag <= magni and c.Name ~= Player.Name then | |
981 | hum.Health = 0 | |
982 | end | |
983 | end | |
984 | end | |
985 | end | |
986 | end | |
987 | EffectModel = Instance.new("Model", Character) | |
988 | EffectModel.Name = "Effects" | |
989 | Effects = { | |
990 | Block = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
991 | ||
992 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
993 | prt.Anchored = true | |
994 | prt.CFrame = cframe | |
995 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
996 | game:GetService("Debris"):AddItem(prt, 10) | |
997 | if Type == 1 or Type == nil then | |
998 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) | |
999 | else | |
1000 | if Type == 2 then | |
1001 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
1002 | else | |
1003 | table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh}) | |
1004 | end | |
1005 | end | |
1006 | end | |
1007 | } | |
1008 | , | |
1009 | Sphere = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1010 | ||
1011 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1012 | prt.Anchored = true | |
1013 | prt.CFrame = cframe | |
1014 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1015 | game:GetService("Debris"):AddItem(prt, 10) | |
1016 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
1017 | end | |
1018 | } | |
1019 | , | |
1020 | Cylinder = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1021 | ||
1022 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1023 | prt.Anchored = true | |
1024 | prt.CFrame = cframe | |
1025 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1026 | game:GetService("Debris"):AddItem(prt, 10) | |
1027 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
1028 | end | |
1029 | } | |
1030 | , | |
1031 | Wave = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1032 | ||
1033 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1034 | prt.Anchored = true | |
1035 | prt.CFrame = cframe | |
1036 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1037 | game:GetService("Debris"):AddItem(prt, 10) | |
1038 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
1039 | end | |
1040 | } | |
1041 | , | |
1042 | Ring = {Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1043 | ||
1044 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1045 | prt.Anchored = true | |
1046 | prt.CFrame = cframe | |
1047 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1048 | game:GetService("Debris"):AddItem(prt, 10) | |
1049 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh}) | |
1050 | end | |
1051 | } | |
1052 | , | |
1053 | Break = {Create = function(brickcolor, cframe, x1, y1, z1) | |
1054 | ||
1055 | local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1056 | prt.Anchored = true | |
1057 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1058 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1059 | local num = math.random(10, 50) / 1000 | |
1060 | game:GetService("Debris"):AddItem(prt, 10) | |
1061 | table.insert(Effects, {prt, "Shatter", num, prt.CFrame, math.random() - math.random(), 0, math.random(50, 100) / 100}) | |
1062 | end | |
1063 | } | |
1064 | } | |
1065 | BlockEffect = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
1066 | ||
1067 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1068 | prt.Anchored = true | |
1069 | prt.CFrame = cframe | |
1070 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1071 | game:GetService("Debris"):AddItem(prt, 10) | |
1072 | if Type == 1 or Type == nil then | |
1073 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh}) | |
1074 | else | |
1075 | if Type == 2 then | |
1076 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh}) | |
1077 | else | |
1078 | if Type == 3 then | |
1079 | table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh}) | |
1080 | end | |
1081 | end | |
1082 | end | |
1083 | end | |
1084 | CreateSound = function(id, par, vol, pit) | |
1085 | ||
1086 | coroutine.resume(coroutine.create(function() | |
1087 | ||
1088 | local sou = Instance.new("Sound", par or workspace) | |
1089 | sou.Volume = vol | |
1090 | sou.Pitch = pit or 1 | |
1091 | sou.SoundId = id | |
1092 | swait() | |
1093 | sou:play() | |
1094 | game:GetService("Debris"):AddItem(sou, 6) | |
1095 | end | |
1096 | )) | |
1097 | end | |
1098 | ||
1099 | Laser = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1100 | ||
1101 | local prt = CreatePart(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1102 | prt.Anchored = true | |
1103 | prt.CFrame = cframe | |
1104 | prt.Material = "Neon" | |
1105 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1106 | game:GetService("Debris"):AddItem(prt, 10) | |
1107 | coroutine.resume(coroutine.create(function(Part, Mesh) | |
1108 | ||
1109 | for i = 0, 6, delay do | |
1110 | swait() | |
1111 | Part.Transparency = i | |
1112 | Mesh.Scale = Mesh.Scale + Vector3.new(x3, y3, z3) | |
1113 | end | |
1114 | Part.Parent = nil | |
1115 | end | |
1116 | ), prt, msh) | |
1117 | end | |
1118 | ||
1119 | shoottraildd = function(mouse, partt, SpreadAmount, dmg) | |
1120 | ||
1121 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
1122 | local MainPos = partt.Position | |
1123 | local MainPos2 = mouse + SpreadVectors | |
1124 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
1125 | local speed = 1000 | |
1126 | local num = 1 | |
1127 | coroutine.resume(coroutine.create(function() | |
1128 | ||
1129 | repeat | |
1130 | swait() | |
1131 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
1132 | local mag = (MainPos - pos).magnitude | |
1133 | Laser(BrickColor.new("Really blue"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 0, -1.5, 0, -1.5, 0.15) | |
1134 | MainPos = MainPos + MouseLook.lookVector * speed | |
1135 | num = num - 1 | |
1136 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
1137 | if hit ~= nil then | |
1138 | num = 0 | |
1139 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1140 | refpart.Anchored = true | |
1141 | refpart.CFrame = CFrame.new(pos) | |
1142 | game:GetService("Debris"):AddItem(refpart, 2) | |
1143 | end | |
1144 | do | |
1145 | if num <= 0 then | |
1146 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1147 | refpart.Anchored = true | |
1148 | refpart.CFrame = CFrame.new(pos) | |
1149 | if hit ~= nil then | |
1150 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1) | |
1151 | BlockEffect(BrickColor.new("Really black"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05) | |
1152 | BlockEffect(BrickColor.new("Really blue"), refpart.CFrame, 1, 1, 1, 27, 27, 27, 0.05) | |
1153 | BlockEffect(BrickColor.new("Really blue"), refpart.CFrame, 1, 1, 1, 27, 27, 27, 0.05) | |
1154 | MagniDamage(refpart, 26, dmg, dmg, 0, "FireDmg") | |
1155 | end | |
1156 | game:GetService("Debris"):AddItem(refpart, 0) | |
1157 | end | |
1158 | end | |
1159 | until num <= 0 | |
1160 | end | |
1161 | )) | |
1162 | end | |
1163 | ||
1164 | shoottraildd2 = function(mouse, partt, SpreadAmount) | |
1165 | ||
1166 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
1167 | local MainPos = partt.Position | |
1168 | local MainPos2 = mouse + SpreadVectors | |
1169 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
1170 | local speed = 1000 | |
1171 | local num = 1 | |
1172 | coroutine.resume(coroutine.create(function() | |
1173 | ||
1174 | repeat | |
1175 | swait() | |
1176 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
1177 | local mag = (MainPos - pos).magnitude | |
1178 | Laser(BrickColor.new("Gold"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 1, mag * (speed / (speed / 2)), 1, -8.175, 0, -8.175, 0.15) | |
1179 | MainPos = MainPos + MouseLook.lookVector * speed | |
1180 | num = num - 1 | |
1181 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
1182 | if hit ~= nil then | |
1183 | num = 0 | |
1184 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1185 | refpart.Anchored = true | |
1186 | refpart.CFrame = CFrame.new(pos) | |
1187 | game:GetService("Debris"):AddItem(refpart, 2) | |
1188 | end | |
1189 | do | |
1190 | if num <= 0 then | |
1191 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1192 | refpart.Anchored = true | |
1193 | refpart.CFrame = CFrame.new(pos) | |
1194 | if hit ~= nil then | |
1195 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1) | |
1196 | BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 86.5, 86.5, 86.5, 0.05) | |
1197 | BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05) | |
1198 | BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 87, 87, 87, 0.05) | |
1199 | MagniKILL(refpart, 80, 0, "Normal") | |
1200 | end | |
1201 | game:GetService("Debris"):AddItem(refpart, 0) | |
1202 | end | |
1203 | end | |
1204 | until num <= 0 | |
1205 | end | |
1206 | )) | |
1207 | end | |
1208 | ||
1209 | shoottraildd3 = function(mouse, partt, SpreadAmount, dmg) | |
1210 | ||
1211 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
1212 | local MainPos = partt.Position | |
1213 | local MainPos2 = mouse + SpreadVectors | |
1214 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
1215 | local speed = 200 | |
1216 | local num = 0 | |
1217 | coroutine.resume(coroutine.create(function() | |
1218 | ||
1219 | repeat | |
1220 | swait() | |
1221 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
1222 | local mag = (MainPos - pos).magnitude | |
1223 | 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) | |
1224 | MainPos = MainPos + MouseLook.lookVector * speed | |
1225 | num = num - 1 | |
1226 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
1227 | if hit ~= nil then | |
1228 | num = 0 | |
1229 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1230 | refpart.Anchored = true | |
1231 | refpart.CFrame = CFrame.new(pos) | |
1232 | BlockEffect(BrickColor.new("Pastel light blue"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05) | |
1233 | game:GetService("Debris"):AddItem(refpart, 2) | |
1234 | end | |
1235 | do | |
1236 | if num <= 0 then | |
1237 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1238 | refpart.Anchored = true | |
1239 | refpart.CFrame = CFrame.new(pos) | |
1240 | if hit ~= nil then | |
1241 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1) | |
1242 | BlockEffect(BrickColor.new("White"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05) | |
1243 | BlockEffect(BrickColor.new("Pastel light blue"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05) | |
1244 | ||
1245 | ||
1246 | MagniDamage(refpart, 6, dmg, dmg, 0, "Slowness") | |
1247 | ||
1248 | end | |
1249 | game:GetService("Debris"):AddItem(refpart, 0) | |
1250 | end | |
1251 | end | |
1252 | until num <= 0 | |
1253 | end | |
1254 | )) | |
1255 | end | |
1256 | ||
1257 | shoottraildd4 = function(mouse, partt, SpreadAmount, dmg) | |
1258 | ||
1259 | local SpreadVectors = Vector3.new(math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount), math.random(-SpreadAmount, SpreadAmount)) | |
1260 | local MainPos = partt.Position | |
1261 | local MainPos2 = mouse + SpreadVectors | |
1262 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2) | |
1263 | local speed = 150 | |
1264 | local num = 1 | |
1265 | coroutine.resume(coroutine.create(function() | |
1266 | ||
1267 | repeat | |
1268 | swait() | |
1269 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, speed, RootPart.Parent) | |
1270 | local mag = (MainPos - pos).magnitude | |
1271 | 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) | |
1272 | MainPos = MainPos + MouseLook.lookVector * speed | |
1273 | num = num - 1 | |
1274 | MouseLook = MouseLook * angles(math.rad(-1), 0, 0) | |
1275 | if hit ~= nil then | |
1276 | num = 0 | |
1277 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1278 | refpart.Anchored = true | |
1279 | refpart.CFrame = CFrame.new(pos) | |
1280 | game:GetService("Debris"):AddItem(refpart, 2) | |
1281 | end | |
1282 | do | |
1283 | if num <= 0 then | |
1284 | local refpart = CreatePart(EffectModel, "Neon", 0, 1, BrickColor.new("Really black"), "Effect", Vector3.new()) | |
1285 | refpart.Anchored = true | |
1286 | refpart.CFrame = CFrame.new(pos) | |
1287 | if hit ~= nil then | |
1288 | CreateSound("http://www.roblox.com/asset/?id=514867425", refpart, 2, 1) | |
1289 | BlockEffect(BrickColor.new("Really red"), refpart.CFrame, 1, 1, 1, 6.5, 6.5, 6.5, 0.05) | |
1290 | BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05) | |
1291 | BlockEffect(BrickColor.new("Gold"), refpart.CFrame, 1, 1, 1, 7, 7, 7, 0.05) | |
1292 | MagniDamage(refpart, 6, dmg, dmg, 0, "Normal") | |
1293 | end | |
1294 | game:GetService("Debris"):AddItem(refpart, 0) | |
1295 | end | |
1296 | end | |
1297 | until num <= 0 | |
1298 | end | |
1299 | )) | |
1300 | end | |
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | HitpartFunk3 = function(HPart3,Xv,Yv,Zv) | |
1309 | ||
1310 | Hitpart3 = Instance.new("Part",HPart3) | |
1311 | Hitpart3.Size = Vector3.new(1,1,1) | |
1312 | Hitpart3.CanCollide = false | |
1313 | HuW3 = Instance.new("Weld") | |
1314 | HuW3.Name = "GuW" | |
1315 | HuW3.Part0 = HPart3 | |
1316 | HuW3.C0 = cn(Xv, Yv, Zv) | |
1317 | HuW3.C1 = cn(0, 0, 0) | |
1318 | HuW3.Part1 = Hitpart3 | |
1319 | HuW3.Parent = HPart3 | |
1320 | Hitpart3.Transparency = 1 | |
1321 | game:GetService("Debris"):AddItem(Hitpart3, 20) | |
1322 | end | |
1323 | ||
1324 | HitpartFunk2 = function(HPart2,Xv,Yv,Zv) | |
1325 | ||
1326 | Hitpart2 = Instance.new("Part",HPart2) | |
1327 | Hitpart2.Size = Vector3.new(1,1,1) | |
1328 | Hitpart2.CanCollide = false | |
1329 | HuW2 = Instance.new("Weld") | |
1330 | HuW2.Name = "GuW" | |
1331 | HuW2.Part0 = HPart2 | |
1332 | HuW2.C0 = cn(Xv, Yv, Zv) | |
1333 | HuW2.C1 = cn(0, 0, 0) | |
1334 | HuW2.Part1 = Hitpart2 | |
1335 | HuW2.Parent = HPart2 | |
1336 | Hitpart2.Transparency = 1 | |
1337 | game:GetService("Debris"):AddItem(Hitpart2, 20) | |
1338 | end | |
1339 | ||
1340 | ||
1341 | HitpartFunk = function(HPart,Min,Max,Xv,Yv,Zv) | |
1342 | ||
1343 | Hitpart = Instance.new("Part",HPart) | |
1344 | Hitpart.Size = Vector3.new(1,1,1) | |
1345 | Hitpart.CanCollide = false | |
1346 | HuW = Instance.new("Weld") | |
1347 | HuW.Name = "GuW" | |
1348 | HuW.Part0 = HPart | |
1349 | HuW.C0 = cn(Xv, Yv, Zv) | |
1350 | HuW.C1 = cn(0, 0, 0) | |
1351 | HuW.Part1 = Hitpart | |
1352 | HuW.Parent = HPart | |
1353 | Hitpart.Transparency = 1 | |
1354 | MagniDamage(Hitpart, 2, 1, 1, 0, "FireDmg") | |
1355 | MagniDamage(Hitpart, 5.5, 10, 50, 30, "Up") | |
1356 | MagniDamage(Hitpart, 15.5, 10, 50, 30, "Normal") | |
1357 | ||
1358 | end | |
1359 | ||
1360 | ||
1361 | ||
1362 | ||
1363 | ||
1364 | ||
1365 | ||
1366 | wait2 = false | |
1367 | ||
1368 | ||
1369 | combo = 1 | |
1370 | ||
1371 | mouse.Button1Down:connect(function(key) | |
1372 | if attack == false then | |
1373 | attack = true | |
1374 | Humanoid.WalkSpeed = 4.01 | |
1375 | if combo == 1 and wait2 == false then | |
1376 | wait2 = true | |
1377 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=287142895", LeftArm, 1, 2.2) | |
1378 | for i = 0, 1, 0.1 do | |
1379 | swait() | |
1380 | ||
1381 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(-5), math.rad(-90)), .3) | |
1382 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), .2) | |
1383 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(0), math.rad(0* math.cos(sine / 25)), math.rad(0* math.cos(sine / 25))), .2) | |
1384 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3,.0) * angles(math.rad(90), math.rad(0), math.rad(0)), .3) | |
1385 | RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2) | |
1386 | LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), .4) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(20 + 2 * math.cos(sine / 25))), .2) | |
1387 | ||
1388 | ||
1389 | ||
1390 | end | |
1391 | HitpartFunk(LeftArm,15,50, 0,-.5,0) | |
1392 | ||
1393 | for i = 0, .5, 0.1 do | |
1394 | swait() | |
1395 | BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 21, 21, 21, -2, -2, -2, 0.1,3) | |
1396 | BlockEffect(BrickColor.new("Really black"), Hitpart.CFrame, 21, 41, 21, -2, -2, -2, 0.07,2) | |
1397 | BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 21, 41, 21, -2.5, -2.5, -2.5, 0.1,2) | |
1398 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(-5), math.rad(-90)), .4) | |
1399 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), .2) | |
1400 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(0), math.rad(0* math.cos(sine / 25)), math.rad(0* math.cos(sine / 25))), .2) | |
1401 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3,-.2) * angles(math.rad(0+1* math.cos(sine / 25)), math.rad(0), math.rad(-90+1* math.cos(sine / 25))), .4) | |
1402 | RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .4) | |
1403 | LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), .4) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(20 + 2 * math.cos(sine / 25))), .4) | |
1404 | ||
1405 | ||
1406 | ||
1407 | end | |
1408 | combo = 2 | |
1409 | ||
1410 | end | |
1411 | ||
1412 | if combo == 2 and wait2 == false then | |
1413 | wait2 = true | |
1414 | ||
1415 | ||
1416 | for i = 0, .5, 0.1 do | |
1417 | swait() | |
1418 | ||
1419 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1420 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .3) | |
1421 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, .3, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1) | |
1422 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, .5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1) | |
1423 | RH.C0 = clerp(RH.C0, cn(1, 0, -.5) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1424 | LH.C0 = clerp(LH.C0, cn(-1, -1.5, -.6) * LHCF * angles(math.rad(0), math.rad(0), math.rad(90)), .3) | |
1425 | end | |
1426 | ||
1427 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=287142895", RightArm, 1, 2.2) | |
1428 | for i = 0, .5, 0.1 do | |
1429 | swait() | |
1430 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -.5, -1) * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1431 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-10), math.rad(0), math.rad(0)), .3) | |
1432 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, .3, 0) * angles(math.rad(35), math.rad(0), math.rad(0)), 0.3) | |
1433 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, .5, 0) * angles(math.rad(25), math.rad(0), math.rad(0)), 0.1) | |
1434 | RH.C0 = clerp(RH.C0, cn(1, 0, -.5) * RHCF * angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
1435 | LH.C0 = clerp(LH.C0, cn(-1, -1.5, -.6) * LHCF * angles(math.rad(0), math.rad(0), math.rad(90)), .3) | |
1436 | end | |
1437 | HitpartFunk(RightArm,15,50, 0,-.5,0) | |
1438 | ||
1439 | for i = 0, 1, 0.1 do | |
1440 | swait() | |
1441 | BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 21, 21, 21, -2, -2, -2, 0.1,3) | |
1442 | BlockEffect(BrickColor.new("Really black"), Hitpart.CFrame, 21, 41, 21, -2, -2, -2, 0.07,2) | |
1443 | BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 21, 41, 21, -2.5, -2.5, -2.5, 0.1,2) | |
1444 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -.5, 0) * angles(math.rad(0), math.rad(0), math.rad(45)), .4) | |
1445 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-25)), .4) | |
1446 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, .7, -.8) * angles(math.rad(120), math.rad(0), math.rad(-35)), 0.4) | |
1447 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, .5, 0) * angles(math.rad(-25), math.rad(0), math.rad(0)), 0.4) | |
1448 | RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-45), math.rad(0)), .4) | |
1449 | LH.C0 = clerp(LH.C0, cn(-1, -1, -.2) * LHCF * angles(math.rad(0), math.rad(-25), math.rad(10)), .4) | |
1450 | end | |
1451 | combo = 3 | |
1452 | ||
1453 | end | |
1454 | ||
1455 | if combo == 3 and wait2 == false then | |
1456 | wait2 = true | |
1457 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=287142895", LeftArm, 1, 2.2) | |
1458 | for i = 0, 1, 0.1 do | |
1459 | swait() | |
1460 | ||
1461 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(5), math.rad(-90)), .3) | |
1462 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), .2) | |
1463 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(90+1* math.cos(sine / 25)), math.rad(0* math.cos(sine / 25)), math.rad(0+1* math.cos(sine / 25))), .3) | |
1464 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3,-.2) * angles(math.rad(90), math.rad(0), math.rad(45+1* math.cos(sine / 25))), .2) | |
1465 | RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2) | |
1466 | LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), .4) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(20 + 2 * math.cos(sine / 25))), .2) | |
1467 | ||
1468 | ||
1469 | ||
1470 | end | |
1471 | HitpartFunk(RightArm,15,50, 0,-.5,0) | |
1472 | ||
1473 | ||
1474 | for i = 0, 1, 0.1 do | |
1475 | swait() | |
1476 | BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 21, 21, 21, -2, -2, -2, 0.1,3) | |
1477 | BlockEffect(BrickColor.new("Really black"), Hitpart.CFrame, 21, 41, 21, -2, -2, -2, 0.07,2) | |
1478 | BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 21, 41, 21, -2.5, -2.5, -2.5, 0.1,2) | |
1479 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(5), math.rad(45)), .3) | |
1480 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-45)), .2) | |
1481 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.2) * angles(math.rad(0+1* math.cos(sine / 25)), math.rad(45+0* math.cos(sine / 25)), math.rad(90+1* math.cos(sine / 25))), .4) | |
1482 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3,0) * angles(math.rad(45), math.rad(0), math.rad(20+1* math.cos(sine / 25))), .3) | |
1483 | RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), .4) * RHCF * angles(math.rad(5 + 1 * math.cos(sine / 25)), math.rad(-50), math.rad(8 + 1 * math.cos(sine / 25))), .2) | |
1484 | LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), -.6) * LHCF * angles(math.rad(-5 + 1 * math.cos(sine / 25)), math.rad(-50), math.rad(20 + 1 * math.cos(sine / 25))), .2) | |
1485 | ||
1486 | ||
1487 | ||
1488 | end | |
1489 | combo = 1 | |
1490 | ||
1491 | ||
1492 | end | |
1493 | ||
1494 | ||
1495 | ||
1496 | ||
1497 | ||
1498 | Humanoid.WalkSpeed = 16 | |
1499 | Hitpart:Destroy() | |
1500 | wait2 = false | |
1501 | attack = false | |
1502 | end | |
1503 | end) | |
1504 | ||
1505 | ||
1506 | ||
1507 | ||
1508 | ||
1509 | ||
1510 | ||
1511 | ||
1512 | mouse.KeyDown:connect(function(k) | |
1513 | if k == "0" and attack == false then | |
1514 | ||
1515 | Runkey = true | |
1516 | ||
1517 | end | |
1518 | ||
1519 | ||
1520 | ||
1521 | ||
1522 | if k == "z" and attack == false then | |
1523 | ||
1524 | CFuncs.Sound.Create("http://www.roblox.com/asset/?id=379225925", RightArm, 5, 1.5) | |
1525 | for i = 0, .5, 0.1 do | |
1526 | swait() | |
1527 | ||
1528 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(5), math.rad(-90)), .5) | |
1529 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(90)), .5) | |
1530 | RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, 0) * angles(math.rad(140+1* math.cos(sine / 25)), math.rad(0* math.cos(sine / 25)), math.rad(0+1* math.cos(sine / 25))), .5) | |
1531 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.3,-.2) * angles(math.rad(90), math.rad(0), math.rad(45+1* math.cos(sine / 25))), .5) | |
1532 | RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .5) | |
1533 | LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), .4) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(20 + 2 * math.cos(sine / 25))), .5) | |
1534 | ||
1535 | ||
1536 | ||
1537 | end | |
1538 | ||
1539 | HitpartFunk(RightArm,5,10, 0,-.5,0) | |
1540 | for i = 0, .2, 0.1 do | |
1541 | swait() | |
1542 | BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 41, 41, 41, -4, -4, -4, 0.1,3) | |
1543 | BlockEffect(BrickColor.new("Really black"), Hitpart.CFrame, 71, 71, 71, -4, -4, -4, 0.17,2) | |
1544 | BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 71, 71, 71, -4.5, -4.5, -4.5, 0.2,2) | |
1545 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(5), math.rad(45)), .5) | |
1546 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-45)), .5) | |
1547 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.2) * angles(math.rad(0+1* math.cos(sine / 25)), math.rad(45+0* math.cos(sine / 25)), math.rad(40+1* math.cos(sine / 25))), .5) | |
1548 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3,0) * angles(math.rad(45), math.rad(0), math.rad(20+1* math.cos(sine / 25))), .5) | |
1549 | RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), .4) * RHCF * angles(math.rad(5 + 1 * math.cos(sine / 25)), math.rad(-50), math.rad(8 + 1 * math.cos(sine / 25))), .5) | |
1550 | LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), -.6) * LHCF * angles(math.rad(-5 + 1 * math.cos(sine / 25)), math.rad(-50), math.rad(20 + 1 * math.cos(sine / 25))), .5) | |
1551 | ||
1552 | ||
1553 | ||
1554 | end | |
1555 | ||
1556 | shoottraildd(mouse.Hit.p, RightArm, 0, 10) | |
1557 | BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 41, 41, 41, -4, -4, -4, 0.1,3) | |
1558 | BlockEffect(BrickColor.new("Really black"), Hitpart.CFrame, 71, 111, 71, -4, -4, -4, 0.07,2) | |
1559 | BlockEffect(BrickColor.new("Really blue"), Hitpart.CFrame, 71, 111, 71, -4.5, -4.5, -4.5, 0.1,2) | |
1560 | for i = 0, .5, 0.1 do | |
1561 | swait() | |
1562 | ||
1563 | ||
1564 | ||
1565 | RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(5), math.rad(45)), .3) | |
1566 | Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-45)), .2) | |
1567 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, -.2) * angles(math.rad(0+1* math.cos(sine / 25)), math.rad(45+0* math.cos(sine / 25)), math.rad(40+1* math.cos(sine / 25))), .4) | |
1568 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3,0) * angles(math.rad(45), math.rad(0), math.rad(20+1* math.cos(sine / 25))), .3) | |
1569 | RH.C0 = clerp(RH.C0, cn(.9, -1 - 0.1 * math.cos(sine / 25), .4) * RHCF * angles(math.rad(5 + 1 * math.cos(sine / 25)), math.rad(-50), math.rad(8 + 1 * math.cos(sine / 25))), .2) | |
1570 | LH.C0 = clerp(LH.C0, cn(-.9, -1 - 0.1 * math.cos(sine / 25), -.6) * LHCF * angles(math.rad(-5 + 1 * math.cos(sine / 25)), math.rad(-50), math.rad(20 + 1 * math.cos(sine / 25))), .2) | |
1571 | ||
1572 | ||
1573 | ||
1574 | end | |
1575 | ||
1576 | ||
1577 | ||
1578 | ||
1579 | ||
1580 | ||
1581 | ||
1582 | ||
1583 | ||
1584 | ||
1585 | ||
1586 | attack = false | |
1587 | end | |
1588 | ||
1589 | ||
1590 | ||
1591 | ||
1592 | ||
1593 | ||
1594 | ||
1595 | ||
1596 | ||
1597 | end) | |
1598 | mouse.KeyUp:connect(function(k) | |
1599 | if k == "0" and attack == false then | |
1600 | Runkey = false | |
1601 | ||
1602 | end end) | |
1603 | ||
1604 | ||
1605 | ||
1606 | ||
1607 | ||
1608 | ff = Instance.new("ForceField", game.Players.LocalPlayer.Character) | |
1609 | ff.Visible = false | |
1610 | ||
1611 | ||
1612 | ||
1613 | Character.Humanoid.MaxHealth = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 | |
1614 | Character.Humanoid.Health = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 | |
1615 | game:GetService("RunService"):BindToRenderStep("ew", 0, function() | |
1616 | if Character.Humanoid.Health <=9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 then | |
1617 | Character.Humanoid.MaxHealth = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 | |
1618 | Character.Humanoid.Health = 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 | |
1619 | end | |
1620 | end) |