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